Linux: Hard Coding COM port names using simple dmesg & easy UDEV rule. No more random port numbers.

Channel:
Subscribers:
42,100
Published on ● Video Link: https://www.youtube.com/watch?v=MYhh8KjWtMw



Duration: 5:07
973 views
95


If you're like me you have a lot of different devices hooked up to your linux machine that utilise USB-Serial port bridge chips for communications. The problem is that many of them do not have unique serial codes and it's not always practical to inspect the data stream when trying to ascertain which one is the device you need to talk to.

Popular serial bridge chips like the CH340, PL230x and CP210x frequently don't have any unique information available to differentiate devices so the way around it is to assign your own COM port names so long as you keep the devices plugged in to the same physical port.

From dmesg output;
usb 1-9.1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64

... you have all the information you need to build your udev rule ...

SUBSYSTEM=="tty", SUBSYSTEMS=="usb", KERNELS=="1-9.1", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", SYMLINK+="yourUniqueDevName"




Other Videos By Paul Daniels


2024-09-23PROOF that bugs can destroy your valuable electronics #repair
2024-09-20Fixing "No Power" on THE BEST repair starter machine. Macbook Air A1466.
2024-09-12PRO RESULTS $5.00 Atten Hotair mod. ZERO drama XBox, PlayStation & PC HDMI port replacements
2024-08-31$20,000 fence couldn't stop Milo's curiosity :( Now trying concrete blocks under the fence
2024-08-25Defending against the escape artistry of cats
2024-07-25Milo and the Bodger Kickaroo #cat #cattoys
2024-07-18ASMR REAL C/C++ X-platform programming: No cuts, no fakes, ugly honest work. Adding macOS from linux
2024-07-06Mischief managed, for now. Inhibiting hole digging great escape cats
2024-06-22Banned tools - Fibreglass pens belong in the bin; the DeWalt Laser Level reminder
2024-06-10Cat House Update - June 10, 2024
2024-06-03Linux: Hard Coding COM port names using simple dmesg & easy UDEV rule. No more random port numbers.
2024-05-22New Live-Streaming Channel added "PLDLIVE"
2024-05-21LIVE: Building Microscope Ring lights... still
2024-05-20Higher interests
2024-05-17Time of the year again: replacing the gone splat flat-clicker middle wiggler ( Logitech MK220)
2024-05-17LIVE: Time of the year again - replacing the flat clicker middle wiggler that has gone splat
2024-05-17LIVE: **NOT*** Saved by the bell! Big haul of LIES arrived, just in time for the weekend
2024-05-15Rebuilding compass-based OBS automated switcher; Tiny45 to T212. Microscope switching unit
2024-05-14LIVE: Small scale, on demand electronics manufacturing in tiny 3x4 room - supply issues stalling all
2024-05-13LIVE: Small scale, on demand electronics manufacturing in tiny 3x4 room - supply issues stalling all
2024-05-12LIVE: The stupid things we do - building ring lights and meters at 1am



Tags:
Macbook repairs
Electronics design
Open source
Boardview