2

我正在尝试围绕某些硬件提供类似 AT/Modem 的接口。在这篇文章之后,我让服务器使用 openpty() 设置了一个 pty。

现在,我可以使用打开从属设备并通过 read() 和 write() 调用进行通信的客户端应用程序按预期与服务器通信。

但是,我也希望能够使用屏幕命令或 minicom 手动向从站发出命令。但是,在尝试执行此操作时,服务器似乎从未收到任何数据。这种方法有什么重要的地方吗?

4

1 回答 1

0

So the client app works with the hardware, but minicom does not. Very likely the client app is properly setting the baud rate and number of stop bits (at least those), and you haven't asked minicom to do the same. You need to get those settings right.

于 2011-04-27T01:45:00.800 回答