首页 文章

如何在客户端应用程序中使用“控制 endpoints ”(默认 endpoints )?

提问于
浏览
0

我有USB HID设备,它只有控制 endpoints . Microsoft的"USB Device Viewer"表示0 endpoints ,因为它永远不会计算控制 endpoints .
我基本上不是黑盒子 . 我所知道的是,它能够进行简单的串行通信("the other end of a cable"上有1-Wire) .
对于硬件,有人说谷歌(显然是组成) .

我红色here配置USB设备后,可以使用控制 endpoints 进行设备特定用途 .
我的问题是:
Is it possible under Windows 7 using WDK to use control endpoint in user space application?

If not, is there any other way?
If yes, how?

HidD_GetHidGuid(GUID);甚至没有列出我的设备 . 可能是因为设备声称不仅仅是设备描述符中的类0x00:
*bDeviceClass: 0x00 -> This is an Interface Class Defined Device*
但在界面描述符中:

bInterfaceClass:                   0x00
*!*CAUTION:  0 is a Reserved USB Device Interface Class

1 回答

  • 0

    你有没有运行Wireshark? (虽然我相信Wireshark不监视Windows上的USB - 不确定 . 还有其他USB数据包嗅探器)

    使用wireshark,您可以监控与设备的所有通信 .

    虽然我不知道WDK,但我的印象是很多人,如果不是大多数人都使用libusb(http://libusb.info/) . 有一个Windows版本可以在32位和64位版本上运行 . 该库非常易于使用,并且可以访问所有 endpoints .

相关问题