Skip to content

Commit

Permalink
Added secondary network interface device type
Browse files Browse the repository at this point in the history
  • Loading branch information
DejinChen committed May 31, 2024
1 parent 896f802 commit 47aa31a
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9211,7 +9211,7 @@ endpoint 2 {
}
}
endpoint 65534 {
device type ma_secondary_network_commissioning = 4293984258, version 1;
device type ma_secondary_network_interface = 25, version 1;


server cluster Descriptor {
Expand Down
20 changes: 10 additions & 10 deletions examples/all-clusters-app/all-clusters-common/all-clusters-app.zap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"fileFormat": 2,
"featureLevel": 100,
"featureLevel": 102,
"creator": "zap",
"keyValuePairs": [
{
Expand Down Expand Up @@ -24779,27 +24779,27 @@
"id": 4,
"name": "Anonymous Endpoint Type",
"deviceTypeRef": {
"code": 4293984258,
"code": 25,
"profileId": 259,
"label": "MA-secondary-network-commissioning",
"name": "MA-secondary-network-commissioning"
"label": "MA-secondary-network-interface",
"name": "MA-secondary-network-interface"
},
"deviceTypes": [
{
"code": 4293984258,
"code": 25,
"profileId": 259,
"label": "MA-secondary-network-commissioning",
"name": "MA-secondary-network-commissioning"
"label": "MA-secondary-network-interface",
"name": "MA-secondary-network-interface"
}
],
"deviceVersions": [
1
],
"deviceIdentifiers": [
4293984258
25
],
"deviceTypeName": "MA-secondary-network-commissioning",
"deviceTypeCode": 4293984258,
"deviceTypeName": "MA-secondary-network-interface",
"deviceTypeCode": 25,
"deviceTypeProfileId": 259,
"clusters": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6920,7 +6920,7 @@ endpoint 2 {
}
}
endpoint 65534 {
device type ma_secondary_network_commissioning = 4293984258, version 1;
device type ma_secondary_network_interface = 25, version 1;


server cluster Descriptor {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"fileFormat": 2,
"featureLevel": 100,
"featureLevel": 102,
"creator": "zap",
"keyValuePairs": [
{
Expand Down Expand Up @@ -11837,27 +11837,27 @@
"id": 4,
"name": "Anonymous Endpoint Type",
"deviceTypeRef": {
"code": 4293984258,
"code": 25,
"profileId": 259,
"label": "MA-secondary-network-commissioning",
"name": "MA-secondary-network-commissioning"
"label": "MA-secondary-network-interface",
"name": "MA-secondary-network-interface"
},
"deviceTypes": [
{
"code": 4293984258,
"code": 25,
"profileId": 259,
"label": "MA-secondary-network-commissioning",
"name": "MA-secondary-network-commissioning"
"label": "MA-secondary-network-interface",
"name": "MA-secondary-network-interface"
}
],
"deviceVersions": [
1
],
"deviceIdentifiers": [
4293984258
25
],
"deviceTypeName": "MA-secondary-network-commissioning",
"deviceTypeCode": 4293984258,
"deviceTypeName": "MA-secondary-network-interface",
"deviceTypeCode": 25,
"deviceTypeProfileId": 259,
"clusters": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1560,7 +1560,7 @@ endpoint 1 {
}
}
endpoint 65534 {
device type ma_secondary_network_commissioning = 4293984258, version 1;
device type ma_secondary_network_interface = 25, version 1;


server cluster Descriptor {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"fileFormat": 2,
"featureLevel": 100,
"featureLevel": 102,
"creator": "zap",
"keyValuePairs": [
{
Expand Down Expand Up @@ -2946,27 +2946,27 @@
"id": 3,
"name": "Anonymous Endpoint Type",
"deviceTypeRef": {
"code": 4293984258,
"code": 25,
"profileId": 259,
"label": "MA-secondary-network-commissioning",
"name": "MA-secondary-network-commissioning"
"label": "MA-secondary-network-interface",
"name": "MA-secondary-network-interface"
},
"deviceTypes": [
{
"code": 4293984258,
"code": 25,
"profileId": 259,
"label": "MA-secondary-network-commissioning",
"name": "MA-secondary-network-commissioning"
"label": "MA-secondary-network-interface",
"name": "MA-secondary-network-interface"
}
],
"deviceVersions": [
1
],
"deviceIdentifiers": [
4293984258
25
],
"deviceTypeName": "MA-secondary-network-commissioning",
"deviceTypeCode": 4293984258,
"deviceTypeName": "MA-secondary-network-interface",
"deviceTypeCode": 25,
"deviceTypeProfileId": 259,
"clusters": [
{
Expand Down
20 changes: 10 additions & 10 deletions scripts/tools/zap/tests/inputs/all-clusters-app.zap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"fileFormat": 2,
"featureLevel": 100,
"featureLevel": 102,
"creator": "zap",
"keyValuePairs": [
{
Expand Down Expand Up @@ -16043,27 +16043,27 @@
"id": 4,
"name": "Anonymous Endpoint Type",
"deviceTypeRef": {
"code": 4293984258,
"code": 25,
"profileId": 259,
"label": "MA-secondary-network-commissioning",
"name": "MA-secondary-network-commissioning"
"label": "MA-secondary-network-interface",
"name": "MA-secondary-network-interface"
},
"deviceTypes": [
{
"code": 4293984258,
"code": 25,
"profileId": 259,
"label": "MA-secondary-network-commissioning",
"name": "MA-secondary-network-commissioning"
"label": "MA-secondary-network-interface",
"name": "MA-secondary-network-interface"
}
],
"deviceVersions": [
1
],
"deviceIdentifiers": [
4293984258
25
],
"deviceTypeName": "MA-secondary-network-commissioning",
"deviceTypeCode": 4293984258,
"deviceTypeName": "MA-secondary-network-interface",
"deviceTypeCode": 25,
"deviceTypeProfileId": 259,
"clusters": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3047,7 +3047,7 @@ static_assert(ATTRIBUTE_LARGEST <= CHIP_CONFIG_MAX_ATTRIBUTE_STORE_ELEMENT_SIZE,
{ \
{ 0x00000011, 1 }, { 0x00000016, 1 }, { 0x00000100, 1 }, { 0x00000011, 1 }, { 0x00000100, 1 }, { 0x00000011, 1 }, \
{ \
0xFFF10002, 1 \
0x00000019, 1 \
} \
}

Expand Down
9 changes: 6 additions & 3 deletions src/app/zap-templates/zcl/data-model/chip/matter-devices.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2590,11 +2590,11 @@ limitations under the License.
</clusters>
</deviceType>
<deviceType>
<name>MA-secondary-network-commissioning</name>
<name>MA-secondary-network-interface</name>
<domain>CHIP</domain>
<typeName>Matter Secondary Network Commissioning Device Type</typeName>
<typeName>Matter Secondary Network Interface Device Type</typeName>
<profileId editable="false">0x0103</profileId>
<deviceId editable="false">0xFFF10002</deviceId>
<deviceId editable="false">0x0019</deviceId>
<clusters lockOthers="true">
<include cluster="Network Commissioning" client="false" server="true" clientLocked="true" serverLocked="true"></include>
<include cluster="Descriptor" client="false" server="true" clientLocked="true" serverLocked="true">
Expand All @@ -2603,6 +2603,9 @@ limitations under the License.
<requireAttribute>CLIENT_LIST</requireAttribute>
<requireAttribute>PARTS_LIST</requireAttribute>
</include>
<include cluster="Ethernet Network Diagnostics" client="false" server="false" clientLocked="true" serverLocked="false"></include>
<include cluster="WiFi Network Diagnostics" client="false" server="false" clientLocked="true" serverLocked="false"></include>
<include cluster="Thread Network Diagnostics" client="false" server="false" clientLocked="true" serverLocked="false"></include>
</clusters>
</deviceType>
<deviceType>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 47aa31a

Please sign in to comment.