| 
      
      
      From: Stephan M. <ste...@we...> - 2006-08-20 17:27:06
      
     | 
| Try the latest code from the CVS. I modified the driver's set=5Fconfiguratio= n() function. The function's bahaviour is now compatible to the Linux version.= Stephan > I've spotted what to me seems a pretty major difference between libusb > and libusb-win32. In the call to set=5Fconfiguration, libusb takes the > actual configuration value, i.e. the value specified in the > configuration descriptor, whereas libusb-win32 takes the index value + > 1. >=20 > This means that if you have a quirky device which has one configuration > called configuration 2, then with libusb you would use > set=5Fconfiguration(2) to set it, whereas on libusb-win32 you would use > set=5Fconfiguration(1). This is a bit troublesome. >=20 > We have been hit by this since a device we are using makes the same > error in reverse, it returns the config descriptor by value instead of > index, so when windows initially asks for the 0th config descriptor, > unless there is a bogus descriptor in the device called configuration 0 > (which of course doesn't make sense since config 0 is the unconfigured > state), the device returns an error. A workaround is to provide 2 config= > descriptors, one bogus one called 0 and the real one called 1. This is > fine on linux since you can select config 1 by calling > set=5Fconfiguration(1), but on windows you have to call > set=5Fconfiguration(2). If someone decided not to have incrementing > configuration values you'd be sunk with libusb-win32 at the moment. >=20 > Anyway, for the moment I'm just happy that I've worked out what's going > on and that I can select my configuration using 2. >=20 > Dan >=20 > ------------------------------------------------------------------------= - > Using Tomcat but need to do more=3F Need to support web services, security= =3F > Get stuff done quickly with pre-integrated technology to make your job e= asier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geroni= mo > http://sel.as-us.falkag.net/sel=3Fcmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642= > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= Erweitern Sie FreeMail zu einem noch leistungsst=E4rkeren E-Mail-Postfach! =09 Mehr Infos unter http://freemail.web.de/home/landingpad/=3Fmc=3D021131 |