On Tuesday 29 March 2005 12:08 pm, jklaas wrote: > Being a usb gadget freak, I bought this combo mouse and usb controlled > FM Radio for cheap ($10 + shipping). It looks really neat, and I pretty > much figured out how to get the radio to work. Unfortunately, the HID > driver grabs the mouse and I can't grab the device with any other > driver. To top it off, the VID/PID is 04b4:0001, a very common ID for > this particular mouse (Cypress chipset). > > I was wondering if there was any way to get multiple drivers talking to > the same device. Or, alternatively, can I write a libusb program that > will talk to the radio while the mouse has been grabbed by the HID > driver.
libusb provides functions to find what driver is attached to an interface (usb_get_driver_np) and to detach the driver (usb_detach_kernel_driver_np). Using those functions you can detach the default driver (probably usbhid in your case) and then control the device through libusb calls. > In the process of doing this, I updated a couple of perl scripts that > parse sniffusb 1.8 and snoopypro 0.22 plain text logs. These scripts > originally came from the hp5400 scanner project. Let me know if anyone > is interested in them. You can drop them in my mailbox :) Thanks. Jan ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel