[go: up one dir, main page]

CN201146523Y - A Remote Upgrade Device for ARM Embedded Terminal Based on GPRS Network - Google Patents

A Remote Upgrade Device for ARM Embedded Terminal Based on GPRS Network Download PDF

Info

Publication number
CN201146523Y
CN201146523Y CNU2007200093389U CN200720009338U CN201146523Y CN 201146523 Y CN201146523 Y CN 201146523Y CN U2007200093389 U CNU2007200093389 U CN U2007200093389U CN 200720009338 U CN200720009338 U CN 200720009338U CN 201146523 Y CN201146523 Y CN 201146523Y
Authority
CN
China
Prior art keywords
area
upgrade
arm
user code
data block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNU2007200093389U
Other languages
Chinese (zh)
Inventor
陈聪慧
吴允平
彭井花
卢宇
李汪彪
吴进营
蔡声镇
苏伟达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Normal University
Original Assignee
Fujian Normal University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Normal University filed Critical Fujian Normal University
Priority to CNU2007200093389U priority Critical patent/CN201146523Y/en
Application granted granted Critical
Publication of CN201146523Y publication Critical patent/CN201146523Y/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本实用新型涉及了一种基于GPRS网络的ARM嵌入式终端远程升级装置。装置由主控芯片ARM、GPRS Modem,以及连接两个模块之间的RS-232总线构成。ARM内部的Flash存储器划分为存放有系统初始化和启动的代码的启动区、存放有跳转到相应用户代码区的指令的用户代码跳转区、存放当前ARM嵌入式终端正在执行的用户代码的用户代码1区和存放通过IAP存放GPRS Modem接收到的远程升级数据的用户代码2区。GPRS Modem接收的升级数据块的格式划分为升级数据块ID区、升级数据块的数据区、升级数据块的校验区。本装置利用了ARM本身Flash资源,不用人工现场升级处理等,实现了对ARM嵌入式终端的远程软件升级,降低了系统成本和工程的复杂度。具有断点续传功能,缩短升级时间。

The utility model relates to an ARM embedded terminal remote upgrading device based on a GPRS network. The device is composed of the main control chip ARM, GPRS Modem, and the RS-232 bus connecting the two modules. The Flash memory inside the ARM is divided into the startup area that stores the code for system initialization and startup, the user code jump area that stores instructions to jump to the corresponding user code area, and the user code area that stores the user code currently being executed by the ARM embedded terminal. Code 1 area and user code area 2 for storing remote upgrade data received by GPRS Modem through IAP. The format of the upgrade data block received by the GPRS Modem is divided into the upgrade data block ID area, the data area of the upgrade data block, and the check area of the upgrade data block. This device utilizes ARM's own Flash resources, without manual on-site upgrade processing, etc., and realizes remote software upgrades for ARM embedded terminals, reducing system costs and engineering complexity. With breakpoint resume function, shorten the upgrade time.

Description

一种基于GPRS网络的ARM嵌入式终端远程升级装置 A Remote Upgrade Device for ARM Embedded Terminal Based on GPRS Network

技术领域 technical field

本实用新型涉及嵌入式终端的升级装置,尤其涉及一种基于GPRS网络的ARM嵌入式终端远程升级装置。The utility model relates to an upgrade device for an embedded terminal, in particular to a remote upgrade device for an ARM embedded terminal based on a GPRS network.

背景技术 Background technique

国内的嵌入式系统已经广泛应用于工业、通讯、信息家电等领域,并已经渗透到其他行业。随着新技术的不断涌现和对系统功能、性能要求的不断提高,用户必须能够针对客户的需求的变化升级系统,以延长系统的使用周期,增强系统的应用性,改善系统性能。传统的嵌入式系统升级方式通常是维护人员到达设备现场,开箱重写或者更换Flash,当设备数目庞大并且分布在不同的地点时,必将造成升级维护过程繁琐、成本高、时间长等问题。而采用分布式监控系统现场终端的系统软件远程在线升级又存在升级时间较长,升级过程发生中断导致升级未成功等缺陷。如果能够有效地构造一种装置,通过GPRS网络传输相关升级程序代码,实现远程无线升级,将可有效解决上述问题。Domestic embedded systems have been widely used in fields such as industry, communication, and information appliances, and have penetrated into other industries. With the continuous emergence of new technologies and the continuous improvement of system functions and performance requirements, users must be able to upgrade the system according to changes in customer needs, so as to prolong the service life of the system, enhance the applicability of the system, and improve system performance. The traditional embedded system upgrade method usually requires maintenance personnel to arrive at the device site, rewrite or replace the Flash out of the box. When the number of devices is large and distributed in different locations, the upgrade and maintenance process will be cumbersome, costly, and take a long time. . However, the remote online upgrade of the system software using the field terminal of the distributed monitoring system has defects such as long upgrade time, interruption of the upgrade process and unsuccessful upgrade. If can construct a kind of device effectively, transmit relevant upgrade program code through GPRS network, realize remote wireless upgrade, will effectively solve the above-mentioned problem.

发明内容 Contents of the invention

本实用新型的目的是通过GPRS网络传输ARM升级程序代码,利用ARM的系统在应用编程(以下简称IAP)及其内部Flash存储器,实现ARM嵌入式终端远程无线升级。The purpose of the utility model is to transmit the ARM upgrade program code through the GPRS network, utilize the system in-application programming (hereinafter referred to as IAP) of the ARM and its internal Flash memory to realize the remote wireless upgrade of the ARM embedded terminal.

为达到本实用新型的目的,采用的技术方案是:装置包括有主控芯片ARM和GPRS Modem功能模块,以及连接两个功能模块之间的RS-232总线;同时将主控芯片ARM内部的Flash存储器划分为启动区、用户代码跳转区、用户代码1区和用户代码2区四个部分,将GPRS Modem接收的升级数据块的格式划分为升级数据块ID区、升级数据块的数据区、升级数据块的校验区。For reaching the purpose of the present utility model, the technical scheme that adopts is: device comprises main control chip ARM and GPRS Modem function module, and connects the RS-232 bus line between two function modules; The memory is divided into four parts: startup area, user code jump area, user code 1 area and user code 2 area, and the format of the upgrade data block received by GPRS Modem is divided into upgrade data block ID area, upgrade data block data area, Upgrade the checksum area of the data block.

本实用新型所述的启动区,存放有系统初始化和启动的代码。The startup area described in the utility model stores codes for system initialization and startup.

本实用新型所述的用户代码跳转区存放有跳转到相应用户代码区的指令。Instructions for jumping to corresponding user code areas are stored in the user code jump area described in the utility model.

本实用新型所述的用户代码1区和用户代码2区中,用户代码1区用来存放当前ARM嵌入式终端正在执行的用户代码,用户代码2区用来存放通过IAP存放GPRS Modem接收到的远程升级数据。当升级数据接收完成后,通过IAP修改用户代码跳转区的指令,使ARM嵌入式终端运行新的升级代码。对升级数据进行分块传输,并对每一小块数据进行编号,主控芯片ARM保存最后一块接收成功的升级数据的编号,实现断点续传功能。In the user code 1 area and the user code 2 area described in the utility model, the user code 1 area is used to store the user code currently being executed by the ARM embedded terminal, and the user code 2 area is used to store the data received by the GPRS Modem through the IAP. Update data remotely. After the upgrade data is received, modify the instruction in the user code jump area through the IAP to make the ARM embedded terminal run the new upgrade code. The upgrade data is transmitted in blocks, and each small piece of data is numbered. The main control chip ARM saves the number of the last piece of upgrade data that has been successfully received, realizing the function of resuming transmission from breakpoints.

采用本发明技术方案的有益效果是:通过GPRS网络,实现了对ARM嵌入式终端的远程软件升级,充分利用主控芯片ARM本身Flash资源,不用外部扩展RAM或EEPROM芯片,无需人工现场升级,降低了系统成本和工程的复杂度,减少了现场升级的耗费。通过断点续传功能缩短升级时间,避免因升级中断而导致升级未成功。The beneficial effect of adopting the technical solution of the present invention is: through the GPRS network, the remote software upgrade to the ARM embedded terminal is realized, the flash resource of the main control chip ARM itself is fully utilized, no external expansion of RAM or EEPROM chip is required, no manual on-site upgrade is required, and the It reduces system cost and engineering complexity, and reduces the cost of on-site upgrades. The upgrade time can be shortened by using the function of resuming upload from breakpoints, so as to avoid unsuccessful upgrades caused by interrupted upgrades.

附图说明 Description of drawings

图1是本实用新型所述的装置框图。Fig. 1 is the device block diagram described in the utility model.

图2是本实用新型所述的ARM内部Flash划分方式。Fig. 2 is the division method of ARM internal Flash described in the utility model.

图3是本实用新型所述的GPRS接收的升级数据块的格式。Fig. 3 is the format of the upgrade data block received by GPRS described in the utility model.

图4是本实用新型所述的基于GPRS网络的ARM嵌入式终端远程升级过程流程图。Fig. 4 is a flow chart of the remote upgrade process of the ARM embedded terminal based on the GPRS network described in the present invention.

图1中,101是终端的主控芯片ARM,103是GPRS Modem,102是ARM 101和GPRS Modem 103两部分连接通信的RS-232总线。In Fig. 1, 101 is the main control chip ARM of the terminal, 103 is the GPRS Modem, and 102 is the RS-232 bus connecting the two parts of ARM 101 and GPRS Modem 103 for communication.

图2中,201是启动区,202是用户代码跳转区,203是用户代码1区,204是用户代码2区。In Fig. 2, 201 is a starting area, 202 is a user code jump area, 203 is a user code 1 area, and 204 is a user code 2 area.

图3中,401是升级数据块ID,402是升级数据块的数据部分,403是升级数据块的校验。In FIG. 3 , 401 is an upgrade data block ID, 402 is a data part of an upgrade data block, and 403 is a verification of an upgrade data block.

具体实施方式 Detailed ways

为了对本实用新型更明确的理解,下面结合附图作进一步说明。For a clearer understanding of the utility model, further description will be given below in conjunction with the accompanying drawings.

按照附图1所述的主控芯片ARM(101)和GPRS Modem(103)两个功能模块,通过RS-232(102)总线进行连接。According to main control chip ARM (101) described in accompanying drawing 1 and two functional modules of GPRS Modem (103), connect by RS-232 (102) bus line.

按照附图2所述的方式,将主控芯片ARM(101)内部的Flash存储器划分为启动区(201)、用户代码跳转区(202)、用户代码1区(203)和用户代码2区(204)四个部分。According to the mode described in accompanying drawing 2, the flash memory inside main control chip ARM (101) is divided into start area (201), user code jump area (202), user code 1 area (203) and user code 2 area (204) Four parts.

按照附图3所述的方式,将GPRS Modem(103)接收的升级数据块的格式划分为升级数据块ID区(401)、升级数据块的数据区(402)、升级数据块的校验区(403)。According to the mode described in accompanying drawing 3, the format of the upgrade data block that GPRS Modem (103) receives is divided into the check area of upgrade data block ID area (401), the data area (402) of upgrade data block, the upgrade data block (403).

升级时采用以下步骤进行:Use the following steps when upgrading:

步骤301:主控芯片ARM(101)接收GPRS Modem(103)发送过来的升级数据。Step 301: The main control chip ARM (101) receives the upgrade data sent by the GPRS Modem (103).

步骤302:判断接收到的升级数据块的ID是否是期望的ID,若是,转至303,否则转至311。Step 302: Judging whether the ID of the received upgrade data block is the expected ID, if yes, go to 303, otherwise go to 311.

步骤303:判断当前程序是否运行在用户代码1区(203),若是,转至304,否则转至305。Step 303: Judging whether the current program is running in user code 1 area (203), if so, go to 304, otherwise go to 305.

步骤304:主控芯片ARM通过IAP保存升级数据块到用户代码2区(204)。Step 304: The main control chip ARM saves the upgrade data block to the user code 2 area through the IAP (204).

步骤305:主控芯片ARM通过IAP保存升级数据块到用户代码1区(203)。Step 305: The main control chip ARM saves the upgrade data block to the user code 1 area through the IAP (203).

步骤306:判断是否所有的升级数据已经接收完成,若是,转至307,否则,转至310。Step 306 : Determine whether all the upgrade data has been received, if so, go to 307 , otherwise, go to 310 .

步骤307:通过IAP修改用户代码跳转区(202)的指令,使调转指令指向新的升级程序。Step 307: Modify the instructions in the user code jump area (202) through the IAP, so that the transfer instructions point to the new upgrade program.

步骤308:清零期望接收到的升级数据块ID,为下一次升级做准备。Step 308: Clear the expected received upgrade data block ID to prepare for the next upgrade.

步骤309:复位主控芯片ARM(101),执行新的升级程序。Step 309: Reset the main control chip ARM (101), and execute a new upgrade program.

步骤310:期望接收到的升级数据块ID加1。Step 310: Add 1 to the expected received upgrade data block ID.

步骤311:通过GPRS Modem(103)发送期望接收到的升级数据块ID,作为返回应答数据。Step 311: send the upgrade data block ID that expects to receive by GPRS Modem (103), as return response data.

步骤312:流程退出。Step 312: the process exits.

Claims (4)

1, a kind of ARM built-in terminal remote upgrade device based on GPRS network, it is characterized in that device by main control chip ARM, GPRS Modem module and connect two RS-232 buses between the module and constitute, wherein: the Flash memory of main control chip ARM inside is divided into promoter region, personal code work redirect district, personal code work 1 district and personal code work 2 districts; The form of GPRS Modem upgrade data piece is divided into the data field of upgrade data piece ID district, upgrade data piece, the check field of upgrade data piece.
2, according to the described a kind of ARM built-in terminal remote upgrade device based on GPRS network of claim 1, what it is characterized in that described promoter region deposits is the code of system initialization and startup.
3, according to the described a kind of ARM built-in terminal remote upgrade device of claim 1, it is characterized in that described personal code work 1 district is used for depositing the personal code work that current ARM built-in terminal is being carried out based on GPRS network.
4, according to the described a kind of ARM built-in terminal remote upgrade device of claim 1, it is characterized in that described personal code work 2 districts are used for depositing the data of upgrading based on GPRS network.
CNU2007200093389U 2007-12-30 2007-12-30 A Remote Upgrade Device for ARM Embedded Terminal Based on GPRS Network Expired - Fee Related CN201146523Y (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNU2007200093389U CN201146523Y (en) 2007-12-30 2007-12-30 A Remote Upgrade Device for ARM Embedded Terminal Based on GPRS Network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNU2007200093389U CN201146523Y (en) 2007-12-30 2007-12-30 A Remote Upgrade Device for ARM Embedded Terminal Based on GPRS Network

Publications (1)

Publication Number Publication Date
CN201146523Y true CN201146523Y (en) 2008-11-05

Family

ID=40083409

Family Applications (1)

Application Number Title Priority Date Filing Date
CNU2007200093389U Expired - Fee Related CN201146523Y (en) 2007-12-30 2007-12-30 A Remote Upgrade Device for ARM Embedded Terminal Based on GPRS Network

Country Status (1)

Country Link
CN (1) CN201146523Y (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023876A (en) * 2009-09-14 2011-04-20 漳州科能电器有限公司 Embedded system capable of upgrading software on line and online upgrading method
CN102403034A (en) * 2010-09-07 2012-04-04 艾默生网络能源有限公司 DSP control single board device and its remote upgrading method and server
CN102591690A (en) * 2011-12-27 2012-07-18 南京理学工程数据技术有限公司 Embedded system remote upgrade method
CN102915249A (en) * 2012-11-02 2013-02-06 苏州科达科技股份有限公司 Method and device for remotely realizing firmware updating
CN104503782A (en) * 2014-12-11 2015-04-08 中国南方电网有限责任公司电网技术研究中心 A method for remote software upgrade of in-situ relay protection device
US9471300B2 (en) 2012-07-26 2016-10-18 Utc Fire And Security America Corporation, Inc. Wireless firmware upgrades to an alarm security panel
CN106200456A (en) * 2016-06-27 2016-12-07 武汉立方科技有限公司 A kind of hydrographic water resource detecting system possessing remote upgrade function
CN106569847A (en) * 2016-10-14 2017-04-19 数源科技股份有限公司 Method for realizing IAP remote upgrade through vehicle-mounted system based on mobile network
CN110262817A (en) * 2019-05-17 2019-09-20 福建星云电子股份有限公司 A kind of SCM program batch upgrading method and system based on Ethernet

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023876A (en) * 2009-09-14 2011-04-20 漳州科能电器有限公司 Embedded system capable of upgrading software on line and online upgrading method
CN102023876B (en) * 2009-09-14 2013-04-17 漳州科能电器有限公司 Embedded system capable of upgrading software on line and online upgrading method
CN102403034B (en) * 2010-09-07 2015-09-30 艾默生网络能源有限公司 DSP controls single-board device and remote upgrade method thereof and server
CN102403034A (en) * 2010-09-07 2012-04-04 艾默生网络能源有限公司 DSP control single board device and its remote upgrading method and server
CN102591690A (en) * 2011-12-27 2012-07-18 南京理学工程数据技术有限公司 Embedded system remote upgrade method
US9471300B2 (en) 2012-07-26 2016-10-18 Utc Fire And Security America Corporation, Inc. Wireless firmware upgrades to an alarm security panel
CN102915249A (en) * 2012-11-02 2013-02-06 苏州科达科技股份有限公司 Method and device for remotely realizing firmware updating
CN104503782A (en) * 2014-12-11 2015-04-08 中国南方电网有限责任公司电网技术研究中心 A method for remote software upgrade of in-situ relay protection device
CN104503782B (en) * 2014-12-11 2017-07-28 中国南方电网有限责任公司电网技术研究中心 A method for remote software upgrade of in-situ relay protection device
CN106200456A (en) * 2016-06-27 2016-12-07 武汉立方科技有限公司 A kind of hydrographic water resource detecting system possessing remote upgrade function
CN106569847A (en) * 2016-10-14 2017-04-19 数源科技股份有限公司 Method for realizing IAP remote upgrade through vehicle-mounted system based on mobile network
CN106569847B (en) * 2016-10-14 2020-03-31 数源科技股份有限公司 Method for vehicle-mounted system to realize IAP remote upgrade based on mobile network
CN110262817A (en) * 2019-05-17 2019-09-20 福建星云电子股份有限公司 A kind of SCM program batch upgrading method and system based on Ethernet
CN110262817B (en) * 2019-05-17 2023-02-28 福建星云电子股份有限公司 Ethernet-based single-chip microcomputer program batch upgrading method and system

Similar Documents

Publication Publication Date Title
CN201146523Y (en) A Remote Upgrade Device for ARM Embedded Terminal Based on GPRS Network
CN112148326B (en) Method, device and system for remote updating of firmware of IoT device
CN102023876B (en) Embedded system capable of upgrading software on line and online upgrading method
CN107291516B (en) Firmware upgrading method and system
CN104102518B (en) double-CPU system and program upgrading method thereof
CN103414741B (en) A kind of method and system of remote upgrade PLC
CN104468235A (en) Allocable full-network remote node firmware upgrading system and device based on IAP
CN104503796A (en) IAP (Internet Access Provider) based configurable full-network remote node firmware upgrading method
CN104090796A (en) Embedded device program updating method and system
KR101327680B1 (en) Apparatus, system and method for upgrading firmware of energy device
CN101950254B (en) Software updating method and system thereof
CN108874428A (en) A kind of remote upgrade method of refrigerator controller control software
CN104149717A (en) Remote non-interference updating system and remote non-interference updating method for vehicle control
CN102662706A (en) Method for remotely reliably upgrading XIP (execute in place) chip software
CN103268243B (en) A kind of performance element on the spot remote online upgrade-system of chain type current transformer
CN105279001A (en) Software remote upgrading method for network terminal devices
CN107797812A (en) A kind of charger remote online upgrade method and system
CN108469961A (en) One kind is based on micromation embedded platform remote update system and method
CN107766063A (en) A kind of method and system of batch upgrade software
CN104991806A (en) Remote firmware upgrading system and method for single-chip microcomputer program
CN104182256B (en) A kind of embedded device method for updating program
CN102711095A (en) Method for updating nodes of wireless sensor network in wireless mode
CN201845215U (en) Concentrating-distributing type wireless control system, master controller and slave controllers
CN110908690A (en) An online upgrade method for multiple BMU applications based on CAN bus
CN105278992A (en) Firmware updating method and apparatus

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081105

Termination date: 20100201