GNSS FOTA User Guide
GNSS Module Series
Rev. GNSS_FOTA_User_Guide_V1.0
Date: 2018-08-23
Status: Released
www.quectel.com
GNSS Module Series
GNSS FOTA User Guide
Our aim is to provide customers with timely and comprehensive service. For any
assistance, please contact our company headquarters:
Quectel Wireless Solutions Co., Ltd.
7th Floor, Hongye Building, No.1801 Hongmei Road, Xuhui District, Shanghai 200233, China
Tel: +86 21 5108 6236
Email: info@quectel.com
Or our local office. For more information, please visit:
http://www.quectel.com/support/sales.htm
For technical support, or to report documentation errors, please visit:
http://www.quectel.com/support/technical.htm
Or email to: support@quectel.com
GENERAL NOTES
QUECTEL OFFERS THE INFORMATION AS A SERVICE TO ITS CUSTOMERS. THE INFORMATION
PROVIDED IS BASED UPON CUSTOMERS’ REQUIREMENTS. QUECTEL MAKES EVERY EFFORT
TO ENSURE THE QUALITY OF THE INFORMATION IT MAKES AVAILABLE. QUECTEL DOES NOT
MAKE ANY WARRANTY AS TO THE INFORMATION CONTAINED HEREIN, AND DOES NOT ACCEPT
ANY LIABILITY FOR ANY INJURY, LOSS OR DAMAGE OF ANY KIND INCURRED BY USE OF OR
RELIANCE UPON THE INFORMATION. ALL INFORMATION SUPPLIED HEREIN IS SUBJECT TO
CHANGE WITHOUT PRIOR NOTICE.
COPYRIGHT
THE INFORMATION CONTAINED HERE IS PROPRIETARY TECHNICAL INFORMATION OF
QUECTEL WIRELESS SOLUTIONS CO., LTD. TRANSMITTING, REPRODUCTION, DISSEMINATION
AND EDITING OF THIS DOCUMENT AS WELL AS UTILIZATION OF THE CONTENT ARE
FORBIDDEN WITHOUT PERMISSION. OFFENDERS WILL BE HELD LIABLE FOR PAYMENT OF
DAMAGES. ALL RIGHTS ARE RESERVED
IN THE EVENT OF A PATENT GRANT OR
REGISTRATION OF A UTILITY MODEL OR DESIGN.
Copyright © Quectel Wireless Solutions Co., Ltd. 2018. All rights reserved.
GNSS_FOTA_User_Guide 1 / 12
GNSS Module Series
GNSS FOTA User Guide
About the Document
History
Revision Date
Author
Description
1.0
2018-08-23
Jenn XIANG
Initial
GNSS_FOTA_User_Guide 2 / 12
GNSS Module Series
GNSS FOTA User Guide
Contents
About the Document .................................................................................................................................. 2
Contents ...................................................................................................................................................... 3
Figure Index ................................................................................................................................................ 4
1
Introduction ......................................................................................................................................... 5
1.1.
Introduction to Download Agent ................................................................................................. 5
2 Firmware Upgrade Procedures ......................................................................................................... 6
2.1. CMD_Start (Start Upgrade Procedure) ...................................................................................... 6
2.2. CMD_Write (Write DA to SRAM) ............................................................................................... 7
2.3. CMD_Jump (Jump to DA Start Address) ................................................................................... 8
2.4. CMD_Sync (Report Flash Information)...................................................................................... 8
2.5. CMD_SetMemBlock (Set Memory Block) ................................................................................ 10
2.6. CMD_WriteData (Write BIN File to Target Side Flash) ............................................................ 10
2.7. CMD_Finish (Finish Upgrade Procedure) ................................................................................ 11
3 Appendix A References .................................................................................................................... 12
GNSS_FOTA_User_Guide 3 / 12
GNSS Module Series
GNSS FOTA User Guide
Figure Index
FIGURE 1: FIRMWARE UPDATE CONNECTION .............................................................................................. 5
FIGURE 2: FLOW OF CMD_START ................................................................................................................... 6
FIGURE 3: FLOW OF CMD_WRITE ................................................................................................................... 7
FIGURE 4: FLOW OF CMD_JUMP ..................................................................................................................... 8
FIGURE 5: FLOW OF CMD_SYNC .................................................................................................................... 9
FIGURE 6: FLOW OF CMD_ SETMEMBLOCK ................................................................................................ 10
FIGURE 7: FLOW OF CMD_ WRITEDATA ........................................................................................................ 11
FIGURE 8: FLOW OF CMD_FINISH .................................................................................................................. 11
GNSS_FOTA_User_Guide 4 / 12
GNSS Module Series
GNSS FOTA User Guide
1 Introduction
Quectel GNSS modules support FOTA function, which allows customers to upgrade the firmware of the
modules over the air. This document introduces the detailed firmware upgrade procedures. Following the
procedures, customers can download the built image to target side modules via UART.
The document is applicable to Quectel L26, L76, L76B, L76L, L86 and L96 modules.
Figure 1: Firmware Update Connection
1.1. Introduction to Download Agent
Download Agent (DA) is a target side agent. After DA is successfully downloaded and running on target
modules, it will be standby and passively waiting for the host to issue firmware upgrade commands via
UART.
GNSS_FOTA_User_Guide 5 / 12
HOSTGNSSUART
GNSS Module Series
GNSS FOTA User Guide
2 Firmware Upgrade Procedures
The whole procedures can be divided into two stages:
Stage 1: Download DA to the internal SRAM, and then jump to DA start address to execute DA in the
internal SRAM.
Stage 2: Download BIN file to the flash, then jump to the flash start address to execute the file.
2.1. CMD_Start (Start Upgrade Procedure)
After the GNSS module is powered on, the host will sequentially set 7 baud rates for serial communication
and send the NMEA_START_CMD "$PMTK180*3B\r\n" at each baud rate to force the module to reset.
Then the host will settle at the right baud rate to establish communication and the module will start the
upgrade procedure.
Figure 2: Flow of CMD_Start
GNSS_FOTA_User_Guide 6 / 12
NEMA_START_CMD(PMTK180)Send NEMA_START_CMD at 7 baud rates respectively, then settle at the right baud rate.BOOT_ROM_START_CMD1(0xA0)~BOOT_ROM_START_CMD1(0x5F)BOOT_ROM_START_CMD2(0x0A)~BOOT_ROM_START_CMD2(0xF5)BOOT_ROM_START_CMD3(0x50)~BOOT_ROM_START_CMD3(0xAF)BOOT_ROM_START_CMD4(0x05)~BOOT_ROM_START_CMD4(0xFA)Send until the host receives 0x5F.The interval between each resend is 40ms.HostGNSS
GNSS Module Series
GNSS FOTA User Guide
2.2. CMD_Write (Write DA to SRAM)
During this procedure, DA will be written to SRAM.
Figure 3: Flow of CMD_Write
GNSS_FOTA_User_Guide 7 / 12
...BOOT_ROM_WRITE_CMD(0xA1)BOOT_ROM_WRITE_CMD(0xA1)DA_BASE_ADDR(0x00, 0x00, 0x0C, 0x00)DA_BASE_ADDR(0x00, 0x00, 0x0C, 0x00)DA_SIZE_NUM_WORDDA_SIZE_NUM_WORDSend DA with 10 bytesBOOT_ROM_CHECKSUM_CMD(0xA4)BOOT_ROM_CHECKSUM_CMD(0xA4)HostGNSSDA_BASE_ADDR(0x00, 0x00, 0x0C, 0x00)DA_BASE_ADDR(0x00, 0x00, 0x0C, 0x00)DA_SIZE_NUM_WORDDA_SIZE_NUM_WORDDA_CHECKSUMACK with 10 bytes sentSend DA with last bytesACK with last bytes sent