0

I have a device plugged to a CentOS server that changes randomly from /dev/ttyUSB0 to /dev/ttyUSB1 and vice versa.

The device I'm trying to connect is this one.

How can I debug this?

gtludwig
  • 873
  • 3
  • 12
  • 22

1 Answers1

1

The device probably gets disconnected while you're using it; check your dmesg output after it changed to /dev/ttyUSB1. When it gets disconnected, the old name /dev/ttyUSB0 is not immediately released (I'm not sure why, maybe because some program still has an open handle to the device file...?). Then the device reconnects but now the kernel can't reuse this name so it uses the next free name, so you now it's /dev/ttyUSB1.

Possible reasons for this could be a defective USB device or a defective USB port.