1 Star 0 Fork 1

idoio_platform/deviceio_release

forked from test/deviceio_release 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
bsa_bt_sink.sh 1.26 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/sh
hcd_file="BTFIRMWARE_PATH"
echo "hcd_file = $hcd_file"
case "$1" in
start)
echo 0 > /sys/class/rfkill/rfkill0/state
sleep 1
echo 1 > /sys/class/rfkill/rfkill0/state
sleep 1
mkdir -p /data/bsa/config
cd /data/bsa/config
echo "start broadcom bluetooth server bsa_sever"
killall bsa_server
#bsa_server -r 12 -b /data/bsa/btsnoop.log -p $hcd_file -d /dev/ttyS4 > /data/bsa/bsa_log &
bsa_server -r 12 -p $hcd_file -d /dev/ttyS4 -all=0 &
sleep 2
echo "start broadcom bluetooth app_manager"
#app_manager -s > /data/bsa/app_mananger.log &
app_manager -s &
echo "start broadcom bluetooth app_avk"
#app_avk -s > /data/bsa/app_avk.log &
app_avk -s &
sleep 3
echo "#########act as a bluetooth music player#########"
app_socket avk 2
sleep 2
echo "|----- bluetooth music player ------|"
;;
stop)
echo "Stopping broadcom bsa bluetooth server & app"
killall app_socket
sleep 1
killall app_avk
sleep 1
killall app_manager
sleep 1
killall bsa_server
sleep 2
echo "|-----bluetooth music player is close-----|"
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit $?
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/idoio_platform/deviceio_release.git
git@gitee.com:idoio_platform/deviceio_release.git
idoio_platform
deviceio_release
deviceio_release
master

搜索帮助