On Mon, Apr 19, 2010 at 5:07 PM, Xiaofan Chen <xiaof...@gmail.com> wrote:
> On Mon, Apr 19, 2010 at 7:57 AM, Xiaofan Chen <xiaof...@gmail.com> wrote:
>
>> I said that the 0.4.2 example works in the legacy mode. But it is
>> using the 1.0 backend as you mentioned.
>
> How do I force usb.legacy to use the libusb01 backend?
>

As a test, I delete pyusb 1.0 and then install pyusb-0.4.2. It does
seem to work.

[mc...@myfreebsd ~/Desktop/build/pyusb/pyusb-0.4.2/samples]$ python usbenum.py
Device: /dev/ugen0.4
  Device class: 0
  Device sub class: 0
  Device protocol: 0
  Max packet size: 8
  idVendor: 2341 (0x0925)
  idProduct: 5206 (0x1456)
  Device Version: 00.01
  Configuration: 1
    Total length: 46
    selfPowered: 1
    remoteWakeup: 0
    maxPower: 200
    Interface: 0
    Alternate Setting: 0
      Interface class: 255
      Interface sub class: 255
      Interface protocol: 255
      Endpoint: 0x1L
        Type: 2
        Max packet size: 64
        Interval: 0
      Endpoint: 0x81L
        Type: 2
        Max packet size: 64
        Interval: 0
      Endpoint: 0x2L
        Type: 3
        Max packet size: 8
        Interval: 10
      Endpoint: 0x82L
        Type: 3
        Max packet size: 8
        Interval: 10
Device: /dev/ugen0.3
  Device class: 0
  Device sub class: 0
  Device protocol: 0
  Max packet size: 8
  idVendor: 1133 (0x046d)
  idProduct: 49236 (0xc054)
  Device Version: 54.00
  Configuration: 1
    Total length: 34
    selfPowered: 0
    remoteWakeup: 1
    maxPower: 196
    Interface: 0
    Alternate Setting: 0
      Interface class: 3
      Interface sub class: 1
      Interface protocol: 2
      Endpoint: 0x81L
        Type: 3
        Max packet size: 6
        Interval: 10
Device: /dev/ugen0.2
  Device class: 0
  Device sub class: 0
  Device protocol: 0
  Max packet size: 8
  idVendor: 1423 (0x058f)
  idProduct: 37728 (0x9360)
  Device Version: 01.00
  Configuration: 1
    Total length: 32
    selfPowered: 0
    remoteWakeup: 0
    maxPower: 200
    Interface: 0
    Alternate Setting: 0
      Interface class: 8
      Interface sub class: 6
      Interface protocol: 80
      Endpoint: 0x1L
        Type: 2
        Max packet size: 64
        Interval: 0
      Endpoint: 0x82L
        Type: 2
        Max packet size: 64
        Interval: 0
Device: /dev/ugen1.1
  Device class: 9
  Device sub class: 0
  Device protocol: 1
  Max packet size: 64
  idVendor: 0 (0x0000)
  idProduct: 0 (0x0000)
  Device Version: 01.00
  Configuration: 1
    Total length: 25
    selfPowered: 1
    remoteWakeup: 0
    maxPower: 0
    Interface: 0
    Alternate Setting: 0
      Interface class: 9
      Interface sub class: 0
      Interface protocol: 0
      Endpoint: 0x81L
        Type: 3
        Max packet size: 8
        Interval: 255
Device: /dev/ugen0.1
  Device class: 9
  Device sub class: 0
  Device protocol: 0
  Max packet size: 64
  idVendor: 0 (0x0000)
  idProduct: 0 (0x0000)
  Device Version: 01.00
  Configuration: 1
    Total length: 25
    selfPowered: 1
    remoteWakeup: 0
    maxPower: 0
    Interface: 0
    Alternate Setting: 0
      Interface class: 9
      Interface sub class: 0
      Interface protocol: 0
      Endpoint: 0x81L
        Type: 3
        Max packet size: 32
        Interval: 255



-- 
Xiaofan http://mcuee.blogspot.com

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to