简体   繁体   English

如何通过USB连接两台Windows计算机以在其虚拟串行端口之间进行通信?

[英]how to connect two Windows computers by USB for communication between their virtual serial ports?

What is needed for the physical USB connection between two Windows computers for communication between their virtual serial ports? 两台Windows计算机之间的虚拟USB端口之间进行物理USB连接以实现其虚拟串行端口之间的通信需要什么? Should I use USB/serial adapters? 我应该使用USB /串行适配器吗?

I am building a .NET terminal app on Windows 10 Pro computer that must use a virtual serial port for communication through a USB connection to the virtual serial COM port at a Windows 7 Pro computer that is running the terminal app on .NET. 我正在Windows 10 Pro计算机上构建.NET终端应用程序,该应用程序必须使用虚拟串行端口通过USB连接与在.NET上运行终端应用程序的Windows 7 Pro计算机上的虚拟串行COM端口进行通信。

The terminal app is the PortChat example app from MSDN's serial port documentation . 终端应用程序是MSDN的串行端口文档中的PortChat示例应用程序。

PURPOSE: I need to test a serial communication .NET app on Windows 10 that will eventually communicate with an embedded STM that is presently unavailable . 目的:我需要在Windows 10上测试一个串行通信.NET应用程序,该应用程序最终将与当前不可用的嵌入式STM通信。

You need two usb/Serial adapters and connect them to each computer. 您需要两个USB /串行适配器,并将它们连接到每台计算机。 Then connect those two serial interfaces together with a Null Modem Cable . 然后,使用零调制解调器电缆将这两个串行接口连接在一起。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM