pyusb Questions

14

I'm trying to have my Python application interface with an NFC device via USB. The best option seems to be PyUSB, but I can't get it to connect to the libusb backend. I keep getting ValueError: No...
Monoplegia asked 8/12, 2012 at 0:25

5

I am having trouble getting the string descriptor of a USB device. What I'm looking for is the human friendly Manufacturer and Product names. I am using libusb-1.0 as backend and am able to get the...
Fellowman asked 10/5, 2011 at 0:19

5

Solved

I want to write program with python which can get input from scanner and save as jpg. I don't have any idea how to start. please help.
Squirearchy asked 26/3, 2013 at 6:52

3

I just began to use pyusb, and basically I'm playing with the sample code here. I'm using Windows7 64 bit, and downloaded the zip version from https://walac.github.io/pyusb/. Backend is libusb-1.0...
Hoot asked 12/8, 2015 at 8:49

2

Solved

I was wondering if it could be possible to control the power of usb ports in Python, using vendor ids and product ids. It should be controlling powers instead of just enabling and disabling the por...
Unwonted asked 24/11, 2020 at 16:28

3

I am currently working on PyUSB. As I am new to USB, I don’t know, how can I do the following. I have successfully connected to my USB Device hardware from Python PyUSB. In the code I required to ...
Haunch asked 2/9, 2014 at 6:22

1

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 ...
Mayfield asked 16/1, 2022 at 10:46

3

So I installed Pyusb 1.0.0-alpha-1 Under Windows, I cannot get any handles to usb devices. >>> import usb.core >>> print usb.core.find() None I do have 1 usb device plugged in(...
Tan asked 22/3, 2011 at 0:17

2

Solved

I would like to implement the read and write calls of the python hidapi, in pysub. An example code using the python hidapi, looks like this: import hid hdev = hid.device() h = hdev.open_path( path...
Teodor asked 23/6, 2021 at 14:16

2

Solved

I am trying to send data to a usb stick using the python library PyUSB. The code I am using is the following: import usb.core import usb.util # find our devices #dev = usb.core.find(idVendor=0xff...
Myronmyrrh asked 25/2, 2013 at 19:0

5

Solved

This is an updated and shortened question. Communicating with a USB-device should be easy via PyUSB. So, I'm trying to read from a USB-device (oscilloscope) using PyUSB under Win10. Apparently, th...
Helsinki asked 29/11, 2019 at 12:49

2

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(0x2...
Jacquijacquie asked 21/6, 2016 at 11:58

3

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.githu...
Tebet asked 10/9, 2014 at 1:35

1

Solved

I am using PyUSB in Python as I will have to listen an USB port to retrieve data from an electronic card. For the moment, I have to train myself by reading direct input from a small keyboard (USB-c...
Mannerly asked 10/5, 2016 at 9:40

1

I am accessing a USB HID Device using python hidapi from a Mac OSX 10.10.5 doing: import hid import time hidraw = hid.device(0x1a67, 0x0004) hidraw.open(0x1a67, 0x0004) # Rpt, GnS, Tgt, Size, In...
Musicale asked 2/2, 2016 at 20:10

1

I am trying to send a control transfer command through pyusb over a Mac OS: dev.ctrl_transfer(0x21,0x09,0x0200,0x0,0x1) I get the error: Traceback (most recent call last): File "./main.py", line...
Threnody asked 11/9, 2014 at 17:6

3

Solved

I have been toying around with PyUSB lately, and found that it works beautifully on Linux (Ubuntu has libusb 0.1 and 1.0, as well as OpenUSB)... but only if I run the program with root privileges (...
Kayekayla asked 17/9, 2010 at 19:3

1

I am trying to send num lock to my custom hardware acting as a HID Keyboard. I have tied up an LED to glow if the num lock key is received on the USB. It works fine for numlock keypress from extern...
Naturopathy asked 10/9, 2014 at 0:21

4

Solved

I am following this tutorial (http://pyusb.sourceforge.net/docs/1.0/tutorial.html) I am on windows xp sp3, my python version is 2.7 and I downloaded and installed the pyusb-1.0.0-a1.zip and libusb-...
Adolescence asked 2/6, 2011 at 10:32

1

Solved

Need to reverse engineering bluetooth usb mouse dongle, and use mouse board to measure distance, and plot them with matplotlib I've found these tools that can help with this task: Linux ...
Lemkul asked 28/2, 2014 at 19:32

2

Solved

I'm trying to output a string from a barcode or qrcode using a Honeywell USB 3310g scanner in Ubuntu. I have libusb and a library called metro-usb (http://gitorious.org/other/metro-usb) which are e...
Uniform asked 29/1, 2013 at 3:56

2

Solved

I am trying to make a script (on linux) that can turn a light in my mouse on or off. This is the code I have so far: import usb.core import usb.util import sys interface = 0 dev = usb.core.find(i...
Wampumpeag asked 21/11, 2011 at 21:20

1

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...
Win asked 1/3, 2011 at 8:42
1

© 2022 - 2024 — McMap. All rights reserved.