Detecting/Reactivating serial port that becomes inactive on Ubuntu Linux 10.10

Posted by Tom on Server Fault See other posts from Server Fault or by Tom
Published on 2011-03-02T23:05:13Z Indexed on 2011/03/02 23:26 UTC
Read the original article Hit count: 356

Filed under:
|
|
|

I am using a usb2serial port to communicate with some old equipment (using my code built upon the boost asio library - I think my code is fine because it works almost all of the time).

Every so often (maybe once every few days) the communication stops with my device with no error at all - the device just does not respond. I then restart my computer and everything is fine again.

Does anyone know where I can start to analyse this problem? My serial port loads up fine (in /dev/ttyUSB0) and the boost library does not throw an error. The device just does not respond. If I restart the device no change - only when I restart my pc does it make a difference. I have also tried unplugging and replugging the usb connector.

Does anyone know what gets cleared in the reboot (w.r.t the serial device) or what I can probe when the problem happens again (rather than just restarting with hope)

© Server Fault or respective owner

Related posts about ubuntu

Related posts about usb