pothosware / SoapyAirspyHF

SoapySDR plugin to support the Airspy HF+
https://github.com/pothosware/SoapyAirspyHF/wiki
MIT License
24 stars 17 forks source link

Found 0 bandwidths: SoapySDRDevice_setupStream failed #1

Closed Sevyls closed 5 years ago

Sevyls commented 5 years ago

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.

guruofquality commented 5 years ago

SoapySDRDevice_setupStream failed Failed to open sdr device matching 'airspyhf'.

rx_fm could do a better job reporting the error message. Anyway....

My best guess is that 16 bit samples are requested. I think this needs to be implemented. Since you have the hf, a pull request is appreciated :-)

https://github.com/pothosware/SoapyAirspyHF/blob/master/Streaming.cpp#L140

ghost commented 5 years ago

Hello gurugofquality,

I'd also like CS16 (and CS8, CU8 if possible) added as sample formats to the HF+ module - as RTL Airband is not currently working with the HF+. See https://github.com/szpajder/RTLSDR-Airband/issues/102.

The SoapySDR module for the regular airspy works well - is it just a matter of copying the relevant code to the HF+ module?

I'll also try to submit a pull request (this will be my first).

guruofquality commented 5 years ago

The SoapySDR module for the regular airspy works well - is it just a matter of copying the relevant code to the HF+ module?

Probably yes

guruofquality commented 5 years ago

Looks like the sample format support was the real issue, closing, this will remain open until someone has a tested PR. Thanks