* How to approach a USB HID device with a specialized interface???
@ 2010-10-13 15:41 Rick L. Vinyard, Jr.
0 siblings, 0 replies; only message in thread
From: Rick L. Vinyard, Jr. @ 2010-10-13 15:41 UTC (permalink / raw)
To: Linux Input, Linux USB
Hello,
I've been playing around with the Ergodex DX1 keypad and am trying to
figure out how to approach the driver.
It has two USB interfaces.
Interface 1:
- A pure USB HID keyboard interface
- No problems with the stock usbkbd driver
Interface 2:
- Vendor specific interface
- Programs keys with keycodes emitted on interface 1
- Controls two LEDS
- Emits events when an unmapped key is pressed
- Sets/clears device test mode
I've tested the device using libusb to program the keys and control the
LEDS. But, I think there are several advantages to a driver:
- Supporting the EVIOCGKEYCODE and EVIOCSKEYCODE ioctls
- Handling suspend/resumes properly
- Creating LED class devices
- Emitting MSC_SCAN events on unmapped keys
I've been digging through drivers/hid and drivers/usb/keyboard looking for
examples of how to pick up a specific interface and handle it, but I
haven't found one yet.
Any suggestions?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-10-13 16:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-13 15:41 How to approach a USB HID device with a specialized interface??? Rick L. Vinyard, Jr.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).