On my Raspberry Pi, when I boot I have a /dev/ttyUSB0 device. However, when I run my pylibftdi, which essentially does a
with Device() as dev: dev.baudrate = 38400 while not queue.empty(): command = queue.get() dev.write(command.decode('hex'))
/dev/ttyUSB0 disappears with the dmesg message
40035.562819] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0 [40035.564264] ftdi_sio 1-1.2:1.0: device disconnected
I can replicate this by modprobe-ing to restart ftdi_sio. The pylibftdi program continues to work however, it's just the serial device that is removed.