Minicom is disabled when trying to communicate using a USB cable for RS232

I use a USB cable for RS232 to communicate between two Linux machines. On a machine with a USB side connected, I run:

dmesg | grep tty 

And get the following result:

 console [tty0] enabled serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A 00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A 00:0b: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A usb 2-1.2: pl2303 converter now attached to ttyUSB0 

So far so good. Now I run minicom -s and using "Serial Port", I change "Serial Device" to "/ dev / ttyUSB0", "BPS / Par / Bits" to "115200 8N1" and select "No" for "Hardware Flow Control" and "Software Flow Management."

I keep these defaults, exit minicom and run minicom again.

Minicom opens, however, it remains offline. I cannot enter any commands. Another Linux machine connected to the serial port side is up and running. Why can't I connect to this other Linux machine?

+4
source share
1 answer

Minicom decides offline / online depending on whether the DCD line is connected or not. I created a null modem cable and checked that the data was transferred, as in any case, minicom shows offline. As I looked through the code, I found that it was checking the DCD line connection to set a variable for online.

This library that I used to test on the java serial port https://github.com/RishiGupta12/serial-communication-manager

0
source

Source: https://habr.com/ru/post/1495777/


All Articles