On Thu, Jan 19, 2012 at 7:24 PM, Xiaofan Chen <xiaof...@gmail.com> wrote:
> 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?

I believe it is legacy; the distribution (openSUSE 10.3) is five years old.

> 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.

If so, perhaps we need a way to determine which is being used.  If the
script I put in the commit comment actually works when "libusb01" is
being used as a back-end, then there's a conflict; if it doesn't, then
the fix is probably right.

Is there a way to influence the selection of back end if multiple ones
are available?  I didn't dig into how it was done, but did notice that
libusb01 was listed before libusb1 in at least one place.

Peter

>
> --
> 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

------------------------------------------------------------------------------
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

Reply via email to