Mesh

[中文]

1 Function Overview

Used in low-power nodes and other ad hoc networking scenarios, enabling the ble and mesh features.

2 Code Path

demo: ./projects/bluetooth/mesh

build cmd:make bk7256 PROJECT=bluetooth/mesh

3 cli

Mesh command for testing between two boards

ble_mesh provision init provisionee

Provisionee joins the Mesh network as a node

ble_mesh provision init provisioner

Provisioner forms a Mesh network

ble_mesh provision deprovision <MAC>

Provisioner moves devices out of the network

ble_mesh provision send_count <time>

Provisioner sends data on a scheduled basis

The board joins the Mesh network formed by Tmall Genie

ble_mesh tmall init <product_id> <device_secret>

Join the Mesh network formed by Tmall Genie as a Node node

4 Attention

1. The Mesh network that joins the Tmall Genie component requires the input of the device’s Product ID and Secret, which can be found on the Tmall Genie Open Platform Apply according to the Direct Access process;