|
From: Krakora, R. V <rob...@de...> - 2007-08-13 20:38:48
|
Carl: I too had the same problem with the filter driver installed on Windows XP SP2 when calling usb_setconfiguration(). I installed it as "the" driver (not a filter) for the device for which I was trying to set the configuration and the problem went away. Best Regards, Rob Krakora Software Engineer Delphi Electronics & Safety e-mail: rob...@de... phone: 765-451-8574 -----Original Message----- From: lib...@li... [mailto:lib...@li...] On Behalf Of lib...@li... Sent: Monday, August 13, 2007 3:04 PM To: lib...@li... Subject: Libusb-win32-devel Digest, Vol 15, Issue 6 Send Libusb-win32-devel mailing list submissions to lib...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel or, via email, send a message with subject or body 'help' to lib...@li... You can reach the person managing the list at lib...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Libusb-win32-devel digest..." Today's Topics: 1. Re: Composite device - HID + custom (Kitsok) 2. lots of bugs (Carl Kenner) ---------------------------------------------------------------------- Message: 1 Date: Mon, 13 Aug 2007 02:59:10 -0700 (PDT) From: Kitsok <ko...@ki...> Subject: Re: [Libusb-win32-devel] Composite device - HID + custom To: lib...@li... Message-ID: <121...@ta...> Content-Type: text/plain; charset=3Dus-ascii Hello Stephan! Stephan Meyer wrote: >=20 > Yes that's possible. See > http://msdn2.microsoft.com/en-us/library/ms791091.aspx=20 > for details. >=20 Well, as far as I understood I need an inf-file for the part of the composite device.=20 Firstly I've installed libUSB as filter and had unknown device + HID device.=20 After that I've modified an inf file made by the wizard from binary driver distribution.=20 I've removed .cat parts and added "&MI_01" to "devices" part: [Devices] -"PTJoy Composite Device"=3DLIBUSB_DEV, USB\VID_ffff&PID_3015 +"PTJoy Custom Device"=3DLIBUSB_DEV, USB\VID_ffff&PID_3015&MI_01 [Devices.NT] -"PTJoy Composite Device"=3DLIBUSB_DEV, USB\VID_ffff&PID_3015 +"PTJoy Custom Device"=3DLIBUSB_DEV, USB\VID_ffff&PID_3015&MI_01 [Devices.NTAMD64] -"PTJoy Composite Device"=3DLIBUSB_DEV, USB\VID_ffff&PID_3015 +"PTJoy Custom Device"=3DLIBUSB_DEV, USB\VID_ffff&PID_3015&MI_01 After that my device was recognized as "PTJoy Custom Device". The test application successfully seen my devices, but the bulk example failed on=20 if(usb_set_configuration(dev, 1) < 0) If I do usb_set_configuration(dev,0) then I fail on usb_claim_interface(dev, 0) After that I've de-installed libusb filter and tried to install libusb as pure driver for my custom part.=20 In this case the test application doesn't see libusb buses at all... Could you please point me where to dig? Thanks! Best regards, Konstantin Klubnichkin --=20 View this message in context: http://www.nabble.com/Composite-device---HID-%2B-custom-tf4229374.html#a 12123666 Sent from the LibUSB Dev - Win32 mailing list archive at Nabble.com. ------------------------------ Message: 2 Date: Mon, 13 Aug 2007 20:48:54 +0930 From: "Carl Kenner" <car...@gm...> Subject: [Libusb-win32-devel] lots of bugs To: lib...@li... Message-ID: <fab...@ma...> Content-Type: text/plain; charset=3DISO-8859-1 Firstly, I tried installing the filter driver on Vista. It fails, and the test program shows driver version -1,-1,-1,-1. Secondly, I tried installing the device driver on Vista. It installs, and the test program shows the correct driver version, but finds a single bus with no devices. It won't actually find the device until you plug it into a port that it hasn't been in before. Presumably the original windows driver is still installed on whatever port you plugged it into first. Anyway it works, provided you plug it into a new port. Third, I tried installing the filter driver on XP. It installs, and all the USB devices and busses are enumerated correctly. But when I call usb_setconfiguration it freezes and there is no way to end my program's process with Ctrl+Alt+Delete or any other program, only restarting the computer will end it. Another libusb program I have, which I don't have the source code for. crashes but doesn't freeze. I don't know why. I haven't tried the device driver on XP yet. Are there any plans to fix, or at least DOCUMENT, these bugs??? ------------------------------ ------------------------------------------------------------------------ - 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 End of Libusb-win32-devel Digest, Vol 15, Issue 6 ************************************************* ***************************************************************************= ************* Note: If the reader of this message is not the intended recipient, or an= employee or agent responsible for delivering this message to the intended= recipient, you are hereby notified that any dissemination, distribution or= copying of this communication is strictly prohibited. If you have received= this communication in error, please notify us immediately by replying to= the message and deleting it from your computer. Thank you.=20 ***************************************************************************= ************* |