CN102073522A - Method for self-renewing embedded system-oriented application program on line - Google Patents

Method for self-renewing embedded system-oriented application program on line Download PDF

Info

Publication number
CN102073522A
CN102073522A CN201110006312XA CN201110006312A CN102073522A CN 102073522 A CN102073522 A CN 102073522A CN 201110006312X A CN201110006312X A CN 201110006312XA CN 201110006312 A CN201110006312 A CN 201110006312A CN 102073522 A CN102073522 A CN 102073522A
Authority
CN
China
Prior art keywords
application program
embedded
refresh routine
new application
program
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.)
Pending
Application number
CN201110006312XA
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.)
Shenzhen Clou Electronics Co Ltd
Original Assignee
Shenzhen Clou Electronics Co Ltd
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 Shenzhen Clou Electronics Co Ltd filed Critical Shenzhen Clou Electronics Co Ltd
Priority to CN201110006312XA priority Critical patent/CN102073522A/en
Publication of CN102073522A publication Critical patent/CN102073522A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a method for self-renewing/upgrading an embedded system-oriented application program on line. The method comprises the following steps of: compiling a renewing program and a new application program into user programs; transmitting the user programs; separating the user programs and copying the user programs to an appointed position in a memory; verifying the new application program; updating the application program; and running the new application program through reset target equipment. By the method, the embedded system-oriented application program is self-renewed/upgraded on line when the target equipment is in a running state; the safety and reliability of updating are improved; the continuous running and safe updating of the embedded system equipment are effectively ensured; the updating cost is reduced; and the efficiency and the operability of the updating are improved.

Description

Towards the online self method of the application program of embedded system
Technical field
The present invention relates to the application program update method of embedded system, flash goes up the self/upgrading of the application program of operation in particularly a kind of CPU sheet.
Background technology
The function of embedded device becomes from strength to strength now, and function is also more and more abundanter.Along with the function of embedded device becomes increasingly complex, in order to satisfy the demand that the user constantly changes, it is more and more important that online upgrading just seems.
In existing embedded OS field, online upgrading all is to carry out on different storeies with carrying out at procedure stores, be kept on the flash as program, but during operation is in internal memory (SDRAM), online upgrading is no problem in this case, but many times the CPU program of selecting for use for the cost that can better control product is kept in the CPU sheet on the flash, also be directly to move on flash during operation, online program updates has just become impossible task in the time of this.
To all coexist situation among the flash of this procedure stores and operation, the update method of generally taking is exactly that off-line upgrades, and promptly takes equipment utilization off-line programing equipment apart target device is carried out off-line programing.
For being installed to on-the-spot equipment, equipment to be taken apart carried out off-line programing then, such operability is extremely low, and feasible relatively method just can only be returned factory's programming.But so also can bring great quantities.
Summary of the invention
For overcoming the deficiency of prior art, the object of the present invention is to provide the online self method of a kind of application program, to realize online updating towards embedded system towards embedded system.
For achieving the above object, technical scheme of the present invention is: the online self method of a kind of application program towards embedded system, and described application program is moved on the flash in the CPU sheet, and it can not upgrade oneself under the state of operation, may further comprise the steps:
(1) is used to the refresh routine that upgrades and new application program is compiled into a user program;
(2) mode by serial ports or USB is transferred to target device to above-mentioned user program and gets on; New application program update derives from transmission modes such as computer (perhaps PDA) serial ports or USB, has avoided taking target device apart and has utilized off-line programing equipment to carry out the loaded down with trivial details of off-line programing;
When (3) after the user program download is finished, needing to upgrade, user program starts renewal, the refresh routine that target device upgrades application program to being used in the user program that gets access to is separated, and appointed positions in the internal memory that new application program and refresh routine are copied respectively;
(4) jump to the refresh routine entry position and carry out refresh routine, refresh routine carries out verification after finding the new application program that needs to upgrade in the internal memory appointed positions;
(5) the old application program on the flash is wiped in verification after errorless, writes new application program again, finishes renewal;
(6) reset object equipment normally moves the new application program after the renewal.
As specializing, during the system update program, target device is under the normal operating conditions.Because target device is under the normal operating conditions, do not need during the system update program target device shut down, takes apart to carry out off-line and upgrade, can under the state of target device operate as normal, carry out program updates, upgrading.
As improvement, in step (1), the refresh routine that is used for upgrading is embedded into new application program in the mode of 16 systems.
As further improvement, in step (3), new application program is separated self the refresh routine that is embedded into, and appointed positions in the internal memory that new application program and refresh routine are copied respectively.
Compared with prior art, beneficial effect of the present invention is: the present invention has realized that target device is under running status, online self towards the application program of embedded system, having avoided taking apart target device utilizes off-line programing equipment that target device is carried out the loaded down with trivial details of off-line programing, security and the reliability upgraded have been improved, and then effectively guarantee the continuous service and the security update of embedded system device, lower the renewal cost and improved updating efficiency and operability.
Description of drawings
Fig. 1 is a workflow diagram of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments the utility model is further elaborated.
As described in Figure 1, the online self method of a kind of application program of the present invention towards embedded system, the target device that upgrades is under the normal operating conditions, described application program is moved on the flash in the CPU sheet, application program itself can not still be upgraded oneself at oneself under the state of operation, its job step is:
1) preparation routine
Refresh routine that is used for upgrading application program and new application program are packaged into a user program, and wherein refresh routine is embedded into new application program in the mode of 16 systems.
2) obtain new procedures
By modes such as computer (perhaps PDA) serial ports or USB the user program data transmission to target device.Program is carried out next step after downloading and finishing.
3) upgrade preceding the preparation
The refresh routine that target device upgrades application program to being used in the user program that gets access to is separated, and copies new application program and refresh routine in the internal memory (SDRAM) appointed positions respectively, is ready to the scene.
4) upgrade verification
The PC pointer is jumped to refresh routine, and refresh routine obtains new application program at assigned address, and whether the new application program of verification is legal.
5) upgrade application program
After the new application program of verification is legal, old application program is wiped, write new application program.
6) the new application program of operation
The programmed control target device that automatically resets moves new application program.
By the above-mentioned course of work, the present invention has realized that target device is under running status, online self towards the application program of embedded system, having avoided taking apart target device utilizes off-line programing equipment that target device is carried out the loaded down with trivial details of off-line programing, security and the reliability upgraded have been improved, and then effectively guarantee the continuous service and the security update of embedded system device, lower the renewal cost and improved updating efficiency and operability.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (4)

1. online self method of the application program towards embedded system, described application program is moved on the flash in the CPU sheet, and it can not upgrade oneself under the state of operation, it is characterized in that, may further comprise the steps:
(1) is used to the refresh routine that upgrades and new application program is compiled into a user program;
(2) mode by serial ports or USB is transferred to target device to above-mentioned user program and gets on;
When (3) after the user program download is finished, needing to upgrade, user program starts renewal, the refresh routine that target device upgrades application program to being used in the user program that gets access to is separated, and appointed positions in the internal memory that new application program and refresh routine are copied respectively;
(4) jump to the refresh routine entry position and carry out refresh routine, refresh routine carries out verification after finding the new application program that needs to upgrade in the internal memory appointed positions;
(5) the old application program on the flash is wiped in verification after errorless, writes new application program again, finishes renewal;
(6) reset object equipment is normal, the new application program after operation is upgraded.
2. the online self method of the application program towards embedded system according to claim 1 is characterized in that during the system update program, target device is under the normal operating conditions.
3. the online self method of the application program towards embedded system according to claim 1 is characterized in that, in described step (1), the refresh routine that is used for upgrading is embedded into new application program in the mode of 16 systems.
4. the online self method of the application program towards embedded system according to claim 3, it is characterized in that, in described step (3), new application program is separated self the refresh routine that is embedded into, and appointed positions in the internal memory that new application program and refresh routine are copied respectively.
CN201110006312XA 2011-01-13 2011-01-13 Method for self-renewing embedded system-oriented application program on line Pending CN102073522A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110006312XA CN102073522A (en) 2011-01-13 2011-01-13 Method for self-renewing embedded system-oriented application program on line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110006312XA CN102073522A (en) 2011-01-13 2011-01-13 Method for self-renewing embedded system-oriented application program on line

Publications (1)

Publication Number Publication Date
CN102073522A true CN102073522A (en) 2011-05-25

Family

ID=44032068

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110006312XA Pending CN102073522A (en) 2011-01-13 2011-01-13 Method for self-renewing embedded system-oriented application program on line

Country Status (1)

Country Link
CN (1) CN102073522A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106083A (en) * 2011-11-09 2013-05-15 北京市三希电子科技开发公司 Loading method and loading device of firmware
CN103870319A (en) * 2012-12-14 2014-06-18 联想(北京)有限公司 Method and device for information processing and electronic device
CN105005486A (en) * 2015-06-25 2015-10-28 许继集团有限公司 Program online upgrading system and method for intelligent transformer substation equipment
CN111880827A (en) * 2020-07-29 2020-11-03 珠海安联锐视科技股份有限公司 Embedded software upgrading method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060248172A1 (en) * 2003-06-24 2006-11-02 Thomas Zurawka Method for updating software of an electronic control device by flash programming via a serial interface and corresponding automatic state machine
CN101436138A (en) * 2007-11-16 2009-05-20 苏州科达通信技术发展有限公司 Control device and control method for software upgrade and dynamic rolling back
CN101477471A (en) * 2009-01-07 2009-07-08 杭州海康威视数字技术股份有限公司 Embedded system firmware on-line upgrading system
CN101499011A (en) * 2008-01-29 2009-08-05 中兴通讯股份有限公司 Method and apparatus for implementing USB booting and updating of mobile communication base station system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060248172A1 (en) * 2003-06-24 2006-11-02 Thomas Zurawka Method for updating software of an electronic control device by flash programming via a serial interface and corresponding automatic state machine
CN101436138A (en) * 2007-11-16 2009-05-20 苏州科达通信技术发展有限公司 Control device and control method for software upgrade and dynamic rolling back
CN101499011A (en) * 2008-01-29 2009-08-05 中兴通讯股份有限公司 Method and apparatus for implementing USB booting and updating of mobile communication base station system
CN101477471A (en) * 2009-01-07 2009-07-08 杭州海康威视数字技术股份有限公司 Embedded system firmware on-line upgrading system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
余荣华 等: "基于HTTP协议的嵌入式应用程序通用自动更新平台", 《计算机与现代化》 *
孟志强 等: "基于IAP和USB技术的嵌入式程序升级方法", 《湖南大学学报(自然科学版)》 *
邓宏宇 等: "基于串口的TMS320C6713flash应用程序在线升级设计", 《舰船电子工程》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106083A (en) * 2011-11-09 2013-05-15 北京市三希电子科技开发公司 Loading method and loading device of firmware
CN103106083B (en) * 2011-11-09 2016-03-23 北京市三希电子科技开发公司 A kind of loading method of firmware and device
CN103870319A (en) * 2012-12-14 2014-06-18 联想(北京)有限公司 Method and device for information processing and electronic device
CN103870319B (en) * 2012-12-14 2018-12-14 联想(北京)有限公司 Information processing method, device and electronic equipment
CN105005486A (en) * 2015-06-25 2015-10-28 许继集团有限公司 Program online upgrading system and method for intelligent transformer substation equipment
CN111880827A (en) * 2020-07-29 2020-11-03 珠海安联锐视科技股份有限公司 Embedded software upgrading method

Similar Documents

Publication Publication Date Title
CN100424644C (en) Firmware program on-line upgrading method and hardware equipment
KR101963912B1 (en) Application compatibility with library operating systems
CN101192165B (en) Master-slave mode multiprocessor system and software version loading method
TWI475402B (en) Remote backup system and remote backup method thereof
CN100570558C (en) A kind of chip firmware updating method
CN100492294C (en) Program dynamic loading method
CN105204913A (en) Method and system for running Linux application on Android operating system and system
CN105911885B (en) Industrial control unit (ICU) for improving industrial control system
CN103379481B (en) Method for achieving safety protection
EP2329366B1 (en) Performing a pre-update on a non volatile memory
JP6257506B2 (en) Method for changing software in the memory of an electronic control unit
CN102270144A (en) Embedded network equipment and method for upgrading firmware by using same
CN102073522A (en) Method for self-renewing embedded system-oriented application program on line
CN102508686A (en) Method and system for realizing safe upgrading of system
CN101414264A (en) Method for updating high reliable software version and three update modes
CN101169729A (en) Embedded type system and method for renewing application program
CN101645003A (en) Method and device for software transplantation
CN105144096A (en) Minimizing switchover time during operating system kernel update in a hot swappable program memory
CN102763046B (en) Programmable Logic Controller
CN103677897A (en) System chip and programming method of system chip
CN104391714A (en) Software update method and software update device for vehicle
CN101620542A (en) Compatible updating method of ultrasonic imaging equipment software data
CN102156649A (en) Patch installation method and device thereof
US20190022856A1 (en) Robot Controller System And Method Therefor
CN102141915B (en) Equipment real-time control method based on RTLinux

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110525