r/midi • u/wmellema • Jul 25 '26
Reverse-engineered CME's undocumented USB-MIDI config protocol (U6MIDI Pro / U2MIDI Pro) off the wire. Full byte map + a public-domain codec
CME's little USB-MIDI interfaces (U6MIDI Pro, U2MIDI Pro, and the C2MIDI Pro / U4MIDI WC) have a real configuration engine inside: a routing matrix, per-port message/channel filters, sixteen MIDI remappers, user curves, and presets. All of it is set over SysEx by CME's own app, and there is zero public documentation of that wire format. No bulk-dump spec, no implementation chart, not even a model ID in print.
So I mapped the whole thing black-box and wrote it up. Method: capture the USB traffic with usbmon while poking the vendor app, never read a line of their binary, and verify every field both directions on real hardware (read it back, and write my own bytes and confirm the vendor app renders them). Cross-confirmed on a second device to prove it's a family protocol, not one box's quirk.
A few things that made it fun:
Manufacturer SysEx (
00 20 63), and the model tag is just the USB product ID high byte (0x16 = U6, 0x14 = U2). Wrong tag and the device stays dead silent, which is why the universal identity request gets you nothing.Everything multi-byte (preset names, mapper fields, the serial number) is packed the same way: four bytes stuffed into a five-byte, 7-bit-safe block as a big-endian 32-bit int. That one packing was the key that unlocked the rest. Renaming a preset to sixteen As and reading it back is what gave it away:
01 14 28 50 20 01 14 28 50 20 01 14 28 50 20 00 10 28 50 20The device name is the USB product string. Rename it over SysEx and lsusb reports the new iProduct. You can rename what the OS sees, from a shell.
It only accepts config over USB, not routed in over DIN, which is a sane refusal once you think about it (it would be reinterpreting passing traffic as commands to itself).
Write-up is a standalone byte map you can implement against, with a dependency-free Python/JS en/decoder (public domain, do what you like). There's also a two-part story of the decode, dead ends included.
Byte map + codec: The CME UxMIDI SysEx protocol: a complete byte map for the U6MIDI Pro and U2MIDI Pro
The story, part 1 and 2:
Reverse engineering the CME U6MIDI Pro, part 1: a protocol with no map
Reverse engineering the CME U6MIDI Pro, part 2: one packing under everything
Full disclosure: this fell out of building a pedalboard/MIDI tool of mine, but the protocol reference is free, standalone, and vendor-code-free. If anyone has a C2MIDI Pro or U4MIDI WC, I can predict the model tag from the PID but haven't confirmed it. Captures welcome, and corrections from your own hardware even more so.
2
u/Glittering_Cheek3235 Jul 25 '26
Nice work.
Nothing wrong with learning how it works. But keep in mind that they could change this protocol at any time in the future with an app and firmware update. That's quite common, and often why these things are not documented.
I suggest making that super clear at the top of your reference article (and also indicate which firmware revisions and app versions you used), otherwise, months or years later, folks vibe code apps which use this as an input, and later when sometime doesn't work, they end up reaching out to everyone except you, and everyone else gets blamed when it stops working :)
Pete
Microsoft
3
u/insolace Jul 27 '26
I would add to this, be very careful when sending sysex to devices you don’t have access to the firmware source. For example: a simple bug in the firmware where they don’t clamp incoming inputs can lead to over-indexing and memory corruption, sometimes it can even brick a device.
1
u/wmellema Jul 28 '26
Also a fair point. However, all values that I'm handling via the en/decoders have either been pulled from the hardware or have been sent via the software. It's not like I'm sending arbitrary bits/bytes to any of the devices that I haven't already observed in the reverse-engineering process.
Well, apart from the 2 mystery bytes in the strymon pedals, but that's on my own hardware just to confirm my assumptions that they probably did nothing.
The project I'm building towards is meant to replace all the vendors specific editors for guitar pedals, and replace them with a single unified interface, as well as simplifying the more complex boards with multiple MIDI pedals and for example an ES-8 switcher. The underlying en/decoder engines will clamp down on any values that were not explicitly observed, following a firmware specific byte map. Only valid, confirmed and hardware validated values/addresses will be sent to the device itself.
2
u/insolace Jul 28 '26
That all makes sense, just be careful as you’re poking around. I maintain all of the firmware at Muse Kinetics / KMI, and the software editors, and we have factory calibration messaging that if it’s erased, the sensors won’t work anymore. We use CRC checks with our encoding, so casual brute force reverse engineering wont work, but we’ve open sourced our editors now (https://github.com/muse-kinetics) and if you were to bootstrap our encoding to your own editor, you’d be taking a pretty big risk and definitely be voiding your warranty.
2
u/wmellema Jul 26 '26
Fair points all around. For what I'm building, all en/decoders are limited by firmware version pulled from the device. But the public docs should have the firmware version added.
Because I updated the firmware halfway through, I did manage to find out it was just the offsets that changed, not the entire protocol. But it's a real risk, so I'll add a note to the docs! Thanks for pointing it out!
5
3
u/blueSGL Jul 25 '26
Fantastic.
I always found their editor a bit clunky. Being able to script this should make it easier.
3
u/FailboatProjStudio Jul 25 '26
Thanks for the detailed, diligent, hard work!
I love my last gen iConnectivity and current gen CME BT BLE gear...
hopefully this data will come in useful in the future should something bad happen to either firm, (including private equity hostile takeover and associated greed and enshitification via planned obselecence or dropped support...)
After all.... "It should not be a crime to know how your purchased item actually works..."
Overheard at a car dealership while service manager was trying to hold customer accountable to pay $980 for additional labor for a firmware upgrade, but then could not show proof of how long it actually took to swap an SD card, or could not prove the upgrade actually happened, or if the firmware actually had any legitimate safety or performance benefit to the customer when asked why it was "required"...
1
u/nrdsrfr 24d ago
before I have a stab at this has anyone already created a better app for configuring the CME devices because I’ve had mine for a while and I absolutely hate the app. I still can’t understand whether or not filtering is filtering things in or out for example. The UX is absolutely crap. I am wasted for many hours with this and I think it’s not the hardware it’s just terrible software.
2
u/ribbidee Jul 25 '26
Some manufacturers just make a handy manual for product features 😄