Académique Documents
Professionnel Documents
Culture Documents
Application Note
ENF0000AN002
Revision: 1.00
6/15/2009
Application Note
Page I
Revision: 1.00
GENERAL
TERMS OF USE OF NEW MATERIALS - PLEASE READ CAREFULLY
From time to time, Enfora, in its sole discretion, may make available for download on its
website (www.enfora.com), or may transmit via mail or email, updates or upgrades to, or
new releases of, the firmware, software or documentation for its products (collectively,
'New Materials'). Use of such New Materials is subject to the terms and conditions set
forth below, and may be subject to additional terms and conditions as set forth in Enfora's
Technical Support Policy (posted on its website) and/or any written agreement between
the user and Enfora.
All New Materials are provided AS IS. Enfora makes no warranty or representation with
respect to the merchantability, suitability, functionality, accuracy or completeness of any
such New Materials. The user of such New Materials assumes all risk (known or unknown)
of such use. Enfora reserves all rights in such New Materials. The user shall have only a
revocable and limited license to use such New Materials in connection with the products
for which they are intended. Distribution or modification of any New Materials without
Enfora's consent is strictly prohibited.
IN NO EVENT WILL ENFORA BE RESPONSIBLE FOR ANY INCIDENTAL, INDIRECT,
CONSEQUENTIAL OR SPECIAL DAMAGES AS A RESULT OF THE USE OF ANY NEW
MATERIALS. ENFORA'S MAXIMUM LIABILITY FOR ANY CLAIM BASED ON THE NEW
MATERIALS SHALL NOT EXCEED FIFTY U.S. DOLLARS ($50).
COPYRIGHT
2009 Enfora, Inc. All rights reserved. Complying with all applicable copyright laws is the
responsibility of the user. Without limiting the rights under copyright, no part of this
document may be reproduced, stored in or introduced into a retrieval system, or
transmitted in any form or by any means (electronic, mechanical, photocopying, recording
or otherwise), or for any purpose, without the express written permission of Enfora, Inc.
Enfora and the Enfora logo are either registered trademarks or trademarks of Enfora, Inc.
in the United States.
251 Renner Pkwy
Richardson, TX 75080 USA
972-633-4400
Phone: (972) 633-4400
Fax: (972) 633-4444
Email: info@enfora.com
www.enfora.com
Application Note
Page I
Revision: 1.00
Enfora FOTA
TABLE OF CONTENTS
General
Copyright
Table of Contents
Table of Tables
Introduction
1.1
Objective
1.2
Overview
1.3
Prerequisites
1.3.1
1.3.2
FTP Server
1.3.3
1.4
1.5
FOTA Process
1.6
1.6.1
AT$FOTACFG
1.6.2
AT$FOTAGET
1.6.3
AT$FOTAGET?
1.6.4
AT$FOTAUPG
1.7
1.8
1.9
FOTA RestarT
1.10
FOTA Upgrade
1.10.1
General Steps:
1.10.2
Example Scenario
Appendix A Acronyms
11
TABLE OF TABLES
Table 1 FOTA URC Values ............................................................................................... 6
Table 2 - FOTA Upgrade Status Values ............................................................................ 7
Table 3 - Acronym List ................................................................................................... 11
Application Note
Page 1
Revision: 1.00
Enfora FOTA
1 Introduction
1.1 OBJECTIVE
The intent of this document is to provide the user with a basic understanding of the
Enfora modem FOTA capabilities, including configuration and use of the various AT
Commands.
1.2 OVERVIEW
The FOTA process encompasses the following operations:
1.3 PREREQUISITES
1.3.1 FOTA UPGRADE SERVER
OTA AT commands are used to configure and initiate the upgrade process.
The FOTA Upgrade Server must support AT commands and unsolicited
responses using Enforas UDP API messages
Firmware upgrades are delivered to the device over the air using FTP. To
support FOTA, an FTP server must be available, but does not need to be colocated with the FOTA Upgrade server. The modem will access the FTP server
directly via a TCP connection to transfer the FOTA file.
Application Note
Page 2
Revision: 1.00
Enfora FOTA
Firmware upgrade files are provided by Enfora and should be stored on the FTP
server in a directory accessible by FTP clients. The recommended directory
structure is to create a directory named Enfora in the root FTP directory and
within the Enfora directory, create a directory named FOTA. For example:
<ftpRootDirectory>/Enfora/FOTA
The firmware upgrade file is dependent upon the current firmware version and
the new firmware version. Use the AT+CGMR command to determine the
current firmware version on your modem and contact Enfora Technical Support
to get the proper firmware upgrade file.
The average firmware upgrade delta file is 250K bytes. The maximum firmware
upgrade delta file size is 500K bytes.
Application Note
Page 3
Revision: 1.00
Enfora FOTA
Application Note
Page 4
Revision: 1.00
Enfora FOTA
1.6.2 AT$FOTAGET
AT$FOTAGET=remoteFilename
remoteFilename: filename of FOTA file on FTP server. The filename may be up
to 31 characters. The filename should be the complete pathname starting from
the login directory associated with the FTP username.
1.6.3 AT$FOTAGET?
$FOTAGET: fotaMode, remoteFilename, retriesRemaining, fotaPreStatus,
fotaUpgradeStatus
fotaMode: current FOTA mode indicating if FOTA is in the process of
transferring a FOTA file. The values are: 0 = IDLE, 1 = BUSY.
remoteFilename: The filename of currently configured FOTA file.
retriesRemaining: The number of FTP resumes remaining before terminating file
transfer. This number starts with the retries specified in the AT$FOTACFG
command and is decremented for each FOTA restart which occurs.
fotaPreStatus: The status value of the FOTA upgrade process prior to system
restart.
fotaUpgradeStatus: The status value of the FOTA upgrade process after
system restart.
1.6.4 AT$FOTAUPG
AT$FOTAUPG
Manual command used to initiate a FOTA upgrade after FOTA file has been
successfully transferred to the system. This command should not be used if
Automatic upgrade is configured; the upgrade process is started by the modem
in automatic mode.
Application Note
Page 5
Revision: 1.00
Enfora FOTA
Meaning
Type
Success
Error
Status, verbose
Status, verbose
Status, verbose
Error
Error
10
11
Error
12
Error
13
Error
14
Error
15
Error
16
Error
17
Error
Application Note
Page 6
Revision: 1.00
Enfora FOTA
Meaning
Success
33
48
49
50
51
176
178
Checksum mismatch.
-1
-2
-3
-4
-5
-6
-7
-8
-9
Install Error
-10
Checksum Error
Table 2 - FOTA Upgrade Status Values
Application Note
Page 7
Revision: 1.00
Enfora FOTA
Application Note
Page 8
Revision: 1.00
Enfora FOTA
Function
AT$FOTACFG="ftpServer",<port>,"user
name","password",<ftpMode>,<retries>
,<reportMode>,0
AT$FOTAGET=remotefilename
Manual Mode:
Command
Function
AT$FOTACFG="ftpServer",<port>,"user
name","password",<ftpMode>,<retries>
,<reportMode>,1
AT$FOTAGET=remotefilename
AT$FOTAUPG
OK
$FOTAGET: 2
$FOTAGET: 5
$FOTAUPG: 10
AT$FOTAGET?
Application Note
Page 9
Revision: 1.00
Enfora FOTA
OK
$FOTAGET: 2
$FOTAGET: 5
$FOTAUPG: 10
AT$FOTAGET?
Application Note
P a g e 10
Revision: 1.00
Enfora FOTA
2 Appendix A Acronyms
The following table lists acronyms that are used in this document.
Acronym
Meaning
API
FOTA
Firmware Over-the-Air
FTP
MOTA
MSP Over-the-Air
OTA
Over-the-Air
UDP
URC
Application Note
P a g e 11
Revision: 1.00