Browse Source

Fix delay at boot && mire Tx at boot

Pierre Bourdin 1 year ago
parent
commit
acafa55be0
2 changed files with 24 additions and 19 deletions
  1. 6 6
      sysconfig/pi
  2. 18 13
      tx_process/0_txmire

+ 6 - 6
sysconfig/pi

@@ -1,5 +1,5 @@
 # DO NOT EDIT THIS FILE - edit the master and reinstall.
-# (/tmp/crontab.a5oJCV/crontab installed on Mon Sep 11 22:13:56 2023)
+# (/tmp/crontab.IC6prj/crontab installed on Mon Sep 25 14:39:00 2023)
 # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
 # Edit this file to introduce tasks to be run by cron.
 # 
@@ -27,10 +27,10 @@
 
 @reboot	~/BallonSonde/active_nmea.py
 
-@reboot ~/BallonSonde/tx_process/0_txmire
+@reboot sleep 5; ~/BallonSonde/tx_process/0_txmire
 
-@reboot sleep 90; while true; do ~/BallonSonde/tx_process/3_transmit; done
-@reboot sleep 10; while true; do ~/BallonSonde/acquisition_process/1_capture; done
-@reboot sleep 60; while true; do ~/BallonSonde/convert_process/2_convert; done
+@reboot sleep 10; while true; do ~/BallonSonde/tx_process/3_transmit; done
+@reboot sleep 20; while true; do ~/BallonSonde/acquisition_process/1_capture; done
+@reboot sleep 30; while true; do ~/BallonSonde/convert_process/2_convert; done
 
-#done
+##done

+ 18 - 13
tx_process/0_txmire

@@ -1,17 +1,22 @@
 #!/bin/bash
 
+touch /ramfs/.canbetx
+cp /home/pi/BallonSonde/sound/mire.wav /ramfs/totx.wav
+
+# Old version stylez
 # Setup the GPIO4 as output for Tx
-raspi-gpio set 4 op && raspi-gpio set 4 dh
+#raspi-gpio set 4 op && raspi-gpio set 4 dh
+
+#raspi-gpio set 4 dl
+#sleep 1
+#echo " => Playing WAV file"
+#cd ~/trxamadrmv3_7/linux
+#./txwfal 0
+#sleep 1
+#aplay ~/BallonSonde/sound/annonce_start.wav
+#sleep 1
+#aplay ~/BallonSonde/sound/mire.wav
+#sleep 1
+#aplay ~/BallonSonde/sound/annonce_stop.wav
+#raspi-gpio set 4 dhmv /ramfs/totx.wav /ramfs/out.wav
 
-raspi-gpio set 4 dl
-sleep 1
-echo " => Playing WAV file"
-cd ~/trxamadrmv3_7/linux
-./txwfal 0
-sleep 1
-aplay ~/BallonSonde/sound/annonce_start.wav
-sleep 1
-aplay ~/BallonSonde/sound/mire.wav
-sleep 1
-aplay ~/BallonSonde/sound/annonce_stop.wav
-raspi-gpio set 4 dh