On Fre 22.10.2010 06:15, newToMina wrote:
Aleks, Coud you please explain a little more?
Well the data which I got from the serial was like this.
<STX><FIXED_PROTOCOL_DATA><ETX>
and the serial to ip converter does not give me the <STX> and <ETX> from
the line, or maybe I have the option not found in the web gui of the
moxa device.
I have read
http://mina.apache.org/serial-tutorial.html
and used
org.apache.mina.transport.serial.*
with a own protcol decoder wich checks the incomming data against the
<STX><FIXED_PROTOCOL_DATA><ETX>
Message pattern and delivers the <FIXED_PROTOCOL_DATA> to my handler.
BR
Aleks