Skip to content

Commit

Permalink
Merge branch 'master' into diagnostic_logs_implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
nivi-apple authored Oct 31, 2023
2 parents 1ce1262 + 07309d5 commit a5ec507
Show file tree
Hide file tree
Showing 240 changed files with 8,556 additions and 1,194 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ jobs:
src/app/zap-templates/zcl/data-model/chip/diagnostic-logs-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/dishwasher-alarm-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/dishwasher-mode-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/microwave-oven-control-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/door-lock-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/ethernet-network-diagnostics-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/fan-control-cluster.xml \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,13 @@ server cluster GeneralDiagnostics = 51 {
int64u eventTrigger = 1;
}

response struct TimeSnapshotResponse = 2 {
systime_us systemTimeUs = 0;
nullable epoch_us UTCTimeUs = 1;
}

command access(invoke: manage) TestEventTrigger(TestEventTriggerRequest): DefaultSuccess = 0;
command TimeSnapshot(): TimeSnapshotResponse = 1;
}

/** Commands to trigger a Node to allow a new Administrator to commission it. */
Expand Down Expand Up @@ -1183,7 +1189,7 @@ server cluster TemperatureMeasurement = 1026 {
readonly attribute nullable temperature measuredValue = 0;
readonly attribute nullable temperature minMeasuredValue = 1;
readonly attribute nullable temperature maxMeasuredValue = 2;
readonly attribute temperature tolerance = 3;
readonly attribute int16u tolerance = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
Expand Down Expand Up @@ -1883,9 +1889,11 @@ endpoint 0 {
callback attribute activeNetworkFaults;
callback attribute testEventTriggersEnabled default = false;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 0x0001;
ram attribute clusterRevision default = 0x0002;

handle command TestEventTrigger;
handle command TimeSnapshot;
handle command TimeSnapshotResponse;
}

server cluster AdministratorCommissioning {
Expand Down
29 changes: 22 additions & 7 deletions examples/air-purifier-app/air-purifier-common/air-purifier-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -1379,6 +1379,22 @@
"source": "client",
"isIncoming": 1,
"isEnabled": 1
},
{
"name": "TimeSnapshot",
"code": 1,
"mfgCode": null,
"source": "client",
"isIncoming": 1,
"isEnabled": 1
},
{
"name": "TimeSnapshotResponse",
"code": 2,
"mfgCode": null,
"source": "server",
"isIncoming": 0,
"isEnabled": 1
}
],
"attributes": [
Expand Down Expand Up @@ -1552,7 +1568,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0001",
"defaultValue": "0x0002",
"reportable": 1,
"minInterval": 0,
"maxInterval": 65344,
Expand Down Expand Up @@ -6822,7 +6838,7 @@
"code": 0,
"mfgCode": null,
"side": "server",
"type": "int16s",
"type": "temperature",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
Expand All @@ -6838,7 +6854,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
"type": "int16s",
"type": "temperature",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
Expand All @@ -6854,7 +6870,7 @@
"code": 2,
"mfgCode": null,
"side": "server",
"type": "int16s",
"type": "temperature",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
Expand All @@ -6870,7 +6886,7 @@
"code": 3,
"mfgCode": null,
"side": "server",
"type": "int16u",
"type": "temperature",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
Expand Down Expand Up @@ -7543,6 +7559,5 @@
"endpointId": 4,
"networkId": 0
}
],
"log": []
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,13 @@ server cluster GeneralDiagnostics = 51 {
int64u eventTrigger = 1;
}

response struct TimeSnapshotResponse = 2 {
systime_us systemTimeUs = 0;
nullable epoch_us UTCTimeUs = 1;
}

command access(invoke: manage) TestEventTrigger(TestEventTriggerRequest): DefaultSuccess = 0;
command TimeSnapshot(): TimeSnapshotResponse = 1;
}

/** 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. */
Expand Down Expand Up @@ -1886,9 +1892,11 @@ endpoint 0 {
callback attribute activeNetworkFaults;
callback attribute testEventTriggersEnabled default = false;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 1;
ram attribute clusterRevision default = 0x0002;

handle command TestEventTrigger;
handle command TimeSnapshot;
handle command TimeSnapshotResponse;
}

server cluster SoftwareDiagnostics {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1327,6 +1327,22 @@
"source": "client",
"isIncoming": 1,
"isEnabled": 1
},
{
"name": "TimeSnapshot",
"code": 1,
"mfgCode": null,
"source": "client",
"isIncoming": 1,
"isEnabled": 1
},
{
"name": "TimeSnapshotResponse",
"code": 2,
"mfgCode": null,
"source": "server",
"isIncoming": 0,
"isEnabled": 1
}
],
"attributes": [
Expand Down Expand Up @@ -1500,7 +1516,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "1",
"defaultValue": "0x0002",
"reportable": 1,
"minInterval": 0,
"maxInterval": 65344,
Expand Down Expand Up @@ -3992,7 +4008,7 @@
"code": 0,
"mfgCode": null,
"side": "server",
"type": "int16s",
"type": "temperature",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
Expand All @@ -4008,7 +4024,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
"type": "int16s",
"type": "temperature",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
Expand All @@ -4024,7 +4040,7 @@
"code": 2,
"mfgCode": null,
"side": "server",
"type": "int16s",
"type": "temperature",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
Expand Down Expand Up @@ -5845,6 +5861,5 @@
"endpointId": 1,
"networkId": 0
}
],
"log": []
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -1721,7 +1721,13 @@ server cluster GeneralDiagnostics = 51 {
int64u eventTrigger = 1;
}

response struct TimeSnapshotResponse = 2 {
systime_us systemTimeUs = 0;
nullable epoch_us UTCTimeUs = 1;
}

command access(invoke: manage) TestEventTrigger(TestEventTriggerRequest): DefaultSuccess = 0;
command TimeSnapshot(): TimeSnapshotResponse = 1;
}

/** 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. */
Expand Down Expand Up @@ -4172,7 +4178,7 @@ server cluster TemperatureMeasurement = 1026 {
readonly attribute nullable temperature measuredValue = 0;
readonly attribute nullable temperature minMeasuredValue = 1;
readonly attribute nullable temperature maxMeasuredValue = 2;
readonly attribute temperature tolerance = 3;
readonly attribute int16u tolerance = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
Expand Down Expand Up @@ -5457,9 +5463,11 @@ endpoint 0 {
callback attribute eventList;
callback attribute attributeList;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 1;
ram attribute clusterRevision default = 0x0002;

handle command TestEventTrigger;
handle command TimeSnapshot;
handle command TimeSnapshotResponse;
}

server cluster SoftwareDiagnostics {
Expand Down
29 changes: 22 additions & 7 deletions examples/all-clusters-app/all-clusters-common/all-clusters-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -2827,6 +2827,22 @@
"source": "client",
"isIncoming": 1,
"isEnabled": 1
},
{
"name": "TimeSnapshot",
"code": 1,
"mfgCode": null,
"source": "client",
"isIncoming": 1,
"isEnabled": 1
},
{
"name": "TimeSnapshotResponse",
"code": 2,
"mfgCode": null,
"source": "server",
"isIncoming": 0,
"isEnabled": 1
}
],
"attributes": [
Expand Down Expand Up @@ -3064,7 +3080,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "1",
"defaultValue": "0x0002",
"reportable": 1,
"minInterval": 0,
"maxInterval": 65344,
Expand Down Expand Up @@ -14924,7 +14940,7 @@
"code": 0,
"mfgCode": null,
"side": "server",
"type": "int16s",
"type": "temperature",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
Expand All @@ -14940,7 +14956,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
"type": "int16s",
"type": "temperature",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
Expand All @@ -14956,7 +14972,7 @@
"code": 2,
"mfgCode": null,
"side": "server",
"type": "int16s",
"type": "temperature",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
Expand All @@ -14972,7 +14988,7 @@
"code": 3,
"mfgCode": null,
"side": "server",
"type": "int16u",
"type": "temperature",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
Expand Down Expand Up @@ -22017,6 +22033,5 @@
"endpointId": 65534,
"networkId": 0
}
],
"log": []
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -1475,6 +1475,7 @@ server cluster GeneralDiagnostics = 51 {

readonly attribute NetworkInterface networkInterfaces[] = 0;
readonly attribute int16u rebootCount = 1;
readonly attribute int64u upTime = 2;
readonly attribute boolean testEventTriggersEnabled = 8;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
Expand All @@ -1488,7 +1489,13 @@ server cluster GeneralDiagnostics = 51 {
int64u eventTrigger = 1;
}

response struct TimeSnapshotResponse = 2 {
systime_us systemTimeUs = 0;
nullable epoch_us UTCTimeUs = 1;
}

command access(invoke: manage) TestEventTrigger(TestEventTriggerRequest): DefaultSuccess = 0;
command TimeSnapshot(): TimeSnapshotResponse = 1;
}

/** 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. */
Expand Down Expand Up @@ -4189,15 +4196,18 @@ endpoint 0 {
server cluster GeneralDiagnostics {
callback attribute networkInterfaces;
callback attribute rebootCount default = 0x0000;
callback attribute upTime default = 0x0000000000000000;
callback attribute testEventTriggersEnabled;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
callback attribute attributeList;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 1;
ram attribute clusterRevision default = 0x0002;

handle command TestEventTrigger;
handle command TimeSnapshot;
handle command TimeSnapshotResponse;
}

server cluster SoftwareDiagnostics {
Expand Down
Loading

0 comments on commit a5ec507

Please sign in to comment.