If my device connects with Windows system, in device manager it will show like this:
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 commandTo 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?
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
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