From: Bdale Garbee Date: Tue, 9 Oct 2018 17:46:09 +0000 (-0600) Subject: update turnon_telebt to use new approach for saving cal value on TeleBT X-Git-Tag: 1.9~29 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=34b5144dbfd565ee2b9fb1e0dff388a49253f93b update turnon_telebt to use new approach for saving cal value on TeleBT --- diff --git a/ao-bringup/turnon_telebt b/ao-bringup/turnon_telebt index 8bf9bcb5..3e9fddaa 100755 --- a/ao-bringup/turnon_telebt +++ b/ao-bringup/turnon_telebt @@ -64,11 +64,18 @@ case "$dev" in ;; esac +CALFILE=cal-$SERIAL.txt + echo 'E 0' > $dev -SERIAL=$SERIAL ./cal-freq $dev +../ao-tools/ao-cal-freq/ao-cal-freq --nosave --output=$CALFILE --tty=$dev + +# echo 'E 1' > $dev -echo 'E 1' > $dev +CAL_VALUE=`cat $CALFILE` +echo $SERIAL","$CAL_VALUE >> cal_values +echo "Reflashing with calibration: $CAL_VALUE" +$USBLOAD --cal=$CAL_VALUE --tty=$dev $ALTOS_FILE || exit 1 echo -n "checking BlueTooth functionality... " btdev=`hcitool scan | awk -F \- '/TeleBT/ { print $2 }'`