Skip to content

Commit 0afdf12

Browse files
yufengwangcashgutte
authored andcommitted
Update the FS XML definations to algin with spec update (project-chip#35381)
1 parent 898bcc3 commit 0afdf12

File tree

27 files changed

+219
-219
lines changed

27 files changed

+219
-219
lines changed

examples/fabric-admin/device_manager/DeviceManager.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ void DeviceManager::HandleCommissioningRequestResult(TLV::TLVReader & data)
282282
return;
283283
}
284284

285-
if (value.requestId != mRequestId)
285+
if (value.requestID != mRequestId)
286286
{
287287
ChipLogError(NotSpecified, "The RequestId does not match the RequestId provided to RequestCommissioningApproval");
288288
return;
@@ -296,7 +296,7 @@ void DeviceManager::HandleCommissioningRequestResult(TLV::TLVReader & data)
296296

297297
// The server is ready to begin commissioning the requested device, request the Commissioner Control Server to begin
298298
// commissioning a previously approved request.
299-
SendCommissionNodeRequest(value.requestId, kResponseTimeoutSeconds);
299+
SendCommissionNodeRequest(value.requestID, kResponseTimeoutSeconds);
300300
}
301301

302302
void DeviceManager::HandleAttributePartsListUpdate(chip::TLV::TLVReader & data)

examples/fabric-bridge-app/fabric-bridge-common/fabric-bridge-app.matter

+7-7
Original file line numberDiff line numberDiff line change
@@ -1698,9 +1698,9 @@ provisional cluster CommissionerControl = 1873 {
16981698
}
16991699

17001700
fabric_sensitive info event access(read: manage) CommissioningRequestResult = 0 {
1701-
int64u requestId = 0;
1702-
node_id clientNodeId = 1;
1703-
enum8 statusCode = 2;
1701+
int64u requestID = 0;
1702+
node_id clientNodeID = 1;
1703+
status statusCode = 2;
17041704
fabric_idx fabricIndex = 254;
17051705
}
17061706

@@ -1713,14 +1713,14 @@ provisional cluster CommissionerControl = 1873 {
17131713
readonly attribute int16u clusterRevision = 65533;
17141714

17151715
request struct RequestCommissioningApprovalRequest {
1716-
int64u requestId = 0;
1717-
vendor_id vendorId = 1;
1718-
int16u productId = 2;
1716+
int64u requestID = 0;
1717+
vendor_id vendorID = 1;
1718+
int16u productID = 2;
17191719
optional char_string<64> label = 3;
17201720
}
17211721

17221722
request struct CommissionNodeRequest {
1723-
int64u requestId = 0;
1723+
int64u requestID = 0;
17241724
int16u responseTimeoutSeconds = 1;
17251725
}
17261726

examples/fabric-bridge-app/linux/CommissionerControl.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ CHIP_ERROR CommissionerControlDelegate::HandleCommissioningApprovalRequest(const
7979
VerifyOrReturnError(mNextStep == Step::kIdle, CHIP_ERROR_INCORRECT_STATE);
8080

8181
CommissionerControl::Events::CommissioningRequestResult::Type result;
82-
result.requestId = request.requestId;
83-
result.clientNodeId = request.clientNodeId;
82+
result.requestID = request.requestId;
83+
result.clientNodeID = request.clientNodeId;
8484
result.fabricIndex = request.fabricIndex;
8585
result.statusCode = static_cast<uint8_t>(Protocols::InteractionModel::Status::Success);
8686

src/app/clusters/commissioner-control-server/commissioner-control-server.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ bool emberAfCommissionerControlClusterRequestCommissioningApprovalCallback(
170170
}
171171

172172
auto fabricIndex = commandObj->GetAccessingFabricIndex();
173-
auto requestId = commandData.requestId;
174-
auto vendorId = commandData.vendorId;
175-
auto productId = commandData.productId;
173+
auto requestId = commandData.requestID;
174+
auto vendorId = commandData.vendorID;
175+
auto productId = commandData.productID;
176176

177177
// The label assigned from commandData need to be stored in CommissionerControl::Delegate which ensure that the backing buffer
178178
// of it has a valid lifespan during fabric sync setup process.
@@ -232,7 +232,7 @@ bool emberAfCommissionerControlClusterCommissionNodeCallback(
232232
return true;
233233
}
234234

235-
auto requestId = commandData.requestId;
235+
auto requestId = commandData.requestID;
236236

237237
auto commissioningWindowParams = std::make_unique<Clusters::CommissionerControl::CommissioningWindowParams>();
238238

src/app/zap-templates/zcl/data-model/chip/bridged-device-basic-information.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ limitations under the License.
111111
<event side="server" code="0x02" name="Leave" priority="info" optional="true">
112112
<description>The Leave event SHOULD be emitted by a Node prior to permanently leaving the Fabric.</description>
113113
</event>
114-
<event side="server" code="0x03" name="ReachableChanged" priority="info" optional="false">
114+
<event side="server" code="0x03" name="ReachableChanged" priority="info">
115115
<description>This event SHALL be generated when there is a change in the Reachable attribute.</description>
116116
<field id="0" name="ReachableNewValue" type="boolean"/>
117117
</event>

src/app/zap-templates/zcl/data-model/chip/commissioner-control-cluster.xml

+8-8
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,21 @@ limitations under the License.
3939

4040
<command source="client" code="0x00" name="RequestCommissioningApproval" optional="false">
4141
<description>This command is sent by a client to request approval for a future CommissionNode call.</description>
42-
<arg id="0" name="RequestId" type="int64u"/>
43-
<arg id="1" name="VendorId" type="vendor_id"/>
44-
<arg id="2" name="ProductId" type="int16u"/>
42+
<arg id="0" name="RequestID" type="int64u"/>
43+
<arg id="1" name="VendorID" type="vendor_id"/>
44+
<arg id="2" name="ProductID" type="int16u"/>
4545
<arg id="3" name="Label" type="char_string" optional="true" length="64"/>
4646
<access op="invoke" privilege="manage"/>
4747
</command>
4848

4949
<command source="client" code="0x01" name="CommissionNode" response="ReverseOpenCommissioningWindow" optional="false">
5050
<description>This command is sent by a client to request that the server begins commissioning a previously approved request.</description>
51-
<arg id="0" name="RequestId" type="int64u"/>
51+
<arg id="0" name="RequestID" type="int64u"/>
5252
<arg id="1" name="ResponseTimeoutSeconds" type="int16u" min="30" max="120" default="30"/>
5353
<access op="invoke" privilege="manage"/>
5454
</command>
5555

56-
<command source="server" code="0x02" name="ReverseOpenCommissioningWindow" optional="false">
56+
<command source="server" code="0x02" name="ReverseOpenCommissioningWindow" optional="false" disableDefaultResponse="true">
5757
<description>When received within the timeout specified by CommissionNode, the client SHALL open a commissioning window on to the node which the client called RequestCommissioningApproval to have commissioned.</description>
5858
<arg id="0" name="CommissioningTimeout" type="int16u"/>
5959
<arg id="1" name="PAKEPasscodeVerifier" type="octet_string"/>
@@ -64,9 +64,9 @@ limitations under the License.
6464

6565
<event code="0x00" name="CommissioningRequestResult" priority="info" side="server" isFabricSensitive="true">
6666
<description>This event SHALL be sent by the server following a RequestCommissioningApproval command which the server responded to with SUCCESS.</description>
67-
<field id="0" name="RequestId" type="int64u"/>
68-
<field id="1" name="ClientNodeId" type="node_id"/>
69-
<field id="2" name="StatusCode" type="enum8"/>
67+
<field id="0" name="RequestID" type="int64u"/>
68+
<field id="1" name="ClientNodeID" type="node_id"/>
69+
<field id="2" name="StatusCode" type="status"/>
7070
<access op="read" privilege="manage"/>
7171
</event>
7272

src/controller/data_model/controller-clusters.matter

+7-7
Original file line numberDiff line numberDiff line change
@@ -9422,9 +9422,9 @@ provisional cluster CommissionerControl = 1873 {
94229422
}
94239423

94249424
fabric_sensitive info event access(read: manage) CommissioningRequestResult = 0 {
9425-
int64u requestId = 0;
9426-
node_id clientNodeId = 1;
9427-
enum8 statusCode = 2;
9425+
int64u requestID = 0;
9426+
node_id clientNodeID = 1;
9427+
status statusCode = 2;
94289428
fabric_idx fabricIndex = 254;
94299429
}
94309430

@@ -9437,14 +9437,14 @@ provisional cluster CommissionerControl = 1873 {
94379437
readonly attribute int16u clusterRevision = 65533;
94389438

94399439
request struct RequestCommissioningApprovalRequest {
9440-
int64u requestId = 0;
9441-
vendor_id vendorId = 1;
9442-
int16u productId = 2;
9440+
int64u requestID = 0;
9441+
vendor_id vendorID = 1;
9442+
int16u productID = 2;
94439443
optional char_string<64> label = 3;
94449444
}
94459445

94469446
request struct CommissionNodeRequest {
9447-
int64u requestId = 0;
9447+
int64u requestID = 0;
94489448
int16u responseTimeoutSeconds = 1;
94499449
}
94509450

src/controller/java/generated/java/chip/devicecontroller/ChipClusters.java

+18-18
Original file line numberDiff line numberDiff line change
@@ -61069,25 +61069,25 @@ public long initWithDevice(long devicePtr, int endpointId) {
6106961069
return 0L;
6107061070
}
6107161071

61072-
public void requestCommissioningApproval(DefaultClusterCallback callback, Long requestId, Integer vendorId, Integer productId, Optional<String> label) {
61073-
requestCommissioningApproval(callback, requestId, vendorId, productId, label, 0);
61072+
public void requestCommissioningApproval(DefaultClusterCallback callback, Long requestID, Integer vendorID, Integer productID, Optional<String> label) {
61073+
requestCommissioningApproval(callback, requestID, vendorID, productID, label, 0);
6107461074
}
6107561075

61076-
public void requestCommissioningApproval(DefaultClusterCallback callback, Long requestId, Integer vendorId, Integer productId, Optional<String> label, int timedInvokeTimeoutMs) {
61076+
public void requestCommissioningApproval(DefaultClusterCallback callback, Long requestID, Integer vendorID, Integer productID, Optional<String> label, int timedInvokeTimeoutMs) {
6107761077
final long commandId = 0L;
6107861078

6107961079
ArrayList<StructElement> elements = new ArrayList<>();
61080-
final long requestIdFieldID = 0L;
61081-
BaseTLVType requestIdtlvValue = new UIntType(requestId);
61082-
elements.add(new StructElement(requestIdFieldID, requestIdtlvValue));
61080+
final long requestIDFieldID = 0L;
61081+
BaseTLVType requestIDtlvValue = new UIntType(requestID);
61082+
elements.add(new StructElement(requestIDFieldID, requestIDtlvValue));
6108361083

61084-
final long vendorIdFieldID = 1L;
61085-
BaseTLVType vendorIdtlvValue = new UIntType(vendorId);
61086-
elements.add(new StructElement(vendorIdFieldID, vendorIdtlvValue));
61084+
final long vendorIDFieldID = 1L;
61085+
BaseTLVType vendorIDtlvValue = new UIntType(vendorID);
61086+
elements.add(new StructElement(vendorIDFieldID, vendorIDtlvValue));
6108761087

61088-
final long productIdFieldID = 2L;
61089-
BaseTLVType productIdtlvValue = new UIntType(productId);
61090-
elements.add(new StructElement(productIdFieldID, productIdtlvValue));
61088+
final long productIDFieldID = 2L;
61089+
BaseTLVType productIDtlvValue = new UIntType(productID);
61090+
elements.add(new StructElement(productIDFieldID, productIDtlvValue));
6109161091

6109261092
final long labelFieldID = 3L;
6109361093
BaseTLVType labeltlvValue = label.<BaseTLVType>map((nonOptionallabel) -> new StringType(nonOptionallabel)).orElse(new EmptyType());
@@ -61101,17 +61101,17 @@ public void onResponse(StructType invokeStructValue) {
6110161101
}}, commandId, commandArgs, timedInvokeTimeoutMs);
6110261102
}
6110361103

61104-
public void commissionNode(ReverseOpenCommissioningWindowCallback callback, Long requestId, Integer responseTimeoutSeconds) {
61105-
commissionNode(callback, requestId, responseTimeoutSeconds, 0);
61104+
public void commissionNode(ReverseOpenCommissioningWindowCallback callback, Long requestID, Integer responseTimeoutSeconds) {
61105+
commissionNode(callback, requestID, responseTimeoutSeconds, 0);
6110661106
}
6110761107

61108-
public void commissionNode(ReverseOpenCommissioningWindowCallback callback, Long requestId, Integer responseTimeoutSeconds, int timedInvokeTimeoutMs) {
61108+
public void commissionNode(ReverseOpenCommissioningWindowCallback callback, Long requestID, Integer responseTimeoutSeconds, int timedInvokeTimeoutMs) {
6110961109
final long commandId = 1L;
6111061110

6111161111
ArrayList<StructElement> elements = new ArrayList<>();
61112-
final long requestIdFieldID = 0L;
61113-
BaseTLVType requestIdtlvValue = new UIntType(requestId);
61114-
elements.add(new StructElement(requestIdFieldID, requestIdtlvValue));
61112+
final long requestIDFieldID = 0L;
61113+
BaseTLVType requestIDtlvValue = new UIntType(requestID);
61114+
elements.add(new StructElement(requestIDFieldID, requestIDtlvValue));
6111561115

6111661116
final long responseTimeoutSecondsFieldID = 1L;
6111761117
BaseTLVType responseTimeoutSecondstlvValue = new UIntType(responseTimeoutSeconds);

src/controller/java/generated/java/chip/devicecontroller/ChipEventStructs.java

+18-18
Original file line numberDiff line numberDiff line change
@@ -6188,8 +6188,8 @@ public String toString() {
61886188
}
61896189
}
61906190
public static class CommissionerControlClusterCommissioningRequestResultEvent {
6191-
public Long requestId;
6192-
public Long clientNodeId;
6191+
public Long requestID;
6192+
public Long clientNodeID;
61936193
public Integer statusCode;
61946194
public Integer fabricIndex;
61956195
private static final long REQUEST_ID_ID = 0L;
@@ -6198,21 +6198,21 @@ public static class CommissionerControlClusterCommissioningRequestResultEvent {
61986198
private static final long FABRIC_INDEX_ID = 254L;
61996199

62006200
public CommissionerControlClusterCommissioningRequestResultEvent(
6201-
Long requestId,
6202-
Long clientNodeId,
6201+
Long requestID,
6202+
Long clientNodeID,
62036203
Integer statusCode,
62046204
Integer fabricIndex
62056205
) {
6206-
this.requestId = requestId;
6207-
this.clientNodeId = clientNodeId;
6206+
this.requestID = requestID;
6207+
this.clientNodeID = clientNodeID;
62086208
this.statusCode = statusCode;
62096209
this.fabricIndex = fabricIndex;
62106210
}
62116211

62126212
public StructType encodeTlv() {
62136213
ArrayList<StructElement> values = new ArrayList<>();
6214-
values.add(new StructElement(REQUEST_ID_ID, new UIntType(requestId)));
6215-
values.add(new StructElement(CLIENT_NODE_ID_ID, new UIntType(clientNodeId)));
6214+
values.add(new StructElement(REQUEST_ID_ID, new UIntType(requestID)));
6215+
values.add(new StructElement(CLIENT_NODE_ID_ID, new UIntType(clientNodeID)));
62166216
values.add(new StructElement(STATUS_CODE_ID, new UIntType(statusCode)));
62176217
values.add(new StructElement(FABRIC_INDEX_ID, new UIntType(fabricIndex)));
62186218

@@ -6223,20 +6223,20 @@ public static CommissionerControlClusterCommissioningRequestResultEvent decodeTl
62236223
if (tlvValue == null || tlvValue.type() != TLVType.Struct) {
62246224
return null;
62256225
}
6226-
Long requestId = null;
6227-
Long clientNodeId = null;
6226+
Long requestID = null;
6227+
Long clientNodeID = null;
62286228
Integer statusCode = null;
62296229
Integer fabricIndex = null;
62306230
for (StructElement element: ((StructType)tlvValue).value()) {
62316231
if (element.contextTagNum() == REQUEST_ID_ID) {
62326232
if (element.value(BaseTLVType.class).type() == TLVType.UInt) {
62336233
UIntType castingValue = element.value(UIntType.class);
6234-
requestId = castingValue.value(Long.class);
6234+
requestID = castingValue.value(Long.class);
62356235
}
62366236
} else if (element.contextTagNum() == CLIENT_NODE_ID_ID) {
62376237
if (element.value(BaseTLVType.class).type() == TLVType.UInt) {
62386238
UIntType castingValue = element.value(UIntType.class);
6239-
clientNodeId = castingValue.value(Long.class);
6239+
clientNodeID = castingValue.value(Long.class);
62406240
}
62416241
} else if (element.contextTagNum() == STATUS_CODE_ID) {
62426242
if (element.value(BaseTLVType.class).type() == TLVType.UInt) {
@@ -6251,8 +6251,8 @@ public static CommissionerControlClusterCommissioningRequestResultEvent decodeTl
62516251
}
62526252
}
62536253
return new CommissionerControlClusterCommissioningRequestResultEvent(
6254-
requestId,
6255-
clientNodeId,
6254+
requestID,
6255+
clientNodeID,
62566256
statusCode,
62576257
fabricIndex
62586258
);
@@ -6262,11 +6262,11 @@ public static CommissionerControlClusterCommissioningRequestResultEvent decodeTl
62626262
public String toString() {
62636263
StringBuilder output = new StringBuilder();
62646264
output.append("CommissionerControlClusterCommissioningRequestResultEvent {\n");
6265-
output.append("\trequestId: ");
6266-
output.append(requestId);
6265+
output.append("\trequestID: ");
6266+
output.append(requestID);
62676267
output.append("\n");
6268-
output.append("\tclientNodeId: ");
6269-
output.append(clientNodeId);
6268+
output.append("\tclientNodeID: ");
6269+
output.append(clientNodeID);
62706270
output.append("\n");
62716271
output.append("\tstatusCode: ");
62726272
output.append(statusCode);

src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -17406,7 +17406,7 @@ public static Command value(long id) throws NoSuchFieldError {
1740617406
}
1740717407
throw new NoSuchFieldError();
1740817408
}
17409-
}public enum RequestCommissioningApprovalCommandField {RequestId(0),VendorId(1),ProductId(2),Label(3),;
17409+
}public enum RequestCommissioningApprovalCommandField {RequestID(0),VendorID(1),ProductID(2),Label(3),;
1741017410
private final int id;
1741117411
RequestCommissioningApprovalCommandField(int id) {
1741217412
this.id = id;
@@ -17423,7 +17423,7 @@ public static RequestCommissioningApprovalCommandField value(int id) throws NoSu
1742317423
}
1742417424
throw new NoSuchFieldError();
1742517425
}
17426-
}public enum CommissionNodeCommandField {RequestId(0),ResponseTimeoutSeconds(1),;
17426+
}public enum CommissionNodeCommandField {RequestID(0),ResponseTimeoutSeconds(1),;
1742717427
private final int id;
1742817428
CommissionNodeCommandField(int id) {
1742917429
this.id = id;

0 commit comments

Comments
 (0)