Microsoft Code PlatformIO extension conflicts with brltty Ubuntu 22.04 LTS (USB ID 1a86:7523)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
brltty (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When using the PlatformIO extension within Microsoft Visual Studio Code to upload firmware to a ESP32 based microcontroller attached via USB, the upload fails with the following repeated error messages in syslog:
"brltty: Ignored Byte: xx" Where xx is a different hexadecimal value.
The problem manifests itself with a timeout and a "Looking for upload port...
Error: Please specify `upload_port` for environment or use global `--upload-port` option." message in PlatformIO.
This error was not present in Ubuntu prior to upgrading to 22.04.
Steps taken to resolve:
1. Changed USB cable between powered hub and microcontroller
2. Attempted upload with USB hub powered off
3. Attempted upload from other USB ports
4. Defined USB port microcontroller is connected to in platformio.ini by adding the parameter "upload_port = /dev/ttyUSB0"
Current workaround:
Uninstall the brltty package:
"sudo apt remove brltty"
description: | updated |
description: | updated |
Your log shows:
Apr 28 19:03:14 HIDDEN kernel: [ 1063.197438] usb 3-2.1: new full-speed USB device number 7 using xhci_hcd
Apr 28 19:03:14 HIDDEN kernel: [ 1063.321857] usb 3-2.1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
Apr 28 19:03:14 HIDDEN kernel: [ 1063.321866] usb 3-2.1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
Apr 28 19:03:14 HIDDEN kernel: [ 1063.321869] usb 3-2.1: Product: USB Serial
And /lib/udev/ rules.d/ 85-brltty. rules says:
# Device: 1A86:7523 =="1a86/ 7523/*" , ENV{BRLTTY_ BRAILLE_ DRIVER} ="bm", GOTO="brltty_ usb_run"
# Baum [NLS eReader Zoomax (20 cells)]
ENV{PRODUCT}
What is the device in question? /usr/share/ misc/usb. ids says it is QinHeng Electronics, "CH340 serial converter" which does sound too generic for brltty.