-
Notifications
You must be signed in to change notification settings - Fork 1
Tail light HID protocol
Fredrik Orderud edited this page Sep 16, 2023
·
12 revisions
Steps to update the tail-light:
- Connect to mouse HID device with
Usage=0212
andUsagePage=FF07
. - Send a feature report with
ByteLength=73
with the following header:
FeatureReport[0] = 0x24; // ReportID 36
FeatureReport[1] = 0xB2; // magic value
FeatureReport[2] = 0x03; // magic value
FeatureReport[3] = red;
FeatureReport[4] = green;
FeatureReport[5] = blue;
It's possible to reverse-engineer the IntelliMouse USB HID protocol by installing USBPcap and Wireshark.
Steps:
- Open Wireshark with USBPcap plugin.
- Open "Microsoft Mouse and Keyboard Center" app.
- Change tail-light color.
- Observe
USBHID
SET_REPORT Request
packages withReportID=36
andReportType=Feature
that adhere to the format described above.
The feature report also contains a number of other non-zero bytes. I don't know if they carry a meaning or are just uninitialized memory.