CN100545809C - A kind of method for upgrading software and system thereof - Google Patents

A kind of method for upgrading software and system thereof Download PDF

Info

Publication number
CN100545809C
CN100545809C CNB2006100600260A CN200610060026A CN100545809C CN 100545809 C CN100545809 C CN 100545809C CN B2006100600260 A CNB2006100600260 A CN B2006100600260A CN 200610060026 A CN200610060026 A CN 200610060026A CN 100545809 C CN100545809 C CN 100545809C
Authority
CN
China
Prior art keywords
software
upgrade
aku
upgrading
terminal device
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
CNB2006100600260A
Other languages
Chinese (zh)
Other versions
CN101042651A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2006100600260A priority Critical patent/CN100545809C/en
Publication of CN101042651A publication Critical patent/CN101042651A/en
Application granted granted Critical
Publication of CN100545809C publication Critical patent/CN100545809C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention relates to a kind of method for upgrading software and system thereof, this method may further comprise the steps: S1. download and upgrade configuration file, obtain wherein AKU information and preservation; S2. according to described AKU information, call procotol download and upgrade bag to the terminal device region of memory; S3. upgrade the nonvolatile storage of described AKU to terminal device.The present invention also discloses a kind of system of software upgrading simultaneously.It is simple, reliable that method for upgrading software of the present invention is realized, can accomplish online upgrading real-time and efficiently effectively, and possess fault-tolerant restore funcitons.

Description

A kind of method for upgrading software and system thereof
Technical field
The present invention relates to the upgrade technique of the terminal software of the communications field, more particularly, relate to a kind of on-line software updating method and system thereof of suitable terminal device.
Background technology
In product development process, often need upgrade and upgrade existing software systems, on-line software updating is exactly a kind of real-time high-efficiency scheme that solves this type of problem, it does not need the outside to control, as long as add the relevant upgrading submodule that possesses the download and upgrade function in software systems, software systems will automatically be gone online download and the corresponding software of upgrading according to the condition that sets in advance.In the on-line software updating process, be mainly concerned with software download, software upgrading, how guarantee the reliability of upgrading and appearance during upgrading is unusual and the technology such as self-reparability of system.
A kind of method of on-line software updating is provided in the prior art, has marked the monitoring structure variable that an area stores downloads, comprised ROMPaq variable, monitored variable, exceptional reset variable etc. in the configurable zone of terminal module; When Surveillance center carries out software upgrading, ROMPaq is transferred to terminal module and is saved in the configurable zone; To the monitored variable assignment that downloads and deposit configurable zone in; Stop house dog, wait the house dog stipulated time to arrive after, the CPU that resets is restarted terminal; After terminal module is restarted, determine next step flow process according to the value of monitored variable: upgrading, wait or exceptional reset need to move the program of dispatching from the factory; Surveillance center monitors the ruuning situation of the monitoring module of operation AKU, after the discovery operation is errorless, issues the cancellation monitor command; Monitoring module is changed to "No" with monitored variable after receiving the cancellation monitor command, behind the later terminal operating, no longer judges whether exceptional reset, directly moves ROMPaq.
From the above, there is following shortcoming in this scheme:
1) process of software upgrading is unified control by Surveillance center;
2) it is complicated sign to be set, and need open up configuring area separately and preserve this sign is set, and has increased the complexity and the error probability of software;
3) all need restarting systems before software is upgraded, can't accomplish the real-time high-efficiency upgrading;
4) whether successfully upgrade for upgrade software and monitor, increased the complicacy of software greatly, reduced the reliability of terminal system by Surveillance center;
5) can not revert to the program of dispatching from the factory after the failure of terminal software system upgrade, increase extra storage space, increase the cost of terminal, be not suitable for Miniature Terminal equipment, and the self-recovering function of terminal device is poor, in case the program of dispatching from the factory also goes wrong, terminal can't start.
Summary of the invention
The object of the present invention is to provide a kind ofly, download and the method for upgrading software and the system thereof of the terminal software of online upgrading appointment by procotol according to the AKU information in the upgrading configuration of downloading.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of method for upgrading software, this method may further comprise the steps:
S1. the download and upgrade configuration file obtains wherein AKU information and preservation;
S2. according to described AKU information, call procotol download and upgrade bag to the terminal device region of memory;
S3. upgrade the nonvolatile storage of described AKU to terminal device.
In method of the present invention, before carrying out described step S1, further comprise: the upgrade information that the upgrade requirement of detection system software or the webserver send, if detect described upgrade requirement or upgrade information, then carry out described step S1.
In method of the present invention, described step S3 comprises:
S31., the one-writing system software mark is set, described AKU is updated in the nonvolatile storage of terminal device;
S32. described AKU is removed described one-writing system software mark after being accomplished to the renewal of nonvolatile storage of terminal device.
In method of the present invention, described step S31 takes a step forward and comprises: validity and legitimacy to the AKU of described download are verified, if checking is passed through, then carry out described step S31.
In method of the present invention, described method further comprises:
Restart described terminal system, detect described one-writing system software mark and whether be positioned at the state of setting, if be not positioned at the described state that is provided with, described upgrade software bag is upgraded successfully;
Otherwise, from the configurable zone of described terminal software, read server info, download the Mini system according to described server info by procotol, and it is kept in the internal memory of described terminal device;
Start described Mini system and order and carry out described step S1, step S2 and step S3.
In method of the present invention, described AKU information comprises the filename of AKU and the URL address of described AKU.
In method of the present invention, among the described step S2, described procotol comprises http protocol or File Transfer Protocol.
A kind of software update system, comprise upgrade server and terminal device, described terminal device is provided with the non-volatile memory device zone, and described non-volatile memory device zone is used for storage system software and system start-up software, and described system start-up software is used for loading and operation terminal software system; Described system software comprises the upgrading submodule, is used for on-line software updating, and described upgrade server also comprises for terminal device provides the software upgrading file:
Described non-volatile memory device zone also comprises protocol process module, and the described protocol process module of described system start-up software transfer is finished download, backup and the long-range loading of described upgrade file.
In system of the present invention, described non-volatile memory device zone is provided with the one-writing system software mark, and whether described system software sign is used to detect described upgrade software successfully upgrades.
In system of the present invention, described server specifically comprises:
First server is used for the upgrading configuration of storage terminal software;
Second server is used for the AKU of storage terminal software;
Described terminal device is downloaded corresponding AKU according to the described upgrading configuration from described first downloaded to described second server.
The invention has the beneficial effects as follows,
1) the present invention realizes simply not needing Surveillance center that software upgrade process is monitored, and adopts system start-up software that correlating markings is judged, realizes the check to software reliability, has reduced the complexity of terminal system software;
2) by starting the software transfer agreement and realizing the system software backup, effectively utilized Internet resources and saved terminal storage space, reduced cost by network;
3) do not need each upgrading all to restart system, can accomplish online upgrading real-time and efficiently effectively;
4), realized in limited space, possessing the function of fault-tolerant recovery, the reliability height by long-range loading of startup software transfer procotol and startup Mini system in terminal system;
5) by the download and upgrade configuration file and according to AKU download of information in this upgrading configuration and the corresponding terminal system software of upgrading, have under a plurality of situations at terminal system software, have high dirigibility and configurability, simultaneously, also can reduce the offered load of relevant online upgrading server according to the URL different distributions.
Description of drawings
The invention will be further described below in conjunction with drawings and Examples, in the accompanying drawing:
Fig. 1 is the process flow diagram of software upgrading of the present invention;
Fig. 2 is the detail flowchart of the software upgrading of Fig. 1;
Fig. 3 is the process flow diagram after terminal system is restarted in the present invention.
Embodiment
As shown in Figure 1, a kind of synoptic diagram of terminal software online upgrading may further comprise the steps:
S100, download and upgrade configuration file obtain wherein AKU information and preservation;
S105, according to described AKU information, call procotol download and upgrade bag to the terminal device region of memory;
S110, the described AKU of renewal arrive the nonvolatile storage of terminal device.
The present invention also discloses a kind of software update system simultaneously, comprise upgrade server and terminal device, described terminal device is provided with the non-volatile memory device zone, described non-volatile memory device zone is divided into two and is used for storage system software and system start-up software, and described system start-up software is used for loading and operation terminal software system; Described system software comprises the upgrading submodule, is used for on-line software updating, and described upgrade server also comprises for terminal device provides the software upgrading file:
Described non-volatile memory device zone also comprises protocol process module, and the described protocol process module of described system start-up software transfer is finished download, backup and the long-range loading of described upgrade file.
Described non-volatile memory device zone is provided with the one-writing system software mark, and whether described system software sign is used to detect described upgrade software successfully upgrades.
Described server specifically comprises:
First server is used for the upgrading configuration of storage terminal software;
Second server is used for the AKU of storage terminal software;
Described terminal device is downloaded corresponding AKU according to the described upgrading configuration from described first downloaded to described second server.Below above-mentioned steps and system are elaborated.
As shown in Figure 2, among the step S200, upgrading submodule in system software detects current system software automatically needs upgrading, when perhaps receiving the upgrade information that the online service device sends, will produce an independent sub-thread and start upgrading flow process (among the step S202).
Among the step S204, after the sub-thread of upgrading is successfully created, at first the upgrading configuration that will need to upgrade from the upgrade server (i.e. first server) of appointment downloads to local terminal, and then this upgrading configuration resolved, and therefrom obtain the URL address of depositing on the filename that need upgrade and the network again, simultaneously it is kept at non-volatile memory device zone (among the step S206).
Among the step S208, upgrade sub-thread according to upgrade file name and URL address from above-mentioned upgrading configuration, the invocation protocol module from filename and URL address corresponding download server (being second server) download to need the AKU of upgrading, and it is kept at the region of memory of terminal device, described protocol module is http protocol module or File Transfer Protocol module etc.
Among the step S210,, the validity and the legitimacy of AKU are verified according to the algorithm and the condition of program agreement when the AKU download finishes.If described AKU authentication failed, the sub-thread of then upgrading withdraws from automatically, no longer continues upgrading flow process (among the step S212).If this AKU is proved to be successful, then thinks legal AKU, and start renewal terminal software systematic procedure.
Among the step S214, the sub-thread of upgrading at first is provided with the one-writing system software mark, then the AKU by checking is updated to the online upgrading of the non-volatile memory device zone realization terminal software of terminal device.(among the step S216).
Among the step S218, after successfully upgrading AKU and finishing the online upgrading of terminal software, then remove the set one-writing system software flag bit of above-mentioned steps S214, behind the intact journey online upgrading software of upgrading submodule, the software upgrading of notice terminal system finishes, whether restart terminal system owing to do not need each upgrading all to restart system by the terminal system decision and whether complete successfully, see step S220, can accomplish the online upgrading of real-time high-efficiency so effectively with the online upgrading that detects software.
As shown in Figure 3, among the step S300, whether successfully terminal device can also detect above-mentioned software upgrading by restarting terminal system.When terminal device restarts terminal system, system start-up software all can at first detect whether be provided with one-writing system software mark (among the step S302), if be provided with, thinks that then last time upgrading was failed, the terminal software system is destroyed, can not use (among the step S304).At this moment, starting software will no longer load from the non-volatile memory device of terminal device and operation terminal software system, but according to the server info that reads from the configurable zone of terminal software, this server info comprises information such as server address, port and filename.Then, start protocol module, go to download the Mini system that possesses the upgrading submodule to specified server, and it is kept at terminal device (among the step S306) according to server info.After operation Mini system starts it, the Mini system also will produce a sub-thread of upgrading, and the upgrading flow process from step S204-S220 shown in the execution graph 2 again, with recovery normal terminal system software (among the step S308).
Among the step S310, if the one-writing system software mark is not set, the success of expression terminal software system upgrade.Among the step S312,, move successfully, so just can enter normal system flow process (among the step S314) if start software after loading terminal system software.
In the specific implementation process, might in the process of update software mistake appear, but think more news of success.At this moment, in above-mentioned steps S302, the one-writing system software flag bit will occur and be eliminated, still, when starting software behind loading terminal system software, the operation failure.At this moment, system start-up software will be reset the one-writing system software mark, and restarts terminal system (step S316) once more, carries out the flow process of above-mentioned steps S300-S308 once more.
Hence one can see that, and above-mentioned online software upgrade method realizes reliable, do not have that the terminal software system just can't start after the upgrading failure, the final problem that can't move, and needing only terminal system can connect to network, and terminal system finally can be recovered so.

Claims (5)

1, a kind of method for upgrading software is characterized in that, this method may further comprise the steps:
S1. the download and upgrade configuration file obtains wherein AKU information and preservation;
S2. according to described AKU information, call procotol download and upgrade bag to the terminal device region of memory;
S31., the one-writing system software mark is set, described AKU is updated in the nonvolatile storage of terminal device;
S32. described AKU is removed described one-writing system software mark after being accomplished to the renewal of nonvolatile storage of terminal device; Restart described terminal device, detect described one-writing system software mark and whether be positioned at the state of setting, if be not positioned at the described state that is provided with, described upgrade software bag is upgraded successfully; Otherwise, from the configurable zone of terminal software, read server info, download the Mini system that possesses the upgrading submodule according to described server info by procotol, and it is kept in the internal memory of described terminal device; Start described Mini system and the order that possesses upgrade function and carry out described step S1, step S2, step S31 and step S32.
2, method according to claim 1, it is characterized in that, before carrying out described step S1, further comprise: the upgrade information that the upgrade requirement of detection system software or the webserver send, if detect described upgrade requirement or upgrade information, then carry out described step S1.
4, method according to claim 1 is characterized in that, described step S31 takes a step forward and comprises: validity and legitimacy to the AKU of described download are verified, if checking is passed through, then carry out described step S31.
5, method according to claim 1 is characterized in that, described AKU information comprises the filename of AKU and the URL address of described AKU.
6, method according to claim 1 is characterized in that, among the described step S2, described procotol comprises http protocol or File Transfer Protocol.
CNB2006100600260A 2006-03-22 2006-03-22 A kind of method for upgrading software and system thereof Expired - Fee Related CN100545809C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100600260A CN100545809C (en) 2006-03-22 2006-03-22 A kind of method for upgrading software and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100600260A CN100545809C (en) 2006-03-22 2006-03-22 A kind of method for upgrading software and system thereof

Publications (2)

Publication Number Publication Date
CN101042651A CN101042651A (en) 2007-09-26
CN100545809C true CN100545809C (en) 2009-09-30

Family

ID=38808187

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100600260A Expired - Fee Related CN100545809C (en) 2006-03-22 2006-03-22 A kind of method for upgrading software and system thereof

Country Status (1)

Country Link
CN (1) CN100545809C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011157175A2 (en) * 2011-06-03 2011-12-22 华为技术有限公司 Method and chip for controlling update of communication device, and communication device thereof

Families Citing this family (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100495338C (en) * 2007-10-30 2009-06-03 上海华为技术有限公司 Software downloading method and telecommunication apparatus
CN101996083A (en) * 2009-08-21 2011-03-30 中兴通讯股份有限公司 Mirror image updating method and device
CN101882087A (en) * 2010-06-30 2010-11-10 中兴通讯股份有限公司 Multimedia terminal equipment and maintaining method thereof
CN101938470B (en) * 2010-08-12 2015-08-26 厦门市顺和达软件有限公司 Client terminal software updating system and method
CN102594974A (en) * 2011-01-05 2012-07-18 中兴通讯股份有限公司 Device and method for upgrading wireless communication terminal software
CN102098303A (en) * 2011-01-21 2011-06-15 汉柏科技有限公司 Hardware firewall for realizing automatic upgrade and upgrading method thereof
US9037633B2 (en) * 2011-01-27 2015-05-19 Wyse Technology L.L.C. Transferring configuration data from a public cloud server and applying onto a mobile client
CN102355486A (en) * 2011-08-11 2012-02-15 深圳市迅雷网络技术有限公司 Data download method and apparatus thereof
CN103049278A (en) * 2011-10-11 2013-04-17 镇江精英软件科技有限公司 Method for achieving automatic updating of client program of client/server (C/S) framework through file transfer protocol (FTP) technology
CN102437869B (en) * 2011-12-12 2016-04-13 深圳市国电科技通信有限公司 Power Line Carrier Communication Module concurrent software upgrade method
CN103795740A (en) * 2012-10-29 2014-05-14 腾讯科技(深圳)有限公司 Downloading method of plug-in installation packages and downloading terminal
CN103530150B (en) * 2013-10-10 2017-03-01 上海爱数信息技术股份有限公司 A kind of long-range method updating of (SuSE) Linux OS
CN104601628B (en) * 2013-10-31 2018-02-13 京信通信系统(中国)有限公司 Client, service end and its remote download method
CN104331948B (en) * 2014-10-28 2018-04-10 深圳市华宝电子科技有限公司 Tachographs upgrade information sending method, method of reseptance, apparatus and system
CN104503811B (en) * 2015-01-09 2018-04-20 烽火通信科技股份有限公司 Upgrade method for communication device and system based on single memory block
CN106612192A (en) * 2015-10-22 2017-05-03 阿里巴巴集团控股有限公司 An equipment upgrading method, apparatus and system
CN105743984A (en) * 2016-03-11 2016-07-06 中国建设银行股份有限公司 Method, device and system for automatically updating mobile application
CN105868101B (en) * 2016-03-22 2018-11-09 深圳市鼎阳科技有限公司 A kind of method for testing software
CN106055350B (en) * 2016-05-19 2019-07-26 珠海豹趣科技有限公司 The upgrade processing method and device of configuration file
CN106648725B (en) * 2016-09-07 2020-04-21 努比亚技术有限公司 Terminal, server and configuration file upgrading method
CN106648768B (en) * 2016-12-09 2021-05-18 安科讯(福建)科技有限公司 Method and system for upgrading equipment
CN107634876B (en) * 2017-09-11 2020-09-01 中国铁道科学研究院电子计算技术研究所 Real-name system gate state monitoring method
CN109766131B (en) * 2017-11-06 2022-04-01 上海宝信软件股份有限公司 System and method for realizing intelligent automatic software upgrading based on multithreading technology
CN109086065A (en) * 2018-08-16 2018-12-25 深圳市元征科技股份有限公司 A kind of method for upgrading software, system and terminal device
CN109614130A (en) * 2018-12-12 2019-04-12 湖南康通电子股份有限公司 A kind of cloud broadcast upgrade method and system with trial operation, self-check
CN110727599B (en) * 2019-10-17 2023-08-04 青岛海信宽带多媒体技术有限公司 Test environment configuration and updating method
CN113542318B (en) * 2020-04-15 2023-04-14 杭州海康威视数字技术股份有限公司 Equipment fault repairing method
CN111930402A (en) * 2020-08-27 2020-11-13 中山市天启智能科技有限公司 Firmware upgrading method of cluster server and cluster server
CN114386015A (en) * 2022-01-11 2022-04-22 绿能慧充数字技术有限公司 Method, system, device and medium for preventing program from being burnt mistakenly by remotely upgrading program
CN114661372A (en) * 2022-03-03 2022-06-24 北京达佳互联信息技术有限公司 Configuration information processing method and device and server
CN116048628B (en) * 2022-07-21 2023-09-29 荣耀终端有限公司 Equipment starting method and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011157175A2 (en) * 2011-06-03 2011-12-22 华为技术有限公司 Method and chip for controlling update of communication device, and communication device thereof
WO2011157175A3 (en) * 2011-06-03 2012-05-03 华为技术有限公司 Method and chip for controlling update of communication device, and communication device thereof

Also Published As

Publication number Publication date
CN101042651A (en) 2007-09-26

Similar Documents

Publication Publication Date Title
CN100545809C (en) A kind of method for upgrading software and system thereof
CN101426077A (en) Method for on-line updating television set software through Internet
CN100518082C (en) Long-distance on-line updating method with self-recovery function
CN102238093B (en) Service interruption prevention method and device
CN102364891B (en) Method for upgrading software of embedded Ethernet equipment and embedded Ethernet equipment
EP2456257B1 (en) Method and system for upgrading wireless data card
CN101241364B (en) Local controller, remote management controller and method for automatically updating the local controller of an air conditioner system
CN101079732A (en) Remote upgrade method of built-in system software based on FTP protocol
CN101860545A (en) System and method for implementing automatic configuration of equipment
CN104461654A (en) OBD equipment function unit and firmware classification optional upgrading method
CN102098590A (en) Automatic upgrading method and system of firmware version of optical network unit
EP4092524B1 (en) Ota differential upgrade method and system of master-slave architecture
CN111061491A (en) LXC container technology-based edge computing gateway management system and method
CN101291231A (en) Network appliance and restarting method thereof
CN103346914A (en) Method and device for topological structure update of distributed file system
CN111866063A (en) Online updating system, method and device for industrial Internet of things AI algorithm
CN101888653A (en) Firmware updating method, base station and network management center
CN112286945A (en) Configuration changing method, system, equipment and medium based on PBFT algorithm
JP4298716B2 (en) Communication control system
CN115268976A (en) Automatic upgrading method and system for multi-data center collection Agent version
CN113660317B (en) Vehicle-mounted terminal remote upgrading method based on FTP protocol
CN101695027A (en) Method, device and network equipment for upgrading distributed communication system software
CN104158906A (en) Server agent manipulation system and manipulation method
JP2006113754A (en) Software update device and method
CN115883360A (en) Remote upgrading method based on multi-layer grading of Internet of things

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090930

Termination date: 20180322

CF01 Termination of patent right due to non-payment of annual fee