User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
14System features
Page 160 of 401
14.2Firmware update Over AT (FOAT) +UFWUPD
+UFWUPD
Modules All products
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
partial No No No < 20 s FOAT Error
14.2.1Description
Triggers the firmware update using the Xmodem or Xmodem-1k protocol.
The command syntax differs depending on the module series: see the corresponding subsection for the correct
command handling.
The errors (data corruption, data loss, etc.) during the Update phase are internally handled by the Xmodem
protocol itself; for more details about the error result codes, see FOAT error result codes.
If no data comes to the module after having issued the AT+UFWUPD command, up to ten NACK are sent
and then Firmware Update Mode is dropped out coming back to normal mode; the FW is unchanged and
still useable (ERROR1).
14.2.2Description
Making use of the file triggers the firmware download using the Xmodem or Xmodem-1k protocols.
In case of power loss during the download, at the next module wake-up the module remains in Firmware
Download Mode expecting that the download restarts from the beginning.
14.2.3Syntax
Type Syntax Response Example
Set AT+UFWUPD=<filetype> +UFWUPD: ONGOING
CCC<NACK><NACK><NACK>
<NACK><NACK><NACK><NACK>
<NACK><NACK><NACK>
OK
AT+UFWUPD=3
+UFWUPD: ONGOING
CCC<NACK><NACK><NACK>
<NACK><NACK><NACK><NACK>
<NACK><NACK><NACK>
OK
Test AT+UFWUPD=? +UFWUPD: (list of supported
<filetype>s)
OK
+UFWUPD: (3)
OK
14.2.4Defined values
Parameter Type Description
<filetype> Number Download type:
3: firmware image update
14.2.5Notes
SARA-R404M
Status updates on the file transfer via CCC or <NACK><NACK><NACK> are not sent to the terminal.