使用串行 UART 输出作为 Windows 10 上其他串行终端的输入 [英] Use serial UART output as input in other serial terminal on Windows 10

查看:73
本文介绍了使用串行 UART 输出作为 Windows 10 上其他串行终端的输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用UART通信来同步不同厂商的两个微控制器的时钟.如何将一个微控制器的输出作为输入中继到另一个?(Windows 10)

是否有我应该使用的特定程序?目前,两个微控制器都可以与自己的 Putty 终端通信,但我希望它们也可以相互通信.

解决方案

您的目标是,一旦您将两个微控制器都连接到您的 Windows 10 PC 并正确通信,通过您的计算机将数据从其中一个转发到另一个(以一种中间人或嗅探器的形式).

您可以使用 Termite 轻松完成此操作,步骤如下:

-从这里下载并安装 Termite:

I would like to use UART communication to synchronize the clocks of two microcontrollers of different manufacturers. How can I relay outputs from one microcontroller to the other, as input? (Windows 10)

Are there specific programs I should use? Currently both microcontrollers can communicate with their own Putty terminals, but I would like to let them communicate with each other as well.

解决方案

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.

这篇关于使用串行 UART 输出作为 Windows 10 上其他串行终端的输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆