I have Rock Pi S V13, that has 4 UART ports.
I'm already connecting to the board via serial console on /dev/ttyS0.
How can I find out what are the other ports assignments/paths?
I have tried to use a Python script to detect the output by using an FTDI to USB board with no luck (the voltage and baudrate are correct).
The Python script taken from manual:
import serial
import time
# I've tried /dev/ttyS2 and /dev/ttyS4
ser = serial.Serial(port='/dev/ttyS4', baudrate=115200, timeout=0.1)
print(ser.name)
try:
while True:
ser.write(b'hello')
time.sleep(0.5)
except KeyboardInterrupt:
ser.close()
Running
outputs
and
outputs