Read a serial communication between two other boards

I'm trying to basically spoof a serial communication between two other boards. Is that feasible?

To give more context:
I have two boards that communicate using serial communication. I want to understand how they communicate to reverse engineer one of them (that has an issue in it)

Being able to do the spoof thing may depend more on the skill of the programmer.

Yes, that can be done. I would suggest you use an Mega which has multiple hardware serial ports. Use the default Serial for you connection to your PC. Use Serial1 connected to board #1 and Serial2 connected to board #2.

When you see a char available on Serial1 you read it, send it to Serial and Serial2
When you see a char available on Serial2 you read it, send it to Serial and Serial1

1 Like

Or buying a cheap logic analyzer, which comes for about 10 bucks.
This might be more suitable to find out the right bautrate, etc.

But keep an eye on the voltages of the other boards. If they are no Arduinos or something, they might fry your Mega or logic analyzer.

I don't think that you have to intercept. You can hook RX1 of the mentioned Mega to TX of one board (in parallel with existing wiring) and RX2 to TX of the other board (again in parallel with the existing wiring).

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.