diff options
Diffstat (limited to 'recipes-kernel/rs9113/files/rf/ubt')
-rwxr-xr-x | recipes-kernel/rs9113/files/rf/ubt | 30 |
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 |