RTL-SDR for Beginners: Receive and Decode Radio

7 min read188 courses on OnlySecurity

An RTL-SDR is a small USB radio receiver that turns a computer into a scanner you can program. Security work uses it to see what wireless devices in a building are doing, and to understand the signals that remote controls, sensors and aircraft put into the air. This guide covers what you need, how to set it up and what to listen to first. It is receive only throughout.

What an SDR is

A software defined radio does the minimum in hardware: an antenna feeds a tuner, and the tuner passes a slice of spectrum to a chip that samples it and sends the samples over USB. Everything else, such as demodulating FM or decoding a sensor message, happens in software on your computer.

Three terms matter from the start. The centre frequency is where the tuner is pointed. The sample rate sets how wide a slice you see at once, so a rate of about 2.4 million samples per second shows roughly 2.4 MHz of spectrum around the centre. The waterfall is the display that plots signal strength by frequency on one axis and time on the other, so a short burst from a doorbell appears as a bright dash that scrolls away.

The name RTL-SDR comes from the Realtek RTL2832U chip that many of these dongles use. It was designed for digital television, and the community found that it could pass raw samples to a computer.

Choosing a dongle and antenna

For a first receiver, pick an RTL2832U dongle with an R820T2 or R828D tuner. The current RTL-SDR Blog V4 uses the R828D tuner and covers 500 kHz to 1.766 GHz. It reaches the HF bands below 28.8 MHz through a built-in upconverter, so you tune them directly; the older V3 used a direct sampling mode instead, and that mode gives no results on a V4. That range includes FM broadcast, the 433 MHz and 868 MHz licence-exempt bands used by sensors and remotes, and the 1090 MHz aircraft transponder band. It also covers aviation voice and other services that the public is not licensed to listen to in the UK.

Look for a dongle with a metal case, an SMA antenna connector and a temperature compensated oscillator. A dongle with a drifting oscillator will make narrow signals wander across the waterfall and complicate decoding.

The antenna matters more than most beginners expect. The small whip that ships in many kits is a compromise. A telescopic dipole with adjustable elements lets you adjust the antenna to the band you are listening on. Set each of its two elements to a quarter wavelength: about 17 cm at 433 MHz, about 7 cm at 1090 MHz and about 75 cm for FM broadcast. Place it near a window and away from the computer, which radiates its own noise.

This article does not recommend a seller. Check the RTL-SDR Blog project’s own pages for current models and buy from a seller you trust.

Drivers and software

Install the drivers first. On Linux, install the rtl-sdr package from your distribution and blacklist the kernel’s television driver (dvb_usb_rtl28xxu) so it does not claim the dongle first. If you have a V4, remove the distribution’s librtlsdr packages and build the RTL-SDR Blog driver instead, because older packages can give no signal, the wrong frequency or corrupted samples on it. On Windows, the Zadig tool replaces the default television driver with a generic USB driver for the dongle. On macOS, a package manager provides librtlsdr. Then pick the software that matches your first goal.

  1. SDR++ is a cross-platform receiver with a waterfall display, and it is a good first choice on all three systems.
  2. gqrx is a long-standing receiver for Linux and macOS with a similar layout.
  3. rtl_433 is a command line decoder for the messages sent by wireless sensors on the licence-exempt bands.
  4. dump1090 and its forks decode aircraft position messages on 1090 MHz.

Run rtl_test after installation. It confirms that the computer can talk to the dongle and shows whether samples are being dropped at your chosen sample rate. If you see lost samples, lower the rate or move the dongle to a different USB port.

First listens

Start with something you can confirm by ear.

FM broadcast. Tune to a local station between 87.5 and 108 MHz, choose wide FM mode and adjust the gain until the audio is clean. This confirms the whole chain works. It also teaches the gain control: too little and weak signals vanish, too much and strong stations create ghost copies across the display.

Aircraft. Aircraft broadcast their identity and position on 1090 MHz. Stand a short antenna upright, as high as you can with a clear view of the horizon, run the original dump1090 with --interactive --net and open http://localhost:8080 in a browser (forks differ: on a PiAware build, use the SkyAware link on the device’s status page). Within minutes you will see traffic from your area. ADS-B position messages are transmitted unencrypted and are widely received by hobbyists and flight tracking networks. Ofcom’s guidance on radio reception does not mention ADS-B, so treat the law section below as the rule that applies, and do not share what you receive.

433 MHz sensors. Tune to 433.92 MHz in SDR++ with one of your own devices nearby, such as a weather station sensor, a wireless doorbell or a remote, and trigger it. Its burst appears as a dash on the waterfall. Then run rtl_433 in a terminal. It will name the device if it recognises it and print the fields in the message, such as temperature, humidity or a button identifier. Other people’s devices will also show up. Do not log, keep or act on what they send. The project’s README lists close to 400 numbered device protocols.

868 MHz and other bands. Many European alarm sensors and smart home devices use 868 MHz. The same approach applies: trigger one of your own devices, find its burst on the waterfall, then run rtl_433 -f 868M to try to identify it. Not every signal can be decoded, and some will stay unknown.

If a burst is present but nothing decodes, adjust gain first, then try a different sample rate, and keep the antenna away from the computer.

What this means for security work

Many consumer wireless devices send their messages without encryption, and some include a fixed identifier. A survey of your own devices, or of a site you have written permission to assess, shows which devices exist, what they disclose and how far the signal travels. That survey belongs in a risk note for that site. For any other signal you pick up, note only that something transmits on that frequency; do not decode, log or keep what it says. It is not a way to learn about other people’s property.

Keep a log of each of your own (or in-scope) devices you identify: the frequency, the device type, what the message contains and how often it repeats. That log is the useful output, not the signal itself.

The law

This article covers receiving only. An RTL-SDR cannot transmit. Transmitting needs different equipment and, on most frequencies, a licence or an authorised test, which our Sub-GHz courses cover.

In the UK, receivers and scanners may typically be used only for general reception, such as licensed broadcast stations and hobby radio (Ofcom, radio spectrum and the law). Under section 48 of the Wireless Telegraphy Act 2006 it is an offence, without lawful authority, to use wireless telegraphy apparatus with intent to obtain information about the contents, sender or addressee of a message not meant for you (one of which neither you nor anyone you act for is an intended recipient), or to disclose information you obtained that way. Ofcom says it cannot give specific legal advice on receiving equipment. Rules differ in other countries, so check the law where you live before you start. This is general information and not legal advice.

Next steps

Once your dongle is picking up signals, the useful skill is turning what you see into a documented finding. OnlySecurity has courses that go further, covering both receiving and the equipment you test with, always on your own equipment or with written permission:

  1. Radio, Sub-GHz and SDR Ultimate Course covers the wider radio and Sub-GHz field.
  2. Decoding 433 MHz Devices with rtl_433 goes deeper into the sensor decoding shown above.
  3. Evil Crow RF V2: Sub-GHz Security Testing covers a tool that can also transmit, and the authorised testing rules that come with it.

More from this author