BIN file validation for OTA

davdav
Posts: 208
Joined: Thu Nov 17, 2016 2:33 pm

BIN file validation for OTA

Postby davdav » Wed Sep 05, 2018 9:14 am

Hi all,

I would like to do an OTA in this way:

-I download a BIN file from a server from my factory APP
-I store the BIN file in an SD card
-I read the file and validate the BIN file
-If the validation is OK, I read the file and write the ota partition APP

This seems feasible. What I would like to check is if the BIN file has not been corrupted during reception.
Is there a CRC (or other validation method) inside the BIN file generated by the compiler?

Thanks

01xDaniel
Posts: 1
Joined: Mon Oct 26, 2020 6:58 pm

Re: BIN file validation for OTA

Postby 01xDaniel » Mon Oct 26, 2020 7:01 pm

I'm looking for the same functionally, did you find a solution?

davdav
Posts: 208
Joined: Thu Nov 17, 2016 2:33 pm

Re: BIN file validation for OTA

Postby davdav » Wed Dec 02, 2020 3:50 pm

01xDaniel wrote:
Mon Oct 26, 2020 7:01 pm
I'm looking for the same functionally, did you find a solution?
Hi,
I solved using MD5 and calling my APP file as "myapp_<MD5string>.bin" where <MD5string> is a 32characters string composed of the MD5 hash.

Who is online

Users browsing this forum: eral2001, Google [Bot] and 127 guests