Ebyte E180-Z5812 Series User Manual page 31

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

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd.
Return command:
55 0E 00 41 [00] [01] [00 00] [00 00] [01] {[00 00] [20] [01]} 60
The contents in "[ ]" are as follows
Added successfully
Current port=0x01
Cluster ID = 0x0000
Manufacturer code = 0x0000
add attribute count=1
"{}" is the structure with added attributes, 4-byte alignment
Property ID = 0x0000
data type = 0x20
Operation mode = 0x01, supports read-only
In the add attribute command, the cluster ID, manufacturer code, and attribute ID are all entered in little-endian mode. For
example, to add the attribute "hardware version", you should enter the command:
55 0C 00 41 [00 00] [00 00] [04 00] [42] [01] [00] 06
The contents in "[ ]" are as follows
Cluster ID = 0x0000
Manufacturer code = 0x0000
Property ID = 0x0004
data type = 0x42 (data type 42 = string)
Operation mode = 0x01, supports read-only
Attribute direction = 0x00, this attribute is the server direction (controlled end direction)
Since 5 attributes have been added to cluster 0x0000 at this time, the return command is as follows:
55 1E 00 41 [00] [01] [00 00] [00 00] [05] {[00 00] [20] [01], [01 00] [20] [01], [02 00] [20 ] [01], [03 00] [20] [01], [04 00] [42] [01]}
02
The contents in "[ ]" are as follows
Added successfully
Current port=0x01
Cluster ID = 0x0000
Manufacturer code = 0x0000
add attribute count=5
"{}" is the structure with added attributes, 4-byte alignment
The first attribute "[00 00] [20] [01]", attribute ID=0x0000, data type=0x20, operation mode=0x01
The second attribute "[01 00] [20] [01]", attribute ID=0x0001, data type=0x20, operation mode=0x01
The third attribute "[02 00] [20] [01]", attribute ID=0x0002, data type=0x20, operation mode=0x01
The fourth attribute "[03 00] [20] [01]", attribute ID=0x0003, data type=0x20, operation mode=0x01
The fifth attribute "[04 00] [42] [01]", attribute ID=0x0004, data type=0x42, operation mode=0x01
After adding all the attributes according to the table, save the attributes.
input the command:
55 03 00 42 42
Return command:
Copyright © 2012–2024 , Chengdu Ebyte Electronic Technology Co., Ltd.
E180-Z5812 Series User Manual
27

Advertisement

Table of Contents
loading

Table of Contents