Dedicated or combined OTA

Ritesh
Posts: 1365
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Dedicated or combined OTA

Postby Ritesh » Sun Nov 11, 2018 8:23 am

brp80000 wrote:
Sat Nov 10, 2018 6:58 am
Its too not work. But it once worked and now get error

esp_http_client_config_t config = {
.url = EXAMPLE_SERVER_URL,
//.cert_pem = (char *)server_cert_pem_start,
};
11.jpg
Still, Error itself shows it's mbedtls security error. So, I suggest to bypass security for time being to verify same.
Regards,
Ritesh Prajapati

User avatar
brp80000
Posts: 138
Joined: Thu Oct 04, 2018 7:13 pm

Re: Dedicated or combined OTA

Postby brp80000 » Sun Nov 11, 2018 9:32 am

And how do you propose to do I not understand something?

Ritesh
Posts: 1365
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Dedicated or combined OTA

Postby Ritesh » Mon Nov 12, 2018 4:45 am

brp80000 wrote:
Sun Nov 11, 2018 9:32 am
And how do you propose to do I not understand something?
Hi,

Would you please try with sample example of socket to download data from server and store into flash as per your configuration. And then update image.
Regards,
Ritesh Prajapati

User avatar
brp80000
Posts: 138
Joined: Thu Oct 04, 2018 7:13 pm

Re: Dedicated or combined OTA

Postby brp80000 » Wed Nov 14, 2018 4:50 am

Ok, now my OTA is work.

User avatar
brp80000
Posts: 138
Joined: Thu Oct 04, 2018 7:13 pm

Re: Dedicated or combined OTA

Postby brp80000 » Wed Nov 14, 2018 4:51 am

But then I am trying to install the certificate but have a problem with .rnd

Ritesh
Posts: 1365
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Dedicated or combined OTA

Postby Ritesh » Wed Nov 14, 2018 8:15 am

brp80000 wrote:
Wed Nov 14, 2018 4:50 am
Ok, now my OTA is work.
Great. Thanks for update regarding same.
Regards,
Ritesh Prajapati

Ritesh
Posts: 1365
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Dedicated or combined OTA

Postby Ritesh » Wed Nov 14, 2018 8:16 am

brp80000 wrote:
Wed Nov 14, 2018 4:51 am
But then I am trying to install the certificate but have a problem with .rnd
So, When you enabled security at that time OAT is not working with certificates related issue?
Regards,
Ritesh Prajapati

User avatar
brp80000
Posts: 138
Joined: Thu Oct 04, 2018 7:13 pm

Re: Dedicated or combined OTA

Postby brp80000 » Thu Nov 15, 2018 3:01 am

I am trying to install the certificate but have a problem with .rnd
11.jpg
11.jpg (56.81 KiB) Viewed 8453 times

User avatar
brp80000
Posts: 138
Joined: Thu Oct 04, 2018 7:13 pm

Re: Dedicated or combined OTA

Postby brp80000 » Sun Nov 18, 2018 7:02 am

Please explain that contains the "factory"...
OTA_0 and OTA_1 contain alternately updating the firmware.
As I understand it, in the "factory" area you can write a simple initial firmware, which will be loaded into the OTA_0 area.
If a piece of the program from OTA_0 in the future will start the firmware update it will be located in OTA_1. Continue alternating OTA_0 and OTA_1.
Is the "factory" area no longer used?

User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: Dedicated or combined OTA

Postby loboris » Sun Nov 18, 2018 10:56 am

brp80000 wrote:
Sun Nov 18, 2018 7:02 am
Please explain that contains the "factory"...
OTA_0 and OTA_1 contain alternately updating the firmware.
As I understand it, in the "factory" area you can write a simple initial firmware, which will be loaded into the OTA_0 area.
If a piece of the program from OTA_0 in the future will start the firmware update it will be located in OTA_1. Continue alternating OTA_0 and OTA_1.
Is the "factory" area no longer used?

You can use OTA_0 and OTA_1 without factory partition.
If the factory partition is used, the the code will run from it only until the 1st OTA upgrade, after that, the code will run from OTA_0 or OTA_1, whichever was updated last.
If both OTA_0 and OTA_1 gets corrupted, the code will run from factory partition again.
You can force running from factory partition (or ota partition different from the currently active partition) from application code or from the 2nd stage bootloader.
You can upgrade your factory partition while running from one of the OTA partitions by slightly modifying the the OTA upgrade code.

Who is online

Users browsing this forum: MikeMyhre and 128 guests