Turning Windows-only USB gadgets into open Python drivers with usb-rea
说明与用途
usb-rea 自动推断 USB 设备协议,生成 pyusb 驱动和 Wireshark 解码器,使 Linux 能够控制仅限 Windows 的设备。
问题
Windows‑only USB gadgets (RGB controllers, smart lamps, fan hubs) are unusable on Linux, requiring manual packet analysis with Wireshark.
结果
usb-rea automatically infers USB protocol details, produces a pyusb driver and a Wireshark dissector, reducing manual effort and enabling Linux control of previously Windows‑only gadgets.
工作流
- Capture USB traffic (usbmon on Linux, USBPcap/Wireshark on Windows).
- Label actions with usb-rea mark commands.
- Run usb-rea diff to infer packet structure.
- Generate report.md and a standalone pyusb driver.
- Optionally create a Wireshark Lua dissector with usb-rea dissector.
证据
usb-rea automates that loop.
You get report.md, where every claim cites Wireshark frame numbers, and a standalone pyusb driver.
The generated driver encodes values you never captured, including the counter and the CRC.
It has not been run on a physical gadget yet. That's where you come in.
- 记录日期: 2026-10-19T08:56:00.318Z