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
5
votes
1 answer

PyUSB backend not accessible

hey i am trying to run the simple script available in the tutorial;. the usb is getting imported but when i try to search the device i get the following error,please help >>> dev=usb.core.find() Traceback (most recent call last): File "",…
vj85
  • 577
  • 3
  • 7
  • 12
5
votes
1 answer

PyUsb does not recognize my USB device while my PC does

I'm trying to communicate between the my PC and PIC18F4550, but the program is not detecting it whereas the computer is showing it in Device Manager. import usb.core dev = usb.core.find(idVendor = 0x04D8, idProduct = 0xFEAA) The function for…
dinece
  • 113
  • 1
  • 2
  • 12
5
votes
3 answers

PyUSB ValueError: No backend available

I am runing Python 2.7.8 at Win 7 operation system. I am trying to communicate a USB device (Numato 32 channel GPIO device) by PyUSB. I downloaded walac-pyusb-7071ad3 from URL: http://walac.github.io/pyusb I stop at receiving "ValueError: No…
Joyful CD
  • 51
  • 1
  • 1
  • 4
5
votes
2 answers

Acquiring Images from a USB mouse (Single Chip, ADNS-2700) via pyusb

I would like to extract the actual images captured by a single chip optical mouse sensor, specifically the ADNS-2700. As apposed to the various other tutorials on the internet that use a micro controller to talk to the SPI interface of the imaging…
Onlyjus
  • 5,799
  • 5
  • 30
  • 42
5
votes
1 answer

Using PyUSB to replay packet captured by Wireshark

I captured an URB packet with wireshark: 219774 438.775555000 host 31.0 USBVIDEO 66 SET CUR Request [Brightness] and Wireshark displays following offset hex text: 0000 c0 f6 0b a3 00 88 ff ff 53 02 00 1f 01 00 00 00 …
siemanko
  • 1,389
  • 1
  • 13
  • 26
5
votes
1 answer

Reading data from a Tenma 72-7732 multimeter using PyUSB

I'm trying to read voltages from a Tenma 72-7732 multimeter with a HID USB connection using PyUSB and libusb. This is my code so far: def main(): import usb.core import usb.util import usb.backend import sys #find device …
Sophie
  • 85
  • 1
  • 1
  • 6
4
votes
1 answer

Python on M1 MBP trying to connect to USB devices - NoBackendError: No backend available

I am trying to connect with Python to my USB devices. The final result should be a connection to my Blood Pressure Monitor but I am failing already to connect to ANY device. My simple code - which I found here - is bellow. The Product- and Vendor ID…
4
votes
1 answer

Device Not Available on PyUSB

Playing around with PyUSB a bit to see if it offers some insight as to why a WebUSB library I'm using isn't finding my device. I installed libusb1 on the Mac via Homebrew with brew install libusb. Ran lsusb -vv to get device details. Also set a…
MikeiLL
  • 6,282
  • 5
  • 37
  • 68
4
votes
1 answer

Cannot write to USB device with pyusb (receive timeout errors)

I'm attempting some basic USB communications using Python3 and pyusb and am running into a difficulty writing to a USB device. After considerable research I've developed the code below and can recognize and claim the device without errors, but am…
smiller
  • 41
  • 2
4
votes
0 answers

How can I obtain the USB audio stream from this USB device using PyUSB?

I'm trying to get the USB audio output from my iPhone and play it through the audio jack of my Raspberry Pi. I have posted at the bottom, the result from printing the USB dev object. My understanding is that I need to send a control transfer read to…
Jerp Dertin
  • 71
  • 1
  • 9
4
votes
2 answers

Send HID report with PyUSB

UPDATE I managed to send the data properly. For anyone who ran into the same problem, I used the following code: data=[0x00, 0x04, 0x04, 0xFF, 0xFF, 0xFF, 0x00, 0x00] result=dev.ctrl_transfer(0x21, 0x9, wValue=0x200, wIndex=0x00,…
xquitz
  • 41
  • 1
  • 1
  • 3
4
votes
2 answers

Pyusb on windows 8.1 - no backend available - how to install libusb?

Working on pyinstaller 3.1, python 2.7.9, and tkinter. Try to use pyusb instead of pyserial, but no backend available. Looking into Pyusb on windows - no backend available, PyUSB ValueError: No backend available, USB interface in Python, and so on,…
BAE
  • 8,550
  • 22
  • 88
  • 171
4
votes
1 answer

pylibftdi missing libftdi libusb on Windows install

I am trying to write a python bit-banging application to communicate with a FT232H eeprom using pylibftdi (over serial port). I have installed the FT232H .dll using the installer provided by ftdichip (the default .dll install location is…
Ajax
  • 1,418
  • 2
  • 17
  • 38
4
votes
1 answer

Is it possible to get USB device by USB port using PyUSB

I have a lot identical devices with STM32 VCP. Windows 8.1 creates serial COM port for device. If I connect ONE device to any PC USB port, windows will bind to it the same COM port. After the connection of the second device to other USB port, it…
kepurlaukis
  • 324
  • 5
  • 16
4
votes
3 answers

Raspberry Pyusb gets Resource busy

I'm trying to connect my Raspberry PI to Pic4550 via USB. (Pic function is ok with windows c# program!). So I have installed rpi 2, pyusb, and tried to communicate with the help of [https://github.com/walac/pyusb/blob/master/docs/tutorial.rst][1] I…
la7591
  • 171
  • 1
  • 1
  • 5
1
2
3
17 18