I’ve written a program in C# which scans a network of devices connected to the serial port.
I use a thread to send a message addressed to a external device then I use ManualResetEven t.WaitOne(200) to pause the thread and wait for a reply. If a correct response is received from the serial port, an event is fired which restarts the scan thread with ManualResetEven t.Set(). When a correct response is received or the ManualResetEven t times out,...
User Profile
Collapse
-
SerialPort - How to send a message and await a reply?
Last edited by tlhintoq; Mar 13 '10, 05:19 PM. Reason: [CODE] ...Your code goes between code tags [/CODE]
No activity results to display
Show More