樹莓派3B+ Ubuntu arm64藍牙鏈接

Ubuntu arm64項目的藍牙有一些問題,不能按照正常方法鏈接。測試

官方給出的方法以下:ui

配置spa

sudo hciattach /dev/ttyAMA0 bcm43xx 921600 noflow -

這裏使用bluetoothctlcode

sudo bluetoothctl

開啓藍牙blog

power on

可被發現ci

discoverable on

搜索設備rem

scan on

配對it

pair ADDRESS #這裏的ADDRESS替換爲實際地址

鏈接class

connect ADDRESS

退出配置

exit

 


 

附加

//查看已鏈接的設備
[bluetooth]# paired-devices 
Device 00:14:01:10:10:32 HC-06

//刪除已經配對的設備
[bluetooth]# remove 00:14:01:10:10:32
[DEL] Device 00:14:01:10:10:32 HC-06
Device has been removed

測試是否可以ping通

sudo l2ping 00:14:01:10:10:32

鏈接Arduino的藍牙設備

sudo rfcomm connect 0 ADDRESS

綁定Arduino的藍牙設備

sudo rfcomm bind 0 ADDRESS
//解綁的話就再輸入一次
相關文章
相關標籤/搜索