← index #1028Issue #4183
Off-topic · high · value 0.376
QUERY · ISSUE

USBDevice hid debug whit webusb-hid

openby absn12opened 2025-07-02updated 2025-07-02

using USBDevice hid, cannot search for devices in webUSB(webhid) . I want to debug it in webhid, how can I do it
https://github.com/myst729/arduino-webhid/blob/master/webhid.html

CANDIDATE · ISSUE

Support for USB_HID Consumer Control devices?

closedby klardotshopened 2018-09-24updated 2018-10-03

For context in case any of y'all aren't HID folks (I wasn't until recently!), Consumer Mode is an additional (pseudo-)device a USB peripheral can advertise to allow a whole bunch of generally media-related functionalities - notably, the "media keys" of modern keyboards (PlayPause, VolumeUp, VolumeDown, that goofy button that launches your default web browser when you probably meant to hit some other key, etc).

I see some vague references to consumer device reports in the STM32 USB HAL code (I'm testing primarily on a PyBoard, though NRF devices are also in my scope of interest), but nothing notable exposed to Python. I suppose I could use a custom tuple as the hid argument to USB_HID('VSC+HID', hid=...), but as far as I understand it, I'd then lose the main keyboard HID device.

I suppose a related question here is how to "be" two HID types at once in MicroPython - let's say for example I wanted to throw a trackpoint and some mouse buttons onto a MicroPython-based keyboard. I'd need to "be" at least two HID types here - keyboard and mouse. Three if I want volume keys on said device - keyboard, mouse, and consumer control.

There's some existing art in this general realm, particularly on NRF chips, over in https://github.com/adafruit/circuitpython land (see also), but at this point that project has deviated far enough that I'm nowhere near comfortable enough with C to try to backport their additions.

I'm hoping I'll be told I need to read more closely, and that Consumer Control devices are supported, but from my understanding so far, it looks like there's just basic stubs in C, and no way for me to (easily, out-of-the-box) use them. Thanks folks!

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied