;;
esac
-../ao-tools/ao-cal-freq/ao-cal-freq --tty=$dev
+ao-cal-freq --tty=$dev
case $? in
0)
- calline=`./get-radio-cal $dev`
+ calline=`get-radio-cal $dev`
CAL_VALUE=`echo $calline | awk '{print $2}'`
CURRENT_FREQ=`echo $calline | awk '{print $4}'`
echo $SERIAL","$CAL_VALUE >> cal_values
#!/bin/sh
VERSION=4.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
PRODUCT=TeleBT
ALTOS_FILE=$REPO/telebt-v$VERSION-*.elf
echo "Testing $product $serial $dev"
echo ""
- ./test-igniters $dev --rplus=100 --rminus=27 --adcmax=4095 main drogue 3 0 1 2
+ test-igniters $dev --rplus=100 --rminus=27 --adcmax=4095 main drogue 3 0 1 2
echo""
echo "Testing baro sensor"
- ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+ ao-test-baro --tty="$dev"
case $? in
0)
FLASHSIZE=8388608
echo "Testing flash"
- ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+ ao-test-flash --tty="$dev" "$FLASHSIZE"
case $? in
0)
echo
ret=1
-../ao-tools/ao-list/ao-list | while read product serial dev; do
+ao-list | while read product serial dev; do
case "$product" in
"$PRODUCT-v$VERSION")
echo "Testing $product $serial $dev"
echo ""
- ./test-igniters $dev drogue main 0 1 2 3
+ test-igniters $dev drogue main 0 1 2 3
echo""
echo "Testing baro sensor"
- ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+ ao-test-baro --tty="$dev"
case $? in
0)
FLASHSIZE=8388608
echo "Testing flash"
- ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+ ao-test-flash --tty="$dev" "$FLASHSIZE"
case $? in
0)
sleep 0.25
- ./test-igniters-nowait "$dev" --rplus=100 --rminus=27 --adcmax=32767 drogue main
+ test-igniters-nowait "$dev" --rplus=100 --rminus=27 --adcmax=32767 drogue main
echo ""
echo "Testing baro sensor"
- ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+ ao-test-baro --tty="$dev"
if [ $? -ne 0 ]; then
echo -e '\e[31m'"$PRODUCT-$VERSION serial $serial failed"'\e[39m'
FLASHSIZE=1048576
echo "Testing flash"
- ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+ ao-test-flash --tty="$dev" "$FLASHSIZE"
if [ $? -ne 0 ]; then
echo -e '\e[31m'"$PRODUCT-$VERSION serial $serial failed"'\e[39m'
sleep 2
- ./test-igniters-nowait "$dev" drogue main
+ test-igniters-nowait "$dev" drogue main
echo ""
echo "Testing baro sensor"
- ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+ ao-test-baro --tty="$dev"
if [ $? -ne 0 ]; then
echo -e '\e[31m'"$PRODUCT-$VERSION serial $serial failed"'\e[39m'
FLASHSIZE=1048576
echo "Testing flash"
- ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+ ao-test-flash --tty="$dev" "$FLASHSIZE"
if [ $? -ne 0 ]; then
echo -e '\e[31m'"$PRODUCT-$VERSION serial $serial failed"'\e[39m'
sleep 2
- ./test-igniters-nowait "$dev" drogue main
+ test-igniters-nowait "$dev" drogue main
echo ""
echo "Testing baro sensor"
- ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+ ao-test-baro --tty="$dev"
if [ $? -ne 0 ]; then
echo -e '\e[31m'"$PRODUCT-$VERSION serial $serial failed"'\e[39m'
FLASHSIZE=1048576
echo "Testing flash"
- ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+ ao-test-flash --tty="$dev" "$FLASHSIZE"
if [ $? -ne 0 ]; then
echo -e '\e[31m'"$PRODUCT-$VERSION serial $serial failed"'\e[39m'
FLASHSIZE=8388608
echo "Testing flash"
- ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+ ao-test-flash --tty="$dev" "$FLASHSIZE"
echo ""
echo "Testing pressure sensor input"
- ../ao-tools/ao-test-pressure/ao-test-pressure --tty="$dev"
+ ao-test-pressure --tty="$dev"
case $? in
0)
echo "Testing $product $serial $dev"
- ./test-igniters $dev 0 1
+ test-igniters $dev 0 1
echo""
case $? in
while [ $pass != "y" ]; do
echo -n "Testing $igniter igniter. Press enter to continue..."
read foo < /dev/tty
- ../ao-tools/ao-test-igniter/ao-test-igniter --tty="$dev" $args $igniter
+ ao-test-igniter --tty="$dev" $args $igniter
case $? in
0)
while [ $pass != "y" ]; do
echo "Testing $igniter igniter."
- ../ao-tools/ao-test-igniter/ao-test-igniter --tty="$dev" $args $igniter
+ ao-test-igniter --tty="$dev" $args $igniter
case $? in
0)
FLASHSIZE=2097152
echo "Testing flash"
- ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+ ao-test-flash --tty="$dev" "$FLASHSIZE"
case $? in
0)
esac
echo "Testing GPS"
- ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev"
+ ao-test-gps --tty="$dev"
case $? in
0)
FLASHSIZE=2097152
echo "Testing flash"
- ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+ ao-test-flash --tty="$dev" "$FLASHSIZE"
case $? in
0)
esac
echo "Testing GPS"
- ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev"
+ ao-test-gps --tty="$dev"
case $? in
0)
FLASHSIZE=2097152
echo "Testing flash"
- ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+ ao-test-flash --tty="$dev" "$FLASHSIZE"
case $? in
0)
esac
echo "Testing GPS"
- ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev"
+ ao-test-gps --tty="$dev"
case $? in
0)
echo "Testing $product $serial $dev"
- ./test-igniters $dev main drogue 3 0 1 2
+ test-igniters $dev main drogue 3 0 1 2
echo""
echo "Testing baro sensor"
- ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+ ao-test-baro --tty="$dev"
case $? in
0)
FLASHSIZE=8388608
echo "Testing flash"
- ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+ ao-test-flash --tty="$dev" "$FLASHSIZE"
case $? in
0)
echo""
echo "Testing GPS"
- ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev"
+ ao-test-gps --tty="$dev"
case $? in
0)
echo "Testing $product $serial $dev"
- ./test-igniters $dev main drogue 3 0 1 2
+ test-igniters $dev main drogue 3 0 1 2
echo""
echo "Testing baro sensor"
- ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+ ao-test-baro --tty="$dev"
case $? in
0)
FLASHSIZE=8388608
echo "Testing flash"
- ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+ ao-test-flash --tty="$dev" "$FLASHSIZE"
case $? in
0)
echo""
echo "Testing GPS"
- ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev"
+ ao-test-gps --tty="$dev"
case $? in
0)
echo "Testing $product $serial $dev"
- ./test-igniters $dev main drogue 3 0 1 2
+ test-igniters $dev main drogue 3 0 1 2
echo""
echo "Testing baro sensor"
- ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+ ao-test-baro --tty="$dev"
case $? in
0)
FLASHSIZE=8388608
echo "Testing flash"
- ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+ ao-test-flash --tty="$dev" "$FLASHSIZE"
case $? in
0)
echo""
echo "Testing GPS"
- ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev"
+ ao-test-gps --tty="$dev"
case $? in
0)
echo "Testing $product $serial $dev"
- ./test-igniters $dev --rplus=100 --rminus=27 --adcmax=4095 main drogue 3 0 1 2
+ test-igniters $dev --rplus=100 --rminus=27 --adcmax=4095 main drogue 3 0 1 2
echo""
echo "Testing baro sensor"
- ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+ ao-test-baro --tty="$dev"
case $? in
0)
FLASHSIZE=8388608
echo "Testing flash"
- ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+ ao-test-flash --tty="$dev" "$FLASHSIZE"
case $? in
0)
echo""
echo "Testing GPS"
- ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev"
+ ao-test-gps --tty="$dev"
case $? in
0)
echo "Testing $product $serial $dev"
- ./test-igniters $dev --rplus=100 --rminus=27 --adcmax=4095 main drogue 3 0 1 2
+ test-igniters $dev --rplus=100 --rminus=27 --adcmax=4095 main drogue 3 0 1 2
echo""
echo "Testing baro sensor"
- ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+ ao-test-baro --tty="$dev"
case $? in
0)
FLASHSIZE=8388608
echo "Testing flash"
- ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+ ao-test-flash --tty="$dev" "$FLASHSIZE"
case $? in
0)
echo""
echo "Testing GPS"
- ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev"
+ ao-test-gps --tty="$dev"
case $? in
0)
echo "Testing $product $serial $dev"
- ./test-igniters $dev --rplus=100 --rminus=27 --adcmax=4095 main drogue 3 0 1 2
+ test-igniters $dev --rplus=100 --rminus=27 --adcmax=4095 main drogue 3 0 1 2
echo""
echo "Testing baro sensor"
- ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+ ao-test-baro --tty="$dev"
case $? in
0)
FLASHSIZE=8388608
echo "Testing flash"
- ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+ ao-test-flash --tty="$dev" "$FLASHSIZE"
case $? in
0)
echo""
echo "Testing GPS"
- ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev"
+ ao-test-gps --tty="$dev"
case $? in
0)
echo "Testing $product $serial $dev"
echo ""
- ./test-igniters "$dev" drogue main
+ test-igniters "$dev" drogue main
echo ""
echo "Testing baro sensor"
- ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+ ao-test-baro --tty="$dev"
case $? in
0)
FLASHSIZE=8388608
echo "Testing flash"
- ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+ ao-test-flash --tty="$dev" "$FLASHSIZE"
case $? in
0)
echo""
echo "Testing GPS"
- ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev"
+ ao-test-gps --tty="$dev"
case $? in
0)
echo "Testing $product $serial $dev"
echo ""
- ./test-igniters "$dev" --rplus=100 --rminus=27 --adcmax=4095 drogue main
+ test-igniters "$dev" --rplus=100 --rminus=27 --adcmax=4095 drogue main
echo ""
echo "Testing baro sensor"
- ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+ ao-test-baro --tty="$dev"
case $? in
0)
FLASHSIZE=8388608
echo "Testing flash"
- ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+ ao-test-flash --tty="$dev" "$FLASHSIZE"
case $? in
0)
echo""
echo "Testing GPS"
- ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev"
+ ao-test-gps --tty="$dev"
case $? in
0)
echo "Testing $product $serial $dev"
echo ""
- ./test-igniters "$dev" --rplus=100 --rminus=27 --adcmax=4095 drogue main
+ test-igniters "$dev" --rplus=100 --rminus=27 --adcmax=4095 drogue main
echo ""
echo "Testing baro sensor"
- ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+ ao-test-baro --tty="$dev"
case $? in
0)
FLASHSIZE=8388608
echo "Testing flash"
- ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+ ao-test-flash --tty="$dev" "$FLASHSIZE"
case $? in
0)
echo""
echo "Testing GPS"
- ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev"
+ ao-test-gps --tty="$dev"
case $? in
0)
echo "Testing $product $serial $dev"
echo ""
- ./test-igniters "$dev" --rplus=100 --rminus=27 --adcmax=4095 drogue main
+ test-igniters "$dev" --rplus=100 --rminus=27 --adcmax=4095 drogue main
echo ""
echo "Testing baro sensor"
- ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+ ao-test-baro --tty="$dev"
case $? in
0)
FLASHSIZE=524288
echo "Testing flash"
- ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+ ao-test-flash --tty="$dev" "$FLASHSIZE"
case $? in
0)
VERSION=1.0
PRODUCT=ChaosKey
+REPO=/usr/share/altos/mfg-fw
echo "ChaosKey v$VERSION Turn-On and Calibration Program"
echo "Copyright 2015 by Keith Packard. Released under GPL v2"
echo "\tChaosKey v$VERSION powered from USB"
echo
-FLASH_FILE=~/altusmetrumllc/Binaries/chaoskey-v1.0-all-*.bin
-#ALTOS_FILE=~/altusmetrumllc/Binaries/chaoskey-v1.0-*.elf
+FLASH_FILE=$REPO/chaoskey-v1.0-all-*.bin
$DFU_UTIL -a 0 -s 0x08000000:leave -D $FLASH_FILE || true
sleep 3
-./test-chaoskey
+test-chaoskey
exit $?
PRODUCT=EasyMega
VERSION=2.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
if [ -x /usr/bin/ao-flash-stm ]; then
FLASH_STM=/usr/bin/ao-flash-stm
failed=1
while [ $failed = 1 ]; do
- ../ao-tools/ao-cal-accel/ao-cal-accel $dev
+ ao-cal-accel $dev
failed=$?
done
echo 'E 1' > $dev
-./test-easymega
+test-easymega
exit $?
PRODUCT=EasyMega
-if [ -x ../ao-tools/ao-flash/ao-flash-stm ]; then
- STMLOAD=../ao-tools/ao-flash/ao-flash-stm
+if [ -x /usr/bin/ao-flash-stm ]; then
+ STMLOAD=/usr/bin/ao-flash-stm
else
echo "Can't find ao-flash-stm! Aborting."
exit 1
fi
-if [ -x ../ao-tools/ao-usbload/ao-usbload ]; then
- USBLOAD=../ao-tools/ao-usbload/ao-usbload
+if [ -x /usr/bin/ao-usbload ]; then
+ USBLOAD=/usr/bin/ao-usbload
else
echo "Can't find ao-usbload! Aborting."
exit 1
fi
VERSION=1.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
echo "Copyright 2014 by Bdale Garbee. Released under GPL v2"
sleep 2
-dev=`../ao-tools/ao-list/ao-list | awk '/'"$PRODUCT"'-v'"$VERSION"'/ { print $3; exit(0); }'`
+dev=`ao-list | awk '/'"$PRODUCT"'-v'"$VERSION"'/ { print $3; exit(0); }'`
case "$dev" in
/dev/tty*)
echo 'E 0' > $dev
-../ao-tools/ao-cal-accel/ao-cal-accel $dev || exit 1
+ao-cal-accel $dev || exit 1
echo 'E 1' > $dev
-./test-easymega-v1.0
+test-easymega-v1.0
exit $?
#!/bin/sh
-if [ -x ../ao-tools/ao-flash/ao-flash-lpc ]; then
- FLASH_LPC=../ao-tools/ao-flash/ao-flash-lpc
-elif [ -x /usr/bin/ao-flash-lpc ]; then
+if [ -x /usr/bin/ao-flash-lpc ]; then
FLASH_LPC=/usr/bin/ao-flash-lpc
else
echo "Can't find ao-flash-lpc! Aborting."
exit 1
fi
-if [ -x ../ao-tools/ao-usbload/ao-usbload ]; then
- USBLOAD=../ao-tools/ao-usbload/ao-usbload
-elif [ -x /usr/bin/ao-usbload ]; then
+if [ -x /usr/bin/ao-usbload ]; then
USBLOAD=/usr/bin/ao-usbload
else
echo "Can't find ao-usbload! Aborting."
VERSION=3.0
PRODUCT=EasyMini
+REPO=/usr/share/altos/mfg-fw
BASE=`echo $PRODUCT | tr 'A-Z' 'a-z'`
echo $FILE
#
# Use released versions of everything
#
-FLASH_FILE=~/altusmetrumllc/Binaries/loaders/easymini-v3.0-altos-flash-*.elf
-ALTOS_FILE=~/altusmetrumllc/Binaries/easymini-v3.0-*.elf
+FLASH_FILE=$REPO/loaders/easymini-v3.0-altos-flash-*.elf
+ALTOS_FILE=$REPO/easymini-v3.0-*.elf
echo $FLASH_LPC $FLASH_FILE
sleep 1
-./test-easymini-v3.0
+test-easymini-v3.0
exit $?
#!/bin/sh
-if [ -x ../ao-tools/ao-flash/ao-flash-lpc ]; then
- FLASH_LPC=../ao-tools/ao-flash/ao-flash-lpc
-elif [ -x /usr/bin/ao-flash-lpc ]; then
+if [ -x /usr/bin/ao-flash-lpc ]; then
FLASH_LPC=/usr/bin/ao-flash-lpc
else
echo "Can't find ao-flash-lpc! Aborting."
exit 1
fi
-if [ -x ../ao-tools/ao-usbload/ao-usbload ]; then
- USBLOAD=../ao-tools/ao-usbload/ao-usbload
-elif [ -x /usr/bin/ao-usbload ]; then
+if [ -x /usr/bin/ao-usbload ]; then
USBLOAD=/usr/bin/ao-usbload
else
echo "Can't find ao-usbload! Aborting."
VERSION=1.0
PRODUCT=EasyMini
+REPO=/usr/share/altos/mfg-fw
BASE=`echo $PRODUCT | tr 'A-Z' 'a-z'`
echo $FILE
#
# Use released versions of everything
#
-FLASH_FILE=~/altusmetrumllc/Binaries/loaders/easymini-v1.0-altos-flash-*.elf
-ALTOS_FILE=~/altusmetrumllc/Binaries/easymini-v1.0-*.elf
-
-#FLASH_FILE=../src/$BASE-v$VERSION/flash-loader/$BASE-v$VERSION-altos-flash-*.elf
-#ALTOS_FILE=../src/$BASE-v$VERSION/*.ihx
+FLASH_FILE=$REPO/loaders/easymini-v1.0-altos-flash-*.elf
+ALTOS_FILE=$REPO/easymini-v1.0-*.elf
echo $FLASH_LPC $FLASH_FILE
sleep 1
-./test-easymini-v1.0
+test-easymini-v1.0
exit $?
#!/bin/sh
-if [ -x ../ao-tools/ao-flash/ao-flash-lpc ]; then
- FLASH_LPC=../ao-tools/ao-flash/ao-flash-lpc
-elif [ -x /usr/bin/ao-flash-lpc ]; then
+if [ -x /usr/bin/ao-flash-lpc ]; then
FLASH_LPC=/usr/bin/ao-flash-lpc
else
echo "Can't find ao-flash-lpc! Aborting."
exit 1
fi
-if [ -x ../ao-tools/ao-usbload/ao-usbload ]; then
- USBLOAD=../ao-tools/ao-usbload/ao-usbload
-elif [ -x /usr/bin/ao-usbload ]; then
+if [ -x /usr/bin/ao-usbload ]; then
USBLOAD=/usr/bin/ao-usbload
else
echo "Can't find ao-usbload! Aborting."
VERSION=3
PRODUCT=EasyMotor
+REPO=/usr/share/altos/mfg-fw
BASE=`echo $PRODUCT | tr 'A-Z' 'a-z'`
echo $FILE
#
# Use released versions of everything
#
-FLASH_FILE=~/altusmetrumllc/Binaries/loaders/easymotor-v3-altos-flash-*.elf
-ALTOS_FILE=~/altusmetrumllc/Binaries/easymotor-v3-*.elf
+FLASH_FILE=$REPO/loaders/easymotor-v3-altos-flash-*.elf
+ALTOS_FILE=$REPO/easymotor-v3-*.elf
echo $FLASH_LPC $FLASH_FILE
failed=1
while [ $failed = 1 ]; do
- ../ao-tools/ao-cal-accel/ao-cal-accel $dev
+ ao-cal-accel $dev
failed=$?
done
sleep 1
-./test-easymotor-v3
+test-easymotor-v3
exit $?
fi
VERSION=1
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
PRODUCT=EasyTimer
echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
failed=1
while [ $failed = 1 ]; do
- ../ao-tools/ao-cal-accel/ao-cal-accel $dev
+ ao-cal-accel $dev
failed=$?
done
echo 'E 1' > $dev
-./test-easytimer
+test-easytimer
exit $?
fi
VERSION=4.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
PRODUCT=TeleBT
echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
CALFILE=cal-$SERIAL.txt
-../ao-tools/ao-cal-freq/ao-cal-freq --nosave --output=$CALFILE --tty=$dev
+ao-cal-freq --nosave --output=$CALFILE --tty=$dev
CAL_VALUE=`cat $CALFILE`
echo $SERIAL","$CAL_VALUE >> cal_values
+++ /dev/null
-#!/bin/sh
-
-if [ -x ../ao-tools/ao-load/ao-load ]; then
- AOLOAD=../ao-tools/ao-load/ao-load
-elif [ -x /usr/bin/ao-load ]; then
- AOLOAD=/usr/bin/ao-load
-else
- echo "Can't find ao-load! Aborting."
- exit 1
-fi
-
-if [ -x ../ao-tools/ao-rawload/ao-rawload ]; then
- RAWLOAD=../ao-tools/ao-rawload/ao-rawload
-elif [ -x /usr/bin/ao-rawload ]; then
- RAWLOAD=/usr/bin/ao-rawload
-else
- echo "Can't find ao-rawload! Aborting."
- exit 1
-fi
-
-echo "TeleBT v1.1 Turn-On and Calibration Program"
-echo "Copyright 2013 by Bdale Garbee. Released under GPL v2"
-echo
-echo "Expectations:"
-echo "\tTeleBT v1.1 powered from USB"
-echo "\t\twith TeleDonlge (on /dev/ttyACM0) cabled to debug header"
-echo "\t\twith coax from SMA to frequency counter"
-echo
-echo -n "TeleBT serial number: "
-read SERIAL
-
-echo $RAWLOAD
-
-case $USER in
- bdale)
- DONGLE=100
- ;;
- keithp)
- DONGLE=186
- ;;
- *)
- echo "Unknow user"
- exit 1
- ;;
-esac
-
-$RAWLOAD -D $DONGLE -r ao_led_blink.ihx
-echo "LEDs should be blinking"
-sleep 5
-
-$RAWLOAD -D $DONGLE -r ao_radio_xmit.ihx
-echo -n "Generating RF carrier. Please enter measured frequency: "
-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 ~/altusmetrumllc/Binaries/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"
fi
VERSION=3.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
echo "TeleBT v$VERSION Turn-On and Calibration Program"
echo "Copyright 2015 by Bdale Garbee. Released under GPL v2"
echo 'E 0' > $dev
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
echo 'E 1' > $dev
#!/bin/sh
-if [ -x ../ao-tools/ao-flash/ao-flash-lpc ]; then
- FLASH_LPC=../ao-tools/ao-flash/ao-flash-lpc
-elif [ -x /usr/bin/ao-flash-lpc ]; then
+if [ -x /usr/bin/ao-flash-lpc ]; then
FLASH_LPC=/usr/bin/ao-flash-lpc
else
echo "Can't find ao-flash-lpc! Aborting."
;;
esac
-BINARIES=$HOME/altusmetrumllc/Binaries
+BINARIES=/usr/share/altos/mfg-fw
LOADER="$BINARIES/loaders/$PRODUCT-v$VERSION-"*.elf
ALTOS="$BINARIES/$PRODUCT-v$VERSION"*.elf
CALFILE=cal-$SERIAL.txt
-../ao-tools/ao-cal-freq/ao-cal-freq --verbose --nosave --output=$CALFILE --tty=$dev
+ao-cal-freq --verbose --nosave --output=$CALFILE --tty=$dev
case $? in
0)
+++ /dev/null
-#!/bin/sh
-
-if [ -x ../ao-tools/ao-load/ao-load ]; then
- AOLOAD=../ao-tools/ao-load/ao-load
-elif [ -x /usr/bin/ao-load ]; then
- AOLOAD=/usr/bin/ao-load
-else
- echo "Can't find ao-load! Aborting."
- exit 1
-fi
-
-if [ -x ../ao-tools/ao-rawload/ao-rawload ]; then
- RAWLOAD=../ao-tools/ao-rawload/ao-rawload
-elif [ -x /usr/bin/ao-rawload ]; then
- RAWLOAD=/usr/bin/ao-rawload
-else
- echo "Can't find ao-rawload! Aborting."
- exit 1
-fi
-
-echo "TeleDongle v0.2 Turn-On and Calibration Program"
-echo "Copyright 2010 by Bdale Garbee. Released under GPL v2"
-echo
-echo "Expectations:"
-echo "\tTeleDongle v0.2 powered from USB"
-echo "\t\twith TIdongle (on /dev/ttyACM0) cabled to debug header"
-echo "\t\twith coax from SMA to frequency counter"
-echo
-echo -n "TeleDongle serial number: "
-read SERIAL
-
-echo $RAWLOAD
-
-case $USER in
- bdale)
- programmer=100
- ;;
- keithp)
- programmer=186
- ;;
-esac
-
-$RAWLOAD -D $programmer -r ao_led_blink.ihx
-echo "LEDs should be blinking"
-sleep 5
-
-$RAWLOAD -D $programmer -r ao_radio_xmit.ihx
-echo -n "Generating RF carrier. Please enter measured frequency: "
-read FREQ
-
-CAL_VALUE=`nickle -e "floor(434.55 / $FREQ * 1186611 + 0.5)"`
-
-echo "Programming flash with cal value " $CAL_VALUE
-$AOLOAD -D $programmer --cal $CAL_VALUE ~/altusmetrumllc/Binaries/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"
PRODUCT=TeleFireEight
VERSION=2.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
if [ -x /usr/bin/ao-flash-stm ]; then
FLASH_STM=/usr/bin/ao-flash-stm
esac
echo 'E 0' > $dev
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
echo 'E 1' > $dev
echo "$PRODUCT-v$VERSION" serial "$SERIAL" is ready for integration and testing
#!/bin/sh
-if [ -x ../ao-tools/ao-flash/ao-flash-lpc ]; then
- FLASH_LPC=../ao-tools/ao-flash/ao-flash-lpc
-elif [ -x /usr/bin/ao-flash-lpc ]; then
+if [ -x /usr/bin/ao-flash-lpc ]; then
FLASH_LPC=/usr/bin/ao-flash-lpc
else
echo "Can't find ao-flash-lpc! Aborting."
fi
PRODUCT=TeleGPS
+REPO=/usr/share/altos/mfg-fw
VERSION=3.0
BASE=`echo $PRODUCT | tr 'A-Z' 'a-z'`
echo $FILE
#
# Use released versions of everything
#
-FLASH_FILE=~/altusmetrumllc/Binaries/loaders/telegps-v3.0-altos-flash-*.elf
-ALTOS_FILE=~/altusmetrumllc/Binaries/telegps-v3.0-*.elf
+FLASH_FILE=$REPO/loaders/telegps-v3.0-altos-flash-*.elf
+ALTOS_FILE=$REPO/telegps-v3.0-*.elf
echo $FLASH_LPC $FLASH_FILE
esac
CALFILE=cal-$SERIAL.txt
-../ao-tools/ao-cal-freq/ao-cal-freq --output=$CALFILE --tty=$dev
+ao-cal-freq --output=$CALFILE --tty=$dev
CAL_VALUE=`cat $CALFILE`
echo $SERIAL","$CAL_VALUE >> cal_values
-./test-telegps-v3
+test-telegps-v3
exit $?
#!/bin/sh
-if [ -x ../ao-tools/ao-flash/ao-flash-lpc ]; then
- FLASH_LPC=../ao-tools/ao-flash/ao-flash-lpc
-elif [ -x /usr/bin/ao-flash-lpc ]; then
+if [ -x /usr/bin/ao-flash-lpc ]; then
FLASH_LPC=/usr/bin/ao-flash-lpc
else
echo "Can't find ao-flash-lpc! Aborting."
PRODUCT=TeleGPS
VERSION=1.0
+REPO=/usr/share/altos/mfg-fw
BASE=`echo $PRODUCT | tr 'A-Z' 'a-z'`
echo $FILE
#
# Use released versions of everything
#
-FLASH_FILE=~/altusmetrumllc/Binaries/loaders/telegps-v1.0-altos-flash-*.elf
-ALTOS_FILE=~/altusmetrumllc/Binaries/telegps-v1.0-*.elf
+FLASH_FILE=$REPO/loaders/telegps-v1.0-altos-flash-*.elf
+ALTOS_FILE=$REPO/telegps-v1.0-*.elf
echo $FLASH_LPC $FLASH_FILE
;;
esac
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
-./test-telegps-v1
+test-telegps-v1
exit $?
PRODUCT=TeleGPS
VERSION=2.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
#BASE=`echo $PRODUCT | tr 'A-Z' 'a-z'`
#echo $FILE
;;
esac
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
-./test-telegps-v2
+test-telegps-v2
exit $?
fi
VERSION=2.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
PRODUCT=TeleLCO
echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
echo 'E 0' > $dev
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
echo 'E 1' > $dev
fi
VERSION=6.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
PRODUCT=TeleMega
echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
echo 'E 0' > $dev
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
failed=1
while [ $failed = 1 ]; do
- ../ao-tools/ao-cal-accel/ao-cal-accel $dev
+ ao-cal-accel $dev
failed=$?
done
echo 'E 1' > $dev
-./test-telemega-v6.0
+test-telemega-v6.0
exit $?
fi
VERSION=1.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
echo "TeleMega v$VERSION Turn-On and Calibration Program"
echo "Copyright 2014 by Bdale Garbee. Released under GPL v2"
echo 'E 0' > $dev
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
-../ao-tools/ao-cal-accel/ao-cal-accel $dev
+ao-cal-accel $dev
echo 'E 1' > $dev
-./test-telemega-v1.0
+test-telemega-v1.0
exit $?
fi
VERSION=2.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
PRODUCT=TeleMega
echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
echo 'E 0' > $dev
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
failed=1
while [ $failed = 1 ]; do
- ../ao-tools/ao-cal-accel/ao-cal-accel $dev
+ ao-cal-accel $dev
failed=$?
done
echo 'E 1' > $dev
-./test-telemega-v2.0
+test-telemega-v2.0
exit $?
fi
VERSION=3.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
PRODUCT=TeleMega
echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
echo 'E 0' > $dev
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
failed=1
while [ $failed = 1 ]; do
- ../ao-tools/ao-cal-accel/ao-cal-accel $dev
+ ao-cal-accel $dev
failed=$?
done
echo 'E 1' > $dev
-./test-telemega-v3.0
+test-telemega-v3.0
exit $?
fi
VERSION=4.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
PRODUCT=TeleMega
echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
echo 'E 0' > $dev
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
failed=1
while [ $failed = 1 ]; do
- ../ao-tools/ao-cal-accel/ao-cal-accel $dev
+ ao-cal-accel $dev
failed=$?
done
echo 'E 1' > $dev
-./test-telemega
+test-telemega
exit $?
fi
VERSION=5.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
PRODUCT=TeleMega
echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
echo 'E 0' > $dev
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
failed=1
while [ $failed = 1 ]; do
- ../ao-tools/ao-cal-accel/ao-cal-accel $dev
+ ao-cal-accel $dev
failed=$?
done
echo 'E 1' > $dev
-./test-telemega-v5.0
+test-telemega-v5.0
exit $?
fi
VERSION=4.0
+REPO=/usr/share/altos/mfg-fw
PRODUCT=TeleMetrum
echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
echo $FLASH_STM
-$FLASH_STM ~/altusmetrumllc/Binaries/loaders/telemetrum-v$VERSION-*.elf || exit 1
+$FLASH_STM $REPO/loaders/telemetrum-v$VERSION-*.elf || exit 1
sleep 3
-$USBLOAD --serial=$SERIAL ~/altusmetrumllc/Binaries/telemetrum-v$VERSION-*.elf || exit 1
+$USBLOAD --serial=$SERIAL $REPO/telemetrum-v$VERSION-*.elf || exit 1
sleep 5
echo 'E 0' > $dev
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
failed=1
while [ $failed = 1 ]; do
- ../ao-tools/ao-cal-accel/ao-cal-accel $dev
+ ao-cal-accel $dev
failed=$?
done
echo 'E 1' > $dev
-./test-telemetrum-v4.0
+test-telemetrum-v4.0
exit $?
+++ /dev/null
-#!/bin/sh
-
-if [ -x ../ao-tools/ao-load/ao-load ]; then
- AOLOAD=../ao-tools/ao-load/ao-load
-elif [ -x /usr/bin/ao-load ]; then
- AOLOAD=/usr/bin/ao-load
-else
- echo "Can't find ao-load! Aborting."
- exit 1
-fi
-
-if [ -x ../ao-tools/ao-rawload/ao-rawload ]; then
- RAWLOAD=../ao-tools/ao-rawload/ao-rawload
-elif [ -x /usr/bin/ao-rawload ]; then
- RAWLOAD=/usr/bin/ao-rawload
-else
- echo "Can't find ao-rawload! Aborting."
- exit 1
-fi
-
-echo "TeleMetrum v1.1 Turn-On and Calibration Program"
-echo "Copyright 2010 by Bdale Garbee. Released under GPL v2"
-echo
-echo "Expectations:"
-echo "\tTeleMetrum v1.1 powered from USB"
-echo "\t\twith TeleDongle (on /dev/ttyACM0) cabled to debug header"
-echo "\t\twith coax from UHF to frequency counter"
-echo
-echo -n "TeleMetrum serial number: "
-read SERIAL
-
-echo $RAWLOAD
-
-$RAWLOAD --device 100 -r ao_led_blink.ihx
-echo "the red LED should be blinking"
-sleep 5
-
-$RAWLOAD --device 100 -r ao_radio_xmit.ihx
-echo -n "Generating RF carrier. Please enter measured frequency: "
-read FREQ
-
-CAL_VALUE=`nickle -e "floor(434.55 / $FREQ * 1186611 + 0.5)"`
-
-echo "Programming flash with cal value " $CAL_VALUE
-$AOLOAD --device 100 --cal $CAL_VALUE \
- ~/altusmetrumllc/Binaries/telemetrum-v1.1*.ihx $SERIAL
-
-echo "Serial number "$SERIAL" programmed with RF cal value "$CAL_VALUE
-echo "Unplug and replug USB, cu to the board, confirm freq and record power"
fi
VERSION=2.0
+REPO=/usr/share/altos/mfg-fw
PRODUCT=TeleMetrum
echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
echo $FLASH_STM
-$FLASH_STM ~/altusmetrumllc/Binaries/loaders/telemetrum-v$VERSION-*.elf || exit 1
+$FLASH_STM $REPO/loaders/telemetrum-v$VERSION-*.elf || exit 1
sleep 3
-$USBLOAD --serial=$SERIAL ~/altusmetrumllc/Binaries/telemetrum-v$VERSION-*.elf || exit 1
+$USBLOAD --serial=$SERIAL $REPO/telemetrum-v$VERSION-*.elf || exit 1
sleep 5
echo 'E 0' > $dev
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
failed=1
while [ $failed = 1 ]; do
- ../ao-tools/ao-cal-accel/ao-cal-accel $dev
+ ao-cal-accel $dev
failed=$?
done
echo 'E 1' > $dev
-./test-telemetrum-v2.0
+test-telemetrum-v2.0
exit $?
fi
VERSION=3.0
+REPO=/usr/share/altos/mfg-fw
PRODUCT=TeleMetrum
echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
echo $FLASH_STM
-$FLASH_STM ~/altusmetrumllc/Binaries/loaders/telemetrum-v$VERSION-*.elf || exit 1
+$FLASH_STM $REPO/loaders/telemetrum-v$VERSION-*.elf || exit 1
sleep 3
-$USBLOAD --serial=$SERIAL ~/altusmetrumllc/Binaries/telemetrum-v$VERSION-*.elf || exit 1
+$USBLOAD --serial=$SERIAL $REPO/telemetrum-v$VERSION-*.elf || exit 1
sleep 5
echo 'E 0' > $dev
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
failed=1
while [ $failed = 1 ]; do
- ../ao-tools/ao-cal-accel/ao-cal-accel $dev
+ ao-cal-accel $dev
failed=$?
done
echo 'E 1' > $dev
-./test-telemetrum-v3.0
+test-telemetrum-v3.0
exit $?
fi
VERSION=3.0
+REPO=/usr/share/altos/mfg-fw
PRODUCT=TeleMini
echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
;;
esac
-FLASH_FILE=~/altusmetrumllc/Binaries/loaders/telemini-v$VERSION-altos-flash-*.bin
-ALTOS_FILE=~/altusmetrumllc/Binaries/telemini-v$VERSION-*.elf
-#FLASH_FILE=../src/telemini-v3.0/flash-loader/telemini-v$VERSION-altos-flash-*.bin
-#ALTOS_FILE=../src/telemini-v3.0/telemini-v$VERSION-*.elf
+FLASH_FILE=$REPO/loaders/telemini-v$VERSION-altos-flash-*.bin
+ALTOS_FILE=$REPO/telemini-v$VERSION-*.elf
if lsusb -d 0483:df11 | grep -q STM; then
$DFU_UTIL -a 0 -s 0x08000000:leave -D $FLASH_FILE || exit 1
echo 'E 0' > $dev
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
echo 'E 1' > $dev
-./test-telemini
+test-telemini
exit $?
--- /dev/null
+#!/bin/sh
+
+REPO=/usr/share/altos/mfg-fw
+
+if [ -x /usr/bin/ao-load ]; then
+ AOLOAD=/usr/bin/ao-load
+else
+ echo "Can't find ao-load! Aborting."
+ exit 1
+fi
+
+if [ -x /usr/bin/ao-rawload ]; then
+ RAWLOAD=/usr/bin/ao-rawload
+else
+ echo "Can't find ao-rawload! Aborting."
+ exit 1
+fi
+
+echo "TeleMini v2.0 Turn-On and Calibration Program"
+echo "Copyright 2011 by Bdale Garbee. Released under GPL v2"
+echo "Copyright 2013 by Keith Packard. Released under GPL v2"
+echo
+echo "Expectations:"
+echo "\tTeleMini v2.0 powered from LiPo"
+echo "\t\twith TeleDongle (on /dev/ttyACM0) cabled to debug header"
+echo "\t\twith frequency counter able to sample RF output"
+echo
+echo -n "TeleMini serial number: "
+read SERIAL
+
+echo $RAWLOAD
+
+#TTY=/dev/ttyACM0
+PROGRAMMER="-D 186"
+BIN=$REPO/telemini-v2.0*.ihx
+
+$RAWLOAD $PROGRAMMER -r ao_led_blink.ihx
+echo "LEDs should be blinking"
+sleep 5
+
+$RAWLOAD $PROGRAMMER -r ao_radio_xmit.ihx
+echo -n "Generating RF carrier. Please enter measured frequency: "
+read FREQ
+
+CAL_VALUE=`nickle -e "floor(434.55 / $FREQ * 1186611 + 0.5)"`
+
+echo "Programming flash with cal value " $CAL_VALUE
+$AOLOAD $PROGRAMMER --cal=$CAL_VALUE $BIN $SERIAL
+
+echo "Serial number "$SERIAL" programmed with RF cal value "$CAL_VALUE
+echo "Unplug and replug USB, cu to the board, confirm freq and record power"
+++ /dev/null
-#!/bin/sh
-
-if [ -x ../ao-tools/ao-load/ao-load ]; then
- AOLOAD=../ao-tools/ao-load/ao-load
-elif [ -x /usr/bin/ao-load ]; then
- AOLOAD=/usr/bin/ao-load
-else
- echo "Can't find ao-load! Aborting."
- exit 1
-fi
-
-if [ -x ../ao-tools/ao-rawload/ao-rawload ]; then
- RAWLOAD=../ao-tools/ao-rawload/ao-rawload
-elif [ -x /usr/bin/ao-rawload ]; then
- RAWLOAD=/usr/bin/ao-rawload
-else
- echo "Can't find ao-rawload! Aborting."
- exit 1
-fi
-
-echo "TeleMini v2.0 Turn-On and Calibration Program"
-echo "Copyright 2011 by Bdale Garbee. Released under GPL v2"
-echo "Copyright 2013 by Keith Packard. Released under GPL v2"
-echo
-echo "Expectations:"
-echo "\tTeleMini v2.0 powered from LiPo"
-echo "\t\twith TeleDongle (on /dev/ttyACM0) cabled to debug header"
-echo "\t\twith frequency counter able to sample RF output"
-echo
-echo -n "TeleMini serial number: "
-read SERIAL
-
-echo $RAWLOAD
-
-#TTY=/dev/ttyACM0
-PROGRAMMER="-D 186"
-BIN=../src/telemini-v2.0*.ihx
-
-$RAWLOAD $PROGRAMMER -r ao_led_blink.ihx
-echo "LEDs should be blinking"
-sleep 5
-
-$RAWLOAD $PROGRAMMER -r ao_radio_xmit.ihx
-echo -n "Generating RF carrier. Please enter measured frequency: "
-read FREQ
-
-CAL_VALUE=`nickle -e "floor(434.55 / $FREQ * 1186611 + 0.5)"`
-
-echo "Programming flash with cal value " $CAL_VALUE
-$AOLOAD $PROGRAMMER --cal=$CAL_VALUE $BIN $SERIAL
-
-echo "Serial number "$SERIAL" programmed with RF cal value "$CAL_VALUE
-echo "Unplug and replug USB, cu to the board, confirm freq and record power"
+++ /dev/null
-#!/bin/sh
-
-if [ -x ../ao-tools/ao-load/ao-load ]; then
- AOLOAD=../ao-tools/ao-load/ao-load
-elif [ -x /usr/bin/ao-load ]; then
- AOLOAD=/usr/bin/ao-load
-else
- echo "Can't find ao-load! Aborting."
- exit 1
-fi
-
-if [ -x ../ao-tools/ao-rawload/ao-rawload ]; then
- RAWLOAD=../ao-tools/ao-rawload/ao-rawload
-elif [ -x /usr/bin/ao-rawload ]; then
- RAWLOAD=/usr/bin/ao-rawload
-else
- echo "Can't find ao-rawload! Aborting."
- exit 1
-fi
-
-echo "TeleShield v0.1 Turn-On and Calibration Program"
-echo "Copyright 2012 by Bdale Garbee. Released under GPL v2"
-echo
-echo "Expectations:"
-echo "\tTeleShield v0.1 powered from USB"
-echo "\t\twith TeleDongle (on /dev/ttyACM0) cabled to debug header"
-echo "\t\twith coax from SMA to frequency counter"
-echo
-echo -n "TeleShield serial number: "
-read SERIAL
-
-echo $RAWLOAD
-
-$RAWLOAD -D 100 -r ao_led_blink.ihx
-echo "LEDs should be blinking"
-sleep 5
-
-$RAWLOAD -D 100 -r ao_radio_xmit.ihx
-echo -n "Generating RF carrier. Please enter measured frequency: "
-read FREQ
-
-CAL_VALUE=`nickle -e "floor(434.55 / $FREQ * 1186611 + 0.5)"`
-
-echo "Programming flash with cal value " $CAL_VALUE
-$AOLOAD -D 100 --cal $CAL_VALUE /home/bdale/debian/altos/src/teleshield-v0.1/*.ihx $SERIAL
-
-echo "Serial number "$SERIAL" programmed with RF cal value "$CAL_VALUE
-echo "Unplug and replug USB, cu to the board, confirm freq and record power"
+++ /dev/null
-#!/bin/sh
-
-if [ -x ../ao-tools/ao-load/ao-load ]; then
- AOLOAD=../ao-tools/ao-load/ao-load
-elif [ -x /usr/bin/ao-load ]; then
- AOLOAD=/usr/bin/ao-load
-else
- echo "Can't find ao-load! Aborting."
- exit 1
-fi
-
-if [ -x ../ao-tools/ao-rawload/ao-rawload ]; then
- RAWLOAD=../ao-tools/ao-rawload/ao-rawload
-elif [ -x /usr/bin/ao-rawload ]; then
- RAWLOAD=/usr/bin/ao-rawload
-else
- echo "Can't find ao-rawload! Aborting."
- exit 1
-fi
-
-echo "TeleTerra v0.2 Turn-On and Calibration Program"
-echo "Copyright 2012 by Bdale Garbee. Released under GPL v2"
-echo
-echo "Expectations:"
-echo "\tTeleTerra v0.2 powered from USB"
-echo "\t\twith TeleDongle (on /dev/ttyACM0) cabled to debug header"
-echo "\t\twith coax from SMA to frequency counter"
-echo
-echo -n "TeleTerra serial number: "
-read SERIAL
-
-echo $RAWLOAD
-
-$RAWLOAD -D 100 -r ao_led_blink.ihx
-echo "LEDs should be blinking"
-sleep 5
-
-$RAWLOAD -D 100 -r ao_radio_xmit.ihx
-echo -n "Generating RF carrier. Please enter measured frequency: "
-read FREQ
-
-CAL_VALUE=`nickle -e "floor(434.55 / $FREQ * 1186611 + 0.5)"`
-
-echo "Programming flash with cal value " $CAL_VALUE
-$AOLOAD -D 100 --cal $CAL_VALUE /home/bdale/debian/altos/src/teleterra-v0.2/*.ihx $SERIAL
-
-echo "Serial number "$SERIAL" programmed with RF cal value "$CAL_VALUE
-echo "Unplug and replug USB, cu to the board, confirm freq and record power"