Jump to content


Photo

DAB radio reception


  • Please log in to reply
394 replies to this topic

Re: DAB radio reception #381 athoik

  • PLi® Core member
  • 8,395 posts

+321
Excellent

Posted 24 May 2020 - 19:04

I am aware of the "finetune" when you are switching frequency, but that's something that original author might improve properly.

 

I removed the "retry" since it didn't work. Once channel change occured, it will sleep for 2 seconds (instead of 20 that it was before).

 

So we might need to "retry" on same channel.

diff --git a/src/welle-cli/webradiointerface.cpp b/src/welle-cli/webradiointerface.cpp
index 1372b94..9e9818b 100644
--- a/src/welle-cli/webradiointerface.cpp
+++ b/src/welle-cli/webradiointerface.cpp
@@ -439,10 +439,10 @@ bool WebRadioInterface::dispatch_client(Socket&& client)
     else {
         if (req.is_get) {
             if (req.url == "/") {
-                success = send_file(s, "index.html", http_contenttype_html);
+                success = send_file(s, "/usr/share/welle-io/html/index.html", http_contenttype_html);
             }
             else if (req.url == "/index.js") {
-                success = send_file(s, "index.js", http_contenttype_js);
+                success = send_file(s, "/usr/share/welle-io/html/index.js", http_contenttype_js);
             }
             else if (req.url == "/mux.json") {
                 success = send_mux_json(s);
@@ -474,9 +474,29 @@ bool WebRadioInterface::dispatch_client(Socket&& client)
                 const regex regex_slide(R"(^[/]slide[/]([^ ]+))");
                 std::smatch match_slide;

+                const regex regex_tune_mp3(R"(^[/]mp3[/]([56789][A-D]|1[123][A-D]|13[EF]|L[A-P])[/]([^ ]+))");
                 const regex regex_mp3(R"(^[/]mp3[/]([^ ]+))");
                 std::smatch match_mp3;
-                if (regex_search(req.url, match_mp3, regex_mp3)) {
+                if (regex_search(req.url, match_mp3, regex_tune_mp3)) {
+                    cerr << "GET channel: " << match_mp3[1] << endl;
+                    try {
+                        const auto freq = input.getFrequency();
+                        const auto chan = channels.getChannelForFrequency(freq);
+                        const auto newchan = match_mp3[1];
+                        if (newchan != chan) {
+                            retune(newchan);
+                            this_thread::sleep_for(chrono::seconds(2));
+                        }
+                        else {
+                            cerr << "Retune not required..." << endl;
+                        }
+                    }
+                    catch (const out_of_range& e) {
+                        cerr << "Failed to retune " << e.what() << endl;
+                    }
+                    success = send_mp3(s, match_mp3[2]);
+                }
+                else if (regex_search(req.url, match_mp3, regex_mp3)) {
                     success = send_mp3(s, match_mp3[1]);
                 }
                 else if (regex_search(req.url, match_slide, regex_slide)) {

In the meanwhile i did opened two issues on gihub: https://github.com/A...e.io/issues/559 and https://github.com/A...e.io/issues/560

 

If you just like to hear music, then it works great. If you like to zap on stations, that will be problematic every time you are moving on different channel.

Attached Files


Edited by athoik, 24 May 2020 - 19:05.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: DAB radio reception #382 jpuigs

  • Senior Member
  • 1,098 posts

+28
Good

Posted 24 May 2020 - 22:03

I've seen both GT issues.

 

The finetuning has to be done on starting program too.

 

If I start welle-cli -w 5238 -g -1, wait several seconds , and try a station, it doesn't work.

But if I start welle-cli with  a channel parameter, welle-cli -w 5238 -g -1 -c 8A , then when trying a fisrt station from this block 8A, it works from the beginning....

 

This new dab mode "welle-cli" is really useful because it's easy to stream audio, but if I want to listen on own Box I really prefer the SDGradio plugin, it has more data and it works fine.


Edited by jpuigs, 24 May 2020 - 22:12.

Enigma is getting old....

 

Spoiler

Re: DAB radio reception #383 littlesat

  • PLi® Core member
  • 53,153 posts

+616
Excellent

Posted 24 May 2020 - 22:10

That info stuff is work in prpgress

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: DAB radio reception #384 jpuigs

  • Senior Member
  • 1,098 posts

+28
Good

Posted 24 May 2020 - 22:26

Of course, we can't expect everything is done and working from the beginning.

It's a good job and sure it'll be better.


Enigma is getting old....

 

Spoiler

Re: DAB radio reception #385 jamesrobinson

  • New Member
  • 1 posts

0
Neutral

Posted 24 September 2020 - 17:51

Hello to everybody, It's my first post although I read this forum since some years ago.

I don't know where I read it, I don't find it, maybe it was in another forum, I 'm not sure of that.

I think I saw a mod of this plugin, which made possible to listen to DAB broadcasts using an rtl-tcp connection.

I even think I remember seeing screenshots on forum.

Can someone tell me if it was here? Where ?



Re: DAB radio reception #386 jpuigs

  • Senior Member
  • 1,098 posts

+28
Good

Posted 25 September 2020 - 19:09

I was the one who made some modifications to this plugin, to enable DAB reception without a usb stick in own box.

I enabled RTL-TCP mode and RAW filemode, as well as some minor modifications to existing plugin.

 

------------

- FM gain has now "auto" option added.

- Other bands automatic gain is working. Configuration was wrong, given parameter was wrong.
- DAB/DAB+ gain has now an individual setting (split from previous one called "Tuner gain for other bands and DAB") .
- 2 new DAB "modes" (selectable with toggle red key) : RTL-TCP and RAW. And if any of them is not enabled, it doesn't appear when changing modes on red key. So if you disable BOTH ( TCP and RAW) you have same plugin as current version, except for DAB gain new setting.
- RTL_TCP DAB mode has its own settings for ppm offset and gain value.
- It is a good option if you have (like me) two USB dongles (one in USB and other by RTL_TCP), and they are different and due to this they have different ppm offset values.
- Changed some minor things:
- - color function buttons are hidden, and only are shown when they are needed.
- - presets are hidden in RAW mode
- - presets are saved (config.plugins.SDG....) when radio playing is stopped. On current version, they are stored when closing plugin.

________

 

But there was a "problem".

These changes were "too advanced" and made the plugin not suitable for "not advanced users", so they decided not to include them.

(If you didnt enable new options, the plugin was exactly the same as previous version.....)

And that's all.

 

Here you have the link to were I published what you ask.:

https://www.satdream...ll=1#post137545

 

As you'll supose, I won't spend any minute more doing things that don't interest to anybody. I'll enjoy them myself.


Edited by jpuigs, 25 September 2020 - 19:14.

Enigma is getting old....

 

Spoiler

Re: DAB radio reception #387 Matrix10

  • Senior Member
  • 326 posts

+25
Good

Posted 13 June 2021 - 12:38

I haven't tested for a long time
Why the plugin sdgradio does not work on the PLI image.
No DAB + reception.
FM works.
With satdreamgr DAB+ works.

Edited by Matrix10, 13 June 2021 - 12:39.


Re: DAB radio reception #388 jpuigs

  • Senior Member
  • 1,098 posts

+28
Good

Posted 13 June 2021 - 19:22

If you look at SDG forum, the answer is: "Problem is on libfftwf, something is broken, disabling neon instructions seems to fix issue."

 

The same problem appeared when SDG switched to Neon V.8. , I said it more than one year ago.

 

https://www.satdream...ot-play-DAB-DAB

 

So, by disabling that instructions, Athoik fixed it


Enigma is getting old....

 

Spoiler

Re: DAB radio reception #389 Matrix10

  • Senior Member
  • 326 posts

+25
Good

Posted 13 June 2021 - 19:33

If you look at SDG forum, the answer is: "Problem is on libfftwf, something is broken, disabling neon instructions seems to fix issue."

 

The same problem appeared when SDG switched to Neon V.8. , I said it more than one year ago.

 

https://www.satdream...ot-play-DAB-DAB

 

So, by disabling that instructions, Athoik fixed it

 

Thanks

 

but

The whole discussion is very long.

Can you write the steps on how to fix this PLI image.
 
 disabling neon instructions seems to fix issue ???
 

Edited by Matrix10, 13 June 2021 - 19:34.


Re: DAB radio reception #390 jpuigs

  • Senior Member
  • 1,098 posts

+28
Good

Posted 13 June 2021 - 19:48

I don't know !

 

 

Athoik told me: (pag 2, post #12)
 

Please try an online update and let us know if dab also now works.

Problem is on libfftwf, something is broken, disabling neon instructions seems to fix issue.

 

 

 

... and that's what I did, update and problem was solved.


Enigma is getting old....

 

Spoiler

Re: DAB radio reception #391 Matrix10

  • Senior Member
  • 326 posts

+25
Good

Posted 13 June 2021 - 19:55

I don't know !

 

 

Athoik told me: (pag 2, post #12)
 

Please try an online update and let us know if dab also now works.

Problem is on libfftwf, something is broken, disabling neon instructions seems to fix issue.

 

 

 

... and that's what I did, update and problem was solved.

OK I have replaced 

I have replaced  libfftw3f.so.3.5.8 in PLI with one from satdreamgr in /usr/lib

 

OK works now


Edited by Frenske, 15 June 2021 - 08:29.
If you think you need to quote every reply, we prefer not doing this, don’t place your reply within that quote. I have seperated your reply from that quote to make the communication more clear to the members.


Re: DAB radio reception #392 Matrix10

  • Senior Member
  • 326 posts

+25
Good

Posted 13 June 2021 - 19:57

It now runs much more stable and faster than older SDG plugin versions.
In fact, it is very useful now.


Re: DAB radio reception #393 jpuigs

  • Senior Member
  • 1,098 posts

+28
Good

Posted 13 June 2021 - 21:23

:thumbs-up:


Enigma is getting old....

 

Spoiler

Re: DAB radio reception #394 Matrix10

  • Senior Member
  • 326 posts

+25
Good

Posted 14 June 2021 - 21:47

@athoik

 

I haven't tested my RTL-SDR on a receiver in a long time.
 
tested the SDR Plugin with Dab + with ultimo 4K  and it now works fantastically well.
Fast and stable.
Much better than before.
I recommend this DAB + option to everyone
for little money.
===================================================
welle-cli is very interesting 
provided that the following is possible
have the ability to scan
and get a list, in the bouquets of radio channels.
Of course, provided that everything then works from the radio list.

Attached Files


Edited by Matrix10, 14 June 2021 - 21:50.


Re: DAB radio reception #395 athoik

  • PLi® Core member
  • 8,395 posts

+321
Excellent

Posted 19 June 2021 - 19:19

I don't know !

 

 

Athoik told me: (pag 2, post #12)
 

Please try an online update and let us know if dab also now works.

Problem is on libfftwf, something is broken, disabling neon instructions seems to fix issue.

 

 

 

... and that's what I did, update and problem was solved.

That's how I did it.

 

cat fftw_%.bbappend
FULL_OPTIMIZATION = "-O3 -fexpensive-optimizations -fomit-frame-pointer -funroll-loops -ffast-math -pipe ${DEBUG_FLAGS}"
FFTW_NEON = ""
PR = "r3"

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users