視頻材料
MAT-114: 快速入門 - Matter over Thread 燈具開關
-
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 Kit
Raspberry Pi