我正在尝试将 HC-05 蓝牙模块(连接到 Arduino Uno)连接到我的 Raspberry Pi 3,希望实现两者之间的蓝牙通信,以将数据从 Uno 发送到 Pi。
尝试使用 Bluetoothctl 配对、连接和信任 HC-05 设备对我来说似乎失败了。
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# agent on
Agent registered
[bluetooth]# scan on
[CHG] Device 98:D3:31:FB:6F:F1 LegacyPairing: yes
[CHG] Device 98:D3:31:FB:6F:F1 RSSI: -43
[bluetooth]# pair 98:D3:31:FB:6F:F1
Attempting to pair with 98:D3:31:FB:6F:F1
[CHG] Device 98:D3:31:FB:6F:F1 Connected: yes
Request PIN code
[agent] Enter PIN code: 1234
[CHG] Device 98:D3:31:FB:6F:F1 Paired: yes
Pairing successful
[CHG] Device 98:D3:31:FB:6F:F1 Connected: no
[bluetooth]# connect 98:D3:31:FB:6F:F1
Attempting to connect …Run Code Online (Sandbox Code Playgroud)