使用vc++2008与USB端口通信
我想通过USB端口与halios系统(硬件)通信。我有一个代码显示设备已连接。我使用 USBTrace 显示从设备到主机进出的字节数。但我不知道如何在vc++2008和使用windows xp上实现这个。
I want to communicate to halios system(hardware) through usb port. I have a code which shows that the device is attached. I used USBTrace which shows that how many bytes are going in and out from the device to the host. But I do not know how to implement this is vc++2008 and by using windows xp.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果这是 Elmos 光学传感器 IC 的评估板我猜想其中涉及到 USB 转串口转换器。您可以通过查看 Windows 设备管理器以查看连接设备时出现的新 COM 端口来确认这一点。
如果是这种情况,您可以使用 与 Windows XP/win32 进行串行通信的基本示例 但您可能需要联系 Elmos命令协议。
If this is an evaluation board for an Elmos optical sensor IC I would guess that a USB to serial converter is involved. You could confirm this by watching Windows Device Manager for a new COM port appearing when you attach the device.
If that's the case you can use Basic example of serial communication with Windows XP/win32 but you may need to contact Elmos for the command protocol.