I have an AMD desktop, running Linux Mint 22.1.
I've been playing with some Arduino clone boards (UNO, MEGA and NANO), all use the CH340 USB interface device.
The odd bit is that any one of the boards will connect, and appears on a USB port in the IDE (both IDE 1 and 2) - but only once. If I disconnect the board, it will not reconnect again (apparently until I reboot the machine - not sure of this). When it is connected, it behaves perfectly normally - uploads, operation, etc., but after disconnection/reconnection, I only get port dev/ttyS0. - All three boards do the same. If I reboot the machine - sometimes it will work again (once) - sometimes not.
The USB port is recognised by the machine:
keith@keith-gigabyte:~$ lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 046d:081b Logitech, Inc. Webcam C310
Bus 002 Device 002: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 14cd:168a Super Top Elecom Co., Ltd MR-K013 Multicard Reader
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 008 Device 005: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 006 Device 004: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 006 Device 003: ID 04b4:6022 Cypress Semiconductor Corp.
Bus 006 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
The marked line disappears when I unplug the board.
Until recently the machine had LM 21 installed, and I had no problems. Can anyone offer any suggestions - I'm stuck.
Regards
Update to my post above which may help somebody:
I tried the command "sudo dmesg | tail" immediately after removing and plugging back my board, and found that the application BrlTTy apparently "commandeers" the port using the CH341. (the machine seems to identify the device as either CH340 or CH341 - it does seem to be the same one, because it disappears when th eboard is removed). I am not 100% sure of this, but that what was the message I got apparently indicated when I had the problem.
BrlTTY is a Braille user application, installed by default in Linux Mint. I removed it, and rebooted the machine, and after that, the USB port shows up fine (dev/ttyUSB0).
keith@keith-gigabyte:~$ sudo dmesg | tail
[ 27.474753] logitech-hidpp-device 0003:046D:4023.0003: HID++ 2.0 device connected.
[ 103.132618] usb 3-2: USB disconnect, device number 2
[ 103.132938] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[ 103.132972] ch341 3-2:1.0: device disconnected
[ 110.128060] usb 3-2: new full-speed USB device number 4 using ohci-pci
[ 110.320760] usb 3-2: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[ 110.320769] usb 3-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 110.320774] usb 3-2: Product: USB Serial [ 110.323290] ch341 3-2:1.0: ch341-uart converter detected [ 110.335007] usb 3-2: ch341-uart converter now attached to ttyUSB0
I'm no Linux expert, and cannot explain why this should happen: perhaps someone out there can explain it. I only used the commands I listed above because I have used them for other problems.
To make the world user-friendly, some operating systems associate the Braille reader with the CH340 chip based on VID and PID of the CH340. So if you plug-in a Braille reader it 'works'. Unfortunately a CH340 is a very generic chip so the OS does not have any idea if it is indeed a Braille reader or not.
thanks for that Sterretje - I didn't know. Just glad I got there in the
end because it was getting really annoying. I am lucky enough still to
have my sight, so I just uninstalled brlTTY.
Unfortunatelly, very similar problem at OpenSuse Leap 15.4 Linux. There is Usb/Serial converter CH340 named: QinHeng Electronics USB Single Serial, but Arduino 2.0.4 does not see any port. How to solve it?
Hi, solved by using another USB port (direct at PC motherboard, no front pannel) and adding my user to groups: dialout, lock, tty, uucp . Donť know, which of the change exactly solved the problem, but now connection to ESP32−S3−DevKitC−1 works, after hours of experiments... Port appeared as: ∕dev∕ttyACM0 . Thanks God...
Please do NOT post twice about the same problem. Pick one topic (it's often better to start your own topic and refer to information that you've found).
Great that you solved it and the feedback. Adding yourself to the groups (dialout should have been sufficient but maybe OpenSuse works differently) does not solve problems where the board is not detected by the operating system, it only solves problems during the actual upload.