SysEx framing
How the pedal's vendor SysEx is framed, paced and encoded. Read this before the command reference and the record layouts.
SysEx carries everything that isn't a single live parameter: identification, whole presets, names, system settings, looper/drum/tuner state and NAM/IR uploads. Live parameter changes use CCs.
Confidence
Confirmed = seen on the wire and consistent. Inferred = consistent with the captures and the static analysis but not independently proven. Code: midi.rs, pack.rs, queue.rs.
Manufacturer ID
All vendor SysEx uses the 3-byte manufacturer ID 00 21 7A. Two frame shapes follow it:
| Shape | Byte after 00 21 7A | Used for |
|---|---|---|
| Short frame | 00, 10, 60 | Firmware version and product name |
| Command frame | 70 | Everything else |
Short frames
Identification frames with no command byte.
| Request | Reply | Meaning |
|---|---|---|
F0 00 21 7A 00 F7 | F0 00 21 7A 10 <32 B ascii version> <ascii model> 00 00 F7 | Version: "V1.1.1" zero-padded to 32 bytes, then "JME-01" |
F0 00 21 7A 60 F7 | F0 00 21 7A 60 <24 B ascii product name> 0A 00 00 00 00 00 00 00 F7 | Product: "JME STOMPBOX", then 0x0A (10; meaning unknown, maybe the number of user slots) |
- Universal identity request: the pedal answers
F0 7E 7F 06 01 F7withF0 00 21 7A 10 F7, which is not a standard identity reply. - Unsolicited
F0 00 21 7A 10 F7: seen twice mid-session. Meaning unknown.
Command frames
The vendor calls these NEP frames (class NEPStruct in the app).
F0 00 21 7A 70 <cmd> <dir> <payload ...> F7
\_mfr__/ uid msgId direction| Field | Size | Value |
|---|---|---|
uid | 1 | Always 0x70 |
cmd (msgId) | 1 | Selects the data object (command table) |
dir | 1 | Direction |
| payload | any | All bytes ≤ 0x7F; encoding depends on the command (encodings) |
- No checksum observed.
- Payload bytes are always ≤
0x7F(the SysEx rule). How 8-bit data is carried depends on the command.
Direction
dir | Meaning | Sent by |
|---|---|---|
00 | Read request | Host |
01 | Write | Host |
02 | Read reply (data) | Pedal |
03 | Write acknowledge | Pedal |
7E | Not a dir: 7E in the cmd position marks a notification | Pedal |
- Write acks are short:
70 <cmd> 03+ a few bytes, often zeros, sometimes an echo of the request header. - Exceptions: a
0x0Dchain write and a0x16delete are answered with adir 02reply, not an ack.
Pacing and timeouts
The pedal handles one SysEx request at a time.
- Send one request or write.
- Wait for its
02reply or03ack (see the exceptions above) before sending the next SysEx frame. - Give up after 1 s and move on. The app's sender has a 1000 ms timeout and a mutex (static analysis).
- CCs and PCs have no reply and need no queue, but keep them in order with queued SysEx writes.
- Official app over USB: CCs ≥ 11 ms apart, typically 16 ms (one per UI frame).
- Bluetooth: at least 15 ms between messages. An unpaced burst of 61 CCs froze the pedal until a power cycle.
- Whole-record writes (settings
0x14, chain0x0D) are rewritten in full on every change. The app sends dozens of settings writes per second while a slider is dragged. open-stomp replaces a queued write of either with the newer one instead of queueing both.
open-stomp's RequestQueue implements this as a pure state machine; see your own MIDI transport.
Payload encodings
Three encodings are in use, plus plain text. Which one applies depends on the command.
| Encoding | Commands |
|---|---|
| Plain 7-bit | 0x0D, 0x15, 0x16, 0x18, 0x19, 0x6F, notification payloads |
| Packed 8-in-7 | 0x0B, 0x0C, 0x10, 0x14, 0x58 (the entire body after dir, header fields included) |
| Mixed | 0x09: plain slot byte, then a packed record |
| Plain text | 0x12 preset name |
Plain 7-bit
- Each byte is a value 0–127.
- 14-bit values are two bytes, high 7 bits first:
value = (hi << 7) | lo. Example: drum BPM00 78= 120.
Packed 8-in-7
8-bit data packed into 7-bit MIDI bytes as one little-endian bitstream:
- Every MIDI data byte contributes its 7 low bits, LSB first, and those bits are concatenated.
- Regroup the bits into 8-bit bytes, LSB first, to get the struct. A trailing partial byte is dropped.
- 126 MIDI bytes → 110 struct bytes (
126*7/8) for a preset.
/// 8-bit struct bytes -> 7-bit MIDI bytes (little-endian bitstream, LSB first).
pub fn pack(data: &[u8]) -> Vec<u8> {
let mut out = Vec::with_capacity(data.len() * 8 / 7 + 1);
let (mut acc, mut nbits) = (0u32, 0u32);
for &b in data {
acc |= (b as u32) << nbits;
nbits += 8;
while nbits >= 7 {
out.push((acc & 0x7F) as u8);
acc >>= 7;
nbits -= 7;
}
}
if nbits > 0 { out.push((acc & 0x7F) as u8); }
out
}
/// 7-bit MIDI bytes -> 8-bit struct bytes. A trailing partial byte is dropped.
pub fn unpack(midi: &[u8]) -> Vec<u8> {
let mut out = Vec::with_capacity(midi.len() * 7 / 8);
let (mut acc, mut nbits) = (0u32, 0u32);
for &b in midi {
acc |= ((b & 0x7F) as u32) << nbits;
nbits += 7;
if nbits >= 8 {
out.push((acc & 0xFF) as u8);
acc >>= 8;
nbits -= 8;
}
}
out
}# tools/decode/unpack.py
def unpack(midi: bytes) -> bytes:
bits = "".join(format(b & 0x7F, "07b")[::-1] for b in midi)
return bytes(int(bits[i:i+8][::-1], 2) for i in range(0, len(bits) - 7, 8))
def pack(data: bytes) -> bytes:
bits = "".join(format(b, "08b")[::-1] for b in data)
bits += "0" * (-len(bits) % 7)
return bytes(int(bits[i:i+7][::-1], 2) for i in range(0, len(bits), 7))- Evidence that headers are packed too: the
0x58slot reads use MIDI bytes00 00,00 02,00 04… for slots 0, 1, 2. That is exactly how slot = 0, 1, 2 at unpacked byte 1 comes out after packing. - Test: unpacking a captured 126-byte preset body must give 110 bytes with the name at 94..110, and
pack(unpack(x)) == x(modulo the final partial byte).
| Record | Struct bytes | MIDI bytes |
|---|---|---|
Preset (0x0B, 0x0C) | 110 | 126 |
Read request header (0x0B, 0x0C) | 12 | 14 |
System settings (0x14) | 17 | 20 |
Upload header (0x58, 0x10) | 12 | 14 |
| Upload chunk (header + 136 data bytes) | 148 | 170 |
| AMP slot info (header + 128) | 140 | 160 |
IR slot record (0x09, after the slot byte) | 36 | 42 |
Mixed
0x09 (IR slot info) is one plain byte (the slot index), then a packed stream starting at the next MIDI byte.
Plain text
0x12 preset name: plain ASCII, one character per byte, zero padded to 16. Inside packed records, names are just bytes of the struct.
Notifications
When something changes on the pedal that has no CC, the pedal sends:
F0 00 21 7A 70 7E 02 <cmd> 02 <payload...> F7cmd | Trigger | Payload | What the app does next |
|---|---|---|---|
0x6F | Tuner opened/closed on the pedal, or switched by a 0x6F write | 00 00 00 00 00 00 | Reads 0x6F, writes it back unchanged |
0x19 | Tap tempo, BPM knob, drum pattern change, loop recorded | 6 bytes, same layout as the drum record (BPM at bytes 4–5) | Nothing (the data is inline) |
0x0D | Block moved on the pedal's chain screen (once per move, then CC 0x3B page) | 00 00 00 00 00 00 | Read 70 0D 00 for the new order |
0x0B | Preset saved on the pedal | <index> 00 00 00 00 00 | Reads preset <index> (70 0B 00 <index> 00*13) |
0x16 | After a 0x16 delete-IR write from the host | <slot> 00 00 00 00 00 | Nothing seen |
- open-stomp's follow-ups:
0x0D→ read the chain;0x0B→ read that preset and the edit buffer;0x6F→ read the tuner (queue::follow_up). - State sync: after the handshake, keep state from channel-1 CCs/PCs, these notifications, and your own writes (the pedal doesn't echo them).
Bluetooth LE
With Wireless on, the pedal speaks the same protocol over BLE-MIDI. Only the framing and the timing change.
| Service | 03b80e5a-ede8-4b33-a751-6ce34ec4c700 (standard BLE-MIDI) |
| Characteristic | 7772e5db-3868-4112-a1a9-f2669d106bf3 |
| Writes | Without response, packets up to ATT MTU − 3 bytes (20 bytes on every link) |
| Pairing | Not needed |
| Pacing | ≥ 15 ms between messages (see pacing) |
| Reply latency | 40–240 ms, median 95 ms (USB: about 1 ms) |
- Framing (Apple / MMA "MIDI over Bluetooth LE"): a header byte
1 0 t12…t7, then MIDI messages, each status byte preceded by a timestamp byte1 t6…t0. Timestamps are 13-bit milliseconds and wrap. - SysEx across packets: a continuation packet carries its data bytes straight after the header, and the closing
F7gets its own timestamp byte. - Running status is allowed, with or without a fresh timestamp.
- Pad read requests like the app. The
0x0Cread must carry its 14 zero bytes: the pedal takes request parameters from those bytes, and a bare request makes it read whatever the previous message left in its buffer. Seen over BLE as empty or truncated replies. - Why pace: the pedal's BLE module feeds the DSP over a serial link (AT commands over UART, per the firmware strings).
Code: blemidi.rs (framing), ble.rs (link).
