如何通过本地套接字连接正确连接到 Optivote 设备?
Optivote IR8 基本上是一个带有一堆遥控器的投票系统,可以将红外信号发送到接收器,接收器通过 USB 端口连接到计算机。我正在尝试用 Flash 编写自己的小软件。
Optivote 接收器通过虚拟串行端口与软件通信。当我通过 PuTTY 连接到该端口时,只要按下遥控器上的任何按钮,我就可以看到信号。
虽然,当我通过 Serproxy 连接到该端口时(它将套接字连接中继到串行端口连接),遥控器似乎不起作用。我每隔半秒左右就会收到相同的信号,一遍又一遍。我猜接收者正在尝试以这种方式进行某种握手。
我不明白的是 PuTTY 做了什么而 Serproxy 没有使串行端口连接工作。也许有一些正确的方法可以在我连接时告诉另一端?
(我使用Serproxy,因为Flash应用程序无法直接连接到串行端口,但支持套接字连接)
Optivote IR8 is basically a voting system with a bunch of remote controllers, which can send IR signals to a receiver, which is connected to a computer through a USB port. And I'm trying to write my own little software for that with Flash.
Optivote receiver communicates with software through a virtual serial port. When I connect to that port through PuTTY, I can see signals whenever I press any button on the remote controllers.
Although, when I connect to that port through Serproxy (which relays a socket connection to a serial port connection), the remote controllers don't seem to work. I just get the same signal every half a second or so, over and over. I'm guessing the receiver is trying to make some kind of handshake this way.
The thing I can't figure out is what PuTTY does that Serproxy doesn't to make the serial port connection work. Maybe there's some proper way to tell the other end when I connect?
(I use Serproxy, because Flash applications cannot connect to a serial port directly, but supports socket connections)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现我无法让 serproxy 工作,直到我遇到一个新版本
http: //code.google.com/p/tinkerit/wiki/TinkerProxy
I found I could not get serproxy to work, that was until I came across a new version
http://code.google.com/p/tinkerit/wiki/TinkerProxy