| 
      
      
      From: Krakora, R. V <rob...@de...> - 2007-08-15 19:18:14
      
     | 
| Xiaofan: I ported libhid myself and it took very little effort. I extended the API to not only allow the selection of an interface, but also the selection of a configuration. It works very well for me and is more straight forward than Microsofts HID API. If you want my port, I can zip it up and send it to you or upload it to an FTP site. 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: Wednesday, August 15, 2007 3:07 PM To: lib...@li... Subject: Libusb-win32-devel Digest, Vol 15, Issue 11 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: lots of bugs (Carl Kenner) (Xiaofan Chen) 2. Re: lots of bugs (Carl Kenner) (Xiaofan Chen) 3. Re: lots of bugs (Carl Kenner) (Carl Kenner) ---------------------------------------------------------------------- Message: 1 Date: Wed, 15 Aug 2007 07:11:34 +0800 From: "Xiaofan Chen" <xia...@gm...> Subject: Re: [Libusb-win32-devel] lots of bugs (Carl Kenner) To: lib...@li... Message-ID: <a27...@ma...> Content-Type: text/plain; charset=3DISO-8859-1 On 8/14/07, Krakora, Robert V <rob...@de...> wrote: > I ported libhid to Windows as it uses libusb on which libusb-win32 is > based. It takes care of claiming the interface for interrupt endpoints > and has an API call to retrieve data from interrupt endpoints. I added > an extra parameter to one of the API functions so that the configuration > as well as the interface could be selected. Previously, I was using the > Windows HID API which was quite confusing to use. Here is the link to > libhid: > Thanks for the info. Where can I get this Windows port of libhid? I am monitoring the libhid list and have not heard this. Regards, Xiaofan ------------------------------ Message: 2 Date: Wed, 15 Aug 2007 07:59:55 +0800 From: "Xiaofan Chen" <xia...@gm...> Subject: Re: [Libusb-win32-devel] lots of bugs (Carl Kenner) To: lib...@li... Message-ID: <a27...@ma...> Content-Type: text/plain; charset=3DISO-8859-1 On 8/15/07, Carl Kenner <car...@gm...> wrote: > 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. Kind of strange. Which version of libusb are you using? Still I have no Vista... > 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? I am not so sure here. But the HID driver can be the issue. That is why I asked Stephan to add the native Windows HID backend to libusb-win32. When I first started with libusb-win32 with PICkit 2, the same BSOD happened. It turned out that I could not use the libusb-win32 filter driver since it is an HID device but has a second configuration. Xiaofan ------------------------------ Message: 3 Date: Wed, 15 Aug 2007 15:10:23 +0930 From: "Carl Kenner" <car...@gm...> Subject: Re: [Libusb-win32-devel] lots of bugs (Carl Kenner) To: lib...@li... Message-ID: <fab...@ma...> Content-Type: text/plain; charset=3DISO-8859-1 I'm using the latest version you can download. I reckon I'm going to try this: Open the device try reading the feature report if that fails then call usb_setconfiguration try reading the feature report again end if every frame try reading the input report using usb control messages close the device But on this vista computer, reading the feature report without setting the configuration always fails. Hopefully with the filter driver, reading the feature report will work the first time, so it will never call usb_setconfiguration and thus never lock up the computer forcing them to reboot. But I haven't tested that yet. On 15/08/07, Xiaofan Chen <xia...@gm...> wrote: > On 8/15/07, Carl Kenner <car...@gm...> wrote: > > 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. > > Kind of strange. Which version of libusb are you using? > Still I have no Vista... > > > 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? > > I am not so sure here. But the HID driver can be the issue. That > is why I asked Stephan to add the native Windows HID backend > to libusb-win32. > > When I first started with libusb-win32 with PICkit 2, the same BSOD > happened. It turned out that I could not use the libusb-win32 filter > driver since it is an HID device but has a second configuration. > > 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 > ------------------------------ ------------------------------------------------------------------------ - 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 11 ************************************************** ***************************************************************************= ************* 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 ***************************************************************************= ************* |