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

How to setup libusb for a conda Python environment in Mac

So I'm trying to use pyusb in a conda environment but it fails with error below: >>> import usb.core >>> usb.core.find() Traceback (most recent call last): File "", line 1, in File…
Milad
  • 4,901
  • 5
  • 32
  • 43
0
votes
0 answers

Reading data from multiple usbs using threads in python

Reading data from multiple usbs using threads in python. Hi Everyone, I have written code in python to read data from USB. the logic I followed is find USB device with correct VID and PID ( dev = usb.core.find(idVendor=0xABCD,…
0
votes
1 answer

How can I replicate a USB snooped 0017 VENDOR_DEVICE message with pyusb?

I have a usb sniff from snoopypro for a device I'm trying to communicate with. I've found that once the device is set up I can communicate with it via bulk messages but I'm having trouble replicating the setup messages. Some of these messages are…
chmedly
  • 391
  • 1
  • 6
  • 16
0
votes
2 answers

pyusb won't install

I'm trying to setup some python scripts for controlling low-level USB functions. In order to do this, I've found that two libraries need to be installed: libusb and pyusb. I first installed libusb and was successful, but now I'm having problems…
hao_maike
  • 2,929
  • 5
  • 26
  • 31
0
votes
1 answer

connection resets when using set_configuration in PyUSB

I've recently updated my android phone to Marshmallow. Unfortunately for me, that broke my python code. using PyUSB, I can get the device to enter accessory mode. Unfortunately, I can no longer read/write to the device, as now using…
user1999728
  • 913
  • 1
  • 8
  • 25
0
votes
0 answers

Sending byte value greater than 127 using PyUSB

I'm trying to send some data from Python 3.5 program on Windows 10 PC to TM4C microcontroller over USB and I'm using PyUSB for that. The issue is whenever byte value exceeds 127 (0x7f) PyUSB is adds one extra byte before that byte and sometimes…
Yogesh
  • 33
  • 5
0
votes
2 answers

pyusb - [Error 5] on Linux, but not Windows

I'm trying to communicate with an AD9913 evaluation board (Analog Devices), which has a Cypress FX-2 USB controller. I wrote a fully functional Python library which works flawlessly on Windows 7 (using a driver generated through…
IonicSolutions
  • 2,559
  • 1
  • 18
  • 31
0
votes
1 answer

Pyusb on Windows 7 - NotImplemented Error :is_kernal_driver_active

I am using escposprinter python library for printing my data in thermal printer. It depends on pyusb. the library is working fine in linux . While in windows 7 ,i get the it have some issues. Here are output i get. File "main.py", line 1, in…
Sathish Kumar
  • 547
  • 6
  • 17
0
votes
1 answer

raspberry, cannot write to USB-Serial converter

I'm working on a small Python script on a raspberry that interacts with an external device. that external device has either RS232 and USB ports and I'm using it through the USB port. lsusb shows: Bus 001 Device 004: ID 0665:5161 Cypress…
ZeroMemory
  • 23
  • 6
0
votes
0 answers

PyUSB - No Backend Available (Windows 10) Any solutions?

I'm using Windows 10, and trying to use pyusb. I'm facing this Backend error, I've tried searching for solutions, but haven't found one yet. Please, let me know, if there's a way to deal with this. Thanks.
Aditya
  • 29
  • 1
  • 7
0
votes
1 answer

pyusb on macOSX 10.11 step by step

Can anybody take my hand and guides me through installation of pyusb on my Mac, step by step ? I have a fresh installed osx 10.11.6 (which comes already with python). What I tried until now (nothing more, nothing less) is to install latest version…
ddlab
  • 918
  • 13
  • 28
0
votes
1 answer

kivy .bind results in AssertionError: '' is not callable

I am writing a GUI in Linux using Kivy and Python. The program should detect a USB device and using the device to program an image to a target. Here are a snippet of my code: These are the codes I am trying to detect USB device. This is on a file,…
YvonneH
  • 75
  • 6
0
votes
0 answers

Python - imagescanner on windows failing

How to get the Python imagescanner in windows? Failing: Getting access to a scanner device: from imagescanner import ImageScanner # instantiate the imagescanner obj iscanner = ImageScanner() # get all available devices scanners =…
user285594
0
votes
1 answer

How to pyUSB inside Processing's python mode

I am programming inside Processing.py and need to use pyUSB. I placed the downloaded files of pyUSB in the sketch folder and then run in the sketch import usb.core import usb.util import usb.control Which runs successfully, however when…
0
votes
1 answer

Pyusb: Ressource busy / USB bar code Scanner

I'm trying to get value from a barcode scanner, this with pyusb on Ubuntu. After investigations, I found that the barcode scanner need to receive an activation data to be able to scan barcode. I found this data, modify my rules.d file in order to…
Majonsi
  • 384
  • 1
  • 4
  • 17