-
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
[Darwin-tool BUG] DelayedActionTime field not showing in OTA-Requestor App #27953
Labels
Comments
@liamgonyea what goes in that file? |
But those docs are not sufficient to actually set up a working JSON file, unfortunately. |
Per offline discussion, this never worked; @liamgonyea was using a build with some local changes initially... |
krypton36
added a commit
that referenced
this issue
Sep 11, 2023
woody-apple
pushed a commit
that referenced
this issue
Oct 19, 2023
HunsupJung
pushed a commit
to HunsupJung/connectedhomeip
that referenced
this issue
Oct 23, 2023
shripad621git
pushed a commit
to shripad621git/connectedhomeip
that referenced
this issue
Oct 31, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduction steps
When performing an OTA transfer using Darwin-framework-tool, the
DelayedActionTime
parameter is not being set for the OTA-Requestor to wait between attempts to query the image. Instead, the default 120 seconds is being used instead of the DelayedActionTime=180 seconds value set.Reproduce:
Build Darwin-framework-tool on Mac using newer SHA c7d9a11
scripts/examples/gn_build_example.sh examples/darwin-framework-tool examples/darwin-framework-tool/out/debug
Build OTA-Requestor app on RasPi using SHA 5a21d17
scripts/examples/gn_build_example.sh examples/ota-requestor-app/linux out/ota-requestor-app chip_config_network_layer_ble=false chip_code_pre_generated_directory=\"/home/ubuntu/sve2/connectedhomeip/zzz_pregenerated\"
Download 2 sample files to your Downloads folder.
Sample_OTA-R_file_and_JSON_config.zip
hello_OTA_v2
is a dummy OTA-R file using a simpleC
hello world programsample_mac_ota_config_hello_OTA_v2.json
is a sample JSON config file used in Command 5 belowEdit
otaURL
path insample_mac_ota_config_hello_OTA_v2
to point to thehello_OTA_v2
dummy OTA-R file below:Launch OTA-Requestor app on RasPi:
./out/ota-requestor-app/chip-ota-requestor-app --discriminator 3841 --autoApplyImage --trace_decode 1
Run the following commands on Mac. Edit Step 5 with the proper path:
./examples/darwin-framework-tool/out/debug/darwin-framework-tool interactive start --commissioner-nodeId 0x1234
otasoftwareupdateapp candidate-file-path /Users/<INSERT_YOUR_USER>/Downloads/sample_mac_ota_config_hello_OTA_v2.json
pairing code 4321 MT:-24J0IRV01KA0648G00
otasoftwareupdaterequestor write default-otaproviders '[{"fabricIndex": 1, "providerNodeID": "0x0000000000001234", "endpoint": 0}]' 4321 0
otasoftwareupdateapp set-reply-params --action 0 --status 1 --consent 0 --consentNeeded 0 --delayedActionTime 180
otasoftwareupdaterequestor announce-otaprovider 0x0000000000001234 65521 0 0 4321 0
Observe Issue in OTA-Requestor app logs
In Contrast...
Repeating the same steps above except Step 1, build Darwin-framework-tool on older SHA 3c8b8cf, yields the correct logs on the OTA-Requestor App:
Bug prevalence
Always
GitHub hash of the SDK that was being used
c7d9a11
Platform
darwin
Platform Version(s)
No response
Anything else?
Darwin-framework-tool on newer SHA c7d9a11 run against RasPi OTA-Requestor App SHA 5a21d17
DelayedActionTime_Failure_c7d9a11.zip
Darwin-framework-tool on older SHA 3c8b8cf run against RasPi OTA-Requestor App SHA 5a21d17
DelayedActionTime_Success_3c8b8cf968.zip
The text was updated successfully, but these errors were encountered: