Git Product home page Git Product logo

Comments (2)

rene-aguirre avatar rene-aguirre commented on August 29, 2024

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.

dccharacter avatar dccharacter commented on August 29, 2024

Thanks a lot Rene!

from pywinusb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.