Hi,
I have an application which uses a hand held scanner connected to the com port. Periodically, the scanner will die, and the only way to get it working again is to restart the entire computer.
I want to write a c# windows service program that will monitor this comport and check if the device is dead, if it is reset the comport.
I do not know how to reset the com port, I tried using the System.IO.Ports.SerialPort
class to open or close the com port, but that does not work, is there any way to actually kill or shut off the com port so anything connected to it will turn off? and then also be able to turn the com port back on?
Thanks in advance for any help or suggestions
Start Free Trial