如何学习多点触摸屏的通信协议并为其编写 C# 应用程序?
我有一台上面有多点触控覆盖层的显示器。它在 Windows 7 上运行良好,但我想用 C# 为 Windows XP 编写一个多点触控应用程序,该应用程序不支持开箱即用的触摸功能。没有任何文档,我给制造商发了电子邮件,但从未得到回复。
不过,该设备可在 Windows XP 上与 Google Earth 配合使用,而 Google Earth 本身并不支持多点触控。所以我认为它会一起生成多种类型的消息,即 Windows 7 的 WM_TOUCH,一种用于 Google Earth COM API 的消息,可能还有它自己的 UDP 或 Windows 消息形式的消息。如何捕获所有通信并学习协议?
I have got a monitor with multitouch overlay on top of it. It works fine with Windows 7 but I want to write a multitouch application in C# for Windows XP which doesn't support touch feature out of the box. There is no documentation whatsoever and I emailed the manufacturer but never got a reply.
However the device works with Google Earth, which doesn't natively support multitouch, on Windows XP. So I think it generates many types of messages together i.e. WM_TOUCH for Windows 7, one for Google Earth COM API, and probably its own messages either in UDP or Windows message form. How can I trap all communications and learn the protocol?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
OllyDbg 是一个非常低级的调试器,可以让你看到很多来回的消息机器。我见过它用于对 USB 设备驱动程序的消息进行逆向工程,以找出如何与某个项目交互。
我怀疑这将是一个很好的起点。它应该允许您确定消息是如何传递的,并且也许可以开始梳理它们的结构。
OllyDbg is a very low-level debugger that allows you to see a lot of the messages going back and forth on the machine. I've seen it used to reverse-engineer a USB device driver's messages to figure out how to interact with an item.
I suspect that would be an excellent place to start. It should allow you to determine how the messages are being passed and, perhaps, start teasing apart their structure.
有一些解决方案,例如 Tuio ,不依赖于 Windows 7。也许 tuio (或替代)实现会让你的生活更轻松。
There are solutions like Tuio around that do not rely on Windows 7. Maybe a tuio (or alternative) implementation would make you life easier.
我最近一直在 Windows 7 平台上进行多点触控开发。我正在使用 UniTuio -- 请参阅 http://xtuio.com 你可以看看我的问题我必须让它工作。我还在使用名为 Touch2TUIO 的 Windows 7 桥接器,它似乎工作得很好。如果您需要使鼠标处于非活动状态,请参阅我的问题:将 Windows 7 与 unituio 结合使用
I've recently been developing on the Windows 7 platform for multitouch. I'm using UniTuio -- see http://xtuio.com You can look at my question I had to get it working. I'm also using a bridge for Windows 7 called Touch2TUIO, it seems to work quite well. If you need to make the mouse inactive see my question here: using windows 7 with unituio