Universal Mode Usage Tutorial; Routine 1: Simulate A Three-Way Switch To Access The Gateway And Use App To Control The Switch; Create The First Switch Port And Add Properties - Ebyte E180-Z5812 Series User Manual

Tlsr8258 2.4ghz zigbee3.0 multi-function soc wireless module
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd.

6 Universal Mode Usage Tutorial

In universal mode, you need to prepare a zigbee smart gateway (you can choose a crow, a Stanley, a micro, etc.), and use the APP
supporting the gateway to add the E180-Z5812 series module.
6.1 Routine 1: Simulate a three-way switch to access the gateway and use APP to
control the switch

6.1.1 Create the first switch port and add properties

The index number of the first port is 0 (use an array to represent the port list), and the port number can be assigned arbitrarily
from 1 to 240. However, for better compatibility between the gateway and the cloud platform, it is recommended to use 0x01 for the
first port number.
Enter the "Create ZCL Port" command:
55 15 00 40 [15] [01] [04 01] [00 01] [05] { [00 00] [03 00] [04 00] [05 00] [06 00] } [00] 51
The contents in "[ ]" are as follows
The switch has a total of 0x15=21 attributes
Create port number = 0x01
Contour ID = 0x0104
Device ID = 0x0100
Input number of clusters = 0x05
Input cluster {0x0000, 0x0003, 0x0004, 0x0005, 0x0006}
Number of output clusters = 0x00
Return command:
55 16 00 40 [00] [00] [01] [04 01] [00 01] [05] {[00 00] [03 00] [04 00] [05 00] [06 00]} [00] 44
The contents in "[ ]" are as follows
execution succeed
Module assigned port index = 0
Create port number = 0x01
Contour ID = 0x0104
Device ID = 0x0100
Input number of clusters = 0x05
Input cluster {0x0000, 0x0003, 0x0004, 0x0005, 0x0006}
Number of output clusters = 0x00
Then add attributes to this port. Since the currently created port 0x01 is active, the added attributes are added to this port. If you
need to create other ports, you need to add the properties of this port before saving. If the module is restarted at this time, the active
port 0x01 will be cleared. At this time, port 0x01 needs to be re-created, or other ports must be created.
Copyright © 2012–2024 , Chengdu Ebyte Electronic Technology Co., Ltd.
E180-Z5812 Series User Manual
25

Advertisement

Table of Contents
loading

Table of Contents