CN107423087A - A kind of application program updating method that server can monitor - Google Patents

A kind of application program updating method that server can monitor Download PDF

Info

Publication number
CN107423087A
CN107423087A CN201710357370.4A CN201710357370A CN107423087A CN 107423087 A CN107423087 A CN 107423087A CN 201710357370 A CN201710357370 A CN 201710357370A CN 107423087 A CN107423087 A CN 107423087A
Authority
CN
China
Prior art keywords
application program
server
program updating
instruction
time
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
CN201710357370.4A
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 CN201710357370.4A priority Critical patent/CN107423087A/en
Publication of CN107423087A publication Critical patent/CN107423087A/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

Landscapes

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

Abstract

The invention provides a kind of application program updating method that server can monitor, specific method is that server sends upgrade command to equipment, application program prompts user's restarting equipment after receiving upgrade command, equipment, which restarts rear bootstrap loader and receives to send to server after application program updating data completely, finishes receiving instruction, server receive at the appointed time finish receiving instruction then upgrading data finish receiving, application program update complete;Server do not receive at the appointed time finish receiving instruction then server resend upgrade command.The present invention can make server monitor the escalation process of the application program during application program updating, the server will resend application program updating instruction in time if exception occurs in escalation process, and then enable applications to again upgrade in time, to avoid influenceing the situation of equipment normal operation because of application program updating failure.

Description

A kind of application program updating method that server can monitor
Technical field
The present invention relates to a kind of application program updating method, application program updating that more particularly to a kind of server can monitor 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 is completed or adds new function, now needs to upgrade the application program installed in electronic equipment.
If running into staging error during application program updating, or the mistake of upgrading data, 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.
In legacy application escalation process, server will be no longer participate in after application program updating data are sent completely The escalation process of application program, and application program connects because network interruption or the reasons such as equipment is out of service cause to upgrade data Receive it is imperfect, or due to staging error cause upgrading after application program may not operate, and server due to it is undetectable should Upgrade command can not be sent to equipment again in time with the escalation process of program, so as to influence the normal operation of equipment.
The content of the invention
The technical problem to be solved in the present invention, it is to provide a kind of application program updating method that server can monitor, its Solution application program updating fails and server can not resend upgrade command in time and then influence asking for equipment normal operation Topic.
What the present invention was realized in:A kind of application program updating method that server can monitor, methods described are included such as Lower step:
S1, when the application program operation in equipment, server sends upgrade command in equipment, and application program receives institute Upgrade command is stated by the first mark position of upgrade command write-in program storage area, and notifies user to restart equipment;
After S2, equipment are restarted, CPU performs bootstrap loader, and the bootstrap loader detects the upgrade command Afterwards, will not call any application program, at the same by etc. application program updating data to be received state;
S3, the server have sent and have been sent instruction to equipment after the whole application program updating data, After the bootstrap loader receives the application program updating data completely, the application program updating data are write into institute Program storage space is stated, while instruction is finished receiving described in the bootstrap loader to server transmission;The guiding Loading procedure does not receive the application program updating data completely, then does not finish receiving instruction to described in server transmission;
S4, the server do not receive described connect in the first setting time being sent described in having sent after instruction Instruction is harvested into, then jumps back to step S1 and re-executes;The server is sending the whole application program updating data Instruction is finished receiving described in being received in the first setting time afterwards, then performs step S5;
S5, the bootstrap loader are adjusted after the application program updating data are write into described program storage area With the application program after upgrading.
Further, also include in step s 5:
After S51, the bootstrap loader call the application program after the upgrading, the application program after the upgrading is just Often operation, then run to server transmission and successfully instruct;The non-normal operation of application program after the upgrading, then not to institute Described run of server transmission is stated successfully to instruct;
S52, the server do not receive described in the second setting time after instruction is finished receiving described in having received Run and successfully instruct, then jump back to step S1 and re-execute;The server received it is described finish receiving after instruction the Receive described run in two setting times successfully to instruct, then the application program updating is completed.
Further, first setting time is more than described in bootstrap loader transmission and finished receiving needed for instruction Run time and being added the time required to network transmission, the network transmission required time include sending transmission time and receive biography The defeated time.First setting time is smaller, and the time used in this method is about few.
Further, first setting time is less than 10 minutes.
Further, first setting time is less than 30 seconds.
Further, second setting time is more than the application program after the upgrading of bootstrap loader calling Run with the application program after the upgrading and send the successfully run time needed for instruction of running and taken with network transmission Between addition, include sending transmission time the time required to the network transmission and receive transmission time.Second setting time Smaller, the time used in this method is about few.
Further, second setting time is less than 10 minutes.
Further, second setting time is less than 30 seconds.
The invention has the advantages that:The present invention can be such that server monitors during application program updating described to apply journey The escalation process of sequence, the ascending series of the application program specifically whether can be completely received with monitoring device according to this and after the upgrading Application program whether normal operation, if the server finds that the equipment does not receive the liter of the application program completely Application program after DBMS or upgrading does not have normal operation, then the server will resend application program updating in time Instruction, and then enables applications to again upgrade in time, normal to avoid influenceing equipment because of application program updating failure The situation of operation.
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 method flow diagram of another embodiment of the present invention;
Fig. 3 is the application program updating success flow chart of an embodiment of the present invention;
Fig. 4 is the application program updating failure procedures figure of an embodiment of the present invention;
Fig. 5 is the application program updating failure procedures figure of another embodiment of the present invention.
Embodiment
Refering to shown in Fig. 1, Fig. 2 and Fig. 3, the first embodiment of the present invention is application program updating successful implementation example, step It is as follows:
S1, when the application program operation in equipment, server sends upgrade command in equipment, and application program receives institute Upgrade command is stated by the first mark position of upgrade command write-in program storage area, and notifies user to restart equipment;
After S2, equipment are restarted, CPU performs bootstrap loader, and the bootstrap loader detects the upgrade command Afterwards, will not call any application program, at the same by etc. application program updating data to be received state;
S3, the server have sent and have been sent instruction to equipment after the whole application program updating data, After the bootstrap loader receives the application program updating data completely, the application program updating data are write into institute Program storage space is stated, while the bootstrap loader sends to the server and finishes receiving instruction.The guiding loading Program, which receives, described to be sent instruction and then illustrates that the application program updating data are fully received;
S4, the server receive in the first setting time after having sent the whole application program updating data It is described to finish receiving instruction, perform step S5;
S5, the bootstrap loader are adjusted after the application program updating data are write into described program storage area With the application program after the upgrading;
After S6, the bootstrap loader call the application program after the upgrading, the application program after the upgrading is just Often operation, run to server transmission and successfully instruct;
S7, the server receive the operation in the second setting time after instruction is finished receiving described in having received Success instructs.The application program updating is completed.
The present invention can make server monitor the escalation process of the application program during application program updating, specifically may be used It is whether normal so that whether monitoring device completely receives application program of the ascending series of the application program according to this and after the upgrading Operation, if after the server finds upgrading data or the upgrading that the equipment does not receive the application program completely Application program does not have normal operation, then the server will resend application program updating instruction in time, and then make to apply journey Sequence can upgrade again in time, to avoid influenceing the situation of equipment normal operation because of application program updating failure.
Refering to shown in Fig. 1, Fig. 2 and Fig. 4, the second embodiment of the present invention is not all receptions during application program updating Upgrade data and upgrade failure, server resends upgrade command embodiment, and step is as follows:
S1, when the application program operation in equipment, server sends upgrade command in equipment, and application program receives institute Upgrade command is stated by the first mark position of upgrade command write-in program storage area, and notifies user to restart equipment;
After S2, equipment are restarted, CPU performs bootstrap loader, and the bootstrap loader detects the upgrade command Afterwards, will not call any application program, at the same by etc. application program updating data to be received state;
S3, the server have sent and have been sent instruction to equipment after the whole application program updating data, The bootstrap loader does not receive the application program updating data completely, does not receive and is sent instruction, not to described Server sends and finishes receiving instruction;
S4, the server do not receive described connect in the first setting time being sent described in having sent after instruction Instruction is harvested into, server resends upgrade command.
Refering to shown in Fig. 1, Fig. 2 and Fig. 5, the third embodiment of the present invention is answering after upgrading during application program updating Do not performed normally with program, server resends upgrading DATA Example, and step is as follows:
S1, when the application program operation in equipment, server sends upgrade command in equipment, and application program receives institute Upgrade command is stated by the first mark position of upgrade command write-in program storage area, and notifies user to restart equipment;
After S2, equipment are restarted, CPU performs bootstrap loader, and the bootstrap loader detects the upgrade command Afterwards, will not call any application program, at the same by etc. application program updating data to be received state;
S3, the server have sent and have been sent instruction to equipment after the whole application program updating data, After the bootstrap loader receives the application program updating data completely, the application program updating data are write into institute Program storage space is stated, while the bootstrap loader sends to the server and finishes receiving instruction.The guiding loading Program, which receives, described to be sent instruction and then illustrates that the application program updating data are fully received;
Server described in S4 receives in the first setting time after having sent the whole application program updating data It is described to finish receiving instruction, perform step S5;
S5, the bootstrap loader are adjusted after the application program updating data are write into described program storage area With the application program after the upgrading;
After S6, the bootstrap loader call the application program after the upgrading, the application program after the upgrading is not Normal operation, do not run to server transmission and successfully instruct;
S7, the server do not receive the fortune in the second setting time after instruction is finished receiving described in having received Go and successfully instruct, the server resends upgrade command.
It is below the application program updating method of another embodiment of the invention:
S1, when the application program operation in equipment, server sends upgrade command in equipment, and application program receives institute Upgrade command is stated by the first mark position of upgrade command write-in program storage area, and notifies user to restart equipment, and Generation and application program identical backup application;
After S2, equipment are restarted, CPU performs bootstrap loader, and the bootstrap loader detects the upgrade command Afterwards, will not call any application program, at the same by etc. application program updating data to be received state;
S3, the server have sent and have been sent instruction to equipment after the whole application program updating data, After the bootstrap loader receives the application program updating data completely, the application program updating data are write into institute Program storage space is stated, while the bootstrap loader sends to the server and finishes receiving instruction.The guiding loading Program, which receives, described to be sent instruction and then illustrates that the application program updating data are fully received;
S4, the server receive in the first setting time after having sent the whole application program updating data It is described to finish receiving instruction, perform step S5;
S5, the bootstrap loader draw after the application program updating data are write into described program storage area Second mark position write-in detection instruction of the loading procedure to program storage space is led, while actively calls the application journey after upgrading Sequence, CPU start to perform the application program after upgrading;
Application program after S6, upgrading normally performs, then and second of the application program detection program storage space after upgrading Detection instruction whether is written into mark position, detects that being written into detection in second mark position in program storage space refers to Order, then the first mark position write-in to program storage space upgrades successfully instruction, while reminds user to restart electronics and set It is standby;Application program after upgrading does not perform normally, then the first mark position write-in that will not be to program storage space upgrades successfully Instruction;
After S7, electronic equipment restarting, bootstrap loader is run, bootstrap loader detects program storage space The first mark position store and upgrade successfully instruction, then electronic equipment restarts rear bootstrap loader and calls the application after upgrading Program, CPU perform the application program after upgrading, run to server transmission and successfully instruct;Bootstrap loader detects First mark position in program storage space, which does not store, upgrades successfully instruction, then electronic equipment is restarted rear bootstrap loader and adjusted With backup application, CPU performs backup application.
S8, the server receive the operation in the second setting time after instruction is finished receiving described in having received Success instructs.The application program updating is completed.
The technical characteristic distinguished below with prior art at least be present 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 in next step Operation, have upgrading intelligence without manual intervention the advantages of.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 when device upgrade fails as the normal fortune of backup OK.Prevent that machine disables 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.

Claims (8)

1. a kind of application program updating method that server can monitor, it is characterised in that realize that step includes:
S1, when the application program operation in equipment, server sends upgrade command in equipment, and application program receives the liter First mark position of upgrade command write-in program storage area is notified user to restart equipment by level instruction;
After S2, equipment are restarted, CPU performs bootstrap loader, after the bootstrap loader detects the upgrade command, no Can call any application program, at the same by etc. application program updating data to be received state;
S3, the server have sent and have been sent instruction to equipment after the whole application program updating data, described After bootstrap loader receives the application program updating data completely, the application program updating data writing program is stored up Space is deposited, while the bootstrap loader sends to the server and finishes receiving instruction;The bootstrap loader is not complete The application program updating data are received entirely, then do not finish receiving instruction to described in server transmission;
S4, the server do not receive described received in the first setting time being sent described in having sent after instruction Into instruction, then jump back to step S1 and re-execute;The server is after the whole application program updating data have been sent Instruction is finished receiving described in being received in first setting time, then performs step S5;
S5, the bootstrap loader call institute after the application program updating data are write into described program storage area The application program after upgrading is stated, the application program updating is completed.
2. the application program updating method that a kind of server according to claim 1 can monitor, it is characterised in that in step Also include in S5:
After S51, the bootstrap loader call the application program after the upgrading, the application program after the upgrading is normally transported OK, then send to run to the server and successfully instruct;The non-normal operation of application program after the upgrading, then not to the clothes Business device, which sends to run, successfully to be instructed;
S52, the server do not receive the operation in the second setting time after instruction is finished receiving described in having received Success instructs, then jumps back to step S1 and re-execute;The server is set in second finished receiving described in having received after instructing Described run is received in fixing time successfully to instruct, then the application program updating is completed.
3. the application program updating method that can be monitored according to a kind of server described in claim 1, it is characterised in that:It is described First setting time, which is more than, finishes receiving run time needed for instruction and network transmission institute described in bootstrap loader transmission The addition to take time, the network transmission required time include sending transmission time and receive transmission time.
4. the application program updating method that can be monitored according to a kind of server described in claim 3, it is characterised in that:It is described First setting time is less than 10 minutes.
5. the application program updating method that can be monitored according to a kind of server described in claim 3, it is characterised in that:It is described First setting time is less than 30 seconds.
6. the application program updating method that can be monitored according to a kind of server described in claim 2, it is characterised in that:It is described Second setting time is more than the bootstrap loader and calls the application program after the upgrading and the application journey after the upgrading Sort run and send it is described run successfully instruction needed for run time and being added the time required to network transmission, the network transmission Required time includes sending transmission time and receives transmission time.
7. the application program updating method that can be monitored according to a kind of server described in claim 6, it is characterised in that:It is described Second setting time is less than 10 minutes.
8. the application program updating method that can be monitored according to a kind of server described in claim 6, it is characterised in that:It is described Second setting time is less than 30 seconds.
CN201710357370.4A 2017-05-19 2017-05-19 A kind of application program updating method that server can monitor Pending CN107423087A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710357370.4A CN107423087A (en) 2017-05-19 2017-05-19 A kind of application program updating method that server can monitor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710357370.4A CN107423087A (en) 2017-05-19 2017-05-19 A kind of application program updating method that server can monitor

Publications (1)

Publication Number Publication Date
CN107423087A true CN107423087A (en) 2017-12-01

Family

ID=60425961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710357370.4A Pending CN107423087A (en) 2017-05-19 2017-05-19 A kind of application program updating method that server can monitor

Country Status (1)

Country Link
CN (1) CN107423087A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109257253A (en) * 2018-09-14 2019-01-22 视联动力信息技术股份有限公司 A kind of method and apparatus of APP operational monitoring
CN110471689A (en) * 2019-08-22 2019-11-19 北京元安物联技术有限公司 A kind of application program updating method and device
CN111580842A (en) * 2020-04-16 2020-08-25 北京遥感设备研究所 On-line upgrading method and system for vehicle-mounted millimeter wave radar application program

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040044889A1 (en) * 2002-08-30 2004-03-04 Fujitsu Limited Information processing device and recovery method thereof
CN1933416A (en) * 2005-09-12 2007-03-21 中兴通讯股份有限公司 Long-distance on-line staging method with self-recovery function
CN103761115A (en) * 2013-11-30 2014-04-30 北京中启智源数字信息技术有限责任公司 Method for achieving self-update of software
CN104572206A (en) * 2015-01-14 2015-04-29 厦门为那通信科技有限公司 Application program self updating and backup recovery method
CN105045640A (en) * 2015-08-27 2015-11-11 北京金山安全软件有限公司 Software upgrading method and device and intelligent equipment
CN105404533A (en) * 2015-11-09 2016-03-16 珠海格力电器股份有限公司 Program upgrading method and apparatus
CN105955846A (en) * 2016-04-29 2016-09-21 乐视控股(北京)有限公司 Method and system for carrying out recovery after upgrade failure of mobile terminal on basis of network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040044889A1 (en) * 2002-08-30 2004-03-04 Fujitsu Limited Information processing device and recovery method thereof
CN1933416A (en) * 2005-09-12 2007-03-21 中兴通讯股份有限公司 Long-distance on-line staging method with self-recovery function
CN103761115A (en) * 2013-11-30 2014-04-30 北京中启智源数字信息技术有限责任公司 Method for achieving self-update of software
CN104572206A (en) * 2015-01-14 2015-04-29 厦门为那通信科技有限公司 Application program self updating and backup recovery method
CN105045640A (en) * 2015-08-27 2015-11-11 北京金山安全软件有限公司 Software upgrading method and device and intelligent equipment
CN105404533A (en) * 2015-11-09 2016-03-16 珠海格力电器股份有限公司 Program upgrading method and apparatus
CN105955846A (en) * 2016-04-29 2016-09-21 乐视控股(北京)有限公司 Method and system for carrying out recovery after upgrade failure of mobile terminal on basis of network

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109257253A (en) * 2018-09-14 2019-01-22 视联动力信息技术股份有限公司 A kind of method and apparatus of APP operational monitoring
CN110471689A (en) * 2019-08-22 2019-11-19 北京元安物联技术有限公司 A kind of application program updating method and device
CN111580842A (en) * 2020-04-16 2020-08-25 北京遥感设备研究所 On-line upgrading method and system for vehicle-mounted millimeter wave radar application program

Similar Documents

Publication Publication Date Title
CN107153559A (en) The application program updating method of a kind of electronic equipment
KR100915564B1 (en) Method, software and apparatus for application upgrade during execution
EP1142309B1 (en) Method and apparatus for operating system downloads in a set-top box environment
US11080117B2 (en) System and method for introducing functionality to an application for use with a network service
US7661025B2 (en) Method of ensuring consistent configuration between processors running different versions of software
US8855627B2 (en) System and method for enhanced diagnostics on mobile communication devices
CN101426077A (en) Method for on-line updating television set software through Internet
KR20120052406A (en) Firmware image update and management
CN101594613A (en) The method of terminal equipment and upgrading thereof, system
US10185620B2 (en) Automated teller machine (“ATM”) software recovery
CN107423087A (en) A kind of application program updating method that server can monitor
CN111182033B (en) Method and equipment for restoring switch
US7162714B2 (en) Software-based watchdog method and apparatus
CN101656627A (en) Method and device for restoring main program and network equipment
CN106028142A (en) Upgrading control method and upgrading control apparatus for playing devices
CN105872778A (en) Upgrading control method and device
CN111694516A (en) Version online upgrading method and terminal of distributed block storage system
JP2010146436A (en) Monitoring system, control method and program
CN113760328B (en) Firmware upgrading processing method, server system and storage medium
CN112954035B (en) Server restarting method, device, equipment and storage medium
CN113704005B (en) Method, device and system capable of remotely calling application and readable storage medium
CN111338922B (en) DLL failure detection method and device
CN116991710B (en) Automatic test method and system, electronic equipment and storage medium thereof
CN113791810B (en) ZYNQ platform-based remote upgrading method, device and system
CN114064086A (en) Multi-stage processor system and upgrading method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20180402

Address after: No. 130, Nangang District, Harbin City, Heilongjiang, Heilongjiang

Applicant after: Hou Mingxin

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

Applicant before: Beijing Pioneer Technology Co., Ltd.

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

Effective date of registration: 20180531

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: No. 130, Nangang District, Harbin

Applicant before: Hou Mingxin

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

Application publication date: 20171201

WD01 Invention patent application deemed withdrawn after publication