# Set_bluetooth **Repository Path**: xiayang0521/set_bluetooth ## Basic Information - **Project Name**: Set_bluetooth - **Description**: set bt for cm311a/m401a/unt403a/b860av3.2m - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-11-09 - **Last Updated**: 2023-02-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Set_bluetooth #### 介绍 用于驱动安装了Armbian/CentOS/ArchLinux系统的cm311-1a/m401a/unt403a/b860av3.2m的蓝牙模块(rtl8761b) #### 安装教程 终端输入 1. git clone https://gitee.com/xiayang0521/set_bluetooth.git 2. cd set_bluetooth 3. (1) Armbian下 apt install bluez gpiod -y (2) CentOS下 yum install bluez -y (3) Archlinux下 pacman -Sy bluez bluez-utils libgpiod systemctl enable bluetooth.service systemctl start bluetooth.service 4. bash set_bt.sh 5. 注意在启动项中使用/boot/dtb/amlogic/meson-g12a-s905l3a-cm311.dtb 6. reboot #### set_bt.sh文件说明 #### 在uart_A部分增加bluetooth内容 cp meson-g12a-s905l3a-cm311.dtb /boot/dtb/amlogic/meson-g12a-s905l3a-cm311.dtb #### service 增加 ExecStopPost=/usr/bin/env gpioset 0 82=0 cp /lib/systemd/system/bluetooth.service /lib/systemd/system/bluetooth.service_bak cp bluetooth.service /lib/systemd/system/bluetooth.service # archlinux下使用 cp bluetooth.service_arch /lib/systemd/system/bluetooth.service #### 将2M波特率的config文件复制到/lib/firmware/rtl_bt/rtl8761b_config.bin。系统自带的config文件不能用,之前在用户空间操作也有这个问题 cp /lib/firmware/rtl_bt/rtl8761b_config.bin /lib/firmware/rtl_bt/rtl8761b_config.bin_bak cp rtl8761b_config_2m /lib/firmware/rtl_bt/rtl8761b_config.bin #### 文件大部分来自 https://bbs.hassbian.com/thread-18366-1-1.html