简体   繁体   English

用于 Raspberry Pi 的蓝牙网状网络

[英]Bluetooth mesh for Raspberry Pi

Problem问题

I am currently working on a Bluetooth communication library for Raspberry Pi.我目前正在为 Raspberry Pi 开发蓝牙通信库。 It only has to support simple messaging.它只需要支持简单的消息传递。 The main requirement is that is it decentralized主要要求是它是去中心化的

I therefore thought that Bluetooth mesh would be the best solution.因此,我认为蓝牙网状网络将是最好的解决方案。 I followed this guide for installing the Linux meshctl tool, but I could not find the functionality for sending messages between multiple Raspberry Pi.我按照指南安装 Linux meshctl 工具,但我找不到在多个 Raspberry Pi 之间发送消息的功能。 It seems that the meshctl tool is only for provisioning and configuring Bluetooth mesh networks.似乎 meshctl 工具仅用于配置和配置蓝牙网状网络。

Is this correct?这样对吗? Please correct me if I am wrong, I would love to be wrong.如果我错了,请纠正我,我很乐意是错的。

Solution?解决方案?

Is Zephyr a viable alternative? Zephyr是一个可行的替代方案吗? It seems that it is currently ahead of Linux when it comes to Bluetooth mesh.在蓝牙网状网络方面,它目前似乎领先于 Linux。

TLDR : Is the meshctl tool for Linux only for provisioning and configuration? TLDR :Linux 的 meshctl 工具是否仅用于供应和配置? Should i use Zephyr instead?我应该改用Zephyr吗?

TLDR: Yes, Meshctl is for provisioning only. TLDR:是的,Meshctl 仅用于配置。 Better to use Zephyr for regular mesh nodes instead.最好将 Zephyr 用于常规网格节点。

Bluetooth Mesh nodes are usually embedded devices and Zephyr is really good alternative for regular node.蓝牙 Mesh 节点通常是嵌入式设备,而 Zephyr 是常规节点的绝佳替代品。 It is backed by Linux foundation and feature rich implementation.它由 Linux 基金会和功能丰富的实现提供支持。 It is also under active development.它也在积极开发中。 There are also couple of other open source mesh implementations: Mynewt-nimble and ESP32 but both of them are actually based on Zephyr's mesh stack.还有其他几个开源网格实现: Mynewt- nimbleESP32,但它们实际上都基于 Zephyr 的网格堆栈。

As provisioner you could use meshctl by Bluez or provisioner app on phone (nRF Mesh or Bluetooth Mesh by Silicon Labs).作为供应商,您可以使用 Bluez 的 meshctl 或手机上的供应商应用程序(nRF Mesh 或 Silicon Labs 的蓝牙 Mesh)。

Zephyr is an excellent choice. Zephyr 是一个很好的选择。 The Bluetooth SIG have an educational resource for developers wishing to learn about Bluetooth mesh (includes hands-on project work) and it uses Zephyr.蓝牙 SIG 为希望了解蓝牙网状网络(包括动手项目工作)并使用 Zephyr 的开发人员提供教育资源。 See https://www.bluetooth.com/bluetooth-resources/bluetooth-mesh-developer-study-guide/请参阅https://www.bluetooth.com/bluetooth-resources/bluetooth-mesh-developer-study-guide/

You can use the ST BLE Mesh app from STMicroelectronics : https://play.google.com/store/apps/details?id=com.st.bluenrgmesh&hl=en_IN您可以使用 STMicroelectronics 的 ST BLE Mesh 应用程序: https : //play.google.com/store/apps/details? id=com.st.bluenrgmesh &hl=en_IN

They have also Mesh fw and Apps SDK which includes (Android library for Mesh and iOS SDK for Mesh).他们还有 Mesh fw 和 Apps SDK,其中包括(适用于 Mesh 的 Android 库和适用于 Mesh 的 iOS SDK)。 It not only acts as a provisioner but you can also share the mesh network configuration via email or cloud to another Smartphone.Apart from this they have command set for Many mesh models - GenericOnOff,GenericLevel,Sensor Model, Lighting Model , HSL model and CTL model.它不仅充当供应商,而且您还可以通过电子邮件或云将网状网络配置共享到另一部智能手机。除此之外,他们还为许多网状模型 - GenericOnOff、GenericLevel、Sensor Model、Lighting Model、HSL 模型和 CTL 设置了命令模型。

You can drop support questions at : https://community.st.com/s/topic/0TO0X000000BSrIWAW/ble-mesh您可以在以下位置提交支持问题: https : //community.st.com/s/topic/0TO0X000000BSrIWAW/ble-mesh

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM