|
From: Stephan M. <ste...@we...> - 2006-03-27 17:05:33
|
I'm no HID expert, but I think what you're trying to accomplish can be done completely without libusb-win32: Solution 1): Add feature reports to your mouse. So that you can use Windows' HidD_SetFeature() and HidD_GetFeature() API functions to send vendor specific commands to your device (I haven't done this on my own, so I don't know if this solution actually works). Solution 2.) If 1.) doesn't work, then move your 'control endpoint' to a seperat interface that exposes itself as a vendor specific HID, i.e. build a composite device that consist of a HID mouse and of a custom HID. Then use the second custom HID interface to send your vendor specific commands. Stephan > Hello, > > I am developing an USB pointer device. The device acts as a 'normal' > UBS mouse, so it is recognized by every OS without using special > drivers. This all works fine. > > I need to be able to change configuration settings on the device as > well. For this I added an extra OUT endpoint where I can send special > commands to; this is used for configuring the device and uploading new > firmware. > > With linux, the HID mouse is claimed by the usbhid driver right away, > but using the usb_detach_kernel_driver_np() function I can still take > control over the device. libusb-win32 does not support this call, > however. > > Summarizing: I want the normal windows driver to handle my mouse, but > still be able to talk to the other endpoints using libusb. What would > be the best way to handle this with libusb-win32 ? > > Thank you very much, > > > > -- > :wq > ^X^Cy^K^X^C^C^C^C > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 |