# OFFgrid-SDR **A complete radio receiver in a single file. No installation, no internet, no account: plug in an RTL-SDR stick, open the page, and listen.** OFFgrid-SDR is a software-defined radio receiver that runs entirely in your web browser from one file, `index.html`. With an RTL-SDR stick and an antenna it receives long, medium and short wave, FM, airband, VHF and UHF, DAB, DRM and DRM+ digital radio, AM stereo and the US and Canadian weather radio, with dozens of decoders, on almost any computer. It can also use an SDRplay RSP across your network, through SDRplay's SDRconnect.  ## What's new in 3.1 New ways to listen, a radio that fits where you are, and a smarter AUTO. - **DRM+ (DRM in the FM band).** The DRM key now reads DRM+ (robustness mode E) too, switching by itself above 30 MHz: the station's name, settings and services, SlideShow pictures and Journaline pages. Checked against an independent transmitter's signal and an independent receiver (libdrmplus). Sound from DRM+ isn't decoded yet. If anyone can record a 60 second IQ data of a DRM+ and post, I could then code for the audio. - **AM stereo (C-QUAM).** AM and SAM find an AM stereo station by themselves from its pilot tone, with the ST lamp and Stereo / Mono keys as on FM, and drop back to mono when night-time fading scrambles the stereo. - **Weather radio with SAME alerts** (USA and Canada). A **WX** band tab with the seven weather channels, and warnings decoded from their SAME codes: what the alert is, the counties it covers and how long it lasts. - **RDS "Also on".** The station's other frequencies, as keys: click one to tune there. - **Settings → Location.** Your region, your nearest city (or locator) and your callsign, in one place, with **Detect my location**. It sets the bands for where you are: - the FM band and its de-emphasis (including Brazil and Chile's band, now on their own channels); - medium wave 10 kHz apart in the Americas, 9 kHz elsewhere; - the 6 m and 4 m ham bands; - the WX tab only in the USA and Canada, the DAB tab everywhere but the Americas, and the CB bands for your part of the world. - **New bands:** - **UHF CB** (Australia and New Zealand, 80 channels); - **FRS / GMRS** (USA and Canada, 22 channels and the GMRS repeater inputs); - **2200 m** and **1.25 m** (the Americas) ham bands, and **60 m** widened to cover every country's allocation. - **SSTV in USB or LSB.** Auto / USB / LSB keys, for SSTV groups that send in the other sideband (thanks to Bear for asking). - **Seek stops on the station,** not beside it: on FM at the centre of its signal, in AM on its carrier, one press from a station to the next. Through SDRconnect it waits for the network after each retune, so it doesn't run past strong stations. - **A smarter AUTO:** - it knows DRM by its timing as well as its shape, so a fading DRM broadcast is no longer taken for SSB; - it is checked on every mode it can name, with fixes for Hellschreiber, DSC and weather fax; - it puts narrow FM exactly on its channel. - **The Signal Monitor** tells fast Morse from PSK, even through a narrow CW filter. - **And more:** the frame rates (FPS, WF) stay on screen on laptop-sized windows, and the diagnostics keep the lines that matter. The full list is in the app's help panel (**?**). --- ## Quick start OFFgrid-SDR is **one file**, `index.html`. Everything else here is documentation and licences. 1. **Download `index.html`:** click it in the file list above, then **Download raw file**. (For everything, use **Code → Download ZIP**.) 2. **Open it** in Google Chrome or Microsoft Edge (or another Chromium-based browser). 3. **Plug in the stick,** press **Power on**, and choose the stick in the browser's window when it asks. If no stick is plugged in, OFFgrid-SDR says so and tells you what to do. If you've also set up an SDRplay RSP (see below), it uses that instead. **No stick yet?** Open `index.html?demo` for **demo mode**: simulated stations that show off every feature, including FM stereo with RDS (and its other frequencies), fading shortwave, SSB and Morse, AM stereo (C-QUAM), weather fax, RTTY, NAVTEX, DSC, SSTV in USB and LSB, PSK, FT8, FT4, WSPR, time stations, ACARS, APRS, AIS, Hellschreiber, a weather radio station sending SAME alerts, a DAB multiplex, four DRM stations (one carrying two programmes and a news service, one fading by skywave), a DRM+ station in the FM band, and the famous "Buzzer". Press **Power on**, then pick a station from the **Demo stations** list. **Keeping up to date:** press **Check for updates** in the help panel (**?**). To update, put the new `index.html` in place of the old one. Your settings and memories are kept, though it's worth exporting a backup first (**Settings → Backup**). ### One-time driver setup - **Windows:** run [Zadig](https://zadig.akeo.ie), choose *Options → List All Devices*, select *Bulk-In, Interface (Interface 0)* (or *RTL2838UHIDIR*), choose **WinUSB** and click **Replace Driver**. - **macOS and Chromebooks:** nothing to set up. - **Linux:** stop the TV driver from claiming the stick, and give your user access to it: ```sh echo 'blacklist dvb_usb_rtl28xxu' | sudo tee /etc/modprobe.d/rtl-sdr-blacklist.conf sudo modprobe -r rtl2832_sdr dvb_usb_rtl28xxu # or reboot echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2838", MODE="0666"' | sudo tee /etc/udev/rules.d/20-rtlsdr.rules sudo udevadm control --reload-rules && sudo udevadm trigger ``` Then unplug the stick and plug it back in. With Snap Chromium on Ubuntu, also run `sudo snap connect chromium:raw-usb`. Only one program can use the stick at a time, so close SDR#, SDR++, gqrx or rtl_tcp first. --- ## Using an SDRplay RSP (through SDRconnect) OFFgrid-SDR works with an **RTL-SDR stick** by default, but it can also use an **SDRplay RSP** through SDRplay's **SDRconnect**, on the same computer or another on your network (a Raspberry Pi in the shed, say). This also works in **Firefox and Safari**, which can't use a USB stick. **Setting up:** SDRconnect must already be running on the RSP's computer, with its WebSocket API on port 5454. Then, in OFFgrid-SDR, choose **SDRconnect** in *Settings → Device*, enter its address, press **Test**, then **Power on**. **Your chosen device first, then the other one.** At every Power on, the device chosen in *Settings → Device* is tried first, and the other is tried only if it isn't there: - **With the stick chosen,** the browser's stick window opens first. Close it without choosing a stick, and SDRconnect is tried. - **With SDRconnect chosen,** it has a couple of seconds to answer, then the stick is used. The other device stands in only until Power off; your choice never changes by itself. **Each device remembers its own RF gain for each band.** The gain means dB on a stick but the RSP's LNA steps through SDRconnect, so each keeps its own. **RSP models:** - **RSP1A and RSP1B** need nothing more. - **The RSPdx** switches antennas by frequency (A from 30 MHz up, B below, by default; Antenna C works up to 200 MHz). - **The RSPduo** uses its first tuner. **The network:** - **Test** checks that SDRconnect answers, lists the RSP's antenna ports, and measures whether your network **keeps up**, **only just** keeps up, or is **too slow** for the full stream. - **The full stream at 2 MHz needs about 8.2 MB/s** (66 Mbit/s), continuously. **DAB needs it without a break**, so a cable at both ends is best. On Wi-Fi, a brief stall can make SDRconnect drop a little data, which DAB hears as a split-second cut. OFFgrid-SDR keeps a half-second reserve on DAB to ride out the network's ups and downs. - **Lite mode** (the **LITE** key under the frequency, or *Settings → Device*) is for a slow network. SDRconnect sends its own sound and spectrum, about **0.2 MB/s**. The speaker, the audio decoders, the spectrum, the waterfall and the Signal Monitor's measurements all carry on. **DAB, DRM, AIS and VDL2** need the full stream: choosing one of them pauses Lite mode, and leaving it brings Lite mode back. - **Wide views** of 6, 8 and 10 MHz come straight from the RSP, using the **span key** beside LITE. In full mode they need 24, 32 and 40 MB/s (wired gigabit for 10 MHz). DAB always uses 2 MHz, so the span key is greyed out on DAB. **A Raspberry Pi as the SDRconnect server** works well. Use **Raspberry Pi OS Lite**, especially on a 1 GB Pi, since with a desktop it runs short of memory. **The full guide, [SDRconnect.md](SDRconnect.md),** covers installing SDRconnect, running the headless server as a service that starts at boot (with a Raspberry Pi example), the firewall, the RSP models, how the RSP's two gains are handled, and troubleshooting. --- ## Decoders - **DAB and DAB+:** the multiplex's name and stations to pick from, with the sound of either kind (DAB+ in HE-AAC, DAB in MP2, at any bit rate). For each station it shows the format, bit rate, programme type, "now playing" text, and logo or SlideShow pictures where the multiplex sends them. Your last station on each multiplex is remembered. - **DRM** digital radio, on long, medium and short wave: - sound in AAC and xHE-AAC; - the station's name, language, text message, SlideShow pictures and **Journaline** news pages; - **a choice between a station's services**, as All India Radio's stations carry: up to four, such as two programmes and a news service, remembered for each station. - **DRM+** (DRM in the VHF bands, the FM band among them): the station's name, settings and services, SlideShow pictures and Journaline pages, with the same DRM key. - **AM stereo (C-QUAM)**, found by itself in AM and SAM, back to mono when fading scrambles it. - **SAME weather alerts** on the US and Canadian weather radio: the event, the counties, who sent it and how long it lasts, with the 1050 Hz alert tone noted. - **RDS** on FM: station name, programme type (RBDS types in the Americas), RadioText and clock, and the station's other frequencies to click and tune to. - **Morse (CW)**, 4 to 60 words per minute, and **RTTY**, each finding the speed, shift and mark/space by itself. - **NAVTEX** maritime safety messages, and **DSC** ships' calls (distress in red). - **FT8 and FT4,** with each station's country, distance and bearing, CQ filtering and sorting, and **deeper decoding** that finds weaker stations hidden under strong ones. - **WSPR** beacons down to about −28 dB, correcting a clock a minute or so out. - **Time signals** from CHU, WWV, WWVH or RWM, with **Find a time station** and **Clock details**. **Heard** and **Band survey** show who you can hear and which bands are open. - **APRS** positions, weather and messages, and **AIS** ships on both channels at once, each with distance and bearing. - **VDL2** aircraft datalink, every channel in view at once, with ACARS messages in full and each aircraft's country. - **ACARS** aircraft messages. - **SSTV** pictures (Martin, Scottie, PD). - **PSK31/63/125** and **Hellschreiber**. - **Weather fax** charts, saved as PNG. **DAB+**, with the multiplex's stations to choose from:  **DRM**, 2 audio streams with a Journaline text service to choose from:  --- ## Known limitations - **Browsers:** a USB stick needs WebUSB, which only Chromium-based browsers have (Chrome, Edge, Opera and so on). Firefox and Safari can run demo mode, or use an SDRplay RSP through SDRconnect. - **One program at a time** can use the stick. - **Tuners:** R820T, R820T2 and R828D sticks only. Older E4000, FC0012, FC0013 and FC2580 sticks won't work. - **SDRplay RSPs (through SDRconnect):** - **SDRconnect must be running** on the RSP's computer, with its WebSocket API on (port 5454). - **No bias-tee control:** SDRconnect's API (version 1.0.3) has none. Switch it on in SDRconnect, or in an SDRconnect profile that OFFgrid-SDR applies when connecting. - **The RSPduo** uses its first tuner only. - **Open OFFgrid-SDR from a file or an `http://` address:** a page served over `https://` can't connect to SDRconnect. - **Retuning goes over the network,** so Seek, Scan and the band survey are slower than with a stick. - **DAB on Wi-Fi** can still cut out for a split second now and then, when SDRconnect drops data during a network stall. A cable at both ends is the cure. - **SDRconnect 1.0.6 or later** is needed (1.0.10 still reports its API as 1.0.3). - **DRM** needs a good signal: about 10 dB for 16-QAM and 16 dB for 64-QAM. Below that, the settings are read but not the name or sound. The few stations using unequal protection or hierarchical modulation aren't decoded yet. - **DRM+** reads the station's name, settings, pictures and news pages, but **not its sound yet**: DRM+ audio hasn't been checked against a real or independent signal. Stations using 16-QAM aren't decoded yet, and short interleaving follows the standard but hasn't been checked against an independent receiver. - **AM stereo** is C-QUAM, the system nearly all AM stereo stations used. It has been tested on the demo's stations; reports from real C-QUAM stations are welcome. - **SAME alerts** name US counties; Canada's location codes are shown as numbers. - **DAB** needs a good signal: about 8 dB for the sound, while the station list comes through down to about 3 dB. An outdoor or loft aerial helps a great deal. Logos and pictures appear only where the multiplex broadcasts them, and other DAB data services aren't shown. - **RTL-SDR Blog V4 near 28.8 MHz:** the stick's own 28.8 MHz clock shows as a spike there. On **10 m**, the trial setting *Settings → Device → RTL-SDR Blog V4 on 10 m* tunes the stick just above it, leaving out most of the spike. - **The Signal Monitor** watches only what's in the radio's present view (2 MHz with a stick, up to 10 MHz with an RSP). Its clips are kept in memory and lost when the page closes, so save the ones you want to keep. - **Waterfall replay** uses memory (about 123 MB for 30 seconds), so it's off by default. - **AUTO** judges a couple of seconds of signal, so it can be wrong on very weak signals: choose the mode yourself if something sounds wrong. - **FT8 and FT4** reach slightly less deep than WSJT-X on a single weak station. - **Time signals:** MSF and DCF77 are below the sticks' range, and a web page can't set the computer's own clock (**Clock details** shows how). - **Weather fax:** the US National Weather Service has proposed closing its HF radiofax stations towards the end of 2026. They're marked in the station list. - **Smaller points:** - Morse may miss the first letter while locking on. - The sound runs about 0.2 s behind the waterfall, and Bluetooth adds more. - Reception is weaker below about 500 kHz. - With a stick, Panorama looks at one slice at a time. - On direct-sampling sticks, the RF gain has no effect on shortwave. - **Background tabs:** OFFgrid-SDR keeps playing in a background tab, but if Chrome's Memory Saver puts the tab to sleep, everything stops. Add OFFgrid-SDR to *Always keep these sites active*. - **Audio extensions** need *Allow access to file URLs* (in `chrome://extensions`) when OFFgrid-SDR is opened as a file. - **Slower computers:** use **Low-power mode**; a very old or cheap machine may still struggle. ---
visits and counting!