The communication link is a direct null modem, full duplex RS-232 connection
with, 9600 baud, 7 data bits, Even Parity, and 1 Stop bit. Also need to
assert both DTR and RTS at all times. Which one of the following is a better
choise?

1)  Use a RS-232 to ethernet converter (cable/hardware) and use MINA Socket
communication.
2)  Use MINA Serial communication classes to talk to the device directly.

Can anyone provide an example of reading and writing to and from a com port
and parsing messages over RS-232?

The message format: [Header] Body [Footer]
The [Header] starts with STX and has other fields, and the [Footer]
comprises of <ETX><LRC> (LRC is the Longitudinal Redundancy Check Digit,
which is calculated by performing a BITWISE XOR (Exclusive Or) on all ASCII
values (excluding the STX) in the message. All values are from the ASCII
character set. ) Fields are seperated by FS [0x1C]
-- 
View this message in context: 
http://old.nabble.com/System-design-considerations-tp29966545p29986644.html
Sent from the Apache MINA User Forum mailing list archive at Nabble.com.

Reply via email to