pothosware / SoapySDR

Vendor and platform neutral SDR support library.
https://github.com/pothosware/SoapySDR/wiki
Boost Software License 1.0
1.09k stars 176 forks source link

Soapy SDR No devices found #431

Closed Oliver0804 closed 3 months ago

Oliver0804 commented 3 months ago
$SoapySDRUtil --find
Password:
Sorry, try again.
Password:
######################################################
##     Soapy SDR -- the SDR abstraction library     ##
######################################################
No devices found! 
$hackrf_info
hackrf_info version: 2024.02.1
libhackrf version: 2024.02.1 (0.9)
Found HackRF
Index: 0
Serial number: -=-=-=-=-=-=-=
Board ID Number: 2 (HackRF One)
Firmware Version: 2024.02.1 (API:1.08)
Part ID Number: -=-=-=-=-=-=-=
Hardware Revision: older than r6
Hardware supported by installed firmware:
    HackRF One

I use macOS with an M3 CPU model. I can successfully identify the HackRF One in GQRX, but I can't find my device using SoapySDRUtil --find. What steps might I be missing?

By the way, I installed SoapySDRUtil automatically using brew when installing GNURadio.

zuckschwerdt commented 3 months ago

SoapySDRUtil --info

Oliver0804 commented 3 months ago

SoapySDRUtil --info

######################################################

Soapy SDR -- the SDR abstraction library

######################################################

Lib Version: v0.8.1-release API Version: v0.8.0 ABI Version: v0.8 Install root: /opt/homebrew Search path: /opt/homebrew/lib/SoapySDR/modules0.8 Module found: /opt/homebrew/lib/SoapySDR/modules0.8/librtlsdrSupport.so (0.3.3) Available factories... rtlsdr Available converters...

zuckschwerdt commented 3 months ago

You don't have a hackrf module installed. It should be in /opt/homebrew/lib/SoapySDR/modules0.8

Oliver0804 commented 3 months ago

You don't have a hackrf module installed. It should be in /opt/homebrew/lib/SoapySDR/modules0.8

截圖 2024-03-28 下午5 07 20

I only see librtlsdrSupport.so. What should I do next, or what else should I install?

Thank you.

zuckschwerdt commented 3 months ago

You need this https://github.com/pothosware/SoapyHackRF No idea if that is available as brew package.

zuckschwerdt commented 3 months ago

Following the wiki it should be.

Oliver0804 commented 3 months ago

You need this https://github.com/pothosware/SoapyHackRF No idea if that is available as brew package.

I will try to compile and install it. Thank you.

Oliver0804 commented 3 months ago

維基百科應該是的。


SoapySDRUtil --find
######################################################
##     Soapy SDR -- the SDR abstraction library     ##
######################################################

Found device 0 device = HackRF One driver = hackrf label = HackRF One #0 version = 2024.02.1



Success! Thank you so much.
ybm911 commented 2 months ago

Please note here that if you are using brew-installed Soapy, the compiled and installed SoapyHackRF will appear in the wrong directory:

/usr/local/lib/SoapySDR/modules0.8/libHackRFSupport.so

You need to specify the file location during compilation:

cmake -DCMAKE_INSTALL_PREFIX=/opt/homebrew ..

Or copy it after compilation. This issue is covered here: https://github.com/pothosware/SoapyHackRF/issues/42#issue-1407991082