From 4bb6f26b05450777d14aa96e10783066c2503dc2 Mon Sep 17 00:00:00 2001 From: John Klug Date: Wed, 11 Nov 2020 16:17:52 -0600 Subject: Add new BSP submodule for Atmel Processors. --- recipes-kernel/rs9113/files/rf/ubt | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 recipes-kernel/rs9113/files/rf/ubt (limited to 'recipes-kernel/rs9113/files/rf/ubt') 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 -- cgit v1.2.3