On Fri, Jan 20, 2012 at 12:02 AM, Peter Bigot <pabi...@users.sourceforge.net> wrote: > From: "Peter A. Bigot" <pabi...@users.sourceforge.net> > > With libusb-0.1.12-72 on openSUSE, the device bus number is encoded in the > dirname string, not in the location value. Validate this on a system that > uses the libusb01 backend by comparing lsusb output with:
Is this libusb-0.1.12-72 the legacy libusb-0.1 version? Or is it libusb-compat which is based on libusb-1.0? Most the Linux distributions (other than Debian/Ubuntu) ship with libusb-compat. It seems to me libusb-compat uses the location field of the usb_bus structure as the bus number. http://git.libusb.org/?p=libusb-compat-0.1.git;a=blob;f=libusb/core.c;hb=HEAD;js=1 192 /* iterate over the device list, identifying the individual busses. 193 * we use the location field of the usb_bus structure to store the 194 * bus number. */ Maybe the behavior of the legacy libusb-0.1 is a bit different. -- Xiaofan ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users