OTA Block

How this block appears in a Simulink model?



What can be configured?

Configuration Parameter Selectable Option/Value Description
Mode AP Mode--Station Mode Select mode.
Use Aimagin Connect Check--Uncheck
Sample time (sec) -1 (inherited) or specify Specify sample time.

When to use this block?

This block is used to upgrade firmware over the air.

How does this block work?

This block requires WiFi Block to function. Depending on the WiFi configuration (AP or STA), ‘Mode’ in this block should be set. In Station mode the user can input the direct download URL of the update file saved in any server (Example: Google Drive).

In the AP mode the file can be uploaded from the client’s device. If ‘Use Aimagin Connect’ is ‘Unchecked’, when the client tries to access the web server default web page will be prompted where the user can upload the update file from host device. The URL is: http:// [ assigned IP for esp32 ]/OTA_upgrade/

If ‘Checked’, it means the user has added the firmware upgrade API to their custom web application thus user can use it to upload the file. However, for this method to work ‘esp32_aimagin_connect’ block should be available in the program model file.

Previous : SQLite NonRetrieveData
Next : NTP Block

Also available in: PDF HTML TXT