Listen to radio FM/DAB with RTL2832U
mouse 152 · person cloud · link
Last update
2021-03-22
2021
03-22
« — »
1
2
# /etc/udev/rules.d/10-local_rtl-sdr.rules
SUBSYSTEM=="usb", ATTRS{idVendor}=="0ccd", ATTRS{idProduct}=="00d3", GROUP="audio", MODE="0666", SYMLINK+="rtl-sdr"
1
2
# reload udev and plug the usb RTL2832U stick
udevadm control --reload-rules && udevadm trigger

FM

1
2
3
4
apt install rtl-sdr

# play a FM radio station at freq. 107300000Hz with 6x sampling
rtl_fm -f 107.30e6 -M wbfm -s 200000 -r 48000 - | aplay -r 48000 -f S16_LE

DAB

Using terminal-DAB-xxx:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
apt-get install \
  git cmake build-essential g++ pkg-config libsndfile1-dev libfftw3-dev portaudio19-dev zlib1g-dev  libusb-1.0-0-dev libsamplerate0-dev ncurses-base \
  libfaad-dev librtlsdr-dev

git clone https://github.com/JvanKatwijk/terminal-DAB-xxx.git

cd terminal-DAB-xxx
mkdir build && cd build
cmake .. -DRTLSDR=ON -DFAAD=ON -DPICTURES=OFF
make
mv terminal-DAB-rtlsdr t-dab && strip t-dab

# http://www.air-radio.it/T_DAB.html
# 12A  EuroDAB     http://www.litaliaindigitale.it/radio-dab/mux-eurodab-italia
# 12C  DAB Italia  https://www.dab.it
# 12D  DAB+ RAI    http://www.rai.it/dl/DigitalRadio/dab_raiway.html
./t-dab -Q -C 12C -S R101  # play service "R101" on channel "12C" with autogain

See also: opendigitalradio.org, Qt-DAB app, welle.io DAB app, cubicsdr FM app, dablin + dabtools/eti-cmdline