ubuntu 16.04: nothing works!

General discussions
IW2DHW
Posts: 59
Joined: Wed Sep 23, 2015 7:33 pm

Re: ubuntu 16.04: nothing works!

Post by IW2DHW » Tue Jul 19, 2016 5:44 pm

No change with 1.95.3 API version.

Downloaded 1.95.3 version, installed, recompiled all SoapySDR libraries and SoapySDRUtil --probe find only RTSDR deviceas with 1.95.1
Also Python program for testing crash Ubuntu 16.04

You are working on API but API is working with:
- 32 bit Linux
- 64 bit Linux and gr-osmosdr
- 64 bit Linux and new lua-radio

all with SDRPlay connected to an USB2 port (sorry, no USB3 port here)

The problem is in SoapySDRPlay module, not working from 1.8.1 API in Ubuntu 16.04 or, at last, on module interface to API

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

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

Re: ubuntu 16.04: nothing works!

Post by sdrplay » Tue Jul 19, 2016 7:58 pm

Hi Franco,

This is very frustrating - I have a standard 16.04 desktop installation and everything is working fine here.

Any chance I can get a remote login (TeamViewer for example) - I would like to understand the differences.

Best regards,

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

IW2DHW
Posts: 59
Joined: Wed Sep 23, 2015 7:33 pm

Re: ubuntu 16.04: nothing works!

Post by IW2DHW » Tue Jul 19, 2016 8:25 pm

It is a dual boot system, so, for working on 16.04, I need to reboot.

And I am going on vacation!!!

If this problem in unsolved after vacation end, I will try a Teamviewer session.
Meantime can I do some system inquiry for verify differences?

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

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

Re: ubuntu 16.04: nothing works!

Post by sdrplay » Tue Jul 19, 2016 9:27 pm

Hi Franco,

ldconfig -p

output would be useful. Also a listing of the /usr/local/lib and /usr/local/bin directories.

can you also remind me what you see as the output of SoapySDRUtil --probe=sdrplay and SoapySDRUtil --info

Does it make a difference if you use...

export LD_LIBRARY_PATH=/usr/local/lib

Thanks,

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

AH6DL
Posts: 49
Joined: Sun Jun 14, 2015 7:24 am

Re: ubuntu 16.04: nothing works!

Post by AH6DL » Wed Jul 20, 2016 2:37 am

I found why 1.95.3 wasn't working. The .run file format changed a bit and the PKGBUILD was creating the library with the wrong name. The old one was still there, so it was installing it. Deleting all the libsdrplay items and starting fresh gave me a missing file error that showed the problem. I renamed the file, repeated the process and installed.

With 1.95.3 I was able to successfully probe the SDRPlay using "SoapySDRUtil" with no errors.

The library worked fine, as with 1.95.1, on a USB 3.0 port.

Using a USB 2.0 caused a crash, but it wasn't as bad -- my laptop didn't reboot to a device list, but instead to Grub's OS selection.

Here is the terminal output from running CubicSDR with SDRPlay on a USB 3.0 port, starting with the SoapySDR init:

Code: Select all

[dl@t520 ~]$ CubicSDR
SoapySDR init..
        API Version: v0.5.0-g37c7ea4b
        ABI Version: v0.5-2
        Install root: /usr/local
        Loading modules... 
        Available factories...null, rtlsdr, sdrplay
  driver = sdrplay
  label = SDRPlay RSP
Make device 0
  mir_sdr_version=1.950000


Reporting enumeration complete.
SDR enumerator done.
SDR thread starting.
device init()
[INFO] Using format CF32.
Stream MTU: 68292
starting readLoop()
Terminating SDR thread..
readLoop() ended.
Obviously I couldn't do a screen capture when the computer crashed, but I did write down the results. Notice the differences:

Code: Select all

[dl@t520 ~]$ CubicSDR
SoapySDR init..
        API Version: v0.5.0-g37c7ea4b
        ABI Version: v0.5-2
        Install root: /usr/local
        Loading modules... 
        Available factories...null, rtlsdr, sdrplay
  driver = sdrplay
  label = SDRPlay RSP
Make device 0
  mir_sdr_version=1.950000
  
SDR enumerator made.
SDR thread starting.
device init()
[INFO] Using format CF32.
## COMPUTER CRASHED AT THIS POINT ##
Note there is no "Reporting enumeration complete." and instead of "SDR enumerator done" it printed "SDR enumerator made" This one is odd because I can't find "SDR enumerator made" in the source code. I don't think I copied it wrong, but I've got too much set up to crash my laptop right now to test it.

The [INFO} line is generated in SoapySDRPlay's Streaming.cpp so it is getting that far. The "Reporting enumeration complete" string is created in CubicSDR's SDREnumerator.cpp. There are clearly differences in what that code is returning. Hope this helps track it down!

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

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

Re: ubuntu 16.04: nothing works!

Post by sdrplay » Wed Jul 20, 2016 8:31 am

Here's what I get with 1.95.3 and running CubicSDR on 16.04...

Code: Select all

SDR enumerator starting.
SoapySDR init..
	API Version: v0.5.0-g37c7ea4b
	ABI Version: v0.5-2
	Install root: /usr/local
	Loading modules... 
	Available factories...null, sdrplay
  driver = sdrplay
  label = SDRPlay RSP
Make device 0
  mir_sdr_version=1.950000


Reporting enumeration complete.
SDR enumerator done.
SDR thread starting.
device init()
[INFO] Using format CF32.
Stream MTU: 68292
starting readLoop()
Terminating SDR thread..
readLoop() ended.
device deinit()
SDR thread done.
Terminating SDR post-processing thread..
Terminating All Demodulators..
Terminating Visual Processor threads..
I've just double checked my libusb...

Note: must make sure "sudo ldconfig" is up to date OR use export LD_LIBRARY_PATH=/usr/local/lib

locate libusb-1.0.so
/lib/x86_64-linux-gnu/libusb-1.0.so.0
/lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0
/usr/lib/x86_64-linux-gnu/libusb-1.0.so

ls -l /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0
-rw-r--r-- 1 root root 97056 Oct 23 2015 /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0

ldconfig -p | grep libusb
libusbmuxd.so.4 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libusbmuxd.so.4
libusb-1.0.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libusb-1.0.so.0
libusb-1.0.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libusb-1.0.so
libusb-0.1.so.4 (libc6,x86-64) => /lib/x86_64-linux-gnu/libusb-0.1.so.4

ldconfig -p | grep mirsdrapi
libmirsdrapi-rsp.so.1.95 (libc6,x86-64) => /usr/local/lib/libmirsdrapi-rsp.so.1.95
libmirsdrapi-rsp.so (libc6,x86-64) => /usr/local/lib/libmirsdrapi-rsp.so

Any differences with your setup?

Best regards,

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

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

Re: ubuntu 16.04: nothing works!

Post by sdrplay » Wed Jul 20, 2016 8:33 am

I am also concerned that a number of functions that the SoapySDRPlay is using have been deprecated in the latest SoapySDR release (0.5). I will ask the author for a definitive way of building 0.4 to see if that is the problem.

Best regards,

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

IW2DHW
Posts: 59
Joined: Wed Sep 23, 2015 7:33 pm

Re: ubuntu 16.04: nothing works!

Post by IW2DHW » Wed Jul 20, 2016 5:25 pm

sdrplay wrote:Hi Franco,

ldconfig -p

output would be useful. Also a listing of the /usr/local/lib and /usr/local/bin directories.

can you also remind me what you see as the output of SoapySDRUtil --probe=sdrplay and SoapySDRUtil --info

Does it make a difference if you use...

export LD_LIBRARY_PATH=/usr/local/lib

Thanks,

SDRplay Support
Here are answers:

ldconfig -p (very long and bigger of maximum message size)

ldconfig -p|grep libusb

Code: Select all

spin@franco:~$ ldconfig -p|grep libusb
	libusbpp-0.1.so.4 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libusbpp-0.1.so.4
	libusbmuxd.so.4 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libusbmuxd.so.4
	libusb-1.0.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libusb-1.0.so.0
	libusb-1.0.so.0 (libc6) => /lib/i386-linux-gnu/libusb-1.0.so.0
	libusb-1.0.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libusb-1.0.so
	libusb-0.1.so.4 (libc6,x86-64) => /lib/x86_64-linux-gnu/libusb-0.1.so.4
ldconfig -p | grep mirsdrapi

Code: Select all

spin@franco:~$ ldconfig -p | grep mirsdrapi
	libmirsdrapi-rsp.so.1.95 (libc6,x86-64) => /usr/local/lib/libmirsdrapi-rsp.so.1.95
	libmirsdrapi-rsp.so (libc6,x86-64) => /usr/local/lib/libmirsdrapi-rsp.so
ls -l /usr/local/lib

Code: Select all

spin@franco:~$ ls -l /usr/local/lib
totale 13104
lrwxrwxrwx 1 root root       31 nov 30  2015 libgnuradio-osmosdr.so -> libgnuradio-osmosdr.so.0.1.5git
-rw-r--r-- 1 root root   823568 lug 16 20:32 libgnuradio-osmosdr.so.0.1.5git
-rw-r--r-- 1 root root  5581692 lug 13 21:55 libliquid.a
-rw-r--r-- 1 root root  2942024 lug 13 21:55 libliquid.so
-rwxr-xr-x 1 root root   378280 lug 18 12:13 libluaradio.a
lrwxrwxrwx 1 root root       20 lug 18 12:13 libluaradio.so -> libluaradio.so.0.2.0
lrwxrwxrwx 1 root root       20 lug 18 12:13 libluaradio.so.0 -> libluaradio.so.0.2.0
-rwxr-xr-x 1 root root   270264 lug 18 12:13 libluaradio.so.0.2.0
lrwxrwxrwx 1 root root       36 lug 19 19:26 libmirsdrapi-rsp.so -> /usr/local/lib/libmirsdrapi-rsp.so.1
lrwxrwxrwx 1 root root       39 lug 19 19:26 libmirsdrapi-rsp.so.1 -> /usr/local/lib/libmirsdrapi-rsp.so.1.95
-rw-r--r-- 1 root root   302445 lug 19 19:26 libmirsdrapi-rsp.so.1.95
lrwxrwxrwx 1 root root       20 lug 14 18:19 libSoapySDR.so -> libSoapySDR.so.0.5-2
-rw-r--r-- 1 root root   270808 lug 19 19:28 libSoapySDR.so.0.5.0
lrwxrwxrwx 1 root root       20 lug 14 18:19 libSoapySDR.so.0.5-2 -> libSoapySDR.so.0.5.0
-rwxr-xr-x 1 root root  2811904 lug 14 21:50 libwdsp.so
drwxr-xr-x 2 root root     4096 lug 16 20:33 pkgconfig
drwxrwsr-x 4 root staff    4096 lug 13 21:30 python2.7
drwxr-xr-x 3 root root     4096 nov 30  2015 python3
drwxrwsr-x 3 root staff    4096 ott 21  2015 python3.5
drwxr-xr-x 4 root root     4096 lug 19 19:28 SoapySDR
ls -l /usr/local/bin

Code: Select all

spin@franco:~$ ls -l /usr/local/bin
totale 91188
-rw-r--r-- 1 root root       94 mar 20 17:11 90-ozy.rules
-rwxr-xr-x 1 root root 10147464 lug 13 22:16 CubicSDR
-rwxr-xr-x 1 root root   867792 mar 20 17:11 dspserver
-rwxr-xr-x 1 root root     1041 mar 20 17:11 exit24.png
-rwxr-xr-x 1 root root     1147 mar 20 17:11 fav24.png
-rwxr-xr-x 1 root root  6487352 lug 17 10:41 flarq
-rwxr-xr-x 1 root root 51412872 lug 17 10:41 fldigi
-rwxr-xr-x 1 root root    19208 mar 20 17:11 ghpsdr3-mgr.py
-rwxr-xr-x 1 root root  2253552 lug 16 21:46 gqrx
-rwxr-xr-x 1 root root     2343 mar 20 17:11 hiqsdr.png
-rwxr-xr-x 1 root root   231792 mar 20 17:11 hiqsdr-server
-rwxr-xr-x 1 root root   100024 mar 20 17:11 hiqsdr-test
-rwxr-xr-x 1 root root     2467 mar 20 17:11 hpsdr24.png
-rwxr-xr-x 1 root root   180568 mar 20 17:11 hpsdr-server
-rwxr-xr-x 1 root root     3280 lug 18 12:13 luaradio
-rwxr-xr-x 1 root root    32252 lug 16 20:31 osmocom_fft
-rwxr-xr-x 1 root root    17916 lug 16 20:31 osmocom_siggen
-rwxr-xr-x 1 root root     1706 lug 16 20:31 osmocom_siggen_nogui
-rwxr-xr-x 1 root root    11189 lug 16 20:31 osmocom_spectrum_sense
-rw-r--r-- 1 root root    21862 mar 20 17:11 ozyfw-sdr1k.hex
-rw-r--r-- 1 root root   119874 mar 20 17:11 Ozy_Janus.rbf
-rwxr-xr-x 1 root root     2467 mar 20 17:11 p24.png
-rwxr-xr-x 1 root root 20380912 mar 20 17:11 QtRadio
-rwxr-xr-x 1 root root      903 mar 20 17:11 reset24.png
-rwxr-xr-x 1 root root   131168 mar 20 17:11 rtlsdr-server
-rwxr-xr-x 1 root root   245864 mar 20 17:11 sdr1000
-rwxr-xr-x 1 root root   106096 mar 20 17:11 sdriq-server
-rwxr-xr-x 1 root root    66216 mar 20 17:11 sdriq-test
-rwxr-xr-x 1 root root    73776 lug 19 19:28 SoapySDRUtil
-rwxr-xr-x 1 root root   174480 mar 20 17:11 softrock
-rwxr-xr-x 1 root root     2467 mar 20 17:11 sr24.png
-rwxr-xr-x 1 root root     1069 mar 20 17:11 start24.png
-rwxr-xr-x 1 root root     2467 mar 20 17:11 stop24.png
-rwxr-xr-x 1 root root   199712 mar 20 17:11 widget-server
SoapySDRUtil --probe=sdrplay

Code: Select all

spin@franco:~$ SoapySDRUtil --probe=sdrplay
######################################################
## Soapy SDR -- the SDR abstraction library
######################################################

Probe device sdrplay
Found Fitipower FC0012 tuner
Found Fitipower FC0012 tuner

----------------------------------------------------
-- Device identification
----------------------------------------------------
  driver=RTLSDR
  hardware=RTLSDR
  origin=https://github.com/pothosware/SoapyRTLSDR
  rtl=0

----------------------------------------------------
-- Peripheral summary
----------------------------------------------------
  Channels: 1 Rx, 0 Tx
  Timestamps: NO
  Other Settings:
     * Direct Sampling - RTL-SDR Direct Sampling Mode
       [key=direct_samp, default=0, type=string, options=(0, 1, 2)]
     * Offset Tune - RTL-SDR Offset Tuning Mode
       [key=offset_tune, default=false, type=bool]
     * I/Q Swap - RTL-SDR I/Q Swap Mode
       [key=iq_swap, default=false, type=bool]

----------------------------------------------------
-- RX Channel 0
----------------------------------------------------
  Full-duplex: YES
  Supports AGC: YES
  Stream formats: CS8, CS16, CF32
  Native format: CS8 [full-scale=128]
  Stream args:
     * Buffer Size - Number of bytes per buffer, multiples of 512 only.
       [key=bufflen, units=bytes, default=16384, type=int]
     * Buffer Count - Number of buffers per read.
       [key=buffers, units=buffers, default=15, type=int]
  Antennas: RX
  Full gain range: [0, 29.1] dB
    TUNER gain range: [-9.9, 19.2] dB
  Full freq range: [21.999, 1100] MHz
    RF freq range: [22, 1100] MHz
    CORR freq range: [-0.001, 0.001] MHz
  Sample rates: [0.25, 3.2] MHz

SoapySDRUtil --info

Code: Select all

spin@franco:~$ SoapySDRUtil --info
######################################################
## Soapy SDR -- the SDR abstraction library
######################################################

API Version: v0.5.0-g5ce1b7e9
ABI Version: v0.5-2
Install root: /usr/local
Module found: /usr/local/lib/SoapySDR/modules0.5-2/librtlsdrSupport.so
Module found: /usr/local/lib/SoapySDR/modules0.5-2/libsdrPlaySupport.so
Loading modules... done
Available factories...null, rtlsdr, sdrplay, 
locate libusb-1.0.so

Code: Select all

spin@franco:~$ locate libusb-1.0.so
/lib/i386-linux-gnu/libusb-1.0.so.0
/lib/i386-linux-gnu/libusb-1.0.so.0.1.0
/lib/x86_64-linux-gnu/libusb-1.0.so.0
/lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0
/usr/lib/x86_64-linux-gnu/libusb-1.0.so
ls -l /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0

Code: Select all

spin@franco:~$ ls -l /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0
-rw-r--r-- 1 root root 97056 ott 23  2015 /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0
I can't see any difference, but......

Regards

Franco Spinelli
IW2DHW
Last edited by IW2DHW on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

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

Re: ubuntu 16.04: nothing works!

Post by sdrplay » Wed Jul 20, 2016 7:25 pm

Hi Franco,

Now I'm confused. Everything there seems to be working, is it not?

Can you explain what problems you are seeing? You said that only 1.95.1 works, but you have 1.95.3 installed and SoapySDRUtil is working?

Best regards,

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

IW2DHW
Posts: 59
Joined: Wed Sep 23, 2015 7:33 pm

Re: ubuntu 16.04: nothing works!

Post by IW2DHW » Wed Jul 20, 2016 8:25 pm

A reset for SoapySDRPlay problem under Ubuntu 16.04 question:

- on Ubuntu 16.04/64 bit don't work 1.8.x and 1.95.x API with SoapySDR family
- on Ubuntu 16.04/32 bit all is working with 1.95.x API and SoapySDR family
- on Ubuntu 16.04/64 bit 1.95.1 and 1.95.3 are working with gr-osmosdr and new luaradio and any app not using Soapy*

So the problem is in API and Soapy interaction.
I can crash my Ubuntu 16.04/64 bit with CubicSDR and also with my test Python program (see my message of 13 Jul 7.42 pm)

SoapySDRUtil is working but with incorrect results. As you can see in my previous message, with 2 devices it probe only RTLSDR device, but twice.

All crash are apparently after Soapy stream init, when stream is activated

Hope this help to clarify problem

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

Post Reply