diff --git a/auto_rx/auto_rx.sh b/auto_rx/auto_rx.sh index fdfc3fc..6c901cd 100755 --- a/auto_rx/auto_rx.sh +++ b/auto_rx/auto_rx.sh @@ -6,7 +6,9 @@ # NOTE: If running this from crontab, make sure to set the appropriate PATH env-vars, # else utilities like rtl_power and rtl_fm won't be found. # -# WARNING - THIS IS DEPRECATED - PLEASE USE THE SYSTEMD SERVICE +# WARNING - THIS IS DEPRECATED - PLEASE USE THE SYSTEMD SERVICE OR DOCKER IMAGE +# See: https://github.com/projecthorus/radiosonde_auto_rx/wiki#451-option-1---operation-as-a-systemd-service-recommended +# Or: https://github.com/projecthorus/radiosonde_auto_rx/wiki/Docker # # change into appropriate directory @@ -15,18 +17,4 @@ cd $(dirname $0) # Clean up old files rm log_power*.csv -while true -do - python3 auto_rx.py - rc=$? - echo auto_rx.py exited with result code $rc - if [ $rc -gt 2 ] - then - echo "Performing power reset of SDR's" - python3 sdr_reset.py - fi - if [ $rc -eq 0 ] - then - break - fi -done +python3 auto_rx.py -t 180 \ No newline at end of file diff --git a/auto_rx/sdr_reset.png b/auto_rx/sdr_reset.png deleted file mode 100644 index 261fb4e..0000000 Binary files a/auto_rx/sdr_reset.png and /dev/null differ diff --git a/auto_rx/sdr_reset.py b/auto_rx/sdr_reset.py deleted file mode 100644 index 585d4e5..0000000 --- a/auto_rx/sdr_reset.py +++ /dev/null @@ -1,13 +0,0 @@ -import time -import serial - -# the SDR devices are attached to USB hub, with power routed though -# switches that are disabled when serial device is opened. So this script -# basically removes power from RTL-SDR devices for 3 seconds, then -# restores the power and waits for 3 more seconds for the USB subsystem to -# find them again - -p=serial.Serial("/dev/tty.usbserial-A5XK3RJT",9600) -time.sleep(3) -p.close() -time.sleep(3)