LTE Module Series
BG96 DFOTA User Guide
BG96_DFOTA_User_Guide
13 / 16
4
Examples
4.1. Upgrade Firmware from HTTPS Server by DFOTA
//Upgrade firmware when delta firmware package is stored on an HTTPS server.
//The HTTPS
server address is “https://www.quectel.com:100/update.zip".
AT+CGDCONT?
//Query APN setting
+CGDCONT: 1,"IPV4V6","Telstra.internet","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0
OK
AT+CSQ;+CREG?;+CGREG?;+COPS?
//Query network status
+CSQ: 26,99
+CREG: 0,1
+CGREG: 0,1
+COPS: 0,0,"Telstra Mobile Telstra",7
OK
//Execute
AT+QFOTADL
command to enable automatic firmware upgrade via DFOTA, and then the
module will start to download the delta package and upgrade firmware automatically.
AT+QFOTADL="https://www.quectel.com:100/update.zip"
OK
+QIND: "FOTA","HTTPTART"
+QIND: "FOTA","HTTPEND",0
//Finish downloading the package from HTTPS server.
+QIND: "FOTA","START"
+QIND: "FOTA","UPDATING", 1%
+QIND: "FOTA","UPDATING", 2%
...
+QIND: "FOTA","UPDATING", 100%
+QIND: "FOTA","RESTORE", 1%
+QIND: "FOTA","RESTORE", 2%
...