Skip to content

Commit

Permalink
Remove the startupmode from the rvc clusters (#29949)
Browse files Browse the repository at this point in the history
* Removed the StartUpMode attribute from the RvcRunMode and the RvcCleanMode cluster XMLs.

* Regenerated zap files.

* Removed the StartUpMode attribute for the RVC clusters from the all-clusters-app's zap file.

* Marked the StartUpMode attribute for the RvcRunMode and RvcCleanMode cluster as disabled in the CI PICS file.
  • Loading branch information
hicklin authored Oct 25, 2023
1 parent bb63421 commit 0a37ad3
Show file tree
Hide file tree
Showing 31 changed files with 11 additions and 1,146 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2690,7 +2690,6 @@ server cluster RvcRunMode = 84 {

readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
attribute nullable int8u startUpMode = 2;
attribute nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
Expand Down Expand Up @@ -2740,7 +2739,6 @@ server cluster RvcCleanMode = 85 {

readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
attribute nullable int8u startUpMode = 2;
attribute nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
Expand Down Expand Up @@ -5925,7 +5923,6 @@ endpoint 1 {
server cluster RvcRunMode {
callback attribute supportedModes;
callback attribute currentMode;
callback attribute startUpMode;
callback attribute onMode;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
Expand All @@ -5940,7 +5937,6 @@ endpoint 1 {
server cluster RvcCleanMode {
callback attribute supportedModes;
callback attribute currentMode;
callback attribute startUpMode;
callback attribute onMode;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
Expand Down
47 changes: 8 additions & 39 deletions examples/all-clusters-app/all-clusters-common/all-clusters-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@
}
],
"package": [
{
"pathRelativity": "relativeToZap",
"path": "../../../src/app/zap-templates/app-templates.json",
"type": "gen-templates-json",
"version": "chip-v1"
},
{
"pathRelativity": "relativeToZap",
"path": "../../../src/app/zap-templates/zcl/zcl-with-test-extensions.json",
"type": "zcl-properties",
"category": "matter",
"version": 1,
"description": "Matter SDK ZCL data with some extensions"
},
{
"pathRelativity": "relativeToZap",
"path": "../../../src/app/zap-templates/app-templates.json",
"type": "gen-templates-json",
"version": "chip-v1"
}
],
"endpointTypes": [
Expand Down Expand Up @@ -9426,22 +9426,6 @@
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "StartUpMode",
"code": 2,
"mfgCode": null,
"side": "server",
"type": "int8u",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "OnMode",
"code": 3,
Expand Down Expand Up @@ -9598,22 +9582,6 @@
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "StartUpMode",
"code": 2,
"mfgCode": null,
"side": "server",
"type": "int8u",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "OnMode",
"code": 3,
Expand Down Expand Up @@ -21789,5 +21757,6 @@
"endpointId": 65534,
"networkId": 0
}
]
],
"log": []
}
6 changes: 3 additions & 3 deletions src/app/tests/suites/certification/ci-pics-values
Original file line number Diff line number Diff line change
Expand Up @@ -2378,7 +2378,7 @@ RVCCLEANM.S=1
#Server
RVCCLEANM.S.A0000=1
RVCCLEANM.S.A0001=1
RVCCLEANM.S.A0002=1
RVCCLEANM.S.A0002=0
RVCCLEANM.S.A0003=1

#Feature
Expand Down Expand Up @@ -2451,7 +2451,7 @@ RVCRUNM.S.F00=1
#Server
RVCRUNM.S.A0000=1
RVCRUNM.S.A0001=1
RVCRUNM.S.A0002=1
RVCRUNM.S.A0002=0
RVCRUNM.S.A0003=1

#Commands
Expand Down Expand Up @@ -2622,7 +2622,7 @@ RVCRUNM.S=1
RVCRUNM.S.F00=1
RVCRUNM.S.A0000=1
RVCRUNM.S.A0001=1
RVCRUNM.S.A0002=1
RVCRUNM.S.A0002=0
RVCRUNM.S.A0003=1
RVCRUNM.S.C00.Rsp=1
RVCRUNM.S.C01.Tx=1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ limitations under the License.
<!-- Base data types -->
<attribute side="server" code="0x0000" define="SUPPORTED_MODES" type="ARRAY" entryType="ModeOptionStruct" writable="false" optional="false" isNullable="false" length="255">SupportedModes</attribute>
<attribute side="server" code="0x0001" define="CURRENT_MODE" type="int8u" writable="false" optional="false" isNullable="false" reportable="true">CurrentMode</attribute>
<attribute side="server" code="0x0002" define="START_UP_MODE" type="int8u" writable="true" optional="true" isNullable="true">StartUpMode</attribute>
<attribute side="server" code="0x0003" define="ON_MODE" type="int8u" writable="true" optional="true" isNullable="true">OnMode</attribute>

<!-- Commands -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ limitations under the License.
<!-- Base data types -->
<attribute side="server" code="0x0000" define="SUPPORTED_MODES" type="ARRAY" entryType="ModeOptionStruct" writable="false" optional="false" isNullable="false" length="255">SupportedModes</attribute>
<attribute side="server" code="0x0001" define="CURRENT_MODE" type="int8u" writable="false" optional="false" isNullable="false" reportable="true">CurrentMode</attribute>
<attribute side="server" code="0x0002" define="START_UP_MODE" type="int8u" writable="true" optional="true" isNullable="true">StartUpMode</attribute>
<attribute side="server" code="0x0003" define="ON_MODE" type="int8u" writable="true" optional="true" isNullable="true">OnMode</attribute>

<!-- Commands -->
Expand Down
2 changes: 0 additions & 2 deletions src/app/zap-templates/zcl/zcl-with-test-extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -340,14 +340,12 @@
"RVC Clean Mode": [
"SupportedModes",
"CurrentMode",
"StartUpMode",
"OnMode",
"FeatureMap"
],
"RVC Run Mode": [
"SupportedModes",
"CurrentMode",
"StartUpMode",
"OnMode",
"FeatureMap"
],
Expand Down
2 changes: 0 additions & 2 deletions src/app/zap-templates/zcl/zcl.json
Original file line number Diff line number Diff line change
Expand Up @@ -338,14 +338,12 @@
"RVC Clean Mode": [
"SupportedModes",
"CurrentMode",
"StartUpMode",
"OnMode",
"FeatureMap"
],
"RVC Run Mode": [
"SupportedModes",
"CurrentMode",
"StartUpMode",
"OnMode",
"FeatureMap"
],
Expand Down
2 changes: 0 additions & 2 deletions src/controller/data_model/controller-clusters.matter
Original file line number Diff line number Diff line change
Expand Up @@ -2961,7 +2961,6 @@ client cluster RvcRunMode = 84 {

readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
attribute optional nullable int8u startUpMode = 2;
attribute optional nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
Expand Down Expand Up @@ -3013,7 +3012,6 @@ client cluster RvcCleanMode = 85 {

readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
attribute optional nullable int8u startUpMode = 2;
attribute optional nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12004,12 +12004,6 @@ public interface SupportedModesAttributeCallback {
default void onSubscriptionEstablished(long subscriptionId) {}
}

public interface StartUpModeAttributeCallback {
void onSuccess(@Nullable Integer value);
void onError(Exception ex);
default void onSubscriptionEstablished(long subscriptionId) {}
}

public interface OnModeAttributeCallback {
void onSuccess(@Nullable Integer value);
void onError(Exception ex);
Expand Down Expand Up @@ -12060,24 +12054,6 @@ public void subscribeCurrentModeAttribute(
subscribeCurrentModeAttribute(chipClusterPtr, callback, minInterval, maxInterval);
}

public void readStartUpModeAttribute(
StartUpModeAttributeCallback callback) {
readStartUpModeAttribute(chipClusterPtr, callback);
}

public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value) {
writeStartUpModeAttribute(chipClusterPtr, callback, value, null);
}

public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) {
writeStartUpModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs);
}

public void subscribeStartUpModeAttribute(
StartUpModeAttributeCallback callback, int minInterval, int maxInterval) {
subscribeStartUpModeAttribute(chipClusterPtr, callback, minInterval, maxInterval);
}

public void readOnModeAttribute(
OnModeAttributeCallback callback) {
readOnModeAttribute(chipClusterPtr, callback);
Expand Down Expand Up @@ -12164,12 +12140,6 @@ public void subscribeClusterRevisionAttribute(

private native void subscribeCurrentModeAttribute(long chipClusterPtr, IntegerAttributeCallback callback, int minInterval, int maxInterval);

private native void readStartUpModeAttribute(long chipClusterPtr, StartUpModeAttributeCallback callback);

private native void writeStartUpModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs);

private native void subscribeStartUpModeAttribute(long chipClusterPtr, StartUpModeAttributeCallback callback, int minInterval, int maxInterval);

private native void readOnModeAttribute(long chipClusterPtr, OnModeAttributeCallback callback);

private native void writeOnModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs);
Expand Down Expand Up @@ -12232,12 +12202,6 @@ public interface SupportedModesAttributeCallback {
default void onSubscriptionEstablished(long subscriptionId) {}
}

public interface StartUpModeAttributeCallback {
void onSuccess(@Nullable Integer value);
void onError(Exception ex);
default void onSubscriptionEstablished(long subscriptionId) {}
}

public interface OnModeAttributeCallback {
void onSuccess(@Nullable Integer value);
void onError(Exception ex);
Expand Down Expand Up @@ -12288,24 +12252,6 @@ public void subscribeCurrentModeAttribute(
subscribeCurrentModeAttribute(chipClusterPtr, callback, minInterval, maxInterval);
}

public void readStartUpModeAttribute(
StartUpModeAttributeCallback callback) {
readStartUpModeAttribute(chipClusterPtr, callback);
}

public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value) {
writeStartUpModeAttribute(chipClusterPtr, callback, value, null);
}

public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) {
writeStartUpModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs);
}

public void subscribeStartUpModeAttribute(
StartUpModeAttributeCallback callback, int minInterval, int maxInterval) {
subscribeStartUpModeAttribute(chipClusterPtr, callback, minInterval, maxInterval);
}

public void readOnModeAttribute(
OnModeAttributeCallback callback) {
readOnModeAttribute(chipClusterPtr, callback);
Expand Down Expand Up @@ -12392,12 +12338,6 @@ public void subscribeClusterRevisionAttribute(

private native void subscribeCurrentModeAttribute(long chipClusterPtr, IntegerAttributeCallback callback, int minInterval, int maxInterval);

private native void readStartUpModeAttribute(long chipClusterPtr, StartUpModeAttributeCallback callback);

private native void writeStartUpModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs);

private native void subscribeStartUpModeAttribute(long chipClusterPtr, StartUpModeAttributeCallback callback, int minInterval, int maxInterval);

private native void readOnModeAttribute(long chipClusterPtr, OnModeAttributeCallback callback);

private native void writeOnModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6579,7 +6579,6 @@ public long getID() {
public enum Attribute {
SupportedModes(0L),
CurrentMode(1L),
StartUpMode(2L),
OnMode(3L),
GeneratedCommandList(65528L),
AcceptedCommandList(65529L),
Expand Down Expand Up @@ -6701,7 +6700,6 @@ public long getID() {
public enum Attribute {
SupportedModes(0L),
CurrentMode(1L),
StartUpMode(2L),
OnMode(3L),
GeneratedCommandList(65528L),
AcceptedCommandList(65529L),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7255,27 +7255,6 @@ public void onError(Exception ex) {
}
}

public static class DelegatedRvcRunModeClusterStartUpModeAttributeCallback implements ChipClusters.RvcRunModeCluster.StartUpModeAttributeCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
public void setCallbackDelegate(ClusterCommandCallback callback) {
this.callback = callback;
}

@Override
public void onSuccess(@Nullable Integer value) {
Map<CommandResponseInfo, Object> responseValues = new LinkedHashMap<>();
CommandResponseInfo commandResponseInfo = new CommandResponseInfo("value", "Integer");
responseValues.put(commandResponseInfo, value);
callback.onSuccess(responseValues);
}

@Override
public void onError(Exception ex) {
callback.onFailure(ex);
}
}

public static class DelegatedRvcRunModeClusterOnModeAttributeCallback implements ChipClusters.RvcRunModeCluster.OnModeAttributeCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
Expand Down Expand Up @@ -7426,27 +7405,6 @@ public void onError(Exception ex) {
}
}

public static class DelegatedRvcCleanModeClusterStartUpModeAttributeCallback implements ChipClusters.RvcCleanModeCluster.StartUpModeAttributeCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
public void setCallbackDelegate(ClusterCommandCallback callback) {
this.callback = callback;
}

@Override
public void onSuccess(@Nullable Integer value) {
Map<CommandResponseInfo, Object> responseValues = new LinkedHashMap<>();
CommandResponseInfo commandResponseInfo = new CommandResponseInfo("value", "Integer");
responseValues.put(commandResponseInfo, value);
callback.onSuccess(responseValues);
}

@Override
public void onError(Exception ex) {
callback.onFailure(ex);
}
}

public static class DelegatedRvcCleanModeClusterOnModeAttributeCallback implements ChipClusters.RvcCleanModeCluster.OnModeAttributeCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
Expand Down
Loading

0 comments on commit 0a37ad3

Please sign in to comment.