PhantomSDR Support Forum

General Category => PhantomSDR Bugs => Topic started by: Martin G8JNJ on Oct 09, 2024, 01:21 PM

Title: How long does yours run for ?
Post by: Martin G8JNJ on Oct 09, 2024, 01:21 PM
I don't know if this is typical, by my RX888 / PhantomSDR-Plus combo, typically runs for less than 24 hours before it requires a manual restart.

I'm thinking of adding a cron job to regularly restart it, as in its current state it's not really usable.

Are others experiencing this, or is it just me ?

Regards,

Martin



Title: Re: How long does yours run for ?
Post by: 9a7aof on Oct 09, 2024, 02:48 PM
I have problem with RSP1A and PhantomSDR+ (SoapySDR and sdrplay)

My websdr crontab is:
#start-rsp1a.sh
#-------------------
@reboot /bin/bash -lc 'cd /home/websdr/PhantomSDR-Plus/ && ./start-rsp1a.sh'
#-------------------
#

and root crontab is (same computer):

#-------------------------
@reboot /bin/bash -lc 'sleep 150 && intel_backlight 0'
#-------------------------
14 3 * * * /usr/sbin/reboot
#-------------------------

I have Intel video card and linux boot without graphical mode.

First line set black screen 150 seconds after boot system.
Second line set reboot to 03:14 AM without any intervention.

Good Luck!

Darko, 9a7aof
Title: Re: How long does yours run for ?
Post by: Martin G8JNJ on Oct 09, 2024, 03:55 PM
Hi Darko,

If I want to reset it regularly, say every hour (exact time period to be decided) would it be better doing this using crontab -e or editing the specific /etc/cron.[hourly |daily |weekly |monthly] ?

Regards,

Martin
Title: Re: How long does yours run for ?
Post by: Bas ON5HB on Oct 09, 2024, 04:32 PM
You can give the same comnmand, but on time.
As the 'start-script' also kills running programs and after restarts the driver + websdr.

Those killall commands do that.

You do that also with crontab -e

So:

00 * * * * /bin/bash -lc 'cd /home/websdr/PhantomSDR-Plus/ && ./start-rsp1a.sh'

However, if your RX888 runs less then 24 hours, your toml may be wrongly configured.

Mine never needs a restart, but took me a lot of time to get the toml-settings correctly.
Before it crashed often. Not anymore.

Title: Re: How long does yours run for ?
Post by: Martin G8JNJ on Oct 09, 2024, 10:10 PM
Hi Bas,

Thanks for that. I now have a crontab job running, and I'll adjust the timing once I get a better feel for the frequency with which it is required.

I suspect the problem is that I'm running the sample rate right on the edge of reliability (95-97% cpu), in order to incorporate the 40MHz (8m) band, and I'm pretty sure this is causing the streamer to drop out occasionally.

Ideally, I'd like to incorporate some sort of proper watchdog for long term reliability, but I don't mind it restarting regularly, as it will kick any users who are not actively monitoring the websdr, but have left their browser running.

This is important to me, as I'm running on a metered internet connection, and don't want to waste bandwidth.

Regards,

Martin
Title: Re: How long does yours run for ?
Post by: HB9RYZ on Oct 11, 2024, 11:47 PM
My PhantomSDR Plus is running now 14 days without a reboot :-)
http://rigi.dyndns-remote.com:8074
73 de HB9RYZ, Wolfgang