Ubuntu 16.04 and SDRPlay don't work

General discussions
Post Reply
dl2fzn
Posts: 2
Joined: Sun Aug 07, 2016 2:20 am

Ubuntu 16.04 and SDRPlay don't work

Post by dl2fzn » Sun Aug 07, 2016 3:45 am

I tried to get the SDRPlay running unter Linux, but I have a lot of trouble.
No configurations works without problems or crachs.

1.)
sudo apt-get update && apt-get upgrade

2.)
Download the latest API from sdrplay and install it
(SDRplay_RSP_MiricsAPI-Linux-1.95.3.run)

3.)
I use the file Mirics_SDR_API_Linux_install_technote_r2p0.pdf for compile all necessary sources.
gqrx works and I get a spectrum from the device. But if I change the sample rate, the hole system freeze after a few seconds. I did not find a entry in the logs or a core dump.


4.)
I try to install CubeSDR. I use this description:
https://github.com/cjcliffe/CubicSDR/wiki/Build-Linux

The soapy + liquid-dsp + wxwidget seems to work. But if I start CubicSDR, I get an illegal instruction and CubicSDR crash.

I added the command "ulimit -c unlimited" and tries again.
I get a core file and if I open ddd ./CubicSDR core and start the debugger, I get a problem in liquid-dsp/src/nco/src/nco.c


5.)
I try to install soapy and gqrx via the ppa

See https://github.com/pothosware/pothos/wiki/Ubuntu & http://gqrx.dk/download/install-ubuntu

gqrx found a Mircis MSSI2500 default/Device String miri=0, but it is not possible to slelect an input rate and I did not get a spectrum or audio.
If I start gqrx in an terminal, I get this output:

->

Code: Select all

No user supplied config file. Using "default.conf"
gr-osmosdr v0.1.x-xxx-xunknown (0.1.5git) gnuradio 3.7.9
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy soapy redpitaya 
Using Volk machine: sse4_2_64_orc
FM demod gain: 1.52789
IQ DCR alpha: 1.04166e-05
Using audio backend: auto
New filter offset: 0 Hz
BookmarksFile is /home/xx/.config/gqrx/bookmarks.csv
Loading configuration from: "default.conf"
Configuration file: "/home/xx/.config/gqrx/default.conf"
No change in output device:
  old: 
  new: 
New FFT rate: 25 Hz
Requested bandwidth: 0 Hz
Actual bandwidth   : 0 Hz
setFreqCorr : 0 ppm
New LNB LO: 0 Hz
updateHWFrequencyRange failed fetching new hardware frequency range
New mode index: 0
Filter preset for mode 0 LO: 0 HI: 0
setFftRate to "25 fps"
New FFT rate: 25 Hz
New FFT rate: 25 Hz
setFftSize to "8192"
New FFT rate: 25 Hz
Launching I/O device editor
firstTimeConfig
CIoConfig : Available input devices:
    0 : "Mirics MSi2500 default (e.g. VTX3D card)"
    1 : "RFSPACE SDR-IQ Receiver"
    2 : "RFSPACE SDR-IP Receiver"
    3 : "RFSPACE NetSDR Receiver"
    4 : "RFSPACE Cloud-IQ Receiver"
    5 : "RTL-SDR Spectrum Server"
    6 : "Red Pitaya Transceiver Server"
    7 : "Complex Sampled (IQ) File"
CIoConfig : Available output devices:
    0 : "Built-in Audio Analog Stereo"
If I start gqrx agian, I get:

Code: Select all

..
Using device #0: Mirics MSi2500 default (e.g. VTX3D card)
usb_claim_interface error -6

FATAL: Failed to open mirisdr device.

Trying to fill up 1 missing channel(s) with null source(s).
This is being done to prevent the application from crashing
due to gnuradio bug #528.

********************
********************
--
msi2500 and msi001 are blacklisted.

Code: Select all

SoapySDRUtil -probe
######################################################
## Soapy SDR -- the SDR abstraction library
######################################################

Probe device 

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

----------------------------------------------------
-- 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: YES
  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
But the driver is not available:

Code: Select all

SoapySDRUtil -check=SDRPlay
######################################################
## Soapy SDR -- the SDR abstraction library
######################################################

Loading modules... done
Checking driver 'SDRPlay'... MISSING!
Between Step 3/4/5, I deleted all files via make uninstall or used apt-get autoremove and rebooted.
Any Idea how to get a running SDRPlay?

73 Andreas, DL2FZN
Attachments
Screenshot at 2016-08-06 18-44-45.png
Screenshot at 2016-08-06 18-44-45.png (36.92 KiB) Viewed 12164 times
Last edited by dl2fzn on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

DK7OB
Posts: 79
Joined: Thu Mar 24, 2016 7:14 am

Re: Ubuntu 16.04 and SDRPlay don't work

Post by DK7OB » Sun Aug 07, 2016 8:45 am

Hi Andreas,

getting SDRPlay to work in Ubuntu 16.04 is not easy. If possible, try with an USB3.0 port, this seems to work on most machines.
There is a patch for Soapysdrplay that fixes this, but you have to get soapysdrplay from git and build it from source.

I have cubicsdr running here, built from git about one week ago. I'll check with current git later.

I am using gqrx, so I am quite familiar with the problems here.

You say the miri modules are blacklisted, the gqrx startup messages seem to indicate that this is not working. What does lsmod say?

OTOH, gqrx needs some work anyway.

You can go 2 ways:

1. gr-osmosdr with SDRPlay support:
You have to build gr-osmosdr from source with the non free drivers enabled. Don't know by heart how to do this, please search the net.

2. gr-osmosdr via soapysdr/soapysdrplay
This is what I am doing. This needs a patch in gr-osmosdr so that the soapysdr devices are enumerated on startup.

Regards,
Wolf, DK7OB
Last edited by DK7OB on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

dl2fzn
Posts: 2
Joined: Sun Aug 07, 2016 2:20 am

Re: Ubuntu 16.04 and SDRPlay don't work

Post by dl2fzn » Sat Aug 13, 2016 4:44 am

Hello Wolf,

my PC didn't have USB 3, I have to buy an PCIe Card with Linux support.

But I found some reason, why CubicSDR crashes and a workaround.
On my PC the compiling of libliquid-dsp didn't work correct.
The makescript didn't link the libfft, but it is building the lib. The libfft is installed.

Last line of make
ldd local
ldd from skywave

Code: Select all

gcc -shared -Xlinker -soname=libliquid.so -o libliquid.so -Wl,-whole-archive libliquid.a -Wl,-no-whole-archive -lfec -lfftw3f -lm -lc 
fxxx:~/src/CubicSDR/liquid-dsp$ ldd libliquid.so
	linux-vdso.so.1 =>  (0x00007ffe98760000)
	libfec.so => /usr/local/lib/libfec.so (0x00007f2ca886d000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2ca8564000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2ca819a000)
	/lib64/ld-linux-x86-64.so.2 (0x0000556473579000)
xxxx:~/src/CubicSDR/liquid-dsp$ cd /usr/local/lib/
xxxx:/usr/local/lib$ ldd libliquid.so
	linux-vdso.so.1 =>  (0x00007fff35bdf000)
	libfftw3f.so.3 => /usr/lib/x86_64-linux-gnu/libfftw3f.so.3 (0x00007fe2f0a15000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fe2f070c000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe2f0342000)
	/lib64/ld-linux-x86-64.so.2 (0x00005636543d5000)
I use a Live CD Skywave for testing and copy the libliquid and the CubicSDR.
I put the both lib to /usr/local/lib and CubicSDR works.

GQRX works sometimes with the gr-osmosdr Soapy-driver.
But if it's crash, I have to disconnect SDRPlay form the USB-Port.

73 Andreas
Last edited by dl2fzn on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

Post Reply