AlexandreRouma / SDRPlusPlus

Cross-Platform SDR Software
GNU General Public License v3.0
4.15k stars 574 forks source link

sdr++ cannot find rtl-sdr v4 as a source #1524

Open linkwellfook opened 1 week ago

linkwellfook commented 1 week ago

Hardware

Software

Bug Description The Source list does not include RTLSDRBlog Blog V4.
I've followed the instructions as set in RTL-SDR blog and downloaded the most current nightly binary from sdr++ site.

I've test other sdr software and they find the dongle.

Steps To Reproduce

  1. Follow steps RTL-SDR blog including blacklisting dvb_usb_rtl28xxu and dvb_usb_rtl2832u for good measure. Shut down VM. Plug dongle in, reboot run rtl_test.
  2. Download the nightly build matching the Ubuntu build and use apt to install.
  3. Launch SDR++, go to source. RTLSDRBlog Blog V4 not listed

Additional info

The VM runs on top of Proxmox 8.2.7. I have passed the usb through using the command qm set 206 -usb1 host=0bda:2838 In the vm when I use lsusb I see Realtek SemiConductor Corp. RTL2838 DV-T

AlexandreRouma commented 1 week ago

Show the logs when running SDR++ in a terminal.

linkwellfook commented 1 week ago

Hi

I've attached the output from the console.

console_output.txt

Regards

AlexandreRouma commented 1 week ago

Ok now show a screenshot of the source menu. The logs say the module is loaded so there must be a "RTL-SDR" option in the source selector.

linkwellfook commented 1 week ago

Hi,

Attached is the screenshot of the Source dropdown and what is available. I'm expecting to see RTL-SDR. source_list

AlexandreRouma commented 1 week ago

ok can you send your ~/.config/sdrpp/config.json file? Also what user are you running it as? SDR++ should never run as root.

linkwellfook commented 1 week ago

Hi, sure

config.json : config.json I've not altered the config file.

the sdrpp app runs from a normal user account. root is not used nor is sudo.

Regards

AlexandreRouma commented 1 week ago

This is quite strange, please try this specific nightly build and see if the option shows up in the menu: https://github.com/AlexandreRouma/SDRPlusPlus/actions/runs/11710871750

Don't reset any config, just install this over the existing version and see if something changes.

linkwellfook commented 1 week ago

Hi

I downloaded the following file

sdrpp_ubuntu_noble_amd64.zip extracted it. The filename sdrpp_debian_amd64.deb

I installed it using apt install. When I tried to run it I got a segment fault

[12/11/2024 14:55:19.000] [INFO] SDR++ v1.2.0 [12/11/2024 14:55:19.000] [INFO] Loading config [12/11/2024 14:55:19.000] [INFO] Missing key in config decimationPower, repairing [12/11/2024 14:55:19.000] [INFO] Missing key in config offset, repairing [12/11/2024 14:55:19.000] [INFO] Missing key in config offsetMode, repairing [12/11/2024 14:55:19.000] [INFO] Unused key in config decimation, repairing [12/11/2024 14:55:19.000] [INFO] Unused key in config manualOffset, repairing [12/11/2024 14:55:19.000] [WARN] ConfigManager locked, waiting... Segmentation fault (core dumped)

The previous config folder and contents still remains in place.

Regards

AlexandreRouma commented 1 week ago

ok yeah makes sense the config format was migrated. I guess renamed the config file to something like config.json.bak and let it generate its own. Won't give as much useful info but is at least something to try

linkwellfook commented 1 week ago

Hi renamed thje config.json file and ran sdrpp again.

No joy. rtl-sdr is not listed in the Source dropdown.
I'm included the regenerated config.json file config.json

AlexandreRouma commented 1 week ago

ok so good to know I didn't break anything in the 1.2.1 release. Gonna be honest I have no idea how the logs you're getting are even possible. The init function of the module supposedly runs, but the post-init function doesn't, and the init function contains no branching so it not registering the source is suspicious...

linkwellfook commented 1 week ago

Hi,

Just thought I would give a follow-up on this.

So I fired up a Ubuntu Jammy vm (Ubuntu 22.04.5 LTS) and installed sdr++ 1.2.1 built for Jammy. RTL-SDR is listed as a source and it picked up the usb dongle.

I'm not sure if it is a compatibility issue with later versions of Ubuntu as later builds did move away from pulseaudio resulting in a change but sdrpp works in Jammy.

javierxio commented 3 days ago

@AlexandreRouma Hello.

I want to also report the same issue. I am on latest Ubuntu 24.04 LTS and was not able to use SDR++ due to my dongle is not showing up.

Unfortunately, I am no able to test on an older version of Ubuntu (ex: 22.04 LTS).

So far, I had to try a different software GQRX and I am able to use my RTL-SDK V4 USB dongle with no problem!

(but I want to try SDR++ as it seems to have more features and a better UI than GQRX. Thanks.

AlexandreRouma commented 3 days ago

I doubt it's the "same" issue. Show the logs.

javierxio commented 2 days ago

@linkwellfook Hello. I thought I had the same issue as you, but the logs showed that I was missing some .so files; "No such file or directory"

[18/11/2024 21:38:48.000] [INFO] SDR++ v1.2.1
[18/11/2024 21:38:48.000] [INFO] Loading config
[18/11/2024 21:38:48.000] [WARN] ConfigManager locked, waiting...
[18/11/2024 21:38:48.000] [INFO] Using OpenGL 3.0
[18/11/2024 21:38:48.000] [INFO] Loading icons
[18/11/2024 21:38:48.000] [INFO] Loading band plans
[18/11/2024 21:38:48.000] [INFO] Loading band plans color table
[18/11/2024 21:38:48.000] [INFO] Loading modules
[18/11/2024 21:38:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/audio_sink.so
[18/11/2024 21:38:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/iq_exporter.so
[18/11/2024 21:38:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/hackrf_source.so
[18/11/2024 21:38:48.000] [ERROR] Couldn't load /usr/lib/sdrpp/plugins/hackrf_source.so: libhackrf.so.0: cannot open shared object file: No such file or directory
[18/11/2024 21:38:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/rigctl_client.so
[18/11/2024 21:38:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/rfnm_source.so
[18/11/2024 21:38:48.000] [ERROR] Couldn't load /usr/lib/sdrpp/plugins/rfnm_source.so: librfnm.so: cannot open shared object file: No such file or directory
[18/11/2024 21:38:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/new_portaudio_sink.so
[18/11/2024 21:38:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/sdrplay_source.so
[18/11/2024 21:38:48.000] [ERROR] Couldn't load /usr/lib/sdrpp/plugins/sdrplay_source.so: libsdrplay_api.so.3: cannot open shared object file: No such file or directory
[18/11/2024 21:38:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/rtl_tcp_source.so
[18/11/2024 21:38:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/rtl_sdr_source.so
[18/11/2024 21:38:48.000] [ERROR] Couldn't load /usr/lib/sdrpp/plugins/rtl_sdr_source.so: librtlsdr.so.2: cannot open shared object file: No such file or directory

I did some web search and found that I missed installing some dependencies.

Now, SDR++ is working on my Linux 24.04.

I can't find it now, but the dependencies are something like this:

https://github.com/AlexandreRouma/SDRPlusPlus/blob/11f87e0fe28153c3462941b194fae9a0b20ece1a/readme.md?plain=1#L180

@AlexandreRouma FYI.