-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update OTA Requestor Server cluster attributes #13484
Merged
andy31415
merged 2 commits into
project-chip:master
from
carol-apple:ota_requestor_attributes
Jan 13, 2022
Merged
Update OTA Requestor Server cluster attributes #13484
andy31415
merged 2 commits into
project-chip:master
from
carol-apple:ota_requestor_attributes
Jan 13, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pullapprove
bot
requested review from
andy31415,
anush-apple,
austinh0,
balducci-apple,
Byungjoo-Lee,
bzbarsky-apple,
chrisdecenzo,
chshu,
chulspro,
Damian-Nordic,
dhrishi,
electrocucaracha,
emargolis,
franck-apple,
gjc13,
harimau-qirex,
hawk248,
holbrookt,
jelderton,
jepenven-silabs,
jmartinez-silabs,
LuDuda,
lzgrablic02,
mrjerryjohns,
msandstedt,
mspang and
pan-apple
January 12, 2022 05:30
carol-apple
force-pushed
the
ota_requestor_attributes
branch
from
January 12, 2022 05:35
d3b4b7c
to
daa911e
Compare
PR #13484: Size comparison from 96c6645 to daa911e Increases (1 build for k32w)
Full report (21 builds for efr32, esp32, k32w, linux, mbed, p6, qpg, telink)
|
selissia
approved these changes
Jan 12, 2022
woody-apple
approved these changes
Jan 12, 2022
- Add missing idle updates - Fix logic for setting UpdateStateProgress - Remove OtaRequestorServer class and define the setters as global functions
carol-apple
force-pushed
the
ota_requestor_attributes
branch
from
January 13, 2022 04:56
daa911e
to
6d07184
Compare
bzbarsky-apple
approved these changes
Jan 13, 2022
PR #13484: Size comparison from 8e43cab to 6d07184 Increases (1 build for k32w)
Full report (32 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
dhrishi
approved these changes
Jan 13, 2022
Damian-Nordic
approved these changes
Jan 13, 2022
shubhamdp
added a commit
to shubhamdp/connectedhomeip
that referenced
this pull request
Jan 16, 2022
Also, Apply suggestion from project-chip#13484 in lighting-app
shubhamdp
added a commit
to shubhamdp/connectedhomeip
that referenced
this pull request
Jan 16, 2022
Also, Apply suggestion from project-chip#13484 in lighting-app
shubhamdp
added a commit
to shubhamdp/connectedhomeip
that referenced
this pull request
Jan 16, 2022
Also, Apply suggestion from project-chip#13484 in lighting-app
shubhamdp
added a commit
to shubhamdp/connectedhomeip
that referenced
this pull request
Jan 16, 2022
Also, Apply suggestion from project-chip#13484 in lighting-app
shubhamdp
added a commit
to shubhamdp/connectedhomeip
that referenced
this pull request
Jan 17, 2022
Also, Apply suggestion from project-chip#13484 in lighting-app
shubhamdp
added a commit
to shubhamdp/connectedhomeip
that referenced
this pull request
Jan 18, 2022
Also, Apply suggestion from project-chip#13484 in lighting-app
woody-apple
pushed a commit
to shubhamdp/connectedhomeip
that referenced
this pull request
Jan 18, 2022
Also, Apply suggestion from project-chip#13484 in lighting-app
woody-apple
pushed a commit
to shubhamdp/connectedhomeip
that referenced
this pull request
Jan 20, 2022
Also, Apply suggestion from project-chip#13484 in lighting-app
shubhamdp
added a commit
to shubhamdp/connectedhomeip
that referenced
this pull request
Jan 20, 2022
Also, Apply suggestion from project-chip#13484 in lighting-app
carol-apple
added a commit
that referenced
this pull request
Jan 21, 2022
… restart OTA Requestor once ApplyUpdate is successful (#13620) * [ESP32] CLI option to set delayedActionTime in OTA Provider app Also, modify Linux OTA Provider help for delayedActionTime cli option * [ESP32] Schedule the restart once OTA image apply is successful Also, Apply suggestion from #13484 in lighting-app * Review comments * Fix a small typo * Apply suggestions from code review Co-authored-by: Carol Yang <[email protected]> Co-authored-by: Carol Yang <[email protected]>
selissia
pushed a commit
to selissia/connectedhomeip
that referenced
this pull request
Jan 28, 2022
* [OTA] Update OTA Requestor Server cluster attributes * Address code review comments - Add missing idle updates - Fix logic for setting UpdateStateProgress - Remove OtaRequestorServer class and define the setters as global functions
selissia
pushed a commit
to selissia/connectedhomeip
that referenced
this pull request
Jan 28, 2022
… restart OTA Requestor once ApplyUpdate is successful (project-chip#13620) * [ESP32] CLI option to set delayedActionTime in OTA Provider app Also, modify Linux OTA Provider help for delayedActionTime cli option * [ESP32] Schedule the restart once OTA image apply is successful Also, Apply suggestion from project-chip#13484 in lighting-app * Review comments * Fix a small typo * Apply suggestions from code review Co-authored-by: Carol Yang <[email protected]> Co-authored-by: Carol Yang <[email protected]>
step0035
pushed a commit
to hank820/connectedhomeip
that referenced
this pull request
Feb 8, 2022
* [OTA] Update OTA Requestor Server cluster attributes * Address code review comments - Add missing idle updates - Fix logic for setting UpdateStateProgress - Remove OtaRequestorServer class and define the setters as global functions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Currently, the OTA Requestor Server cluster attributes for
UpdateState
andUpdateStateProgress
are not updated to reflect the current state of the OTA Requestor.Fixes: #13169
Change overview
UpdateState
andUpdateStateProgress
attributes as the OTA Requestor progresses through an OTA download/applyUpdateState
should be set to idle (default value is unknown). The idle value should be set in OTA Requestor ctor. However, since OTA Requestor core is a global object in all applications and is likely created before the data model is initialized, use an explicit Init() to be called after the object is created to set the attribute-- This affects all applications that initialize an
OTARequestor
instanceOnUpdateProgressChanged
to OTARequestor class to be called by BDXDownloader each time a block of data has been processed to ensure thatUpdateStateProgress
attribute is updatedTesting
Manual testing using Linux requestor/provider