|
|
| There's more than one way to do things | |
| PerlMonks |
Re^2: Threaded RS232 communicationby tobias_hofer (Scribe) |
| on Feb 01, 2013 at 09:36 UTC ( #1016487=note: print w/ replies, xml ) | Need Help?? |
|
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. 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
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||