Artificial intelligent assistant

find serial com port I'm using a `CH341-UART Converter` for sending some string data to USB port. How can I find the **COM** port number for connected device? For example in this program: import serial ComPort = serial.Serial('COM24') # open COM24 ComPort.baudrate = 9600 ComPort.bytesize = 8 `COM24` is my port. But how can I find the right com port number?

Under linux your devices have not meta-names like `com1` or so. Your usb-adapter is added to the `/dev`-directory with a driver specific name. The most usb-uart adapter use the name `/dev/ttyUSB*` where the `*` is a number beginning at 0. The best way to get this name is to view the changes of kernel messages via `dmesg` before and after plugin of the adapter. You should get something like that:


usb 4-2: ch341-uart converter now attached to ttyUSB0


So you have to use '`/dev/ttyUSB0`' instead of `com24`.

But access to a device node is restricted to the root user. So you have to workaround this.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy c14b271bdb33f6a734c4b0241d453944