Trying to install CubicSDR on RaspberryPi 3

General discussions
F5AHD
Posts: 5
Joined: Tue May 31, 2016 9:02 am

Trying to install CubicSDR on RaspberryPi 3

Postby F5AHD » Sun Nov 26, 2017 5:20 pm

Hello
I have installed the Pre-build SDRPlay Image "SDRplay_RPi3_V0.1.img" on my raspberry, and tested the pre-loaded CubicSDR package.

The only thing i can do with these software is testing the connection with SDRplay. So far, my SDRPlay RSP1 has been recognized, nothing more.

As i want to have a GUI like those displayed in CubicSDR web pages, i tried to build a new version, following all the steps described in your document "Non Windows Work Flow" from the step 1 (download of "SDRPlay-RSP-api-RPi-2.11.1.run") to step 6.3 (build of CubicSDR).

Each step has been executed carefully with no error found.

Now CubicSDR starts exactly the same test program described above, nothing has changed.

So the stupid questions are :
- how to start the new program, i am pretty sure a new one has been build or where does the setup store the new program (keep in mind that not everyone is a RPi specialist).
- due to all the dependencies, it is a very long procedure (over 2 hours) to build the executable, why not have a executable for rpi to download on your site ?
- I tried to to the same setup for gqrx, but i was unlucky to find a step by step tutorial for this.

vy 73 de F5AHD, André
Last edited by F5AHD on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

F5AHD
Posts: 5
Joined: Tue May 31, 2016 9:02 am

Re: Trying to install CubicSDR on RaspberryPi 3

Postby F5AHD » Sun Nov 26, 2017 10:54 pm

Hi
Other question : did'nt find "./SDRplay_RSP_MiricsAPI-RPi-1.95.2.run" ???
See topic Raspberry Pi???
Vy 73 de F5AHD, André
Last edited by F5AHD on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

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

Re: Trying to install CubicSDR on RaspberryPi 3

Postby sdrplay » Mon Nov 27, 2017 2:40 am

The latest version of the RPi3 image has been released today and has the latest build of CubicSDR on there...

viewtopic.php?f=6&t=2705

Best regards,

SDRplay Support

Reason: No reason

F5AHD
Posts: 5
Joined: Tue May 31, 2016 9:02 am

Re: Trying to install CubicSDR on RaspberryPi 3

Postby F5AHD » Mon Nov 27, 2017 6:58 pm

Hello
Following your suggestion, i have installed the "SDRplay_RPi_0.2.img".
But now i have another problem : i cannot connect to RPi with ssh, i always get connection refused or connection failed.
I have no display, so ssh or remote desktop are the only way if have to connect the raspberry.

It is not a hardware connection issue.
I have gone back to "SDRplay_RPi3_V0.1.img" completed with the updates listed below and here the connection is ok, but CubicSDR does'nt work.
I get the first form with the device selection, where i can check that my SDRPlay is recognized. I select my device and click start. and that's all ...

List of updates
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get clean

For remote Desktop :
sudo apt-get install tightvncserver
sudo apt-get remove xrdp
sudo apt-get install xrdp

below you find the output in LXTerminal.

Vy 73 de F5AHD, André




** (CubicSDR:15654): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
Loading:: configuration file '/home/pi/.CubicSDR/config.xml'

Audio Device #0 hw:bcm2835 ALSA,0
Default Output? No
Default Input? No
Input channels: 0
Output channels: 2
Duplex channels: 0
Native formats:
16-bit signed integer.
Supported sample rates:
8000hz
9600hz
11025hz
16000hz
22050hz
32000hz
44100hz
48000hz


Audio Device #1 hw:bcm2835 ALSA,1
Default Output? No
Default Input? No
Input channels: 0
Output channels: 2
Duplex channels: 0
Native formats:
16-bit signed integer.
Supported sample rates:
44100hz
48000hz


RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (default), No such file or directory.


Audio Device #2 default
Default Output? No
Default Input? No
Input channels: 0
Output channels: 10000
Duplex channels: 0
Native formats:
8-bit signed integer.
16-bit signed integer.
24-bit signed integer.
32-bit signed integer.
32-bit float normalized between plus/minus 1.0.
64-bit float normalized between plus/minus 1.0.
Supported sample rates:
4000hz
5512hz
8000hz
9600hz
11025hz
16000hz
22050hz
32000hz
44100hz
48000hz
88200hz
96000hz
176400hz
192000hz

SDR enumerator starting.
SoapySDR init..
API Version: v0.6.0
ABI Version: v0.6
Install root: /usr/local
Loading modules...
Available factories...null, remote, sdrplay
[ERROR] SoapySSDPEndpoint::sendTo(udp://[ff02::c]:1900) = -1
sendto(udp://[ff02::c]:1900) [99: Cannot assign requested address]

mir_sdr_usb_GetDevices Dev0:vid=1df7 pid=2500 rev=0206 serno=B0001P0002 bus=001 port=002 devAvail=1
driver = sdrplay
label = SDRplay Dev0 RSP1 B0001P0002
Make device 0
mir_sdr_usb_GetDevices Dev0:vid=1df7 pid=2500 rev=0206 serno=B0001P0002 bus=001 port=002 devAvail=1
mir_sdr_usb_SetDeviceIdx idx=0 numDevices=1
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

Opened device with idVendor = 0x1df7 idProduct = 0x2500 fwVersion = 0x0206 busNum = 001 portNum = 002
mir_sdr_Init: starting hardware initialization
mir_sdr_Init: gR=60dB fs=2.000MHz rf=98.800MHz bw=1.536MHz if=0.000MHz
DownConvert: Enable=0 DecM=1 OutScale=0 (fs=2.000000 bw=1536 if=0)
mir_sdr_usb_USB DLL: Revision 0.1.1
mir_sdr_2500_Init: fnaddr = 2 detected, trying to change...
mir_sdr_2500_Init: fnaddr = 6
mir_sdr_2500_Init: adjusting squelch trim 0x1, rx gating enable 1, tx_trim 0, reg2 = 0x4801
initHw: Register7 = 0x000014
initRfFreqDependentHw(1): Tuner Register0 = 0x04f420
mir_sdr_SetFs: Sample Freq requested 2000000.000000
mir_sdr_SetFs: Fs->FsNomHz+dFsHz=2000000.0+0.0Hz=2000000.0Hz FsToggle->1
mir_sdr_SetRf: f->98800000.000Hz (int=20 frac=af0 afc=0) fSynth:3161600000.000
mir_sdr_SetRf: Rf->RfNomHz+dRfHz+LifHz+Lif1Hz=98800000.0+0.0+0.0Hz+0.0Hz=98800000.0Hz RfToggle->1
mir_sdr_SetGr: GR->60[36,24,0,0] gRset->0x224 DCCALmode=3 DCCALspd=0 GrToggle->1
No offset diff1=0x000000fc diff2=0x000000fc
No offset samp1=0x0000285e samp2=0x0000295a samp2=0x00002a56
bufOffset=0
setToggleStates: initialising sampNum=0x00017a02, gainSetting=0x224, FsToggle=1, RfToggle=0, GrToggle=1
setToggleStates: initialising Fs=2000000.000, Rf=98800000.000, Gr=60
mir_sdr_2500_Readback001Trim: readback = 0xd1c0212
mir_sdr_2500_Bypass001Trim: reg13=0x24d reg14=0x47002e
mir_sdr_api_version=2.100000
mir_sdr_hw_version=1
mir_sdr_usb_ReleaseDeviceIdx 0


Reporting enumeration complete.
SDR enumerator done.
mir_sdr_usb_GetDevices Dev0:vid=1df7 pid=2500 rev=0206 serno=B0001P0002 bus=001 port=002 devAvail=1
mir_sdr_usb_SetDeviceIdx idx=0 numDevices=1
Opened device with idVendor = 0x1df7 idProduct = 0x2500 fwVersion = 0x0206 busNum = 001 portNum = 002
mir_sdr_Init: starting hardware initialization
mir_sdr_Init: gR=60dB fs=2.000MHz rf=98.800MHz bw=1.536MHz if=0.000MHz
DownConvert: Enable=0 DecM=1 OutScale=0 (fs=2.000000 bw=1536 if=0)
mir_sdr_usb_USB DLL: Revision 0.1.1
mir_sdr_2500_Init: fnaddr = 2 detected, trying to change...
mir_sdr_2500_Init: fnaddr = 6
mir_sdr_2500_Init: adjusting squelch trim 0x1, rx gating enable 1, tx_trim 0, reg2 = 0x4801
initHw: Register7 = 0x000014
initRfFreqDependentHw(1): Tuner Register0 = 0x04f420
mir_sdr_SetFs: Sample Freq requested 2000000.000000
mir_sdr_SetFs: Fs->FsNomHz+dFsHz=2000000.0+0.0Hz=2000000.0Hz FsToggle->1
mir_sdr_SetRf: f->98800000.000Hz (int=20 frac=af0 afc=0) fSynth:3161600000.000
mir_sdr_SetRf: Rf->RfNomHz+dRfHz+LifHz+Lif1Hz=98800000.0+0.0+0.0Hz+0.0Hz=98800000.0Hz RfToggle->1
mir_sdr_SetGr: GR->60[36,24,0,0] gRset->0x224 DCCALmode=3 DCCALspd=0 GrToggle->1
setToggleStates: initialising sampNum=0x00017a02, gainSetting=0x224, FsToggle=1, RfToggle=1, GrToggle=0
setToggleStates: initialising Fs=2000000.000, Rf=98800000.000, Gr=60
mir_sdr_2500_Readback001Trim: readback = 0xd180212
mir_sdr_2500_Bypass001Trim: reg13=0x24d reg14=0x46002e
SDR thread starting.
device init()
[INFO] Using format CF32.
Device Stream MTU: 65536
mir_sdr_StreamInit()
mir_sdr_Init: starting hardware initialization
mir_sdr_Init: gR=40dB fs=2.048MHz rf=100.000MHz bw=1.536MHz if=0.000MHz
DownConvert: Enable=0 DecM=1 OutScale=0 (fs=2.048000 bw=1536 if=0)
mir_sdr_usb_USB DLL: Revision 0.1.1
mir_sdr_2500_Init: fnaddr = 2 detected, trying to change...
mir_sdr_2500_Init: fnaddr = 6
mir_sdr_2500_Init: adjusting squelch trim 0x1, rx gating enable 1, tx_trim 0, reg2 = 0x4801
initHw: Register7 = 0x000005
initRfFreqDependentHw(1): Tuner Register0 = 0x04f420
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->100000000.000Hz (int=21 frac=3e8 afc=0) fSynth:3200000000.000
mir_sdr_SetRf: Rf->RfNomHz+dRfHz+LifHz+Lif1Hz=100000000.0+0.0+0.0Hz+0.0Hz=100000000.0Hz RfToggle->1
mir_sdr_SetGr: GR->40[16,24,0,0] gRset->0x210 DCCALmode=3 DCCALspd=0 GrToggle->1
setToggleStates: initialising sampNum=0x0001f802, gainSetting=0x210, FsToggle=1, RfToggle=0, GrToggle=1
setToggleStates: initialising Fs=2047999.978, Rf=100000000.000, Gr=40
mir_sdr_RSP_SetGr: in: 40 1 1 0
mir_sdr_RSP_SetGr: GR->40[40,24,0,0] gRset->0x228 DCCALmode=3 DCCALspd=0 GrToggle->0
mir_sdr_RSP_SetGr: out: 40 64 1
mir_sdr_DecimateControl: 0 1 0
mir_sdr_DecimateControl: DecimateEnable=0, DecimateDecM=1, DecimateOutScale=0, DecimateRound[0]=0x00000000, DecimateRound[1]=0x00000000
mir_sdr_SetDcMode: DCCAL: mode->4 speedup->0
mir_sdr_SetDcTrackTime: DCTRK_TIM->63
DCcoeff=0.001500 adj_for_Fs=0.001465 Fs=2047999.978
AGCcoeff=0.290000 adj_for_Fs=0.283203 Fs=2047999.978
adj_for_PktSz=0.377604 PktSz=336
mir_sdr_DCoffsetIQimbalanceControl: DC:1 IQ:1
mir_sdr_AgcControl: 1 -30 0 0 0 0 1
mir_sdr_AgcControl: 1 -30 0 0 0 0 1
mir_sdr_DCoffsetIQimbalanceControl: DC:1 IQ:1
mir_sdr_AgcControl: 1 -30 0 0 0 0 1
mir_sdr_AgcControl: 1 -30 0 0 0 0 1
starting readLoop()
AGCcoeff=0.290000 adj_for_Fs=0.283203 Fs=2047999.978
adj_for_PktSz=0.377604 PktSz=336
mir_sdr_RSP_SetGr: ERROR: previous gain update not received (or timed out)
mir_sdr_RSP_SetGr: ERROR: previous gain update not received (or timed out)
mir_sdr_RSP_SetGr: ERROR: previous gain update not received (or timed out)
mir_sdr_RSP_SetGr: ERROR: previous gain update not received (or timed out)
mir_sdr_RSP_SetGr: ERROR: previous gain update not received (or timed out)
mir_sdr_RSP_SetGr: ERROR: previous gain update not received (or timed out)
mir_sdr_RSP_SetGr: ERROR: previous gain update not received (or timed out)
mir_sdr_RSP_SetGr: ERROR: previous gain update not received (or timed out)
mir_sdr_RSP_SetGr: ERROR: previous gain update not received (or timed out)
mir_sdr_RSP_SetGr: ERROR: previous gain update not received (or timed out)
mir_sdr_RSP_SetGr: ERROR: previous gain update not received (or timed out)
mir_sdr_RSP_SetGr: ERROR: previous gain update not received (or timed out)
mir_sdr_RSP_SetGr: ERROR: previous gain update not received (or timed out)
mir_sdr_RSP_SetGr: ERROR: previous gain update not received (or timed out)
mir_sdr_RSP_SetGr: ERROR: previous gain update not received (or timed out)
mir_sdr_RSP_SetGr: ERROR: previous gain update not received (or timed out)
mir_sdr_RSP_SetGr: ERROR: previous gain update not received (or timed out)
mir_sdr_RSP_SetGr: ERROR: previous gain update not received (or timed out)
mir_sdr_ReadPacket: Gain update confirmed: Gr=40dB GrToggle=0 gset=0x228
grChanged @ 103
mir_sdr_RSP_SetGr: in: -4 1 0 0
mir_sdr_RSP_SetGr: GR->36[36,24,0,0] gRset->0x224 DCCALmode=4 DCCALspd=0 GrToggle->1
mir_sdr_RSP_SetGr: out: 36 60 1
DCoffsetCorrection: switched to tracking mode diff=1 curr=1324.87 last=1323.35
mir_sdr_ReadPacket: Gain update confirmed: Gr=36dB GrToggle=1 gset=0x224
grChanged @ 528
mir_sdr_RSP_SetGr: in: -6 1 0 0
mir_sdr_RSP_SetGr: GR->30[30,24,0,0] gRset->0x21E DCCALmode=4 DCCALspd=0 GrToggle->0
mir_sdr_RSP_SetGr: out: 30 54 1
DCoffsetCorrection: switched to tracking mode diff=78 curr=2310.18 last=2231.86
mir_sdr_ReadPacket: Gain update confirmed: Gr=30dB GrToggle=0 gset=0x21e
grChanged @ 957
mir_sdr_RSP_SetGr: in: -8 1 0 0
mir_sdr_RSP_SetGr: GR->22[22,24,0,0] gRset->0x216 DCCALmode=4 DCCALspd=0 GrToggle->1
mir_sdr_RSP_SetGr: out: 22 46 1
DCoffsetCorrection: switched to tracking mode diff=40 curr=2722.89 last=2763.58
mir_sdr_ReadPacket: Gain update confirmed: Gr=22dB GrToggle=1 gset=0x216
grChanged @ 1218
mir_sdr_RSP_SetGr: in: -6 1 0 0
mir_sdr_RSP_SetGr: GR->20[20,24,0,0] gRset->0x214 DCCALmode=4 DCCALspd=0 GrToggle->0
mir_sdr_RSP_SetGr: out: 20 44 1
DCoffsetCorrection: switched to tracking mode diff=31 curr=2090.40 last=2058.86
mir_sdr_ReadPacket: Gain update confirmed: Gr=20dB GrToggle=0 gset=0x214
grChanged @ 1584
DCoffsetCorrection: switched to tracking mode diff=57 curr=1766.53 last=1824.46
Last edited by F5AHD on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

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

Re: Trying to install CubicSDR on RaspberryPi 3

Postby sdrplay » Mon Nov 27, 2017 9:05 pm

ssh was disabled as enabling it by default was a security issue.

To enable ssh, run raspi-config from a terminal, go to the advenced menu and enable the ssh server.

Best regards,

SDRplay Support

Reason: No reason

F5AHD
Posts: 5
Joined: Tue May 31, 2016 9:02 am

Re: Trying to install CubicSDR on RaspberryPi 3

Postby F5AHD » Tue Nov 28, 2017 5:56 am

Hello
I connected Rpi using my home tv, and i have done all needed configs for connecting.
Now connection is ok and CubicSDR runs fine with the last distribution, so the issue can be closed.
Many thanks for the help.
Vy 73 de F5AHD, André
Last edited by F5AHD on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

F5AHD
Posts: 5
Joined: Tue May 31, 2016 9:02 am

Re: Trying to install CubicSDR on RaspberryPi 3

Postby F5AHD » Tue Nov 28, 2017 6:42 am

Hello

Want to clarify a point about the display used.

My RPi is fitted with a Kuman 3.5 inches LCD display.

First try : LCD Display
The LCD Software works well with the standard Jessie distribution.
But crashes at the installation in the last SDRPlay distribution, LCD Display remains empty.

Second try : HDMI of my home TV
In this case CubicSDR works fine.

Last try : remote desktop over my Windows PC
In this case, i get only the first form with the device selection, and no error message in LXTerminal.

So the way i will go, is to install a small display (10 inches) with HDMI connector, and running CubicSDR on RPi.

Please close the issue.

Vy 73 de F5AHD, André
Last edited by F5AHD on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

djcleckie
Posts: 2
Joined: Wed Aug 08, 2018 7:20 pm

Re: Trying to install CubicSDR on RaspberryPi 3

Postby djcleckie » Thu Aug 09, 2018 6:02 pm

If you download SDRplay_RPi3_V0.3d.img from this website you get a working version of CubicSDR 0.2.2
It runs - a bit slow and jerky but certainly working. I expect it would be better with an RPi 3B+
I think the current version release version of CubicSDR is 0.2.4.

However the image you download from this website still runs under Raspbian 8 - Jessie.

As Raspbian 9 Stretch has been about for quite a while now and the advice is to upgrade to it I would like to get CubicSDR running under Raspbian V9.

There does not seem to be any arm or .deb install packages about?
Is there no alternative to downloading the sourcecode and compiling your own version?

73
Dave
GM4NFI
Last edited by djcleckie 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: Google [Bot] and 7 guests