SDRPlay on Xubuntu No Joy

General discussions
Post Reply
W7RTM
Posts: 10
Joined: Sun Jan 24, 2016 8:22 pm

SDRPlay on Xubuntu No Joy

Post by W7RTM » Fri Mar 04, 2016 1:28 am

SDRPlay on Xubuntu 15.10

Soapy is installed correctly and recognizes SDRPlay plugged into the USB port.

ted@OldDog:~$ SoapySDRUtil --info
######################################################
## Soapy SDR -- the SDR abstraction library
######################################################

API Version: v0.4.0-gd17177f3
ABI Version: v0.4-2
Install root: /usr/local
Module found: /usr/local/lib/SoapySDR/modules/libsdrPlaySupport.so
Loading modules... done
Available factories...null, sdrplay,

GQRX:
GQRX is installed and runs sort of but gets an error on the USB port, with or without the -DENABLE_NONFREE=TRUE build option for gr-osmosdr.

****************************
Warning: libusb_claim_interface() -6
Error: kernel driver not active - should have been able to claim interface!
****************************
and not even SoapySDRUtil can communicate with the SDRPlay until I unplug the device are replug it back in.

tried fixing this before without success SDRPlay Community post: "SDRPlay GQRX gr-osomsdr (I think)"

CubicSDR:
I am unable to install CubicSDR which appears to be the favorite. Was finally able to successfully install liquid-des, the wxWidgets, but get a whole host of compilation errors during the make process for CubicSDR.

as an example of an error:
In file included from /home/ted/CubicSDR/src/demod/DemodulatorPreThread.h:8:0,
from /home/ted/CubicSDR/src/demod/DemodulatorInstance.h:8,
from /home/ted/CubicSDR/src/demod/DemodulatorMgr.h:7,
from /home/ted/CubicSDR/src/visual/PrimaryGLContext.h:11,
from /home/ted/CubicSDR/src/CubicSDR.h:10,
from /home/ted/CubicSDR/src/CubicSDR.cpp:14:
/home/ted/CubicSDR/src/demod/DemodulatorWorkerThread.h:30:5: error: ‘msresamp_crcf’ does not name a type
msresamp_crcf iqResampler;

As there are 3 products involved who you going to call: SDRPlay, GQRX, and CubicSDR I'd like direction as to how to proceed to get any 2 to work together.
Last edited by W7RTM on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

sdrplay
Posts: 978
Joined: Wed Jan 07, 2015 7:58 am

Re: SDRPlay on Xubuntu No Joy

Post by sdrplay » Fri Mar 04, 2016 6:45 am

Hi,

I can help you get the hardware part working. You need to get to a point where:

SoapySDRUtil --probe=sdrplay

runs without producing any errors. libusb -6 means that something else has claimed the USB port and is blocking access to the device. Later versions of Linux seem to be including an unofficial library that blocks the port for SoapySDR. Using lsmod will show you if that's the case. We do not have any kernel drivers. If anything is loaded that has msi001, msi2500 or msi3101 in it, that could be the problem and will need to be blacklisted.

Once SoapySDR is reliably working then you can focus on getting the SDR application working.

CubicSDR (http://cubicsdr.com) has a bug tracking system where you can report your issues with the build.

I will also raise your problem with the CubicSDR author to see if we can get that sorted. Can you confirm that you are trying to get the latest build working (0.1.25 - https://github.com/cjcliffe/CubicSDR/re ... 1.25-alpha)

Gnu Radio/GQRX/gr-osmosdr build issues will need to be reported on their website(s)

Best regards,

SDRplay Support
Last edited by sdrplay on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

W7RTM
Posts: 10
Joined: Sun Jan 24, 2016 8:22 pm

Re: SDRPlay on Xubuntu No Joy

Post by W7RTM » Fri Mar 04, 2016 8:46 pm

From a clean restart There are no kernal process containing "msi" using ps -ef | grep msi001 and msi2500 were already blacklisted. msi3101 is not loaded. I did a count of modules loaded lsmod | wc -l found 57.

ted@OldDog:~$ SoapySDRUtil --probe=sdrplay
######################################################
## Soapy SDR -- the SDR abstraction library
######################################################

Probe device sdrplay
mir_sdr_Init: starting hardware initialization
mir_sdr_Init: gR=40dB fs=2.048MHz rf=222.064MHz bw=1.536MHz if=0.000MHz

mir_sdr_usb_USB DLL: Revision 0.1.1

mir_sdr_2500_Init: revisionId = 0x0200, doing FW update
fwDownload: FW image size = 6008
mir_sdr_usb_USB DLL: Revision 0.1.1

mir_sdr_2500_Init: fnaddr = 8

mir_sdr_2500_Init: adjusting squelch trim 0x1, rx gating enable 1, tx_trim 0, reg2 = 0x4801
initHw: Register7 = 0x000005
initHw: Tuner Register0 = 0x04f440
mir_sdr_SetFs: Sample Freq requested 2047999.978065
mir_sdr_SetFs: Fs->FsNomHz+dFsHz=2048000.0+0.0Hz=2048000.0Hz FsToggle->1
mir_sdr_SetRf: f->222064000.000Hz (int=25 frac=20 afc=0) fSynth:3553024000.000
mir_sdr_SetRf: Rf->RfNomHz+dRfHz+LifHz+Lif1Hz=222064000.0+0.0+0.0Hz+0.0Hz=222064000.0Hz RfToggle->1
mir_sdr_SetGr: GR->40[16,24,0,0] gRset->0x210 DCCALmode=4 DCCALspd=1 GrToggle->1
setToggleStates: initialising sampNum=0x0001fa36, gainSetting=0x210, FsToggle=1, RfToggle=1, GrToggle=1
setToggleStates: initialising Fs=2047999.978, Rf=222064000.000, Gr=40
mir_sdr_2500_Readback001Trim: readback = 0xe301611
mir_sdr_2500_Bypass001Trim: reg13=0x22d reg14=0x6c016e

----------------------------------------------------
-- Device identification
----------------------------------------------------
driver=SDRPlay
hardware=SDRPlay
mir_sdr_version=1.700000

----------------------------------------------------
-- Peripheral summary
----------------------------------------------------
Channels: 1 Rx, 0 Tx
Timestamps: NO
Other Settings:
* Low IF (when available) - Use low IF when available: 0.5MHz SR with 200 and 300khz BW, 1MHz SR with 600kHz BW, 2048kHz SR with 1536kHz BW
[key=use_low_if, default=true, type=bool]
* IF Mode - IF frequency in kHz
[key=if_mode, default=Zero-IF, type=string, options=(Zero-IF, 450kHz, 1620kHz, 2048kHz)]

----------------------------------------------------
-- RX Channel 0
----------------------------------------------------
Full-duplex: YES
Supports AGC: NO
Stream formats: CS16, CF32
Native format: CS16 [full-scale=2048]
Antennas: RX
Corrections: DC removal, DC offset
Full gain range: [0, 204] dB
TUNER gain range: [0, 102] dB
LNAT gain range: [0, 102] dB
Full freq range: [0.1, 2000] MHz
RF freq range: [0.1, 2000] MHz
Sample rates: [0.222222, 12] MHz
Filter bandwidths: [0.2, 8] MHz


Opened GQRX application. the SoapySDRUtil probe results are below. counted modules again and found them to be the same number 57. And a process check ps -ef | grep msi also returned no results.

ted@OldDog:~$ SoapySDRUtil --probe=sdrplay
######################################################
## Soapy SDR -- the SDR abstraction library
######################################################

Probe device sdrplay
mir_sdr_Init: starting hardware initialization
mir_sdr_Init: gR=40dB fs=2.048MHz rf=222.064MHz bw=1.536MHz if=0.000MHz

mir_sdr_usb_USB DLL: Revision 0.1.1

Warning: libusb_claim_interface() -6

Error: kernel driver not active - should have been able to claim interface!

mir_sdr_usb_Init: Timeout expired/failed to establish connection with the device

mir_sdr_2500_Init: mir_sdr_usb_Init() failed
mir_sdr_Init: mir_sdr_2500_Init() Error 1

----------------------------------------------------
-- Device identification
----------------------------------------------------
driver=null
hardware=null

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

I was attemting to install CubicSDR 0.1.3 then CubicSDR 0.1.4. I will attempt CubicSDR 0.1.20 alpha now.
Last edited by W7RTM on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

W7RTM
Posts: 10
Joined: Sun Jan 24, 2016 8:22 pm

Re: SDRPlay on Xubuntu No Joy

Post by W7RTM » Fri Mar 04, 2016 8:56 pm

CubicSDR.ccpp.o version CubicSDR-0.1.20-alpha will not compile on my system. I will submit a bug report with them.
Last edited by W7RTM on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

Post Reply