-
13:05
-
12:25
-
5:25
-
15:02
-
2:04
-
18:00
-
20:47
-
52:04
-
17:19
-
5:31
简介
探索 Simplicity Studio IDE 中使用 Silicon Labs 低功耗 EFR32MG24 多协议微控制器的 Matter over Thread 灯开关示例应用。该视频使用 Raspberry Pi 作为 OpenThread 边界路由器,Adafruit RGB LED 矩阵板用于增强灯光设备。在此视频中,您将学习:
- 如何创建 Matter over Thread 灯具开关示例应用
- 如何将开关调试到在 Raspberry Pi 上形成的网络中
- 如何让灯接收开关发出的命令
- 如何从开关向灯发送命令
后续步骤:
- 下载 Simplicity Studio IDE
- 查看 Matter 开发文档
- 了解 Silicon Labs 的 Matter 解决方案(其中包括套件和板)
- 了解 SparkFun Thing Plus Matter MGM240P
- 了解 Adafruit RGB LED 矩阵板
相关视频:
本视频中使用的 Mattertool 命令:
// General
mattertool help
// Network
mattertool startThread
mattertool getThreadDataset
// Lights commission
mattertool bleThread -n 100
mattertool bleThread -n 101
// Lights control
mattertool on -n 100
mattertool off -n 100
mattertool toggle -n 100
// Switches commission
mattertool bleThread -n 200
mattertool bleThread -n 201
// Lights access control list 100, single switch 200
mattertool accesscontrol write acl '[ { "fabricIndex" : 1 , "privilege" : 5 , "authMode" : 2 , "subjects" : [ 112233 ] , "targets" : null } , { "fabricIndex" : 1 , "privilege" : 3 , "authMode" : 2 , "subjects" : [ 200 ] , "targets" : null } ]' 100 0
mattertool accesscontrol read acl 100 0
// Switch bind 200, single light 100
mattertool binding write binding '[ { "fabricIndex" : 1 , "node" : 100 , "endpoint" : 1 , "cluster" : 6 } ]' 200 1
mattertool binding read binding 200 1
// Light access control list 101, all switches 200, 201
mattertool accesscontrol write acl '[ { "fabricIndex" : 1 , "privilege" : 5 , "authMode" : 2 , "subjects" : [ 112233 ] , "targets" : null } , { "fabricIndex" : 1 , "privilege" : 3 , "authMode" : 2 , "subjects" : [ 200, 201 ] , "targets" : null } ]' 101 0
mattertool accesscontrol read acl 101 0
// Switch bind 201, one light 101
mattertool binding write binding '[ { "fabricIndex" : 1 , "node" : 101 , "endpoint" : 1 , "cluster" : 6 } ]' 201 1
mattertool binding read binding 201 1
// Switch bind 200, two lights 100, 101
mattertool binding write binding '[ { "fabricIndex" : 1 , "node" : 100 , "endpoint" : 1 , "cluster" : 6 } , { "fabricIndex" : 1 , "node" : 101 , "endpoint" : 1 , "cluster" : 6 } ]' 200 1
mattertool binding read binding 200 1
预备知识:
MAT-111: Matter over Thread 灯具
MAT-112: OpenThread 边界路由器
需要硬件:
EFR32xG24 Explorer 套件
Raspberry Pi