-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get Cariboulite working on DragonOS #171
Comments
Your comment inspired me to take another pass at getting the cariboulite stuff working with DragonOS. I rebuild the cariboulite stuff and it still fail. I updated and upgraded the system - You must do this or it likely will not work - This took several hours for my system. sudo apt-get update I destroyed the old version - rm -rf projects I down loaded it again. mkdir ~/projects Then you need to add a line of code to "projects/cariboulite/software/libcariboulite/src/CaribouLite.hpp" after the line #include functional You can then do the install - ./install At the end of the install, I got messages about changes need in "/boot/firmware/config.txt" so I did them. I then rebooted, the system. After the system came up, running gqrx crashed - sudo gqrx Running CubicSDR - sudo CubicSDR worked but had a rumble in the sound. Running SdrGlut worked fine, after right clicking "SDR Dialog" and selecting "I/Q Swap" and turning the Agc on and off and on - cd ~/Desktop |
Would any of this work any better if I didn't use dragon OS and just use RaspbianOS? Is there in fact a system where the Cariboulite will work with these various SDR tools flawlessly? |
You still have to make the change to the source and then it works Ok on 64 bit Wormwood (this is the recommended version) (SdrGlut and CubicSDR work with the "I/Q" swap turned on - do not remember what gqrx did ?) and they do not work on Bullseye 64 bit. You do not need to run them as super user on wormwood, |
You mean bookworm?
…On Fri, Jan 5, 2024 at 12:24 PM righthalfplane ***@***.***> wrote:
You still have to make the change to the source and then it works Ok on 64
bit wormwood (this is the recommended version) and it does not work on
Bullseye 64 bit.
—
Reply to this email directly, view it on GitHub
<#171 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABLDPSHQGCXQ2LGBFNH2GZDYNAZLPAVCNFSM6AAAAABBKZI6RGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZZGAYTONBRGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Yes, bookworm - I had it twisted in my notes. |
I tried installing carboulite on both DragonOS v34 and v32 with no success, it fails to recognise the hat |
I finally got DragonOS to see the Cariboulite and I am able to run SoapySDRServer -bind as well as CubicSDR on the RPi and see an FM Broadcast station. However, I tried plugging earbuds into the Pi but hear no audio. I ran PulseAudio and can see the CubicSDR output being sent to Built-in Audio Stereo, but how to hear it? I also was able to connect from a Mac to the server but the audio I got was unintelligible. |
Just tried for the umpteenth time and now I get sound from the earbuds but it is essentially just noise (worse than Mac). |
Can you add a few more details on how you get the software to work? |
I'd like to prove to myself that the Cariboulite can at least receive an FM station. Which app would be easiest to demonstrate this? |
SDR++ (via server) or CubicSDR |
I had no luck actually hearing the FM station with CubicSDR though the waterfall suggested it was working. I will try SDR++ but I have the feeling that the RPi3B is too slow to be usable for this job. |
@OxMarco I basically followed: https://www.youtube.com/watch?v=CO4Sg5iWb3k |
SDR++ gives this error: |
Dos anyone know if the Cariboulite with DragonOS works on the RPi 5 or is it best to use the RPi 4? |
It says you are missing OpenGL, freeglut is built on top of OpenGL so a - sudo apt-get update should get them both. If you are still not running, you likely need to destroy the Cariboulite stuff and reinstall it - that rechecks for changes in the configuration file that may have been missed. A RPI 4 works with Cariboulite on DragonOS. |
Thanks. My raspberrypi 3B seems to be too slow to do anything useful
although I don’t know that it explains why the audio from CubicSDR is
unintelligible. Will the RPI 5 work as an alternative to the RPI 4 (it
costs about the same these days) Or does that complicate the installation
further?
…On Thu, Jan 25, 2024 at 3:28 PM righthalfplane ***@***.***> wrote:
It says you are missing OpenGL, freeglut is built on top of OpenGL so a -
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install freeglut3-dev
should get them both.
If you are still not running, you likely need to destroy the Cariboulite
stuff and reinstall it - that rechecks for changes in the configuration
file that may have been missed.
A RPI 4 works with Cariboulite on DragonOS.
—
Reply to this email directly, view it on GitHub
<#171 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABLDPSFBVHSZH2H3D6GR45LYQK56NAVCNFSM6AAAAABBKZI6RGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJQHE2DSMBSGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Unintelligible audio is symptom of not being able to decode the audio fast enough. SdrGlut is some what faster than CubicSDR, may be it will work. You can copy the install instructions from- https://groups.google.com/g/sdrglut-users/c/ZRednl7cf3c I do not think SOAPY_SDR_ROOT needs to be set on DargonOS. You can kick in some additional threads - if you have them ? |
tried building sdrglut and this: |
you missed the - sudo apt-get install libalut-dev |
@ifuchs you need to swap i/q or invert i/q. sdr++ and cubicsdr work for me as long as you invert i/q. never tried glut. then you will hear normal audio. use a pi 4. pi 5 not working as it looks like the gpiomem interface was changed so it will require an updated kernel module to support it, afaik. |
In SdrGlut right click and select "SDR Dialog..."->"I/Q Swap" to turn on the swap |
I seem to be regressing. Now I can't start CubicSDR. This ran before some updates that were done for SDRGlut. Perhaps I should reimage the OS and start all over. $ CubicSDR Audio Device #0 Monitor of Built-in Audio Stereo Audio Device #1 Built-in Audio Stereo Audio Device #2 Built-in Audio Digital Stereo (IEC958) Audio Device #3 Monitor of Built-in Audio Digital Stereo (IEC958) SDR enumerator starting. 01-26 07:52:06.369 4222 4276 E CARIBOU_SMI caribou_smi_init@caribou_smi.c:537 couldn't open smi driver file '/dev/smi' (No such file or directory) gqrx has same problem: |
dragonos desktop, getting started file, try installing the sdrplay drivers. not sure not doing this will cause any difference, but i've done it on all mine (because i have one) and not had this issue. ImDroided has same issue w/gqrx but cubic is working for him now, afaik. gqrx works for me, but again, maybe it doesn't like that there's a soapy error about sdrplay, just a guess. |
I had so many new problems that I decided to re-image DragonOS-Pi64_Beta32 and followed the steps to modify /boot/firmware/config.tx as well as the Cariboulite install.sh files. Now I cannot run gqrx or CubicSDr at all. Unless someone has some idea of how to fix this, I think I shall hang it up until I have a Pi4 and then try again. Here is what I see when trying to run gqrx and CubicSDR. sudo CubicSDR ./src/common/menucmn.cpp(309): assert "wxIsStockID(GetId())" failed in SetItemLabel(): A non-stock menu item with an empty label? These errors differ from the ones I was getting before. I'm beginning to wonder whether the Cariboulite was a good idea. |
you also need to edit this file according to this pr: #176 otherwise the kernel module won't build. |
you also need to do this to fix the requirement to use sudo, which then solves your pulseaudio issue: https://sourceforge.net/p/dragonos-focal/discussion/general/thread/a55c055ef9/#20c1 |
maybe someone finds the udev rule needed to change the default gpiomem permissions to 660 instead of 600. |
@righthalfplane Ran the updates and then the make and got: After trying to get DragonOS to work several with cariboulite several times now and failing each time in different ways (probably something I forgot?) it would be great if someone could write out the steps to follow and say what will and won't work. I have watched and tried to follow youtubes and the suggestions in this thread (and others) and I'm not much closer to getting this to work. Maybe I'm the only one having this problem but IMHO the videos provided by Cariboulabs are not very good. |
On dragonOS when I do a find - ubuntu: sudo find / -name "alut.h" That is where it should show up for you also. That is where the command - sudo apt-get install libalut-dev should put it. |
@righthalfplane Ran these commands: Now I can run sdrglut but when tuned to a local FM broadcast station it is receiving but the audio custs in/out ever 1/2 sec or so. I'm guessing that this RPI3 is too slow and I need an RPi4. The problems with CubicSDR and gqrx are different as they won't run at all.(as reported above). gqrx has the pulseaudio error which @unixpunk shared a link to fix but I haven't determined what needs to change and CubicSDR give: ../src/common/menucmn.cpp(309): assert "wxIsStockID(GetId())" failed in SetItemLabel(): A non-stock menu item with an empty label? |
pi 4, or you can try reducing the sample rate below 4mhz. i have a single-core 1ghz, it can send 2msps of CS16 IQ data from an rtlsdr no problem via soapyremote but can't send 768ksps at CF32 from an Airspy HF+ - ymmv with each kind of SDR in terms of min CPU req. The link I sent around the sudo / pulseaudio is to just run that chmod command using sudo, and then also insert it into /etc/rc.local above exit 0. Once the root group has rw access to /dev/gpiomem, you don't need sudo anymore and no more pulseaudio conflict. |
One day I supposed myself or @ImDroided will write up the steps, but I have a feeling @alphafox02 will beat us to it with the next DragonOS update and some additions to the CaribouLite section of the getting started file on the Desktop. :) |
Running CubeSDR, I get some warning messages, but I continue past them and It plays a little garbled. |
I just got caught up with this thread. I can run CubicSDR but gqrx still wont run at all with the mem access error. Give me a bit and I will be redoing my setup because I wiped that sd card by mistake so I will keep a tab of my steps for you. |
I have decided to put the RPi3 aside and try again when my RPi4 arrives. There appear to be too many constraints when using the RPi3 if I can even get an app to work. |
I agree wait till the 4 arrives and by then I will have a small writeup for you. I was able to tune both receivers in CubisSDR but gqrx was still complaining about the mem error. I have no idea why this is happening but @unixpunk saw I was missing something in my settings.txt and thats when CubicSDR started working fine. I am currently trying to get this working on a pi5 but I am having no luck so its going back on my 4 until I can figure the 5 out. |
@ImDroided Thanks! I will look for your notes after I get the Pi4. |
I have updated my site https://radiomenace.com/2023/03/20/getting-cariboulite-working-in-dragonos-on-a-raspberry-pi/ If the commit doesn't get pulled in you will still need to do the small change mentioned here 73beb20 all you have to do is remove the THIS_MODULE from the file before running install.sh |
it looks like that commit has been accepted so skip that step |
I've watched David Michaelis youtube on using cariboulite with DragonOS but I've not gotten very far with it. I am trying to get this working on a Raspberry Pi 3B while I wait for a Raspberry Pi 5. DragonOS is running fine and I cloned the Cariboulite github and ran install.sh. I have attached the console file. I made the changes to the config.txt file as shown in the video. When I reboot and do an ll/dev/s*, there is no /dev/smi. I would appreciate very much if someone could have a look at the console file and suggest how I can get this working.
console.txt
The text was updated successfully, but these errors were encountered: