Questions tagged [pywinusb]

Pywinusb aims to be a simple USB/HID user application space (hence no system drivers needed) 100% python package (without C extensions).

Pywinusb aims to be a simple USB/HID user application space (hence no system drivers needed) 100% python package (without C extensions). Initially targeting simple HID devices management.

The vision for this project is to be something similar to PySerial or PyParallel but for USB/HID hardware enthusiasts.

25 questions
0
votes
0 answers

Pywinusb send Idle request success in wireshark usbcap, but error happend in code

So, I tried to send idle request to my device, it successfully send by looking into wireshark usbcap the device did get set_idle request and the device did send response back. My problem is my code pop up an error and stop, but I need to send a…
JayLin1119
  • 49
  • 7
0
votes
1 answer

How can I send idle request using pywinusb in python

I am trying to copy the behaviour of a software which control a device using HID interface, the work flow is send an idle request then send a bunch of data to the device, I can send the data, but I don't know how to send the idle request. I found…
JayLin1119
  • 49
  • 7
0
votes
1 answer

pywinusb Write to HID magstripe card encoder

I've been tasked to create a (very tightly time constrained) tkinter application that can read and write ISO-7811 spec'd magnetic cards for a POC. I'm using the MSR605x encoder that complies to the standard mentioned. So far I've been able to set…
pertories
  • 21
  • 3
0
votes
1 answer

Getting input report in pywinusb

I am using pywinusb to send/get data from Custom HID device. I can successfully send data but cant get it. Any suggestions? I tried to debug using Microsoft Message Analyzer and can see the data there but not in the script. Product/Vendor Ids,…
ibrahimdanish
  • 143
  • 1
  • 2
  • 10
0
votes
1 answer

Pywinusb and Flyfish FF32 device under windows. Pywinusb sends just zeros?

I'm trying to create python library under windows for Flyfish FF32 USB-HID IO board (http://www.flyfish-tech.com/FF32/index.php). I'm using pywinusb library, Python 2.7, windows 7 for that. Device itself works with provided by flyfish GUI. Also when…
Dominik
  • 93
  • 1
  • 4
0
votes
1 answer

UnicodeEncodeError in PyWinUSB with Python 2.7.9?

So, I'm trying to work with PyWinUSB, but I can't get very far because I keep getting a UnicodeEncodeError. The code: import pywinusb.hid as hid hid.find_all_hid_devices() The ouput: [Traceback (most recent call last): File "", line 1,…
David
  • 4,744
  • 5
  • 33
  • 64
0
votes
1 answer

pywinusb send a LED OFF_HOOK (0x17) on HID

I have the following definitions: Telephony Device Page: 0x0B, TELEPHONY HEADSET: 0x05, LED Page: 0x08, LED OFF_HOOK: 0x17 I want to send a "LED OFF_HOOK = 0x17" using pywinusb-0.3 example "simple send" below but am getting…
user3484496
  • 157
  • 1
  • 2
  • 7
0
votes
1 answer

initialize a USB device from pywinusb / python

my problem lokks like the one suggested by Will "Simple reading/writing from/to a USB HID device in Python?", but following it I did not get any result. Problem: I am trying to handle the Oregon WMRS200 Meteo station, that implements a usb…
user2202117
  • 33
  • 1
  • 4
0
votes
1 answer

PyWinUSB Indecipherable Error Message

I'm trying to use PyWinUSB to communicate with a pretty simplistic USB device that I have. The device is two components; A wireless transceiver and the device itself, which has 5 buttons, a rotary dial and a dip switch. Upon hitting any of the…
Will
  • 281
  • 1
  • 6
  • 18
0
votes
1 answer

Calling SetupDiGetClassDevs from Python only returns an integer value

I'm trying to create a simple read/write application for a fairly simple USB device, but it's turning out to be not so simple at all. I'm using WinUSB and SetupAPI DLLs and working from scratch since I can't seem to find anything that actually works…
Will
  • 281
  • 1
  • 6
  • 18
1
2