Linux蓝牙功能移植
2022/3/8 7:15:57
本文主要是介绍Linux蓝牙功能移植,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
内核配置
CONFIG_BT=y CONFIG_BT_BREDR=y CONFIG_BT_RFCOMM=y CONFIG_BT_RFCOMM_TTY=y CONFIG_BT_BNEP=y CONFIG_BT_BNEP_MC_FILTER=y CONFIG_BT_BNEP_PROTO_FILTER=y CONFIG_BT_HIDP=y CONFIG_BT_HS=y CONFIG_BT_LE=y CONFIG_BT_DEBUGFS=y CONFIG_BT_BCM=y # CONFIG_BT_HCIBTUSB is not set # CONFIG_BT_HCIBTSDIO is not set CONFIG_BT_HCIUART=y CONFIG_BT_HCIUART_H4=y # CONFIG_BT_HCIUART_BCSP is not set # CONFIG_BT_HCIUART_RTKH5 is not set # CONFIG_BT_RTKCOEX is not set # CONFIG_BT_HCIUART_ATH3K is not set # CONFIG_BT_HCIUART_LL is not set # CONFIG_BT_HCIUART_3WIRE is not set # CONFIG_BT_HCIUART_INTEL is not set CONFIG_BT_HCIUART_BCM=y # CONFIG_BT_HCIUART_QCA is not set # CONFIG_BT_HCIUART_AG6XX is not set # CONFIG_BT_HCIUART_MRVL is not set # CONFIG_BT_HCIBCM203X is not set # CONFIG_BT_HCIBPA10X is not set
Buildroot
BR2_PACKAGE_BLUEZ5_UTILS=y BR2_PACKAGE_BLUEZ5_UTILS_CLIENT=y BR2_PACKAGE_BLUEZ5_UTILS_DEPRECATED=y BR2_PACKAGE_BLUEZ5_UTILS_TEST=y
启动脚本
echo 458 >/sys/class/gpio/export echo out >/sys/class/gpio/gpio458/direction echo 0 >/sys/class/gpio/gpio458/active_low echo 1 >/sys/class/gpio/gpio458/value brcm_patchram_plus --no2bytes --patchram /appfs/ko/cywdhd_fw/BCM4343A1_001.002.009.0122.0482.hcd /dev/ttyS2 & sleep 2 killall brcm_patchram_plus sleep 0.1 brcm_patchram_plus --no2bytes --patchram /appfs/ko/cywdhd_fw/BCM4343A1_001.002.009.0122.0482.hcd /dev/ttyS2 hciattach /dev/ttyS2 any mkdir /var/run/dbus/ dbus-daemon --config-file /etc/bluetooth/system.conf --fork --print-address sleep 2 hciconfig hci0 up sleep 1 hciconfig hci0 iscan sleep 1 /usr/libexec/bluetooth/bluetoothd &
BlueZ常用工具
btmgmt
配置工具btattach
设置蓝牙串口设备btgatt-server
用于测试的gatt服务
这篇关于Linux蓝牙功能移植的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-12如何创建可引导的 ESXi USB 安装介质 (macOS, Linux, Windows)
- 2024-11-08linux的 vi编辑器中搜索关键字有哪些常用的命令和技巧?-icode9专业技术文章分享
- 2024-11-08在 Linux 的 vi 或 vim 编辑器中什么命令可以直接跳到文件的结尾?-icode9专业技术文章分享
- 2024-10-22原生鸿蒙操作系统HarmonyOS NEXT(HarmonyOS 5)正式发布
- 2024-10-18操作系统入门教程:新手必看的基本操作指南
- 2024-10-18初学者必看:操作系统入门全攻略
- 2024-10-17操作系统入门教程:轻松掌握操作系统基础知识
- 2024-09-11Linux部署Scrapy学习:入门级指南
- 2024-09-11Linux部署Scrapy:入门级指南
- 2024-08-21【Linux】分区向左扩容的方法