Skip to content

Commit

Permalink
Align diagnostic logs cluster XML to spec changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple committed Feb 2, 2023
1 parent c3a5b9e commit 6b61a59
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ limitations under the License.
-->
<configurator>
<domain name="CHIP" spec="chip-0.7" dependsOn="zcl-1.0-07-5123-03" certifiable="true"/>
<enum name="LogsIntent" type="ENUM8">
<enum name="IntentEnum" type="ENUM8">
<cluster code="0x0032"/>
<item name="EndUserSupport" value="0x0"/>
<item name="NetworkDiag" value="0x1"/>
<item name="CrashLogs" value="0x2"/>
</enum>
<enum name="LogsStatus" type="ENUM8">
<enum name="StatusEnum" type="ENUM8">
<cluster code="0x0032"/>
<item name="Success" value="0x0"/>
<item name="Exhausted" value="0x1"/>
<item name="NoLogs" value="0x2"/>
<item name="Busy" value="0x3"/>
<item name="Denied" value="0x4"/>
</enum>
<enum name="LogsTransferProtocol" type="ENUM8">
<enum name="TransferProtocolEnum" type="ENUM8">
<cluster code="0x0032"/>
<item name="ResponsePayload" value="0x0"/>
<item name="BDX" value="0x1"/>
Expand All @@ -45,13 +45,13 @@ limitations under the License.
<server tick="false" init="false">true</server>
<command source="client" code="0x00" name="RetrieveLogsRequest" response="RetrieveLogsResponse" optional="false" cli="chip logs retrieve">
<description>Retrieving diagnostic logs from a Node</description>
<arg name="Intent" type="LogsIntent"/>
<arg name="RequestedProtocol" type="LogsTransferProtocol"/>
<arg name="TransferFileDesignator" type="OCTET_STRING" length="32"/>
<arg name="Intent" type="IntentEnum"/>
<arg name="RequestedProtocol" type="TransferProtocolEnum"/>
<arg name="TransferFileDesignator" type="OCTET_STRING" length="32" optional="true"/>
</command>
<command source="server" code="0x01" name="RetrieveLogsResponse" optional="false" cli="chip logs response">
<description>Response to the RetrieveLogsRequest</description>
<arg name="Status" type="LogsStatus"/>
<arg name="Status" type="StatusEnum"/>
<arg name="LogContent" type="OCTET_STRING"/>
<arg name="UTCTimeStamp" type="epoch_s"/>
<arg name="TimeSinceBoot" type="INT32U"/>
Expand Down
26 changes: 26 additions & 0 deletions src/darwin/Framework/CHIP/templates/availability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5426,6 +5426,10 @@
- OperationErrorEnum
- OperatingModeEnum
- OperationSourceEnum
DiagnosticLogs:
- IntentEnum
- StatusEnum
- TransferProtocolEnum
enum values:
OTASoftwareUpdateProvider:
OTAApplyUpdateAction:
Expand Down Expand Up @@ -5668,6 +5672,20 @@
- Heat
- Cool
- Both
DiagnosticLogs:
IntentEnum:
- EndUserSupport
- NetworkDiag
- CrashLogs
StatusEnum:
- Success
- Exhausted
- NoLogs
- Busy
- Denied
TransferProtocolEnum:
- ResponsePayload
- BDX
bitmaps:
UnitTesting:
- Bitmap8MaskMap
Expand Down Expand Up @@ -6015,6 +6033,10 @@
- DoorLockSetPinOrIdStatus
- DoorLockOperationEventCode
- DoorLockProgrammingEventCode
DiagnosticLogs:
- LogsIntent
- LogsStatus
- LogsTransferProtocol
enum values:
GeneralCommissioning:
CommissioningError:
Expand Down Expand Up @@ -6395,6 +6417,10 @@
OperationSourceEnum: DlOperationSource
UserStatusEnum: DlUserStatus
UserTypeEnum: DlUserType
DiagnosticLogs:
IntentEnum: LogsIntent
StatusEnum: LogsStatus
TransferProtocolEnum: LogsTransferProtocol
enum values:
GeneralCommissioning:
CommissioningError:
Expand Down

0 comments on commit 6b61a59

Please sign in to comment.