Comments (2)
I just uploaded a couple of examples for setting data. One of them does it by both using usages and a redundant raw data setting. Both tested working with Windows 7 64 bits, using Python 64 bits also.
Raw data setting has the disadvantage that you need to know the report binary format, so you are right, you need to know your usage, how? there are some already standardized (http://www.usb.org/developers/devclass_docs/Hut1_11.pdf), if you actually see vendor pages (values starting at 0xff00) you'd need to have some vendor specific documentation (maybe you could ask for technical support).
Otherwise, use the show_hids.py example and capture the output to a text file, use your prefered editor to find out what capabilities are available in your system, browse to your target device for some hints.
If you are reverse engineering a device, use a USB sniffer (like in a filter driver) that captures the transactions to a file, then once identified the HID reports, use a script to set the raw data and know what are the HID usages affected.
For business you might want to buy a commercial USB protocol analyzer (software or hardware).
Anyway, please try the new examples and let me know if they break on your machine, it would be good to try them on other machine, or better, share your script and some data :-)
from pywinusb.
Thanks a lot Rene!
from pywinusb.
Related Issues (20)
- Running show_hids.py - A USB HID not showing in the list HOT 10
- Question about get input and send output from my custom USB device. HOT 5
- pywinusb vs pyusb HOT 2
- Options to get input reports
- InputReportProcessingThread is never closed
- Can't see all the HID devices connected to the PC HOT 1
- How do I send a simple feature report? HOT 2
- Set Feature Report data last byte corrupted HOT 4
- WinError 2 HOT 1
- Can I use this library to emulate HID mouse drivers without additional hardware? HOT 1
- PNP for tkinter HOT 4
- USB device isn't found
- HID RFID Tag Reading Issue HOT 3
- Reading Data from Device connected through USB using pywinusb
- Data reading! HOT 1
- core.py collections callable error
- ValueError: not open
- not getting "raw_data_handler" events with keyboard HID devices
- instance_id unable to be used as HID filter
- core.py Issues with sending output report to HID device
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pywinusb.