Problem with LimeSDR Mini on Ubuntu 18.04

1,161 views
Skip to first unread message

Przemek Sadowski

unread,
Feb 17, 2019, 10:25:27 AM2/17/19
to Gqrx SDR
Hi,

I seem to have a problem I can't overcome. I have a LimeSDR mini connected to my Ubuntu 18.04 machine. Gqrx crashes on startup with an error message saying SoapySDR couldn't find the device. I have the device string set to "soapy=0,driver=lime".

linux; GNU C++ version 7.3.0; Boost_106501; UHD_003.010.003.000-0-unknown

Controlport disabled
No user supplied config file. Using "default.conf"
gr-osmosdr v0.1.x-xxx-xunknown (0.1.5git) gnuradio 3.7.11
built-in source types: file osmosdr fcd rtl rtl_tcp uhd plutosdr miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp 
FM demod gain: 3.05577
Resampling audio 96000 -> 48000
IQ DCR alpha: 1.04166e-05
Using audio backend: auto
BookmarksFile is /home/psadowsk/.config/gqrx/bookmarks.csv
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:0,0), Device or resource busy.

getDeviceList : Available input devices:
   "PlutoSDR"
   "RFSPACE SDR-IQ Receiver"
   "RFSPACE SDR-IP Receiver"
   "RFSPACE NetSDR Receiver"
   "RFSPACE Cloud-IQ Receiver"
   "hw:HDA Intel PCH,0"
   "default"
   "RTL-SDR Spectrum Server"
   "Red Pitaya Transceiver Server"
   "Complex Sampled (IQ) File"
Loading configuration from: "default.conf"
Configuration file: "/home/psadowsk/.config/gqrx/default.conf"
Crash guard triggered! 

Launching I/O device editor
firstTimeConfig
CIoConfig : Available output devices:
    0 : "Built-in Audio Analog Stereo"
    1 : "Built-in Audio Analog Stereo (echo cancelled with Built-in Audio Analog Stereo)"
saveConfig
Loading configuration from: "/home/psadowsk/.config/gqrx/default.conf"
Configuration file: "/home/psadowsk/.config/gqrx/default.conf"
gr-osmosdr v0.1.x-xxx-xunknown (0.1.5git) gnuradio 3.7.11
built-in source types: file osmosdr fcd rtl rtl_tcp uhd plutosdr miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp 
terminate called after throwing an instance of 'std::runtime_error'
  what():  SoapySDR::Device::make() no match
[1]    25791 abort (core dumped)  gqrx

SoapySDRUtil finds and makes an instance of the device without any problems:

 ~  SoapySDRUtil --find
######################################################
##     Soapy SDR -- the SDR abstraction library     ##
######################################################

linux; GNU C++ version 7.3.0; Boost_106501; UHD_003.010.003.000-0-unknown

Found device 0
  addr = 24607:1027
  driver = lime
  label = LimeSDR Mini [USB 3.0] 1D3AD53E2EE7B5
  media = USB 3.0
  module = FT601
  name = LimeSDR Mini
  serial = 1D3AD53E2EE7B5


 ~  SoapySDRUtil --make                    
######################################################
##     Soapy SDR -- the SDR abstraction library     ##
######################################################

Make device 
linux; GNU C++ version 7.3.0; Boost_106501; UHD_003.010.003.000-0-unknown

[INFO] Make connection: 'LimeSDR Mini [USB 3.0] 1D3AD53E2EE7B5'
[INFO] Reference clock 40.00 MHz
[INFO] Device name: LimeSDR-Mini
[INFO] Reference: 40 MHz
[INFO] LMS7002M calibration values caching Disable
  driver=FT601
  hardware=LimeSDR-Mini
  boardSerialNumber=0x1d3ad53e2ee7b5
  firmwareVersion=6
  gatewareVersion=1.29
  hardwareVersion=1
  protocolVersion=1

For LimeSuite and SoapySDR installation instructions from MyriadRF Wiki, Gqrx is installed from the PPA. 

What am I doing wrong?

Regards,
Przemek

Alexandru Csete

unread,
Feb 17, 2019, 11:34:28 AM2/17/19
to Gqrx
On Sun, Feb 17, 2019 at 4:25 PM Przemek Sadowski <prz...@zelazko.org> wrote:
>
> Hi,
>
> I seem to have a problem I can't overcome. I have a LimeSDR mini connected to my
> Ubuntu 18.04 machine. Gqrx crashes on startup with an error message saying SoapySDR
> couldn't find the device. I have the device string set to "soapy=0,driver=lime".
>
> ...
>
> What am I doing wrong?

Probably this:

> For LimeSuite and SoapySDR installation instructions from MyriadRF Wiki, Gqrx is installed from the PPA.

though I can't be sure since I do not remember the wiki instructions,
so, please provide a link.

In any case, it sounds like you have installed something from source,
which gqrx picks up instead of the correct limesuite library from the
PPA. I can see Ignas has updated the PPA a week ago, so it should
provide a fully functional setup.

Good luck.

Alex

Przemek Sadowski

unread,
Feb 17, 2019, 1:39:56 PM2/17/19
to Gqrx SDR


W dniu niedziela, 17 lutego 2019 17:34:28 UTC+1 użytkownik Alexandru Csete napisał:
 
> What am I doing wrong?

Probably this:

> For LimeSuite and SoapySDR installation instructions from MyriadRF Wiki, Gqrx is installed from the PPA.

though I can't be sure since I do not remember the wiki instructions,
so, please provide a link.

 
In any case, it sounds like you have installed something from source,
which gqrx picks up instead of the correct limesuite library from the
PPA. I can see Ignas has updated the PPA a week ago, so it should
provide a fully functional setup.

So far I'm trying to install everything from repos.

I purged everything related to lime, soapy, gnuradio etc. and proceeded to reinstall more cautiously. I think I noticed where the problem lies - installation of soapysdr-module-lms7 from the myriadrf PPAs pulls in libsoapysdr0.7, but Gqrx wants to install libsoapysdr0.6 and corresponding modules.  

I installed soapysdr-tools and soapysdr-module-lms7 in the 0.6 variety from the Ubuntu repo and now Gqrx does find my device, however probing it fails with:
[ERROR] MCU working too long 4
[ERROR] setBandwidth(Rx, 0, 30 MHz) Failed - 
terminate called after throwing an instance of 'std::runtime_error'
  what(): 
I get the same error while probing with SoapySDRUtil, so that is not Gqrx specific.

Will report if I get any further.

Przemek

Alexandru Csete

unread,
Feb 17, 2019, 4:23:20 PM2/17/19
to Gqrx
It could indeed be that gr-osmosdr was not rebuilt to use soapysdr
0.7. Unfortunately, it may be a while before I have time to rebuild
the packages, sorry.

Alex
> --
> You received this message because you are subscribed to the Google Groups "Gqrx SDR" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to gqrx+uns...@googlegroups.com.
> To post to this group, send email to gq...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/gqrx/216057cd-4936-408a-a936-afdbaa987733%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Damon Howe

unread,
Apr 19, 2019, 2:52:21 PM4/19/19
to Gqrx SDR
en1gma@M4800:~$ LimeUtil --info
######################################################
## LimeSuite information summary
######################################################

Version information:
  Library version:    v19.01.0-myriadrf1~bionic
  Build timestamp:    2019-02-08
  Interface version:    v2019.1.0
  Binary interface:    19.01-1

System resources:
  Installation root:    /usr
  User home directory:    /home/en1gma
  App data directory:    /home/en1gma/.local/share/LimeSuite
  Config directory:    /home/en1gma/.limesuite
  Image search paths:
     - /home/en1gma/.local/share/LimeSuite/images
     - /usr/share/LimeSuite/images

Supported connections:
   * FT601
   * FX3
   * PCIEXillybus

en1gma@M4800:~$ LimeUtil --find
  * [LimeSDR Mini, media=USB 3.0, module=FT601, addr=24607:1027, serial=1D3BD0C4F0CDFF]

en1gma@M4800:~$ SoapySDRUtil --info

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

Lib Version: v0.7.1-myriadrf1~ubuntu18.04
API Version: v0.7.1
ABI Version: v0.7
Install root: /usr
Search path:  /usr/lib/x86_64-linux-gnu/SoapySDR/modules0.7
Search path:  /usr/local/lib/x86_64-linux-gnu/SoapySDR/modules0.7               (missing)
Search path:  /usr/local/lib/SoapySDR/modules0.7                                (missing)
Module found: /usr/lib/x86_64-linux-gnu/SoapySDR/modules0.7/libHackRFSupport.so (0.3.3)
Module found: /usr/lib/x86_64-linux-gnu/SoapySDR/modules0.7/libLMS7Support.so   (19.01.0)
Module found: /usr/lib/x86_64-linux-gnu/SoapySDR/modules0.7/libairspySupport.so (0.1.2)
Module found: /usr/lib/x86_64-linux-gnu/SoapySDR/modules0.7/librtlsdrSupport.so (0.3.0)
Available factories... airspy, hackrf, lime, rtlsdr
Available converters...
 -  CF32 -> [CF32, CS16, CS8, CU16, CU8]
 -  CS16 -> [CF32, CS16, CS8, CU16, CU8]
 -  CS32 -> [CS32]
 -   CS8 -> [CF32, CS16, CS8, CU16, CU8]
 -  CU16 -> [CF32, CS16, CS8]
 -   CU8 -> [CF32, CS16, CS8]
 -   F32 -> [F32, S16, S8, U16, U8]
 -   S16 -> [F32, S16, S8, U16, U8]
 -   S32 -> [S32]
 -    S8 -> [F32, S16, S8, U16, U8]
 -   U16 -> [F32, S16, S8]
 -    U8 -> [F32, S16, S8]
en1gma@M4800:~$ SoapySDRUtil --find

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

Found device 0
  addr = 24607:1027
  driver = lime
  label = LimeSDR Mini [USB 3.0] 1D3BD0C4F0CDFF

  media = USB 3.0
  module = FT601
  name = LimeSDR Mini
  serial = 1D3BD0C4F0CDFF


en1gma@M4800:~$ sudo which gqrx
[sudo] password for en1gma:
/usr/bin/gqrx
en1gma@M4800:~$ sudo apt seach gqrx
E: Invalid operation seach
en1gma@M4800:~$ sudo apt search gqrx
Sorting... Done
Full Text Search... Done
gqrx-sdr/bionic,now 2.11.5-gqrx1~bionic amd64 [installed]
  Software defined radio receiver

en1gma@M4800:~$ sudo find / -name gqrx*
/etc/apt/trusted.gpg.d/gqrx_ubuntu_gqrx-sdr.gpg
/etc/apt/sources.list.d/gqrx-ubuntu-gqrx-sdr-bionic.list
/usr/bin/gqrx
/usr/share/man/man1/gqrx.1.gz
/usr/share/doc/gqrx-sdr
/usr/share/icons/hicolor/scalable/apps/gqrx.svg
/usr/share/applications/gqrx.desktop
find: ‘/run/user/1000/gvfs’: Permission denied
/var/lib/dpkg/info/gqrx-sdr.list
/var/lib/dpkg/info/gqrx-sdr.md5sums
/var/lib/app-info/icons/ubuntu-bionic-universe/64x64/gqrx-sdr_gqrx.png
/var/lib/app-info/icons/ubuntu-bionic-universe/48x48/gqrx-sdr_gqrx.png
/home/en1gma/.config/gqrx
/home/en1gma/.pybombs/recipes/gr-recipes/gqrx.lwr
en1gma@M4800:~$ gqrx -r

linux; GNU C++ version 7.3.0; Boost_106501; UHD_003.010.003.000-0-unknown

Controlport disabled
No user supplied config file. Using "default.conf"
"/home/en1gma/.config/gqrx/default.conf" deleted

gr-osmosdr v0.1.x-xxx-xunknown (0.1.5git) gnuradio 3.7.11
built-in source types: file osmosdr fcd rtl rtl_tcp uhd plutosdr miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp
FM demod gain: 3.05577
Resampling audio 96000 -> 48000
IQ DCR alpha: 1.04166e-05
Using audio backend: auto
BookmarksFile is /home/en1gma/.config/gqrx/bookmarks.csv

Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:1,0), Device or resource busy.


getDeviceList : Available input devices:
   "PlutoSDR"
   "RFSPACE SDR-IQ Receiver"
   "RFSPACE SDR-IP Receiver"
   "RFSPACE NetSDR Receiver"
   "RFSPACE Cloud-IQ Receiver"
   "hw:HDA Intel PCH,0"
   "default"
   "RTL-SDR Spectrum Server"
   "Red Pitaya Transceiver Server"
   "Complex Sampled (IQ) File"
Loading configuration from: "default.conf"
Configuration file: "/home/en1gma/.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: 2
Filter preset for mode 2 LO: -5000 HI: 5000
Generating taps for new filter   LO:-5000   HI:5000 TW:2000   Taps: 115
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 output devices:
    0 : "Built-in Audio Analog Stereo"
New input device selected: 10
  Label: "Other..."
  Devstr: ""
saveConfig
Loading configuration from: "/home/en1gma/.config/gqrx/default.conf"
Configuration file: "/home/en1gma/.config/gqrx/default.conf"

gr-osmosdr v0.1.x-xxx-xunknown (0.1.5git) gnuradio 3.7.11
built-in source types: file osmosdr fcd rtl rtl_tcp uhd plutosdr miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp
terminate called after throwing an instance of 'std::runtime_error'
  what():  SoapySDR::Device::make() no match
Aborted (core dumped)
en1gma@M4800:~$ uname -a
Linux M4800 4.18.0-18-generic #19~18.04.1-Ubuntu SMP Fri Apr 5 10:22:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
en1gma@M4800:~$ lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:    18.04
Codename:    bionic
en1gma@M4800:~$

im just going to reboot to windows 10 64bit where gqrx from pothos works just fine.
too bad i can get it to work correctly.
Reply all
Reply to author
Forward
0 new messages