Home

Wander Lairson

PyUSB provides USB access on the Python language.


Project Members:


  • laurent
    laurent
    2 days ago

    Dear Wanders,
    I need your help for pyusb use.
    I use ,for my python program, libusb library on a windows pc.
    I have two identical spectrometers with idVendor = 0x2457, idProduct =0x1022. I am using bus and address, but I do not know how to write the code to differentiate them. eg dev = usb.core.find (idVendor = 0x2457, idProduct =0x1022)
    dev = usb.core.find (= \. \ libusb0-0001--0x2457-0x1022)
    thanking you in advance.
    laurent

     
    • Wander Lairson
      Wander Lairson
      22 hours ago

      2014-09-15 7:19 GMT-03:00 laurent lorenz7791@users.sf.net:

      Dear Wanders,
      I need your help for pyusb use.
      I use ,for my python program, libusb library on a windows pc.
      I have two identical spectrometers with idVendor = 0x2457, idProduct
      =0x1022. I am using bus and address, but I do not know how to write the code
      to differentiate them. eg dev = usb.core.find (idVendor = 0x2457, idProduct
      =0x1022)
      dev = usb.core.find (= . \ libusb0-0001--0x2457-0x1022)
      thanking you in advance.
      laurent

      Hi,

      There were a recent discussion in PyUSB mailing list on this topic [1].

      [1] http://comments.gmane.org/gmane.comp.python.pyusb.user/1730

      --
      Best Regards,
      Wander Lairson Costa