Trouble getting HackRF working with RTLSDR-Airband using SoapySDR

898 views
Skip to first unread message

Josh Simmons

unread,
May 27, 2019, 10:06:56 PM5/27/19
to Pothos Users
I'm trying to catch local air traffic and broadcast it to LiveATC using a HackRF One with RTLSDR-Airband through SoapySDR. I feel like I'm close to getting this working but I'm running into an issue I can't quite figure out.

The error I'm running into seems to originate from SoapySDR (but in the course of running Airband):

josh@groundcontrol:~/Desktop/RTLSDR-Airband-3.0.1$ rtl_airband -f -e
[INFO] Opening HackRF One #0 87c867dc2b2d595f...
SoapySDR: device 'driver=hackrf,device_id=0': using native sample format 'CS8' (fullScale=128.0)
RTLSDR-Airband version 3.0.1 starting
pulse: <default_server>: connecting...
[INFO] Opening HackRF One #0 87c867dc2b2d595f...
SoapySDR: device 'driver=hackrf,device_id=0': sample rate set to 8000000 sps
SoapySDR: device 'driver=hackrf,device_id=0': gain set to 0.0 dB
SoapySDR: device 'driver=hackrf,device_id=0' initialized
SoapySDR: device 'driver=hackrf,device_id=0' started
SoapySDR device 'driver=hackrf,device_id=0': readStream failed: NOT_SUPPORTED, disabling
1 device(s) failed to initialize - aborting

I suspect I'm probably missing something obvious... but maybe not :o) Please let me know if there's any additional information I can share that might help troubleshoot this.

Thank you <3


Here's some information about my set up, all running on Ubuntu 16.04:

hackrf_info produces:
 
hackrf_info version: unknown
libhackrf version: unknown (0.5)
Found HackRF
Index: 0
Serial number: 000000000000000087c867dc2b2d595f
Board ID Number: 2 (HackRF One)
Firmware Version: 2018.01.1 (API:1.02)
Part ID Number: 0xa000cb3c 0x00764f5d

SoapySDRUtil --probe="driver=hackrf" produces:

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

Probe device driver=hackrf
[INFO] Opening HackRF One #0 87c867dc2b2d595f...

----------------------------------------------------
-- Device identification
----------------------------------------------------
  driver=HackRF
  hardware=HackRF One
  clock source=internal
  part id=a000cb3c00764f5d
  serial=000000000000000087c867dc2b2d595f
  version=2018.01.1

----------------------------------------------------
-- Peripheral summary
----------------------------------------------------
  Channels: 1 Rx, 1 Tx
  Timestamps: NO
  Other Settings:
     * Antenna Bias - Antenna port power control.
       [key=bias_tx, default=false, type=bool]

----------------------------------------------------
-- RX Channel 0
----------------------------------------------------
  Full-duplex: NO
  Supports AGC: NO
  Stream formats: CS8, CS16, CF32, CF64
  Native format: CS8 [full-scale=128]
  Stream args:
     * Buffer Count - Number of buffers per read.
       [key=buffers, units=buffers, default=15, type=int]
  Antennas: TX/RX
  Full gain range: [0, 116] dB
    LNA gain range: [0, 40] dB
    AMP gain range: [0, 14] dB
    VGA gain range: [0, 62] dB
  Full freq range: [0, 7250] MHz
    RF freq range: [0, 7250] MHz
  Sample rates: 1, 2, 3, 4, 5, ..., 16, 17, 18, 19, 20 MSps
  Filter bandwidths: 1.75, 2.5, 3.5, 5, 5.5, ..., 14, 15, 20, 24, 28 MHz

----------------------------------------------------
-- TX Channel 0
----------------------------------------------------
  Full-duplex: NO
  Supports AGC: NO
  Stream formats: CS8, CS16, CF32, CF64
  Native format: CS8 [full-scale=128]
  Stream args:
     * Buffer Count - Number of buffers per read.
       [key=buffers, units=buffers, default=15, type=int]
  Antennas: TX/RX
  Full gain range: [0, 61] dB
    VGA gain range: [0, 47] dB
    AMP gain range: [0, 14] dB
  Full freq range: [0, 7250] MHz
    RF freq range: [0, 7250] MHz
  Sample rates: 1, 2, 3, 4, 5, ..., 16, 17, 18, 19, 20 MSps
  Filter bandwidths: 1.75, 2.5, 3.5, 5, 5.5, ..., 14, 15, 20, 24, 28 MHz

My rtl_airband.conf file reads:

devices:
({
  type = "soapysdr";
  device_string = "driver=hackrf,device_id=0";
  gain = 0.0;
  centerfreq = 122.7;
  sample_rate = 8.0;
  channels:
  (
    {
      freq = 122.7;
      outputs: (
        {
          type = "pulse";
        }
      );
    }
  );
});

Josh Blum

unread,
May 28, 2019, 12:44:52 AM5/28/19
to pothos...@googlegroups.com


On 5/27/19 9:06 PM, Josh Simmons wrote:
I'm trying to catch local air traffic and broadcast it to LiveATC using a HackRF One with RTLSDR-Airband through SoapySDR. I feel like I'm close to getting this working but I'm running into an issue I can't quite figure out.

The error I'm running into seems to originate from SoapySDR (but in the course of running Airband):

[INFO] Opening HackRF One #0 87c867dc2b2d595f...
SoapySDR: device 'driver=hackrf,device_id=0': using native sample format 'CS8' (fullScale=128.0)
RTLSDR-Airband version 3.0.1 starting
pulse: <default_server>: connecting...
[INFO] Opening HackRF One #0 87c867dc2b2d595f...
SoapySDR: device 'driver=hackrf,device_id=0': sample rate set to 8000000 sps
SoapySDR: device 'driver=hackrf,device_id=0': gain set to 0.0 dB
SoapySDR: device 'driver=hackrf,device_id=0' initialized
SoapySDR: device 'driver=hackrf,device_id=0' started
SoapySDR device 'driver=hackrf,device_id=0': readStream failed: NOT_SUPPORTED, disabling


Did someone pass the tx stream or possibly a null stream pointer into readStream()?

Because I think thats the only way you can get SOAPY_SDR_NOT_SUPPORTED from this call

https://github.com/pothosware/SoapyHackRF/blob/master/HackRF_Streaming.cpp#L590

-josh


--
You received this message because you are subscribed to the Google Groups "Pothos Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pothos-users...@googlegroups.com.
To post to this group, send email to pothos...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pothos-users/0dc9dfdf-49f8-42c6-be79-1a01b69bd9f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages