Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4306

General discussion • How can I list SerialPort with its name and caption?

$
0
0
If my device connects with Windows system, in device manager it will show like this:
serialport.png
USB-SERIAL CH340 (COM3)

The USB-SERIAL CH340 is the caption of the serial port and the COM3 is the name of the serial port.

I know I can pass the command

Code:

dmesg | grep tty
To get the serial port name in Raspberry Pi

However, I don't know how to get the serial port caption.

And I want to get the name and caption of the serial port at the same time (just like in Windows), how can I achieve this?

Statistics: Posted by mywatermelon — Wed Apr 17, 2024 1:53 am



Viewing all articles
Browse latest Browse all 4306

Trending Articles