summaryrefslogtreecommitdiff
path: root/recipes-kernel/rs9113/files/rf/ubt
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2020-11-11 16:17:52 -0600
committerJohn Klug <john.klug@multitech.com>2020-11-11 16:17:52 -0600
commit4bb6f26b05450777d14aa96e10783066c2503dc2 (patch)
tree3ed6c4bb86736d28926fd37a3c2b4eb81de44c82 /recipes-kernel/rs9113/files/rf/ubt
downloadmeta-multitech-atmel-9a18c55f1807e0f981d9b3a1ce0df954c0bb5fb9.tar.gz
meta-multitech-atmel-9a18c55f1807e0f981d9b3a1ce0df954c0bb5fb9.tar.bz2
meta-multitech-atmel-9a18c55f1807e0f981d9b3a1ce0df954c0bb5fb9.zip
Add new BSP submodule for Atmel Processors.5.3.0b5.3.0a
Diffstat (limited to 'recipes-kernel/rs9113/files/rf/ubt')
-rwxr-xr-xrecipes-kernel/rs9113/files/rf/ubt30
1 files changed, 30 insertions, 0 deletions
diff --git a/recipes-kernel/rs9113/files/rf/ubt b/recipes-kernel/rs9113/files/rf/ubt
new file mode 100755
index 0000000..c8dd5d2
--- /dev/null
+++ b/recipes-kernel/rs9113/files/rf/ubt
@@ -0,0 +1,30 @@
+#!/bin/bash
+echo 'Optional 1st parameter is channel'
+btchan=8
+if [[ -n $1 ]] ; then
+ btchan=$1
+fi
+dr=3
+ht=0
+rcvchan=9
+((burst=1))
+if ((ht != 0)) ; then
+ ((burst=0))
+fi
+export DRIVER_MODE=2
+export COEX_MODE=4
+/etc/init.d/rs9113 stop >/dev/null 2>&1
+echo 1 >/sys/devices/platform/mts-io/wifi-bt-reset
+echo 0 >/sys/devices/platform/mts-io/wifi-bt-reset
+sleep 1
+echo 1 >/sys/devices/platform/mts-io/wifi-bt-reset
+sleep 2
+cd /opt/rs9113
+bash onebox_insert.sh
+sleep 2
+echo "Using channel WiFi BT channel $btchan BT Data Rate $dr"
+echo "Using receive channel $rcvchan"
+set -x
+/opt/rs9113/bt_transmit 0023a7010203 15 1021 $dr $rcvchan $btchan 1 0 0 1 1 0 18 $burst $ht 2
+sleep 10
+/opt/rs9113/bt_util cw_mode $btchan 0 3