Quectel Cellular Engine

Similar documents
GSM. Quectel Cellular Engine. Firmware Update Application Note. Fw_Update_Application_Note_V3.1

Quectel Cellular Engine

Firmware Upgrade Tool Lite User Guide. Firmware_Upgrade_Tool_Lite_V1.1

UART. SIM5360 UART Multiplexer Application Note. SIM5360_UART_Multiplexer_Application_Note_V

Quectel Cellular Engine

Delta Package Update Application Note

Quectel Cellular Engine

Quectel Cellular Engine

UART Application Note

BC95 Firmware Upgrade via Code Loader User Guide

SIM7100_SIM7500_SIM7600 LBS_Application Note_V1.00

SIM7000 Series_HTTP_Application Note_V1.01

GSM. Quectel Cellular Engine. GSM FILE AT Commands GSM_FILE _ATC_V1.4

How to use Linux driver

SIMCom_3G_Linux_Driver_Applica tion Note_V1.00

SIMCom_SIM800H_EAT_flash_Tool _User Manual_V1.01

AT Commands Set SIM20_ATC_V1.02

HTTP Application Note

Audio LINE-IN input application. AN_SIM900_Audio LINE-IN Input_V1.01

UART Dload Application Note

SIMCom_3G_HTTP_Application Note_V1.00

GSM Recording AT Commands Manual

SIM900_DTMF EmbeddedAT Application Note_V1.01

Document Name: GPRS Startup. GPRS Startup_V01.00 Status: Created

EC2x&EG9x&EM05 PPP Application Note

BG96 PPP Application Note

SIM28_EVB kit_user Guide_V1.02

SIM5360_GPIO_Demo Note_V1.00

EC20 Wi-Fi Application Note

SIM800H&L_ Secondary Reflow SMT _Guidelines_V1.00

M10-TE-A. Quectel Cellular Engine. Hardware Design M10-TE-A_HD_V1.01

SIM7000 Series_NTP_Application Note_V1.00

SIM7100 TTS Application Note

SIMCOM WCDMA Wireless Module. xx_sleep_mode_application_note

SIM900 AMR File Playing Application Note_V1.01

UC20 FILE AT Commands Manual

M95 Dual SIM Application Notes

GSM Audio Player Application Note

M10. Quectel Cellular Engine. EVB User Guide M10_EVB_UGD_V1.00

SSL Application Note. SIM5360_SSL_Application_Note_V0.01

EC20 MMS AT Commands Manual

SIM5360 Network Cell Info Application Note

GSM. Quectel Cellular Engine. GSM TCPIP Recommended Process. GSM_TCPIP_Recommended_. Process_V1.2

UC20 WinCE USB Driver

SIMCom_3G_MQTT_Application Note_V1.00

Development Kit Manual SIM305-EVB_UGD_V1.01

QuecLocator AT Commands Manual

Smart Machine Smart Decision. R700_User Guide_V1.05 1

UART Application Note. SIM5XXX UART Application Note 1

SIM20_AT Command Manual_V1.04

L76-L I2C Application Note

GPS Application Note

SIM800H_ Secondary Reflow SMT Guidelines _V1.01

UC20 Android RIL Driver User Guide

SMS Application notes AN_SMS_V1.01

GSM/GPRS/GPS Tracker GL300 User Manual

TCP/IP Application Note

SIM5350_EVM_User_Guide _V1.00

WCDMA UGxx PPP Application Note

UC20 Linux USB Driver User Guide

SIM800H&L_EVM_User Guide _V1.00

GSM/GPRS/GPS Tracker GL300 User Manual

GSM POP3 AT Commands Manual

SIM7000 Series_FTP_Application Note_V1.00

SIM7100 Network Cell Info Application Note

SIM900_Multiplexer Manual_Application Note_V1.3

Development Kit Manual SIM900D-EVB_UGD_V1.01

SIM7000 Series_PING_Application Note_V1.00

WCDMA Audio Player Application Note

SIMCom_3G_CSD_Application Note_V1.00

Application Note. SIM7100_SMS_Application_Note_V

EC20 SSL AT Commands Manual

SIM800C-DS_Application Note _V1.00

Smart Machine Smart Decision. SIM900_IP_Application Note_V1.07 1

SIM5360 BMP Demo Basic Datanet Working Note V1.00

SIM7X00 Series_SAT_Application Note_V1.00

UC15 SSL AT Commands Manual

GSM DTMF Application Note

SIM7100 GPS Application Note

VL3000 Manager Tool User Guide V1.05

GSM QuecCell AT Commands Manual

BC95-G&BC68 MQTT Application Note

SIM7X00 Series_TCPIP_Application Note_V1.00

BG96 SSL AT Commands Manual

Communication FU UHF

SIM5360_ECALL_Application Note_V0.04

TRACGV75UM001. Version: R1.03

Enduro Plus 3G USER MANUAL. TrackingTheWorld.com. Multi-purpose Tracking Device

Development Kit Manual. SIM5360_EVB_User Guide_V1.02

Development Kit Manual. SIM908 EVB kit_user Guide_V1.00

SCOPE. SMS Application notes

Application Note. SIM7100_MMS_Application_Note_V

CDMA2000-1X Tracker GL300VC. User Manual. Application Notes: TRACGL300VCUM001 Revision:

SIM900 Reference Design Guide. SIM900_AN_ Reference Design Guide_V1.01

How to use the SIM7100 Module in Linux

TCP/IP APP_V1.02 Status: Release

SIM800 Series_FS_Application Note_V1.01

SIMCom_3G_PCM_Application Note_V1.04

(SMTP/POP3) Application Note

ID ISC.MR200-E TCP/IP

Transcription:

Cellular Engine GSM Delta Package Firmware Update Application Notes GSM_FOTA_AN_V1.0

Document Title GSM Delta Package Firmware Update Application Notes Version 1.0 Date 2010-09-07 Status Document Control ID Release GSM_FOTA_AN_V1.0 General Notes offers this information as a service to its customers, to support application and engineering efforts that use the products designed by. The information provided is based upon requirements specifically provided to by the customers. has not undertaken any independent search for additional relevant information, including any information that may be in the customer s possession. Furthermore, system validation of this product designed by within a larger electronic system remains the responsibility of the customer or the customer s system integrator. All specifications supplied herein are subject to change. Copyright This document contains proprietary technical information which is the property of Limited., copying of this document and giving it to others and the using or communication of the contents thereof, are forbidden without express authority. Offenders are liable to the payment of damages. All rights reserved in the event of grant of a patent or the registration of a utility model or design. All specification supplied herein are subject to change without notice at any time. Copyright Shanghai Wireless Solutions Co., Ltd. 2010 GSM_FOTA_AN_V1.0-1 -

Contents Contents...2 0. Revision history...3 1. Introduction...4 2. Update module firmware with delta package...5 2.1. Obtain delta package...5 2.2. Download delta package...5 2.3. Update module firmware with delta package...5 2.3.1. AT command interface when hardware flow control enabled...5 2.3.2. AT command interface when flow control disabled...6 2.4. Check result of update...7 GSM_FOTA_AN_V1.0-2 -

0. Revision history Revision Date Author Description of change 1.0 2010-09-06 Willis YANG Initial GSM_FOTA_AN_V1.0-3 -

1. Introduction FOTA is an acronym for Firmware Over-the-Air. FOTA updating technology enables mobile device manufacturers to remotely update software. New software that patches flaws in the software originally installed on the device is delivered over the air, eliminating the need for the user to bring the device to a service facility. FOTA updating process consists of three stages: 1) generating the update package (we will call it delta package in this document); 2) delivery of the update package; 3) performing the update. Stage 1: Generating Delta Package The initial stage includes generating a software updating package containing bug fixed or new features. It includes the differences between the version of existing firmware on device and the updated version of firmware. Delta package is normally generated by device manufacturer. For module, customers (in this document, customer means the device manufacturer that adopts module in their device) can achieve delta package from when they need to update the firmware of module. Stage 2: Delivery of the Delta Package Once achieving the delta package, customer needs to deliver the delta package to the device. When the devices are distributed to end user, it will take a big effort to ask end user to bring the device to a service facility to update the firmware. A more convenient way is that the device can download the delta package from network (that is Over the-air ). For module, does NOT provide service to deliver the delta package to the device. Customer needs to put the delta package on their own network server (HTTP, FTP, TCP etc), and uses GPRS function provided by module to download the delta package from their network server into the device. Stage 3: Performing the Update In the third stage, the downloaded delta package is used to perform the actual update of the original software image. This stage also validates that the correct delta package has been received and the update process has been successfully completed. For module, customer s device can use the specified AT commands to transfer delta package to module, and module will finish the validation and update process. This document briefly introduces the first stage (generating the update package) and mainly describes the third stage (performing the update) in detail. The second stage (delivery of the delta package) is not included in this document, customer needs to design and implement it. GSM_FOTA_AN_V1.0-4 -

2. Update module firmware with delta package 2.1. Obtain delta package Please query the current version of module firmware with the AT command ATI. Then send this version and the target version (the version need update to) to. will generate the delta package with these two versions of firmware. 2.2. Deliver delta package User can implement this part function by their own according to their requirement. User can put delta package on WEB server, and use MCU to download it from WEB server through module s GPRS function. User can also copy the delta package to a USB disk, and use MCU to read it from USB disk. 2.3. Update module firmware with delta package There are two sets of AT commands which can be used to transfer delta package to module. And then the module can update its firmware with the delta package. The following parts describe how to use these two sets of AT commands in detail. 2.3.1. AT command interface when hardware flow control enabled If hardware flow control function is enabled, AT command AT+QFUA can be used to transfer delta package to module and make module start firmware update process. Following is the detailed process. AT+QFUA OK CONNECT // Initialize FOTA function // When received CONNECT, indicates UART port has entered data // mode. Please input binary data of delta package through UART port... +++ // After finishing delta package data transmission, please input three // consecutive +. Module will stop receiving data and start firmware // update process. // Following information will be reported from UART port when update is in progress. Finish data downloading, rebooting... GSM_FOTA_AN_V1.0-5 -

firmware update is processing......runfirmwareupdate... Update percent = 1% Update percent = 2%... Update percent = 99% Update percent = 100% firmware update success. status=0 Rebooting... If the delta package is invalid or does not match with current module firmware, the error message will be reported from UART port and current module firmware will keep unchanged. Note: Before using AT+QFUA to transfer the delta package, please make sure hardware flow control is enabled. Otherwise, some data may be lost in transmission. 2.3.2. AT command interface when flow control disabled AT+QFAI OK AT+QFAW= 05A5D9 OK AT+QFAW= 85B19D OK.. AT+QFAU // Initialize FOTA function // Input delta package data, the maximum length of written data for one // AT command (AT+QFAW) is 450 bytes. The written data must be // converted to ASCII character string at first. Below is an example // code of the conversion algorithm. // After finishing delta package data, please input this AT command, // and module will start update process. // Following information will be reported from UART port when update is in progress. Finish data downloading, rebooting... firmware update is processing......runfirmwareupdate... Update percent = 1% Update percent = 2%... GSM_FOTA_AN_V1.0-6 -

Update percent = 99% Update percent = 100% firmware update success. status=0 Rebooting... Example code of the conversion algorithm that convert hex string to ASCII string. void convert_hex_to_string (uint8 *hex, int16 len, uint8 *str) { uint16 i=0, j=0; } while (j<len) { i += kal_sprintf((char *)str+i, "%02X", hex[j]); j++; } str[i] = '\0'; 2.4. Check result of update After updating is finished, please query the version of module firmware with ATI to verify whether the module firmware has updated to target version successfully. GSM_FOTA_AN_V1.0-7 -

Shanghai Wireless Solutions Co., Ltd. Room 501, Building 9, No.99, TianZhou Road, Shanghai, China 200233 Tel: +86 21 5108 2965 Mail: info@quectel.com