ESP32-来自Linux的BLE连接

时间:2020-06-30 09:19:32

标签: bluetooth esp32 bluez

据我所知,ESP32具有BLE通讯功能。 大多是用Arduino完成的,但我很感兴趣:

是否可以将ESP32连接到Linux,并使用标准的BlueZ命令(hcitool,gatttool)来管理BLE外设?

1 个答案:

答案 0 :(得分:1)

hcitool和gatttool是BlueZ已弃用的八个工具的一部分

https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=b1eb2c4cd057624312e0412f6c4be000f7fc3617

Zephyr是一个用于连接的,资源受限的嵌入式设备的小型实时操作系统,我相信ESP32是支持的微控制器之一。

在Zephyr的文档中,有一个 将BlueZ与Zephyr结合使用 ,其中列出了一系列支持的工具,这些工具已替代您提到的工具。

https://docs.zephyrproject.org/latest/guides/bluetooth/bluetooth-tools.html?highlight=bluez#using-bluez-with-zephyr