pozz
2023-02-20 10:16:09 UTC
Many times I need to snif and log on a file the activity between two
nodes that talk over a full-duplex UART (separate TX and RX lines).
Just an example, consider a host MCU that talks with a modem through AT
commands. It's a half-duplex protocol because the MCU sends the AT
command and the modem replies. However the modem is able to send URC
messages that can be emitted at any time.
I think the better approach is to use two different UART/USB converters,
one for each signal (of course, both signals goes to the RX inputs of
the converters).
What about the sofware on the PC? It should open two serial ports and
monitors both of them, joining together the messages on a single file. A
great feature would be to have a timestamp for each message, where a
message is "\r\n" delimited.
Is there something already available that I can use?
nodes that talk over a full-duplex UART (separate TX and RX lines).
Just an example, consider a host MCU that talks with a modem through AT
commands. It's a half-duplex protocol because the MCU sends the AT
command and the modem replies. However the modem is able to send URC
messages that can be emitted at any time.
I think the better approach is to use two different UART/USB converters,
one for each signal (of course, both signals goes to the RX inputs of
the converters).
What about the sofware on the PC? It should open two serial ports and
monitors both of them, joining together the messages on a single file. A
great feature would be to have a timestamp for each message, where a
message is "\r\n" delimited.
Is there something already available that I can use?