|
From: Carl K. <car...@gm...> - 2007-08-14 14:17:27
|
Ah! That is great news... But it doesn't explain why interrupt transfers are not working, since I did claim the interface (using the Device Driver on Vista), and I did use 0x81 as the endpoint (I even checked the list of endpoints to make sure it was right). Anyway, since I don't really need interrupt transfers, and I'm quite happy to poll the device (it reports its state, not transitions, so polling works fine), I'll try it without claiming the interface. I see the code you sent doesn't claim the interface. By the way, is it possible to send USB control messages without using libusb-win32? 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 > |