CN107844312A - A kind of software upgrading monitoring method and system - Google Patents
A kind of software upgrading monitoring method and system Download PDFInfo
- Publication number
- CN107844312A CN107844312A CN201711076754.5A CN201711076754A CN107844312A CN 107844312 A CN107844312 A CN 107844312A CN 201711076754 A CN201711076754 A CN 201711076754A CN 107844312 A CN107844312 A CN 107844312A
- Authority
- CN
- China
- Prior art keywords
- renewal
- mark
- update
- software upgrading
- software
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
- G06F11/0757—Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Quality & Reliability (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of software upgrading monitoring method and system, this method to include:S1, the record renewal progress status mark in main program renewal process, renewal progress status mark is stored in external memory storage;S2, when main program updates failure, system is restarted in pressure;S3, marked using the renewal progress status in the renewal monitoring subroutine reading external memory being arranged in bootstrap boot, judge that currently updating progress status marks whether to update fail flag;S4, as step S3 judged results for renewal fail flag when, then start improper update mechanism to complete software upgrading.The system is used to perform method.The present invention by the record of software upgrading progress, judgement and control, overcome software upgrading in the prior art unsuccessfully cause equipment can not normal operation technical problem, realize the condition monitoring of software upgrading process and the autonomous reparation of update abnormal state.
Description
Technical field
The present invention relates to program to run process field, more particularly to a kind of software upgrading monitoring method and system.
Background technology
Software upgrading, refer to software from first version to the renewal in rear version.Due to usually repairing first version in rear version
This part BUG, so software upgrading is experienced, typically all can be more preferable than the performance of first version, the effect optimized, use
Can also there be more preferable experience at family.
In the prior art, the software in equipment renewal when due to equipment function interrupt (in software faults/communication
It is disconnected) or the reason such as compatibility can produce the situation of renewal failure, also can not be by multiple because more new state can not change always
The first version software of bit recovery, cause equipment can not normal operation, generally requiring manual intervention could repair.
The content of the invention
In order to solve the above problems, the present invention is by providing a kind of achievable software upgrading condition monitoring and update abnormal shape
The method and system that state is independently repaired.
On the one hand the technical solution adopted by the present invention is a kind of software upgrading monitoring method, including step:S1, in main program
Record renewal progress status mark in renewal process, renewal progress status mark is stored in external memory storage;The main journey
Sequence includes operating system and/or application software;S2, when main program updates failure, system is restarted in pressure;S3, using being arranged on
The renewal progress status mark in renewal monitoring subroutine reading external memory in bootstrap boot, judges current renewal
Progress status marks whether to update fail flag;S4, if step S3 judged results are when updating fail flag, then to start exception
Update mechanism is to complete software upgrading.
Preferably, the step S2 is specially:Main program more new state is monitored using watchdog circuit, when main program updates
During failure, the feeding-dog signal for being output to watchdog circuit stops, and watchdog circuit is forced to restart system.
Preferably, the step S1 is specially:In main program renewal process, renewal progress status is exported using main program
Mark and software update service device address to external memory storage.
Preferably, starting improper update mechanism described in step S4 is specially:Software is connected using monitoring subroutine is updated
Server is updated, and is downloaded from software update service device and updates software program firmware, to complete software upgrading.
Preferably, the renewal progress status mark includes starting to update status indication I, starts to download software document state
Mark II, download and complete and start to open after updating firmware condition mark III, firmware renewal completion status mark IV and software upgrading
Dynamic success status mark V, wherein, status indication I, II and III are renewal fail flag, and status indication IV and V are to be updated successfully
Mark.
On the other hand the technical solution adopted by the present invention is a kind of software upgrading monitoring system, including:Mark module, it is used for
The record renewal progress status mark in main program renewal process, renewal progress status mark is stored in external memory storage;
Module is restarted, for when main program updates failure, system to be restarted in pressure;Judge module, bootstrap is arranged on for utilizing
The renewal progress status mark in renewal monitoring subroutine reading external memory in boot, judges current renewal progress status
Mark whether to update fail flag;Exception processing module, for when judge module judged result for renewal fail flag when,
Start improper update mechanism to complete software upgrading.
Preferably, it is described to restart module for utilizing watchdog circuit monitoring main program more new state, when main program updates
During failure, the feeding-dog signal for being output to watchdog circuit stops, and watchdog circuit is forced to restart system.
Preferably, the mark module is used in main program renewal process, and renewal progress status is exported using main program
Mark and software update service device address to external memory storage.
Preferably, when the exception processing module is used for the judged result of judge module to update fail flag, using more
New monitoring subroutine connection software update service device, and downloaded from software update service device and update software program firmware, with
Complete software upgrading.
Preferably, the renewal progress status mark includes starting to update status indication I, starts to download software document state
Mark II, download and complete and start to open after updating firmware condition mark III, firmware renewal completion status mark IV and software upgrading
Dynamic success status mark V, wherein, status indication I, II and III are renewal fail flag, and status indication IV and V are to be updated successfully
Mark.
The present invention is by the record of software upgrading progress, judgement and control, overcoming the mistake of software upgrading in the prior art
Lose cause equipment can not normal operation technical problem, realize the condition monitoring and update abnormal state of software upgrading process
It is autonomous to repair.
Brief description of the drawings
Fig. 1 show a kind of schematic diagram of software upgrading monitoring method based on the embodiment of the present invention;
Fig. 2 show the framework schematic diagram of the system based on the embodiment of the present invention.
Embodiment
The present invention will be described with reference to embodiments.
Embodiment based on invention, a kind of software upgrading monitoring method as shown in Figure 1, including step:S1, in main program
Record renewal progress status mark in renewal process, renewal progress status mark is stored in external memory storage;The main journey
Sequence includes operating system and/or application software;S2, when main program updates failure, system is restarted in pressure;S3, using being arranged on
The renewal progress status mark in renewal monitoring subroutine reading external memory in bootstrap boot, judges current renewal
Progress status marks whether to update fail flag;S4, if step S3 judged results are when updating fail flag, then to start exception
Update mechanism is to complete software upgrading.
The step S2 is specially:Main program more new state is monitored using watchdog circuit, when main program updates failure,
The feeding-dog signal for being output to watchdog circuit stops, and watchdog circuit is forced to restart system.
The step S1 is specially:In main program renewal process, using main program export renewal progress status mark and
Software update service device address is to external memory storage.
The step S4 is specially:When step S3 judged results for renewal fail flag when, using updating monitoring subroutine
Software update service device is connected, and is downloaded from software update service device and updates software program firmware, to complete software upgrading.
The renewal progress status mark include starting updating status indication I, start to download software document status indication II,
Download and complete and start to start successfully after updating firmware condition mark III, firmware renewal completion status mark IV and software upgrading
Status indication V, wherein, status indication I, II and III are renewal fail flag, and status indication IV and V are to be updated successfully mark.
On the other hand the technical solution adopted by the present invention is a kind of software upgrading monitoring system, including:Mark module, it is used for
The record renewal progress status mark in main program renewal process, renewal progress status mark is stored in external memory storage;
Module is restarted, for when main program updates failure, system to be restarted in pressure;Judge module, bootstrap is arranged on for utilizing
The renewal progress status mark in renewal monitoring subroutine reading external memory in boot, judges current renewal progress status
Mark whether to update fail flag;Exception processing module, for when judge module judged result for renewal fail flag when,
Start improper update mechanism to complete software upgrading.
It is described to restart module for utilizing watchdog circuit monitoring main program more new state, when main program updates failure,
The feeding-dog signal for being output to watchdog circuit stops, and watchdog circuit is forced to restart system.
The mark module is used in main program renewal process, is marked using main program output renewal progress status and soft
Part updates server address to external memory storage.
When the exception processing module is used for the judged result of judge module to update fail flag, renewal monitoring is utilized
Program connects software update service device, and is downloaded from software update service device and update software program firmware, to complete software
Renewal.
The renewal progress status mark include starting updating status indication I, start to download software document status indication II,
Download and complete and start to start successfully after updating firmware condition mark III, firmware renewal completion status mark IV and software upgrading
Status indication V, wherein, status indication I, II and III are renewal fail flag, and status indication IV and V are to be updated successfully mark.
Specifically, the present embodiment is so that main program includes operating system and application software as an example, the structure of system as shown in Figure 2
Frame schematic diagram, including bootstrap boot layers, operating system layer and application software layer, wherein, it is soft that application software layer includes application
Part Pr, operating system layer include operating system Ps, and bootstrap boot layers include renewal monitoring subroutine Po;The framework bag of hardware
Internal memory, CPU, watchdog circuit and external memory storage are included, external memory storage ms is set a specific regions to store and (deposited using outside
Reservoir can avoid thinking that data to be saved disappears during system crash, and maintainability is more preferable) renewal progress status mark, and apply soft
Part Pr/ operating systems Ps is responsible for entering the renewal in the read-only ms of renewal progress status mark write-in ms, renewal monitoring subroutine Po
Spend status indication and the control instruction according to corresponding to mark output.
Pr/Ps is in escalation process by pre-defined renewal progress status mark write-in ms, if upgrading fails, ms
In renewal progress status can be in I or II or III states, while Pr/Ps will not export feeding-dog signal again, and watchdog circuit is just
It can force to restart system (restarting CPU);After system reboot, the renewal status indication of Po reading external memories, if more
New fail flag then illustrates upgrading failure, and Po specifically updates server by network connection, downloads and updates Pr/Ps firmwares text
Part, after renewal is completed, continue boot, program firmware is called in internal memory, normal starting device;When system normally starts,
Renewal status indication in Pr/Ps modifications ms is V;If Po reads renewal status indication to be updated successfully mark at the very start
Then illustrate that Pr/Ps is upgraded successfully, then normally start boot activation systems.
It is described above, simply presently preferred embodiments of the present invention, the invention is not limited in above-mentioned embodiment, as long as
It reaches the technique effect of the present invention with identical means, should all belong to protection scope of the present invention.In the protection model of the present invention
Its technical scheme and/or embodiment can have a variety of modifications and variations in enclosing.
Claims (10)
1. a kind of software upgrading monitoring method, it is characterised in that including step:
S1, the record renewal progress status mark in main program renewal process, renewal progress status mark is stored in outside and deposited
In reservoir;The main program includes operating system and/or application software;
S2, when main program updates failure, system is restarted in pressure;
S3, utilize the renewal progress status in the renewal monitoring subroutine reading external memory being arranged in bootstrap boot
Mark, judge that currently updating progress status marks whether to update fail flag;
S4, as step S3 judged results for renewal fail flag when, then start improper update mechanism to complete software upgrading.
2. a kind of software upgrading monitoring method according to claim 1, it is characterised in that the step S2 is specially:Profit
Main program more new state is monitored with watchdog circuit, when main program updates failure, is output to the feeding-dog signal of watchdog circuit
Stop, watchdog circuit is forced to restart system.
3. a kind of software upgrading monitoring method according to claim 1, it is characterised in that the step S1 is specially:
In main program renewal process, renewal progress status mark and software update service device address are exported to external storage using main program
Device.
4. a kind of software upgrading monitoring method according to claim 1, it is characterised in that start described in step S4 abnormal
Update mechanism is specially:Software update service device is connected using monitoring subroutine is updated, and is downloaded from software update service device
And software program firmware is updated, to complete software upgrading.
A kind of 5. software upgrading monitoring method according to any one of Claims 1-4, it is characterised in that it is described update into
Degree status indication includes starting to update status indication I, starts to download software document status indication II, downloads and complete and start to update
Start success status mark V after firmware condition mark III, firmware renewal completion status mark IV and software upgrading, wherein, state
Marking I, II and III, status indication IV and V are to be updated successfully mark for renewal fail flag.
A kind of 6. software upgrading monitoring system, it is characterised in that including:
Mark module, for the record renewal progress status mark in main program renewal process, renewal progress status mark is protected
It is stored in external memory storage;
Module is restarted, for when main program updates failure, system to be restarted in pressure;
Judge module, for utilizing in the renewal monitoring subroutine reading external memory being arranged in bootstrap boot more
New progress status mark, judge that currently updating progress status marks whether to update fail flag;
Exception processing module, for when judge module judged result for renewal fail flag when, start improper update mechanism with
Complete software upgrading.
7. a kind of software upgrading monitoring system according to claim 6, it is characterised in that described to restart module for utilizing
Watchdog circuit monitors main program more new state, and when main program updates failure, the feeding-dog signal for being output to watchdog circuit stops
Only, watchdog circuit is forced to restart system.
8. a kind of software upgrading monitoring system according to claim 6, it is characterised in that the mark module is used in master
In program renewal process, renewal progress status mark and software update service device address are exported to external storage using main program
Device.
9. a kind of software upgrading monitoring system according to claim 6, it is characterised in that the exception processing module is used for
The judged result of judge module for renewal fail flag when, using update monitoring subroutine connection software update service device, and from
Downloaded in software update service device and update software program firmware, to complete software upgrading.
A kind of 10. software upgrading monitoring system according to any one of claim 6~9, it is characterised in that it is described update into
Degree status indication includes starting to update status indication I, starts to download software document status indication II, downloads and complete and start to update
Start success status mark V after firmware condition mark III, firmware renewal completion status mark IV and software upgrading, wherein, state
Marking I, II and III, status indication IV and V are to be updated successfully mark for renewal fail flag.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711076754.5A CN107844312A (en) | 2017-11-06 | 2017-11-06 | A kind of software upgrading monitoring method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711076754.5A CN107844312A (en) | 2017-11-06 | 2017-11-06 | A kind of software upgrading monitoring method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107844312A true CN107844312A (en) | 2018-03-27 |
Family
ID=61681721
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711076754.5A Pending CN107844312A (en) | 2017-11-06 | 2017-11-06 | A kind of software upgrading monitoring method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107844312A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108958778A (en) * | 2018-08-27 | 2018-12-07 | 惠州Tcl移动通信有限公司 | A kind of mobile terminal NFC firmware upgrade method, mobile terminal and storage medium |
CN112631837A (en) * | 2020-12-30 | 2021-04-09 | 凌云光技术股份有限公司 | Method and system for storing engineering data |
CN113032242A (en) * | 2019-12-25 | 2021-06-25 | 阿里巴巴集团控股有限公司 | Data marking method and device, computer storage medium and electronic equipment |
CN116521201A (en) * | 2023-04-26 | 2023-08-01 | 如果新能源科技(江苏)股份有限公司 | Software upgrading method of battery pack and battery pack |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070244905A1 (en) * | 2006-04-14 | 2007-10-18 | Fujitsu Limited | Computer-readable recording medium containing application management program, and method and apparatus for application management |
US7584467B2 (en) * | 2003-03-17 | 2009-09-01 | Microsoft Corporation | Software updating system and method |
CN102073508A (en) * | 2009-11-20 | 2011-05-25 | Tcl集团股份有限公司 | Method and apparatus for upgrading terminals and software thereof |
CN104375844A (en) * | 2013-08-12 | 2015-02-25 | 中兴通讯股份有限公司 | Firmware upgrading method and device |
CN105335166A (en) * | 2015-12-04 | 2016-02-17 | 上海斐讯数据通信技术有限公司 | System of embedded device and remote upgrading method of embedded device |
CN105677501A (en) * | 2016-01-07 | 2016-06-15 | 烽火通信科技股份有限公司 | Refined process monitoring method and system based on watchdog in Linux system |
CN107315592A (en) * | 2017-07-01 | 2017-11-03 | 郭庭 | A kind of method for upgrading software and device |
-
2017
- 2017-11-06 CN CN201711076754.5A patent/CN107844312A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7584467B2 (en) * | 2003-03-17 | 2009-09-01 | Microsoft Corporation | Software updating system and method |
US20070244905A1 (en) * | 2006-04-14 | 2007-10-18 | Fujitsu Limited | Computer-readable recording medium containing application management program, and method and apparatus for application management |
CN102073508A (en) * | 2009-11-20 | 2011-05-25 | Tcl集团股份有限公司 | Method and apparatus for upgrading terminals and software thereof |
CN104375844A (en) * | 2013-08-12 | 2015-02-25 | 中兴通讯股份有限公司 | Firmware upgrading method and device |
CN105335166A (en) * | 2015-12-04 | 2016-02-17 | 上海斐讯数据通信技术有限公司 | System of embedded device and remote upgrading method of embedded device |
CN105677501A (en) * | 2016-01-07 | 2016-06-15 | 烽火通信科技股份有限公司 | Refined process monitoring method and system based on watchdog in Linux system |
CN107315592A (en) * | 2017-07-01 | 2017-11-03 | 郭庭 | A kind of method for upgrading software and device |
Non-Patent Citations (1)
Title |
---|
胡燕红等: "《计算机组装与维护项目教程》", 31 August 2015, 北京理工大学出版社 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108958778A (en) * | 2018-08-27 | 2018-12-07 | 惠州Tcl移动通信有限公司 | A kind of mobile terminal NFC firmware upgrade method, mobile terminal and storage medium |
CN108958778B (en) * | 2018-08-27 | 2022-03-25 | 惠州Tcl移动通信有限公司 | Mobile terminal NFC firmware upgrading method, mobile terminal and storage medium |
CN113032242A (en) * | 2019-12-25 | 2021-06-25 | 阿里巴巴集团控股有限公司 | Data marking method and device, computer storage medium and electronic equipment |
CN113032242B (en) * | 2019-12-25 | 2024-02-09 | 阿里巴巴集团控股有限公司 | Data marking method and device, computer storage medium and electronic equipment |
CN112631837A (en) * | 2020-12-30 | 2021-04-09 | 凌云光技术股份有限公司 | Method and system for storing engineering data |
CN112631837B (en) * | 2020-12-30 | 2024-04-12 | 凌云光技术股份有限公司 | Engineering data storage method and system |
CN116521201A (en) * | 2023-04-26 | 2023-08-01 | 如果新能源科技(江苏)股份有限公司 | Software upgrading method of battery pack and battery pack |
CN116521201B (en) * | 2023-04-26 | 2024-07-09 | 如果新能源科技(江苏)股份有限公司 | Software upgrading method of battery pack and battery pack |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11467818B2 (en) | Software update device, software update method, and software update system | |
US8930931B2 (en) | Information processing apparatus using updated firmware and system setting method | |
CN107844312A (en) | A kind of software upgrading monitoring method and system | |
CN101557583B (en) | Remote-updating and version-switching method of repeater equipment embedded software | |
CN105930236A (en) | Application program version returning method based on BMS Bootloaderupgrade | |
CN103688268B (en) | Vehicle unit and the method for operating vehicle unit | |
CN102073517A (en) | Upgrading and backup method and device for embedded system | |
CN105677398A (en) | Universal embedded computer software on-line upgrading method | |
US20090222650A1 (en) | Communication device and firmware update method thereof | |
CN110809755B (en) | electronic control system | |
CN103412561A (en) | Automobile controller refreshing method and device | |
KR100952585B1 (en) | Method and system for automatic recovery of an embedded operating system | |
US8036786B2 (en) | On-vehicle control apparatus | |
CN109634781B (en) | Double-area backup image system based on embedded program and starting method | |
CN112947977A (en) | Software online upgrading method and system | |
CN111552592A (en) | Double-backup starting method and system | |
CN105468390B (en) | BOOT online upgrading device and method | |
CN108345464A (en) | A kind of the startup method and Android vehicle device of Android system | |
CN111767172A (en) | Self-repairing method for set top box based on watchdog and bootloader | |
US11073893B2 (en) | System and method capable of remotely controlling electronic apparatus | |
CN112540780A (en) | System and method for realizing batch firmware upgrade of formation unmanned aerial vehicles | |
TWI723477B (en) | Electronic apparatus, system and method capable of remotely maintaining the operation of electronic apparatus | |
EP1298523A1 (en) | Combined weighing device and system using replaceable control program | |
CN105183580A (en) | Storage method and fault recovery method for bootstrap program, and devices | |
JP2005284902A (en) | Terminal device, control method and control program thereof, host device, control method and control program thereof, and method, system, and program for remote updating |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | 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 |
Application publication date: 20180327 |
|
RJ01 | Rejection of invention patent application after publication |