You should know in detail what the data are which are sent towards the pico on the RS232 lines.
It is especially needed to 'see' whether there are CR, LF, start or stop characters. I would prepare a small script like this, not tested:
This code will not work if data come in at high rate (as print is slow). But should do for small commands at low rate.
adapt the code for your devices and collect some commands for each device.
It is especially needed to 'see' whether there are CR, LF, start or stop characters. I would prepare a small script like this, not tested:
Code:
from machine import UART, Pin# adjust for your uart boarduart1 = UART(1, baudrate=9600, tx=Pin(4), rx=Pin(5))while True: c = uart1.read(1) print("- {c:02x} {c}")
adapt the code for your devices and collect some commands for each device.
Statistics: Posted by ghp — Tue Jul 23, 2024 7:36 pm