Trouble running demo software?

Discuss KerberosSDR - 4x Coherent RTL-SDR
Post Reply
samsonpwnz
Posts: 2
Joined: Fri Mar 22, 2019 3:07 pm

Trouble running demo software?

Post by samsonpwnz » Fri Mar 22, 2019 3:09 pm

I tried running kerberossdr demo software on a Pi3b+ with the provided image, but it really seemed to bog down the poor pi, and only took a few minutes before the whole applicated froze up. Then I installed Ubuntu 18.04 on a much more capable notebook and while I get a much better update rate, after a few minutes it locks the application up. Any suggestions?

rtlsdrblog
Site Admin
Posts: 2064
Joined: Mon Nov 19, 2012 11:54 pm

Re: Trouble running demo software?

Post by rtlsdrblog » Fri Mar 22, 2019 6:32 pm

The Pi3 is a bit slow, but I've never seen it freeze up. Did only the software freeze, or the whole system?

Make sure you turn off the spectrum and sync graphs when you're done with them. Plotting those graphs can be quite CPU intensive.

samsonpwnz
Posts: 2
Joined: Fri Mar 22, 2019 3:07 pm

Re: Trouble running demo software?

Post by samsonpwnz » Fri Mar 22, 2019 9:50 pm

Only the software seems to freeze. I do disable graphs when not needed, but during DOA is when it seems to lock up on me.

digistrat
Posts: 2
Joined: Fri Mar 22, 2019 9:50 pm

Re: Trouble running demo software?

Post by digistrat » Fri Mar 22, 2019 9:59 pm

I am getting errors when running setup_init.sh on x86 with 18.04.

No errors on any prior steps and all rcvrs test good.

Any suggestions?

Thanks

gcc -Wall -O3 -march=native rtl_daq.c -lpthread -lrtlsdr -o rtl_daq
rtl_daq.c: In function ‘main’:
rtl_daq.c:331:9: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable]
int rc;
^~
rtl_daq.c: In function ‘fifo_read_tf’:
rtl_daq.c:108:9: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&signal, sizeof(signal), 1, fd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rtl_daq.c:127:13: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&center_freq_read, sizeof(uint32_t), 1, fd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rtl_daq.c:128:13: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&sample_rate_read, sizeof(uint32_t), 1, fd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rtl_daq.c:129:13: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&gain_read, sizeof(int), 1, fd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rtl_daq.c:131:13: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&gain_read_2, sizeof(int), 1, fd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rtl_daq.c:132:13: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&gain_read_3, sizeof(int), 1, fd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rtl_daq.c:133:13: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&gain_read_4, sizeof(int), 1, fd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/cczSrBmp.o: In function `read_thread_entry':
rtl_daq.c:(.text+0x341): undefined reference to `rtlsdr_set_dithering'
/tmp/cczSrBmp.o: In function `main':
rtl_daq.c:(.text.startup+0x3ed): undefined reference to `rtlsdr_set_gpio'
rtl_daq.c:(.text.startup+0x408): undefined reference to `rtlsdr_set_gpio'
collect2: error: ld returned 1 exit status
Makefile:20: recipe for target 'rtl_daq' failed
make: *** [rtl_daq] Error 1

rtlsdrblog
Site Admin
Posts: 2064
Joined: Mon Nov 19, 2012 11:54 pm

Re: Trouble running demo software?

Post by rtlsdrblog » Sat Mar 23, 2019 8:22 am

digistrat wrote:
Fri Mar 22, 2019 9:59 pm
I am getting errors when running setup_init.sh on x86 with 18.04.

No errors on any prior steps and all rcvrs test good.

Any suggestions?

Thanks

gcc -Wall -O3 -march=native rtl_daq.c -lpthread -lrtlsdr -o rtl_daq
rtl_daq.c: In function ‘main’:
rtl_daq.c:331:9: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable]
int rc;
^~
rtl_daq.c: In function ‘fifo_read_tf’:
rtl_daq.c:108:9: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&signal, sizeof(signal), 1, fd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rtl_daq.c:127:13: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&center_freq_read, sizeof(uint32_t), 1, fd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rtl_daq.c:128:13: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&sample_rate_read, sizeof(uint32_t), 1, fd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rtl_daq.c:129:13: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&gain_read, sizeof(int), 1, fd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rtl_daq.c:131:13: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&gain_read_2, sizeof(int), 1, fd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rtl_daq.c:132:13: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&gain_read_3, sizeof(int), 1, fd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rtl_daq.c:133:13: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&gain_read_4, sizeof(int), 1, fd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/cczSrBmp.o: In function `read_thread_entry':
rtl_daq.c:(.text+0x341): undefined reference to `rtlsdr_set_dithering'
/tmp/cczSrBmp.o: In function `main':
rtl_daq.c:(.text.startup+0x3ed): undefined reference to `rtlsdr_set_gpio'
rtl_daq.c:(.text.startup+0x408): undefined reference to `rtlsdr_set_gpio'
collect2: error: ld returned 1 exit status
Makefile:20: recipe for target 'rtl_daq' failed
make: *** [rtl_daq] Error 1
That means that you haven't installed the KerberosSDR RTL-SDR drivers. See the "Install RTL-SDR-Kerberos Drivers" step on the guide.

If you did install them, then you may not have started from a clean install and it's probably conflicting with some older drivers. I'd suggest running an apt-get remove rtl-sdr and seeing if that helps.

digistrat
Posts: 2
Joined: Fri Mar 22, 2019 9:50 pm

Re: Trouble running demo software?

Post by digistrat » Sat Mar 23, 2019 1:54 pm

Tried to remove and re-install drivers as you suggested but getting exact same errors


rtlsdrblog wrote:
Sat Mar 23, 2019 8:22 am
digistrat wrote:
Fri Mar 22, 2019 9:59 pm
I am getting errors when running setup_init.sh on x86 with 18.04.

No errors on any prior steps and all rcvrs test good.

Any suggestions?

Thanks

gcc -Wall -O3 -march=native rtl_daq.c -lpthread -lrtlsdr -o rtl_daq
rtl_daq.c: In function ‘main’:
rtl_daq.c:331:9: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable]
int rc;
^~
rtl_daq.c: In function ‘fifo_read_tf’:
rtl_daq.c:108:9: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&signal, sizeof(signal), 1, fd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rtl_daq.c:127:13: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&center_freq_read, sizeof(uint32_t), 1, fd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rtl_daq.c:128:13: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&sample_rate_read, sizeof(uint32_t), 1, fd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rtl_daq.c:129:13: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&gain_read, sizeof(int), 1, fd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rtl_daq.c:131:13: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&gain_read_2, sizeof(int), 1, fd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rtl_daq.c:132:13: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&gain_read_3, sizeof(int), 1, fd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rtl_daq.c:133:13: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&gain_read_4, sizeof(int), 1, fd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/cczSrBmp.o: In function `read_thread_entry':
rtl_daq.c:(.text+0x341): undefined reference to `rtlsdr_set_dithering'
/tmp/cczSrBmp.o: In function `main':
rtl_daq.c:(.text.startup+0x3ed): undefined reference to `rtlsdr_set_gpio'
rtl_daq.c:(.text.startup+0x408): undefined reference to `rtlsdr_set_gpio'
collect2: error: ld returned 1 exit status
Makefile:20: recipe for target 'rtl_daq' failed
make: *** [rtl_daq] Error 1
That means that you haven't installed the KerberosSDR RTL-SDR drivers. See the "Install RTL-SDR-Kerberos Drivers" step on the guide.

If you did install them, then you may not have started from a clean install and it's probably conflicting with some older drivers. I'd suggest running an apt-get remove rtl-sdr and seeing if that helps.

rtlsdrblog
Site Admin
Posts: 2064
Joined: Mon Nov 19, 2012 11:54 pm

Re: Trouble running demo software?

Post by rtlsdrblog » Sat Mar 23, 2019 9:23 pm

Maybe you also installed librtlsdr-dev via apt-get? Try removing that too.

If that doesn't work i'd suggest searching your system for old librtlsdr files, and deleting them all first.

There is a driver conflict somewhere on your system, so finding and deleting those old installs should help.

Post Reply