O que é malha Bluetooth e como funciona

Índice

Bluetooth Mesh é uma verdadeira inovação do BLE, competindo com tecnologias Zigbee e Thread com capacidade de malha. Isto é essencialmente possível graças a nós interconectados. Esses nós atuam como pontos em uma rede descentralizada, compartilhando dados e ampliando o alcance e os recursos da rede. Nos primeiros dias do Bluetooth Mesh, havia antecipações sobre o tamanho da adoção dessa nova tecnologia de malha – projeções feitas logo desde que a malha BLE foi lançada em 2017. Muitos falaram sobre ” Redes de malha BLE” se tornando realidade dentro de alguns anos. Apesar do seu potencial, não experimentou o crescimento explosivo visto em outras tecnologias BLE.

O que é a tecnologia de malha Bluetooth

Bluetooth Mesh é Bluetooth combinado com rede mesh.

Malha de rede, também conhecido como “rede multi-salto”, é uma topologia de rede. Em uma rede mesh, os dados podem viajar de qualquer dispositivo para todos os outros, alcançando comunicação muitos-para-muitos. Mesmo se um dispositivo falhar, a rede continua funcionando.

Bluetooth Mesh uses Bluetooth Low Energy, which came with Bluetooth 4.0. No 2017, the official Bluetooth Mesh 1.0 foi liberado (still the latest up to now). It should be clear that BLE mesh is not a new wireless communication technology, but a networking technology. It utilizes and relies on BLE, and uses its communication protocol stack.

Bluetooth mesh networks use managed flooding. Devices can talk one-to-one, one-to-many, or many-to-many. By using the BLE protocol for communication between different network nodes, it forms a network without communication dead zones. All enable messages to travel further than traditional Bluetooth.

How does Bluetooth mesh work

Unlike traditional one-to-one connections, Bluetooth mesh creates a network where messages can hop from device to device until reaching their destination. One or more routes may exist between two device nodes. BLE mesh works by broadcasting messages to all nearby nodes, which then relay them onward. This process continues until the message reaches its intended destination(s).

este “managed floodingensures messages reach their targets even if some devices are out of direct range or turned off. Devices can publish messages to specific addresses, and others can subscribe to receive them. This publish-subscribe pattern enables efficient group communication.

The basics of Malha Bluetooth networking

After understanding how Bluetooth mesh works, it’s important to grasp some key technical terms and concepts of this technology. Let’s break down some of them:

  • Nós: When a Bluetooth device joins a Bluetooth Mesh network, it becomes anode.The node is a participant in the BLE mesh network.
  • Elements: Each node is composed of one or moreelements.An element is like a functional unit within the node. Every node has at least one element, but it can have multiple elements if it performs various functions.
  • modelos: Elements contain “modelos,” which define specific behaviors or services of the node. Models have unique ID numbers and determine what a node can do. There are standard models defined by the Bluetooth SIG that cover many common scenarios.
  • mensagem: When messages are sent between nodes, they’re filtered based on matching elements and models.
  • Addresses: Addresses are used to identify the source and destination of messages.

Types of nodes:

In a Bluetooth mesh network, there are several types of nodes, each with specific roles:

  • Relay Nodes: Messages are sent to nodes in direct radio range of the publishing node. Existem alguns nós que funcionam como “relés”. Os relés retransmitem mensagens para que possam viajar mais longe, em uma série de “lúpulo”.
  • Nós amigos e nós de baixo consumo de energia: LPNs são altamente limitados em energia. Para evitar manter um ciclo de trabalho mais alto para receber mensagens, um LPN faz parceria com um amigo. Os nós amigos armazenam mensagens para seus LPNs e as encaminham quando o LPN pesquisa ocasionalmente.
  • Nós proxy: Dispositivos Bluetooth de baixa energia, como smartphones, pode se conectar a uma rede mesh através de um nó proxy.

Para conhecer conceitos mais fundamentais, você pode consultar o Glossário de malha Bluetooth.

A arquitetura do sistema mesh BLE

A arquitetura do protocolo BLE Mesh consiste em sete camadas, construído com base na especificação principal BLE com a qual você já está familiarizado. Contudo, adiciona funcionalidade sofisticada de camada superior para criar uma rede de dispositivos interconectados. BLE mesh relies on the availability of the BLE protocol stack.

From bottom to top, the layers are as follows:

  1. Bearer Layer
  2. Camada de rede
  3. Lower Transport Layer
  4. Upper Transport Layer
  5. Access Layer
  6. Model Layer
  7. Camada de aplicação

The Bearer Layer defines how messages are sent and received using the underlying BLE protocol stack. It supports two methods: Advertising Bearer (PB-ADV) and GATT Bearer (PB-GATT). Several intermediate layers handle critical tasks. These include encrypting and decrypting data, managing network configuration, and message segmentation and reassembly, etc. These layers ensure that messages reach their intended destinations, even if they need to traverse multiple devices.

The Model Layer defines standardized typical user scenarios, such as controlling lighting or reading sensors. The Application Layer, positioned at the very top, organizes these models into useful applications with which end-users can interact.

Benefits and limitations of BLE mesh networking

BLE mesh satisfies the demands of smart connectivitylarge-scale, baixo consumo de energia, flexível, and secure. Contudo, it is not a one-size-fits-all solution and, like any technology, has its strengths and weaknesses.

Advantages of BLE mesh networking

  • Baixo consumo de energia: BLE mesh, like other BLE systems, features low power consumption. Portanto, a mesh network works well when covering large areas while conserving energy.
  • Network Resilience: In a Bluetooth mesh network, device nodes can disconnect without major impact. If one device drops out, the initial node will keep broadcasting the data. The addressee will receive the packet with a brief delay.
  • Flexibility and Self-Reconfiguration: The mesh network reconfigures itself. This flexibility is sometimes more important than guaranteed speed and shorter delays.
  • Node Mobility: In a BLE mesh network, nodes can change their position without disrupting the structure or losing data in transit. Data will only fail to reach its destination if nodes move out of range of the receiver.
  • Compatibilidade: BLE mesh nodes can communicate with both Bluetooth 4.x and 5.x devices. Bluetooth 4.x devices can receive messages but can’t become fully-fledged nodes of the network.
  • Beacon Integration: BLE mesh works closely with Bluetooth beacons. Beacons can used in indoor outdoor positioning, sensor networks, and other applications.

Limitações of BLE mesh networking

  • Low data throughput: Bluetooth mesh has limited data transfer rates. It’s limited to about 1 megabit per second, or even less. This means it’s not suitable for applciations that need faster data transfer.
  • High latency: Bluetooth mesh usesmanaged flooding”, so messages are sent to all devices in the network. It can take a long time for messages to reach everyone and get responses back. The more nodes, the longer response time it might take.
  • Consumo de energia: While Bluetooth is often thought of as consuming less power than other technologies, this isn’t always true in a mesh network. In a mesh, there are lots of devices. The devices that take more task drain more battery power. This is because they have to always be listening for messages and sending them to other devices.
  • Complex network management: Setting up and managing a Bluetooth mesh network is complicated and requires extensive specialized knowledge.

Bluetooth mesh vs other ttecnologias

Apart from BLE mesh, other popular mesh networking technologies include Zigbee and Thread. These technologies share much similarities with BLE mesh networking.

Fio, introduzido em 2014, is an IPv6-based mesh networking protocol for IoT. It supports up to 32 routers per network and 511 devices per router, suitable for high-density meshnets. As an IP-addressable solution, Thread integrates easily with IPv6-based apps and offers high data rates for local IoT systems.

Zigbee appeared much earlier in 1998 and then standardized in 2003. It is a low-power, low-bandwidth wireless network. Popular applications include home automation, dispositivos médicos, and industrial applications. It has a 250 Kbps maximum rate and supports various frequencies and power ranges. Zigbee often requires a gateway, so it is rarely built into consumer electronics integration.

Main differences between Thread, Zigbee, e malha Bluetooth:

  • Protocol Base: BLE mesh uses Bluetooth instead of the Internet Protocol, while Thread and Zigbee are IP-based.
  • Bandas de frequência: BLE mesh operates in the 2.4 Esse beacon envia um identificador exclusivo. Zigbee can use 2.4 GHz, 915 MHz, ou 868 MHz bands depending on the region. Thread also operates in the 2.4 Esse beacon envia um identificador exclusivo.
  • Messaging Approach: BLE mesh uses managed flood messaging, whereas Zigbee and Thread use routing mechanisms.
  • RAM Usage: Zigbee and Thread devices require more RAM to store routing tables.
  • Network Density: BLE mesh works better for low-density meshnets due to its flooding approach. Zigbee and Thread are more suitable for high-density networks.
  • Maximum Device Support: Thread can support up to 511 devices per router, with a maximum of 32 routers per network. Zigbee can theoretically support up to 65,000 nodes in a single network. BLE mesh can support over 32,000 nós.

Why use our Bluetooth mesh devices

Adopting new technology can be challenging. I hope that this Bluetooth mesh guide can give you some ideas. Na MOKO SMART, we’re not just suppliers; we’re pioneers in Bluetooth technology. Our Bluetooth IoT devices range includes Bluetooth beacons, âncoras, entradas, e sensores.

As an original IoT device manufacturer, we provide top-quality and reliable devices for all your Bluetooth mesh needs. If you are considering deploying a BLE mesh solution or seeking BLE mesh products, feel free to contact us.

FAQs about Bluetooth mesh

How many devices can a Bluetooth Mesh network support?

A single Bluetooth Mesh network can support up to 32,767 dispositivos.

Can Bluetooth Mesh networks interact with non-mesh Bluetooth devices?

sim, through proxy nodes, Bluetooth Mesh networks can interact with regular Bluetooth Low Energy devices.

Escrito por --
Nick Ele
Nick Ele
usuario, um gerente de projeto experiente em nosso R&Departamento D, traz uma riqueza de experiência para MOKOSMART, tendo atuado anteriormente como engenheiro de projeto na BYD. Sua experiência em R&D traz uma habilidade completa para seu gerenciamento de projetos de IoT. Com um fundo sólido abrangendo 6 anos em gerenciamento de projetos e obtenha certificações como PMP e CSPM-2, Nick se destaca na coordenação de esforços em vendas, Engenharia, testando, e equipes de marketing. Os projetos de dispositivos IoT dos quais ele participou incluem Beacons, Dispositivos LoRa, entradas, e plugues inteligentes.
Nick Ele
Nick Ele
usuario, um gerente de projeto experiente em nosso R&Departamento D, traz uma riqueza de experiência para MOKOSMART, tendo atuado anteriormente como engenheiro de projeto na BYD. Sua experiência em R&D traz uma habilidade completa para seu gerenciamento de projetos de IoT. Com um fundo sólido abrangendo 6 anos em gerenciamento de projetos e obtenha certificações como PMP e CSPM-2, Nick se destaca na coordenação de esforços em vendas, Engenharia, testando, e equipes de marketing. Os projetos de dispositivos IoT dos quais ele participou incluem Beacons, Dispositivos LoRa, entradas, e plugues inteligentes.
Compartilhar esta postagem
Capacite seu conectado Necessidade com MOKOSmart Soluções para dispositivos loT!