Use serial UART output as input in other serial terminal on Windows 10

Your goal here is, once you have both microcontrollers connected to your Windows 10 PC and communicating correctly, forward data from one of them to the other through your computer (in a kind of man-in-the-middle or sniffer arrangement).

You can accomplish that easily with Termite, following these steps:

-Download and install Termite from here: https://www.compuphase.com/software/termite-3.4.exe

-Open two instances of the software and go to “Settings” and make sure the parameters of your serial ports are correct (baud rate, data bits, stop bits)

-On one of the ports, in the same settings dialog box choose the other port under the option “Forwarding”

-Click on the bottom with the port parameters on each instance of Termite to open the port and establish the forwarding link

Quoting from Termite’s manual:

With forwarding set up, all data received on the primary port is transmitted through the forward port. All data received on the forward port is transmitted through the primary port. The “sent/received colouring” of Termite is also still in effect: data received on the primary port is in green and data received on the secondary port is in blue.

In this configuration, Termite would typically only be used to monitor the communication between two devices. If you type in text on the edit line and transmit it, this text is only sent through the primary port.

EDIT: I made a quick test of the setup above and I realized there is actually no need to open two instances of Termite. You just have to setup one of the ports and select the other as the forwarding output.

I tested sending text from a serial port on a SBC (minicom Linux window in the screenshot), receiving on COM4 and forwarding to COM5 on a Windows 7 VM. The characters are indeed forwarded to COM5 (scope picture). So the chain is as follows:

SBC Serial (minicom)--->Termite COM4--->Termite COM5--->Oscilloscope

This can be indeed used a very simple serial port sniffer.

Serial Port Forwarding Test
Scope Capture Serial Output

Leave a Comment