I have written an winform application (c#) that uses serial communication to
transmit and receive data to a device that users respond to by pressing
various proximity sensors. The data is transmitted and received correctly
and all works well.
A part of the application is to flash LEDs on the device when the it has not
been used for some while, in the meantime the UI goes into a form of a Screen
Saver. The device then waits for a sensor to be touched and if so, then
returns into life. Unfortunately, when i transmitt the commands to flash the
LEDs the application hangs until the transmitt has completed and as it
transmits upto 10 flashes, this is very slow (app does not respond until
transmits are complete). Can anyone reccommend a method for transmitting
(perhaps on a thread) and not having to wait for the transmitt to complete
i.e. so that UI does not freeze. Thank you for your help