Skip to content

Commit

Permalink
Update Thread Network Diagnostics xml definition to align with the la…
Browse files Browse the repository at this point in the history
…test spec (#21499)

* Update Thread Network Diagnostics xml defination to align with the latest spec

* Run codegen
  • Loading branch information
yufengwangca authored and pull[bot] committed Jul 21, 2023
1 parent add1012 commit 2292912
Show file tree
Hide file tree
Showing 47 changed files with 483 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1308,6 +1308,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
5 changes: 5 additions & 0 deletions examples/bridge-app/bridge-common/bridge-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1103,6 +1103,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
5 changes: 5 additions & 0 deletions examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1103,6 +1103,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
5 changes: 5 additions & 0 deletions examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1096,6 +1096,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
5 changes: 5 additions & 0 deletions examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
5 changes: 5 additions & 0 deletions examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1103,6 +1103,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1162,6 +1162,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
5 changes: 5 additions & 0 deletions examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
5 changes: 5 additions & 0 deletions examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
5 changes: 5 additions & 0 deletions examples/lighting-app/lighting-common/lighting-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
5 changes: 5 additions & 0 deletions examples/lock-app/lock-common/lock-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
5 changes: 5 additions & 0 deletions examples/pump-app/pump-common/pump-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
5 changes: 5 additions & 0 deletions examples/thermostat/thermostat-common/thermostat.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
5 changes: 5 additions & 0 deletions examples/tv-app/tv-common/tv-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
5 changes: 5 additions & 0 deletions examples/window-app/common/window-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,11 @@ server cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ limitations under the License.
<description>Indicate that a Node’s connection status to a Thread network has changed</description>
<field id="0" name="ConnectionStatus" type="ThreadConnectionStatus"/>
</event>
<event side="server" code="0x01" name="NetworkFaultChange" priority="info" optional="true">
<description>Indicate a change in the set of network faults currently detected by the Node</description>
<field id="0" name="Current" type="NetworkFault" array="true"/>
<field id="1" name="Previous" type="NetworkFault" array="true"/>
</event>
</cluster>
<bitmap name="ThreadNetworkDiagnosticsFeature" type="BITMAP32">
<cluster code="0x0035"/>
Expand Down
5 changes: 5 additions & 0 deletions src/controller/data_model/controller-clusters.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1487,6 +1487,11 @@ client cluster ThreadNetworkDiagnostics = 53 {
ThreadConnectionStatus connectionStatus = 0;
}

info event NetworkFaultChange = 1 {
NetworkFault current[] = 0;
NetworkFault previous[] = 1;
}

readonly attribute nullable int16u channel = 0;
readonly attribute nullable RoutingRole routingRole = 1;
readonly attribute nullable char_string<16> networkName = 2;
Expand Down
Loading

0 comments on commit 2292912

Please sign in to comment.