Skip to content

Commit 0f15c24

Browse files
committed
Removed the OTA update provider from the zap file
1 parent 937321f commit 0f15c24

File tree

4 files changed

+33
-495
lines changed

4 files changed

+33
-495
lines changed

examples/refrigerator-app/silabs/data_model/refrigerator-thread-app.matter

-91
Original file line numberDiff line numberDiff line change
@@ -546,82 +546,6 @@ cluster BasicInformation = 40 {
546546
command MfgSpecificPing(): DefaultSuccess = 0;
547547
}
548548

549-
/** Provides an interface for providing OTA software updates */
550-
cluster OtaSoftwareUpdateProvider = 41 {
551-
revision 1; // NOTE: Default/not specifically set
552-
553-
enum ApplyUpdateActionEnum : enum8 {
554-
kProceed = 0;
555-
kAwaitNextAction = 1;
556-
kDiscontinue = 2;
557-
}
558-
559-
enum DownloadProtocolEnum : enum8 {
560-
kBDXSynchronous = 0;
561-
kBDXAsynchronous = 1;
562-
kHTTPS = 2;
563-
kVendorSpecific = 3;
564-
}
565-
566-
enum StatusEnum : enum8 {
567-
kUpdateAvailable = 0;
568-
kBusy = 1;
569-
kNotAvailable = 2;
570-
kDownloadProtocolNotSupported = 3;
571-
}
572-
573-
readonly attribute command_id generatedCommandList[] = 65528;
574-
readonly attribute command_id acceptedCommandList[] = 65529;
575-
readonly attribute event_id eventList[] = 65530;
576-
readonly attribute attrib_id attributeList[] = 65531;
577-
readonly attribute bitmap32 featureMap = 65532;
578-
readonly attribute int16u clusterRevision = 65533;
579-
580-
request struct QueryImageRequest {
581-
vendor_id vendorID = 0;
582-
int16u productID = 1;
583-
int32u softwareVersion = 2;
584-
DownloadProtocolEnum protocolsSupported[] = 3;
585-
optional int16u hardwareVersion = 4;
586-
optional char_string<2> location = 5;
587-
optional boolean requestorCanConsent = 6;
588-
optional octet_string<512> metadataForProvider = 7;
589-
}
590-
591-
response struct QueryImageResponse = 1 {
592-
StatusEnum status = 0;
593-
optional int32u delayedActionTime = 1;
594-
optional char_string<256> imageURI = 2;
595-
optional int32u softwareVersion = 3;
596-
optional char_string<64> softwareVersionString = 4;
597-
optional octet_string<32> updateToken = 5;
598-
optional boolean userConsentNeeded = 6;
599-
optional octet_string<512> metadataForRequestor = 7;
600-
}
601-
602-
request struct ApplyUpdateRequestRequest {
603-
octet_string<32> updateToken = 0;
604-
int32u newVersion = 1;
605-
}
606-
607-
response struct ApplyUpdateResponse = 3 {
608-
ApplyUpdateActionEnum action = 0;
609-
int32u delayedActionTime = 1;
610-
}
611-
612-
request struct NotifyUpdateAppliedRequest {
613-
octet_string<32> updateToken = 0;
614-
int32u softwareVersion = 1;
615-
}
616-
617-
/** Determine availability of a new Software Image */
618-
command QueryImage(QueryImageRequest): QueryImageResponse = 0;
619-
/** Determine next action to take for a downloaded Software Image */
620-
command ApplyUpdateRequest(ApplyUpdateRequestRequest): ApplyUpdateResponse = 2;
621-
/** Notify OTA Provider that an update was applied */
622-
command NotifyUpdateApplied(NotifyUpdateAppliedRequest): DefaultSuccess = 4;
623-
}
624-
625549
/** Provides an interface for downloading and applying OTA software updates */
626550
cluster OtaSoftwareUpdateRequestor = 42 {
627551
revision 1; // NOTE: Default/not specifically set
@@ -1717,21 +1641,6 @@ endpoint 0 {
17171641
ram attribute clusterRevision default = 3;
17181642
}
17191643

1720-
server cluster OtaSoftwareUpdateProvider {
1721-
callback attribute generatedCommandList;
1722-
callback attribute acceptedCommandList;
1723-
callback attribute eventList;
1724-
callback attribute attributeList;
1725-
ram attribute featureMap default = 0;
1726-
ram attribute clusterRevision default = 1;
1727-
1728-
handle command QueryImage;
1729-
handle command QueryImageResponse;
1730-
handle command ApplyUpdateRequest;
1731-
handle command ApplyUpdateResponse;
1732-
handle command NotifyUpdateApplied;
1733-
}
1734-
17351644
server cluster OtaSoftwareUpdateRequestor {
17361645
callback attribute defaultOTAProviders;
17371646
ram attribute updatePossible default = true;

examples/refrigerator-app/silabs/data_model/refrigerator-thread-app.zap

+16-156
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,16 @@
4141
"code": 22,
4242
"profileId": 259,
4343
"label": "MA-rootdevice",
44-
"name": "MA-rootdevice"
44+
"name": "MA-rootdevice",
45+
"deviceTypeOrder": 0
4546
},
4647
"deviceTypes": [
4748
{
4849
"code": 22,
4950
"profileId": 259,
5051
"label": "MA-rootdevice",
51-
"name": "MA-rootdevice"
52+
"name": "MA-rootdevice",
53+
"deviceTypeOrder": 0
5254
}
5355
],
5456
"deviceVersions": [
@@ -1022,154 +1024,6 @@
10221024
}
10231025
]
10241026
},
1025-
{
1026-
"name": "OTA Software Update Provider",
1027-
"code": 41,
1028-
"mfgCode": null,
1029-
"define": "OTA_SOFTWARE_UPDATE_PROVIDER_CLUSTER",
1030-
"side": "server",
1031-
"enabled": 1,
1032-
"commands": [
1033-
{
1034-
"name": "QueryImage",
1035-
"code": 0,
1036-
"mfgCode": null,
1037-
"source": "client",
1038-
"isIncoming": 1,
1039-
"isEnabled": 1
1040-
},
1041-
{
1042-
"name": "QueryImageResponse",
1043-
"code": 1,
1044-
"mfgCode": null,
1045-
"source": "server",
1046-
"isIncoming": 0,
1047-
"isEnabled": 1
1048-
},
1049-
{
1050-
"name": "ApplyUpdateRequest",
1051-
"code": 2,
1052-
"mfgCode": null,
1053-
"source": "client",
1054-
"isIncoming": 1,
1055-
"isEnabled": 1
1056-
},
1057-
{
1058-
"name": "ApplyUpdateResponse",
1059-
"code": 3,
1060-
"mfgCode": null,
1061-
"source": "server",
1062-
"isIncoming": 0,
1063-
"isEnabled": 1
1064-
},
1065-
{
1066-
"name": "NotifyUpdateApplied",
1067-
"code": 4,
1068-
"mfgCode": null,
1069-
"source": "client",
1070-
"isIncoming": 1,
1071-
"isEnabled": 1
1072-
}
1073-
],
1074-
"attributes": [
1075-
{
1076-
"name": "GeneratedCommandList",
1077-
"code": 65528,
1078-
"mfgCode": null,
1079-
"side": "server",
1080-
"type": "array",
1081-
"included": 1,
1082-
"storageOption": "External",
1083-
"singleton": 0,
1084-
"bounded": 0,
1085-
"defaultValue": null,
1086-
"reportable": 1,
1087-
"minInterval": 1,
1088-
"maxInterval": 65534,
1089-
"reportableChange": 0
1090-
},
1091-
{
1092-
"name": "AcceptedCommandList",
1093-
"code": 65529,
1094-
"mfgCode": null,
1095-
"side": "server",
1096-
"type": "array",
1097-
"included": 1,
1098-
"storageOption": "External",
1099-
"singleton": 0,
1100-
"bounded": 0,
1101-
"defaultValue": null,
1102-
"reportable": 1,
1103-
"minInterval": 1,
1104-
"maxInterval": 65534,
1105-
"reportableChange": 0
1106-
},
1107-
{
1108-
"name": "EventList",
1109-
"code": 65530,
1110-
"mfgCode": null,
1111-
"side": "server",
1112-
"type": "array",
1113-
"included": 1,
1114-
"storageOption": "External",
1115-
"singleton": 0,
1116-
"bounded": 0,
1117-
"defaultValue": null,
1118-
"reportable": 1,
1119-
"minInterval": 1,
1120-
"maxInterval": 65534,
1121-
"reportableChange": 0
1122-
},
1123-
{
1124-
"name": "AttributeList",
1125-
"code": 65531,
1126-
"mfgCode": null,
1127-
"side": "server",
1128-
"type": "array",
1129-
"included": 1,
1130-
"storageOption": "External",
1131-
"singleton": 0,
1132-
"bounded": 0,
1133-
"defaultValue": null,
1134-
"reportable": 1,
1135-
"minInterval": 1,
1136-
"maxInterval": 65534,
1137-
"reportableChange": 0
1138-
},
1139-
{
1140-
"name": "FeatureMap",
1141-
"code": 65532,
1142-
"mfgCode": null,
1143-
"side": "server",
1144-
"type": "bitmap32",
1145-
"included": 1,
1146-
"storageOption": "RAM",
1147-
"singleton": 0,
1148-
"bounded": 0,
1149-
"defaultValue": "0",
1150-
"reportable": 1,
1151-
"minInterval": 1,
1152-
"maxInterval": 65534,
1153-
"reportableChange": 0
1154-
},
1155-
{
1156-
"name": "ClusterRevision",
1157-
"code": 65533,
1158-
"mfgCode": null,
1159-
"side": "server",
1160-
"type": "int16u",
1161-
"included": 1,
1162-
"storageOption": "RAM",
1163-
"singleton": 0,
1164-
"bounded": 0,
1165-
"defaultValue": "1",
1166-
"reportable": 1,
1167-
"minInterval": 1,
1168-
"maxInterval": 65534,
1169-
"reportableChange": 0
1170-
}
1171-
]
1172-
},
11731027
{
11741028
"name": "OTA Software Update Requestor",
11751029
"code": 42,
@@ -3149,14 +3003,16 @@
31493003
"code": 112,
31503004
"profileId": 259,
31513005
"label": "MA-refrigerator",
3152-
"name": "MA-refrigerator"
3006+
"name": "MA-refrigerator",
3007+
"deviceTypeOrder": 0
31533008
},
31543009
"deviceTypes": [
31553010
{
31563011
"code": 112,
31573012
"profileId": 259,
31583013
"label": "MA-refrigerator",
3159-
"name": "MA-refrigerator"
3014+
"name": "MA-refrigerator",
3015+
"deviceTypeOrder": 0
31603016
}
31613017
],
31623018
"deviceVersions": [
@@ -3642,14 +3498,16 @@
36423498
"code": 113,
36433499
"profileId": 259,
36443500
"label": "MA-temperature-controlled-cabinet",
3645-
"name": "MA-temperature-controlled-cabinet"
3501+
"name": "MA-temperature-controlled-cabinet",
3502+
"deviceTypeOrder": 0
36463503
},
36473504
"deviceTypes": [
36483505
{
36493506
"code": 113,
36503507
"profileId": 259,
36513508
"label": "MA-temperature-controlled-cabinet",
3652-
"name": "MA-temperature-controlled-cabinet"
3509+
"name": "MA-temperature-controlled-cabinet",
3510+
"deviceTypeOrder": 0
36533511
}
36543512
],
36553513
"deviceVersions": [
@@ -3989,14 +3847,16 @@
39893847
"code": 113,
39903848
"profileId": 259,
39913849
"label": "MA-temperature-controlled-cabinet",
3992-
"name": "MA-temperature-controlled-cabinet"
3850+
"name": "MA-temperature-controlled-cabinet",
3851+
"deviceTypeOrder": 0
39933852
},
39943853
"deviceTypes": [
39953854
{
39963855
"code": 113,
39973856
"profileId": 259,
39983857
"label": "MA-temperature-controlled-cabinet",
3999-
"name": "MA-temperature-controlled-cabinet"
3858+
"name": "MA-temperature-controlled-cabinet",
3859+
"deviceTypeOrder": 0
40003860
}
40013861
],
40023862
"deviceVersions": [

0 commit comments

Comments
 (0)