AM62X调试蓝牙

1.关闭原来系统的bluetooth.service

systemctl disable bluetooth

  1. sh wifi_bt_load.sh //加载驱动,并且开启蓝牙

insmod aic8800_bsp.ko

insmod aic8800_fdrv.ko

hciattach -s 1500000 /dev/ttyS5 any 1500000

hciconfig hci0 up

sleep 1

/usr/libexec/bluetooth/bluetoothd -C -n -d &

3.sh bt_hci_rfcomm.sh

hciconfig hci0 piscan

sdptool add SP

sleep .1

hciconfig hci0 noauth

sleep 1

rfcomm listen /dev/rfcomm0 1 &

4.就可以使用SPP的软件连接开发板, 通过

cat /dev/rfcomm0

echo "123" > /dev/rfcomm0

收发数据了。

5.断开会有Disconneted的字出现,需要重新

rfcomm listen /dev/rfcomm0 1 &

才能重新被连接,否则会连接失败。

相关推荐
Apipi*5 小时前
30天速通Linux 第六章信号及信号处理
linux·运维·信号处理
天启HTTP6 小时前
爬虫防封核心原理:IP轮换机制与风控规避逻辑
linux·服务器·网络·爬虫·tcp/ip
广州浮点FLOATLIC8 小时前
许可证服务器迁移后软件打不开:研发 IT 怎样定位连接问题
linux·服务器·数据库
BLUcoding8 小时前
接口服务公网超时排查记录:SecureRandom 阻塞问题分析与解决
java·linux·springboot·aes·securerandom
AIgorithmGEEK8 小时前
[Linux]从手写报头到内核套路:序列化、反序列化与自定义协议全链路
linux·运维·服务器·网络·序列化·反序列化
Nil2088 小时前
leetcode 139单词拆分
linux·运维·服务器
Starry-sky(jing)8 小时前
BUG: unable to handle kernel paging request 完整排查:dmesg 四要素与三路定罪
linux·运维·服务器·内核·排障
mounter6259 小时前
从硬件互连到操作系统变革:CXL 技术演进与 Linux 内核工程挑战
linux·运维·服务器
xh didida10 小时前
Linux -- 基础IO
linux·服务器·开发语言·c++
2401_8628808211 小时前
iMX6ULL 驱动工程搭建 + LED 灯驱动
c语言·驱动开发·嵌入式硬件