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

What does dev[0][(0,0)][0] mean?

I am implementing this program to read usb data from a usb mouse and display it. The program produces the correct output. It also works for other usb devices. The code is as follows import sys import usb.core import…
0
votes
1 answer

Lagging for multiple HID devices when one is not moving (PyUSB)

I am using two HID devices (Logitech Attack 3 controllers) with the same product and vendor IDs, so they are differentiated using their Bus and Device numbers. When I move both devices at once, they operate without any lag, but when I only move one…
edt1
  • 3
  • 3
0
votes
1 answer

usb.core.USBError: [Errno 19] No such device (it may have been disconnected)

My code to retrieve a value from a USB device in Python is as follows: import usb.core import usb.util VENDOR_ID = 0x0922 PRODUCT_ID = 0x8005 # find the USB device device = usb.core.find(idVendor=VENDOR_ID, …
James Anderson
  • 556
  • 3
  • 16
  • 41
0
votes
1 answer

how to tare a cheap load cell scale thru Python HIDAPI?

The good news is this cheap Xiamen ELANE.NET load cell powers-up on USB into Report 3 mode; barfing its current weight in grams, constantly. Here's its…
Phlip
  • 5,253
  • 5
  • 32
  • 48
0
votes
1 answer

serial USB port number on window (as parameter)

I want to connect with a USB stick (ANT+ suntoo) for serial communication using under python USB libraries in eclipse under windows 8.1. I have to pass the serial address of my USB stick(Port_#0001.Hub_#0003) as a parameter to my python program. In…
BitByte_Bake
  • 939
  • 1
  • 9
  • 12
0
votes
1 answer

PyUSB read multiple frames from bulk transfer with unknown length

So I'm relatively new to USB and PyUSB. I am trying to communicate with a bluetooth device using PyUSB. To initialize it, I need to send a command and read back some data from the device. I do this using dev.write(0x02, msg) and ret = dev.read(0x81,…
eh_whatever
  • 193
  • 1
  • 3
  • 13
0
votes
1 answer

pyusb ValueError: No backend available bar code scanner

I'am trying to take over an barcode scanner using pyusb and pyusb-keyboard-a-like. I have a system running win7. I have installed usb drivers with libusb-win32 both filter and inf-wizard. my code looks like this: from keyboard_alike import…
0
votes
1 answer

pyusb 2.7 windows install error

I know similar things have been asked, but none of the solutions work for me/I get different errors. I am trying to install PyUSB on a 64-bit Windows 7 VM, with Python 2.7. When I run the install from command line, i get error: Unable to find…
chris
  • 4,840
  • 5
  • 35
  • 66
0
votes
1 answer

How can I get Python to watch a USB port for any device?

On a windows OS, how can I get python to detect if anything is plugged in to a specific USB location on the computer. For example "Port_#0002.Hub_#0003" I've tried pyUSB which worked fine for detecting a specific device, but I couldn't seem to…
smkraft
  • 123
  • 2
  • 5
0
votes
1 answer

Problems with pyUSB

I have been trying to make a program with Python which sends commands to a DYMO labelmanager PnP usb device. I tried installing pyUSB and tried the code provided in pyUSB tutorial to figure out a bit how the USB communicating works, but it doesn't…
user2496332
  • 29
  • 1
  • 2
0
votes
1 answer

Programming an Alpha electronic sign with Alphasign Python

I am trying to program an alpha sign - 215r - using the alphasign python api [Alphasign] (https://alphasign.readthedocs.org/en/latest/index.html). I downloaded python 2.7, pyusb, pyserial, and libusb. I got the vid and pid of the sign using libusb…
the surfer
  • 81
  • 6
0
votes
1 answer

Alternatives for pyusb on python 2.7

So, I want to communicate with a USB device in python, but pyusb won't install (is not compatible?) with python 2.7 and windows7. Within the current project, updating python to a newer 2.X version is no option. Pyusb can't be the only option…
Jen V
  • 49
  • 2
  • 7
-1
votes
1 answer

Open and read txt file from USB

I'm using Linux. I know my USB name is: Bus 001 Device 005: ID 8564:1000 Transcend Information, Inc. JetFlash and the idVendor and idProduct is: idVendor 0x8564 Transcend Information, Inc. idProduct 0x1000…
j ton
  • 229
  • 9
-1
votes
1 answer

How can PyUSB be understood?

I am unable to proceed on how PyUSB works. I am stuck for a week now. How do I proceed?
vj85
  • 577
  • 3
  • 7
  • 12
-1
votes
2 answers

PyUSB ValueError: No Backend available on windows 7. windows is detecting the device while pyusb is not detecting

I have tried all possible ways but not able to get out this error.Did anyone sorted out this problem? >>> import usb.core >>> import usb.util >>> dev=usb.core.find(idVendor=0x04D8) Error I'm getting is: Traceback (most recent call last): File…
dinece
  • 113
  • 1
  • 2
  • 12
1 2 3
17
18