Example 2: Simulating Human Body Infrared Sensor Access Gateway; Create Sensor Port And Add Related 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.
Cluster ID=0x0006, the attribute being written is located in cluster 0x0006
Manufacturer code = 0x0000, the attribute manufacturer code being written is 0x0000
Attribute ID=0x0000, the ID of the attribute being written is 0x0000
Attribute value=0x01
Since the "switch status" attribute is set to be automatically reported when added, after the attribute value is modified, it will be
synchronized to the APP.

6.2 Example 2: Simulating human body infrared sensor access gateway

6.2.1 Create sensor port and add related properties

Create a 1-channel human body infrared sensor, and use 0x01 for the port number.
First, exit the module from the network. You can use the "Reset/Factory Restore" command to exit the network, or you can
initiate a device deletion operation from the APP.
Send the "Clear Ports and Attributes" command
55 03 00 44 44
return command
55 04 00 44 00 44
This command indicates successful execution.
Create a sensor port:
55 11 00 40 [11] [01] [04 01] [02 04] [03] {[00 00] [03 00] [00 05]} [00] 56
The contents in "[ ]" are as follows
The switch has a total of 0x11=17 attributes.
Copyright © 2012–2024 , Chengdu Ebyte Electronic Technology Co., Ltd.
E180-Z5812 Series User Manual
32

Advertisement

Table of Contents
loading

Table of Contents