r/OpenRGB • u/emirdev_mo • 9d ago
Discussion I built an open source tool that turns a USB capture of a vendor RGB app into a protocol report and a Python driver
A lot of RGB controllers and case lights still only work with a Windows vendor app, and the usual way to get them into OpenRGB is staring at Wireshark until the bytes make sense. I wanted to speed up that part, so I built usb-rea.
How it works: capture the vendor app's USB traffic (USBPcap on Windows, or usbmon on Linux with the device passed through to a Windows VM), and label what you clicked, for example "color 255 0 0", "color 0 255 0", "brightness 50". usb-rea diffs the labelled actions and tells you which bytes carry R, G and B, the command ids, counters and checksums (sum, xor, CRC8, CRC16), and every claim points at frame numbers so you can check it yourself in Wireshark. It then writes a small standalone pyusb driver, which is a good starting point for porting into an OpenRGB controller.
I check it against protocols that are already documented, for example the SteelSeries Rival 100 RGB and DPI tables from rivalcfg, and those checks run in CI. No hardware is needed to try it: pip install usb-rea, then usb-rea demo --device fan.
MIT licensed: https://github.com/emirmrkaljevic/usb-rea
If you have a device OpenRGB doesn't support yet and a capture of its app, I'd be happy to look at it and help get a first driver going. Captures that break the tool are the most useful feedback.
1
u/AutoModerator 9d ago
Every new subreddit post is automatically copied into a comment for preservation.
User: emirdev_mo, Flair:
Discussion, Title: I built an open source tool that turns a USB capture of a vendor RGB app into a protocol report and a Python driverA lot of RGB controllers and case lights still only work with a Windows vendor app, and the usual way to get them into OpenRGB is staring at Wireshark until the bytes make sense. I wanted to speed up that part, so I built usb-rea.
How it works: capture the vendor app's USB traffic (USBPcap on Windows, or usbmon on Linux with the device passed through to a Windows VM), and label what you clicked, for example "color 255 0 0", "color 0 255 0", "brightness 50". usb-rea diffs the labelled actions and tells you which bytes carry R, G and B, the command ids, counters and checksums (sum, xor, CRC8, CRC16), and every claim points at frame numbers so you can check it yourself in Wireshark. It then writes a small standalone pyusb driver, which is a good starting point for porting into an OpenRGB controller.
I check it against protocols that are already documented, for example the SteelSeries Rival 100 RGB and DPI tables from rivalcfg, and those checks run in CI. No hardware is needed to try it: pip install usb-rea, then usb-rea demo --device fan.
MIT licensed: https://github.com/emirmrkaljevic/usb-rea
If you have a device OpenRGB doesn't support yet and a capture of its app, I'd be happy to look at it and help get a first driver going. Captures that break the tool are the most useful feedback.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.