蓝牙经典蓝牙打开蓝牙hciconfig hci0 up设置蓝牙可被扫描hciconfig hci0 piscan扫描蓝牙hcitool -i hci0 scan连接蓝牙进入bluetoothctlbluetoothctl查找设备【在手机上面可以看到BlueZ 5.77这个设备用手机配对即可】scan on配对 这一步需要在手机确认pair MACaddress //(刚刚查找的配对设备的mac地址)20260421给万象奥科的开发板HD-RK3576-PI适配瑞芯微原厂的Buildroot时调通AP6256后连接经典蓝牙2026/4/21 11:54缘起只验证 万象奥科的开发板HD-RK3576-PI 跑buildroot系统时AP6256模块的经验蓝牙功能的配对。1、使用荣品的文档介绍的方法https://doc.rpdzkj.cn/#/zh_cn/%E7%91%9E%E8%8A%AF%E5%BE%AE%E7%B3%BB%E5%88%97/rk3588-rk3588s/7.%E6%8E%A5%E5%8F%A3%E4%BD%BF%E7%94%A8?id%e7%bb%8f%e5%85%b8%e8%93%9d%e7%89%99蓝牙经典蓝牙打开蓝牙hciconfig hci0 up复制Error已复制设置蓝牙可被扫描hciconfig hci0 piscan复制Error已复制扫描蓝牙hcitool -i hci0 scan复制Error已复制连接蓝牙进入bluetoothctlbluetoothctl复制Error已复制查找设备scan on复制Error已复制配对 这一步需要在手机确认pair MACaddress //(刚刚查找的配对设备的mac地址)复制Error已复制连接connect MACaddress //(刚刚查找的配对设备的mac地址)复制Error已复制信任设备trust MACaddress //(刚刚查找的配对设备的mac地址)复制Error已复制连接完成可通过运行根目录下/rp_test/bt/下的脚本来进行测试/rp_test/bt/test_bt_clinet.sh2、ifconfig wlan0 down关闭WIFI不然WIFI老打印信息。【关闭WIFI之后是否有其它问题未知/没有经过广泛评测】rootrk3576-buildroot:/#rootrk3576-buildroot:/# ifconfigeth0 Link encap:Ethernet HWaddr 76:7A:BA:CB:6C:9CUP BROADCAST MULTICAST MTU:1500 Metric:1RX packets:0 errors:0 dropped:0 overruns:0 frame:0TX packets:0 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:1000RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)Interrupt:58lo Link encap:Local Loopbackinet addr:127.0.0.1 Mask:255.0.0.0inet6 addr: ::1/128 Scope:HostUP LOOPBACK RUNNING MTU:65536 Metric:1RX packets:20 errors:0 dropped:0 overruns:0 frame:0TX packets:20 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:1000RX bytes:1272 (1.2 KiB) TX bytes:1272 (1.2 KiB)wlan0 Link encap:Ethernet HWaddr 9C:B8:B4:36:53:1EUP BROADCAST MULTICAST MTU:1500 Metric:1RX packets:0 errors:0 dropped:0 overruns:0 frame:0TX packets:3 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:1000RX bytes:0 (0.0 B) TX bytes:270 (270.0 B)rootrk3576-buildroot:/#rootrk3576-buildroot:/#rootrk3576-buildroot:/# ifconfig wlan0 down[ 237.157674] [dhd] [wlan0] dhd_pri_stop : tx queue stopped[ 237.157747] [dhd] [wlan0] dhd_stop : Enter[ 237.168145] [dhd] dhd_stop: ######### called for ifidx0 #########[ 237.173479] [dhd] dhd_rx_frame: dhd_stop in progress ignore received packet[ 237.173486] [dhd] CFG80211-ERROR) wl_cfgp2p_down : Clean up the p2p discovery IF[ 237.173496] [dhd] [Repeats 0 times][ 237.173514] [dhd] CFGP2P-ERROR) wl_cfgp2p_disable_discovery : do nothing, not initialized[ 237.173629] [dhd] CFGP2P-ERROR) wl_cfgp2p_del_p2p_disc_if : P2P interface unregistered[ 237.174575] [dhd] dhd_stop: making dhdpub up FALSE[ 237.174588] [dhd] dhd_tcpack_suppress_set: TCP ACK Suppress mode 1 - mode 0[ 237.174595] [dhd] dhd_tcpack_suppress_set: TCPACK_INFO_MAXNUM40, TCPDATA_INFO_MAXNUM40[ 237.174607] [dhd] [wlan0] wl_android_wifi_off : g_wifi_on1 force_off1[ 237.174616] [dhd] dhd_bus_devreset: Power OFF [ 237.174741] [dhd] dhd_bus_stop: making DHD_BUS_DOWN[ 237.174759] [dhd] dhdsdio_isr : bus is down. we have nothing to do[ 237.174782] [dhd] bcmsdh_oob_intr_unregister: Enter[ 237.174818] [dhd] dhd_bus_devreset: making dhdpub up FALSE[ 237.174825] [dhd] dhd_txglom_enable: enable 0[ 237.174833] [dhd] dhd_bus_devreset: making DHD_BUS_DOWN[ 237.174877] [dhd] wifi_platform_set_power 0, delay: 10 msec[ 237.174886] [dhd] PULL WL_REG_ON(-1) LOW! [ 237.174902] [WLAN_RFKILL]: rockchip_wifi_power: 0[ 237.174910] [WLAN_RFKILL]: rockchip_wifi_power: toggle false[ 237.174917] wifi power off[ 237.280865] [WLAN_RFKILL]: rockchip_wifi_power: toggle false[ 237.280903] [WLAN_RFKILL]: wifi shut off power [GPIO72-0][ 237.292052] [dhd] wifi_platform_set_power 0, sleep done: 10 msec[ 237.292093] [dhd] [wlan0] wl_android_wifi_off : out[ 237.292174] [dhd] [wlan0] dhd_stop : Exitrootrk3576-buildroot:/#rootrk3576-buildroot:/#rootrk3576-buildroot:/#rootrk3576-buildroot:/# ifconfigeth0 Link encap:Ethernet HWaddr 76:7A:BA:CB:6C:9CUP BROADCAST MULTICAST MTU:1500 Metric:1RX packets:0 errors:0 dropped:0 overruns:0 frame:0TX packets:0 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:1000RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)Interrupt:58lo Link encap:Local Loopbackinet addr:127.0.0.1 Mask:255.0.0.0inet6 addr: ::1/128 Scope:HostUP LOOPBACK RUNNING MTU:65536 Metric:1RX packets:36 errors:0 dropped:0 overruns:0 frame:0TX packets:36 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:1000RX bytes:2200 (2.1 KiB) TX bytes:2200 (2.1 KiB)rootrk3576-buildroot:/#rootrk3576-buildroot:/#3、配对的详细LOG手机端参考资料https://doc.rpdzkj.cn/#/zh_cn/%E7%91%9E%E8%8A%AF%E5%BE%AE%E7%B3%BB%E5%88%97/rk3588-rk3588s/7.%E6%8E%A5%E5%8F%A3%E4%BD%BF%E7%94%A8?id%e7%bb%8f%e5%85%b8%e8%93%9d%e7%89%99蓝牙经典蓝牙https://blog.csdn.net/wb4916/article/details/155376627?spm1011.2415.3001.533120251129给荣品RD-RK3588开发板跑Rockchip的原厂Buildroot【linux-6.1】系统时适配AP6275P的经典蓝牙https://blog.csdn.net/wb4916/article/details/155379131?spm1011.2415.3001.533120251129给荣品RD-RK3588开发板跑Rockchip的原厂Buildroot【linux-6.1】系统时适配AP6275P的蓝牙BLE