Actions

Broadcastify-Calls-Node-Health

From The RadioReference Wiki

Node health reports are a short report a Broadcastify Calls node's recorder sends every five minutes about how well it is hearing what it uploads: how much of its control channel it decodes, how many calls it missed and why, how clean the voice was, and how its radios are doing. They are about reception, not uploads: Broadcastify already sees what arrives.

This page is the specification (version 1) and how to send reports to Broadcastify Calls. The format is not specific to Broadcastify: any call-collecting service (OpenMHz, Rdio Scanner, ...) can take the same reports, adding only its own endpoint and credentials.

Today Broadcastify logs and stores reports (for 30 days). They don't yet change which node's calls are used, and a node doesn't need to send them. Later they may be used to tell node owners about reception problems and to choose between nodes that hear the same system.

Recorders that send them: Trunk Recorder Pro (Broadcastify plugin). Support in SDRTrunk and SDRTrunk VCE is in progress.

Sending reports to Broadcastify Calls

Endpoint POST https://api.broadcastify.com/call-health, Content-Type: application/json
Test POST https://api.broadcastify.com/call-health?validate=1 (see Testing a report)
node { "systemId": 1234, "apiKey": "..." }: the node's system ID and the API key its calls are uploaded with
Nodes One report per system ID. A recorder system uploaded as one system ID is one node; a site uploaded as a system ID of its own is a node of its own
Interval 300 s, at a random point of each node's own (see When to send)
Size At most 64 KiB per report (they are a few KB)
Off Recorders send reports unless their user turns them off

Keep sending the uploader's test=1 keep-alive: health reports don't replace it.

What Broadcastify answers

Answer When The recorder
200 {"ok":true,"nextS":300} Stored Counts it delivered. Sends the next one nextS seconds later
400 {"error":"..."} The report fails the checks below Logs the error and keeps sending. The window isn't sent again
401 {"error":"Invalid-API-Key"} No such API key Says so and stops reporting that node until its settings change
403 {"error":"..."} INVALID-SYSTEM-ID, Uploads-not-enabled-for-this-system, API-Key-Access-Denied (the key belongs to another account) As for 401
413 Over 64 KiB Not delivered
429 + Retry-After More than one report for the node within 50 s Waits Retry-After, then carries on
503 + Retry-After: 3600 Reports are turned off for now Waits, tries again, and resumes on its own once a report is accepted
500 {"error":"try again later"} Broadcastify couldn't store it Not delivered: the next report carries this window
404, 405 Reports aren't taken here Says so once and stops sending until recording restarts

A final report sent at shutdown within 50 s of the last one gets a 429. Don't retry it.

Credentials are checked as uploads are. A refusal is remembered for a minute, so a node refused because its system wasn't enabled yet may need a minute after it is.

What Broadcastify checks

A report that fails any of these gets a 400 saying which. Optional fields that are wrong are ignored, not refused.

  • v is 1. node.systemId is a positive integer; node.apiKey is a non-empty string of at most 128 characters.
  • recorder.name and recorder.version are strings of at most 64.
  • window.start and window.end are numbers, end after start and at most 4 hours later; window.seq is a non-negative integer.
  • At least one site or channel. At most 128 sites, 1024 channels and 64 radios.
  • Each site has name (at most 128), protocol (at most 16), cc.lockedS (a number), cc.good, calls.started and calls.recorded (counts). A receiver is a string of at most 64.
  • Each channel has hz (an integer), mode (at most 16), heardS and openS (numbers), opens and calls (counts). A receiver is as for sites.

A node with nothing to report (no sites and no channels) should send nothing rather than an empty report.

Testing a report

?validate=1 runs the same checks, then answers the figures Broadcastify would store, without storing anything. There is no API key check and no rate limit, so any system ID and key will do. Use it for any change to what a recorder sends.

curl -s -X POST -H 'Content-Type: application/json' --data @report.json \
  'https://api.broadcastify.com/call-health?validate=1'

It answers 200 {"ok":true,"valid":true,"summary":{...}}, or 400 {"error":"..."} as above.

The figures Broadcastify works out

The summary that validate answers, and that Broadcastify stores with each report:

Per site (one per sites entry) From
lockedPct cc.lockedS / window
decodedPct cc.good / (cc.good + cc.bad)
airPct cc.airSym / (cc.symbolRate × cc.lockedS)
syncLossPct cc.syncLossSym / (cc.symbolRate × window)
snrDb, merDb, phaseErrDeg As sent
calls, recorded calls.started, calls.recorded
missedPct (noFrequency + noSource + noRecorder) / calls.started
voice Per codec: frames; lostPct = bad / frames; missingPct = missing / (frames + missing)
name, protocol, receiver, id, ccHz As sent

Per channel: heardPct (heardS / window), noiseDb, snrDb, opens, openS, calls, otherPct (openedByOther / opens), access, receiver, and voice as for sites. Per radio: droppedPct (droppedS / seconds), clipPct, ppmError, ppmApplied, and ppmRemaining (ppmError − ppmApplied, or ppmError without it). Also clockOffsetMs, gap, windowS and seq. A figure whose fields weren't sent is null. Everything else a report carries is stored as sent.

The report format (version 1)

Terms

  • Recorder: the program that receives and records (Trunk Recorder Pro, Trunk Recorder, SDRTrunk, SDRTrunk VCE, ...), on one computer.
  • Node: what a service knows one feed by. On Broadcastify Calls it is a system ID with its API key; a recorder usually feeds several, often one per radio system. A node is fed by one or more sites (trunked) or channels (conventional) of the recorder.
  • Window: the stretch of time a report covers, [start, end).

Principles

  1. Counts, not scores. A report carries what happened in its window as counts and seconds. The service computes rates and scores, and can change how it weighs them without a recorder release. Two windows' counts add up; two windows' percentages don't.
  2. A small core every recorder can fill, and optional parts for what only some measure. A field a recorder doesn't measure is left out, never sent as 0.
  3. Say what is heard. Each site states the identity its control channel broadcasts, so the service compares nodes that really hear the same site (or simulcast).
  4. Nothing about people. No talkgroups, radio IDs, aliases or audio: totals only.

When to send

Interval 300 s, unless the service says otherwise (nextS, below)
Phase A random offset in [0, interval), drawn once per node when the recorder starts. Reports go at that offset in each interval
Jitter Each send moves by a random amount in [−15, +15] s
First report The first send time at least 60 s after recording starts
Failure No retry. The next report covers both windows (its start is the last delivered report's end), up to 900 s; anything older is dropped and the window starts later (gap: true)
429 or 503 Wait Retry-After if given, else double the interval (at most 3600 s) until one is accepted

The random phase, chosen per node, spreads a service's load evenly over the interval: N nodes make about N / 300 requests a second at any moment, not N requests every five minutes. Drawing it at start (not from the clock) keeps recorders that restart together, after a power cut, from reporting together.

When recording stops, a recorder may send what it has (the window up to then, final: true).

The report

One JSON object per node, sent with POST and Content-Type: application/json. Sizes are a few hundred bytes to a few kilobytes.

{
  "v": 1,
  "node": { "systemId": 1234, "apiKey": "..." },
  "recorder": { "name": "trunk-recorder-pro", "version": "0.3.8", "upS": 86400 },
  "window": { "start": 1794590100.0, "end": 1794590400.0, "seq": 412 },
  "sites": [
    {
      "name": "Downtown",
      "protocol": "p25",
      "id": { "wacn": 781824, "sysId": 939, "rfss": 1, "site": 5, "nac": 928 },
      "cc": { "hz": 854787500, "lockedS": 300, "good": 11200, "bad": 410,
              "airSym": 1180000, "symbolRate": 4800, "snrDb": 15.0, "phaseErrDeg": 17.2 },
      "calls": { "started": 812, "recorded": 790,
                 "notRecorded": { "encrypted": 0, "noSource": 19, "noRecorder": 3 } },
      "voice": { "imbe": { "frames": 0, "bad": 0, "errors": 0 },
                 "ambe": { "frames": 9167, "bad": 862, "errors": 4120 } }
    }
  ],
  "radios": [ { "name": "800", "kind": "airspy", "seconds": 300, "droppedS": 0, "clipPct": 0.0,
                "ppmError": -0.03 } ],
  "clock": { "sync": "ntp", "systemOffsetMs": 12 }
}

A conventional node has channels instead of sites (below). A node fed by both has both. Examples shows reports as different recorders send them.

What a node's report covers

  • Whole sites and channels. A node's report has every site and conventional channel that feeds it any calls, and each one's counts are for all it heard, not only the talkgroups that go to this node. Recorders choose what each node gets by talkgroup (allow and deny lists, aliases), so one site often feeds several nodes: it is in each of their reports, with the same counts.
  • When the recorder can't tell exactly. A recorder that can only work out which sites could feed a node (one whose talkgroups could be routed to it) reports those. It never leaves out a site that does feed the node, because a deaf site is what a report must show.
  • Several receivers on one site. A recorder that decodes one site with more than one receiver (each its own control channel decoder, the best copy of each call kept) sends an entry per receiver, each with its receiver name and the same id. One that combines them sends one entry. Services compare entries by id.

Top level

Field Core Type Meaning
v ✓ int This format's version: 1
node ✓ object Which node: the service's fields (on Broadcastify, systemId and apiKey)
recorder.name ✓ string The recorder program, lower case: trunk-recorder-pro, trunk-recorder, sdrtrunk, sdrtrunk-vce. A fork that measures differently uses a name of its own
recorder.version ✓ string Its version
recorder.upS number Seconds since recording started
window.start, window.end ✓ number Unix seconds. Counts are over [start, end)
window.seq ✓ int Counts up by one per report of this node since the recorder started (0 first). A service seeing it fall knows the recorder restarted
window.gap bool Some time before start was never reported (sends failed for over 900 s)
window.final bool Recording stopped at end
sites ✓ trunked array One per site feeding the node
channels ✓ conventional array One per channel feeding the node
radios array The receivers those sites and channels are heard on
clock object How right the recorder's clock is

Trunked sites

Field Core Type Meaning
name ✓ string The recorder's name for the site
protocol ✓ string p25, smartnet, edacs, dmr, nxdn, mpt1327, ltr, ltrnet, passport
receiver string Which of the recorder's receivers this entry is, when it decodes the site with more than one
id object What its control channel says it is, as numbers: P25 wacn, sysId, rfss, site, nac; DMR network, site, colorCode; NXDN system, site, ran; SmartNet sysId, site; MPT1327 sysId. Only what has been heard
cc.hz ✓ int The control channel it is on at end (absent: hunting). On a system with no fixed control channel (DMR Capacity Plus, Hytera XPT), the rest channel it is following; cc then counts the rest channel's signalling
cc.lockedS ✓ number Seconds of the window it was decoding its control channel: a good block within the last 2 s
cc.good ✓ int Control channel blocks decoded, in the protocol's unit of control message: P25 Phase 1 TSBKs, P25 Phase 2 MAC messages, SmartNet and EDACS OSWs, DMR CSBKs, NXDN CAC frames, MPT1327 codewords, LTR and Passport data words
cc.bad int Blocks it framed but couldn't decode (failed CRC or FEC). Not time without sync: that's syncLossSym
cc.syncLossSym int Symbols of the window, while running, the decoder had no frame sync on
cc.airSym, cc.symbolRate int Symbols of air the good blocks account for, and the channel's symbol rate in baud (4800 for P25 Phase 1 and DMR, 6000 for a P25 Phase 2 TDMA control channel, 3600 for SmartNet, 1200 for MPT1327). airSym / (symbolRate × window) is the share of the control channel decoded, comparable across sites and protocols
cc.snrDb number Mean level of the control channel over the noise floor beside it, dB, over the seconds locked
cc.merDb number Modulation error ratio of its symbols, dB, over the seconds locked: the power of the ideal symbol points over that of the symbols' distance from them. A recorder that can't measure snrDb can send this; both may be sent
cc.phaseErrDeg number Mean RMS phase error of its symbols, degrees, over the seconds locked (PSK/C4FM)
calls.started ✓ int Calls the control channel announced: voice grants, and data grants for a recorder that counts them as calls (then data says how many it didn't follow)
calls.recorded ✓ int Of those, calls a recorder was assigned to and followed, whether or not they then went to any service
calls.notRecorded object Of those, calls not recorded, by why: ignored (the user chose not to), unknownTg (not in the talkgroup file, and only those are recorded), encrypted, data (data calls, not followed), noFrequency (the grant's channel number couldn't be turned into a frequency: a channel map missing from the recorder's settings), noSource (no receiver covers the frequency), noRecorder (every recorder busy). The last three are calls the node missed
voice.imbe, voice.ambe object Vocoder frames of recorded calls, by codec: IMBE (P25 Phase 1, 20 ms) and AMBE+2 half rate (P25 Phase 2, DMR, NXDN, 20 ms)
voice.*.frames int Frames received
voice.*.bad int Frames too damaged to play: those FEC couldn't correct and the vocoder repeated or muted
voice.*.errors int Bit errors FEC corrected
voice.*.missing int Frames the calls' lengths say should have come but never did (sync lost mid-call). Not in frames

calls.started − calls.recorded − the sum of notRecorded is calls not recorded for other reasons (none, or a reason this version doesn't name).

A site that is a node's on its own (Broadcastify can take one site of a system as its own system ID) is reported to that node alone.

Some recorders decode P25, DMR or NXDN the same way on a control channel as on a conventional channel. Such a recorder reports a channel as a site once it has decoded control messages on it, and as a conventional channel otherwise.

Conventional channels

A conventional channel has no control channel to prove it's heard, so a report says three things of each: that the receiver is alive and steady, how often the channel opened and whether what opened it was the transmitter the node is for, and how clean that was.

Field Core Type Meaning
hz ✓ int The channel's frequency
mode ✓ string fm, am, p25, dmr, nxdn
name string The recorder's name for it
receiver string Which receiver this entry is, when the recorder hears the channel on more than one
access string The code it records by, when it has one: CTCSS 151.4, DCS 023N, NAC 293, CC 1
heardS ✓ number Seconds of the window its receiver was delivering samples without drops
noiseDb number The channel's mean level while closed, dBFS. Steady from window to window means the receiver and antenna are as they were; a fall of several dB to the radio's own floor suggests a lost antenna. A recorder whose levels aren't referenced to full scale leaves noiseDb and signalDb out and sends snrDb, a ratio, alone
opens ✓ int Times the channel opened (squelch, or a digital frame sync)
openS ✓ number Seconds open, to the second: a recorder may count its hang time after each transmission
calls ✓ int Calls recorded
openedByOther int Openings that carried another code than access, or none when one is required: someone else, interference, or the squelch falsing
signalDb number Mean level while open, dBFS
snrDb number Mean level while open over the noise floor under the channel, dB
voice object Digital channels: as for sites

Analog FM gives the weakest evidence of the lot: a quiet channel and a deaf receiver look much alike, except in noiseDb, so send it whenever the recorder can. A service choosing between nodes for one conventional channel should lean on what it sees itself as well: which node delivers transmissions the others miss, and snrDb.

Radios

Field Type Meaning
name, kind string The recorder's name for it; airspy, hackrf, rtlsdr, sdrplay, usrp, ...
seconds number Seconds of the window it was running
droppedS number Seconds in which it lost any samples (USB too slow, a CPU too busy): a second with one lost buffer counts as a whole second
clipPct number Share of samples at full scale, %
ppmError number Its frequency error, ppm, as measured on signals of known frequency, against the correction set in the radio's settings
ppmApplied number A correction the recorder applies by itself on top of the radio's settings (Trunk Recorder Pro's AutoTune), ppm. Sent only when it does. What the radio is still off by is ppmError − ppmApplied. A recorder that corrects by changing the radio's own setting (SDRTrunk's Auto-PPM) doesn't send it: its ppmError is already what's left

Clock

Field Type Meaning
sync string ntp, ptp, gps, none, unknown (the recorder can't tell; or leave it out)
systemOffsetMs number The recorder's clock less the time a P25 system broadcasts (SYNC_BCST), ms, when heard. Services judge late calls by the recorder's clock, so a wrong clock looks like a slow recorder

The answer

200 with a JSON object; all fields optional.

Field Meaning
nextS Send the next report this many seconds after this one (60 to 3600); the phase moves with it
message Something for the recorder to show its user
role What the service makes of the node, for display: free-form
Answer The recorder
200 with a JSON object Counts the report delivered
400 with { "error": "..." } The report is wrong: logs it and keeps sending; the window isn't sent again
401, 403 The node's credentials are wrong: says so and stops reporting that node until its settings change
429, 503 Busy, or reports turned off for now: waits as in When to send, then carries on. A service pauses every recorder with 503 and Retry-After
404, 405, or a 2xx that isn't a JSON object The service doesn't take reports: says so once and stops sending to it until recording restarts
Anything else, or no answer Not delivered: the next report carries the window

Reading a report (for services)

From one report, or several added up:

Alive A report within the last 2 × interval + 60 s, whether or not there were calls
Control channel held cc.lockedS / window
Control channel decoded cc.good / (cc.good + cc.bad); with airSym, airSym / (symbolRate × lockedS). Recorders count bad differently, so compare nodes on airSym where both send it
Calls missed (noFrequency + noSource + noRecorder) / calls.started
Voice lost voice.bad / voice.frames, per codec
Conventional receiver steady heardS / window and noiseDb against the node's own past

Compare nodes that report the same site id (or, conventional, the same hz and access), and the entries of one node's receivers the same way. Prefer the one ahead over several reports, not one: these figures move minute to minute on a busy or simulcast system. Check what nodes report against what they deliver: a node claiming every call but delivering fewer than another is wrong somewhere.

Examples

Each is a report as a recorder of that kind would send it. They are the conformance cases: a recorder's reports should look like them, and Broadcastify takes every one (try them with ?validate=1).

P25 trunked (Trunk Recorder Pro)

A P25 site with SNR and phase error, a conventional FM channel, radios and clock.

{
  "v": 1,
  "node": { "systemId": 1234, "apiKey": "..." },
  "recorder": { "name": "trunk-recorder-pro", "version": "0.3.8", "upS": 86400.0 },
  "window": { "start": 1794590100.0, "end": 1794590400.0, "seq": 412 },
  "sites": [
    {
      "name": "Downtown",
      "protocol": "p25",
      "id": { "nac": 928, "rfss": 1, "site": 5, "sysId": 939, "wacn": 781824 },
      "cc": { "hz": 854787500, "lockedS": 300.0, "good": 11200, "bad": 410, "airSym": 1180000, "symbolRate": 4800,
              "snrDb": 15.0, "phaseErrDeg": 17.2 },
      "calls": { "started": 812, "recorded": 790, "notRecorded": { "encrypted": 0, "noRecorder": 3, "noSource": 19 } },
      "voice": { "imbe": { "frames": 0, "bad": 0, "errors": 0 }, "ambe": { "frames": 9167, "bad": 862, "errors": 4120 } }
    }
  ],
  "channels": [
    {
      "hz": 155520000,
      "mode": "fm",
      "name": "County Fire Dispatch",
      "access": "CTCSS 151.4",
      "heardS": 300.0,
      "noiseDb": -62.1,
      "opens": 14,
      "openS": 96.0,
      "calls": 12,
      "openedByOther": 2,
      "signalDb": -40.9,
      "snrDb": 18.1
    }
  ],
  "radios": [
    { "name": "800", "kind": "airspy", "seconds": 300.0, "droppedS": 0.0, "clipPct": 0.0, "ppmError": -0.03 },
    { "name": "VHF", "kind": "rtlsdr", "seconds": 300.0, "droppedS": 1.0, "clipPct": 0.02, "ppmError": 0.4 }
  ],
  "clock": { "sync": "ntp", "systemOffsetMs": 12.0 }
}

DMR Capacity Plus on two receivers (an SDRTrunk VCE kind)

One DMR Capacity Plus site on two receivers, MER instead of SNR, sync loss, missing voice frames.

{
  "v": 1,
  "node": { "systemId": 5678, "apiKey": "..." },
  "recorder": { "name": "sdrtrunk-vce", "version": "0.6.2" },
  "window": { "start": 1794590212.4, "end": 1794590509.9, "seq": 37 },
  "sites": [
    {
      "name": "Metro Cap+",
      "protocol": "dmr",
      "receiver": "rooftop",
      "id": { "colorCode": 3, "site": 1 },
      "cc": { "hz": 461237500, "lockedS": 297.5, "good": 4200, "bad": 130, "syncLossSym": 3100, "airSym": 604800,
              "symbolRate": 4800, "merDb": 18.5 },
      "calls": { "started": 140, "recorded": 131, "notRecorded": { "data": 3, "noFrequency": 2, "noRecorder": 4 } },
      "voice": { "ambe": { "frames": 52000, "bad": 610, "errors": 9800, "missing": 240 } }
    },
    {
      "name": "Metro Cap+",
      "protocol": "dmr",
      "receiver": "indoor",
      "id": { "colorCode": 3, "site": 1 },
      "cc": { "hz": 461237500, "lockedS": 288.5, "good": 3900, "bad": 410, "syncLossSym": 21000, "airSym": 561600,
              "symbolRate": 4800, "merDb": 12.1 },
      "calls": { "started": 140, "recorded": 128, "notRecorded": { "data": 3, "noFrequency": 2, "noRecorder": 4 } },
      "voice": { "ambe": { "frames": 50110, "bad": 2210, "errors": 15400, "missing": 1380 } }
    }
  ],
  "radios": [
    { "name": "Airspy R2 rooftop", "kind": "airspy", "seconds": 297.5, "droppedS": 0.0, "ppmError": 0.12 },
    { "name": "RTL-SDR indoor", "kind": "rtlsdr", "seconds": 297.5, "droppedS": 3.0, "ppmError": -0.85 }
  ],
  "clock": { "sync": "unknown" }
}

MPT1327 and conventional, relative levels (an SDRTrunk kind)

An MPT1327 site, and conventional channels with levels not referenced to full scale (SNR only).

{
  "v": 1,
  "node": { "systemId": 9012, "apiKey": "..." },
  "recorder": { "name": "sdrtrunk", "version": "1.0.0" },
  "window": { "start": 1794590030.0, "end": 1794590331.0, "seq": 5, "gap": true },
  "sites": [
    {
      "name": "Utility MPT",
      "protocol": "mpt1327",
      "id": { "sysId": 4372 },
      "cc": { "hz": 165212500, "lockedS": 301.0, "good": 5400, "bad": 60, "airSym": 345600, "symbolRate": 1200 },
      "calls": { "started": 22, "recorded": 22 }
    }
  ],
  "channels": [
    {
      "hz": 155520000,
      "mode": "fm",
      "name": "County Fire Dispatch",
      "access": "CTCSS 151.4",
      "heardS": 301.0,
      "opens": 14,
      "openS": 96.0,
      "calls": 12,
      "openedByOther": 2,
      "snrDb": 21.4
    },
    {
      "hz": 460125000,
      "mode": "fm",
      "name": "Public Works",
      "heardS": 301.0,
      "opens": 0,
      "openS": 0.0,
      "calls": 0
    }
  ],
  "radios": [
    { "name": "RTL-SDR 1", "kind": "rtlsdr", "seconds": 301.0, "droppedS": 1.0, "ppmError": 0.4 }
  ]
}

Versions

A recorder sends v; a service reads the fields it knows and ignores the rest. New optional fields don't change v; a change in a field's meaning does.

Date Change
2026-11-15 radios[].ppmApplied; ppmError is against the correction set in the radio's settings
2026-11-15 Still 1, all additive or clarifying, after reviewing what SDRTrunk and SDRTrunk VCE can measure: what a node's report covers (whole sites, a site in several nodes' reports, several receivers on one site, receiver); protocols mpt1327, ltr, ltrnet, passport; control message units per protocol, symbolRate in baud, rest channels; cc.syncLossSym, cc.merDb, voice.*.missing; calls.recorded defined; reasons data and noFrequency; conventional noiseDb optional; the answers a recorder acts on