Capturing traffic
How the protocol was captured from the official app, the tools used, and how to make new captures on macOS or Linux. Read this if you want to check a finding or reverse engineer something still open.
Where the tools live
The capture and decoding tools, the static-analysis artefacts and captures/LAB_NOTES.md are in the open-stomp-manager repository, where the reverse engineering was done. This repository carries captures/logs/ as test vectors.
Approach
- No bus sniffer on macOS: on Apple Silicon, bus-level USB capture (Wireshark
XHCxinterfaces) isn't available without disabling SIP. - Hook CoreMIDI instead: every byte the editor exchanges with the pedal goes through CoreMIDI, so the sniffer hooks CoreMIDI inside the app. That gives exact payloads in both directions, with port names and millisecond timestamps.
- On Linux it's trivial:
amidi -d,aseqdump, orusbmon+ Wireshark (below).
The macOS sniffer
tools/sniffer/ in open-stomp-manager:
| File | What it does |
|---|---|
midisniff.c | A dylib that interposes (__DATA,__interpose) MIDISend, MIDISendSysex, MIDISendEventList, MIDIReceived, MIDIInputPortCreate*, MIDIDestinationCreateWithBlock and MIDIPortConnectSource, and logs every packet to $SNIFF_LOG |
midimon.c | Standalone CoreMIDI tool: list, listen [filter] [log], send <filter> <hex…> (sends raw bytes and prints replies for 1.5 s) |
build.sh | Builds both, copies /Applications/Stomp Manager.app to work/StompManager-sniff.app and ad-hoc re-signs it without hardened runtime, so dyld honours DYLD_INSERT_LIBRARIES |
run.sh [name] | Launches the instrumented copy, logging to captures/logs/<name>.log, and records the path in captures/CURRENT |
mark.sh "text" | Appends # MARK <ms> text to the current log, to label what you're about to do |
shot.sh [label] | Screenshots the Stomp Manager window (found via CGWindowList) to captures/screens/<ms>_<label>.png |
autoshot.py [cc…] | Tails the log and screenshots the app ~0.6 s after a model/page CC arrives (used to pair model numbers with names) |
- The original app is never modified. Only the copy in
work/is re-signed. - Quit the original app first. Two editors talking to the pedal at once muddle the capture.
Log format
# midisniff attached pid=6340 at 1792560244265 -> …/01-main-session.log
1792560250347 TX 6 [JME STOMPBOX] F0 00 21 7A 00 F7
1792560250349 RX 46 [JME STOMPBOX] F0 00 21 7A 10 56 31 2E …
# MARK 1792560304615 DEVICE: switching presets on the deviceOne packet per line: <unix ms> <DIR> <len> [<endpoint>] <hex>.
DIR | Meaning |
|---|---|
TX | App → pedal |
RX | Pedal → app |
VSRC / VDST | Virtual endpoints |
INFO | Port events (e.g. [connect source: JME STOMPBOX]) |
- Marks:
# MARK <unix ms> <text>lines say what was about to be done. - Split SysEx: CoreMIDI may split SysEx across packets; the decoders reassemble it.
- Reading logs in Rust:
open_stomp::capture::parse(capture.rs).
Capture logs
The logs in captures/logs/ are traffic between the official Stomp Manager 1.0.2 and a Dual Stomp Lite on firmware V1.1.1.
| File | Contents |
|---|---|
00-selftest-identity.log | Sniffer self-test: one identity ping (F0 7E 7F 06 01 F7 → F0 00 21 7A 10 F7) |
01-main-session.log | About 2 h: connect handshake, every pedal control, every app action, rename/save, settings, NAM/IR uploads, each labelled with # MARK lines |
02-ir-tests.log | IR imports into all ten user IR slots, with the 0x16 delete-IR writes; no marks |
Decoders
tools/decode/ in open-stomp-manager:
| File | Use |
|---|---|
live.py | python3 tools/decode/live.py [--all] [log] decodes a log live (or whole) into English: PEDAL->APP AMP OFF model 29 = Agula DP751, APP->PEDAL [ch2] LOOPER button: UNDO/REDO, SYSEX NOTIFY drum/tempo: BPM = 94… Unknown messages print as ?? |
analyze.py | python3 tools/decode/analyze.py <log> [--uniq] [--raw] [--gap ms] gives a timeline with marks and burst separation, or a summary of distinct message shapes |
unpack.py | 8-in-7 bitstream helpers (unpack_bytes, bits_of, read) |
preset_layout.py | Re-derives the preset field offsets by correlating SysEx preset reads with CC dumps |
nam_extract.py | Extracts the float32 payload of a NAM (0x58) or IR (0x10, data_sub=0) upload |
ocr.swift | Vision-framework OCR of screenshots (build: swiftc -O ocr.swift -o ocr). Prints text with positions; used to read model and parameter names off the app |
In this repository, cargo run --example decode -- captures/logs/01-main-session.log prints a capture as readable events.
How the main session was run
captures/logs/01-main-session.log (about 2 h) was recorded with the pedal on firmware V1.1.1. Every action was announced and marked first, and the app was screenshotted.
- App connect / handshake.
- Pedal side (
DEVICE:marks): preset switching, tuner, gate, OD/FX (all 16 models, each knob), AMP (all 40 models), CAB (models, mic/position, user IR slots), EQ (6 and 10-band), MOD (13), DELAY (7), REVERB (6), looper (record/overdub/undo/redo/clear, 4 options), drum (on/off, tap tempo, level, BPM, every style, two styles' full pattern lists), global EQ on the pedal (no traffic), save/rename on the pedal, VOL. - App side (
APP:marks): preset select, gate edits, amp model changes, looper buttons (twice), rename + save-as, settings (global EQ, input trim, wireless, loopback), NAM import ×3 (one delete + re-import), IR import.
captures/LAB_NOTES.md is the raw running notebook from that session. These docs supersede it where they differ.
Making new captures
Build the sniffer once and launch the instrumented app:
shcd tools/sniffer && ./build.sh # once ./run.sh 02-my-test # launches the instrumented appIn a second terminal, mark each action before you do it:
sh./mark.sh "APP: doing X"In a third terminal, watch the live decode:
shpython3 ../decode/live.py
To probe the pedal directly without the app:
./midimon send STOMPBOX F0 00 21 7A 70 14 00 F7WARNING
Don't run firmware updates while sniffing. They don't use MIDI anyway (they go over USB HID).
Linux tools
No driver or capture tooling is needed: the pedal is a class-compliant ALSA MIDI device.
lsusb | grep 3962 # 3962:2000 SORAN JME STOMPBOX
amidi -l # e.g. IO hw:2,0,0 JME STOMPBOX MIDI 1
# version request -> expect F0 00 21 7A 10 56 31 2E 31 2E 31 ... (ascii "V1.1.1")
amidi -p hw:2,0,0 -S 'F0 00 21 7A 00 F7' -d -t 1
# watch what the pedal reports while you turn knobs
amidi -p hw:2,0,0 -d
# switch to preset P05 (index 4): channel-2 Program Change
amidi -p hw:2,0,0 -S 'C1 04'
# amp off / on (head CC 0x01, bit 6 = off; keep the current model in the low bits)
amidi -p hw:2,0,0 -S 'B1 01 40' ; amidi -p hw:2,0,0 -S 'B1 01 00'- Port matching: match
JMEin the port name. The official app uses the regexes.*JME.*and.*SORAN AMPEY.*;open_stomp::is_stomp_portdoes the same. - Other tools:
aseqdump(sequencer view), orusbmon+ Wireshark for bus-level captures. - SysEx delivery: with
midir, enableignore(Ignore::None)so SysEx is delivered whole. Raw ALSA rawmidi gives you full control over SysEx buffering.
Using captures as test vectors
cargo testruns the protocol against01-main-session.log: every preset and settings record on the wire re-encodes byte for byte, the captured save as is rebuilt from state alone, and the whole startup sync is driven throughRequestQueueagainst a fake pedal that answers with the recorded replies (tests/offline_pedal.rs).- IR imports are checked byte for byte against
02-ir-tests.log(tests/ir_import.rs). - Replay a capture through the real engine to develop without a pedal: Replaying captures.
