Hello trying to learn working with UART. According this article https://docs.onion.io/omega2-docs/uart1.html i connected TX and RX pins. Form ubuntu open two terminals and open ssh session from both.
run cat /dev/ttyS1 in one and echo "test" > /dev/ttyS1 in other. But i see my "test" message only for a moment of time cause my cat continue print empty strings to terminal. what im doing wrong? is some termination symbols should be sent from echo terminal?
Also i redirect cat output to text file and found i receive multiple "test" messages.
Update: pyserial working as expected.
from serial import Serial
from time import sleep
ser = Serial('/dev/ttyS1', baudrate=115200, timeout=1)
while True:
data = ser.readline()
print(data)
sleep(0.5)```