Jump to content


Photo

DAB+ with RTL-SDR stick


  • Please log in to reply
87 replies to this topic

Re: DAB+ with RTL-SDR stick #21 Mouneer

  • Member
  • 13 posts

0
Neutral

Posted 11 June 2016 - 17:42

Thanks @mfaraj57. I tried you code but with no luck. After adding your code, the image become not loaded at all.
Back to my code, my problem is that method DecodePicture is called only at the first time the image is being loaded. If I try to update the image with method editMyImage I expect the DecodePicture to be called but this doesn't happen. So thanks again and your help is extremely appreciated.


Edited by Mouneer, 11 June 2016 - 17:43.


Re: DAB+ with RTL-SDR stick #22 mx3L

  • Senior Member
  • 616 posts

+79
Good

Posted 11 June 2016 - 17:57

Hi,

Why are you adding again "self.PicLoad.PictureData.get().append(self.DecodePicture)" in editMyImage, the same callback as in __init__? You should instead call ShowPicture to start decoding which will trigger self.DecodePicture once done:

    def editMyImage(self, path):
        downloaded_image = getPicfromUrl(self.session, path, "/tmp/myPic.tmp")
        picPath = downloaded_image.path
        self.picPath = picPath
        self.ShowPicture()


Re: DAB+ with RTL-SDR stick #23 Mouneer

  • Member
  • 13 posts

0
Neutral

Posted 11 June 2016 - 18:03

Thanks @mx3L .. it works like a charm! Thanks a lot all of you.



Re: DAB+ with RTL-SDR stick #24 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 10 October 2016 - 22:56

Hello,

I started to learn Enigma2 and found that out there are so few informations, I thought that will be very good documented, but that was not the case.
So far I was able to dynamically change a label :) but I want to do more, for example to change the button's png dynamically during the plugin execution based on dynamic events, to hide the window border and title bar at window/screen creation, to display two or more windows/screens at once, etc.

Could be someone here be so kind to give me right directions or maybe some documentation to read?

I was able to stop current service when my plugin starts and restart current service when the plugin exit, but could not find how to pause or start timeshift on the current service and play again where was at exit.

I am working on a RTL-SDR radio plugin/interface, i have successfully compiled all required libraries and from command line the RTL-SDR radio is working well, I wonder how complicated could be on your side to add meta-sdr to your repo/nightly builds, for anybody interested to have access on those RTL-SDR libraries along OpenPli package management.

I can put a packages feed online somewhere publicly, but will not have enough time to do updates along your updates on those packages.


Many thanks,


Marc

Hi,

I was able to compile rtl-sdr too! I used only rtl_tcp and SDR# as a client.

Have you done any progress on your plugin?

It would be nice not to reinvent the wheel.

Thanks!

PS. Found your site http://ms.serdit.ro/ but no plugin published yet.

Edited by athoik, 10 October 2016 - 23:10.

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+ with RTL-SDR stick #25 serdeliuk

  • Senior Member
  • 315 posts

+18
Neutral

Posted 11 October 2016 - 08:31

Hello,

 

Thanks for your interest, unfortunately i didn't worked much on this project due to missing time :(

My FM-Radio interface is almost done it is installed as a plugin, it's open when red button is pressed and close on same button, numbers buttons are used as presets/memory also, during startup "red presses" do a code reload without require E2 restart for easy development, but does not have yet implemented auto-scan, RDS, power meter, etc.

 

Here is a screenshot, click to view the large size..

fm_radio_ui_small.jpg

 

I will pack all files and provide a link for download, but not sure when i will have time, my solo4k and all files are currently in other town.

I will update here when the package will be available.

 

Best regards,

 

 

Marc


init 2 && init 3


Re: DAB+ with RTL-SDR stick #26 serdeliuk

  • Senior Member
  • 315 posts

+18
Neutral

Posted 11 October 2016 - 09:32

Hi athoik,

 

It seems that you are in luck today :) i found on my notebook an early stage of the UI and uploaded here http://ms.serdit.ro/...early-stage.zip

If you have time to continue this project and have any progress just let us know, i will try to continue on it but not sure when i will have time.

 

 

Have fun,

 

 

M


init 2 && init 3


Re: DAB+ with RTL-SDR stick #27 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 11 October 2016 - 19:53

Thanks for sharing your work in progress serdeliuk, bus as you said still in early stage.

I am sure that Enigma2 Radio with librtlsdr is possible, most of the work is done by the library.

I saw that rtl_fm has the option to output into wav, if that wav can be played with GStreamer then it will make things easier, without required the sox/play with alsa.

Also I saw the following command with ffmpeg.

rtl_fm -f 88700000 -M wbfm - | ffmpeg -f s16le -ar 17000 -ac 2 -i - wbfm.wav
Changing this to GStreamer should use directly the dvbaudiosink.

rtl_fm -f 88700000 -M wbfm - | gst-launch-1.0 filesrc location=/dev/stdin ! audio/x-raw,format=S16LE,channels=2,rate=17000 ! dvbaudiosink
RTL-SDR is great! Listening FM Radio from my Enigma2 receiver is then new must :D
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+ with RTL-SDR stick #28 serdeliuk

  • Senior Member
  • 315 posts

+18
Neutral

Posted 11 October 2016 - 20:38

You're welcome, indeed, early :) i was able to play FM Radio with aplay on my solo4k.

Also on other version of the UI i have implemented presets for radio stations "without scan" which execute the rtl_fm command.

 

rtl_fm -f 96100000 -M wbfm -s 200000 -r 48000 - | aplay -r 48k -f S16_LE


init 2 && init 3


Re: DAB+ with RTL-SDR stick #29 ostende

  • Senior Member
  • 69 posts

0
Neutral

Posted 11 October 2016 - 20:49

big and great job it will be the best if that can work with mixlr than we can mix some sport chanel on the right audio speaker 

till now we can do it with audio-pip but still not so attractive



Re: DAB+ with RTL-SDR stick #30 Matrix10

  • Senior Member
  • 338 posts

+27
Good

Posted 19 October 2016 - 20:21

Very interesting topic for  radio amateurs
especially if it is possible to realize reception on HF bands (below 30 MHz)
with RTL-SDR receiver / dongle .

I'm sure there are Satellite receivers users  who are interested.

 



Re: DAB+ with RTL-SDR stick #31 nightflyer

  • Member
  • 14 posts

+2
Neutral

Posted 31 October 2016 - 14:32

Hi,

I was able to compile rtl-sdr too! I used only rtl_tcp and SDR# as a client.

Have you done any progress on your plugin?

It would be nice not to reinvent the wheel.

Thanks!

PS. Found your site http://ms.serdit.ro/ but no plugin published yet.

 

 

Can you please share a bitbake recipe for rtl-sdr? I'm also interesting in listening to FM (and DAB!) with my enigma2 receiver.

 

Thanks!



Re: DAB+ with RTL-SDR stick #32 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 31 October 2016 - 14:44

I used this one:

$ cat rtl-sdr.bb
SUMMARY = "Software to turn the RTL2832U into an SDR"
DESCRIPTION = "DVB-T dongles based on the Realtek RTL2832U can be used as a cheap SDR, since the chip allows transferring the raw I/Q samples to the host, which is officially used for DAB/DAB+/FM demodulation"
MAINTAINER = "http://osmocom.org/projects/sdr"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"

inherit gitpkgv

PV = "1.0+git${SRCPV}"
PKGV = "1.0+git${GITPKGV}"
PR = "r0"

SRC_URI = "git://git.osmocom.org/rtl-sdr.git;protocol=git"
SRCREV = "${AUTOREV}"

S = "${WORKDIR}/git"

DEPENDS = "libusb1"

inherit cmake

Although later notice that rtl-srd.bb exists also here: https://github.com/balister/meta-sdr (https://github.com/balister/meta-sdr/blob/master/recipes-support/rtlsdr/rtl-sdr_git.bb)

 

The above rtl-sdr has also the extra configuration EXTRA_OECONF = "--enable-driver-detach"  that most probably unloads the kernel modules?

 

Anyway in my case i didn't install kernel modules in order to use tuner only from rtl-sdr.

 

Winter is coming and I hope to have time to play with that ;)

 

Who knows, maybe listening (real) radio with Enigma2 will be possible one day ;)


Edited by athoik, 31 October 2016 - 14:45.

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+ with RTL-SDR stick #33 serdeliuk

  • Senior Member
  • 315 posts

+18
Neutral

Posted 31 October 2016 - 23:21

I have used the one from OpenEmbedded, you can find a lot of interesting recipes there:) https://layers.opene...layer/meta-sdr/ the rtl-sdr from there is the one mentioned above maintained by Balister.

 

I wonder if the internal/onboard tuner of Solo4k can be used as a SDR device :) will be nice


init 2 && init 3


Re: DAB+ with RTL-SDR stick #34 nightflyer

  • Member
  • 14 posts

+2
Neutral

Posted 2 November 2016 - 10:29

Thank you both. I'm now working on porting eti-tools and dabtools (and maybe etisnoop). Thus you will be able to listen to DAB radios and DAB satellite feeds directly on a STB.



Re: DAB+ with RTL-SDR stick #35 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 17 November 2016 - 23:36

Hi,


I can hear something, not real radio yet

Here is the command that works using GStreamer.
 
root@osmega:~# rtl_fm -f 92.6M -M wbfm - | gst-launch-1.0 fdsrc ! audio/x-raw, format=S16LE, channels=2, layout=interleaved, rate=17000  ! dvbaudiosink
Found 1 device(s):
  0:  astrometadvbt2, dvbt2, SN:

Using device 0: Astrometa DVB-T/DVB-T2
Setting pipeline to PAUSED ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Found Rafael Micro R828D tuner
Tuner gain set to automatic.
Tuned to 92871000 Hz.
Oversampling input by: 6x.
Oversampling output by: 1x.
Buffer size: 8.03ms
Exact sample rate is: 1020000.026345 Hz
Sampling at 1020000 S/s.
Output at 170000 Hz.
....
Here is a sample as well.
 
root@osmega:~# rtl_fm -f 92.6M -M wbfm - > /tmp/92.6.pcm
Found 1 device(s):
  0:  astrometadvbt2, dvbt2, SN:

Using device 0: Astrometa DVB-T/DVB-T2
Found Rafael Micro R828D tuner
Tuner gain set to automatic.
Tuned to 92871000 Hz.
Oversampling input by: 6x.
Oversampling output by: 1x.
Buffer size: 8.03ms
Exact sample rate is: 1020000.026345 Hz
Sampling at 1020000 S/s.
Output at 170000 Hz.
^CSignal caught, exiting!

User cancel, exiting...
Attached File  92.6.pcm.txt   3.77MB   3 downloads


PS. Above sample using sox command plays fine on my computer :D
 
sox -b 16 -c 2 -r 17000 -e signed-integer 92.6.raw 92.6.wav

Edited by athoik, 17 November 2016 - 23:45.

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+ with RTL-SDR stick #36 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 18 November 2016 - 06:43

Hi,

The correct command to play radio on Enigma2 is the following.

rtl_fm -f 92.6M -M wbfm - | gst-launch-1.0 fdsrc ! audio/x-raw, format=S16LE, channels=1, layout=interleaved, rate=32000  ! dvbaudiosink
Thanks to a friend that always help ;)

Next a plugin that plays radio using above command with parameter the frequency.
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+ with RTL-SDR stick #37 dax

  • Senior Member
  • 228 posts

0
Neutral

Posted 21 November 2016 - 09:56

This mean that maybe one day will be able to use an e2 box as dvb-t/t2/dab/fm receveir?

I have an astrometa mn88472, is it possible with this device (if vu+ will update the kernel)? On linux pc it works...



Re: DAB+ with RTL-SDR stick #38 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 21 November 2016 - 10:54

Already there :D

 

We have sdgradio v1.0 on experimental SatDreamGr feeds, within the following days we are going to announce the plugin on our page with instructions and upload sources on Github for other teams.

 

Attached File  shot1.jpg   56.36KB   10 downloads

 

For rtl-sdr there is no need for additional driver (actually in order to work you need no kernel drivers installed for rtl dvb-t).


Edited by athoik, 21 November 2016 - 10:54.

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+ with RTL-SDR stick #39 dax

  • Senior Member
  • 228 posts

0
Neutral

Posted 21 November 2016 - 14:43

Already there :D

 

We have sdgradio v1.0 on experimental SatDreamGr feeds, within the following days we are going to announce the plugin on our page with instructions and upload sources on Github for other teams.

 

attachicon.gifshot1.jpg

 

For rtl-sdr there is no need for additional driver (actually in order to work you need no kernel drivers installed for rtl dvb-t).

Great! Could you also implement rds?

So only with the normal tuner (of my solo2) i can listen fm radio and, in the future, maybe dab?



Re: DAB+ with RTL-SDR stick #40 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 21 November 2016 - 17:25

Currently we are making use of rtl_fm command and as far as I know rtl_fm doesn't support rds decoding.

The use of rtl-sdr is currently available only using RTL usb sticks, but you never know what future brings.
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


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users