Sunday, June 28, 2020

Listen to HD Radio using RTL-SDR


Radio station in north america broadcasts HD radio signals. HD radio signal can be seen in below frequency spectrum of 102.7 MHz channel. The 2 rectangle shaped band on both side of analog radio signal are Lower and upped side band respectively of HD Radio signals. NRSC-5 is standard protocol to transmit HD radio signal. 


To receive and nrsc-5 radio, i have cross compiled (win64) nsrc program on pi using below commands
sudo apt install git build-essential cmake autoconf libtool libao-dev libfftw3-dev librtlsdr-dev
cd ~/dev/
git clone https://github.com/theori-io/nrsc5.git
cd nrsc5 
sudo apt install mingw-w64
support/win-cross-compile 64
Copy libnrsc5.dll and nrsc5.exe to windows and run

nrsc5.exe 102.7 0

if you get below error, stop any other which is using SDR device like SDRSharp and run it again.
usb_open error -3
Please fix the device permissions, e.g. by installing the udev rules file rtl-sdr.rules

References 
1. NRSC-5 https://www.nrscstandards.org/standards-and-guidelines/documents/standards/nrsc-5-d/nrsc-5-d.asp
2. nrsc github - https://github.com/theori-io/nrsc5

No comments: