Questions tagged [pyusb]

PyUSB is a Python library allowing easy USB access. Make sure to provide all relevant details like exact versions of the operating system, PyUSB library and libusb backend you are trying to use.

PyUSB is a Python library allowing easy USB access. It has the following features:

  • Support for libusb 0.1, libusb 1.0 and OpenUSB.
  • Easy API to communicate with devices.
  • Support for custom library backends.
  • Isochronous transfer type support.
  • 100% written in Python by ctypes.
  • It runs on any Python version >= 2.4 (this includes Python 3).
259 questions
-1
votes
1 answer

accessing a USB drive in python for a beginner

level student doing my second year project in computing and have decide to try and create a utility that access the USB drives and return a percentage value of how much space the different files and folders take up of the USB in a GUI(code for…
-1
votes
2 answers

Accessing USB data

I wanted to read the usb data. for that i am using the pyusb library. and i had written a script import usb.core import usb.util device = usb.core.find(bDeviceClass=9) # 9 is for hub type usb device if device is None: sys.exit("Could not find…
OpenCurious
  • 2,916
  • 5
  • 22
  • 25
-1
votes
1 answer

Sending Hex code using pyusb

I have been trying for 4 days now to send the hex code 10 80 00 00 00 00 00 00 to a USB device connected to my raspberry pi running debian. I've tried libusb with c but I have no idea what I am doing. I thought PyUSB would be a better solution but…
user1910155
  • 1
  • 1
  • 1
-2
votes
1 answer

pyusb cannot find usb devices on windows

pyusb doesnt find any usb devices.I tried several devices and copied/pasted the VID and PID. Has anyone an idea,what I am doing wrong? I get always an error message: NameError: name '_04F2' is not defined import usb.core import usb.util dev =…
subwafer
  • 1
  • 1
1 2 3
17
18