SWRU581 March 2021 CC2564C , CC2564MODA , CC2564MODN , WL1831
The bt-en.sh script described below creates a custom configuration file based on the board you're using.
sudo cp Downloads/bt-en.sh [target-root]/home/root/BluetopiaPM/
cd /home/root/BluetopiaPM/
chmod +x bt-en.sh
./bt-en.sh
When using a custom platform, you'll need to create a similar script with your platform specific settings. As an example, you'll have to update the following variables:
and
Note, this includes the following statement at the start of the script. For example::
echo gpio
vi bt-en.sh
echo 16 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio16/direction
echo 1 > /sys/class/gpio/gpio16/value
echo "Done enabling BT"
gpio="nshutdown_gpio=16"
tty="tty=/dev/ttyS3"
flow="flow_cntrl=1"
baud_rate="baud_rate=3000000"
mkdir /home/root/tibt
echo $gpio > /home/root/tibt/config
echo $tty >> /home/root/tibt/config
echo $flow >> /home/root/tibt/config
echo $baud_rate >> /home/root/tibt/config
chmod +x bt-en.sh
./bt-en.sh