我刚接触android。我有Raspberry pi 3设备。我可以通过经典的Bluetooth.now将移动设备连接到Raspberry pi 3。我对Raspberry如何通过蓝牙连接移动设备和Raspberry感到困惑。低energy.we可以将BLE设备连接到安卓设备,并可以编写Characteristics.now我想在Raspberry pi 3 like中做同样的事情(心率监视器,MI频段2)
有可能在安卓设备(Raspberry Pi 3)上检测到iBeacons吗?
我尝试使用我的应用程序在中订阅ibeacon消息的订阅蓝牙低能耗(BLE)信标消息,但注册的iBeacons将不会被检测到。
一切都很好,但一开始我就得到了这样的信息:
E/BluetoothAdapter: Bluetooth binder is null
有谁有在安卓设备(Raspberry Pi 3)上检测iBeacon的经验吗?
在我想要在pi上运行python脚本之前,我每次都会在终端上运行一系列蓝牙run命令。我想连接到一个BLE设备自动从pi没有任何配对确认或用户交互。在运行另一个python脚本之前,每次重新启动pi之前,我都必须输入以下命令(脚本将在运行几天后继续运行,直到停止或重新启动pi):
$sudo bluetoothctl
[Bluetooth]power on
[Bluetooth]discoverable on
[Bluetooth]pairable on
[Bluetooth]agent NoInputNoOutput
[Bluetooth]default-agent
我想让这个过程自动化。
我使用的是Bluez 5.50;5.48是官方(非实验)支持的acquire write版本。我是否正确地使用了获取-写入/写入功能?
在我的Raspberry Pi Zero W上:
pi@raspberrypi:~ $ bluetoothctl
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# scan on
Discovery started
[bluetooth]# connect B8:27:E8:72:33:7A
Attempting to connect to B8:27:E8:72:33:7A
Conn