The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Instruction Guide Play DAB+ Radio in Moode
#1
Hi guys

I want you tell you my solution to hear DAB+ radio on a Raspberry Pi and Moode.
It works but in the end there also much work.

Here is my step-by-step guide.

Hardware 
Firstly you need a Raspberry Pi with Moode. I use a Pi3. All faster Pi should work but older Pis should be tested if it works. I think a Pi1 wouldn't work.
Also you need a RTL-SDR USB Stick. I use this one.... Nooelec NESDR SMArt v4
Please forget you need a antenna for the stick.

Connect the RTL stick to your Pi, connect a antenna on the RTL stick and start up the Pi.

Install RTL-SDR drivers
Code:
cd /home/pi
sudo apt-get install -y  git cmake pkg-config libusb-1.0-0-dev
git clone git://git.osmocom.org/rtl-sdr.git

Code:
cd rtl-sdr
mkdir build
cd build
cmake ../ -DINSTALL_UDEV_RULES=ON
make
sudo make install
sudo cp ../rtl-sdr.rules /etc/udev/rules.d/
sudo ldconfig

To prevent some driver problems edit a blacklist for the old drivers.
Code:
sudo nano /etc/modprobe.d/blacklist-rtl.conf

Insert this in the editor....
Code:
blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830

Save it with ctrl+o and exit the editor.
Now should reboot the Pi and test the driver.
Code:
sudo reboot
rtl_test -t

You should see something like that.
Code:
Found 1 device(s):
 0:  Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6
[R82XX] PLL not locked!
Sampling at 2048000 S/s.
No E4000 tuner found, aborting.
pi@moode:~ $


Install DAB+ software

To run DAB on the Pi I decidet to use welle.io. More likely a part of this project.... welle.io-CLI

Code:
sudo apt-get update
sudo apt install libfaad-dev libmpg123-dev libmpg123-dev libfftw3-dev librtlsdr-dev libusb-1.0-0-dev libpulse-dev libsoapysdr-dev libairspy-dev libmp3lame-dev
cd /usr/src/
sudo git clone https://github.com/AlbrechtL/welle.io
cd welle.io
sudo git checkout v2.0-beta1
sudo mkdir build
cd build
sudo cmake .. -DRTLSDR=1 -DBUILD_WELLE_IO=0
sudo make

Using DAB+ Webplayer

Now you need to know the used DAB Channels in your region.
Do you don't know it, take a look on fmscan.org. Here you get all infos about channels, ensembles, services ect.

Code:
/usr/src/welle.io/build/welle-cli -w 7979 -c <your channel> -C 2 -P -u

At <your channel> use your deside channel. 

In my case I take "DR Deutschland" 5C. 
Code:
sudo /usr/src/welle.io/build/welle-cli -w 7979 -c 5C -C 2 -P -u

Now you can play DAB+ on your PC by using a browser. 
All you have to do is enter the following address in the browser.

<The_Ip_adress_of_your_moodeplayer>: 7979

Here you can see all information about the selected channel. The SiD (service ID) of the station that is to be played in Moode is important for the further procedure.

For example, we will play Radio ENERGY. This runs in Germany in channel 5C (we have already selected it) and the SiD 0x1a45.

In order to play this station in Moode we create a PLS file with the following content.
Code:
[playlist]
numberofentries=1
File1=http://localhost:7979/mp3/0x1a45
Title1=DAB+ Radio: ENERGY
Length1=-1
version=2

Start your playlist in Moode.... congratulations your are hearing DAB+ in Moode.  Wink


But now there are some bad news.
Unfortunately it is only possible to decode one channel. There are several ways to change the channel.
1. You shut down the server and start it with another channel
2. You send an HTTP POST request to the server.
3. It is said to still be possible via JSON. I have to make myself smart here.

Unfortunately, this is not possible directly from Moode.

Despite all of this, I wish you lots of fun with it.  Wink
Reply


Messages In This Thread
Play DAB+ Radio in Moode - by Peziman - 01-11-2020, 10:35 PM
RE: Play DAB+ Radio in Moode - by Peziman - 02-07-2020, 08:57 AM
RE: Play DAB+ Radio in Moode - by fdealexa - 07-07-2020, 10:50 PM
RE: Play DAB+ Radio in Moode - by Peziman - 08-04-2020, 10:12 AM
RE: Play DAB+ Radio in Moode - by fdealexa - 08-11-2020, 10:52 PM
RE: Play DAB+ Radio in Moode - by fdealexa - 08-16-2020, 02:45 PM
RE: Play DAB+ Radio in Moode - by fdealexa - 10-27-2020, 02:50 PM
RE: Play DAB+ Radio in Moode - by Facel - 02-18-2024, 11:13 PM
RE: Play DAB+ Radio in Moode - by fdealexa - 02-19-2024, 01:11 AM
RE: Play DAB+ Radio in Moode - by Facel - 02-19-2024, 06:16 PM
RE: Play DAB+ Radio in Moode - by fdealexa - 02-19-2024, 11:31 PM
RE: Play DAB+ Radio in Moode - by Facel - 02-20-2024, 06:09 AM
RE: Play DAB+ Radio in Moode - by fdealexa - 02-20-2024, 08:22 AM
RE: Play DAB+ Radio in Moode - by Facel - 02-20-2024, 10:49 AM
RE: Play DAB+ Radio in Moode - by fdealexa - 02-20-2024, 11:33 PM
RE: Play DAB+ Radio in Moode - by Facel - 02-21-2024, 06:29 AM
RE: Play DAB+ Radio in Moode - by fdealexa - 02-21-2024, 02:45 PM
RE: Play DAB+ Radio in Moode - by Facel - 02-21-2024, 08:36 PM

Forum Jump: