|
From: Carl K. <car...@gm...> - 2007-08-14 18:05:30
|
OK, I tried it without setting the configuration or claiming the interface, and it didn't work on my Vista computer with the Device Driver. I then tried it without claiming the interface, but still setting the configuration and it worked. The problem is that setting the configuration is the call that crashed it on the filter driver on XP. So is there some way of knowing beforehand whether a call to SetConfiguration is going to freeze my program and force the user to reboot, or not? On 14/08/07, Xiaofan Chen <xia...@gm...> wrote: > On 8/14/07, Carl Kenner <car...@gm...> wrote: > > I can't use HID as a backend, because the windows HID isn't working. > > Presumably because the SIXAXIS uses a malformed HID descriptor, and it > > won't let me read this feature report. I'm reasonably confident the > > device isn't a keyboard or mouse, it seems to just be a HID joystick > > or gamepad. Reading the same feature report with libusb is easy. Once > > I have read this feature report, the device will start sending input > > reports to the computer, but before that it won't. > > > > Now all the other sixaxis drivers for windows use the libusb filter > > driver to read this one feature report, while windows still sees it as > > a gamepad. So it must work on some computers. But it doesn't work on > > the computers I tested it on. > > I see. So it is a gamepad. > > Now I understand why your interrupt transfer will not work. > You do need to claim the interface (use the device driver, set the > configuration, claim the interface) in order for the interrupt transfer > to work. You can try this. > > You do not need to claim the interface to get control transfer to work. > Therefore you can use the filter driver. If I am not wrong, you do not > need to (and probably you can not) set configuration since the > HID driver has already done that and claim the interface. I am not > 100% sure here though. You can try this. > > Google found this and maybe you can give it a try. > http://www.bricklife.com/library/sixaxis-init.c > > > Regards, > Xiaofan > > > > > Regards, > Xiaofan > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > |