ch340 vs brltty

Running Tumbleweed snapshot 20211021 on ASUS TUF 15 laptop

When I connect a pseudo Arduino Nano to a USB port, it looks like it gets overridden by brltty


dmesg
[13356.164531] usb 5-2: new full-speed USB device number 3 using xhci_hcd
[13356.326951] usb 5-2: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[13356.326960] usb 5-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[13356.326963] usb 5-2: Product: USB Serial
[13356.332563] ch341 5-2:1.0: ch341-uart converter detected
[13356.346805] usb 5-2: ch341-uart converter now attached to ttyUSB0
[13356.994591] usb 5-2: usbfs: interface 0 claimed by ch341 while 'brltty' sets config #1
[13356.997842] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[13356.997874] ch341 5-2:1.0: device disconnected
[13358.152465] input: BRLTTY 6.4 Linux Screen Driver Keyboard as /devices/virtual/input/input61

This is a knockoff (LAFVIN) Nano (the QinHeng device listed by lsusb below) that I CAN hook up to other non-SUSE Linux computers.


lsusb
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 003: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Bus 005 Device 002: ID 04ca:4005 Lite-On Technology Corp. Bluetooth Radio
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Anybody got an idea about what’s going on here? Or more importantly, how to fix it? Since ttyUSB0 gets disconnected, it never appears in the Arduino IDE.

Thanks in advance for any help.

Welcome to the forum!

What I think/thought is going on is that a pseudo Arduino Nano is having different hardware then the real Arduino Nano and the USB chip used in the pseudo Arduino Nano is also used for BRLTTY

You can just blacklist that USB driver, see https://askubuntu.com/questions/1266804/blacklist-uas-drivers-in-kernel

At the same time, searching for “ch341-uart” gives me How to Install CH340 Drivers and based on that it looks to me like the Arduino IDE should work with the driver.

Thanks for the response, marel. I looked at the links you provided and was a little confused about which USB driver you were suggesting for blacklist. Did a little more research on BRLTTY and decided to remove it from my system altogether since I have no use for it, and since it seems that I could put it back rather easily if needed. dmsg now looks like this when I plug in the pseudo Nano

[CODE
] 676.152228] usb 5-2: new full-speed USB device number 4 using xhci_hcd
676.314288] usb 5-2: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
676.314297] usb 5-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
676.314300] usb 5-2: Product: USB Serial
676.319155] ch341 5-2:1.0: ch341-uart converter detected
676.333494] usb 5-2: ch341-uart converter now attached to ttyUSB0



That's what I was lookng for. With the ch341 properly attached to ttyUSB0, the Arduino IDE has been able to upload sketches to the pseudo Nano. I haven't yet noticed any side effects to removal of BRLTTY, so I'm going to call this a win for now. Thanks again for your response!