A lot of small hardware (AIO cooler screens, RGB hubs, stream decks, case LCDs) only ships a Windows app, and the usual route to Linux support is someone staring at Wireshark for an evening. I built usb-rea to do the step after Wireshark.

You capture with usbmon on Linux or USBPcap on Windows, label what you clicked in the vendor app (brightness 0, 50, 100, fan 30%, and so on), and it infers the command layout: constant headers, which byte follows which setting, counters, checksums like CRC16, lookup tables and image streams. It then writes a Markdown report where every claim points to Wireshark frame numbers, plus a standalone pyusb driver.

On public captures of the NZXT Kraken X it recovers the fan command byte for byte as liquidctl sends it, and the generated driver produces identical packets for values it never saw. It is alpha, MIT, pip install usb-rea, and usb-rea demo --device fan runs without any hardware.

If you have a device that only works on Windows, I am happy to run a capture through it and post the result.

other discussions
 

I wrote this for hardware that only ships a Windows app (case LCDs, RGB controllers, AIO coolers, mice). You record USB traffic while clicking through the vendor app (usbmon on Linux, USBPcap on Windows), note what each click did, and usb-rea infers the command layout: constant bytes, counters, value fields with their scaling, lookup tables, checksums and CRCs, handshakes and image streams. Output is a Markdown report where every claim points at Wireshark frame numbers, plus a standalone pyusb driver.

A few Python-side details that might interest people here:

  • The pcap and pcapng parsing is plain standard library, so the only runtime dependency besides the optional MCP server is pyusb.
  • Linear field fits have to survive leave-one-out cross-checks before they are reported, so it says "unknown" rather than guessing.
  • usb-rea demo --device fan generates a synthetic capture and runs the whole pipeline, so you can try it with no hardware.

It is MIT licensed and on PyPI (pip install usb-rea). On known protocols, for example the NZXT Kraken X fan command from liquidctl, it recovers the packet format byte for byte. Feedback on the code or the inference approach is welcome.

 

I kept buying hardware (case LCDs, RGB controllers, mice) that only ships a Windows app, so I built usb-rea. You capture USB traffic with USBPcap or usbmon while using the vendor app, and it groups the packets, diffs them, infers the command structure and drafts a small open-source Linux driver you can test. It also runs as an MCP server, so an LLM client can drive the analysis step by step. I validated it against public captures of devices whose protocols are already documented (Turing Smart Screen, Thermalright LCD), so the output can be checked against known ground truth. It is MIT licensed, feedback and captures of stubborn devices are welcome.

 

I kept buying hardware (case LCDs, RGB controllers, mice) that only ships a Windows app, so I built usb-rea. You capture USB traffic with USBPcap or usbmon while using the vendor app, and it groups the packets, diffs them, infers the command structure and drafts a small open-source Linux driver you can test. It also runs as an MCP server, so an LLM client can drive the analysis step by step. I validated it against public captures of devices whose protocols are already documented (Turing Smart Screen, Thermalright LCD), so the output can be checked against known ground truth. It is MIT licensed, feedback and captures of stubborn devices are welcome.

 

A lot of small hardware (case LCD screens, RGB controllers, AIO coolers, mice, macro pads) is only configurable through a closed Windows app, so on Linux it either works half way or not at all. I made usb-rea to shorten the reverse engineering part.

You capture USB traffic (USBPcap on Windows, usbmon on Linux) while clicking through the vendor app, optionally noting what you did ("brightness 50", "colour red"). usb-rea groups the transfers into commands, finds the fields that change, checksums, handshakes and image streams, and writes an evidence report, a Wireshark Lua dissector and a small pyusb driver skeleton that you can turn into a proper open driver.

It is a plain CLI (it can also run as an MCP server), MIT licensed, on PyPI as usb-rea, and usb-rea demo runs the whole pipeline on a synthetic capture so you can try it without any hardware. It is tested against protocols that open projects already document (liquidctl, rivalcfg) and public Wireshark captures.

If you have a device stuck behind a Windows app and a capture where it gets things wrong, I would like to hear about it.

 

I made this because I kept running into USB gadgets (case LCDs, RGB controllers, mice) that only ship a Windows app.

The workflow: capture USB traffic with USBPcap or usbmon while you click through the vendor app, optionally mark each action ("brightness 50", "mode breathe"), and usb-rea groups the transfers into commands, finds the changing fields, checksums, handshakes and image streams, then writes an evidence report, a Wireshark Lua dissector and a small pyusb driver skeleton.

It is a plain CLI, and it also runs as an MCP server so an AI coding assistant can drive the same steps. It is checked in CI against protocols that open-source projects already document (the NZXT Kraken fan command from liquidctl, SteelSeries Rival tables from rivalcfg) and against public Wireshark captures, and you don't need any hardware to try it: usb-rea demo runs the whole pipeline on a synthetic capture.

Open source (MIT), on PyPI as usb-rea. Feedback on captures where it gets things wrong is very welcome.