Showing posts with label pywin32. Show all posts
Showing posts with label pywin32. Show all posts

Friday, February 28, 2014

USB HID Report Descriptor Parser in Python

1 Introduction

This is a similar tool as HID Descriptor Tool that is avaliable in USB-IF. Not intended to re-create the wheel, my purpose is to quickly create an utility that can parse the following USB HID Report Descriptors:
  1. descriptors which are binaries
  2. descriptors for an USB Sensor HUB
A script language (python) is chosen because of the need of writing it in a quick way.

Sunday, July 7, 2013

Python Print String Descriptors for the USB HID Devices

1 Inctroduction

In this tutorial, we are going to write two small python programs that prints the String Descriptors for all the USB HID devices in the system. To do this, there are many choices of libraries for assistence. I will introduce two of them - PyUSB and PyWin32. PyUSB supports both Linux and Windows, and PyWin32 supports Windows only.