ubuntu 16.04: nothing works!

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

Re: ubuntu 16.04: nothing works!

Postby IW2DHW » Tue Jun 07, 2016 7:38 pm

Huub wrote:Hi,

I got CubicSDR with SDRPlay working on Ubuntu Mate 16.04 using the following procedure. Thought i'd share my experience.


I have done all your steps without success.

All your steps are also my steps until now. The only difference was on wxWidgets build.
All is working in compile pass and also in SoapySDRUtil pass.

But, after compiling CubicSDR without problems, Ubuntu 16.04 crash as usual after selecting SDRPlay device in popup window

I am using Ubuntu 16.04 (for test) with Unity interface.

I am now waiting new release of API, as promised by SDRPlay support.

Regards

Franco Spinelli
IW2DHW
Last edited by IW2DHW 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!

Postby IW2DHW » Wed Jun 22, 2016 7:34 pm

IW2DHW wrote:I am now waiting new release of API, as promised by SDRPlay support.


Other 2 weeks are gone and new API is yet unreleased.

Can we have a timing for this new API and for Ubuntu 16.04 support?

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: 948
Joined: Wed Jan 07, 2015 7:58 am

Re: ubuntu 16.04: nothing works!

Postby sdrplay » Wed Jun 22, 2016 8:32 pm

The API is going through testing at the moment, I don't expect it to be too much longer. It's difficult to be precise as and when issues are found. I am aware this is urgent and will produce the build as soon as I can.

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!

Postby IW2DHW » Tue Jul 12, 2016 11:44 am

Now new API 1.94 is done. Big step.

Some questions on this new API

Is 1.94 version compatible with current SoapySDRPlay?
Is 1.94 version compatible with Ubuntu 16.04?
If needed, when a new version of SoapySDRPlay?

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: 948
Joined: Wed Jan 07, 2015 7:58 am

Re: ubuntu 16.04: nothing works!

Postby sdrplay » Tue Jul 12, 2016 4:10 pm

Hi,

Yes
Yes
We're working on a new version of SoapySDRPlay, can't say when it will be done just yet. Sorry

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!

Postby IW2DHW » Wed Jul 13, 2016 5:42 pm

Tested as usual on Ubuntu 16.04 - 64 bit
API install OK and now libraries in /usr/local/lib are from new API 1.95.1

After this I have done a make clean; make; sudo make install for SoapySDR, SoapyRTLSDR and SoapySDRPlay
All without any error and now all libraries are updated to today date.

Now on CubicSDR. Same make clean, make. Ldd on CubicSDR show correct library link.

SoapySDRUtil --find show both devices
x64/CubicDSR find both devices and, after this, device choice is pop-up

With RTLSDR device CubicSDR run without any problem
With SDRPlay device I can see:

SDR thread starting
device init()
[INFO] using format CF32
Stream MTU: 68292
Starting readloop()

and after this Ubuntu crash with two keyboard led flashing (caps lock and last right led without label on my keyboard)

All as with previous API version

Other test done is with some Python code from SoapySDR examples

This is code:

Code: Select all

#!/usr/bin/python
import SoapySDR
from SoapySDR import * #SOAPY_SDR_ constants
import numpy #use numpy for buffers

#enumerate devices
results = SoapySDR.Device.enumerate()
for result in results: print(result)

#create device instance
#args can be user defined or from the enumeration result
args = dict(driver="sdrplay")
sdr = SoapySDR.Device(args)

#query device info
print("Antenne : ", sdr.listAntennas(SOAPY_SDR_RX, 0))
print("Gains : ", sdr.listGains(SOAPY_SDR_RX, 0))
print("Gains : ", sdr.getGain(SOAPY_SDR_RX, 0))
print("GainMode : ", sdr.hasGainMode(SOAPY_SDR_RX, 0))
print("GainMode : ", sdr.getGainMode(SOAPY_SDR_RX, 0))
print("SampleRate : ", sdr.getSampleRate(SOAPY_SDR_RX,0))
print("Bandwidth : ", sdr.getBandwidth(SOAPY_SDR_RX,0))
print("IQbalance : ", sdr.hasIQBalance(SOAPY_SDR_RX,0))
print("DCOffset : ", sdr.hasDCOffset(SOAPY_SDR_RX,0))
print("DCOffset : ", sdr.getDCOffset(SOAPY_SDR_RX,0))
print("DCOffsetMode : ", sdr.hasDCOffsetMode(SOAPY_SDR_RX,0))
print("DCOffsetMode : ", sdr.getDCOffsetMode(SOAPY_SDR_RX,0))
freqs = sdr.getFrequencyRange(SOAPY_SDR_RX, 0)
for freqRange in freqs: print(freqRange)

#apply settings
#sdr.setSampleRate(SOAPY_SDR_RX, 0, 1e6)
sdr.setFrequency(SOAPY_SDR_RX, 0, 89.3e6)

#setup a stream (complex floats)
rxStream = sdr.setupStream(SOAPY_SDR_RX, "CF32")
sdr.activateStream(rxStream) #start streaming

#create a re-usable buffer for rx samples
buff = numpy.array([0]*1024, numpy.complex64)

#receive some samples
for i in range(10):
    sr = sdr.readStream(rxStream, [buff], len(buff))
    print(sr.ret) #num samples or error code
    print(sr.flags) #flags set by receive operation
    print(sr.timeNs) #timestamp for receive buffer

#shutdown the stream
sdr.deactivateStream(rxStream) #stop streaming
sdr.closeStream(rxStream)


Also this test crash completely Ubuntu after device enumerate

After this test some questions:

- CubicSDR is working with RTLSDR: It is sufficient to say that it works?
- SDRPlay is correctly discovered by SoapySDRUtil and by CubicSDR: It is sufficient to say that API is working?
- There are other test that can I do for solving this problem?
- Can be a CubicSDR problem?

I need to upgrade to 16.04 for other applications, but I can't do this upgrade. CubicSDR is the only program for using SDRPlay in Linux!

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: 948
Joined: Wed Jan 07, 2015 7:58 am

Re: ubuntu 16.04: nothing works!

Postby sdrplay » Wed Jul 13, 2016 7:32 pm

I've just done a clean build of everything on Ubuntu 16.04 and I have CubicSDR working with the RSP fine.

I just followed all the instructions on here: https://github.com/cjcliffe/CubicSDR/wiki/Build-Linux

and it worked for me first time. Is that the guide you are using as well?

To answer your question though, SoapySDRUtil --probe=sdrplay should be enough to prove connectivity to the RSP.

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!

Postby IW2DHW » Thu Jul 14, 2016 7:51 am

Also my setup was made using CubicSDR guide but:

- my Ubuntu 16.04 is an upgrade from Ubuntu 15.10
- my setup for SoapySDR and CubicSDR is a git update from 6 months of test activity

For a new test I have removed all Soapy and Cubic items, redone all steps in Cubic setup guide and now

SoapySDRUtil --probe

show only my RTLSDR device!

I need to check all my setup, verify USB setup and, if needed, try a fresh start of Ubuntu 16.04 on a new disk partition.

I will upgrade here my progress and (possibly) my new problems.

Regards

Franco Spinelli
IW2DHW
Last edited by IW2DHW 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: nothing works!

Postby DK7OB » Thu Jul 14, 2016 9:24 am

Hello,

I can support Franco's observations in the way that also for me nothing has changed with the new API.

On my notebook HP Elitebook 8560p, sdrplay is working with two of the 4 USB ports. According to the notebook manual, the working ports are USB 3.0 ports. On the other port sdrplay crashes hard. Only 5 second power button brings it back to live. This is exactly the same behavior as with the old API.

I tested with gqrx and cubicsdr. I attach a screen shot with the cubicsdr startup. The sdrplay is detected fine, last line is "SDR enumerator done.". Notebook is still alive. Then I press "start", there are some more output lines until "SoapySDRPlay::readStream:404 rate=2.048e+06" and notebook is dead.

Image

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

Rebel
Posts: 20
Joined: Thu Jan 08, 2015 4:21 pm

Re: ubuntu 16.04: nothing works!

Postby Rebel » Thu Jul 14, 2016 11:49 am

Hi,

strange for me,
I just followed all the instructions on here: https://github.com/cjcliffe/CubicSDR/wiki/Build-Linux


I habe done exactly the same after installing the new API, everything compiled well. Both CubicSDR and GQRX working fine with RTLStick. After choosing SDRPlay in both programs Xubuntu 16.04 freezes immediately.

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


Return to “General”

Who is online

Users browsing this forum: No registered users and 13 guests