Thank you for your donation!


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


Instruction Guide Play DAB+ Radio in Moode
#17
(02-21-2024, 06:29 AM)Facel Wrote:
(02-20-2024, 11:33 PM)fdealexa Wrote: Ok, Alain.
that should be the right directory.
Regards,
Francesco

Hi Francesco

First of all, the result is that it can play the DAb Radio (Chante France in this case) from moode Smile


The cmake command has not found the ALSA Library... Is it critical ?


Code:
/usr/src/welle.io/build $ sudo cmake .. -DRTLSDR=1 -DBUILD_WELL                                 E_IO=0
-- Build type not specified: defaulting to release.
-- Could NOT find ALSA (missing: ALSA_LIBRARY ALSA_INCLUDE_DIR)
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/src/welle.io/build

and the make command has some warnings

Code:
/usr/src/welle.io/build $ sudo make
Scanning dependencies of target welle-cli
[  2%] Building CXX object CMakeFiles/welle-cli.dir/src/welle-cli/welle-cli.cpp.o
[  4%] Building CXX object CMakeFiles/welle-cli.dir/src/welle-cli/alsa-output.cpp.o
[  6%] Building CXX object CMakeFiles/welle-cli.dir/src/welle-cli/webradiointerface.cpp.o
[  9%] Building CXX object CMakeFiles/welle-cli.dir/src/welle-cli/jsonconvert.cpp.o
[ 11%] Building CXX object CMakeFiles/welle-cli.dir/src/welle-cli/webprogrammehandler.cpp.o
[ 13%] Building CXX object CMakeFiles/welle-cli.dir/src/welle-cli/tests.cpp.o
[ 15%] Building CXX object CMakeFiles/welle-cli.dir/src/backend/dab-audio.cpp.o
[ 18%] Building CXX object CMakeFiles/welle-cli.dir/src/backend/decoder_adapter.cpp.o
[ 20%] Building CXX object CMakeFiles/welle-cli.dir/src/backend/dab_decoder.cpp.o
[ 22%] Building CXX object CMakeFiles/welle-cli.dir/src/backend/dabplus_decoder.cpp.o
[ 25%] Building CXX object CMakeFiles/welle-cli.dir/src/backend/charsets.cpp.o
[ 27%] Building CXX object CMakeFiles/welle-cli.dir/src/backend/dab-constants.cpp.o
[ 29%] Building CXX object CMakeFiles/welle-cli.dir/src/backend/mot_manager.cpp.o
[ 31%] Building CXX object CMakeFiles/welle-cli.dir/src/backend/pad_decoder.cpp.o
[ 34%] Building CXX object CMakeFiles/welle-cli.dir/src/backend/eep-protection.cpp.o
[ 36%] Building CXX object CMakeFiles/welle-cli.dir/src/backend/fib-processor.cpp.o
/usr/src/welle.io/src/backend/fib-processor.cpp: In member function ‘int16_t FIBProcessor::HandleFIG0Extension8(u              int8_t*, int16_t, uint8_t)’:
/usr/src/welle.io/src/backend/fib-processor.cpp:459:17: warning: unused variable ‘SCid’ [-Wunused-variable]
 459 |         int16_t SCid = getBits(d, lOffset + 4, 12);
     |                 ^~~~
/usr/src/welle.io/src/backend/fib-processor.cpp:466:17: warning: unused variable ‘SubChId’ [-Wunused-variable]
 466 |         int16_t SubChId = getBits_6(d, lOffset + 4);
     |                 ^~~~~~~
[ 38%] Building CXX object CMakeFiles/welle-cli.dir/src/backend/fic-handler.cpp.o
[ 40%] Building CXX object CMakeFiles/welle-cli.dir/src/backend/msc-handler.cpp.o
[ 43%] Building CXX object CMakeFiles/welle-cli.dir/src/backend/freq-interleaver.cpp.o
[ 45%] Building CXX object CMakeFiles/welle-cli.dir/src/backend/ofdm-decoder.cpp.o
[ 47%] Building CXX object CMakeFiles/welle-cli.dir/src/backend/ofdm-processor.cpp.o
[ 50%] Building CXX object CMakeFiles/welle-cli.dir/src/backend/phasereference.cpp.o
[ 52%] Building CXX object CMakeFiles/welle-cli.dir/src/backend/phasetable.cpp.o
[ 54%] Building CXX object CMakeFiles/welle-cli.dir/src/backend/tii-decoder.cpp.o
[ 56%] Building CXX object CMakeFiles/welle-cli.dir/src/backend/protTables.cpp.o
[ 59%] Building CXX object CMakeFiles/welle-cli.dir/src/backend/radio-receiver.cpp.o
[ 61%] Building CXX object CMakeFiles/welle-cli.dir/src/backend/tools.cpp.o
[ 63%] Building CXX object CMakeFiles/welle-cli.dir/src/backend/uep-protection.cpp.o
[ 65%] Building CXX object CMakeFiles/welle-cli.dir/src/backend/viterbi.cpp.o
[ 68%] Building CXX object CMakeFiles/welle-cli.dir/src/various/Socket.cpp.o
[ 70%] Building CXX object CMakeFiles/welle-cli.dir/src/various/Xtan2.cpp.o
[ 72%] Building CXX object CMakeFiles/welle-cli.dir/src/various/channels.cpp.o
[ 75%] Building CXX object CMakeFiles/welle-cli.dir/src/various/fft.cpp.o
[ 77%] Building CXX object CMakeFiles/welle-cli.dir/src/various/profiling.cpp.o
[ 79%] Building C object CMakeFiles/welle-cli.dir/src/various/wavfile.c.o
[ 81%] Building C object CMakeFiles/welle-cli.dir/src/libs/fec/decode_rs_char.c.o
[ 84%] Building C object CMakeFiles/welle-cli.dir/src/libs/fec/encode_rs_char.c.o
[ 86%] Building C object CMakeFiles/welle-cli.dir/src/libs/fec/init_rs_char.c.o
[ 88%] Building CXX object CMakeFiles/welle-cli.dir/src/input/input_factory.cpp.o
[ 90%] Building CXX object CMakeFiles/welle-cli.dir/src/input/null_device.cpp.o
[ 93%] Building CXX object CMakeFiles/welle-cli.dir/src/input/raw_file.cpp.o
[ 95%] Building CXX object CMakeFiles/welle-cli.dir/src/input/rtl_tcp.cpp.o
/usr/src/welle.io/src/input/rtl_tcp.cpp: In member function ‘void CRTL_TCP_Client::networkBufferCopy()’:
/usr/src/welle.io/src/input/rtl_tcp.cpp:502:19: warning: unused variable ‘bufferFill’ [-Wunused-variable]
 502 |             float bufferFill = (float) sampleNetworkBuffer.GetRingBufferReadAvailable() / sampleNetworkBu              ffer.GetBufferSize() * 100;
     |                   ^~~~~~~~~~
[ 97%] Building CXX object CMakeFiles/welle-cli.dir/src/input/rtl_sdr.cpp.o
[100%] Linking CXX executable welle-cli
[100%] Built target welle-cli



The last point to be solved is how to launch during the boot the welle-cli command to have the RTL-SDR tuner ready to decode ?


Hi Alain,
the easyest way to automatically launch the "DAB Server", in my opinion, is to create a service. please find below the procedure to follow to create it and make it running.

Create the service:

Code:
sudo nano /etc/systemd/system/rtl_DAB.service
 
insert the following code in it:

Code:
[Unit]
Description=welle.io Server, turns local broadcast DAB stations into online radio $
After=network.target

[Service]
Type=simple
WorkingDirectory=/usr/src/welle.io/build
ExecStart=/usr/src/welle.io/build/welle-cli -T -w 7979

[Install]
WantedBy=default.target
save and close (ctrl-O, ctrl-X)
Then execute the next commands to make it running:
Code:
sudo systemctl daemon-reload
sudo systemctl enable rtl_DAB.service
sudo systemctl start rtl_DAB.service
At this point reboot the system and try to listen a DAb Radio (Chante France in your case).

Further more I have created for you a .zip file (please find it at this LINK) to listen all the current stations you should tune in your area.
the following procedure will add 52 stations at the moOde radio menu:
Code:
Code:
cd /home/pi
mkdir StationManager
cd StationManager
sudo cp /var/www/util/station_manager.py ./

Copy the .zip (please note that the name of the file can be as you prefer) in the StationManager directory (I normaly use winscp) and then import the stations:
Code:
Code:
cd /home/pi/StationManager
sudo python3 station_manager.py --scope other --import moOde_DAB_FR_Toulon-2024_02_21.zip

I suggest to reboot the system before listen to the new imported stations.
Best regards,
Francesco
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: