CN107153559A - The application program updating method of a kind of electronic equipment - Google Patents

The application program updating method of a kind of electronic equipment Download PDF

Info

Publication number
CN107153559A
CN107153559A CN201710355501.5A CN201710355501A CN107153559A CN 107153559 A CN107153559 A CN 107153559A CN 201710355501 A CN201710355501 A CN 201710355501A CN 107153559 A CN107153559 A CN 107153559A
Authority
CN
China
Prior art keywords
application program
electronic equipment
storage space
upgrading
mark position
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
CN201710355501.5A
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.)
Zhihui first (Guangzhou) science and Technology Co., Ltd.
Original Assignee
Beijing Pioneer Technology 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 Beijing Pioneer Technology Co Ltd filed Critical Beijing Pioneer Technology Co Ltd
Priority to CN201710355501.5A priority Critical patent/CN107153559A/en
Publication of CN107153559A publication Critical patent/CN107153559A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/4401Bootstrapping
    • 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/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides the application program updating method of a kind of electronic equipment, specific method is to pass through bootstrap loader backup application, and the application program after upgrading is actively called after application program updating, application program after upgrading is normally run, then the application program after upgrading is called in bootstrap loader after electronic equipment is restarted, application program after upgrading is not run normally, then bootstrap loader calls backup application after electronic equipment is restarted.The present invention proposes to upgrade successfully instruction voluntarily to judge application program updating success or not in the first mark position by bootstrap loader detection program storage space, and voluntarily call application program to judge whether application program is normally run after the upgrade, so as to realize that electronic equipment can carry out Autonomous test after application program updating, after upgrading failure, electronic equipment can carry out Backup and Restore.It is unsuccessfully the influence that electronic equipment operation is brought that this method, which can make electronic equipment voluntarily eliminate application program updating,.

Description

The application program updating method of a kind of electronic equipment
Technical field
The invention belongs to the application journey of electronic apparatus system safety upgrade technical field, more particularly to a kind of electronic equipment Sequence upgrade method.
Background technology
Application program is the chief component of software systems, refer to complete a certain or a few particular task and It is developed the software program run on software systems.The exploitation guardian of application program, as needed to it is functional enter Row completes or adds new function, now needs to upgrade to the application program installed in electronic equipment.
If running into staging error during application program updating, or upgrading data mistake, such as there is network failure, The problems such as electronic equipment outage, causes upgrading data receiver imperfect, or upgrading data are malicious code, will cause to rise Level failure, original application program will lose, so as to influence the normal operation of electronic equipment.
When causing application program not run due to upgrading failure, generally by manually importing application program updating again The method of the former application program of data or manual reversion recovers the operation of application program.This will influence user to electronic equipment It is normal use, spend a large amount of maintenance times, cause very big inconvenience.
The content of the invention
It is an object of the invention to provide the application program updating method of a kind of electronic equipment, to solve application program updating Fail and influence the problem of electronic equipment normally runs and needs manual reversion.
The invention provides the application program updating method of a kind of electronic equipment, comprise the steps:
S1, when the application program operation on electronic equipment, server sends upgrade command on electronic equipment, using journey First mark position of upgrade command write-in program storage area is notified user to restart electronic equipment by sequence;
After S2, electronic equipment are restarted, CPU performs bootstrap loader, and bootstrap loader detects program storage space The first mark position in store after upgrade command, any application program will not be called, at the same will in etc. application to be received The state of program upgrading data, and generate and application program identical backup application;
S3, bootstrap loader are received after application program updating end of data, and application program updating data are write into journey Sequence storage area;
S4, bootstrap loader are instructed to the second mark position write-in detection in program storage space, while actively calling Application program after upgrading, CPU starts to perform the application program after upgrading;
Application program after S5, upgrading is normally performed, then and second of the application program detection program storage space after upgrading Whether it is written into detection in mark position to instruct, being written into detection in the second mark position for detecting program storage space refers to Order, then upgrade successfully instruction to the first mark position write-in in program storage space, while reminding user that restarting electronics is set It is standby;Application program after upgrading is not performed normally, then will not be upgraded successfully to the first mark position write-in in program storage space Instruction;
After S6, electronic equipment restarting, bootstrap loader is run, bootstrap loader detects sequence storage area the One mark position, which is stored, upgrades successfully instruction, then electronic equipment restart rear bootstrap loader call upgrading after application journey Sequence, CPU performs the application program after upgrading;The first mark position that bootstrap loader detects program storage space is not stored Instruction is upgraded successfully, then electronic equipment restarts rear bootstrap loader and calls backup application, and CPU performs back-up application journey Sequence.
Further, bootstrap loader detects first mark position in program storage space and stores and upgrade successfully Instruction, then delete backup application.
Further, bootstrap loader is not detected by first mark position in program storage space and stores and escalate into Work(is instructed, then empties program storage space.
Further, bootstrap loader detects first mark position in program storage space and stores upgrading and refer to Order, then empty program storage space prior to receiving application program updating data.
Further, bootstrap loader each run, which can be all detected in first mark position in program storage space, is It is no to store instruction and command content.
Further, application program each run can all detect whether stored up in second mark position in program storage space There are instruction and command content.
Further, application program after upgrading in step S5 is not performed normally, then the electronic equipment in step S6 Restart the restarting electronic equipment voluntarily for user next time.
The above-mentioned technical proposal of the invention, compared with prior art, because the present invention is proposed by guiding loading journey In first mark position in sequence detection program storage space upgrade successfully instruction come voluntarily judge application program updating success with It is no, and voluntarily call application program to judge whether application program is normally run after the upgrade, so as to realize in application program Update after failure, electronic equipment can carry out the Backup and Restore and Autonomous test of application program.This method can make electronic equipment It is unsuccessfully the influence that electronic equipment operation is brought voluntarily to eliminate application program updating.
Brief description of the drawings
Fig. 1 is the application program updating method flow diagram of an embodiment of the present invention;
Fig. 2 is the application program updating success flow chart of an embodiment of the present invention;
Fig. 3 is the application program updating failure procedures figure of an embodiment of the present invention.
Embodiment
Refering to shown in Fig. 1 and Fig. 2, the first embodiment of the present invention is application program updating successful implementation example, and step is as follows:
S1, when the application program operation on electronic equipment, server sends upgrade command on electronic equipment, using journey First mark position of upgrade command write-in program storage area is notified user to restart electronic equipment by sequence;
After S2, electronic equipment are restarted, CPU performs bootstrap loader, and bootstrap loader detects program storage space The first mark position in store after upgrade command, any application program will not be called, at the same will in etc. application to be received The state of program upgrading data, and generate and application program identical backup application;
S3, bootstrap loader are received after application program updating end of data, by new application upgrading data write-in Program storage space;
S4, bootstrap loader are instructed to the second mark position write-in detection in program storage space, while actively calling Application program after upgrading, CPU starts to perform the application program after upgrading;
Application program after S5, upgrading is normally performed, second mark in the application program detection program storage space after upgrading It is written into will position in detection instruction, the second mark position for detecting program storage space and is written into detection instruction, Xiang Cheng The first mark position write-in of sequence storage area upgrades successfully instruction, while reminding user's restarting electronic equipment;
After S6, electronic equipment restarting, bootstrap loader is run, bootstrap loader detects program storage space The first mark position store and upgrade successfully instruction, bootstrap loader calls the application program after upgrading, and CPU performs upgrading Application program afterwards, while deleting backup application.
At least there is the technical characteristic distinguished below with prior art in above-described embodiment.In the above embodiment of the present invention In, application program is by the first mark position of upgrade command write-in program storage area in step 1, and in step 2 by guiding Upgrade command whether is stored in first mark position in loading procedure detection program storage space, and then with this determination next step Operation, have the advantages that upgrading intelligence without manual intervention.In the above embodiment of the present invention, generation is with answering in step 2 With program identical backup application, the application program of the backup can be used as the normal fortune of backup when device upgrade fails OK.Prevent because machine is disabled caused by upgrading failure.In addition, detection instructs, upgraded successfully the use of instruction can make program Automatic upgrading, automatic detection are completed, without manually being intervened.
Refering to shown in Fig. 1 and Fig. 3, the second embodiment of the present invention fails for application program updating, and electronic equipment operation is standby Part application program embodiment, step is as follows:
S1, when the application program normal work on electronic equipment, server sends upgrade command on electronic equipment, should With program by the first mark position of upgrade command write-in program storage area, and user is notified to restart electronic equipment;
After S2, electronic equipment are restarted, CPU performs bootstrap loader, and bootstrap loader detects program storage space The first mark position in store after upgrade command, any application program will not be called, at the same will in etc. application to be received The state of program upgrading data, and generate and application program identical backup application;
S3, bootstrap loader are received after application program updating end of data, by new application upgrading data write-in Program storage space;
S4, bootstrap loader are to empty the second mark position write-in detection instruction of program storage, while actively calling liter Application program after level, CPU starts to perform the application program after upgrading;
Application program after S5 upgradings is not performed normally, then will not write and rise to first mark position in program storage space Level is successfully instructed;
After S6, electronic equipment restarting, bootstrap loader detects first mark position in program storage space not Store and upgrade successfully instruction, then electronic equipment restarts rear bootstrap loader and calls backup application, and CPU performs backup should With program, and delete application program update data.
If in escalation process, the more new procedures that electronic equipment is received are rogue program, then the program can not be normal Operation.Destroyed by the way that electronic equipment can be avoided to be infected in program escalation process by rogue program the step of S5 and S6.

Claims (7)

1. the application program updating method of a kind of electronic equipment, it is characterised in that:Realize that step includes:
S1, when the application program operation on electronic equipment, server sends upgrade command on electronic equipment, and application program will First mark position of upgrade command write-in program storage area, and notify user to restart electronic equipment;
After S2, electronic equipment are restarted, CPU performs bootstrap loader, and bootstrap loader detects the of program storage space Stored in one mark position after upgrade command, any application program will not be called, at the same will in etc. application program to be received The state for data of upgrading, and generate and application program identical backup application;
S3, bootstrap loader are received after application program updating end of data, and application program updating data writing program is stored up Deposit space;
S4, bootstrap loader are instructed to the second mark position write-in detection in program storage space, while actively calling upgrading Application program afterwards, CPU starts to perform the application program after upgrading;
Application program after S5, upgrading is normally performed, then second mark in the application program detection program storage space after upgrading Whether it is written into position in detection instruction, the second mark position for detecting program storage space and is written into detection instruction, then Instruction is upgraded successfully to the first mark position write-in in program storage space, while reminding user's restarting electronic equipment;Rise Application program after level is not performed normally, then will not upgrade successfully instruction to the first mark position write-in in program storage space;
After S6, electronic equipment restarting, bootstrap loader is run, bootstrap loader detects the of program storage space One mark position, which is stored, upgrades successfully instruction, then electronic equipment restart rear bootstrap loader call upgrading after application journey Sequence, CPU performs the application program after upgrading;The first mark position that bootstrap loader detects program storage space is not stored Instruction is upgraded successfully, then electronic equipment restarts rear bootstrap loader and calls backup application, and CPU performs back-up application journey Sequence.
2. the application program updating method of a kind of electronic equipment according to claim 1, it is characterised in that:In step s 6, draw Lead loading procedure and detect first mark position in program storage space and store and upgrade successfully instruction, then delete back-up application journey Sequence.
3. the application program updating method of a kind of electronic equipment according to claim 1, it is characterised in that:Bootstrap loader is not Detect the mark position of sequence storage area first and store and upgrade successfully instruction, then empty program storage space.
4. the application program updating method of a kind of electronic equipment according to claim 3, it is characterised in that:In step s 6, draw Lead loading procedure and detect first mark position in program storage space and store upgrade command, then empty program storage space first In reception application program updating data.
5. the application program updating method of a kind of electronic equipment according to claim 1, it is characterised in that:In step sl, draw Leading loading procedure each run can all detect instruction whether is stored in first mark position in program storage space and is instructed Content.
6. the application program updating method of a kind of electronic equipment according to claim 1, it is characterised in that:Application program is transported every time Row can all detect instruction and command content whether are stored in second mark position in program storage space.
7. the application program updating method of a kind of electronic equipment according to claim 1, it is characterised in that:When upgrading in step S5 Application program afterwards is not performed normally, then the electronic equipment in step S6 restarts the restarting electronics for user next time voluntarily Equipment.
CN201710355501.5A 2017-05-19 2017-05-19 The application program updating method of a kind of electronic equipment Pending CN107153559A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710355501.5A CN107153559A (en) 2017-05-19 2017-05-19 The application program updating method of a kind of electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710355501.5A CN107153559A (en) 2017-05-19 2017-05-19 The application program updating method of a kind of electronic equipment

Publications (1)

Publication Number Publication Date
CN107153559A true CN107153559A (en) 2017-09-12

Family

ID=59794339

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710355501.5A Pending CN107153559A (en) 2017-05-19 2017-05-19 The application program updating method of a kind of electronic equipment

Country Status (1)

Country Link
CN (1) CN107153559A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108055583A (en) * 2017-12-28 2018-05-18 深圳市九洲电器有限公司 set-top box automatic recovery method and system
CN108228212A (en) * 2017-12-28 2018-06-29 宁德时代新能源科技股份有限公司 Program updating method and device
CN108459870A (en) * 2018-02-07 2018-08-28 重庆通畅无忧信息技术有限公司 A kind of filling machine upgrade method and device
CN109189445A (en) * 2018-10-12 2019-01-11 武汉微智创大科技有限公司 A kind of method of internet of things equipment program upgrading
CN109445815A (en) * 2018-10-15 2019-03-08 江苏恒宝智能系统技术有限公司 A kind of smart card and its application upgrade method
CN109614129A (en) * 2018-11-19 2019-04-12 深圳市广和通无线股份有限公司 The alternating upgrade method of multiloop loop system
CN110609692A (en) * 2019-08-06 2019-12-24 厦门科灿信息技术有限公司 Data acquisition module, firmware upgrading method thereof and storage medium
CN112527371A (en) * 2020-12-17 2021-03-19 杭州海康威视数字技术股份有限公司 Boot loader upgrading method and device, electronic equipment and storage medium
CN112612498A (en) * 2020-12-30 2021-04-06 深圳市九洲电器有限公司 Embedded equipment upgrading method and embedded equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572206A (en) * 2015-01-14 2015-04-29 厦门为那通信科技有限公司 Application program self updating and backup recovery method
CN105404533A (en) * 2015-11-09 2016-03-16 珠海格力电器股份有限公司 Program upgrading method and apparatus
CN105511929A (en) * 2015-12-31 2016-04-20 青岛高校信息产业股份有限公司 Remote wireless upgrading method for equipment
CN105912356A (en) * 2016-03-31 2016-08-31 武汉光迅科技股份有限公司 Optical module firmware program online upgrade method supporting version fallback
US20160274900A1 (en) * 2015-03-20 2016-09-22 ZeroTurnaround AS System and Method for Fast Restarting of User Apps

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572206A (en) * 2015-01-14 2015-04-29 厦门为那通信科技有限公司 Application program self updating and backup recovery method
US20160274900A1 (en) * 2015-03-20 2016-09-22 ZeroTurnaround AS System and Method for Fast Restarting of User Apps
CN105404533A (en) * 2015-11-09 2016-03-16 珠海格力电器股份有限公司 Program upgrading method and apparatus
CN105511929A (en) * 2015-12-31 2016-04-20 青岛高校信息产业股份有限公司 Remote wireless upgrading method for equipment
CN105912356A (en) * 2016-03-31 2016-08-31 武汉光迅科技股份有限公司 Optical module firmware program online upgrade method supporting version fallback

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108055583A (en) * 2017-12-28 2018-05-18 深圳市九洲电器有限公司 set-top box automatic recovery method and system
CN108228212A (en) * 2017-12-28 2018-06-29 宁德时代新能源科技股份有限公司 Program updating method and device
CN108055583B (en) * 2017-12-28 2020-08-07 深圳市九洲电器有限公司 Automatic recovery method and system for set top box
CN108459870A (en) * 2018-02-07 2018-08-28 重庆通畅无忧信息技术有限公司 A kind of filling machine upgrade method and device
CN109189445A (en) * 2018-10-12 2019-01-11 武汉微智创大科技有限公司 A kind of method of internet of things equipment program upgrading
CN109189445B (en) * 2018-10-12 2022-03-15 武汉微智创大科技有限公司 Method for upgrading program of equipment of Internet of things
CN109445815B (en) * 2018-10-15 2019-11-26 恒宝股份有限公司 A kind of smart card and its application upgrade method
CN109445815A (en) * 2018-10-15 2019-03-08 江苏恒宝智能系统技术有限公司 A kind of smart card and its application upgrade method
CN109614129A (en) * 2018-11-19 2019-04-12 深圳市广和通无线股份有限公司 The alternating upgrade method of multiloop loop system
CN110609692A (en) * 2019-08-06 2019-12-24 厦门科灿信息技术有限公司 Data acquisition module, firmware upgrading method thereof and storage medium
CN112527371A (en) * 2020-12-17 2021-03-19 杭州海康威视数字技术股份有限公司 Boot loader upgrading method and device, electronic equipment and storage medium
CN112527371B (en) * 2020-12-17 2024-06-04 杭州海康威视数字技术股份有限公司 Boot loader upgrading method and device, electronic equipment and storage medium
CN112612498A (en) * 2020-12-30 2021-04-06 深圳市九洲电器有限公司 Embedded equipment upgrading method and embedded equipment

Similar Documents

Publication Publication Date Title
CN107153559A (en) The application program updating method of a kind of electronic equipment
CN102117234B (en) Method for recovering original software by mobile terminal in software upgrading failure
US7516361B2 (en) Method for automatic checkpoint of system and application software
US20070074201A1 (en) Method and system for updating software and computer readable recording medium storing the method
EP2375323A1 (en) Firmware image update and management
CN101656627A (en) Method and device for restoring main program and network equipment
CN103036706A (en) Local processing method of application upgrading abnormity
CN111182033B (en) Method and equipment for restoring switch
CN103713925A (en) Method and device for avoiding service interruption of storage array in upgrading process
CN108345464A (en) A kind of the startup method and Android vehicle device of Android system
CN111478796A (en) Cluster capacity expansion exception handling method for AI platform
CN107423087A (en) A kind of application program updating method that server can monitor
CN107153569B (en) Processing method and device for read-write failure of virtual machine
CN113032183A (en) System management method, device, computer equipment and storage medium
CN110708203A (en) Fault tolerance method, device and equipment
CN106204031A (en) card application processing method and device
US7228469B2 (en) Portable information device, method for recovering data in portable information device, and computer product
CN104866380A (en) Method and device for processing state transition of cluster management system
KR20160006495A (en) Booting image restoration system and restoration method thereof
CN116991710B (en) Automatic test method and system, electronic equipment and storage medium thereof
CN114064086B (en) Multi-stage processor system and upgrading method thereof
CN108008965A (en) A kind of system firmware upgrade mechanism of middle and high end storage
CN106412971A (en) Exception processing method and device
CN110515642B (en) Application program upgrading method and system
CN114064508B (en) Mobile terminal software testing method and system based on group control technology

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
TA01 Transfer of patent application right

Effective date of registration: 20180425

Address after: 150006 No. 130, prosperous street, Nangang District, Harbin, Heilongjiang.

Applicant after: Hou Mingxin

Address before: 101149 Tongzhou District, Beijing Guanghua Road 5, 2, 2, 213 rooms.

Applicant before: Beijing Pioneer Technology Co., Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180524

Address after: 511458 106, No. 1, Feng Ze Road, Nansha District, Guangzhou, Guangdong (X1301-C4628)

Applicant after: Zhihui first (Guangzhou) science and Technology Co., Ltd.

Address before: 150006 No. 130, prosperous street, Nangang District, Harbin, Heilongjiang.

Applicant before: Hou Mingxin

TA01 Transfer of patent application right
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170912

WD01 Invention patent application deemed withdrawn after publication