CN107451000A - A kind of system upgrade detection method - Google Patents

A kind of system upgrade detection method Download PDF

Info

Publication number
CN107451000A
CN107451000A CN201710533501.XA CN201710533501A CN107451000A CN 107451000 A CN107451000 A CN 107451000A CN 201710533501 A CN201710533501 A CN 201710533501A CN 107451000 A CN107451000 A CN 107451000A
Authority
CN
China
Prior art keywords
upgrading
system program
detection
program
detectability
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.)
Granted
Application number
CN201710533501.XA
Other languages
Chinese (zh)
Other versions
CN107451000B (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.)
Hangzhou C Sky Microsystems Co Ltd
Original Assignee
Hangzhou C Sky Microsystems 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 Hangzhou C Sky Microsystems Co Ltd filed Critical Hangzhou C Sky Microsystems Co Ltd
Priority to CN201710533501.XA priority Critical patent/CN107451000B/en
Publication of CN107451000A publication Critical patent/CN107451000A/en
Application granted granted Critical
Publication of CN107451000B publication Critical patent/CN107451000B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/008Reliability or availability analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The present invention provides a kind of system upgrade detection method, including:Step 1: the memory space of memory is provided, for storing upgrade information flag data;Step 2: carrying out the first upgrading of system program, and initialization assignment is carried out to upgrade information flag data;Step 3: restarting the system program by the first upgrading, whether decision-making system program has upgrading detectability;Step 4: if it is determined that system program has upgrading detectability, then loading system program;If it is determined that system program then carries out the second upgrading of system program without upgrading detectability.The present invention can force to be upgraded when current system program is without upgrading detectability, so as to improve the stability of system.

Description

A kind of system upgrade detection method
Technical field
The present invention relates to field of computer technology, more particularly to a kind of system upgrade detection method.
Background technology
At present, computer software technology and internet are growing, and the system software being installed on computer is usually used The mode of online upgrading is updated, i.e., downloads more new file from server to ensure system software in the case where connecting network In last state.
But can have a kind of such possibility in the system of online upgrading in built-in field, what is newly upgraded is System program is upgraded in the memory for being written to equipment after normally issue flow.But due to various latencies, new edition The system program is in fact likely to be abnormal, causes its upgrading detection that can not network, or even can not normally start.In machine Every time when restarting, program loader all can the load operating abnormal system program, and it is abnormal in fact that can not learn its operation , ultimately result in product and be in the abnormality that can not be repaired automatically, influence the usage experience of user.
Therefore, it is necessary to a kind of system upgrade detection method, it is ensured that existing system program on machine it is available and It can network and carry out upgrading detection.
The content of the invention
Whether system upgrade detection method provided by the invention, can may be used to existing system in view of the shortcomings of the prior art Networking upgrading is detected.
The present invention provides a kind of system upgrade detection method, including:
Step 1: the memory space of memory is provided, for storing upgrade information flag data;
Step 2: carrying out the first upgrading of system program, and initialization assignment is carried out to the upgrade information flag data;
Step 3: restarting the system program by the described first upgrading, judge whether the system program has upgrading inspection Survey ability;
If it is determined that Step 4: the system program has upgrading detectability, then the system program is loaded;If sentence The fixed system program then carries out the second upgrading of the system program without upgrading detectability.
Alternatively, the memory in above-mentioned steps one is nonvolatile memory.
Alternatively, the upgrade information flag data in above-mentioned steps one includes upgrading detection completion identification field, decision gate Limit field and judge number of attempt field.
Alternatively, the upgrading detection in above-mentioned steps one completes identification field for identifying whether the system program has Upgrade detectability.
Alternatively, carrying out initialization assignment in above-mentioned steps two to the upgrade information flag data is included the upgrading Detection is completed identification field and is set to false as, and the number of attempt field is arranged into zero.
Alternatively, above-mentioned steps threeway crosses whether the program loader judgement system program has upgrading detectability.
Alternatively, above-mentioned steps four include:If it is determined that the upgrading detection completion is identified as very, then the system is loaded Program, the upgrading detection completion is kept to be identified as very.
Alternatively, above-mentioned steps four include:If it is determined that the upgrading detection completion is identified as vacation, and the judgement is attempted Time field value is less than the decision threshold field value, then sentences described after number of attempt field adds 1, continue to load the system Program.
Alternatively, above-mentioned steps four include:If it is determined that the upgrading detection completion is identified as vacation, and the judgement is attempted Time field value is more than or equal to the decision threshold field value, then the system program is carried out into the second upgrading.
Alternatively, above-mentioned second upgrading is the pressure networking upgrading carried out by upgrading device.
System upgrade detection method provided in an embodiment of the present invention, current version can be judged by program loader is Whether system program has upgrading detectability, and under the conditions of satisfaction system can be forced to be upgraded, so as to improve system Stability, improve Consumer's Experience.
Brief description of the drawings
Fig. 1 is the memory partition structure schematic diagram of one embodiment of the invention;
Fig. 2 is the system upgrade detection method flow chart of one embodiment of the invention;
Fig. 3 is the step flow chart of the system upgrade detection method of one embodiment of the invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only Only it is part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill The every other embodiment that personnel are obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
In the embedded device of offer online upgrading (Over the Air Technology, OTA) function of prior art In, generally there are three parts in system:Program loader, upgrading device and system program.The present invention provides a kind of system upgrade inspection Survey method, for effectively solving the problems, such as that current machine system can not upgrade detection.
Fig. 1 shows the memory partition structure schematic diagram of one embodiment of the invention.What the present invention had except prior art Program loader, upgrading device and system program, also there is one section of space in the nonvolatile memory, store upgrade information Mark.As illustrated, the storage region of memory includes program loader 1, upgrading device 2, system program 3, upgrade information mark 4 Deng region, specifically, the upgrade information mark 4, which includes upgrading detection, completes the fields such as mark, decision threshold, number of attempt. Wherein, upgrading detection completion mark is used to judge whether the software of current system is normal, when upgrading detection completion is identified as very, then It is normal to judge current system software, and when upgrading detection completion is identified as vacation, then judgement current system software is present abnormal, and Continue to compare number of attempt field and decision threshold field.Decision threshold field has the natural numerical value of a determination, typically, In one embodiment of the invention, the value of the decision threshold field is 5.Number of attempt field is used for representing to attempt carry out system Upgrade the number of detection, specifically, number of attempt field can carry out from plus 1 computing and can be initialized to 0.
System upgrade detection method provided by the invention, it can be marked by above-mentioned upgrade information with reference to program loader Judgment rule judges whether current system program can use, if current system program is unavailable, can reenter upgrading Device, perform upgrading flow.
Fig. 2 shows the system upgrade detection method flow chart of one embodiment of the invention.As illustrated, first, system Start, judge that the true and false of mark is completed in upgrading detection in the module of program loader 1, if upgrading detection completion is identified as very, Then judge that current system software is normal, loading system program;If upgrading detection completion is identified as vacation, current attempt is judged Whether number reaches decision threshold.If the attempt to number is less than threshold value, then number of attempt is carried out from the computing for adding 1, and after Continuous loading system program;If the attempt to number is more than or equal to threshold value, then system program is determined as exception, loading upgrading device, Carry out forcing networking upgrading.
Specifically, carry out upgrading detection in the module of system program 3.After system program starts, automatic running upgrading inspection Brake.If system program upgrading detects successfully, upgrading detection completion is set to be identified as very;Optionally, if upgrading inspection Dendrometry loses, then keeps existing upgrading detection to complete the value of mark.
Specifically, carry out forcing networking upgrading in the module of device 2 is upgraded, when networking upgrades newest system program success When, initialize system upgrade information.Specifically, in one embodiment of the invention, system upgrade information initializing is set Each field of system upgrade information, typically, initialization upgrading detection completion are identified as vacation, and the value of initialization decision threshold field is 5, the value of initialization number of attempt field is 0.
Fig. 3 shows the step flow chart of the system upgrade detection method of one embodiment of the invention.As illustrated, S31 The memory space of offer nonvolatile memory is represented, for storing upgrade information flag data;S32 represents to carry out system program The first upgrading, and initialization assignment is carried out to upgrade information flag data;S33 represents to restart Whether system program, decision-making system have upgrading detectability;S34 is represented if described program loader decision-making system program has Upgrade detectability, then loading system program;If it is determined that system program then starts upgrading device and entered without upgrading detectability Row second upgrades.
System upgrade detection method provided in an embodiment of the present invention, current version can be judged by program loader is Whether system program has upgrading detectability, and can force system under conditions of system program is without upgrading detectability System is upgraded, and so as to improve the stability of system, improves Consumer's Experience.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, the change or replacement that can readily occur in, all should It is included within the scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (10)

  1. A kind of 1. system upgrade detection method, it is characterised in that including:
    Step 1: the memory space of memory is provided, for storing upgrade information flag data;
    Step 2: carrying out the first upgrading of system program, and initialization assignment is carried out to the upgrade information flag data;
    Step 3: restarting the system program by the described first upgrading, judge whether the system program has upgrading detection energy Power;
    If it is determined that Step 4: the system program has upgrading detectability, then the system program is loaded;If it is determined that System program is stated without upgrading detectability, then carries out the second upgrading of the system program.
  2. 2. according to the method for claim 1, it is characterised in that the memory in the step 1 is non-volatile memories Device.
  3. 3. according to the method for claim 1, it is characterised in that the upgrade information flag data in the step 1 includes rising Level detection completes identification field, decision threshold field and judges number of attempt field.
  4. 4. according to the method for claim 3, it is characterised in that the upgrading detection in the step 1 is completed identification field and used Whether there is upgrading detectability in the mark system program.
  5. 5. according to the method for claim 3, it is characterised in that the upgrade information flag data is entered in the step 2 Row initialization assignment is set to false as including the upgrading detection is completed into identification field, and the number of attempt field is arranged to Zero.
  6. 6. according to the method for claim 1, it is characterised in that the step 3 judges the system by program loader Whether program has upgrading detectability.
  7. 7. according to the method for claim 3, it is characterised in that the step 4 includes:If it is determined that the upgrading detection Completion is identified as very, then loads the system program, keeps the upgrading detection completion to be identified as very.
  8. 8. according to the method for claim 3, it is characterised in that the step 4 includes:If it is determined that the upgrading detection Completion is identified as vacation, and the judgement number of attempt field value is less than the decision threshold field value, then sentences trial time by described After digital section adds 1, continue to load the system program.
  9. 9. according to the method for claim 3, it is characterised in that the step 4 includes:If it is determined that the upgrading detection Completion is identified as vacation, and the judgement number of attempt field value is more than or equal to the decision threshold field value, then by the system Program carries out the second upgrading.
  10. 10. according to the method for claim 9, it is characterised in that second upgrading is the pressure carried out by upgrading device Networking upgrading.
CN201710533501.XA 2017-07-03 2017-07-03 System upgrade detection method Active CN107451000B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710533501.XA CN107451000B (en) 2017-07-03 2017-07-03 System upgrade detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710533501.XA CN107451000B (en) 2017-07-03 2017-07-03 System upgrade detection method

Publications (2)

Publication Number Publication Date
CN107451000A true CN107451000A (en) 2017-12-08
CN107451000B CN107451000B (en) 2021-03-02

Family

ID=60488160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710533501.XA Active CN107451000B (en) 2017-07-03 2017-07-03 System upgrade detection method

Country Status (1)

Country Link
CN (1) CN107451000B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150046915A1 (en) * 2013-08-06 2015-02-12 Salesforce.Com, Inc. Providing an improved web user interface framework for building web applications
CN105763944A (en) * 2014-12-15 2016-07-13 深圳Tcl数字技术有限公司 Modular TV and screen end upgrade method thereof
CN106155723A (en) * 2015-04-13 2016-11-23 腾讯科技(深圳)有限公司 The upgrade method of business application and device
CN106210877A (en) * 2016-08-17 2016-12-07 青岛海信电器股份有限公司 The method for upgrading system of intelligent television and device
CN106502747A (en) * 2016-11-02 2017-03-15 武汉斗鱼网络科技有限公司 A kind of method of application upgrade and mobile terminal
CN106598781A (en) * 2016-11-30 2017-04-26 惠州华阳通用电子有限公司 System software upgrading method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150046915A1 (en) * 2013-08-06 2015-02-12 Salesforce.Com, Inc. Providing an improved web user interface framework for building web applications
CN105763944A (en) * 2014-12-15 2016-07-13 深圳Tcl数字技术有限公司 Modular TV and screen end upgrade method thereof
CN106155723A (en) * 2015-04-13 2016-11-23 腾讯科技(深圳)有限公司 The upgrade method of business application and device
CN106210877A (en) * 2016-08-17 2016-12-07 青岛海信电器股份有限公司 The method for upgrading system of intelligent television and device
CN106502747A (en) * 2016-11-02 2017-03-15 武汉斗鱼网络科技有限公司 A kind of method of application upgrade and mobile terminal
CN106598781A (en) * 2016-11-30 2017-04-26 惠州华阳通用电子有限公司 System software upgrading method

Also Published As

Publication number Publication date
CN107451000B (en) 2021-03-02

Similar Documents

Publication Publication Date Title
US8423991B2 (en) Embedded network device and firmware upgrading method
CN105094927B (en) A kind of device firmware upgrade method and apparatus
CN103150231B (en) The method of computer booting and computer system
CN106020861B (en) A kind of the FOTA upgrade method and system of smartwatch
US20140310698A1 (en) Apparatus and method for upgrading firmware of mobile terminal
CN109062598A (en) A kind of safe OTA upgrade method and system
CN107168734A (en) A kind of embedded system upgrading backup method
CN103970564A (en) Automatic repairing and upgrading method of embedded operating system and embedded operating system with automatic repairing and upgrading functions
CN104281479A (en) Firmware upgrading method and device
CN109960523A (en) A kind of firmware upgrade method and device of embedded device
CN103136002A (en) Automatic upgrade control method based on UBoot instruction and system
CN108108193A (en) A kind of easy-to-use firmware upgrade method of safety and system
CN103577201A (en) Embedded dual system updating method and system
CN105354059A (en) Upgrade method and apparatus for controller of air-conditioner system
CN107566169A (en) A kind of firmware upgrade method and router based on openwrt
CN105573797A (en) Reversible off-line upgrade method and device for embedded system
CN105677409B (en) A kind of method for upgrading system and device
CN108205446A (en) Firmware restorative procedure and device
CN109783390A (en) PSU firmware promotion and demotion stability test method, apparatus, terminal and storage medium
CN109582332A (en) The method for upgrading system and device of internet video camera
CN109375953B (en) Operating system starting method and device
CN113238790B (en) Firmware program updating method and system based on SD card and EEPROM
CN102479124A (en) Test method
CN104932964A (en) Monitoring processing method and apparatus of computer functional programs
CN109766207A (en) Restoration methods, device, monitoring device and the storage medium of firmware remote upgrade

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
GR01 Patent grant
GR01 Patent grant