Serail Port N-Tier Architecture
Hi All, I would like some assistance in the best design for my serial port communications application.
I have a situation where I would like to be able to send mesasges to a device via a serial cable.
I have constructed a BOL & DAL layers but I am not sure how to share an instance of the serial port as it lives at a higher level.
My structure is something like this.
DEVICEGROUPCOLLECTION
-DeviceGroup
--Device
--Device
---Setting
---Setting
-DeviceGroup
--Device
---Setting
--Device
I would like to be able to set a setting on a device through its DAL implimentation, how do I structure this so that This can be done using the same serial port for all device communications.
Should I pass a static serial connedtion to the DAL Object or should I push the message up and be sent from the DEVICEGROUPCOLLECTION
object
Is this a situation where an interface is requried?
======================================
They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================
__________________
======================================
"They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad."
--Shakespeare
======================================
|