summaryrefslogtreecommitdiff
path: root/recipes-kernel/rs9113/files/rf/ubt
blob: c8dd5d243df66902d971e0419455ae697e697fc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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