In this document, it mainly introduces how to upgrade FW via FOTA based on EC600U.
Applicable modules: EC600U_CNLB、CNLC and EUAB
- Extract upgrade file
Duplicate the .pac file from the “old” and “new” FW packages, then rename them as aa.pac and bb.pac separately.
- Make .bin file
Duplicate aa.pac and bb.pac into the root directory of FOTA, after that, execute AT commands as described below.
dtools.exe fotacreate2 --pac aa.pac,bb.pac,setting\fota8910.xml output.pack -d v
- Please check the result as described below.
Generate FotaFile.bin file for downloading and upgrading module.
- Place the upgrade file into http server
In this test, the address for downloading is shown as
import fota import utime DEF_URL1 = 'http://126.96.36.199:6000/FotaFile.bin' def result(args): print('download status:', args, 'download process:', args) def run(): fota_obj = fota() # Create FOTA object print("Enter Upgrade Status......") res = fota_obj.httpDownload(url1=DEF_URL1, callback=result) if res != 0: return utime.sleep(2) run()
Download .py file and run on module
After that, run the script manually.
The upgrade will be accomplished about 5 minutes later, as a result, you can query more details.
Input in interaction surface
>>> uos.uname2() (sysname='EC600U-EUAB', nodename='EC600U', release='1.13.0', version='v1.12 on Tue_Oct_19_2021_5:26:44_PM', machine='EC600U with QUECTEL', qpyver='V0002')
By verifying, the upgrade is a success.