If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
https://github.com/hradio/omri-usb is a C library and JNI android library which is used by DAB-Z as middleware, I'm hoping that porting that to the pi isn't too difficult
Any success since then?
Thanks for any pointer to plain Linux SW to operate those USB DAB+ dongles (not SDR) that ship with Android app.
Switching on mobile hotspot every time I get in the car, or buying a GSM modem and separate sim card account don't seem like great options to me (or maybe I just like a challenge...).
I was thinking more about remote SIMs where the car "borrows" the phone SIM (i.e. no SIM in car) using Bluetooth and then the car can also provide a wifi hotspot within the car.
https://github.com/hradio/omri-usb is a C library and JNI android library which is used by DAB-Z as middleware, I'm hoping that porting that to the pi isn't too difficult, all the java stuff appears just to be wrapper code to the C functions.
OK - good there is open source application for dongle you have.
I think you should develop & test on a full Raspbian system - then recompile for PCP.
To interface with LMS - I think you should be aiming for a command line which can take parameters to tune
(i) if no audio stream then stream audio to STDOUT and feed into LMS.
(ii) if standard USB PCM audio stream - use arecord to capture and feed into LMS.
(iii) Leave metadata until tuning ans treaming audio is sorted. Metadata can be handled in many ways.
If there is a simple PCM audio interface then you'll be able to use "arecord" to test and check.
Check the USB device to see if there is a audio interface - use something like "lsusb -v -d 077d:627a"
Look in the output for "audio" interface that is "streaming". It'll also give the format such as PCM but possibly audio from DABmay not be decoded and may still be in AAC. The lsusb output will say what is supported.
Truncated output for a RadioShark USB which has AM/FM audio on audio streaming but tuning and LED control is through a HID.
While I can see the logic of in-car - just I find it hard to believe there are roads with a DAB+ signal and not a mobile one. It's just a word of caution as I think DAB+ may be hard work on a Raspberry Pi.
Rather than the undocumented USB adaptor you've got you may have better luck with a RTL-SDR (adaptors are quite cheap 10-20 £/$/€) as there is more open s/w available (e.g. https://github.com/AlbrechtL/welle.io ) but the downside as it is SDR (it can do any RF not just DAB) but it requires a good CPU but I believe it is ok on Pi3.
Switching on mobile hotspot every time I get in the car, or buying a GSM modem and separate sim card account don't seem like great options to me (or maybe I just like a challenge...).
https://github.com/hradio/omri-usb is a C library and JNI android library which is used by DAB-Z as middleware, I'm hoping that porting that to the pi isn't too difficult, all the java stuff appears just to be wrapper code to the C functions.
I'm building a piCorePlayer based in car entertainment platform, DAB radio would seem to be the right choice for in car, but happy to be corrected. I don't want to rely purely on a mobile wifi hotspot/on board music for my radio while driving.
I can see the device under /sys/bus/usb... and it identifies correctly under "description", has the control end point... I can't where to hook the audio from though. It's all just an idea at the minute.
While I can see the logic of in-car - just I find it hard to believe there are roads with a DAB+ signal and not a mobile one. It's just a word of caution as I think DAB+ may be hard work on a Raspberry Pi.
Rather than the undocumented USB adaptor you've got you may have better luck with a RTL-SDR (adaptors are quite cheap 10-20 £/$/€) as there is more open s/w available (e.g. https://github.com/AlbrechtL/welle.io ) but the downside as it is SDR (it can do any RF not just DAB) but it requires a good CPU but I believe it is ok on Pi3.
I'm building a piCorePlayer based in car entertainment platform, DAB radio would seem to be the right choice for in car, but happy to be corrected. I don't want to rely purely on a mobile wifi hotspot/on board music for my radio while driving.
I can see the device under /sys/bus/usb... and it identifies correctly under "description", has the control end point... I can't where to hook the audio from though. It's all just an idea at the minute.
A few years ago, I did a plugin for RadioShark (an AM/FM dongle) and it had no metadata.
A USB device may enumerate but does it provides access to the device controls.
For DAB+ support - you'll need access to an interface that provides (i) controls to tune (and maybe scan) (ii) audio and (iii) metadata
The standard USB may only provide audio- access to the other control may require a special support application. To work on pcp - this support application is best written in C and C++ (better still Perl but highly unlikely).
The basic question is why do you want to implement DAB+ ?
DAB+ is losing support because streaming radio over internet (whether wifi or mobile) is more attractive to broadcasters. In Ireland the DAB+ networks have shutdown because of the lack of growth/demand.
I am interested in building in support for DAB+ dongles to piCorePlayer. I have looked at DAB-Z running on Pi with android omnirom and can get the dongle to tune in to DAB radio, so the hardware all works.
I'm happy to do some of the coding and testing, but I would be interested is some assistance if anyone has any knowledge that could help implement this capability.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Leave a comment: