Skip to main content
Jlei.1507
Visitor II
November 22, 2019
Question

How to use STM32 to develop a HID power device project

  • November 22, 2019
  • 1 reply
  • 2177 views

Hi

The development of HID using STM32, such as mouse class and user-defined class, is very smooth, but the latest project uses hid power devices, which is a subclass protocol under hid, so I don't know how to deal with the report descriptors, so I need the support for it

The function to be realized is that the battery power information extracted by MCU is sent to PC through USB HID protocol, and windows can recognize and support it directly, which is equivalent to that we can directly check the battery power and other states in notebook through device manager

Who can provide a reference code?

Coho

This topic has been closed for replies.

1 reply

Ben K
Senior III
November 27, 2019

You might want to take a look at this project: https://github.com/IntergatedCircuits/DebugDongleFW/blob/master/Charger/chrg_if.c

The HID report descriptor creation cannot get much easier than this if you ask me.