Skip to content

Commit

Permalink
Data model XML: Add ICD, regen from ToT (project-chip#30638)
Browse files Browse the repository at this point in the history
  • Loading branch information
cecille authored Nov 24, 2023
1 parent b02f774 commit ac1536d
Show file tree
Hide file tree
Showing 9 changed files with 254 additions and 57 deletions.
88 changes: 47 additions & 41 deletions data_model/clusters/ContentControl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,73 +79,79 @@ Davis, CA 95616, USA
</features>
<dataTypes>
<struct name="RatingNameStruct">
<field id="1" name="RatingName" type="string">
<field id="0" name="RatingName" type="string">
<access read="true"/>
<mandatoryConform/>
<constraint type="maxLength" value="8"/>
</field>
<field id="2" name="RatingNameDesc" type="string">
<field id="1" name="RatingNameDesc" type="string">
<access read="true"/>
<optionalConform/>
<constraint type="maxLength" value="64"/>
</field>
</struct>
</dataTypes>
<attributes>
<attribute id="0x0001" name="Enabled" type="bool">
<attribute id="0x0000" name="Enabled" type="bool">
<access read="true" readPrivilege="view"/>
<mandatoryConform/>
<constraint type="desc"/>
</attribute>
<attribute id="0x0002" name="OnDemandRatings" type="list[RatingNameStruct Type]">
<attribute id="0x0001" name="OnDemandRatings" type="list[RatingNameStruct Type]">
<access read="true" readPrivilege="view"/>
<mandatoryConform>
<feature name="OCR"/>
</mandatoryConform>
<constraint type="desc"/>
</attribute>
<attribute id="0x0003" name="OnDemandRatingThreshold" type="string">
<access read="true" write="true" readPrivilege="view" writePrivilege="operate"/>
<attribute id="0x0002" name="OnDemandRatingThreshold" type="string">
<access read="true" readPrivilege="view"/>
<mandatoryConform>
<feature name="OCR"/>
</mandatoryConform>
<constraint type="maxLength" value="8"/>
</attribute>
<attribute id="0x0004" name="ScheduledContentRatings" type="list[RatingNameStruct Type]">
<attribute id="0x0003" name="ScheduledContentRatings" type="list[RatingNameStruct Type]">
<access read="true" readPrivilege="view"/>
<mandatoryConform>
<feature name="SCR"/>
</mandatoryConform>
<constraint type="desc"/>
</attribute>
<attribute id="0x0005" name="ScheduledContentRatingThreshold" type="string">
<access read="true" write="true" readPrivilege="view" writePrivilege="operate"/>
<attribute id="0x0004" name="ScheduledContentRatingThreshold" type="string">
<access read="true" readPrivilege="view"/>
<mandatoryConform>
<feature name="SCR"/>
</mandatoryConform>
<constraint type="maxLength" value="8"/>
</attribute>
<attribute id="0x0006" name="ScreenDailyTime" type="elapsed-s">
<attribute id="0x0005" name="ScreenDailyTime" type="elapsed-s">
<access read="true" readPrivilege="view"/>
<mandatoryConform>
<feature name="ST"/>
</mandatoryConform>
<constraint type="max" value="86400"/>
</attribute>
<attribute id="0x0007" name="RemainingScreenTime" type="elapsed-s">
<attribute id="0x0006" name="RemainingScreenTime" type="elapsed-s">
<access read="true" readPrivilege="view"/>
<mandatoryConform>
<feature name="ST"/>
</mandatoryConform>
<constraint type="max" value="86400"/>
</attribute>
<attribute id="0x0008" name="BlockUnrated" type="bool">
<attribute id="0x0007" name="BlockUnrated" type="bool">
<access read="true" readPrivilege="view"/>
<mandatoryConform>
<feature name="BU"/>
</mandatoryConform>
<constraint type="desc"/>
</attribute>
</attributes>
<commands>
<command id="0x00" name="UpdatePIN" response="Y">
<access invokePrivilege="operate" timed="true"/>
<access invokePrivilege="manage" timed="true"/>
<mandatoryConform>
<feature name="PIN"/>
<feature name="PM"/>
</mandatoryConform>
<field id="0" name="OldPIN" type="string">
<mandatoryConform/>
Expand All @@ -159,79 +165,79 @@ Davis, CA 95616, USA
<command id="0x01" name="ResetPIN" response="ResetPINResponse">
<access invokePrivilege="admin" timed="true"/>
<mandatoryConform>
<feature name="PIN"/>
<feature name="PM"/>
</mandatoryConform>
</command>
<command id="0x02" name="ResetPINResponse" direction="responseFromServer">
<access invokePrivilege="operate"/>
<mandatoryConform>
<feature name="PIN"/>
<feature name="PM"/>
</mandatoryConform>
<field id="0" name="PINCode" type="string">
<mandatoryConform/>
<constraint type="maxLength" value="6"/>
</field>
</command>
<command id="0x03" name="Enable" response="Y">
<access invokePrivilege="operate" timed="true"/>
<access invokePrivilege="manage" timed="true"/>
<mandatoryConform/>
<field id="0" name="PINCode" type="string">
<mandatoryConform/>
<constraint type="maxLength" value="6"/>
</field>
</command>
<command id="0x04" name="Disable" response="Y">
<access invokePrivilege="operate" timed="true"/>
<access invokePrivilege="manage" timed="true"/>
<mandatoryConform/>
<field id="0" name="PINCode" type="string">
<mandatoryConform/>
<constraint type="maxLength" value="6"/>
</field>
</command>
<command id="0x05" name="AddBonusTime" response="Y">
<access invokePrivilege="operate"/>
<mandatoryConform>
<feature name="ST"/>
</mandatoryConform>
<field id="0" name="PINCode" type="string">
<mandatoryConform/>
<optionalConform/>
<constraint type="maxLength" value="6"/>
</field>
<field id="1" name="BonusTime" type="elapsed-s" default="300s">
<optionalConform/>
</field>
</command>
<command id="0x06" name="SetScreenDailyTime" response="Y">
<access invokePrivilege="operate"/>
<access invokePrivilege="manage"/>
<mandatoryConform>
<feature name="ST"/>
</mandatoryConform>
<field id="0" name="PINCode" type="string">
<mandatoryConform/>
<constraint type="maxLength" value="6"/>
</field>
<field id="1" name="ScreenTime" type="elapsed-s">
<field id="0" name="ScreenTime" type="elapsed-s">
<mandatoryConform/>
</field>
</command>
<command id="0x07" name="BlockUnratedContent" response="Y">
<access invokePrivilege="operate"/>
<access invokePrivilege="manage"/>
<mandatoryConform>
<feature name="BU"/>
</mandatoryConform>
<field id="0" name="PINCode" type="string">
<mandatoryConform/>
<constraint type="maxLength" value="6"/>
</field>
</command>
<command id="0x08" name="UnblockUnratedContent" response="Y">
<access invokePrivilege="operate"/>
<access invokePrivilege="manage"/>
<mandatoryConform>
<feature name="BU"/>
</mandatoryConform>
<field id="0" name="PINCode" type="string">
</command>
<command id="0x09" name="SetOnDemandRatingThreshold" response="Y">
<access invokePrivilege="manage"/>
<mandatoryConform>
<feature name="OCR"/>
</mandatoryConform>
<field id="0" name="Rating" type="string">
<mandatoryConform/>
<constraint type="maxLength" value="6"/>
<constraint type="maxLength" value="8"/>
</field>
</command>
<command id="0x0a" name="SetScheduledContentRatingThreshold" response="Y">
<access invokePrivilege="manage"/>
<mandatoryConform>
<feature name="SCR"/>
</mandatoryConform>
<field id="0" name="Rating" type="string">
<mandatoryConform/>
<constraint type="maxLength" value="8"/>
</field>
</command>
</commands>
Expand Down
180 changes: 180 additions & 0 deletions data_model/clusters/ICDManagement.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
<?xml version="1.0"?>
<!--
Copyright (C) Connectivity Standards Alliance (2021). All rights reserved.
The information within this document is the property of the Connectivity
Standards Alliance and its use and disclosure are restricted, except as
expressly set forth herein.
Connectivity Standards Alliance hereby grants you a fully-paid, non-exclusive,
nontransferable, worldwide, limited and revocable license (without the right to
sublicense), under Connectivity Standards Alliance's applicable copyright
rights, to view, download, save, reproduce and use the document solely for your
own internal purposes and in accordance with the terms of the license set forth
herein. This license does not authorize you to, and you expressly warrant that
you shall not: (a) permit others (outside your organization) to use this
document; (b) post or publish this document; (c) modify, adapt, translate, or
otherwise change this document in any manner or create any derivative work
based on this document; (d) remove or modify any notice or label on this
document, including this Copyright Notice, License and Disclaimer. The
Connectivity Standards Alliance does not grant you any license hereunder other
than as expressly stated herein.
Elements of this document may be subject to third party intellectual property
rights, including without limitation, patent, copyright or trademark rights,
and any such third party may or may not be a member of the Connectivity
Standards Alliance. Connectivity Standards Alliance members grant other
Connectivity Standards Alliance members certain intellectual property rights as
set forth in the Connectivity Standards Alliance IPR Policy. Connectivity
Standards Alliance members do not grant you any rights under this license. The
Connectivity Standards Alliance is not responsible for, and shall not be held
responsible in any manner for, identifying or failing to identify any or all
such third party intellectual property rights. Please visit www.csa-iot.org for
more information on how to become a member of the Connectivity Standards
Alliance.
This document and the information contained herein are provided on an “AS IS”
basis and the Connectivity Standards Alliance DISCLAIMS ALL WARRANTIES EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO (A) ANY WARRANTY THAT THE USE OF THE
INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OF THIRD PARTIES (INCLUDING
WITHOUT LIMITATION ANY INTELLECTUAL PROPERTY RIGHTS INCLUDING PATENT, COPYRIGHT
OR TRADEMARK RIGHTS); OR (B) ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE, TITLE OR NONINFRINGEMENT. IN NO EVENT WILL THE
CONNECTIVITY STANDARDS ALLIANCE BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF
BUSINESS, LOSS OF USE OF DATA, INTERRUPTION OF BUSINESS, OR FOR ANY OTHER
DIRECT, INDIRECT, SPECIAL OR EXEMPLARY, INCIDENTAL, PUNITIVE OR CONSEQUENTIAL
DAMAGES OF ANY KIND, IN CONTRACT OR IN TORT, IN CONNECTION WITH THIS DOCUMENT
OR THE INFORMATION CONTAINED HEREIN, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
LOSS OR DAMAGE.
All company, brand and product names in this document may be trademarks that
are the sole property of their respective owners.
This notice and disclaimer must be included on all copies of this document.
Connectivity Standards Alliance
508 Second Street, Suite 206
Davis, CA 95616, USA
-->
<cluster xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="types types.xsd cluster cluster.xsd" id="0x0046" name="ICDManagement" revision="2">
<revisionHistory>
<revision revision="1" summary="Initial Release"/>
<revision revision="2" summary="Addition of LIT ICD support and ActiveModeDuration"/>
</revisionHistory>
<classification hierarchy="base" role="utility" picsCode="ICDM" scope="Node"/>
<features>
<feature bit="0" code="CIP" name="CheckInProtocolSupport" summary="Device supports attributes and commands for the Check-In Protocol support.">
<optionalConform/>
</feature>
</features>
<dataTypes/>
<attributes>
<attribute id="0x0000" name="IdleModeDuration" type="uint32" default="1">
<access read="true" readPrivilege="view"/>
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false"/>
<mandatoryConform/>
<constraint type="between" from="1" to="64800"/>
</attribute>
<attribute id="0x0001" name="ActiveModeDuration" type="uint32" default="300">
<access read="true" readPrivilege="view"/>
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false"/>
<mandatoryConform/>
</attribute>
<attribute id="0x0002" name="ActiveModeThreshold" type="uint16" default="300">
<access read="true" readPrivilege="view"/>
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false"/>
<mandatoryConform/>
</attribute>
<attribute id="0x0003" name="RegisteredClients" type="list[MonitoringRegistrationStruct Type]" default="[]">
<access read="true" readPrivilege="admin"/>
<quality changeOmitted="false" nullable="false" scene="false" persistence="nonVolatile" reportable="false"/>
<mandatoryConform>
<feature name="CIP"/>
</mandatoryConform>
<constraint type="desc"/>
</attribute>
<attribute id="0x0004" name="ICDCounter" type="uint32" default="0">
<access read="true" readPrivilege="admin"/>
<quality changeOmitted="true" nullable="false" scene="false" persistence="nonVolatile" reportable="false"/>
<mandatoryConform>
<feature name="CIP"/>
</mandatoryConform>
</attribute>
<attribute id="0x0005" name="ClientsSupportedPerFabric" type="uint16" default="1">
<access read="true" readPrivilege="view"/>
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false"/>
<mandatoryConform>
<feature name="CIP"/>
</mandatoryConform>
<constraint type="min" value="1"/>
</attribute>
</attributes>
<commands>
<command id="0x00" name="RegisterClient" response="RegisterClientResponse">
<access invokePrivilege="manage" fabricScoped="true"/>
<mandatoryConform>
<feature name="CIP"/>
</mandatoryConform>
<field id="0" name="CheckInNodeID" type="node-id">
<mandatoryConform/>
</field>
<field id="1" name="MonitoredSubject" type="subject-id">
<mandatoryConform/>
</field>
<field id="2" name="Key" type="octets">
<mandatoryConform/>
<constraint type="maxLength" value="16"/>
</field>
<field id="3" name="VerificationKey" type="octets">
<optionalConform/>
<constraint type="maxLength" value="16"/>
</field>
</command>
<command id="0x01" name="RegisterClientResponse" direction="responseFromServer">
<access invokePrivilege="manage"/>
<mandatoryConform>
<feature name="CIP"/>
</mandatoryConform>
<field id="0" name="ICDCounter" type="uint32">
<mandatoryConform/>
</field>
</command>
<command id="0x02" name="UnregisterClient" response="Y">
<access invokePrivilege="manage" fabricScoped="true"/>
<mandatoryConform>
<feature name="CIP"/>
</mandatoryConform>
<field id="0" name="CheckInNodeID" type="node-id">
<mandatoryConform/>
</field>
<field id="1" name="VerificationKey" type="octets">
<optionalConform/>
<constraint type="maxLength" value="16"/>
</field>
</command>
<command id="0x03" name="StayActiveRequest" response="StayActiveResponse">
<access invokePrivilege="operate"/>
<otherwiseConform>
<mandatoryConform>
<feature name="LIT"/>
</mandatoryConform>
<optionalConform/>
</otherwiseConform>
<field id="0" name="StayActiveDuration" type="uint32" default="ActiveModeThreshold">
<mandatoryConform/>
</field>
</command>
<command id="0x04" name="StayActiveResponse" direction="responseFromServer">
<access invokePrivilege="operate"/>
<otherwiseConform>
<mandatoryConform>
<feature name="LIT"/>
</mandatoryConform>
<optionalConform/>
</otherwiseConform>
<field id="0" name="PromisedActiveDuration" type="uint32" default="ActiveModeThreshold">
<mandatoryConform/>
<constraint type="desc"/>
</field>
</command>
</commands>
</cluster>
Loading

0 comments on commit ac1536d

Please sign in to comment.