Giter Club home page Giter Club logo

soapyairspyhf's Introduction

soapyairspyhf's People

Contributors

antonblanchard avatar cjcliffe avatar guruofquality avatar jazzkutya avatar stottsc avatar szpajder avatar willcode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

soapyairspyhf's Issues

Found 0 bandwidths: SoapySDRDevice_setupStream failed

I installed libairspy 1.1.5 on a Raspberry Pi 3 B+ with Rasbian 9.

$ rx_fm -d airspyhf -f 99.9M -v 99
verbosity set to 1
Using device AirspyHF: device_id=0 origin=https://github.com/sevo/SoapyAirspyHF 
Found 1 antenna(s): RX 
Found 0 gain(s): 
Found 1 frequencies: RF 
Found 1 sample rates: 768000 
Found 0 bandwidths: 
SoapySDRDevice_setupStream failed
Failed to open sdr device matching 'airspyhf'.
 $ lsusb
Bus 001 Device 009: ID 03eb:800c Atmel Corp.
...
$ SoapySDRUtil --probe
######################################################
## Soapy SDR -- the SDR abstraction library
######################################################

Probe device 

----------------------------------------------------
-- Device identification
----------------------------------------------------
  driver=AirspyHF
  hardware=AirspyHF
  device_id=0
  origin=https://github.com/sevo/SoapyAirspyHF

----------------------------------------------------
-- Peripheral summary
----------------------------------------------------
  Channels: 1 Rx, 0 Tx
  Timestamps: NO

----------------------------------------------------
-- RX Channel 0
----------------------------------------------------
  Full-duplex: YES
  Supports AGC: YES
  Stream formats: CF32
  Native format: CF32 [full-scale=3.4e+38]
  Antennas: RX
  Full gain range: [0, 0] dB
  Full freq range: [0.009, 31], [60, 260] MHz
    RF freq range: [0.009, 31], [60, 260] MHz
  Sample rates: [0.768] MHz

Please assist.

SoapyAirspyHF drivers in colision with SimpleSoapy

Can someone share, tested and working system, which version of libraries are actually working , I will do downgrade, never mind.

I have SoapySDR 0.8.1
soapy-power 1.6.1
SimpleSoapy 1.5.1 last update from 2017

System is arch linux Linux lenovo-lap 5.15.33-1-lts #1 SMP Fri, 08 Apr 2022 13:43:36 +0000 x86_64 GNU/Linux

airspy drivers are from AUR which is latest, but I also try with downgraded drivers, which I compiled.

https://aur.archlinux.org/packages/airspyhf-git
https://aur.archlinux.org/packages/soapyairspyhf-git

SoapySDRUtil gave me this
######################################################

Soapy SDR -- the SDR abstraction library

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

Lib Version: v0.8.1-ARCH
API Version: v0.8.0
ABI Version: v0.8
Install root: /usr
Search path: /usr/lib/SoapySDR/modules0.8
Search path: /usr/local/lib/SoapySDR/modules0.8
Module found: /usr/lib/SoapySDR/modules0.8/libHackRFSupport.so (0.3.3)
Module found: /usr/lib/SoapySDR/modules0.8/libairspyhfSupport.so (0.2.0-d682533)
Module found: /usr/lib/SoapySDR/modules0.8/librtlsdrSupport.so (0.3.2)
Available factories... airspyhf, hackrf, rtlsdr
Available converters...

  • CF32 -> [CF32, CS16, CS8, CU16, CU8]
  • CS16 -> [CF32, CS16, CS8, CU16, CU8]
  • CS32 -> [CS32]
  • CS8 -> [CF32, CS16, CS8, CU16, CU8]
  • CU16 -> [CF32, CS16, CS8]
  • CU8 -> [CF32, CS16, CS8]
  • F32 -> [F32, S16, S8, U16, U8]
  • S16 -> [F32, S16, S8, U16, U8]
  • S32 -> [S32]
  • S8 -> [F32, S16, S8, U16, U8]
  • U16 -> [F32, S16, S8]
  • U8 -> [F32, S16, S8]

sudo soapy_power -d driver=airspyhf -r 768K -f 1M:31M -b 192000 -F rtl_power -u 1 -G "LNA=0,RF=-48"

Traceback (most recent call last):
File "/usr/bin/soapy_power", line 33, in
sys.exit(load_entry_point('soapy-power==1.6.1', 'console_scripts', 'soapy_power')())
File "/usr/lib/python3.10/site-packages/soapypower/main.py", line 366, in main
sdr.sweep(
File "/usr/lib/python3.10/site-packages/soapypower/power.py", line 296, in sweep
psd_future, acq_time_start, acq_time_stop = self.psd(freq)
File "/usr/lib/python3.10/site-packages/soapypower/power.py", line 256, in psd
self.device.read_stream_into_buffer(self._buffer)
File "/usr/lib/python3.10/site-packages/simplesoapy.py", line 483, in read_stream_into_buffer
raise RuntimeError('Unhandled readStream() error: {} ({})'.format(
RuntimeError: Unhandled readStream() error: -1 (TIMEOUT)

Incorrect fullScale value

SoapyAirspyHF::getNativeStreamFormat returns a fullScale value of 3.4E+38, which is incorrect. Airspy HF+ produces float samples in a range of -1 to 1, so fullScale should equal 1.0f.

Airspy HF+ Discovery

Hi

Will SoapyAirspyHF be compatible as-is with the new Airspy HF+ Discovery ?

Thanks

Compile error

When I try to compile SoapyAirspyHF, I get the following error:
make
[ 25%] Linking CXX shared module libairspyhfSupport.so
/usr/bin/ld: CMakeFiles/airspyhfSupport.dir/Settings.cpp.o:(.data.rel.ro._ZTV13SoapyAirspyHF[_ZTV13SoapyAirspyHF]+0x148): undefined reference to SoapySDR::Device::hasIQBalanceMode(int, unsigned long) const' /usr/bin/ld: CMakeFiles/airspyhfSupport.dir/Settings.cpp.o:(.data.rel.ro._ZTV13SoapyAirspyHF[_ZTV13SoapyAirspyHF]+0x150): undefined reference to SoapySDR::Device::setIQBalanceMode(int, unsigned long, bool)'
/usr/bin/ld: CMakeFiles/airspyhfSupport.dir/Settings.cpp.o:(.data.rel.ro._ZTV13SoapyAirspyHF[_ZTV13SoapyAirspyHF]+0x158): undefined reference to SoapySDR::Device::getIQBalanceMode(int, unsigned long) const' /usr/bin/ld: CMakeFiles/airspyhfSupport.dir/Streaming.cpp.o: in function SoapyAirspyHF::getStreamFormats[abi:cxx11](int, unsigned long) const':
Streaming.cpp:(.text+0x777): undefined reference to SoapySDR::ConverterRegistry::listTargetFormats(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /usr/bin/ld: CMakeFiles/airspyhfSupport.dir/Streaming.cpp.o: in function SoapyAirspyHF::setupStream(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<unsigned long, std::allocator > const&, std::map<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::less<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits, std::allocator > const, std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > > const&)':
Streaming.cpp:(.text+0xc35): undefined reference to SoapySDR::ConverterRegistry::listSourceFormats(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /usr/bin/ld: Streaming.cpp:(.text+0xc94): undefined reference to SoapySDR::ConverterRegistry::getFunction(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, SoapySDR::ConverterRegistry::FunctionPriority const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/airspyhfSupport.dir/build.make:116: libairspyhfSupport.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/airspyhfSupport.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Ubuntu 19.10, Linux 5.3.0-51-generic #44-Ubuntu SMP Wed Apr 22 21:09:44 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

manual gain settings

Airpy HF devices with newer firmware (since R1.3) support manual gain settings, but SoapyAirspyHF does not. See pull request #6

Trouble compiling on Ubuntu

I'm trying to compile this to use a AirSpyHF+ Discovery with rx_fm.
The device is recognised with just the AirSpy driver with gqrx but the HF+ Discovery apparently needs this driver for rx_tools. It seems to be missing the include libraries but I'm stumped how to solve this.
I followed the Pothos Soapy build instructions and they completed without error. I have the hwe kernel.
Any ideas what I can do please ?

git clone https://github.com/pothosware/SoapyAirspyHF.git
Cloning into 'SoapyAirspyHF'...
remote: Enumerating objects: 12, done.
remote: Counting objects: 100% (12/12), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 85 (delta 4), reused 10 (delta 4), pack-reused 73
Unpacking objects: 100% (85/85), done.

cd SoapyAirspyHF/
mkdir build
cd build
cmake ..
-- The CXX compiler identification is GNU 7.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build type not specified: defaulting to release.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'libairspyhf'
-- No package 'libairspyhf' found
-- Could NOT find LIBAIRSPYHF (missing: LIBAIRSPYHF_LIBRARIES LIBAIRSPYHF_INCLUDE_DIRS)
-- Performing Test HAS_STD_CXX11
-- Performing Test HAS_STD_CXX11 - Success
-- Found Git: /usr/bin/git (found version "2.17.1")
-- Module airspyhfSupport configured with version: 0.1.1-54f5487
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBAIRSPYHF_INCLUDE_DIRS (ADVANCED)
used as include directory in directory /home/user1/code/SoapyAirspyHF
used as include directory in directory /home/user1/code/SoapyAirspyHF
used as include directory in directory /home/user1/code/SoapyAirspyHF
used as include directory in directory /home/user1/code/SoapyAirspyHF
used as include directory in directory /home/user1/code/SoapyAirspyHF
used as include directory in directory /home/user1/code/SoapyAirspyHF
used as include directory in directory /home/user1/code/SoapyAirspyHF
LIBAIRSPYHF_LIBRARIES (ADVANCED)
linked by target "airspyhfSupport" in directory /home/user1/code/SoapyAirspyHF

-- Configuring incomplete, errors occurred!
See also "/home/user1/code/SoapyAirspyHF/build/CMakeFiles/CMakeOutput.log".

Linux meteor-test 5.0.0-36-generic #39~18.04.1-Ubuntu SMP Tue Nov 12 11:09:50 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Does this support AirspyHF-Discovery? --> bug on version control in Settings.cpp

I am using this on Ubuntu 20.04, with gnuradio-companion.

I am a little lost since I am new to SDR, so I am unsure if this is the place for this question.

I have the HF-Discovery. I am using this on Ubuntu 20.04, with gnuradio-companion.

In gnuradio-companion, I add the "Soapy AirspyHF Source" block, and connect it to a sink.

Then I edit the properties of the block until no errors remain (sample rate 768kHz).

On execution, I get this error:

[...]
my_file.py", line 96, in _init_
    self.soapy_airspyhf_source_0.set_gain(0, 'RF', min(max(0, -48.0), 0.0))
ValueError: source: Unknown gain RF for channel 0

I am unsure of where to look for causes of this. I hoped this comes from this lib, and hence the issue.

Versions:

gnuradio: 3.10.5.1
airspyhf: 1.7.1
Firmware: R3.0.6-CD

GNURadio failing with no error

I am trying to use an osmocom source block with the airspy HF+. Everything appears to be installed correctly and doing a "SoapySDRUtil --probe" returns the following:

######################################################
##     Soapy SDR -- the SDR abstraction library     ##
######################################################

Probe device 

----------------------------------------------------
-- Device identification
----------------------------------------------------
  driver=AirspyHF
  hardware=AirspyHF
  device_id=0

----------------------------------------------------
-- Peripheral summary
----------------------------------------------------
  Channels: 1 Rx, 0 Tx
  Timestamps: NO

----------------------------------------------------
-- RX Channel 0
----------------------------------------------------
  Full-duplex: YES
  Supports AGC: YES
  Stream formats: CF32
  Native format: CF32 [full-scale=1]
  Antennas: RX
  Full gain range: [0, 0] dB
  Full freq range: [0.009, 31], [60, 260] MHz
    RF freq range: [0.009, 31], [60, 260] MHz
  Sample rates: 0.768 MSps

When attempting to run any flow graph with the osmocom source block I get no error message but the flow graph does not run.

Generating: '/home/zach/top_block.py'

Executing: /usr/bin/python2 -u /home/zach/top_block.py

gr-osmosdr v0.1.4-127-g4d83c606 (0.1.5git) gnuradio 3.7.13.4
built-in source types: file osmosdr fcd rtl rtl_tcp uhd hackrf bladerf rfspace airspy soapy redpitaya 
[INFO] Using format CF32.

>>> Done

Running the exact same flowgraph (I am using simply the source block connected to a QT GUI frequency sink for testing) with an airspy mini works no problem. With no device connected it returns "RuntimeError: SoapySDR::Device::make() no driver specified and no enumeration results" as I would expect.

two devices on same machine

hello

Yesterday I try to connect two Airspy HF on the same machine.

With SoapySDRUtil --probe="driver=airspyhf" there is only one device detected by SoapyAirspyHF even if airspyhf_info is detecting two devices.

Is it possible to have more than one device with SoapyAirspyHF ?

Thanks

Setting stream to CF32

No sure where to ask this one, here or SoapySDR or rx_tools...
AirspyHF+ Disco is now recognised by soapy but rx_fm fails with a stream format error :

rx_fm -d 0 -M wbfm -f 89.5M -F CF32 | sox -r 32k -t raw -e s -b 16 -c 1 - -d
sox WARN alsa: can't encode 0-bit Unknown or not applicable
Using device AirspyHF: serial=c852fd808b2f4a3b
Found 1 channel(s) :
Channel 0 :
Found 1 antenna(s): RX
Found 2 gain(s): LNA RF
Found 1 frequencies: RF
Found 4 sample rates: 768000 384000 256000 192000
Found 0 bandwidths:
SoapySDRDevice_setupStream failed: setupStream invalid format 'CS16' -- Only CF32 is supported by SoapyAirspyHF module.
Bandwidth set to automatic resulted in 0 Hz.
Tuned to 89856000 Hz.
Oversampling input by: 8x.
Oversampling output by: 1x.
Buffer size: 6.02ms
Sampling at 1360000 S/s.
Output at 170000 Hz.

-: (raw)

File Size: 0
Encoding: Signed PCM
Channels: 1 @ 16-bit
Samplerate: 32000Hz
Replaygain: off
Duration: unknown

In:0.00% 00:00:00.00 [00:00:00.00] Out:0 [ | ] Clip:0
Done.

It seems to be not auto-setting the stream rate for this device type to the only one it supports and I can't seem to force it with -F CF32.

SoapySDRUtil --probe
######################################################

Soapy SDR -- the SDR abstraction library

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

Probe device


-- Device identification

driver=AirspyHF
hardware=AirspyHF
serial=c852fd808b2f4a3b


-- Peripheral summary

Channels: 1 Rx, 0 Tx
Timestamps: NO


-- RX Channel 0

Full-duplex: YES
Supports AGC: YES
Stream formats: CF32
Native format: CF32 [full-scale=1]
Antennas: RX
Full gain range: [0, 54] dB
LNA gain range: [0, 6, 6] dB
RF gain range: [-48, 0, 6] dB
Full freq range: [0.009, 31], [60, 260] MHz
RF freq range: [0.009, 31], [60, 260] MHz
Sample rates: 0.768, 0.384, 0.256, 0.192 MSps

Am I doing something obviously wrong ?
Thanks

timeout error since firmware 2.0.0

Hello

I get lot of error timeout during the day with new firmware 2.0.0 (was 1.0.0 before)
Same Raspberry PI with same power supply, not overloaded.

Here is a log in daemon.log :
SoapySDR device 'driver=airspyhf,device_id=0': readStream failed: TIMEOUT, disabling

Any clue to debug this ?

Thanks

Brew install broken

brew install libusb installed libusb but airspyhf is not locating it

on masoc on m1-m3 lubusb-1.0 is in /opt/homebrew/lib/libusb-1.0
libusb.h is in /opt/homebrew/include

Last 15 lines from /Users/richardneese/Library/Logs/Homebrew/airspyhf/02.make:
#include <libusb.h>
^~~~~~~~~~
/tmp/airspyhf-20231126-67586-3yqr1q/airspyhf-1.0/libairspyhf/src/airspyhf.c:34:10: fatal error: 'libusb.h' file not found
#include <libusb.h>
^~~~~~~~~~
1 error generated.
1 error generated.
make[2]: *** [libairspyhf/src/CMakeFiles/airspyhf-static.dir/airspyhf.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [libairspyhf/src/CMakeFiles/airspyhf.dir/airspyhf.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [libairspyhf/src/CMakeFiles/airspyhf.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [libairspyhf/src/CMakeFiles/airspyhf-static.dir/all] Error 2
make: *** [all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
https://github.com/pothosware/homebrew-pothos/issues

These open issues may also help:
SoapySDR airspyhf not match with GNU Radio under MacOS Ventura pothosware/homebrew-pothos#61
richardneese@Richards-Mini pihpsdr %

Need Option to Set Gain Manually

Hello,

I know the Airspy HF+ has built-in auto gain control (AGC), but is there a way to manually select this value? If not, can that option be added to this module? Even the option to turn off AGC could help.

I'm using an app (RTL Airband) that does not support AGC and as a result there is no input signal from the Airspy HF+. I suspect the AGC is the issue.

SoapySDR readStream failed: OVERFLOW

Hello

Since this morning I got this annoying error message : SoapySDR device 'driver=airspyhf,device_id=0': readStream failed: OVERFLOW, disabling

Every component (SoapySDR, SoapyAirspyHF, firmware of the Airspy HF) is up-to-date and I can't get rid of this error...

Any idea to solve this ?

Thanks

Add support for 16-bit complex samples

16-bit samples are used by a lot of applications, but currently only floating point is supported (widely used by osmosdr blocks, gqrx, etc). Looking for someone with AirspyHF to test and develop this. SoapyAirspy driver largely has a good example of this to pull from.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.