0

我正在使用带有 Java 的RXTX连接到串行端口。但是现在我必须测试通信是否正常工作?这个怎么做。我是否需要调制解调器,或者我们可以在没有调制解调器的情况下在本地测试任何方式。

这是我要测试的程序http://rxtx.qbang.org/wiki/index.php/Two_way_communcation_with_the_serial_port

4

2 回答 2

2

On Windows you can use a 'null modem emulator' called com0com. This registers 2 dummy com ports onto the OS, which will communicate between each other.

So, you'd need to connect to it 'twice', one for each end of the serial connection. com0com also has variants called com2tcp & hub4com, if that's more appropriate for you.

HTH

于 2012-01-27T18:55:42.210 回答
1

Uh, no you don't need a modem(?). You can use a null modem serial cable to do loopback testing from one COM port to another. You can do this on a single PC or two different computers. If you don't have enough COM ports, use a USB to serial converter.

于 2012-01-27T18:49:01.410 回答