Sniffer
The sniffer sits between the computer and the radio so you can capture clone-protocol bytes. Use a debug cable toward the computer and a programming cable toward the radio.
HamBench talks to a separate headless ham-radio-sniffer process over HTTP. The desktop app can install, start, and stop that process on this computer or over SSH.
Connection
- Open Preferences → Sniffer. Set Host (default
127.0.0.1) and Port (default3010). Install directory defaults to~/ham-radio-sniffer; Run command defaults to./ham-radio-sniffer. - Open Radio → Sniffer. Computer port is the debug cable; Radio port is the programming cable. Turn on Bridge ports.
- Traffic streams into the Traffic panel. Save capture writes JSON for offline review.
Preferences → Serial ports can hide macOS system devices from these lists and can name a port so the selector shows that name. See Read and write memory.
If the bridge is running and byte counts stay at 0, the selected serial device is not receiving. Each bridge write is logged with the destination port and the hex, including when the write finishes or is dropped. On the sniffer host, SNIFFER_LOG_LEVEL=debug ./ham-radio-sniffer also prints every chunk as hex.
You can start the sniffer yourself (./ham-radio-sniffer) and only set Host and Port.
Install, start, and stop
These controls are in Preferences → Sniffer and run only in the desktop app. Install copies one binary; Node is not required.
- Install copies the bundled sniffer binary into the install directory. Use it again to update.
- Running starts a detached process and waits until
/api/healthresponds. If start fails, the error includessniffer.logtails. - An older install shows Update available when its version is behind the copy bundled in HamBench.
With Control over SSH off, commands run on this computer. Loopback binds 127.0.0.1; any other host binds 0.0.0.0.
With Control over SSH on, the same commands run on Host (192.168.1.10 or pi@192.168.1.10). SSH uses key or agent authentication only (BatchMode=yes). There is no tunnel; allow the listen port through the host firewall if needed.
Disconnect CAT on a port before sniffing that same serial device.
Capture files
Saved captures use kind springfield-ham-radio-sniffer-capture and include port metadata, coalesced UI frames, and a log array in the same SEND / RECV shape as Radio read/write logs. Prefer log when comparing a sniffer capture to a driver serial log.