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?
Question
KennyBertone
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:
The problem is that randomly I get the following error:
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
1 answer to this question
Recommended Posts