← All projects

Amateur radio research · 2 m FM

Dibitern

How much of a packet can you save before you ask the other station to send it again?

Read the engineering note PDF ↓
A fork-tailed tern gliding on outstretched wings

A page, a map
and a missing block

Packet radio bulletin boards let two small stations do something useful with a few seconds of clear channel. Dibitern takes that idea back to the audio samples. Its name joins dibit, the two bits carried by each experimental chirp, with tern, the bird on the wing.

One station asks for page 100. It can read the 73-byte page while the other station sends the map in sixteen pieces. When a fade cuts through block 8, the reader keeps the pieces it already has. A bitmap asks for block 8 again. The reader checks the assembled map against the digest sent in the manifest.

Hear the fade

All three recordings span the same 48.734-second simulated contact. Listen at 26.719 s for the 40 ms fade. The repeat starts at 30.799 s. These recordings use the unfiltered audio channel.

Fitting a chirp into the voice band

A Bell 202 modem chooses between two tones. Our chirp modem chooses one of four time shifts of a short sweep. Abrupt joins between sweeps throw energy outside the voice passband. Bringing each symbol back to the same phase and rounding the sweep’s frequency return moved the fraction of DATA energy inside 300–3000 Hz from 90.88% to 98.33%.

We kept the chirp receiver, message and transmit budget fixed. On 24 marginal-noise traces through a simulated voice filter, the receiver copied 406 of 408 blocks first time with shaped chirps, 345 with original chirps and 382 with hard-decision AFSK. Without the filter the original chirps recovered one more block than the shaped version.

Power-density curves for three transmitters: in-band energy was 99.56% for AFSK, 90.88% for original chirps and 98.33% for shaped chirps.
Audio power measured from the 17 clean page and map DATA bodies. The inset shows one actual boundary between dibits. Select the figure for full resolution.

Baud, bit rate and useful work

At 1,200 baud, AFSK sends one bit every 0.833 ms. The chirps run at 600 baud, carrying two bits every 1.667 ms. Both send 1,200 gross bits per second. Framing, grants and missed blocks determine how much of that capacity reaches the reader as usable content.

Through the voice filter, original and shaped chirps delivered 558 and 658 verified payload bits per keyed second at exactly the same baud rate. AFSK delivered 619. These are measured operating points. Finding an optimal rate calls for a sweep within each waveform family, charging the cost of retries and channel turnaround.

Verified bits per keyed second, unfiltered then filtered: AFSK at 1200 baud, 575 and 619; original chirps at 600 baud, 656 and 558; shaped chirps at 600 baud, 655 and 658.
First-copy object bytes divided by airtime keyed by both stations. The 24 marginal-noise trials give each block one chance. Waiting between turns is excluded.

When the signal disappears

For a second experiment, we cut a short hole in every DATA transmission and left the noise running. With a 1 ms gap the shaped waveform recovered 126 of 136 blocks through the voice filter. With a 2 ms gap it recovered 64, while AFSK and original chirps each recovered 67. A 40 ms gap erased too many decisions for any directly hit block to pass.

First-copy recovery falls from 136/136 at zero dropout to 0/136 at 40 ms for all profiles. Shaping helps most at 1 ms.
Eight noise seeds, each with one page and sixteen map blocks. The gap is centred and staggered across symbol phases. A block counts only when its bytes match the original.

From samples to a service

Both stations use Verada. Its bounded integer types let the prover check that a two-byte write fits inside a packet. Its Python-like syntax also serves for the tone and chirp detectors, whose sample loops compile through LLVM to native code on the Mac. Explore the Verada language and toolchain.

NumPy supplies the offline filter and controlled dropout replays. These trials model radio audio. The next physical check is a recording through a Kenwood TH-D75A, where squelch, key-up, clock drift and the actual audio response can affect the result.

Above the modem, we want stations to negotiate rates, coding and block sizes as propagation changes. Each waveform, error-correction scheme and content format would have its own version. A signal analyser could recommend a change and both stations would agree which burst uses it. Above that, a page manifest could send a teletext-style notice first, reuse a cached map or request just the missing image chunks. The present page-and-map exchange is a small, repeatable test for those choices.

Engineering note (PDF)  ·  Waveform tables (ZIP)  ·  Receiver and grant experiments (ZIP)