in reply to Re: Threaded RS232 communication
in thread Threaded RS232 communication
This question is very important. In my case its a integration test system communicating with the target by rs232. What i am sending and receiving are requests for starting test-cases and getting the test-results.To avoid the loss of information i have designed a communication protocol. Thus the communication is going on like a ping-pong game.
Request -RS232-> Target
Target -RS232-> Answer+Acknowledge to requester
Only when the communication sequence is done (test-sequence ended completley - recognised by the state machine) I close the rs232 connection. Thus I can be sure that no information is lost.
Ok, regarding this test-system its a special case but IMHO having a protocol and a communication desgin is helping a lot to avoid loss of data
Best regards!
Tobias
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Threaded RS232 communication
by BrowserUk (Patriarch) on Feb 01, 2013 at 10:13 UTC | |
by tobias_hofer (Friar) on Feb 01, 2013 at 11:53 UTC | |
by BrowserUk (Patriarch) on Feb 01, 2013 at 12:56 UTC | |
by tobias_hofer (Friar) on Feb 01, 2013 at 14:50 UTC |