Skip to content

Commit ec543b0

Browse files
committed
Updating the xml correctly for features
JIRA: ZAPP-1346
1 parent f9aaa5c commit ec543b0

18 files changed

+406
-0
lines changed

src/app/zap-templates/zcl/data-model/chip/concentration-measurement-cluster.xml

+261
Large diffs are not rendered by default.

src/app/zap-templates/zcl/data-model/chip/device-energy-management-mode-cluster.xml

+7
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ limitations under the License.
3434
<server init="false" tick="false">true</server>
3535
<description>Attributes and commands for selecting a mode from a list of supported options.</description>
3636
<globalAttribute side="either" code="0xFFFD" value="1"/>
37+
38+
<features>
39+
<feature bit="0" code="DEPONOFF" name="OnOff" summary="Dependency with the OnOff cluster">
40+
<optionalConform/>
41+
</feature>
42+
</features>
43+
3744
<!-- Base data types -->
3845
<attribute side="server" code="0x0000" define="SUPPORTED_MODES" type="array" entryType="ModeOptionStruct" writable="false" optional="false" isNullable="false" length="255">SupportedModes</attribute>
3946
<attribute side="server" code="0x0001" define="CURRENT_MODE" type="int8u" writable="false" optional="false" isNullable="false" reportable="true">CurrentMode</attribute>

src/app/zap-templates/zcl/data-model/chip/dishwasher-mode-cluster.xml

+7
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ limitations under the License.
3333
<server init="false" tick="false">true</server>
3434
<description>Attributes and commands for selecting a mode from a list of supported options.</description>
3535
<globalAttribute side="either" code="0xFFFD" value="2"/>
36+
37+
<features>
38+
<feature bit="0" code="DEPONOFF" name="OnOff" summary="Dependency with the OnOff cluster">
39+
<optionalConform/>
40+
</feature>
41+
</features>
42+
3643
<!-- Base data types -->
3744
<attribute side="server" code="0x0000" define="SUPPORTED_MODES" type="array" entryType="ModeOptionStruct" writable="false" optional="false" isNullable="false" length="255">SupportedModes</attribute>
3845
<attribute side="server" code="0x0001" define="CURRENT_MODE" type="int8u" writable="false" optional="false" isNullable="false" reportable="true">CurrentMode</attribute>

src/app/zap-templates/zcl/data-model/chip/door-lock-cluster.xml

+12
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,18 @@ limitations under the License.
839839
<field mask="0x10" name="PINChanged" />
840840
</bitmap>
841841

842+
<!-- RemoteProgrammingEventMask attribute bit meaning set -->
843+
<bitmap name="DlRemoteProgrammingEventMask" type="bitmap16">
844+
<cluster code="0x0101" />
845+
<field mask="0x01" name="Unknown" />
846+
<field mask="0x02" name="ProgrammingPINChanged" />
847+
<field mask="0x04" name="PINAdded" />
848+
<field mask="0x08" name="PINCleared" />
849+
<field mask="0x10" name="PINChanged" />
850+
<field mask="0x20" name="RFIDCodeAdded" />
851+
<field mask="0x40" name="RFIDCodeCleared" />
852+
</bitmap>
853+
842854
<!-- RFIDProgrammingEventMask attribute bit meaning set -->
843855
<bitmap name="DlRFIDProgrammingEventMask" type="bitmap16">
844856
<cluster code="0x0101" />

src/app/zap-templates/zcl/data-model/chip/energy-evse-mode-cluster.xml

+7
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ limitations under the License.
3333
<server init="false" tick="false">true</server>
3434
<description>Attributes and commands for selecting a mode from a list of supported options.</description>
3535
<globalAttribute side="either" code="0xFFFD" value="1"/>
36+
37+
<features>
38+
<feature bit="0" code="DEPONOFF" name="OnOff" summary="Dependency with the OnOff cluster">
39+
<optionalConform/>
40+
</feature>
41+
</features>
42+
3643
<!-- Base data types -->
3744
<attribute side="server" code="0x0000" define="SUPPORTED_MODES" type="array" entryType="ModeOptionStruct" writable="false" optional="false" isNullable="false" length="255">SupportedModes</attribute>
3845
<attribute side="server" code="0x0001" define="CURRENT_MODE" type="int8u" writable="false" optional="false" isNullable="false" reportable="true">CurrentMode</attribute>

src/app/zap-templates/zcl/data-model/chip/ethernet-network-diagnostics-cluster.xml

+10
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ limitations under the License.
3535
<code>0x0037</code>
3636
<define>ETHERNET_NETWORK_DIAGNOSTICS_CLUSTER</define>
3737
<description>The Ethernet Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems.</description>
38+
39+
<features>
40+
<feature bit="0" code="PKTCNT" name="PacketCounts" summary="Node makes available the counts for the number of received and transmitted packets on the ethernet interface.">
41+
<optionalConform/>
42+
</feature>
43+
<feature bit="1" code="ERRCNT" name="ErrorCounts" summary="Node makes available the counts for the number of errors that have occurred during the reception and transmission of packets on the ethernet interface.">
44+
<optionalConform/>
45+
</feature>
46+
</features>
47+
3848
<attribute side="server" code="0x00" define="PHY_RATE" type="PHYRateEnum" writable="false" isNullable="true" optional="true">PHYRate</attribute>
3949
<attribute side="server" code="0x01" define="FULL_DUPLEX" type="boolean" min="0x00" max="0x01" writable="false" isNullable="true" optional="true">FullDuplex</attribute>
4050
<attribute side="server" code="0x02" define="PACKET_RX_COUNT" type="int64u" min="0x0000000000000000" max="0xFFFFFFFFFFFFFFFF" writable="false" default="0x0000000000000000" optional="true">PacketRxCount</attribute>

src/app/zap-templates/zcl/data-model/chip/general-diagnostics-cluster.xml

+7
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ limitations under the License.
8585
<define>GENERAL_DIAGNOSTICS_CLUSTER</define>
8686
<description>The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems.</description>
8787
<globalAttribute side="either" code="0xFFFD" value="2"/>
88+
89+
<features>
90+
<feature bit="0" code="DMTEST" name="DataModelTest" summary="Support specific testing needs for extended Data Model features">
91+
<optionalConform/>
92+
</feature>
93+
</features>
94+
8895
<attribute side="server" code="0x00" define="NETWORK_INTERFACES" type="array" entryType="NetworkInterface" length="8" writable="false" optional="false">NetworkInterfaces</attribute>
8996
<attribute side="server" code="0x01" define="REBOOT_COUNT" type="int16u" writable="false" default="0x0000" optional="false">RebootCount</attribute>
9097
<!-- ***NOTE***: UpTime attribute is mandatory starting at Rev >= 2, but because of backwards compatibility, has to be optional here.

src/app/zap-templates/zcl/data-model/chip/laundry-washer-mode-cluster.xml

+6
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ limitations under the License.
3535
<description>Attributes and commands for selecting a mode from a list of supported options.</description>
3636
<globalAttribute side="either" code="0xFFFD" value="2"/>
3737

38+
<features>
39+
<feature bit="0" code="DEPONOFF" name="OnOff" summary="Dependency with the OnOff cluster">
40+
<optionalConform/>
41+
</feature>
42+
</features>
43+
3844
<features>
3945
<feature bit="0" code="SPIN" name="Spin" summary="Multiple spin speeds supported">
4046
<optionalConform/>

src/app/zap-templates/zcl/data-model/chip/microwave-oven-mode-cluster.xml

+7
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ limitations under the License.
3232
<server init="false" tick="false">true</server>
3333
<description>Attributes and commands for selecting a mode from a list of supported options.</description>
3434
<globalAttribute side="either" code="0xFFFD" value="1"/>
35+
36+
<features>
37+
<feature bit="0" code="DEPONOFF" name="OnOff" summary="Dependency with the OnOff cluster">
38+
<optionalConform/>
39+
</feature>
40+
</features>
41+
3542
<!-- Base data types -->
3643
<attribute side="server" code="0x0000" define="SUPPORTED_MODES" type="array" entryType="ModeOptionStruct" writable="false" optional="false" isNullable="false" length="255">SupportedModes</attribute>
3744
<attribute side="server" code="0x0001" define="CURRENT_MODE" type="int8u" writable="false" optional="false" isNullable="false" reportable="true">CurrentMode</attribute>

src/app/zap-templates/zcl/data-model/chip/oven-mode-cluster.xml

+7
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ limitations under the License.
3939
<server init="false" tick="false">true</server>
4040
<description>Attributes and commands for selecting a mode from a list of supported options.</description>
4141
<globalAttribute side="either" code="0xFFFD" value="1"/>
42+
43+
<features>
44+
<feature bit="0" code="DEPONOFF" name="OnOff" summary="Dependency with the OnOff cluster">
45+
<optionalConform/>
46+
</feature>
47+
</features>
48+
4249
<!-- Base data types -->
4350
<attribute side="server" code="0x0000" define="SUPPORTED_MODES" type="array" entryType="ModeOptionStruct" writable="false" optional="false" isNullable="false" length="255">SupportedModes</attribute>
4451
<attribute side="server" code="0x0001" define="CURRENT_MODE" type="int8u" writable="false" optional="false" isNullable="false" reportable="true">CurrentMode</attribute>

src/app/zap-templates/zcl/data-model/chip/refrigerator-and-temperature-controlled-cabinet-mode-cluster.xml

+7
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ limitations under the License.
3232
<server init="false" tick="false">true</server>
3333
<description>Attributes and commands for selecting a mode from a list of supported options.</description>
3434
<globalAttribute side="either" code="0xFFFD" value="2"/>
35+
36+
<features>
37+
<feature bit="0" code="DEPONOFF" name="OnOff" summary="Dependency with the OnOff cluster">
38+
<optionalConform/>
39+
</feature>
40+
</features>
41+
3542
<!-- Base data types -->
3643
<attribute side="server" code="0x0000" define="SUPPORTED_MODES" type="array" entryType="ModeOptionStruct" writable="false" optional="false" isNullable="false" length="255">SupportedModes</attribute>
3744
<attribute side="server" code="0x0001" define="CURRENT_MODE" type="int8u" writable="false" optional="false" isNullable="false" reportable="true">CurrentMode</attribute>

src/app/zap-templates/zcl/data-model/chip/resource-monitoring-cluster.xml

+12
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ limitations under the License.
6060
<client tick="false" init="false">true</client>
6161
<server tick="false" init="false">true</server>
6262

63+
<features>
64+
<feature bit="0" code="CON" name="Condition" summary="Supports monitoring the condition of the resource in percentage">
65+
<optionalConform/>
66+
</feature>
67+
<feature bit="1" code="WRN" name="Warning" summary="Supports warning indication">
68+
<optionalConform/>
69+
</feature>
70+
<feature bit="2" code="REP" name="Replacement Product List" summary="Supports specifying the list of replacement products">
71+
<optionalConform/>
72+
</feature>
73+
</features>
74+
6375
<!-- Attributes -->
6476
<attribute side="server" code="0x0000" define="CONDITION" type="percent" min="0" max="100" writable="false" isNullable="false" optional="true">Condition</attribute>
6577
<attribute side="server" code="0x0001" define="DEGRADATION_DIRECTION" type="DegradationDirectionEnum" min="0" max="1" writable="false" isNullable="false" optional="true">DegradationDirection</attribute>

src/app/zap-templates/zcl/data-model/chip/software-diagnostics-cluster.xml

+7
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ limitations under the License.
3030
<code>0x0034</code>
3131
<define>SOFTWARE_DIAGNOSTICS_CLUSTER</define>
3232
<description>The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems.</description>
33+
34+
<features>
35+
<feature bit="0" code="WTRMRK" name="Watermarks" summary="Node makes available the metrics for high watermark related to memory consumption.">
36+
<optionalConform/>
37+
</feature>
38+
</features>
39+
3340
<attribute side="server" code="0x00" define="THREAD_METRICS" type="array" entryType="ThreadMetricsStruct" length="254" writable="false" optional="true">ThreadMetrics</attribute>
3441
<attribute side="server" code="0x01" define="CURRENT_HEAP_FREE" type="int64u" min="0x0000000000000000" max="0xFFFFFFFFFFFFFFFF" writable="false" default="0x0000000000000000" optional="true">CurrentHeapFree</attribute>
3542
<attribute side="server" code="0x02" define="CURRENT_HEAP_USED" type="int64u" min="0x0000000000000000" max="0xFFFFFFFFFFFFFFFF" writable="false" default="0x0000000000000000" optional="true">CurrentHeapUsed</attribute>

src/app/zap-templates/zcl/data-model/chip/thread-network-diagnostics-cluster.xml

+16
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,22 @@ limitations under the License.
9292
<define>THREAD_NETWORK_DIAGNOSTICS_CLUSTER</define>
9393
<description>The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems</description>
9494
<globalAttribute side="either" code="0xFFFD" value="2"/>
95+
96+
<features>
97+
<feature bit="0" code="PKTCNT" name="PacketCounts" summary="Server supports the counts for the number of received and transmitted packets on the Thread interface.">
98+
<optionalConform/>
99+
</feature>
100+
<feature bit="1" code="ERRCNT" name="ErrorCounts" summary="Server supports the counts for the number of errors that have occurred during the reception and transmission of packets on the Thread interface.">
101+
<optionalConform/>
102+
</feature>
103+
<feature bit="2" code="MLECNT" name="MLECounts" summary="Server supports the counts for various MLE layer happenings.">
104+
<optionalConform/>
105+
</feature>
106+
<feature bit="3" code="MACCNT" name="MACCounts" summary="Server supports the counts for various MAC layer happenings.">
107+
<optionalConform/>
108+
</feature>
109+
</features>
110+
95111
<attribute side="server" code="0x00" define="CHANNEL" type="int16u" min="0x00" max="0xFFFF" writable="false" isNullable="true" optional="false">Channel</attribute>
96112
<attribute side="server" code="0x01" define="ROUTING_ROLE" type="RoutingRoleEnum" writable="false" isNullable="true" optional="false">RoutingRole</attribute>
97113
<attribute side="server" code="0x02" define="NETWORK_NAME" type="char_string" length="16" writable="false" default="" isNullable="true" optional="false">NetworkName</attribute>

src/app/zap-templates/zcl/data-model/chip/time-format-localization-cluster.xml

+7
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ limitations under the License.
5050
may have differing preferences for how dates and times are conveyed. As such, Nodes that visually
5151
or audibly convey time information need a mechanism by which they can be configured to use a
5252
user’s preferred format.</description>
53+
54+
<features>
55+
<feature bit="0" code="CALFMT" name="CalendarFormat" summary="The Node can be configured to use different calendar formats when conveying values to a user.">
56+
<optionalConform/>
57+
</feature>
58+
</features>
59+
5360
<!-- Base data types -->
5461
<attribute side="server" code="0x00" define="HOUR_FORMAT" type="HourFormatEnum" writable="true" optional="false">
5562
<description>HourFormat</description>

src/app/zap-templates/zcl/data-model/chip/unit-localization-cluster.xml

+7
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ limitations under the License.
3434
user. As such, Nodes that visually or audibly convey measurable values to the user need a
3535
mechanism by which they can be configured to use a user’s preferred unit.</description>
3636
<globalAttribute side="either" code="0xFFFD" value="1"/>
37+
38+
<features>
39+
<feature bit="0" code="TEMP" name="TemperatureUnit" summary="The Node can be configured to use different units of temperature when conveying values to a user.">
40+
<optionalConform/>
41+
</feature>
42+
</features>
43+
3744
<!-- Base data types -->
3845
<attribute side="server" code="0x00" define="TEMPERATURE_UNIT" type="TempUnitEnum" min="0" max="2" writable="true" optional="true">
3946
<description>TemperatureUnit</description>

src/app/zap-templates/zcl/data-model/chip/washer-controls-cluster.xml

+9
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ limitations under the License.
3737

3838
<globalAttribute side="either" code="0xFFFD" value="1" />
3939

40+
<features>
41+
<feature bit="0" code="SPIN" name="Spin" summary="Multiple spin speeds supported">
42+
<optionalConform/>
43+
</feature>
44+
<feature bit="1" code="RINSE" name="Rinse" summary="Multiple rinse cycles supported">
45+
<optionalConform/>
46+
</feature>
47+
</features>
48+
4049
<attribute side="server" code="0x0000" define="SPIN_SPEEDS" type="array" entryType="char_string" writable="false" isNullable="false" optional="true">SpinSpeeds</attribute>
4150
<attribute side="server" code="0x0001" define="SPIN_SPEED_CURRENT" type="int8u" min="0x00" max="0x1F" writable="true" isNullable="true" optional="true">SpinSpeedCurrent</attribute>
4251
<attribute side="server" code="0x0002" define="NUMBER_OF_RINSES" type="NumberOfRinsesEnum" writable="true" isNullable="false" optional="true">NumberOfRinses</attribute>

src/app/zap-templates/zcl/data-model/chip/wifi-network-diagnostics-cluster.xml

+10
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ limitations under the License.
5454
<code>0x0036</code>
5555
<define>WIFI_NETWORK_DIAGNOSTICS_CLUSTER</define>
5656
<description>The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems.</description>
57+
58+
<features>
59+
<feature bit="0" code="PKTCNT" name="PacketCounts" summary="Node makes available the counts for the number of received and transmitted packets on the ethernet interface.">
60+
<optionalConform/>
61+
</feature>
62+
<feature bit="1" code="ERRCNT" name="ErrorCounts" summary="Node makes available the counts for the number of errors that have occurred during the reception and transmission of packets on the ethernet interface.">
63+
<optionalConform/>
64+
</feature>
65+
</features>
66+
5767
<attribute side="server" code="0x00" define="BSSID" type="octet_string" length="6" writable="false" isNullable="true" optional="false">BSSID</attribute>
5868
<attribute side="server" code="0x01" define="SECURITY_TYPE" type="SecurityTypeEnum" writable="false" isNullable="true" optional="false">SecurityType</attribute>
5969
<attribute side="server" code="0x02" define="WIFI_VERSION" type="WiFiVersionEnum" writable="false" isNullable="true" optional="false">WiFiVersion</attribute>

0 commit comments

Comments
 (0)