Skip to content
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

Add OTA Orchestrator fixes #107

Merged
merged 3 commits into from
Feb 2, 2025

Conversation

AhmedIsmail02
Copy link
Contributor

@AhmedIsmail02 AhmedIsmail02 commented Jan 30, 2025

Description

Changes done as part of this PR:

  • Do not suspend OTA agent after successful update.

  • vOtaNotActiveHook() should be called whenever there are no OTA jobs available.

  • Use LogDebug and LogError instead of LogInfo to follow the previous ota-for-embedded-iot-sdk library implementation (avoiding new issues).

  • The MQTT_AGENT_KEEP_ALIVE_INTERVAL_SECONDS is increased to 100 as in case of using SOFTWARE inference with speech-recognition application the connection is dropped before the ML Inference is done as the software inference is generally much slower compared to the Ethos NPU. This connection drop cause the ML inference to have wrong results as the task is interrupted. Hence, increasing the keep alive interval to avoid the connection drop.

Test Steps

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

urutva and others added 3 commits January 30, 2025 15:10
* Do not suspend OTA agent after successful update.

* vOtaNotActiveHook() should be called whenever there
are no OTA jobs available.

* Use LogDebug and LogError instead of LogInfo to
follow the previous ota-for-embedded-iot-sdk library
implementation (avoiding new issues).

Signed-off-by: Devaraj Ranganna <[email protected]>
Signed-off-by: Ahmed Ismail <[email protected]>
The `MQTT_AGENT_KEEP_ALIVE_INTERVAL_SECONDS` is increased
to 100 as in case of using SOFTWARE inference with speech
recognition application the connection is dropped before
the ML Inference is done as the software inference is generally
much slower compared to the Ethos NPU. This connection drop
cause the ML inference to have wrong results as the task
is interrupted. Hence, increasing the keep alive interval
to avoid the connection drop.

Signed-off-by: Ahmed Ismail <[email protected]>
actions/upload-artifact v3 is now deprecated and cannot
be used anymore. Hence, updating to v4.

`strategy.job-index` is post-fixed to the artifact
name to overcome the known issue of upload-artifact v4
not allowing multiple artifacts with the same name on
the workflow run.

Signed-off-by: Ahmed Ismail <[email protected]>
@AhmedIsmail02 AhmedIsmail02 force-pushed the add-ota-orchestrator-fixes branch from 78a1b9e to 58e20cb Compare January 31, 2025 14:38
@ig15 ig15 merged commit 2c16a18 into FreeRTOS:main Feb 2, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants