Some time ago, I bought a cheap software defined radio (SDR) USB dongle, a NooElec NESDR Mini 2. As all SDRs based on the RTL2832U chip, the original purpose of this dongle is to receive digital video broadcasting (DVB) but as it turned out, these can also be used as SDRs. So these dongles are great value, not only do they allow you to watch digital TV on your computer, but you can also use them as software defined radio receivers. Check out the https://www.rtl-sdr.com/ website to learn more about what you can do with them.
Here's what the dongle looks like:
It works perfectly as an SDR, but what I actually want to talk about is how to use it for it's original purpose, i.e. receiving digital video broadcasting. More specifically, how to watch digital TV on a Linux computer in Ireland. Thankfully, on a modern Linux distribution, such as Fedora Linux which I'm using, and having basic Linux knowledge, it's very easy.
First, install the RPM Fusion software repository into your system and then install the VLC media player, via Software app or the dnf
command.
Next, plug in the DVB dongle into your computer. To check that the device has been recognized and initialized, you can run the dmesg
command in a terminal window, you should see output similar to the following:
[23101.436902] usb 1-1: new high-speed USB device number 10 using xhci_hcd [23101.577084] usb 1-1: New USB device found, idVendor=0bda, idProduct=2838 [23101.577088] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [23101.577090] usb 1-1: Product: RTL2838UHIDIR [23101.577092] usb 1-1: Manufacturer: Realtek [23101.577094] usb 1-1: SerialNumber: 00000001 [23101.584731] usb 1-1: dvb_usb_v2: found a 'Realtek RTL2832U reference design' in warm state [23101.640546] usb 1-1: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer [23101.640571] dvbdev: DVB: registering new adapter (Realtek RTL2832U reference design) [23101.653238] i2c i2c-10: Added multiplexed i2c bus 11 [23101.653241] rtl2832 10-0010: Realtek RTL2832 successfully attached [23101.653258] usb 1-1: DVB: registering adapter 0 frontend 0 (Realtek RTL2832 (DVB-T))... [23101.653340] r820t 11-001a: creating new instance [23101.660287] r820t 11-001a: Rafael Micro r820t successfully identified [23101.672892] Registered IR keymap rc-empty [23101.672979] rc rc0: Realtek RTL2832U reference design as /devices/pci0000:00/0000:00:14.0/usb1/1-1/rc/rc0 [23101.673074] input: Realtek RTL2832U reference design as /devices/pci0000:00/0000:00:14.0/usb1/1-1/rc/rc0/input18 [23101.673375] rc rc0: lirc_dev: driver ir-lirc-codec (dvb_usb_rtl28xxu) registered at minor = 0 [23101.673384] usb 1-1: dvb_usb_v2: schedule remote query interval to 200 msecs [23101.681940] usb 1-1: dvb_usb_v2: 'Realtek RTL2832U reference design' successfully initialized and connectedOn Fedora Linux, the drivers for RTL2832U-based DVB tuners slash software defined radios are installed by default. But in case they aren't on your distribution, the name of the driver is
rtl2832
:$ lsmod | grep rtl28 rtl2832 24576 1 i2c_mux 16384 1 rtl2832 dvb_usb_rtl28xxu 40960 0 dvb_usb_v2 40960 1 dvb_usb_rtl28xxu dvb_core 126976 2 dvb_usb_v2,rtl2832 rc_core 36864 5 ir_lirc_codec,lirc_dev,dvb_usb_v2,dvb_usb_rtl28xxu
Now start the VLC media player, select Media 🡒 Open Capture Device... and input the settings shown on the screenshot below. The frequencies that you can enter depend on your location. In the example below, I've entered one of the two frequencies for receiving in Dublin, the 546000 kHz. The other frequency for Dublin is 570000 kHz. The set of the programmes that you can watch is different depending on the frequency you input. For example, RTE 2 HD is on 546000 kHz, while RTE One is on 570000 kHz.
To find out what frequencies you need to use in your area, refer to the document published by 2RN who run the networks. In the first part of the document, you can look up what channels you need to use in your area, and at the end, there is a table which tells you what frequencies correspond to those channels.
Click play, wait a few seconds for VLC to work it's magic and proceed to select Playback 🡒 Program from the menu which will allow you to choose the program that you want to watch as is shown on screenshot below.
Voila, we're receiving and watching digital TV! The quality of picture on RTE 2 HD is amazing.
If you're not in Ireland but there is digital TV broadcasting in your country, then these instructions should work for you too, you just need to find out the broadcasting frequencies for your location.
As a bonus, here are a couple of screenshots of the Gqrx program, which you can install on Fedora Linux using Software app or dnf
command and which, among other things, allows you to listen to FM radio and to narrow FM communications, such as marine VHF radio communications.