Command line interface for RSP1a

Post information or questions regarding SDRplay products here
keyboardbandit
Posts: 2
Joined: Thu Jan 17, 2019 12:30 am

Command line interface for RSP1a

Postby keyboardbandit » Thu Jan 17, 2019 1:21 am

Hello all, first time poster here and I'm hoping you can point me in the right direction. I have a SDRPlay RSP1a and a Raspberry Pi3, I need to send raw I/Q data from the SDR to a UDP port. I have been doing this with GQRX to send the data to udp, but now I need to be able to set up and run the SDR with a bash script or some other automated way and pipe the raw I/Q data to the same port.

I've spent the past few hours trying to get SoapySDR to work on the pi, right now running "SoapySDRUtil --find" returns no devices found. I think that rx_sdr should be the tool I need, but I'm not sure because I am new to all of this.

Any advice you all can offer would be greatly appreciated.
Last edited by keyboardbandit on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

fventuri
Posts: 37
Joined: Sun Dec 25, 2016 4:24 pm

Re: Command line interface for RSP1a

Postby fventuri » Thu Jan 17, 2019 3:29 am

You may want to make sure you have installed the SDRplay API driver for Raspberry Pi (https://www.sdrplay.com/downloads/) and the SoapySDRPlay module (https://github.com/pothosware/SoapySDRPlay) on your Raspberry Pi 3.

Also does the command:

Code: Select all

lsusb -d 1df7:

return anything back?
If not, it might be a sign of a problem with the USB connection itself.

Franco

Reason: No reason

keyboardbandit
Posts: 2
Joined: Thu Jan 17, 2019 12:30 am

Re: Command line interface for RSP1a

Postby keyboardbandit » Thu Jan 17, 2019 7:38 pm

fventuri wrote:You may want to make sure you have installed the SDRplay API driver for Raspberry Pi (https://www.sdrplay.com/downloads/) and the SoapySDRPlay module (https://github.com/pothosware/SoapySDRPlay) on your Raspberry Pi 3.

Also does the command:

Code: Select all

lsusb -d 1df7:

return anything back?
If not, it might be a sign of a problem with the USB connection itself.

Franco


Hi there, thanks for your reply. Running "lsusb -d 1df7:" returns "Bus 001 Device 004: ID 1df7:3000"

I have also downloaded and installed the SDRplay API driver and the SoapySDRPlay module as well as the rx_tools. I'm really scratching my head here because if I open GQRX I can select and use the device SDRplay RSP1A and it seems to work just fine. I can type rx_sdr and get the usage info about rx_tools, but when I type "SoapySDRUtil --find" I get a message saying No devices found.

I'm thinking today I will reimage the sd card and start over from scratch without installing gqrx first?
Last edited by keyboardbandit on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

fventuri
Posts: 37
Joined: Sun Dec 25, 2016 4:24 pm

Re: Command line interface for RSP1a

Postby fventuri » Thu Jan 17, 2019 10:27 pm

According to the documentation here https://github.com/pothosware/SoapySDRPlay/wiki#probing-soapy-sdr-play, the command you should be using to make sure SoapySDR can see your RSP device is:

Code: Select all

SoapySDRUtil --probe="driver=sdrplay"

I just tried it on my computer and the result should look something like this:

Code: Select all

SoapySDRUtil --probe="driver=sdrplay"

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

Probe device driver=sdrplay

----------------------------------------------------
-- Device identification
----------------------------------------------------
  driver=SDRplay
  hardware=********
  mir_sdr_api_version=2.130000
  mir_sdr_hw_version=2

----------------------------------------------------
-- Peripheral summary
----------------------------------------------------
  Channels: 1 Rx, 0 Tx
  Timestamps: NO
  Other Settings:
     * RF Gain Select - RF Gain Select
       [key=rfgain_sel, default=4, type=string, options=(0, 1, 2, 3, 4, 5, 6, 7, 8)]
     * IF Mode - IF frequency in kHz
       [key=if_mode, default=Zero-IF, type=string, options=(Zero-IF, 450kHz, 1620kHz, 2048kHz)]
     * IQ Correction - IQ Correction Control
       [key=iqcorr_ctrl, default=true, type=bool]
     * AGC Setpoint - AGC Setpoint (dBfs)
       [key=agc_setpoint, default=-30, type=int, range=[-60, 0]]
     * ExtRef Enable - External Reference Control
       [key=extref_ctrl, default=true, type=bool]
     * BiasT Enable - BiasT Control
       [key=biasT_ctrl, default=true, type=bool]
     * RfNotch Enable - RF Notch Filter Control
       [key=rfnotch_ctrl, default=true, type=bool]

----------------------------------------------------
-- RX Channel 0
----------------------------------------------------
  Full-duplex: YES
  Supports AGC: YES
  Stream formats: CS16, CF32
  Native format: CS16 [full-scale=32767]
  Antennas: Antenna A, Antenna B, Hi-Z
  Corrections: DC removal
  Full gain range: [0, 47] dB
    IFGR gain range: [20, 59] dB
    RFGR gain range: [0, 8] dB
  Full freq range: [0.01, 2000] MHz
    RF freq range: [0.01, 2000] MHz
    CORR freq range:  MHz
  Sample rates: 0.25, 0.5, 1, 2, 2.048, 6, 7, 8, 9, 10 MSps
  Filter bandwidths: 0.2, 0.3, 0.6, 1.536, 5, 6, 7, 8 MHz


Franco

Reason: No reason


Return to “SDRplay related”

Who is online

Users browsing this forum: Bing [Bot] and 9 guests