从 BLE 设备接收数据到树莓派 3

时间:2021-04-21 16:32:18

标签: bluetooth raspberry-pi bluetooth-lowenergy raspberry-pi3

我以前从未使用过 raspberry pi,我有一个项目部分,其中包括通过蓝牙从 BLE 血压设备接收数据到 raspberry pi 3。我可以将设备与我的 raspberry 配对,但我不知道该怎么做接下来做。我需要能够在我的 raspberry 中接收测量值,请提前帮助并感谢您。 PS:我尝试使用的设备与这个非常相似: https://ibb.co/71365k5

感谢您的回答,我已经尝试过“Gatt”和“Gatttool”,但问题是配对后,设备旨在将测量结果发送到 Android 手机上的应用程序,没有它我无法读取血液测量特征或它只是不存在。 this is the gattool list but it's almost identical for the gatt menu

1 个答案:

答案 0 :(得分:0)

Linux 使用 BlueZ 作为默认蓝牙堆栈。它公开了用于使用蓝牙实现软件的 DBus API。

如果你不想直接使用这个 API,有时会觉得有点低级,你有很多包装它的库,比如 https://github.com/getsenic/gatt-python 也带有示例。

所有其他解决方案都需要替换 Linux 上的蓝牙堆栈,因此您与系统的其他现有蓝牙配对将停止工作。