阅读:3539回复:1
HID 设备 Readfile 失败 问题
自制 HID设备,report ID 17 为 Output , Report ID 18 为 Input. endpoint 1 为中断输入和输出。
Writefile 没问题, 能收到 report ID 17的数据包,然后发回Report ID 18给计算机, 但Readfile就返回0. Bushound能看到数据,单片机确实有发数据包。 Result = ReadFile (ReadHandle, InputReport, 65, &NumberOfBytesRead, (LPOVERLAPPED) &HIDOverlapped); Result = WriteFile (DeviceHandle, OutputReport, 65, &BytesWritten, NULL); |
|