当前位置:网站首页>Qiming cloud sharing | demonstrate the switch through an example of the matter protocol to control the light on and off through the matter protocol

Qiming cloud sharing | demonstrate the switch through an example of the matter protocol to control the light on and off through the matter protocol

2022-06-12 14:57:00 Qiming Zhixian

Tips : As Espressif( Lexin technology ) Greater China partners and sigmastar( Xiamen Xingchen )VAD partners , Qiming cloud has not only carefully sorted out the problems you may encounter in the development process, but also a concise tutorial to get started quickly for the development partners . At the same time, we also carefully sorted out the new products of Lexin and Xingchen Technology 、 Main features and application of the new scheme ! I hope you can understand and quickly use good solutions and products at the first time !


Preface

As CSA Connectivity Standards Alliance ( front Zigbee union ) Active members of , Le Xinzai Matter It joined at the beginning of the agreement Matter plan ,ESP32、ESP32-S、ESP32-C And so on , Both have supported building on Wi-Fi Agreed Matter equipment .ESP32-H2 Launch , Also make builds based on Thread Agreed Matter Devices become possible . This video is from Qiming cloud technology partners Matter The protocol example demonstrates that the switch passes matter Protocol to control the light on and off . It does not involve the construction of the early environment .
Environment construction and use command reference :

https://github.com/project-chip/connectedhomeip/tree/master/ex
amples/all-clusters-app/esp32

Learning materials :https://zhuanlan.zhihu.com/p/459731857

 Insert picture description here

Demonstrate the steps :

1、 After configuring the environment and installing the corresponding software , You need to activate the package in the specified path
2、 Connect a device , Distribute the network to him , Here is the connection “ switch ”

source ./scripts/activate.sh

Activate the package

./out/debug/chip-tool pairing ble-wifi 12344321 WT 0987654321 20202021 3840
 Switch distribution network 

 Insert picture description here
3、 Connect another device for distribution , It's connected here “LED The lamp “

```bash
./out/debug/chip-tool pairing ble-wifi 12344322 WT 0987654321 20202021 3840
 Light distribution network 
![ Insert picture description here ](https://img-blog.csdnimg.cn/fec85b9cd61844568894c318899c0148.png)

4、 Set the lamp ACL, So that the switch can control it 

```bash
./out/debug/chip-tool accesscontrol write acl '[{"fabricIndex": 1, "privilege":
5, "authMode": 2, "subjects": [ 112233, 12344321 ], "targets": null}]' 12344322 0
 Set lamp acl

See video for details

Qiming cloud sharing | adopt MATTER Protocol controlled lighting DEMO

原网站

版权声明
本文为[Qiming Zhixian]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/163/202206121435383808.html