
Tarasik (Customer) asked a question.
I'm trying to figure out how to work with the serial port. So far, without success. I ask for help.
I created the simplest program for communication between the PLC and the terminal utility Hercules. The ports settings are the same. I am sending the string "Hi From BRX"
In hex: 48 65 6C 6C 6F 20 46 72 6F 6D 20 42 52 58
But in the terminal utility I get
What am I doing wrong?
Thank you
The problem is found. The levels are incompatible, and the signal is inverted. When I connected the oscilloscope, everything became clear. I was stupid :) trying to make friends RS232(+/-5V) and UART(0 - 5V)
Now I need to find the right adapter, because the device I'm trying to communicate has a built-in 0 - 5V UART on board
See the pictures below
In both cases I send 0000 1000
UART