Port Not showing up (CH340) in ubuntu (Solution)

From Ubuntu 22 onwards, and working with Arduino 2, connecting a USB TTL (CH340 variant) may not populate a serial port for seeing the logs

To confirm if USB-TTL is recognized, connect and check the output as follows in terminal:

lsusb

It will output to console like this

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 018: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Bus 001 Device 014: ID 0483:3748 STMicroelectronics ST-LINK/V2
Bus 001 Device 004: ID 8087:0026 Intel Corp. AX201 Bluetooth
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Here CH340 is our USB TTL Device, But Arduino is not able to recognize as a TTL Device

There are 2 Solution to solve the Above Problem

Solution 1
As TTYUSB port is tied to a Braille screen reader by Default, if not being used, the package can be uninstalled. To do this, remove the package with below command

sudo apt remove brltty 

After running this command, plug out and then plug in your CH340 TTL Device, should be recognized in Arduino, can also be confirmed in following Terminal Command

admin@virtualbox:~$ ls /dev/ttyUSB*
/dev/ttyUSB0

This confirms your TTL Device Getting Recognized

Option 2
Note: Choose option 2 only if you have not tested Option 1
Open Terminal and edit the file with following command

sudo nano /usr/lib/udev/rules.d/85-brltty.rules

search and Comment out the line which looks like

ENV{PRODUCT}=="1a86/7523/*", ENV{BRLTTY_BRAILLE_DRIVER}="bm", GOTO="brltty_usb_run"

After running this command, plug out and then plug in your CH340 TTL Device, should be recognized in Arduino, can also be confirmed in following Terminal Command

admin@virtualbox:~$ ls /dev/ttyUSB*
/dev/ttyUSB0

This confirms your TTL Device Getting Recognized

I moved your topic to an appropriate forum category @sr9448.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

@sr9448, is there a question? If yes, continue reading :wink:

Is the board recognised by the operating system? Run lsusb to tell you.

dmesg can also reveal things. Run dmesg -w without the board connect; the application will not close. Next connect the board and check the additional output that you get; after that you can kill the application.

One suspect to be aware off is BRLTTY; uninstall it if you see it in the dmesg output.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.