-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
How to update intermediate device with pre-encrypted firmware (IDFGH-11012) #12196
Comments
Based on the above pointers you should be able to get the decrypted contents stream which can be fed to the OTA update APIs. Please note that the transport for pre encrypted contents could be anything, including UART for the use-case you specified here. Hope this helps. |
Closing, please feel to drop a comment if you need any further help. |
@mahavirj In the pre-encrypted example, |
@mahavirj Does the encrypted BIN need to be decrypted as an entire BIN file? We are sending small chunks (e.g. 110 bytes) and each chunk needs to be decrypted before feeding into
|
Please have a look at the API documentation for
API usage is also shown in the tests of the component here |
Thank you for your input. We continue to feed in the data and got the following error:
For all the In the default OTA examples, 1024 bytes is commonly used, if we use 110 bytes would it cause error or should we consolidate into 1024 bytes before passing into |
Please check if the binary is correctly pre-encrypted for this case. You may try decrypting it using
If you are allocating the buffer, then please free it up after the API returns.
Any input size should work. In-fact the test file I pointed earlier has a test case for feeding 1 byte data at a time. Please have a look. |
Answers checklist.
General issue report
Hello,
How to send pre-encrypted OTA BIN files to non-internet connected ESP32 and perform the pre-encrypted OTA update? The ESP32 will receive pre-encrypted OTA BIN file from UART communication. Previous issue
ESP-IDF: v5.0.1
Thank you.
The text was updated successfully, but these errors were encountered: