tmarks
Posts: 13
Joined: Tue Mar 05, 2013 2:34 am

usb core hiddev hidraw issues

Tue Apr 30, 2013 5:23 am

I'm having some issues with sending commands over usb.

A particular command I send for some reason makes the usb core think the device has disconnected/reset. This introduces issues with my program as I send commands to activate a protocol for communicating.

If the device is detected as reset, usb core automatically queries for a device report which resets the line back to the generic hid protocol.

I'm only encountering this issue on the pi, whereas using a linux machine - no resets are detected using the exact some code.

I was using libusb to handle transfers but have recently resorted to hidraw and still same problem. Thought I'd search for information here before I recompile the kernel drivers to include commenting.

tmarks
Posts: 13
Joined: Tue Mar 05, 2013 2:34 am

Re: usb core hiddev hidraw issues

Tue Apr 30, 2013 6:46 am

Well, lucky for me it was a hardware issue. By chance we had a brand new spare raspberry pi and swapped the sd card straight into it and now everything is working fine.

Return to “C/C++”