Jump to content

FTDI USB Serial Device converter now disconnected


KennyBertone

Recommended Posts

Hi all,

 

I am using an Orange Pi PC PLUS2 with everything in the emmc for controlling another device through a serial connection (rs485) with a serial converter using FTDI chips.

I am using docker containers to embed my application and easily deploy/share it.

 

using uname -a gives me:

Linux host-test 4.14.15-sunxi #28 SMP Mon Jan 29 07:24:48 CET 2018 armv7l GNU/Linux

 

The problem is that randomly I get the following error:

 

[135431.500807] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[137213.011801] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[138650.664850] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[140559.020691] ohci-platform 1c1b400.usb: frame counter not updating; disabled
[140559.020972] ohci-platform 1c1b400.usb: HC died; cleaning up
[140559.025797] usb 6-1: USB disconnect, device number 2
[140560.099001] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[140560.099018] ftdi_sio ttyUSB0: urb failed to clear flow control
[140560.099652] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[140560.099738] ftdi_sio 6-1:1.0: device disconnected

 

After that I can't use the serial converter anymore. It does not appear on ttyUSB0 and I don't manage to make it work again. I tried to rmmod both "ftdi_sio" and "usbserial" and modprobe them again, but nothing changes. The only way to fix it is to reboot the system.

 

I am experimenting a lot with modules like pylibftdi, vpc drivers vs d2xx ones, etc...without results.

 

I am really struggling a lot with this and I can't find any real or clear help online. Unfortunately this is a big issue since it makes my SW unusable and I can't really deliver it like this. It is worth noting that I never saw this issue without using docker.

 

My questions are:

- Does anyone have any clue how to solve this or can provide any help (it is really a big issue for me)?

- At least, does anyone have any idea how to restore the serial line without rebooting?

 

 

Thanks a lot in advance.

Link to comment
Share on other sites

Just adding some more info for this issue that is haunting me.
 

After seeing that "rmmod" doesn't provide me any help so far, I tried to directly bind and unbind bus drivers (both usb hub and ftdio) without any success. The only thing worth mentioning is that I got this error with one of the hub:

 

[221495.711378] hub 8-0:1.0: USB hub found
[221495.711399] hub 8-0:1.0: config failed, can't read hub descriptor (err -22)

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines