Table of Contents | ||
---|---|---|
|
Introduction
There are three methods to update the USB connect LPWA modem firmware :
...
Firmware update over AT (FOAT)
Firmware update over the Air (FOTA).
EasyFlash (restricted use)
Firmware update over AT (FOAT)
Definition
FOAT is a method to update the firmware by transferring the related file from an external device (e.g.application host processor) to the module through the AT interface.
...
Firmware download
Two different AT commands can be used to download the firmware package:
+UFWUPD AT command: This command triggers the firmware update by using Xmodem or Xmodem-1K protocol.
+UDWNFILE AT command: This command is used to manage the module file system.
Firmware Installation
The +UFWINSTALL AT command triggers the firmware installation procedure once the firmware package has been downloaded successfully.
...
...
Automatic Firmware update over
...
the Air - uFOTA
...
uFOTA is a u-blox solution to a managed and automated FOTA service based on WM2M protocol (by u-blox). This service uses campaigns to manage the upgrading of multiple modules from one firmware version to another one.
...
Functional overview
When the module powers up for the very first time (factory-programmed condition) after the module is attached to a cellular network, the LwM2M client starts and registers to the uFOTA server. The LwM2M client will then subsequently check the uFOTA server upon the expiration of the Server Registration Life Timer (SRLT).
The +ULWM2MSTAT AT command enables/disables the Unsolicited unsolicited result codes (URC) events which are reported back to the host. This URC is enabled by default.
Firmware package update
A firmware package (or referred to as FOTA package) can consist of the following combinations:
...
After a FOTA package is successfully downloaded, the uFOTA server shall command the device to reboot and automatically complete the Firmware Update process which .
Remark:
uFOTA firmware update can take up to 20 minutes
...
!
Note:
The AT interface is not available during the firmware upgrade
It is not possible to cancel a firmware update once in progress.
Firmware installation
Check if you have installed the latest firmware. If you don't have the last version installed,you can get the last version here:the version of the installed firmware.
> ATI
Manufacturer: u-blox
Model: SARA-R410M-02B
Revision: L0.0.00.00.05.08 [Apr 17 2019 19:34:02]
SVN: 03
IMEI: 352753098853359
Please check if the "Vodafone Global Roaming" profile (197) is present and has version 7.2
* otherwise import again: R410M USB Connect LPWA - AT command cookbook
> AT+UMNOPROF=,1
“OK
> AT+UMNOPROF=?
+UMNOPROF:
0: SW default
1: SIM ICCID select
2: ATT 7.1
6: China Telecom 7.0
31: DT 7.0
8: Sprint 7.0
100: Standard Europe 7.0
4: Telstra 7.0
21: TELUS 7.0
5: TMO 7.0….
19: Vodafone 7.03: Verizon 7.0
…
197: Vodafone-global-roaming 7.2
OK”
Ensure that the host application closes all open sockets when or before the download complete URC (+ULWM2MSTAT: 2,100) is received. When the host device receives the download complete URC (+ULWM2MSTAT: 2,100), it should store that state in memory. When the LwM2M LWM2M client receives the execute command on the update resource the module will reset to apply the update. At this stage the host cannot cancel the upgrade. Once the new firmware has been installed, the module will reboot and re-register with the network. It is good practice for the host to send a message to the application.
...
Code Block | ||
---|---|---|
| ||
ATI ATI Manufacturer: u-blox Model: SARA-R410M-02B Revision: L0.0.00.00.05.08[Apr 17 2019 19:34:02] SVN: 03 IMEI: 352753098853359 OK ATI9 ATI9 L0.0.00.00.05.08,A.02.04 OK AT+COPS? AT+COPS? +COPS: 0,0,"262 02 DATA ONLY",9 OK AT+CGDCONT? AT+CGDCONT? +CGDCONT: 1,"IP","vgesace.nb.iot","10.254.46.22",0,0,0,0 OK AT+UFOTACONF=1 AT+UFOTACONF=1 +UFOTACONF: 1, 1 OK AT+UFOTACONF=2,3600 AT+UFOTACONF=2,3600 OK +ULWM2MSTAT: 0,0 +ULWM2MSTAT: 1,13 +ULWM2MSTAT: 1,26 +ULWM2MSTAT: 1,39 +ULWM2MSTAT: 1,52 +ULWM2MSTAT: 1,65 +ULWM2MSTAT: 1,78 +ULWM2MSTAT: 1,91 +ULWM2MSTAT: 2,100 //After the successful download (+ ULWM2MSTAT: 2,100), the update may take some time (up to 20min). Manufacturer: u-blox Model: SARA-R410M-02B Revision: L9.9.00.00.05.08 [Jul 11 2019 16:05:05] SVN: 03 IMEI: 352753098853359 OK |
EasyFlash
Definition
EasyFlash is a tool for the Windows OS to download the firmware from a PC through a serial interface (USB or UART).
Note : The EasyFlash Tool is not a public tool and could only be used internally !
If you are interested in this solution, contact the team of exelonix GmbH.
...