forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasic-information-cluster.xml
173 lines (162 loc) · 8.06 KB
/
basic-information-cluster.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<?xml version="1.0"?>
<!--
Copyright (c) 2021 Project CHIP Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<configurator>
<domain name="CHIP"/>
<struct name="CapabilityMinimaStruct">
<cluster code="0x0028"/>
<item fieldId="0" name="CaseSessionsPerFabric" type="int16u" isNullable="false" writable="false"/>
<item fieldId="1" name="SubscriptionsPerFabric" type="int16u" isNullable="false" writable="false"/>
</struct>
<enum name="ProductFinishEnum" type="enum8">
<cluster code="0x0028"/>
<item name="Other" value="0"/>
<item name="Matte" value="1"/>
<item name="Satin" value="2"/>
<item name="Polished" value="3"/>
<item name="Rugged" value="4"/>
<item name="Fabric" value="5"/>
</enum>
<enum name="ColorEnum" type="enum8">
<cluster code="0x0028"/>
<item name="Black" value="0"/>
<item name="Navy" value="1"/>
<item name="Green" value="2"/>
<item name="Teal" value="3"/>
<item name="Maroon" value="4"/>
<item name="Purple" value="5"/>
<item name="Olive" value="6"/>
<item name="Gray" value="7"/>
<item name="Blue" value="8"/>
<item name="Lime" value="9"/>
<item name="Aqua" value="10"/>
<item name="Red" value="11"/>
<item name="Fuchsia" value="12"/>
<item name="Yellow" value="13"/>
<item name="White" value="14"/>
<item name="Nickel" value="15"/>
<item name="Chrome" value="16"/>
<item name="Brass" value="17"/>
<item name="Copper" value="18"/>
<item name="Silver" value="19"/>
<item name="Gold" value="20"/>
</enum>
<struct name="ProductAppearanceStruct">
<cluster code="0x0028"/>
<item fieldId="0" name="Finish" type="ProductFinishEnum" isNullable="false"/>
<item fieldId="1" name="PrimaryColor" type="ColorEnum" isNullable="true" />
</struct>
<cluster singleton="true">
<name>Basic Information</name>
<domain>CHIP</domain>
<code>0x0028</code>
<define>BASIC_INFORMATION_CLUSTER</define>
<description>This cluster provides attributes and events for determining basic information about Nodes, which supports both
Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number,
which apply to the whole Node. Also allows setting user device information such as location.</description>
<globalAttribute side="either" code="0xFFFD" value="3"/>
<attribute side="server" code="0" name="DataModelRevision" define="DATA_MODEL_REVISION" type="int16u">
<mandatoryConform/>
</attribute>
<attribute side="server" code="1" name="VendorName" define="VENDOR_NAME" type="char_string" length="32">
<mandatoryConform/>
</attribute>
<attribute side="server" code="2" name="VendorID" define="VENDOR_ID" type="vendor_id">
<mandatoryConform/>
</attribute>
<attribute side="server" code="3" name="ProductName" define="PRODUCT_NAME" type="char_string" length="32">
<mandatoryConform/>
</attribute>
<attribute side="server" code="4" name="ProductID" define="PRODUCT_ID" type="int16u">
<mandatoryConform/>
</attribute>
<attribute side="server" code="5" name="NodeLabel" define="NODE_LABEL" type="char_string" length="32" writable="true">
<access op="read" privilege="view"/>
<access op="write" privilege="manage"/>
<mandatoryConform/>
</attribute>
<attribute side="server" code="6" name="Location" define="LOCATION" type="char_string" length="2" default="XX" writable="true" >
<access op="read" privilege="view"/>
<access op="write" privilege="administer"/>
<mandatoryConform/>
</attribute>
<attribute side="server" code="7" name="HardwareVersion" define="HARDWARE_VERSION" type="int16u" default="0">
<mandatoryConform/>
</attribute>
<attribute side="server" code="8" name="HardwareVersionString" define="HARDWARE_VERSION_STRING" type="char_string" minLength="1" length="64">
<mandatoryConform/>
</attribute>
<attribute side="server" code="9" name="SoftwareVersion" define="SOFTWARE_VERSION" type="int32u" default="0">
<mandatoryConform/>
</attribute>
<attribute side="server" code="10" name="SoftwareVersionString" define="SOFTWARE_VERSION_STRING" type="char_string" minLength="1" length="64">
<mandatoryConform/>
</attribute>
<attribute side="server" code="11" name="ManufacturingDate" define="MANUFACTURING_DATE" type="char_string" minLength="8" length="16" optional="true">
<optionalConform/>
</attribute>
<attribute side="server" code="12" name="PartNumber" define="PART_NUMBER" type="char_string" length="32" optional="true">
<optionalConform/>
</attribute>
<attribute side="server" code="13" name="ProductURL" define="PRODUCT_URL" type="long_char_string" length="256" optional="true">
<optionalConform/>
</attribute>
<attribute side="server" code="14" name="ProductLabel" define="PRODUCT_LABEL" type="char_string" length="64" optional="true">
<optionalConform/>
</attribute>
<attribute side="server" code="15" name="SerialNumber" define="SERIAL_NUMBER" type="char_string" length="32" optional="true">
<optionalConform/>
</attribute>
<attribute side="server" code="16" name="LocalConfigDisabled" define="LOCAL_CONFIG_DISABLED" type="boolean" default="0" writable="true" optional="true">
<access op="read" privilege="view"/>
<access op="write" privilege="manage"/>
<optionalConform/>
</attribute>
<attribute side="server" code="17" name="Reachable" define="REACHABLE" type="boolean" default="1" optional="true">
<optionalConform/>
</attribute>
<attribute side="server" code="18" name="UniqueID" define="UNIQUE_ID" type="char_string" length="32">
<mandatoryConform/>
</attribute>
<attribute side="server" code="19" name="CapabilityMinima" define="CAPABILITY_MINIMA" type="CapabilityMinimaStruct">
<mandatoryConform/>
</attribute>
<attribute side="server" code="20" name="ProductAppearance" define="PRODUCT_APPEARANCE" type="ProductAppearanceStruct" optional="true">
<optionalConform/>
</attribute>
<attribute side="server" code="21" name="SpecificationVersion" define="SPECIFICATION_VERSION" type="int32u">
<mandatoryConform/>
</attribute>
<attribute side="server" code="22" name="MaxPathsPerInvoke" define="MAX_PATHS_PER_INVOKE" type="int16u">
<mandatoryConform/>
</attribute>
<event side="server" code="0x00" name="StartUp" priority="critical" optional="false">
<description>The StartUp event SHALL be emitted by a Node as soon as reasonable after completing a boot or reboot process.</description>
<field id="0" name="SoftwareVersion" type="int32u"/>
<mandatoryConform/>
</event>
<event side="server" code="0x01" name="ShutDown" priority="critical" optional="true">
<description>The ShutDown event SHOULD be emitted by a Node prior to any orderly shutdown sequence on a best-effort basis.</description>
<optionalConform/>
</event>
<event side="server" code="0x02" name="Leave" priority="info" optional="true">
<description>The Leave event SHOULD be emitted by a Node prior to permanently leaving the Fabric.</description>
<field id="0" name="FabricIndex" type="fabric_idx"/>
<optionalConform/>
</event>
<event side="server" code="0x03" name="ReachableChanged" priority="info" optional="true">
<description>This event (when supported) SHALL be generated when there is a change in the Reachable attribute.</description>
<field id="0" name="ReachableNewValue" type="boolean"/>
</event>
</cluster>
</configurator>