|
From: Nikolai K. <sp...@gm...> - 2010-07-20 11:33:49
|
Hi everyone, I'm implementing this tiny utility called hid-dump [1] and have a problem dumping HID reports. I'm quite new to USB so please excuse me if my assumptions are wrong. The problem with report dumping is that you should know the expected size of the reports to display them timely (in order not to wait for the buffer to fill up). The problem is report descriptor parsing. I can do it, sure, but I think a simple dumping utility is no place for such things. This is aggravated by the possibility of variable size reports in the case report IDs are used (if I understood it correctly). Thus I think that a simple interrupt transfer packet data dumping might be appropriate. However, I have a feeling it's not quite possible with libusb (at least portably) and that I would need to deal with usbfs myself. Am I right, or is there still some way to do it with libusb? Or maybe there is some completely different way? Thank you :) Sincerely, Nick [1] http://digimend.sourceforge.net/#proj-hid-dump |