forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathservice-area-cluster.xml
136 lines (116 loc) · 6.38 KB
/
service-area-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
<?xml version="1.0"?>
<!--
Copyright (c) 2023-24 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"/>
Data types
<struct name="AreaInfoStruct" apiMaturity="provisional">
<cluster code="0x0150"/>
<item name="LocationInfo" type="LocationDescriptorStruct" optional="false" isNullable="true"/>
<item name="LandmarkTag" type="LandmarkTag" optional="false" isNullable="true"/>
<item name="PositionTag" type="PositionTag" optional="false" isNullable="true"/>
<item name="SurfaceTag" type="FloorSurfaceTag" optional="false" isNullable="true"/>
</struct>
<struct name="MapStruct">
<cluster code="0x0150"/>
<item name="MapID" type="int32u" optional="false"/>
<item name="Name" type="char_string" length="64" optional="false"/>
</struct>
<struct name="AreaStruct">
<cluster code="0x0150"/>
<item name="AreaID" type="int32u" optional="false" isNullable="false"/>
<item name="MapID" type="int8u" optional="false" isNullable="true"/>
<item name="AreaDesc" type="AreaInfoStruct" optional="false" isNullable="false"/>
</struct>
<enum name="OperationalStatusEnum" type="enum8">
<cluster code="0x0150"/>
<item value="0x00" name="Pending"/>
<item value="0x01" name="Operating"/>
<item value="0x02" name="Skipped"/>
<item value="0x03" name="Completed"/>
</enum>
<struct name="ProgressStruct">
<cluster code="0x0150"/>
<item name="AreaID" type="int32u" optional="false"/>
<item name="Status" type="OperationalStatusEnum" optional="false"/>
<item name="TotalOperationalTime" type="elapsed_s" optional="true" isNullable="true"/>
<item name="EstimatedTime" type="elapsed_s" optional="true" isNullable="true"/>
</struct>
<enum name="SelectAreasStatus" type="enum8">
<cluster code="0x0150"/>
<item value="0x00" name="Success"/>
<item value="0x01" name="UnsupportedArea"/>
<item value="0x02" name="DuplicatedAreas"/>
<item value="0x03" name="InvalidInMode"/>
<item value="0x04" name="InvalidSet"/>
</enum>
<enum name="SkipAreaStatus" type="enum8">
<cluster code="0x0150"/>
<item value="0x00" name="Success"/>
<item value="0x01" name="InvalidAreaList"/>
<item value="0x02" name="InvalidInMode"/>
</enum>
<cluster apiMaturity="provisional">
<domain>General</domain>
<name>Service Area</name>
<description>The Service Area cluster provides an interface for controlling the locations where a device should operate, and for querying the current location.</description>
<code>0x0150</code>
<define>SERVICE_AREA_CLUSTER</define>
<globalAttribute side="either" code="0xFFFD" value="1" />
<features>
<feature bit="0" code="SELRUN" name="SelectWhileRunning" summary="The device allows changing the selected areas while running">
<optionalConform/>
</feature>
<feature bit="1" code="PROG" name="ProgressReporting" summary="The device implements the progress reporting feature">
<optionalConform/>
</feature>
<feature bit="2" code="MAPS" name="Maps" summary="The device has map support">
<optionalConform/>
</feature>
</features>
<!-- Attributes -->
<attribute side="server" code="0x0000" define="SupportedAreas" type="array" entryType="AreaStruct" writable="false" isNullable="false" optional="false">SupportedAreas</attribute>
<attribute side="server" code="0x0001" define="SupportedMaps" type="array" entryType="MapStruct" writable="false" isNullable="false" optional="false">SupportedMaps</attribute>
<attribute side="server" code="0x0002" define="SelectedAreas" type="array" entryType="int32u" writable="false" isNullable="false" optional="false">SelectedAreas</attribute>
<attribute side="server" code="0x0003" define="CurrentArea" type="int32u" writable="false" isNullable="true" optional="true" >CurrentArea</attribute>
<attribute side="server" code="0x0004" define="EstimatedEndTime" type="epoch_s" writable="false" isNullable="true" optional="true" >EstimatedEndTime</attribute>
<attribute side="server" code="0x0005" define="Progress" type="array" entryType="ProgressStruct" writable="false" isNullable="false" optional="true" >Progress</attribute>
<!-- Commands -->
<command source="client" code="0x00" name="SelectAreas" response="SelectAreasResponse" optional="false">
<description>
Command used to select a set of device areas, where the device is to operate.
</description>
<arg name="NewAreas" type="int32u" array="true"/>
</command>
<command source="server" code="0x01" name="SelectAreasResponse" disableDefaultResponse="true" optional="false">
<description>
This command is sent by the device on receipt of the SelectAreas command.
</description>
<arg name="Status" type="SelectAreasStatus" optional="false"/>
<arg name="StatusText" type="char_string" length="256" optional="true"/>
</command>
<command source="client" code="0x02" name="SkipArea" response="SkipAreaResponse" optional="true">
<description>
This command is used to skip an area where the device operates.
</description>
<arg name="SkippedArea" type="int32u"/>
</command>
<command source="server" code="0x03" name="SkipAreaResponse" disableDefaultResponse="true" optional="true">
<description>
This command is sent by the device on receipt of the SkipArea command.
</description>
<arg name="Status" type="SkipAreaStatus" optional="false"/>
<arg name="StatusText" type="char_string" length="256" optional="true"/>
</command>
</cluster>
</configurator>