MultiScan SDR PRO – Decoder plugins
Decoder plugins add decoders of your own to MultiScan SDR PRO without changing MultiScan itself. A plugin is an ordinary program (any language: Rust, C, Python, Go …) that MultiScan starts and talks to over stdin / stdout:
- MultiScan → plugin (stdin): the signal of the decoder VFO – either the demodulated audio or the narrow IQ channel around the VFO – plus a few control messages.
- plugin → MultiScan (stdout): one JSON object per line – messages, table rows, a status line, debug-log lines and optionally audio for the loudspeaker.
- stderr of the plugin goes into the debug log of MultiScan.
Plugins are a feature of the activated MultiScan SDR PRO. Without an activated PRO licence they are listed but greyed out.
1. Concept
In the 📟 Decoder mode the receiver runs one decoder instead of the scanner. The group 🧩 Plugins next to the built-in decoder groups lists the installed plugins (icon, name, description as tooltip). Choosing one
- starts the normal decoder VFO (frequency, modulation, filter, squelch, spectrum and waterfall – exactly as for the built-in decoders),
- starts the plugin program and
- feeds it the VFO signal continuously, block by block (about 20 ms per block).
What the plugin reports appears
- in the raw text of the Decoder mode (
time [MHz] text), - in the message list (📨 Messages, kind “Plugin”, text
<plugin name> · <message>), - in the logs (one log entry per message, name = plugin name) and in the debug log,
- in the web control (latest decoder messages),
- table rows in a simple table view of the plugin (one tab per table).
Like the built-in decoders, a plugin always gets the signal – also while the squelch is closed (it learns the squelch state through a control message, see 7).
All frequencies: plugins get the signal on every frequency – also in the L band (e.g. 1400–1700 MHz: weather satellites, navigation satellites, Inmarsat). What a plugin does with it is the responsibility of its author and its user; the legal rules on non-public communication (secrecy of telecommunications) apply to plugins as well. The built-in 🌐 Inmarsat mode keeps its own rules (voice channels as activity only) and does not use plugins.
2. Folder layout
<settings folder>/MultiScan PRO/Plugins/
example-tone/ ← one folder per plugin (the name is free)
plugin.json ← manifest (required)
example-tone ← the program (Mac / Linux)
example-tone.exe ← the program (Windows)
plugin.sig ← signature (optional, see 9)
… ← anything else the plugin needs (models, tables …)
Settings folder: Mac ~/Library/Application Support/MultiScan PRO, Windows %APPDATA%\MultiScan PRO. Setup ▸ 🧩 Plugins ▸ 📂 Open plugin folder opens it; 🔄 Reload reads it again after you added or changed a plugin.
The program is started with the plugin folder as its working directory. The executable must lie directly in the plugin folder (no paths). On Mac / Linux it needs the executable bit (chmod +x).
The example plugin example-tone is shipped with MultiScan and copied into the Plugins folder at the first start (only if it is not there; a plugin you deleted is not installed again).
3. The manifest plugin.json
{
"id": "example-tone",
"name": "Example: DTMF / tone",
"version": "1.0.0",
"author": "SIGINT-SYSTEMS (example)",
"description": "Finds DTMF digits and steady tones in the demodulated audio.",
"icon": "🎹",
"input": "audio",
"rate": 48000,
"executable": { "macos": "example-tone", "windows": "example-tone.exe", "linux": "example-tone" },
"args": [],
"min_version": "1.5.2",
"protocol": 1,
"defaults": { "freq_hz": 145350000, "modulation": "NFM", "bw_hz": 12500, "squelch_db": 0 },
"tables": { "dtmf": ["digit", "low_hz", "high_hz", "level_db"] }
}
| Field | Required | Meaning |
|---|---|---|
name | yes | Name in the list. |
executable | yes | File name of the program. Either one string for all systems (Windows adds .exe when the name has no extension) or an object with "macos", "windows", "linux". |
id | no | Unique id (default: folder name). Two plugins with the same id: the second one is not used. |
version | no | Version of the plugin, shown in Setup. |
author | no | Shown in Setup. |
description | no | Tooltip in the decoder list and text in Setup. |
icon | no | One emoji in front of the name (default 🧩). |
input | no | "audio" (default) or "iq", see 4. |
rate | no | Sample rate the plugin wants, 4000 … 10 000 000 S/s (default 48000). Audio is resampled from 48 kHz, IQ is filtered and decimated to this rate. An IQ plugin with a high rate (e.g. 4 MS/s for HRPT) makes the receiver run at least that fast (otherwise at its highest rate). |
args | no | Command line arguments for the program. |
min_version | no | Lowest MultiScan version the plugin needs, e.g. "1.5.2". Older MultiScan versions show the plugin as faulty. |
protocol | no | Protocol version the plugin speaks (default 1). A higher number than MultiScan knows → not loaded. |
defaults | no | Start settings of the decoder VFO the first time the plugin is chosen: freq_hz, modulation (NFM, WFM, AM, USB, LSB, CW, DIG), bw_hz, squelch_db. Later MultiScan keeps the user's last VFO settings. |
tables | no | Column order per table name (see row). Columns not listed follow in the order they come. |
4. Input protocol (stdin)
stdin is a binary stream of frames (all numbers little endian):
+--------+----------------+---------------------+
| kind | length | payload |
| 1 byte | u32 LE (bytes) | <length> bytes |
+--------+----------------+---------------------+
| kind | Payload |
|---|---|
'J' (0x4A) | Control message, UTF-8 JSON (start, retune, squelch). |
'A' (0x41) | Audio block: u64 LE index of the first sample, then f32 LE mono samples. |
'I' (0x49) | IQ block: u64 LE index of the first sample, then cf32 LE samples (I, Q, I, Q …). |
The sample index counts every sample of the stream from 0 – including blocks MultiScan had to drop because the plugin was too slow. If the index of a block is larger than the end of the previous one, samples are missing (see 8).
Audio input ("input": "audio"): the audio after the demodulator of the decoder VFO (the modulation set in the VFO: NFM, AM, USB …), before the squelch and the loudspeaker volume, mono, values about −1 … +1, 48 kHz (or the rate of the manifest).
IQ input ("input": "iq"): complex baseband centred on the VFO frequency (0 Hz = VFO), low-pass filtered to about ± filter width / 2 (at most ± 0.45 × rate), at the rate of the manifest. With a sound card as the decoder source there is no IQ – an IQ plugin then gets no data blocks.
The first frame is always the start message:
{"type":"start","protocol":1,"app":"MultiScan SDR PRO","app_version":"1.5.2",
"plugin":"example-tone","input":"audio","format":"f32le","rate":48000,
"freq_hz":145350000.0,"modulation":"NFM","bw_hz":12500.0,"lang":"en"}
format is "f32le" (audio) or "cf32le" (IQ); lang is "de" or "en" (language of the user interface – a plugin may answer in it).
Reading a frame, e.g. in Python:
hdr = sys.stdin.buffer.read(5) # b'' at the end
kind, n = hdr[0], struct.unpack("<I", hdr[1:5])[0]
payload = sys.stdin.buffer.read(n)
5. Output protocol (stdout)
One JSON object per line (UTF-8, \n at the end, flush after every line). Lines that are not valid JSON or have an unknown type are counted (“invalid output lines”) and written into the debug log – they never stop the plugin. Lines longer than 1 MB are cut.
message – a decoded message
{"type":"message","text":"DTMF 1234#","fields":{"digits":"1234#","count":5}}
text and/or fields (at least one of them). In the raw text, message list and logs it appears as DTMF 1234# · count=5 · digits=1234#. fields may also be a list of pairs to keep the order: "fields":[["digits","1234#"],["count",5]].
row – a table row
{"type":"row","table":"dtmf","cols":{"digit":"5","low_hz":770,"high_hz":1336,"level_db":-12.9}}
Each table gets its own tab in the plugin view (newest row on top, time column added by MultiScan, at most 2000 rows per table). Without table the row goes into the table default. Column order: the tables entry of the manifest, otherwise the order of the keys (or use a list of pairs as for fields).
status – status line
{"type":"status","text":"level -23 dB · squelch open"}
Shown under the plugin name and in the status line of the Decoder mode. Send it now and then (e.g. once a second), not for every block.
log – debug log
{"type":"log","text":"retune 145.3500 MHz"}
Only into the debug log (Setup ▸ 🐞 Debug log). stderr lines of the plugin land there too.
audio – sound for the loudspeaker
{"type":"audio","pcm16_b64":"AAAAQP8/…"}
See 6.
6. Audio from the plugin
pcm16_b64 = Base64 of signed 16-bit little-endian PCM, mono, 48 kHz. As long as the plugin sends audio (and up to one second after the last block), the loudspeaker plays the plugin audio instead of the receiver audio – through the normal audio mixer (volume, mute, recording of the receptions). The squelch of the VFO does not cut plugin audio – the plugin decides itself when to send sound. Send blocks of 10–100 ms at about real-time speed; at most 2 s are buffered, older audio is dropped.
7. Retune, squelch, end of the plugin
When the user tunes the decoder VFO (frequency, modulation or filter width), the plugin gets
{"type":"retune","freq_hz":145375000.0,"modulation":"NFM","bw_hz":12500.0}
and afterwards the blocks of the new channel (the sample index simply goes on). Reset half-finished decodes on retune.
When the squelch of the VFO opens or closes:
{"type":"squelch","open":true}
End: when the user chooses another decoder, stops the decoder or quits MultiScan, stdin is closed (end of file). The plugin should then write its last lines and exit. After about 0.6 s MultiScan ends the process for good.
8. Errors, crashes, slow plugins
- A crash or exit of the plugin never takes MultiScan down. The plugin view shows “Plugin ended (code n)” with a 🔄 Restart button (on a Mac a crash by a signal shows as a negative code, e.g. −11 for a segmentation fault). The raw text gets a line too.
- A plugin that cannot be started (file missing, no permission, faulty
plugin.json, switched off, not signed while “Load signed plugins only” is on) shows the reason in red, also with 🔄 Restart. Setup ▸ Plugins shows faulty plugins with the reason. - Backpressure: MultiScan never waits for a plugin. Up to about one second of blocks wait for a slow plugin; beyond that new data blocks are dropped and counted (“blocks dropped (plugin too slow)”). Control messages are never dropped. The plugin sees the gap in the sample index.
- stderr of the plugin → debug log (lines up to 400 characters, at most 2000 lines per run).
9. Signing
Setup ▸ 🧩 Plugins ▸ “Load signed plugins only” (off by default) allows only plugins with a valid SIGINT-SYSTEMS signature. Unsigned plugins carry a ⚠ in the decoder list and “⚠ not signed” in Setup.
Format of plugin.sig (next to plugin.json):
digest = SHA-256( bytes of the executable || bytes of plugin.json )
message = "multiscan-plugin|v1|" + lower-case hex of digest
signature = Ed25519(message) with the SIGINT-SYSTEMS license key
plugin.sig = Base64 (standard alphabet, with padding) of the 64 signature bytes
(whitespace and line breaks are ignored)
The check uses the public SIGINT-SYSTEMS license key that is built into MultiScan (the same as for the licence codes). The executable is the file named for the current system in executable – a plugin for Mac and Windows therefore needs a plugin.sig per system (different executables). Any change of the program or of plugin.json makes the signature invalid (“✖ signature invalid”). A signing tool (KeyGen subcommand) will follow; until then plugins are signed by SIGINT-SYSTEMS on request.
10. Versioning
protocol(manifest) /"protocol"(start message): the protocol version. This document describes protocol 1. New, compatible additions (new optional fields, new control messages) keep the number – ignore unknown fields and unknown control messages. An incompatible change would raise the number; MultiScan then refuses plugins with a higher number than it knows.min_version: the lowest MultiScan version the plugin needs (e.g. for a field that came later).app_versionin the start message: the running MultiScan version.
11. Your first plugin in 10 minutes (Python)
A plugin that logs every stretch of loud audio (“activity 2.3 s”), with Python 3 and only the standard library.
Step 1 – open the folder: Setup ▸ 🧩 Plugins ▸ 📂 Open plugin folder. Create a folder vox in it.
Step 2 – save this as vox/vox.py:
#!/usr/bin/env python3
"""MultiScan plugin example: logs stretches of loud audio (VOX) with duration and level."""
import json, math, struct, sys
def send(obj):
sys.stdout.write(json.dumps(obj) + "\n")
sys.stdout.flush()
def main():
inp = sys.stdin.buffer
rate, t, since, peak = 48000, 0.0, None, -120.0
while True:
hdr = inp.read(5)
if len(hdr) < 5:
break # stdin closed: MultiScan asks us to end
kind, n = hdr[0], struct.unpack("<I", hdr[1:])[0]
data = inp.read(n)
if kind == ord("J"): # control message
msg = json.loads(data)
if msg["type"] == "start":
rate = msg["rate"]
send({"type": "status", "text": "VOX ready"})
elif msg["type"] == "retune":
send({"type": "log", "text": f"retune {msg['freq_hz'] / 1e6:.4f} MHz"})
elif kind == ord("A"): # audio: u64 index + f32 samples
x = struct.unpack(f"<{(n - 8) // 4}f", data[8:])
t += len(x) / rate
db = 10 * math.log10(sum(v * v for v in x) / max(len(x), 1) + 1e-12)
if db > -30:
since = t if since is None else since
peak = max(peak, db) if since != t else db
elif since is not None:
dur, since = t - since, None
if dur >= 0.5:
send({"type": "message", "text": f"activity {dur:.1f} s",
"fields": {"peak_db": round(peak, 1)}})
send({"type": "row", "table": "vox",
"cols": {"duration_s": round(dur, 1), "peak_db": round(peak, 1)}})
main()
Step 3 – save this as vox/plugin.json:
{
"name": "VOX logger (Python)",
"version": "0.1",
"icon": "🐍",
"description": "Logs stretches of loud audio",
"input": "audio",
"executable": { "macos": "vox.py", "linux": "vox.py", "windows": "vox.cmd" }
}
Step 4 – make it runnable:
- Mac / Linux: in the Terminal
chmod +x vox.py(the first line#!/usr/bin/env python3starts Python). - Windows: create
vox/vox.cmdwith the single line@python "%~dp0vox.py"(Python from python.org, “Add to PATH” ticked).
Step 5 – try it without MultiScan: printf '' | ./vox.py must end at once without an error.
Step 6 – in MultiScan: Setup ▸ 🧩 Plugins ▸ 🔄 Reload. The plugin appears (⚠ = not signed). Decoder mode ▸ 🧩 Plugins ▸ 🐍 VOX logger (Python), tune the VFO to an active channel. Every transmission longer than half a second gives a line in the raw text, the message list and the table “vox”.
Debugging: print(..., file=sys.stderr) lands in the debug log (Setup ▸ 🐞 Debug log ▸ Show). To test offline, record a stream: write the frames you get into a file and feed it again with ./vox.py < stream.bin.
12. The example plugin example-tone (Rust)
Source: plugins/example-tone/ in the MultiScan PRO sources (own Cargo project, no dependencies). It reads the audio, finds DTMF digits (Goertzel filters on the eight DTMF frequencies, 25 ms blocks, a digit counts after 50 ms) and steady single tones between 200 and 3500 Hz (at least 0.3 s, e.g. a 1750 Hz tone call) and reports:
- per digit a row in table
dtmf(digit,low_hz,high_hz,level_db), - per digit sequence (1 s pause = end) a message
DTMF 1234#withdigitsandcount, - per tone a message
Tone 1750 Hz, 0.8 sand a row in tabletones, - once a second a status line (level, squelch, counters),
- a gap in the sample index (dropped blocks) → log line and a clean restart of the detectors.
Build: cargo build --release in plugins/example-tone (Windows from the Mac: cargo build --release --target x86_64-pc-windows-gnu). build_mac.sh / build_windows.sh build it and put it into the app bundle (Contents/Resources/Plugins/example-tone) / the Windows folder (Plugins\example-tone); MultiScan copies it into the Plugins folder at the first start.
The heart of the program (complete code in plugins/example-tone/src/main.rs):
/// Power of one frequency in a block (Goertzel), as mean power of the sine.
fn goertzel(x: &[f32], f: f64, rate: f64) -> f64 {
let w = 2.0 * std::f64::consts::PI * f / rate;
let c = 2.0 * w.cos();
let (mut s1, mut s2) = (0.0f64, 0.0f64);
for &v in x {
let s0 = v as f64 + c * s1 - s2;
s2 = s1;
s1 = s0;
}
let n = x.len() as f64;
2.0 * (s1 * s1 + s2 * s2 - c * s1 * s2) / (n * n)
}
fn main() {
let mut inp = io::BufReader::new(io::stdin().lock());
let mut out = Out { w: BufWriter::new(io::stdout()), de: false };
let mut det = Detector::new(48_000.0);
let mut next_index: Option<u64> = None;
let mut hdr = [0u8; 5];
while inp.read_exact(&mut hdr).is_ok() { // end of stdin = end
let n = u32::from_le_bytes([hdr[1], hdr[2], hdr[3], hdr[4]]) as usize;
let mut payload = vec![0u8; n];
if inp.read_exact(&mut payload).is_err() { break; }
match hdr[0] {
b'J' => { /* "start": rate + language, "retune": reset, "squelch": state */ }
b'A' if n >= 8 => {
let index = u64::from_le_bytes(payload[..8].try_into().unwrap());
if next_index.is_some_and(|w| w != index) {
out.log("gap: samples missing"); // MultiScan dropped blocks
det.reset(&mut out);
}
let x: Vec<f32> = payload[8..].chunks_exact(4)
.map(|c| f32::from_le_bytes([c[0], c[1], c[2], c[3]])).collect();
next_index = Some(index + x.len() as u64);
det.feed(&x, &mut out); // prints the JSON lines
}
_ => {}
}
}
}
A DTMF digit is accepted when the strongest low and high DTMF tone together carry more than 60 % of the block power, each at least 8 %, and the second strongest tone of each group stays below a fifth of the strongest one.
14. Optional extension “channels” – native channel table
For plugins that watch several channels at once (e.g. Inmarsat voice carriers): the plugin reports its channels, MultiScan shows them as a live table under the panorama of the plugin's stick, and the user's clicks go back to the plugin. No separate control window is needed.
The extension is optional and negotiated – nothing changes for other plugins and the protocol number stays 1:
- MultiScan names the extensions it offers in start:
"features":["channels"](older MultiScan versions send nofeatures). - The plugin opts in with
"features": ["channels"]inplugin.json. (A plugin that only sees the feature instartmay instead simply send achannelsline – that counts as opting in too.) Only sendchannelslines whenstart.featurescontains"channels"; an older MultiScan would count them as invalid lines. - MultiScan sends
channel_ctlonly to plugins that opted in. The table appears as soon as the firstchannelsline arrived. - Both sides ignore fields, actions and values they do not know.
With several sticks every stick has its own plugin process: a click in the table of stick B reaches only the plugin of stick B.
Plugin → MultiScan: channels (the state the decoder really took)
{"type":"channels","auto_tune":true,"listen_mode":"single","auto_record":false,"full":true,
"channels":[
{"id":"ch-1545.0125","freq_hz":1545012500,"level_db":-42.5,"active":true,
"activity":"voice","status":"searching for speech","listening":true,"recording":false,
"playing":null,
"clips":[{"id":"c17","label":"12:03:44","duration_s":14}]}],
"removed":["ch-1545.0300"]}
| Field | Meaning |
|---|---|
auto_tune, auto_record | switch states (true/false) |
listen_mode | "off", "single", "all", "auto" |
channels | list of rows. id is required and must stay the same for the channel while the plugin runs – also when the channel goes inactive; the row is updated in place. Numbers are taken as ids too. |
freq_hz, level_db | numbers |
active | true: shown green with ●, false: greyed out with ○ |
activity, status | short texts (“voice”, “data”; decoder state such as “searching for speech”, “tone active”) |
listening, recording | true/false – drives the Listen/Stop and ⏺ buttons |
playing | id of the clip playing right now, null / "" = none |
clips | finished recordings of the channel: id (required), label, duration_s. The table shows up to 8 per row with ▶. |
full | true: the list is complete, rows not in it are removed. Default false: the rows in the list are added / updated, the others stay. |
removed | ids of rows to remove |
A field that is missing keeps its last value – an update may send only id plus what changed. Send a report after every change and otherwise about once a second (not per sample block); at most 512 rows are kept.
MultiScan → plugin: channel_ctl (a click of the user)
Control frame 'J' like retune:
| Message | Click |
|---|---|
{"type":"channel_ctl","action":"auto_tune","on":true} | 🎯 Auto-tune switch |
{"type":"channel_ctl","action":"listen_mode","mode":"off"} | 🔊 Listen: Off / Single / All / Automatic (off, single, all, auto) |
{"type":"channel_ctl","action":"auto_record","on":true} | ⏺ Record automatically |
{"type":"channel_ctl","action":"listen","id":"ch-1545.0125"} | 🔊 Listen in a row |
{"type":"channel_ctl","action":"stop","id":"ch-1545.0125"} | ⏹ Stop in a row (listening or playing a clip) |
{"type":"channel_ctl","action":"stop"} | ⏹ Stop all (no id) |
{"type":"channel_ctl","action":"record","id":"ch-1545.0125","on":true} | ⏺ in a row (on / off) |
{"type":"channel_ctl","action":"play","id":"ch-1545.0125","clip":"c17"} | ▶ a finished clip |
MultiScan does not change the table itself – it shows only what the plugin reports. After a control the plugin applies it to its own auto-tune / listen / record logic and sends a channels report with the state it really took (e.g. listening:false if the channel had already gone). Ignore actions you do not know.
Sound: listening and clip playback use the normal audio lines (section 6) – they go into the mixer of the plugin's stick. On stop (and listen_mode off) MultiScan drops the plugin audio already waiting (its buffer and the stick's mixer queue), so the sound ends at once; the plugin should stop sending audio for that channel / clip right away.
15. Source plugins (remote receivers) – e.g. rtl-tcp
A source plugin does not decode – it *is* the receiver. MultiScan uses it like a stick: scanner, Receiver, decoders and Inmarsat all work with it. It appears as receiver type 🌐 Remote SDR in Setup ▸ Receiver (plugin + address). Source plugins work in every edition (FREE, STD, PRO).
The free plugin rtl-tcp comes with MultiScan: an RTL-SDR stick on another computer in the network, e.g. a Raspberry Pi:
# on the Raspberry Pi (package rtl-sdr):
rtl_tcp -a 0.0.0.0 -p 1234
then in MultiScan: Setup ▸ Receiver ▸ 🌐 Remote SDR, address 192.168.1.20:1234, 🔌 Connect. Over Wi-Fi about 1–2 MS/s work, over a cable 2.4 MS/s (8-bit IQ: 2 bytes per sample, 2.4 MS/s = 4.8 MB/s).
Manifest
{ "id": "rtl-tcp", "name": "Remote SDR: rtl_tcp", "kind": "source", "protocol": 1,
"executable": { "macos": "rtl-tcp", "windows": "rtl-tcp.exe", "linux": "rtl-tcp" } }
"kind": "source" makes it a receiver; it is not listed among the decoder plugins.
Protocol
MultiScan → plugin, stdin, one JSON object per line:
| message | meaning |
|---|---|
{"t":"open","address":"host:port"} | first message: connect; answer with info (or error and end) within 8 s |
{"t":"rate","hz":2048000} | sample rate (one of info.rates) |
{"t":"tune","hz":145000000} | centre frequency |
{"t":"gain","agc":false,"index":17} | gain: automatic, or the step index of info.gains |
{"t":"bias","on":true} · {"t":"ppm","v":0} | bias-tee · frequency correction |
{"t":"start"} · {"t":"stop"} | send IQ / pause |
Plugin → MultiScan, stdout, binary frames: "MS", type ('J' JSON, 'I' IQ), format (IQ: 0 = cu8, 1 = cs16 little endian, 2 = cf32 little endian), payload length (u32 little endian), payload.
J{"t":"info","name":"…","rates":[…],"gains":["0.0 dB",…],"range":[lo_hz,hi_hz],"dc_spike":true}– once afteropenJ{"t":"error","text":"…"}·{"t":"log","text":"…"}– into the debug log (an error beforeinfois shown to the user)I– IQ samples, any block size (whole samples)
stderr goes into the debug log. When stdin closes, the plugin ends.
16. Optional: rows with a key, map, station (MultiScan 1.5.9.6 and newer)
Compatible additions to protocol 1 – older MultiScan versions ignore them.
keyinrow:{"type":"row","table":"nodes","key":"!a1b2c3d4","cols":{…}}updates the row with the same key instead of adding a new one (it moves to the top, its time column shows the last update). Columns not sent keep their value – an update may send only what changed. Good for lists of stations, nodes or meters.- Map: when a table has the columns
latandlon(decimal degrees), the plugin view gets a 🗺 Map tab with every such row. Label: columnname,label,shortorid(or the key); tooltip: all columns; optionalheading(degrees) andstale("1"= greyed). - Station:
startcarries the receiving location from Setup when it is set:"station":{"lat":52.52,"lon":13.40}(nullotherwise) – for distances. - Wider IQ: in the decoder mode the filter of a plugin can be set up to 2.4 MHz (before: 250 kHz); the
defaults.bw_hzof the manifest may be wider as well.
17. Shipped plugins: 📡 Meshtastic / MeshCore and 📶 868 MHz IoT
Both are one program (plugins/lora-mesh, Rust, MIT, no GPL code) with its own LoRa demodulator (dechirp + FFT, preamble / sync word / down-chirp synchronisation, frequency and timing correction, Gray mapping, diagonal interleaving, Hamming code, whitening, explicit header with checksum, CRC-16).
- Automatic tuning: the plugin takes 1 MHz (Meshtastic / MeshCore) or 2.4 MHz (IoT) of spectrum, finds bursts against the noise floor, measures centre and bandwidth (62.5 / 125 / 250 / 500 kHz) and tries every spreading factor 7 … 12. The known channels inside the window (Meshtastic EU_868 869.525 MHz, MeshCore 869.618 MHz, LoRaWAN 868.1 / 868.3 / 868.5 MHz and RX2 869.525 MHz, US / 433 MHz presets) are searched continuously too – that finds packets below the noise floor.
- Meshtastic: radio header (from, to, packet id, hops, via MQTT, channel hash), AES-CTR with the public default key of every modem preset (and your keys), then text messages, positions (with precision, speed, satellites), node info (long / short name, hardware, role, licensed, public key), telemetry (battery, voltage, channel utilisation, airtime, uptime, temperature, humidity, pressure, wind, rain, power channels, air quality, mesh statistics), traceroute with SNR per hop, neighbour info, waypoints, routing ACK / NAK with reason, range test, paxcounter, detection sensor. Direct messages (PKI) are shown as such.
- MeshCore: adverts (name, node type, position, Ed25519 signature checked), public channel and
#hashtagchannels decrypted (AES-128 + HMAC), private messages / requests / paths / ACK / trace with the hops (names learnt from the adverts). - LoRaWAN (IoT): join requests with DevEUI (maker by OUI) and JoinEUI, data frames with DevAddr, operator (The Things Network, Helium, Orange, Swisscom, Loriot …), FCnt, FPort, ADR / ACK, MAC commands. The application payload is encrypted with the device keys.
- Wireless M-Bus (IoT): T1 / C1 on 868.95 MHz and S1 on 868.3 MHz – manufacturer, meter number, device type (water, heat, gas, electricity, heat cost allocator, smoke detector …), version, access number, encryption mode; readings (volume, energy, power, flow, temperatures, dates) of unencrypted meters or with your meter key.
- Activity (IoT): every other transmitter in the window with frequency, bandwidth, duration, count, interval and what it probably is (RFID readers 865.7 – 867.5 MHz, Homematic / KNX-RF / smoke alarms on 868.3 MHz, Z-Wave 868.42 MHz, Sigfox, alarm systems, social alarms …).
Tables: 📡 Nodes (one row per node, updated in place, with distance when the station location is set), 💬 Messages, 📍 Positions, 🌡 Telemetry, 🛰 Routes, 📦 Packets, 📶 Activity – positions also on the 🗺 Map.
Keys: keys.txt in the plugin folder, one per line – meshtastic <channel> <base64 PSK>, meshcore <channel> <hex/base64 key>, meshcore #hashtag, wmbus <meter number> <32 hex digits>.
Test without MultiScan: lora-mesh --file capture.iq --fmt cs16|cf32|cu8 --rate 3000000 --freq 869550000 [--iot] [--de] decodes a recording and prints the JSON lines.
18. Receiver plugins – your own hardware as a MultiScan receiver (1.5.9.7 and newer)
A receiver plugin is a source plugin (chapter 15) that also tells MultiScan *what the receiver can do*: its gain stages and other controls with their ranges, steps and units, whether it has AGC, a bias-tee or a PPM correction, and how much bandwidth it delivers. MultiScan then draws exactly these controls in Setup ▸ Receiver (and in the stick list of PRO) and sends their values to the plugin. Works in every edition (FREE, STD, PRO).
A receiver for local hardware (no address) appears as its own entry 🧩 name in the receiver choice. A network receiver ("address": true) is chosen with 🌐 Connect a network receiver … (address and port).
The free example demo-receiver (Rust, no crates, in the demo ZIP) is a simulated receiver with test transmitters on 100.0, 145.500, 433.920, 446.006 and 1090 MHz – replace its Sim part with the driver of your hardware and keep the protocol part.
The "receiver" object in plugin.json
{
"id": "demo-receiver", "name": "Demo receiver (plugin example)", "version": "1.0.0",
"kind": "source", "protocol": 1, "min_version": "1.5.9.7",
"executable": { "macos": "demo-receiver", "windows": "demo-receiver.exe", "linux": "demo-receiver" },
"receiver": {
"address": false,
"agc": true, "bias": false, "ppm": true,
"antennas": ["A", "B", "Hi-Z"],
"usable": 0.8, "max_bw": 2560000,
"controls": [
{ "id": "lna", "name": "LNA", "type": "range", "min": 0, "max": 40, "step": 8, "unit": "dB", "default": 16, "help": "First amplifier stage" },
{ "id": "vga", "name": "VGA", "type": "range", "min": 0, "max": 30, "step": 2, "unit": "dB", "default": 10 },
{ "id": "amp", "name": "Preamp +14 dB", "type": "bool", "default": false },
{ "id": "scene", "name": "Test signals", "type": "choice", "options": ["all", "carriers only", "noise only"], "default": "all" }
]
}
}
| field | meaning |
|---|---|
address | true: needs host:port (network receiver), false: local hardware (default false) |
address_hint | optional placeholder text for the address field |
agc · bias · ppm | the receiver has automatic gain · a bias-tee · a frequency correction – MultiScan shows the switch / slider |
antennas | names of the antenna inputs (1.5.9.9 and newer) – MultiScan shows "📡 Antenna" with one button per input, like for the SDRplay RSPdx (A / B / C); leave it out for a single input |
usable | usable (alias-free) part of the sample rate, 0 … 1 (e.g. 0.8) |
max_bw | usable bandwidth in Hz at the highest sample rate |
controls | your own controls, shown in this order |
A control: id (sent back to you), name (shown), type = range (slider min … max in steps of step, unit shown behind the value) · bool (switch) · choice (one of options), default, optional help (tooltip). Gain sliders (unit dB or "gain" in the name) are greyed out while AGC is on. The values are stored per profile.
The same "receiver" object may also come in the info message – then it replaces the one of plugin.json (e.g. when the hardware reports its gain range only after it was opened). Without a "receiver" object the plugin is treated like an RTL stick (chapter 15: gains list and {"t":"gain","agc":…,"index":…}).
The sample rates (info.rates) and the frequency range (info.range) work as in chapter 15. The highest rate is the widest window MultiScan asks for.
Extra messages (MultiScan → plugin)
| message | when |
|---|---|
{"t":"open","address":""} | first message – for local hardware the address is empty |
{"t":"set","id":"lna","v":16} | a control changed (and once after start); v is a number, true/false or the chosen text |
{"t":"agc","on":true} | only with "agc": true |
{"t":"bias","on":false} · {"t":"ppm","v":0} | only with "bias" / "ppm": true |
{"t":"antenna","index":1,"name":"B"} | only with an "antennas" list: the chosen input (index from 0), after a change and once after start |
Everything else (rate, tune, start, stop, the frames on stdout) is as in chapter 15. A receiver plugin should answer open within 8 s, send IQ in real time (MultiScan measures the rate and warns when samples are missing) and clip like a real ADC – the overload protection of MultiScan then works as with a stick.
19. 🧼 SoapySDR and 📻 Hamlib (1.5.9.16 and newer)
Two shipped plugins connect MultiScan to the two big open driver collections. Neither library is shipped with MultiScan – install them yourself, together with the drivers you need.
SoapySDR (receiver plugin soapy, every edition): every SDR that has a Soapy driver – HackRF, LimeSDR, PlutoSDR, Airspy, SDRplay, BladeRF, USRP, RTL-SDR … – becomes a receiver 🧼 SoapySDR in Setup ▸ Receiver. The plugin loads the SoapySDR library at run time (Mac: brew install soapysdr soapyrtlsdr soapyhackrf …, Windows: PothosSDR, Linux: apt install soapysdr-module-all; SOAPY_SDR_LIB = full path of the library overrides the search). It reports the device's gain stages, antennas, sample rates and frequency range, so MultiScan shows exactly these controls. Several SDRs: the control Device lists them. Check what SoapySDR finds with SoapySDRUtil --find.
Hamlib (control plugin hamlib, PRO Controller): about 300 radios and receivers – Icom, Yaesu, Kenwood, Elecraft, AOR, Alinco, Ten-Tec … The plugin speaks the text protocol of rigctld (TCP), Hamlib is not linked. Address in the Controller:
| address | meaning |
|---|---|
empty or localhost:4532 / host:port | a rigctld that already runs (e.g. rigctld -m 3081 -r /dev/cu.usbserial-1410 -s 19200) |
3081@/dev/cu.usbserial-1410@19200 | model number (from rigctl -l) @ serial port [@ baud] – the plugin starts rigctld itself and ends it with the connection |
The front panel follows the radio: Hamlib's dump_caps says the maker (Icom, Yaesu, Kenwood … → the colours of the front), the modes (one key each), which levels and functions exist (ATT, P.AMP, AGC, NB, NR, ANF, TSQL keys; AF / RF / SQL knobs). The tuning dial steps by mode (100 Hz on SSB / CW, 1 kHz on AM, 12.5 kHz on FM, STEP changes it), the number pad takes a frequency in MHz (also typed on the keyboard over the panel), A/B switches the VFO, LOCK locks the dial. The display shows frequency and mode, the S-meter, VFO, attenuator, preamp, AGC and the functions that are on.
🧩 Install drivers … – both plugins bring install scripts (plugin.json "install": one per system). The button (Setup ▸ Receiver for SoapySDR, the Controller's connect panel for Hamlib) runs the script in a terminal window: Mac – Homebrew (installed first if missing), brew install soapysdr soapyrtlsdr soapyhackrf limesuite soapyremote / brew install hamlib; Windows – SoapySDR: the PothosSDR installer; Hamlib: the newest hamlib-w64 zip from github.com/Hamlib, SHA-256 checked, unpacked to %LOCALAPPDATA%\MultiScan\hamlib (no admin rights, the plugin finds rigctld there); Linux – apt / dnf / pacman / zypper. Passwords are typed by the user in that window, MultiScan never sees them.