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
vote
1 answer

USB Device/PyUSB on Windows and LInux behaving differently

I have a device with USB interface which I can connect to both my Ubuntu 18.04 machine and my Windows 10 machine. On Windows 10 I have to install the CP210x driver and manually attach it to the device (otherwise Windows tries to find the device…
1
vote
1 answer

Controlling Stepper motors and Camera simultaneously

what is the best way to control a stepper motor and camera simultaneously? Suppose the camera is placed on a linear stage (stepper motor) and I want to move the stage in 1 mm steps and capture a frame at the end of each step. Both devices (Camera…
1
vote
1 answer

Listing usb devices using pyusb doesn't work

I am trying to list USB devices on my windows 7 pc. I installed this ahead: https://sourceforge.net/projects/libusb-win32/files/libusb-win32-releases/1.2.6.0/libusb-win32-devel-filter-1.2.6.0.exe The code below does not print anything. Is there…
SEU
  • 1,304
  • 4
  • 15
  • 36
1
vote
0 answers

Is device.is_kernel_driver_active() not working in libusb-1.0.22.7z?

Why am I getting the "Operation not supported or unimplemented on this platform" message? I am running windows 10 64 bit and have installed python 3.7 64 bit, pyusb 1.0.2 and libusb-1.0.22.7z. For libusb-1.0.22.7z I unzipped it and copied the…
Tom Locke
  • 41
  • 7
1
vote
2 answers

It is posible to get output of external barcode scanner to Django

In my project I have external bar-code scanner, I want get bar-code scanner output on my django project, is this possible? if any have article or blog please share
InjectorX
  • 130
  • 7
1
vote
1 answer

Pyusb/libusb0 insufficient permissions Windows

I want to read out a USB measurement device in python. For this I use the usbtmc module. It requires Pyusb and libusb-win32. I installed both and it seems that they are running fine. In the device manager I can find my USB device. And in python too.…
1
vote
0 answers

Trouble using PyUSB to read from usb device in different systems

I have written a small python script to read data from a digital thermometer, and everything works just fine in my computer. however, i need to run this same script in other systems, but i keep getting a "[Errno 10060] Operation timed out" error.…
1
vote
2 answers

Why is Python pyusb usb.core access denied due to permissions and why won't the rules.d fix it?

I have a USB device which I'm tring to talk to using pyusb 1.0.2 on linux (Linux tpad 4.15.0-38-generic #41~16.04.1-Ubuntu SMP Wed Oct 10 20:16:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux). Running python 3.5 I get the following error (full trace at…
user6972
  • 851
  • 1
  • 15
  • 32
1
vote
1 answer

PyUSB Barcode Scanner without Button by Honeywell

I have a Honeywell N5600 that I'm trying to use, but I don't get it to scan anything. The device is recognized as /dev/hidraw1, but as it does not have any button to press, I cannot trigger the scan and thus, when I try to read from it, it just…
Salocin
  • 393
  • 6
  • 17
1
vote
0 answers

PyUSB Can't Find Device but Driver is Installed

The device I am trying to find using PyUSB is a programmable water pump. To find it, I have been using this code (found on https://www.orangecoat.com/how-to/use-pyusb-to-find-vendor-and-product-ids-for-usb-devices): #!/usr/bin/python import…
1
vote
1 answer

USB - Is there an initial handshake between host and device?

I'm capturing USB traffic using Wireshark on a smart card reader. When I connect to the reader using PyScard, some packets are sent back and forth using bulk operations before I send any APDU just by establishing the connection. I have read here…
Berbus
  • 160
  • 3
  • 20
1
vote
0 answers

Raspberry Pi USB Data in Python

For a senior design project, we are looking to use data collected from a spectroscopy unit in conjunction with a PID controller on a Raspberry Pi in order to keep a process under control. The issue we currently face is that we cannot interface the…
A. Hudson
  • 51
  • 1
  • 10
1
vote
0 answers

how to get datas from USB device using pyusb in windows?

here are my codes: can you help me? import sys import usb import array class UsbDevice(object): def __init__(self, _vend, _prod): self._dev = usb.core.find(idVendor=_vend, idProduct=_prod) self.device = self.getDevice(_vend,…
YPHFree
  • 11
  • 2
1
vote
1 answer

Can't Find Device with PyUSB

I found my device's VID and PID in the properties for the device on windows, which are 256 for the VID and 006 for the PID. I can't seem to get pyusb to find it. From what I've seen, most people put the VID and PID in hex, which I tried and it still…
CMLSC
  • 113
  • 1
  • 3
  • 13
1
vote
0 answers

USB Device: Cannot Detach Kernel Driver or Find Device Handle

I am new to Python and have been teaching myself how to write in it and use the PyUSB module properly. The past month, I have been trying to create a Python script using PyUSB to communicate with a USB device. The script is designed to find my…