SoapySDR does not stream IQ data

176 views
Skip to first unread message

Paulh002

unread,
Aug 3, 2021, 8:51:15 PM8/3/21
to Radioberry
When I use SoapyRadioberry driver I receive incorrect IQ data.
Only the Q is constant 0. I changed the SoapyRadioberry driver to print the I and the Q.
I is 0.037 in the sample and Q 0 and that is for all samples.
I use the dev version of driver and gateware.

nr_samples 378 sample: 4 190 243 0 0 0
samples 63 0.037077 0.000000 

73,
Paul

Radioberry

unread,
Aug 4, 2021, 3:31:57 AM8/4/21
to Radioberry

Paul,


The soapy driver for radioberry is a very basic version. Supporting only 48K sampling rate and only RX.

It is there to support openwebrx (see wiki)

Also pihpsdr compiled with soapy you can have the RX mode.


I decided some time ago to make a variant gateware of HL-2.

The gateware is following the protocol as described at:



In the implementation of this gateware and the driver i added an additional byte for specific rb control info.


see  the frimware:

void send_control(unsigned char command) {

....

// if temperature could not be measured the pa is disabled

rb_info.rb_command = ( (pa_temp_ok ? 0x04 : 0x00) | ((CWX << 1) & 0x02) | (running & 0x01) );

rb_info.command = command;

rb_info.command_data = command_data;

//fprintf(stderr, "RB-Command = %02X Command = %02X command_data = %08X\n", rb_info.rb_command, command, command_data);



Hope this helps.


73 Johan
PA3GSB




Op woensdag 4 augustus 2021 om 02:51:15 UTC+2 schreef paul.hol...@gmail.com:

Paulh002

unread,
Aug 4, 2021, 10:03:33 AM8/4/21
to Radioberry
Hi Johan,

I found the commands, took some time to understand how they are build up.
I want to change the soapysdr driver so it complies more to generic use.
The only thing i cannot find now is why the gateware send Q data as 0. 
I more or less send the same commands as SDRConsole does to the firmware, but still get 0 for Q data.
First I thought it was because the setgain in soapysdr set also the puresignal bit, but that does not do the trick.
Do you have any thoughts on this?

Regards,
Paul

Op woensdag 4 augustus 2021 om 09:31:57 UTC+2 schreef Radioberry:

pa3gsb

unread,
Aug 5, 2021, 2:35:26 AM8/5/21
to Radioberry
Paul,

Based on your story i can not be of much help; i need more details.


In your code i did not found the soapy code...

Using the fork of the radioberry github you can do the changes and do a pull request to the main repo.

For getting the overview:


if you installed the radioberry using the shell scripts the first thing to do is:

unloading the firmware : sudo systemctl stop radioberry 

unloading kernel driver: sudo modprobe -r radioberry
loading kernel driver: sudo modprobe -radioberry (during start the gateware is loaded)


We can make a small program to connect to the soapy for testing...i think i have seen a GNU radio plugin for soapy...maybe also usefull.




73 Johan
PA3GSB


Op woensdag 4 augustus 2021 om 16:03:33 UTC+2 schreef paul.hol...@gmail.com:

Paulh002

unread,
Aug 12, 2021, 3:13:22 PM8/12/21
to Radioberry
Can you check some items? and list them here?
1) check registration of your radioberry on: http://www.pa3gsb.nl/radioberry/api/read.php

2) check if radioberry driver is available
ls -l /dev/radioberry
3) check the version of radioberry driver
lsmod | grep radioberry

3) start radioberry software manualy (first stop it) and show welcome screen, does it state version of gateware?

4) show version of radioberry firmware 
ls -l /usr/local/bin/radioberry 

5) show driver messages, execute in a seperate ssh window  dmesg -wH & and check if you get error messages when starting the firmware
dmesg -wH &

$ sudo systemctl start radioberry
[  +4.701506] inside radioberry_open function 
[  +4.701506] inside radioberry_open function 


Op donderdag 5 augustus 2021 om 08:35:26 UTC+2 schreef pa3gsb:
Reply all
Reply to author
Forward
0 new messages