Menu

#52 How to get report from other pipe when usb_control_msg

closed
nobody
None
5
2012-07-06
2008-08-15
Anonymous
No

I have a device which return 8 bits data by interrupt pipe when I send "C0 08 00 01 00 00 08 00" from control pile, so I call usb_control_msg(dev, 0xC0, 8, 0x0000, 0, tmp, 8, 5000); I monitor the control data were successed sent and data returned by Bus Hound. But the input buffer tmp was empty and usb_control_msg return 0, how can I get the returned data?

This device is a HID device, the usb_claim_interface, usb_bulk_write, usb_bulk_read were all failed, can only controled by usb_control_msg. I also tried Windows function ReadFile(), It can got other returned data but can not get any data when call usb_control_msg().

Discussion