You are not logged in.
I have an Arduino Uno clone with a CH341 USB/UART adapter that I'm trying to upload to. Whenever I try to connect to the board I get different error messages that all say something along the lines of "/dev/ttyUSB0: Input/output error" (more detailed info further down). /dev/ttyUSB0 is owned by both root and uucp, the latter of which my user is a member of. Any help is appreciated.
dmesg when device is connected:
[ 5268.243853] usb 5-1: new full-speed USB device number 5 using xhci_hcd
[ 5268.407274] usb 5-1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.54
[ 5268.407280] usb 5-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 5268.407283] usb 5-1: Product: USB2.0-Serial
[ 5268.409270] ch341 5-1:1.0: ch341-uart converter detected
[ 5268.420463] usb 5-1: ch341-uart converter now attached to ttyUSB0
ls -ahl /dev/ttyUSB0:
crw-rw---- 1 root uucp 188, 0 Sep 9 20:21 /dev/ttyUSB0
groups $USER:
uucp wheel $USER
cat /dev/ttyUSB0:
cat: /dev/ttyUSB0: Input/output error
journalctl when above command is executed:
Sep 09 20:21:45 Lorule kernel: usb 5-1: failed to receive control message: -110
Sep 09 20:21:45 Lorule kernel: ch341-uart ttyUSB0: failed to read modem status: -110
The output of 'cat /dev/ttyUSB0' and the subsequent output from 'journalctl' doesn't change when run as root.
EDIT: I should add that I have verified that the device works as expected on another computer also running Arch, however there are no differences in setup that I can think of that would be relevant.
Last edited by Jaxon (2018-09-11 18:45:37)
Offline
Maybe you don't have permissions to read/write. Try:
sudo cat /dev/ttyUSB0
Offline
Maybe you don't have permissions to read/write. Try:
sudo cat /dev/ttyUSB0
I have tried running the command as root and the output doesn't change.
Offline
Have you tried different USB ports?
Offline
Have you tried different USB ports?
While I had already tried to connect the device to all the different USB hubs on my computer – with it not working on any of them – I decided I should make sure it still didn't before I posted that I had already tried all the hubs. Lo and behold – everything seems to work perfectly now! I have no idea what has changed since I last tried this, but it certainly wasn't fixed by a reboot, as I had already tried that multiple times. Thank you for making me try again! I guess I'll just mark this as solved then.
Offline