Jump to content


Photo

DAB radio reception


  • Please log in to reply
412 replies to this topic

Re: DAB radio reception #381 athoik

  • PLi® Core member
  • 8,458 posts

+327
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,143 posts

+32
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
  • 57,166 posts

+698
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,143 posts

+32
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
  • 2 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,143 posts

+32
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
  • 339 posts

+27
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,143 posts

+32
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
  • 339 posts

+27
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,143 posts

+32
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
  • 339 posts

+27
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
  • 339 posts

+27
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,143 posts

+32
Good

Posted 13 June 2021 - 21:23

:thumbs-up:


Enigma is getting old....

 

Spoiler

Re: DAB radio reception #394 Matrix10

  • Senior Member
  • 339 posts

+27
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,458 posts

+327
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

Re: DAB radio reception #396 EnoSat

  • Senior Member
  • 197 posts

+4
Neutral

Posted 27 March 2022 - 20:02

Hi!
 
Is it possible to receive DAB radios from the astra satellite by some means?
(23.5E 12641V + 12645V)

23.5E no, but others should no longer be a problem to receive on enigma2 boxes
etc:
0ddeab05:00fa:00c8
    s 11013000:35295000:1:2:-50:2:0:1:2:0:2:11:131070:1
/

...

0001:0ddeab05:00fa:00c8:1:0:0
Rai DAB+
p:Rai,c:1503e8,f:5
hd51 login: root
Last login: Thu Mar 10 21:20:37 CET 2022 on pts/0
root@hd51:~# curl -s http://127.0.0.1:8001/1:0:1:1:FA:C8:DDEAB05:0:0:0: | ts2na -p 1000 -s 0 | na2ni | ni2out --list
WARN:  Forward error correction (FEC) disabled (NOT COMPILED)
INFO:  Using pid: 0x03e8 (1000)
INFO:  E1 Sync found at bit: 128, inverted: no
DEBUG: seek: B:16, b:0
DEBUG: pre-readed output 15 frames (15 bytes left):
DEBUG: MULTIFRAME FILLING: 207
INFO:  ETI Sync found at pos: 6
INFO:  ETI Multiframe sync found at blockId: 7
.
Ensemble: DAB+ RAI         (0x5001)
****************************************************************************
 #  Programme Label   Serv.Id.  P/S SubCh Capac.Units   Prot.   Bitrate Mode
****************************************************************************
 1: Rai Radio1        (0x5201)  Prm   1   72 (  0- 71)  eep-3a  96 Kb/s DAB+
 2: Rai Radio2        (0x5202)  Prm   2   72 ( 72-143)  eep-3a  96 Kb/s DAB+
 3: Rai Radio3        (0x5203)  Prm   3   72 (144-215)  eep-3a  96 Kb/s DAB+
 4: Rai GrParlamento  (0x5206)  Prm   4   36 (216-251)  eep-3a  48 Kb/s DAB+
 5: Rai Isoradio      (0x5209)  Prm   5   48 (252-299)  eep-3a  64 Kb/s DAB+
 6: RaiTuttaItaliana  (0x5207)  Prm   6   72 (300-371)  eep-3a  96 Kb/s DAB+
 7: Rai R3 Classica   (0x5205)  Prm   7   72 (372-443)  eep-3a  96 Kb/s DAB+
 8: Rai R Techete'    (0x52f1)  Prm  10   36 (492-527)  eep-3a  48 Kb/s DAB+
 9: Rai Radio Live    (0x52f2)  Prm  11   36 (528-563)  eep-3a  48 Kb/s DAB+
10: Rai Radio Kids    (0x52f3)  Prm  12   48 (564-611)  eep-3a  64 Kb/s DAB+
11: Rai Radio1 Sport  (0x520f)  Prm   8   48 (444-491)  eep-3a  64 Kb/s DAB+
12: Rai Radio2 Indie  (0x520a)  Prm  13   48 (612-659)  eep-3a  64 Kb/s DAB+
13: CUSANO ITALIA     (0x5226)  Prm  14   36 (660-695)  eep-3a  48 Kb/s DAB+
Free CUs on this multiplex = 168
root@hd51:~#

Edited by EnoSat, 27 March 2022 - 20:04.


Re: DAB radio reception #397 luisteraar

  • Senior Member
  • 2,480 posts

+24
Neutral

Posted 30 May 2022 - 10:01

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

The fix is now in openpli-develop

SDGradio works now fine on openpli on all boxes except h9se

There is a fix for h9se by routing audio via alsa.

Work in progress am/fm/ssb tuner via rtl_tcp problem now slow retune on

frequencie change.



Re: DAB radio reception #398 jpuigs

  • Senior Member
  • 1,143 posts

+32
Good

Posted 11 June 2022 - 11:06

I've seen in dutch  language subforum ( [NL] Gebruikersondersteuning )  that somebody is tryint to improve DAB+ reception using RTL-SDR devices,

I'm the one who made plugin changes to add RTL-TCP reception and RAW I/Q file reading functionallity, some years ago in satdreamGR forum, but I stopped it completely because i was told that those changes (adding RTL_TCP and file RAW) were too advanced to change sdr radio plugin.

 

As you are talking in dutch subforum I won't write anyhting because I don't know dutch, and I won't start translate everything.....

The main problem is that everything is done with a commandline option, and that makes it more difficult to add things.

...


Enigma is getting old....

 

Spoiler

Re: DAB radio reception #399 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 11 June 2022 - 18:34

Hi guys,

 

Please feel free to clone, rewrite, embed DAB/DAB+ in enigma2 or do what ever you like in your fork.

 

I am not preventing somebody to create a DAB/DAB+ in enigma2, i am not restricting somebody to create DAB/DAB+.

 

Generally do what ever you like, i would be glad to test a new plugin once available on enigma2.

 

Good luck guys.


Edited by athoik, 11 June 2022 - 18:35.

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 #400 littlesat

  • PLi® Core member
  • 57,166 posts

+698
Excellent

Posted 11 June 2022 - 19:15

It would just be a nice thing when something was working to get the radio’s in the standard bouquets list…. Most optimal is totally integrate it… but when it could be done via a url would also be nice.

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



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users