|
From: Carl K. <car...@gm...> - 2007-08-15 05:40:30
|
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
>
|