Repository navigation
Two USB questions - HID raw 'emulation' and distinguishing hardware where VID/PID are same but strings are diffferent #737
|
I have some USB devices which are allegedly HID compliant but aren't, where the linux solution to driving them is to have something use the linux /dev/hidrawXX device. Having spent the last couple of weeks digging around (with lots of help from Rene) with USB touchscreens, which wasn't easy, I am wondering how difficult it would be to have a CHIDRaw class which is intended to be derived from for the specific devices, so that I would just need to provide implementations for Configure and ReportHandler, which i think would let me do what I want. The second part of my question is that I have come across devices where the 'manufacturer' has reused an existing VID/PID set, but the report descriptor is incorrect. (I think I remember reading about an issue with Roland synths, where the latter part, a wrong report descriptor is true, at least, and some patches were applied to work around that for the relevant VID/PID). As an example, I have a device which uses 0EEF:0005 as VID:PID. This is D-WAV Scientific Co., but they don't have a device ID 5 listed. I have a screen (made by Kedei) which uses the same VID:PID and it works (after some patches from Rene), and I know Rene has a similar screen made by Waveshare with the same VID:PID that also works. It looks like within usbdevicefactory I would have to do something like: Is there a simpler/better way to do it? |
Replies: 3 comments 1 reply
|
Yes, there is: Since Circle 51 many I'm going to think about the USB HID raw feature. |
|
Actually there is already a generic |
|
Here is a simple USB HID device research tool, which contains an USB HID raw driver (not all methods tested) and an USB HID report descriptor parser (developed using AI Copilot / Claude Sonnet 5.5). Because it's not perfect, I do not add it to Circle and post it here. See the README in the archive for more info! |
Here is a simple USB HID device research tool, which contains an USB HID raw driver (not all methods tested) and an USB HID report descriptor parser (developed using AI Copilot / Claude Sonnet 5.5). Because it's not perfect, I do not add it to Circle and post it here. See the README in the archive for more info!
usbhidraw.zip