| 
      
      
      From: Dan E. <Dan...@ne...> - 2006-08-21 10:24:53
      
     | 
| Thanks, I'll try that. Dan. Stephan Meyer wrote: > Try the latest code from the CVS. I modified the driver's > set_configuration() function. The function's bahaviour is now > compatible to the Linux version. =20 >=20 > Stephan >=20 >=20 >> I've spotted what to me seems a pretty major difference between >> libusb and libusb-win32. In the call to set_configuration, libusb >> takes the actual configuration value, i.e. the value specified in the >> configuration descriptor, whereas libusb-win32 takes the index value >> + 1.=20 >>=20 >> This means that if you have a quirky device which has one >> configuration called configuration 2, then with libusb you would use >> set_configuration(2) to set it, whereas on libusb-win32 you would use >> set_configuration(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_configuration(1), but on windows you >> have to call set_configuration(2). If someone decided not to have >> incrementing configuration values you'd be sunk with libusb-win32 at >> the moment.=20 >>=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? Need to support web services, >> security? Get stuff done quickly with pre-integrated technology to >> make your job easier Download IBM WebSphere Application Server >> v.1.0.1 based on Apache Geronimo >> = http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 1216 >> 42 _______________________________________________=20 >> Libusb-win32-devel mailing list >> Lib...@li... >> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel >=20 >=20 > = _________________________________________________________________________= _ > Erweitern Sie FreeMail zu einem noch leistungsst=E4rkeren > E-Mail-Postfach!=20 > Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=3D021131 >=20 >=20 > = -------------------------------------------------------------------------= > Using Tomcat but need to do more? Need to support web services, > security?=20 > Get stuff done quickly with pre-integrated technology to make your > job easier Download IBM WebSphere Application Server v.1.0.1 based on > Apache Geronimo > = http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 > _______________________________________________ =20 > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel |