Ribbit 1.0: a new voice from an old friend

We are very happy to announce that Ribbit 1.0 is up and running live at app.ribbitradio.org. Version 1.0 sends and receives with ROBUSTO, a new modem by Ahmet Inan, and uses the same message format as Ahmet’s Rattlechan message board. Short messages now go out in about a second, roughly half the duration of the previous modem. Your phone can now also tell you which stations heard what you sent.

What is Ribbit? Ribbit is a communications protocol that turns any radio that can carry voice into a text-messaging network. Your phone turns a message into encoded audio, you hold the speaker to the radio’s microphone (or over USB or audio cables), and a phone at the other end turns the sound back into text. No internet, cell service or special hardware is needed. That idea won the American Radio Relay League (ARRL) Technical Excellence Award in 2023. Version 1.0 makes substantial improvements in the modem, user interface, and accessibility features.

Where Ribbit Began

Ahmet’s work has always been central to Ribbit, a concept invented by project lead Pierre Deliou W4CKX. Ahmet built the original Rattlegram tech demonstration for Ribbit, and his modem, compiled to run in a web browser by Alex Okita KO6BVA, has carried every Ribbit message since.

And, Ahmet has kept going. His modem work grew into ROBUSTO, and ROBUSTO now carries Rattlechan, his message board that travels as sound over any radio that carries audio. When we asked whether Ribbit could build on Rattlechan’s message format, he went further and encouraged us to move Ribbit onto ROBUSTO itself. Therefore, that is what Version 1.0 of the Ribbit web app does.

The old modem code is in the repository, labeled as a historical reference. It’s a very good worked example for anyone learning how to bring a C++ modem to the web.

What ROBUSTO Does

ROBUSTO is an OFDM (orthogonal frequency-division multiplexing) modem. It spreads data across 320 tones, 7.5 Hz apart, filling 2400 Hz of audio centered at 1500 Hz. That fits inside the audio passband of an ordinary voice radio.

What does it have? Well, one of the most important things is strong error correction. Data is protected with Polar codes, a 32-bit CRC (cyclic redundancy check) and it is interleaved across the whole frame. This means that a burst of noise doesn’t wipe out one part of a message.

It has multiple “speeds”. Modulation runs from BPSK (binary phase-shift keying) for weak signals up to QAM256 (256-point quadrature amplitude modulation) for clean ones. In practical terms this means it has data rates that range from 0.1 to 14 kilobits per second.

Ribbit uses the most robust mode for each message, so short messages get the most protection.

Your station ID appears in the preamble, the opening of every transmission, so a receiver knows who is sending from the very beginning of the message.

Backwards compatibility is something we can rely on from here. Ahmet has committed that frames sent today will decode with every later version of the decoder.

All of the modem work is under the open source 0BSD license.

How long does a Ribbit message take over the air with ROBUSTO? Up to 48 bytes, it takes 1.1 seconds. Up to 96 bytes, it takes 1.6 seconds. Up to 256 bytes, which is the upper limit, it takes 2.7 seconds. The previous modem took about 2 seconds for a message, no matter how many bytes were sent.

ROBUSTO runs as WebAssembly in the browser, using SIMD (single instruction, multiple data) instructions. Chrome 91, Firefox 89, Safari 16.4 and anything newer support this approach. An older browser will show a message saying it’s too old.

What’s in a Message?

Rather than invent our own, Ribbit Payload v1 is built from Rattlechan’s records. Each record is a small labeled piece of a message. For example, a type number, a length, then the data. A receiver skips any record it doesn’t understand, so the format can grow without breaking older apps. This approach allows for interoperability while enabling diversity of implementations. Here’s what we have in our messages:

Your station ID, in ROBUSTO’s preamble. Like Interlocutor for Opulent Voice, your station ID is your identity on the air.

The text, up to 251 bytes.

A message number, so a receiver can drop duplicates.

Your grid square, if you’ve set one. It’s optional and never sent when blank.

Your phone number, only if you’ve filled it in. It’s optional and never sent when blank.

Heard receipts (new!). When your phone decodes someone’s message, it adds a short note saying so to the next few messages it sends, using room in the frame that would otherwise be zero padding. The sender’s phone then shows “Heard by” under the message, with the station IDs that received it. Receipts never make a transmission longer.

The full specification, with a Python reference implementation and its tests, is in the repository at https://github.com/OpenResearchInstitute/ribbit_webapp/blob/main/spec/RIBBIT_PAYLOAD_V1.md

Try it and Tell Us What to Improve

  1. Open app.ribbitradio.org. If you’ve used Ribbit before, tap the update notice when it appears, or fully close the app and reopen it. The header should read v1.0.0.
  2. Set your station ID. All other fields are optional.
  3. Find a friend, or a second phone, and send each other messages. Speaker to microphone in the same room works, but over the air is the real test and where the real utility can be found.

Ribbit 1.0 doesn’t talk to older versions of Ribbit, because the modem is different. Make sure everyone you’re testing with has 1.0.

We’ve tested phone to laptop in both directions, in Chrome and Firefox, with short and long messages and Heard receipts. What we need now is reports from real radios, and accessibility testing.

  • Does VOX work?
  • Is the audio level right for your radio’s microphone input, without overdriving it?
  • How does it hold up on a weak or noisy channel, on VHF (very high frequency) and UHF (ultra high frequency), and on HF (high frequency)?

Please report what you find on the #ribbit channel in Open Research Institute’s ribbit Slack channel, or as an issue on GitHub, or here. Include your radio model.

Ribbit is a volunteer project. If you’d like to help with radio testing, the user interface or the Android app, please visit https://www.openresearch.institute/getting-started/ and say hello on #ribbit. Your technical, design, testing, and code contributions are welcome.