update turnon scripts to store cal values
authorBdale Garbee <bdale@gag.com>
Thu, 20 Feb 2014 20:23:32 +0000 (13:23 -0700)
committerBdale Garbee <bdale@gag.com>
Thu, 20 Feb 2014 20:23:32 +0000 (13:23 -0700)
ao-bringup/turnon_telebt
ao-bringup/turnon_teledongle

index ef20e915f863ec1494bf624595b3e3b3bd898263..c4902f31ff68e5f938148cc9db6bddaf364f2bb9 100755 (executable)
@@ -45,7 +45,8 @@ read FREQ
 CAL_VALUE=`nickle -e "floor(434.55 / $FREQ * 1186611 + 0.5)"`
 
 echo "Programming flash with cal value " $CAL_VALUE
-$AOLOAD -D $DONGLE --cal $CAL_VALUE /usr/share/altos/stable/telebt-v1.0*.ihx $SERIAL
+$AOLOAD -D $DONGLE --cal $CAL_VALUE /usr/share/altos/telebt-v1.0*.ihx $SERIAL
 
 echo "Serial number "$SERIAL" programmed with RF cal value "$CAL_VALUE
+echo $SERIAL","$CAL_VALUE >> cal_values
 echo "Unplug debug cable, power cycle, cu to the board, confirm freq and record power"
index a11683dbb5eada2d6f294468a09172cb44c8c699..ddee5ee81e6fc89091c838554c6b6b5371b421b6 100755 (executable)
@@ -45,4 +45,5 @@ echo "Programming flash with cal value " $CAL_VALUE
 $AOLOAD -D 100 --cal $CAL_VALUE /usr/share/altos/teledongle-v0.2*.ihx $SERIAL
 
 echo "Serial number "$SERIAL" programmed with RF cal value "$CAL_VALUE
+echo $SERIAL","$CAL_VALUE >> cal_values
 echo "Unplug and replug USB, cu to the board, confirm freq and record power"