R&D department
2018/08/01
Example of FTP update command:
password dfota ftp://test:[email protected]:21/update/delta.bin
Modem firmware over the HTTP server
The structure of the command would be:
password dfota http://<http_server_URL>:<http_port>/<http_file_path>
<http_server_URL>
-
String type, the IP address or domain name of the HTTP server
<http_port> -
Integer type, the port of the HTTP server. The default value is 80. The range is 1 – 65535
<http_file_path> -
String type, the file name in HTTP server
Example of HTTP update command:
password dfota http://www.example.com:80/delta.bin
Note:
total SMS message size with password, command name and link to file can be maximum 160 bytes long!
Responses to sent commands
After device receives dfota command it responds:
➢
When modem update was started successfully:
•
Modem FW update process started. Check modem FW version with "modrev" command later
➢
When modem firmware update does not start because of bad SMS input:
•
ERROR: DFOTA FW update NOT supported on this modem –
when trying to update modem that is not 3G
•
ERROR: link string too short –
when minimum link requirements are not met
•
ERROR: wrong command syntax –
something wrong with command syntax
•
ERROR: DFOTA FW update process already started –
when update process was started previously
•
ERROR:
other reason
– when there is another error not described above
After modem FW update is finished FM device responds (does not work on SMS via GPRS):
➢
Modem firmware updated successfully:
•
Modem FW update process successful. Current modem version: xx
➢
Modem firmware update failed:
•
Modem FW update process FAILED. Error code: xx
(
error codes are specified in modem documentation)
27