当前位置:网站首页>蓝牙mesh系统开发三 Ble Mesh 配网器 Provisioner
蓝牙mesh系统开发三 Ble Mesh 配网器 Provisioner
2022-07-31 00:57:00 【玉怀一捧雪】
前言
ble mesh配网器使用ESP32的方案,乐鑫开源的SDK和丰富的组件,可以快速上手ble mesh的网关应用,本章讲解基于ble mesh配网器的开发
概念
配网器Provisioner用于发现与配置未配网设备,使其加入mesh网络,成为mesh网络的节点设备
两个阶段
- 配网阶段:为设备分配单播地址、添加网络密钥 (NetKey) 等。通过配网,设备加入 ESP-BLE-MESH 网络,身份从未配网设备变为节点
- 配置阶段:为节点添加应用密钥 (AppKey), 并将应用密钥绑定到相应模型。配置期间,有些选项是可选的,比如为节点添加订阅地址、设置发布地址等。通过配置,该节点实际上可以向 Provisioner 发送消息,也可以接收来自 Provisioner 的消息
密钥
- 网络密钥:用于加密网络层消息,具有相同网络密钥的节点视为同一网络
- 应用密钥:用于加密上层传输层中的消息,如服务器模型与客户端模型绑定的应用密钥不一致,则无法进行通信
节点删除
- provisioner将节点添加至黑名单
- provisioner启动密钥更新程序
- 节点执行重置程序,切换自身为未配网设备
有效载荷
不分包有效载荷长度为11字节,对于verdor消息,
边栏推荐
- Kotlin协程:协程上下文与上下文元素
- 解决:Parameter 0 of method ribbonServerList in com.alibaba.cloud.nacos.ribbon.NacosRibbonClientConfigu
- Responsive layout vs px/em/rem
- MySQL系列一:账号管理与引擎
- 822. 走方格
- Basic usage of async functions and await expressions in ES6
- Shell programming of conditional statements
- typescript10-commonly used basic types
- Oracle has a weird temporary table space shortage problem
- (5) fastai application
猜你喜欢
【c语言课程设计】C语言校园卡管理系统
[Tang Yudi Deep Learning-3D Point Cloud Combat Series] Study Notes
ECCV 2022丨轻量级模型架构火了,力压苹果MobileViT(附代码和论文下载)
typescript14-(单独指定参数和返回值的类型)
小程序-全局数据共享
API 网关 APISIX 在Google Cloud T2A 和 T2D 的性能测试
Oracle has a weird temporary table space shortage problem
【多线程】
分布式.幂等性
Can deep learning solve the parameters of a specific function?
随机推荐
权限管理怎么做的?
【952. Calculate the maximum component size according to the common factor】
金融政企被攻击为什么要用高防CDN?
【Yugong Series】July 2022 Go Teaching Course 013-Constants, Pointers
TypeScript在使用中出现的问题记录
A complete guide to avoiding pitfalls for the time-date type "yyyy-MM-dd HHmmss" in ES
Huawei's "genius boy" Zhihui Jun has made a new work, creating a "customized" smart keyboard from scratch
typescript12-联合类型
XSS related knowledge
Niuke.com question brushing training (4)
分布式.幂等性
射频器件的基本参数2
无线模块的参数介绍和选型要点
SWM32 Series Tutorial 6 - Systick and PWM
822. 走方格
分布式系统的一致性与共识(1)-综述
ShardingSphere's public table combat (7)
MySql data recovery method personal summary
typescript11 - data types
What is Promise?What is the principle of Promise?How to use Promises?