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,...