激活蓝牙:
sudo hciconfig hci0 up #hci0: 蓝牙设备
扫描蓝牙:
hcitool scan
绑定目的蓝牙:
sudo rfcomm bind /dev/rfcomm0 E0:A6:70:8C:A3:02
#E0:A6:70:8C:A3:02: 蓝牙设备硬件地址
给蓝牙开启权限:
sudo chmod 777 /dev/rfcomm0
参考:添加链接描述
激活蓝牙:
sudo hciconfig hci0 up #hci0: 蓝牙设备
扫描蓝牙:
hcitool scan
绑定目的蓝牙:
sudo rfcomm bind /dev/rfcomm0 E0:A6:70:8C:A3:02
#E0:A6:70:8C:A3:02: 蓝牙设备硬件地址
给蓝牙开启权限:
sudo chmod 777 /dev/rfcomm0
参考:添加链接描述