CN110502267A - Update method, device, equipment and the storage medium of appliance applications - Google Patents

Update method, device, equipment and the storage medium of appliance applications Download PDF

Info

Publication number
CN110502267A
CN110502267A CN201910803053.XA CN201910803053A CN110502267A CN 110502267 A CN110502267 A CN 110502267A CN 201910803053 A CN201910803053 A CN 201910803053A CN 110502267 A CN110502267 A CN 110502267A
Authority
CN
China
Prior art keywords
equipment
program
address
feeding
procedure
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
CN201910803053.XA
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.)
Beijing Autoroad Tech Co Ltd
Original Assignee
Beijing Autoroad Tech 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 Autoroad Tech Co Ltd filed Critical Beijing Autoroad Tech Co Ltd
Priority to CN201910803053.XA priority Critical patent/CN110502267A/en
Publication of CN110502267A publication Critical patent/CN110502267A/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

Abstract

The embodiment of the invention discloses a kind of update method of appliance applications, device, equipment and storage mediums, this method comprises: the present procedure of the equipment sends feeding-dog signal to watchdog module according to setting time interval;If the operation program of equipment needs to change, the program in the present procedure modification storage equipment promoter region starts address, and stops sending feeding-dog signal to watchdog module;If the watchdog module does not receive feeding-dog signal within the set time, reset signal is sent to the central processing unit of the equipment;The central processing unit is restarted according to modified program starting address.The present embodiment obtains accurate power-off time point according to the process of upgrade procedure by watchdog module, and power-off and power on operation are carried out to equipment automatically, the situation that power operation is implemented in the unmodified address of starting well is avoided, solves the problems, such as equipment in upgrading because the unmodified address of starting well implements power operation and equipment is caused to crash.

Description

Update method, device, equipment and the storage medium of appliance applications
Technical field
The present embodiments relate to computer equipment program processing technique more particularly to a kind of updates of appliance applications Method, apparatus, equipment and storage medium.
Background technique
Application program and upgrade procedure are stored in the flash (non-volatile memory device) of radar, application program is to use In acquisition and handle radar data;Upgrade procedure is after running upgrade procedure, will to apply journey for upgrade applications Sequence is upgraded to highest version.Application program and upgrade procedure be separate storage, independently operated.Further include in the flash block of radar Start the area (boot), is stored with starting address.When starting address direction application program, application program will start.Work as starting When upgrade procedure is directed toward in address, upgrade procedure will start.
The application program of radar is required to re-power before upgrading and after upgrading, just can be according to modified starting Address start.It is existing to re-power operation by manually implementing power operation and again power on operation, in the mistake manually re-powered Cheng Zhong, it may occur that implement the problem of power operation causes radar to crash at the unmodified address of starting well.
Summary of the invention
The embodiment of the present invention provides update method, device, equipment and the storage medium of a kind of appliance applications, to realize When program updates, power-off and power on operation are carried out automatically according to the update process of program.
In a first aspect, the embodiment of the invention provides a kind of update methods of appliance applications, comprising:
The present procedure of the equipment sends feeding-dog signal to watchdog module according to setting time interval;
Program starting if the operation program of equipment needs to change, in the present procedure modification storage equipment promoter region Address, and stop sending feeding-dog signal to watchdog module;
If the watchdog module does not receive feeding-dog signal within the set time, to the central processing of the equipment Device sends reset signal;
The central processing unit is restarted according to modified program starting address.
Second aspect, the embodiment of the invention also provides a kind of updating devices of appliance applications, comprising:
Feeding-dog signal sending module, the present procedure for the equipment are sent out according to setting time interval to watchdog module Send feeding-dog signal;
Start address modified module, if the operation program for equipment needs to change, the present procedure modification storage Program in equipment promoter region starts address, and stops sending feeding-dog signal to watchdog module;
Watchdog module, when for not receiving feeding-dog signal within the set time, the central processing unit of Xiang Suoshu equipment Send reset signal;
Central processing unit, for restarting according to modified program starting address.
The third aspect, the embodiment of the invention also provides a kind of equipment, the equipment includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the update method for the appliance applications that any embodiment of that present invention provides.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program realizes the update method for the appliance applications that any embodiment of that present invention provides when the program is executed by processor.
The embodiment of the present invention is by setting watchdog module, for receiving hello the dog that application program or upgrade procedure are sent Signal needs restarting equipment when application program, which needs to update or update, to be completed to run upgrade procedure or updated answer With program, at this point, application program or upgrade procedure stop sending feeding-dog signal to watchdog module, and then watchdog module to Central processing unit sends reset signal, and indicating equipment is restarted automatically according to modified program starting address, so as to avoid going out The situation for implementing power-off in the case where the existing unmodified address of starting well solves because the unmodified address of starting well implements to power off behaviour The problem of work causes equipment to crash realizes and obtains accurate power-off time point according to the update process of application program, and control The central processing unit of equipment is restarted automatically, so that the application program of equipment smoothly completes entire renewal process, and ensure that equipment It can operate normally, have the advantages that accurate, reliable after update.
Detailed description of the invention
Fig. 1 is the flow chart of the update method of one of the embodiment of the present invention one appliance applications;
Fig. 2 is the flow chart of the update method of one of the embodiment of the present invention two appliance applications;
Fig. 3 is the flow chart of the update method of one of the embodiment of the present invention three appliance applications;
Fig. 4 is the structural schematic diagram of the updating device of one of the embodiment of the present invention four appliance applications;
Fig. 5 is the structural schematic diagram of one of the embodiment of the present invention five equipment.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart of the update method for appliance applications that the embodiment of the present invention one provides, the present embodiment It is applicable to the case where application program of equipment needs restarting equipment during upgrade or downgrade, for example, trailer-mounted radar equipment The case where carrying out application program updating, this method can be executed by software or hardware, be specifically comprised the following steps:
S110, the equipment present procedure according to setting time interval to watchdog module send feeding-dog signal.
Wherein, present procedure is the program being currently running in equipment, for example, if radar equipment runs escalation process, thunder Up to equipment before being upgraded, present procedure is the application program before upgrading in radar equipment;When radar equipment is upgrading When, present procedure is the upgrade procedure in radar equipment;After radar equipment is completed to upgrade, present procedure is to rise in radar equipment Application program after grade.
The present procedure of equipment sends feeding-dog signal to the watchdog module of equipment according to setting time interval.House dog mould Block is the module for being provided with input and output port, and input port is believed for receiving feeding-dog signal, output port according to input It number is accordingly exported.Watchdog module is arranged in the hardware of equipment, to indicate that corresponding hardware device is grasped accordingly Make.
In the present embodiment, the time interval for sending feeding-dog signal should be longer than the time of modification starting address, so that sending out It send in the time interval of feeding-dog signal, present procedure can modify starting address.Also, the setting time interval can be according to setting Standby update process is adjusted, i.e., is adjusted, is made to the time interval for sending feeding-dog signal according to the property of present procedure Watchdog module is both able to achieve in the setting time interval and is monitored to present procedure, the resource of equipment can also be reduced Consumption.Specifically, if present procedure is application program, the application program is according to first time interval to watchdog module Send feeding-dog signal;And
If present procedure is upgrade procedure, the upgrade procedure sends to house dog according to the second time interval and feeds dog Signal, wherein second time interval is greater than first time interval.
Wherein, first time interval and the second time interval may be the same or different, i.e. application program update process The middle time interval for sending feeding-dog signal can with update before or to send the time interval of feeding-dog signal after updating identical, can also be with It is different.In the present embodiment, it is contemplated that when being updated mistake will not usually occur for application program, thus, it will be in renewal process The time interval for sending feeding-dog signal extends, i.e., the second time interval is set greater than first time interval, can subtracted in this way The consuming of few resource.
Journey if the operation program of S120, equipment needs to change, in the present procedure modification storage equipment promoter region Sequence starts address, and stops sending feeding-dog signal to watchdog module.
Wherein, it is provided with promoter region in the memory module of program, the program for storing equipment starts address.Memory module In be also stored with application program and upgrade procedure, wherein upgrade procedure be used for upgrade or downgrade application program, run upgrade procedure It afterwards, can be by application program update to respective version.Application program and upgrade procedure be separate storage, independently operated.Thus, In Before application program is updated, need that equipment is guided to run upgrade procedure, at this point, by the program in application modification promoter region Start address, allows equipment to allow equipment to restart according to the address of upgrade procedure, upgrade procedure brings into operation;Similarly, journey is being applied It after the completion of sequence updates, needs that equipment is guided to run updated application program, at this point, by the journey in upgrade procedure modification promoter region Sequence starts address, allows equipment to restart according to the address of updated application program, the renewal process of application program terminates.Specifically Ground,
If the application program of the equipment as present procedure, receives more new command, then the application program will upgrade The corresponding address of program is modified into storage equipment promoter region, starts address as program, then stops sending out to watchdog module Send feeding-dog signal;
If the application program update of the equipment is completed, the upgrade procedure is answered as present procedure by updated It is modified with the corresponding address of program into storage equipment promoter region, starts address as program, then stop to watchdog module Send feeding-dog signal.
Wherein, if the application program of equipment is as present procedure, illustrate that equipment is in the stage for preparing to update, at this point, answering With program firstly the need of the starting address in the promoter region of modification equipment, so that the program in promoter region is started address and be directed toward upgrading journey Sequence, upgrade procedure just bring into operation.Application program stops sending feeding-dog signal to watchdog module after having modified address, with Restarted by watchdog module indicating equipment;
Similarly, if application program update is completed, at this point, upgrade procedure as present procedure, needs first to modify equipment Program in promoter region starts address, so that the program in promoter region is started address and is directed toward updated application program, updated Application program is just had a meeting operation.After upgrade procedure has modified address, upgrade procedure stops sending feeding-dog signal to watchdog module, To be restarted by watchdog module indicating equipment.
If S130, the watchdog module do not receive feeding-dog signal within the set time, into the equipment Central processor sends reset signal.
Wherein, when watchdog module receives feeding-dog signal within the set time, normal condition, i.e. house dog mould are kept Block is done nothing.When watchdog module does not receive feeding-dog signal within the set time, watchdog module is to center Processor send reset signal, reset signal be used to indicate central processing according to program modified in promoter region start address into Row is restarted.
S140, the central processing unit are restarted according to modified program starting address.
Wherein, central processing unit will do it initialization operation after receiving reset signal, and re-read equipment starting Program in area starts address, is restarted according to the present procedure starting address in promoter region.For example, in the application journey of equipment When sequence receives more new command, application program can set the address of upgrade procedure in the program starting address of promoter region, center Processor is restarted after receiving reset signal according to the address of the upgrade procedure saved in promoter region;In application program After update, upgrade procedure can start address, central processing unit for the address of updated application program as the program of promoter region After receiving reset signal, restarted according to the address of the updated application program saved in promoter region.
A kind of principle of the update method of appliance applications of the present embodiment is: the application by watchdog module to equipment Program is monitored, and enables watchdog module aware application locating stage at no point in the update process, and according to program The different phase of update is powered off to power module and is re-powered automatically operation.
The technical solution of the present embodiment, by the way that watchdog module is arranged, what reception application program or upgrade procedure were sent Feeding-dog signal, when application program receives more new command, application modification program starts address, and stops to house dog mould Block sends feeding-dog signal, and watchdog module is not received by feeding-dog signal within the set time, sends and resets to central processing unit Signal, instruction central processing unit are restarted automatically according to new starting address, that is, are automatically performed the power-off to equipment and power on operation, Application program starts upgrade or downgrade;Similarly, after the update is completed, upgrade procedure, which stops sending to watchdog module, feeds dog letter Number, watchdog module sends reset signal to central processing unit, and instruction central processing unit is restarted according to new starting address, i.e., certainly Dynamic completion power-off and power on operation, updated application program bring into operation.The present embodiment is corresponding by setting watchdog module It is monitored with the update process of program, and is powered off and powered on automatically behaviour to equipment according to the update process of application program Make, avoids the unmodified address of starting well and implement the situation of power operation, to solve because unmodified start address well And the problem of causing equipment to crash, be monitored by the update process to application program, can accurately obtain to equipment into The time point of row power-off is restarted automatically by program instruction central processing unit, is had the advantages that accurate, reliable.
Embodiment two
Fig. 2 is a kind of flow chart of the update method of appliance applications provided by Embodiment 2 of the present invention, the present embodiment The situation for causing equipment that can not start because of spread of voltage is optimized on the basis of the above embodiments, this implementation The case where application program that example is applicable to equipment needs restarting equipment at no point in the update process, for example, trailer-mounted radar equipment carries out It, should because of the situation that the spread of voltage after powering on causes the flash block of storage starting address to be locked when application program updating Method can be executed by software or hardware, be specifically comprised the following steps:
S210, the equipment present procedure according to setting time interval to watchdog module send feeding-dog signal.
Journey if the operation program of S220, equipment needs to change, in the present procedure modification storage equipment promoter region Sequence starts address, and stops sending feeding-dog signal to watchdog module.
If S230, the watchdog module do not receive feeding-dog signal within the set time, into the equipment Central processor sends reset signal.
If S240, present procedure are upgrade procedure, the upgrade procedure after restart carries out the storage equipment Postpone erasing operation.
Wherein, can be by application program update to indicated release, during this when upgrade procedure is run, upgrade procedure can wipe Except the old edition application in flash block, and the application program of new version is written, but if in erasing legacy version application journey During sequence, occur that supply voltage is unstable and output voltage is relatively low, flash block can be locked at this time, upgrade procedure without Method continues to run, and radar is locked.Thus, after equipment re-powers, need to wait until output voltage stabilization, then wiped Voltage operation, the i.e. application program of delay erasing legacy version.Optionally, two kinds of delay erasing legacy versions are present embodiments provided to answer With the method for program:
After setting delay time reaches, starting carries out erasing behaviour to the storage equipment for method one, the upgrade procedure Make.
Wherein, upgrade procedure is done nothing within setting delay time, until after setting delay time reaches, Start to wipe the old edition application in flash block again, after the setting delay time, the output voltage of power module reaches steady Determine state.Setting delay time can be selected according to the property of flash block, optionally, in the present embodiment, when setting postpones Between be set as 2 seconds to 3 seconds.
Method two, the upgrade procedure obtain power supply status monitoring result from the central processing unit, if the power supply Status monitoring result meets preset requirement, then upgrade procedure starting carries out erasing operation to the storage equipment.
Wherein, upgrade procedure obtains power supply status monitoring result from the central processing unit, refers to that upgrade procedure is starting Afterwards, erasing operation is not first run, but first obtains the output state of power module.If the output state of power module is stablized, Erasing operation is carried out, otherwise, without erasing operation.Preset requirement refers to that the output voltage of power module reaches preset value.Tool Body, after upgrade procedure starting, first indicate the output of central processing unit multi collect power module within the delay time of setting Voltage, if the voltage value acquired every time is both greater than preset value, illustrate power module output is burning voltage, and upgrade procedure is opened The application program of legacy version, upgrade procedure bring into operation in beginning erasing flash block.In an alternate embodiment of the present invention where, Central processing unit acquires the output voltage of power module, and continuous acquisition 5 times according to the acquisition interval of 70ms, and voltage preset value is set It is set to 6V, if the voltage value acquired every time is both greater than 6V, shows that the output voltage of power module is stable.
S250, the central processing unit are restarted according to modified program starting address.
The operation that the present embodiment wipes storage equipment to upgrade procedure is optimized, by setting before erasing operation starts Delay time is set, so that after the output voltage stabilization of power module, then start to carry out erasing operation to flash block;Or it presses Power supply is judged by the output voltage of multi collect power module according to the output voltage of acquisition of default sampling interval power module Module output state shows that power module outputs burning voltage, then if the voltage of multi collect all meets preset condition Start to carry out erasing operation to flash block again, to guarantee that erasing operation is carried out in the case where power supply is in and stablizes output state, from And it avoids because of the problem that spread of voltage causes flash block locked.
Embodiment three
Fig. 3 is a kind of flow chart of the update method for appliance applications that the embodiment of the present invention three provides, the present embodiment The situation for causing equipment that can not start because of missing starting address is optimized on the basis of the above embodiments, this reality It applies example and is applicable to the situation that the application program of equipment causes equipment that can not start because of starting address loss at no point in the update process, For example, cause radar equipment that can not start because starting address is lost when trailer-mounted radar equipment carries out application program updating, the party Method can be executed by software or hardware, be specifically comprised the following steps:
S310, the equipment present procedure according to setting time interval to watchdog module send feeding-dog signal.
Journey if the operation program of S320, equipment needs to change, in the present procedure modification storage equipment promoter region Sequence starts address, and stops sending feeding-dog signal to watchdog module.
If S330, the watchdog module do not receive feeding-dog signal within the set time, into the equipment Central processor sends reset signal.
S340, the central processing unit read modified program from main promoter region and start address;If read successfully, Restart according to the program starting address of reading;If reading failure, reading program starting address is carried out from spare promoter region Restart;Wherein, the spare promoter region is arranged in the storage device.
Wherein, it stores in equipment and is provided with main promoter region and spare promoter region, when equipment starts every time, central processing unit is all It is to read the starting address of main promoter region, and according to the corresponding program of starting address start of main promoter region.
It reads and unsuccessfully refers to because causing equipment can not without effectively starting address in the main promoter region of storage equipment Start application program or upgrade procedure, for example, wiping the old starting address in main promoter region and being written newly in main promoter region During starting address, occurs manually surprisingly to pull out the power blackout situations such as power supply line, will cause not having in main promoter region at this time Effective starting address.
In order to avoid the feelings to crash due to causing equipment that can not start without effectively starting address for main promoter region occur Condition is optionally provided with spare promoter region in storage equipment, and program starting address can be set to apply in spare promoter region The corresponding address of program or the corresponding address of upgrade procedure, it is contemplated that just will not change, and occur after upgrade procedure factory The probability of problem is low, thus the preferred embodiment of the present embodiment is, the program starting address in spare promoter region is fixedly installed liter The corresponding address of grade program.Fixed setting refers to that the starting address saved in spare promoter region remains opening for initial setting up Dynamic address, during program upgrade or downgrade, the address in the spare promoter region will not change.
This implementation is by being arranged spare promoter region, so that central processing unit is opened because based on during application program update When dynamic area's missing effectively starts address and causes equipment that can not start, starting ground can be read from set spare promoter region Location, to restart equipment, to solve the problems, such as equipment because crashing without effectively starting address.
Example IV
Fig. 4 is a kind of structural schematic diagram of the updating device for appliance applications that the embodiment of the present invention four provides, and can be matched It is placed in radar equipment, this implementation is applicable to the case where radar equipment carries out application program updating or degrades.As shown in figure 4, The device specifically includes: feeding-dog signal sending module 410, starting address modified module 420, watchdog module 430 and centre Manage device 440, in which:
Feeding-dog signal sending module 410, the present procedure for the equipment is according to setting time interval to house dog mould Block sends feeding-dog signal;
Start address modified module 420, if the operation program for equipment needs to change, the present procedure modification is deposited The program stored up in equipment promoter region starts address, and stops sending feeding-dog signal to watchdog module;
Watchdog module 430, when for not receiving feeding-dog signal within the set time, the central processing of Xiang Suoshu equipment Device sends reset signal;
Central processing unit 440, for restarting according to modified program starting address.
Optionally, feeding-dog signal sending module 410 specifically includes:
First feeding-dog signal transmission unit, if being application program for present procedure, the application program is according to the One time interval sends feeding-dog signal to watchdog module;And
Second feeding-dog signal transmission unit, if being upgrade procedure for present procedure, the upgrade procedure is according to the Two time intervals send feeding-dog signal to house dog, wherein second time interval is greater than first time interval.
Optionally, starting address modified module 420 specifically includes:
Unit is modified in first starting address, if the application program for the equipment receives update as present procedure Instruction, then the application program modifies the corresponding address of upgrade procedure into storage equipment promoter region, starts ground as program Location then stops sending feeding-dog signal to watchdog module;
Unit is modified in second starting address, if the application program update for the equipment is completed, the upgrade procedure As present procedure, the corresponding address of updated application program is modified into storage equipment promoter region, is started as program Address then stops sending feeding-dog signal to watchdog module.
Optionally, central processing unit 440 is specifically used for:
The central processing unit reads modified program from main promoter region and starts address;
If read successfully, restart according to the program starting address of reading;
If reading failure, reading program starting address is restarted from spare promoter region;
Wherein, the spare promoter region is arranged in the storage device;
Optionally, the program starting address in the spare promoter region is fixedly installed application program or upgrade procedure is corresponding Address.
Optionally, the update device of the appliance applications further include:
Delay erasing module, if being upgrade procedure for present procedure, the upgrade procedure is after restart to described Storage equipment carries out delay erasing operation.
Wherein, delay erasing module specifically includes:
Delay erasing unit starts for the upgrade procedure after setting delay time reaches to the storage equipment Carry out erasing operation;Alternatively,
Power state detection unit obtains power supply status monitoring knot from the central processing unit for the upgrade procedure Fruit, if the power supply status monitoring result meets preset requirement, the storage equipment is wiped in upgrade procedure starting Operation.
The update device of appliance applications provided by the embodiment of the present invention can be performed any embodiment of that present invention and be mentioned The update method of the appliance applications of confession has the corresponding functional module of execution method and beneficial effect.In the present embodiment not The content of detailed description can be with reference to the description in any means embodiment of the present invention.
Embodiment five
Fig. 5 is a kind of structural schematic diagram for equipment that the embodiment of the present invention five provides.Fig. 5, which is shown, to be suitable for being used to realizing this The block diagram of the example devices 512 of invention embodiment.The equipment 512 that Fig. 5 is shown is only an example, should not be to the present invention The function and use scope of embodiment bring any restrictions.
As shown in figure 5, equipment 512 is showed in the form of universal computing device.The component of equipment 512 may include but unlimited In one or more processor or processing unit 516, system storage 528, different system components (including system is connected Memory 528 and processing unit 516) bus 518.
Bus 518 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Equipment 512 typically comprises a variety of computer system readable media.These media can be it is any can be by equipment The usable medium of 512 access, including volatile and non-volatile media, moveable and immovable medium.
System storage 528 may include the computer system readable media of form of volatile memory, such as deposit at random Access to memory (RAM) 530 and/or cache memory 532.Equipment 512 may further include other removable/not removable Dynamic, volatile/non-volatile computer system storage medium.Only as an example, storage system 534 can be used for read and write can not Mobile, non-volatile magnetic media (Fig. 5 do not show, commonly referred to as " hard disk drive ").Although being not shown in Fig. 5, Ke Yiti For the disc driver for being read and write to removable non-volatile magnetic disk (such as " floppy disk "), and to moving non-volatile light The CD drive of disk (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver It can be connected by one or more data media interfaces with bus 518.Memory 528 may include that at least one program produces Product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform of the invention each The function of embodiment.
Program/utility 540 with one group of (at least one) program module 542, can store in such as memory In 528, such program module 542 includes but is not limited to operating system, one or more application program, other program modules And program data, it may include the realization of network environment in each of these examples or certain combination.Program module 542 Usually execute the function and/or method in embodiment described in the invention.
Equipment 512 can also be logical with one or more external equipments 514 (such as keyboard, sensing equipment, display 524 etc.) Letter, can also be enabled a user to one or more equipment interact with the equipment 512 communicate, and/or with make the equipment 512 Any equipment (such as network interface card, modem etc.) that can be communicated with one or more of the other calculating equipment communicates.This Kind communication can be carried out by input/output (I/O) interface 522.Also, equipment 512 can also by network adapter 520 with One or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) communication.Such as Shown in figure, network adapter 520 is communicated by bus 518 with other modules of equipment 512.It should be understood that although not showing in figure Out, other hardware and/or software module can be used with bonding apparatus 512, including but not limited to: microcode, device driver, superfluous Remaining processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 516 by the program that is stored in system storage 528 of operation, thereby executing various function application with And data processing, such as realize the update method of appliance applications provided by the embodiment of the present invention, this method specifically includes:
The present procedure of the equipment sends feeding-dog signal to watchdog module according to setting time interval;
Program starting if the operation program of equipment needs to change, in the present procedure modification storage equipment promoter region Address, and stop sending feeding-dog signal to watchdog module;
If the watchdog module does not receive feeding-dog signal within the set time, to the central processing of the equipment Device sends reset signal;
The central processing unit is restarted according to modified program starting address.
Embodiment six
The embodiment of the present invention six additionally provides a kind of computer readable storage medium, is stored thereon with computer program, should The update method of the appliance applications as provided by the embodiment of the present invention, this method packet are realized when program is executed by processor It includes:
The present procedure of the equipment sends feeding-dog signal to watchdog module according to setting time interval;
Program starting if the operation program of equipment needs to change, in the present procedure modification storage equipment promoter region Address, and stop sending feeding-dog signal to watchdog module;
If the watchdog module does not receive feeding-dog signal within the set time, to the central processing of the equipment Device sends reset signal;
The central processing unit is restarted according to modified program starting address.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.In Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service It is connected for quotient by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of update method of appliance applications characterized by comprising
The present procedure of the equipment sends feeding-dog signal to watchdog module according to setting time interval;
If the operation program of equipment needs to change, the program in the present procedure modification storage equipment promoter region starts ground Location, and stop sending feeding-dog signal to watchdog module;
If the watchdog module does not receive feeding-dog signal within the set time, sent out to the central processing unit of the equipment Send reset signal;
The central processing unit is restarted according to modified program starting address.
2. described the method according to claim 1, wherein if the operation program of the equipment needs to change Program in present procedure modification storage equipment promoter region starts address, and stops sending feeding-dog signal, packet to watchdog module It includes:
If the application program of the equipment as present procedure, receives more new command, then the application program is by upgrade procedure Corresponding address is modified into storage equipment promoter region, starts address as program, is then stopped sending to watchdog module and be fed Dog signal;
If the application program update of the equipment is completed, the upgrade procedure applies journey as present procedure, by updated The corresponding address of sequence is modified into storage equipment promoter region, starts address as program, then stops sending to watchdog module Feeding-dog signal.
3. method according to claim 1 or 2, which is characterized in that if the watchdog module within the set time Feeding-dog signal is not received, then after sending reset signal to the central processing unit of the equipment, further includes:
If present procedure is upgrade procedure, the upgrade procedure carries out delay erasing behaviour to the storage equipment after restart Make.
4. according to the method described in claim 3, it is characterized in that, the upgrade procedure after restart to the storage equipment into Row delay erasing operation, comprising:
For the upgrade procedure after setting delay time reaches, starting carries out erasing operation to the storage equipment;Alternatively,
The upgrade procedure obtains power supply status monitoring result from the central processing unit, if the power supply status monitoring result Meet preset requirement, then upgrade procedure starting carries out erasing operation to the storage equipment.
5. method according to claim 1-4, which is characterized in that the central processing unit is according to modified journey Restart sequence starting address, comprising:
The central processing unit reads modified program from main promoter region and starts address;
If read successfully, restart according to the program starting address of reading;
If reading failure, reading program starting address is restarted from spare promoter region;
Wherein, the spare promoter region is arranged in the storage device.
6. according to the method described in claim 5, it is characterized in that, the program starting address fixation in the spare promoter region is set It is equipped with application program or the corresponding address of upgrade procedure.
7. the method according to claim 1, wherein the present procedure of the equipment according to setting time interval to Watchdog module sends feeding-dog signal, comprising:
If present procedure is application program, the application program sends to watchdog module according to first time interval and feeds dog Signal;And
If present procedure is upgrade procedure, the upgrade procedure sends to house dog according to the second time interval and feeds dog letter Number, wherein second time interval is greater than first time interval.
8. a kind of updating device of appliance applications characterized by comprising
Feeding-dog signal sending module, the present procedure for the equipment, which is sent according to setting time interval to watchdog module, feeds Dog signal;
Start address modified module, if the operation program for equipment needs to change, the present procedure modification storage equipment Program in promoter region starts address, and stops sending feeding-dog signal to watchdog module;
Watchdog module, when for not receiving feeding-dog signal within the set time, the central processing unit of Xiang Suoshu equipment is sent Reset signal;
Central processing unit, for restarting according to modified program starting address.
9. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now update method of the appliance applications as described in any in claim 1-7.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The update method of the appliance applications as described in any in claim 1-7 is realized when execution.
CN201910803053.XA 2019-08-28 2019-08-28 Update method, device, equipment and the storage medium of appliance applications Pending CN110502267A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910803053.XA CN110502267A (en) 2019-08-28 2019-08-28 Update method, device, equipment and the storage medium of appliance applications

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910803053.XA CN110502267A (en) 2019-08-28 2019-08-28 Update method, device, equipment and the storage medium of appliance applications

Publications (1)

Publication Number Publication Date
CN110502267A true CN110502267A (en) 2019-11-26

Family

ID=68588677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910803053.XA Pending CN110502267A (en) 2019-08-28 2019-08-28 Update method, device, equipment and the storage medium of appliance applications

Country Status (1)

Country Link
CN (1) CN110502267A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116149712A (en) * 2023-04-04 2023-05-23 湖南中青能科技有限公司 Database version updating compatible matching method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1851645A (en) * 2006-01-17 2006-10-25 华为技术有限公司 Upgrading device and method in operation for monolithic processor system
CN107391174A (en) * 2017-06-15 2017-11-24 广州视源电子科技股份有限公司 A kind of control method and control device of system online upgrading

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1851645A (en) * 2006-01-17 2006-10-25 华为技术有限公司 Upgrading device and method in operation for monolithic processor system
CN107391174A (en) * 2017-06-15 2017-11-24 广州视源电子科技股份有限公司 A kind of control method and control device of system online upgrading

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵生智: "计算机组装与维护", 西北农林科技大学出版社, pages: 202 - 203 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116149712A (en) * 2023-04-04 2023-05-23 湖南中青能科技有限公司 Database version updating compatible matching method
CN116149712B (en) * 2023-04-04 2023-06-27 湖南中青能科技有限公司 Database version updating compatible matching method

Similar Documents

Publication Publication Date Title
US8856772B2 (en) Server and firmware updating method
US9600294B2 (en) Port throttling across an operating system restart during a hot upgrade
US8997090B2 (en) Installing an operating system in a host system
CN102238093A (en) Service interruption prevention method and device
US11314665B2 (en) Information processing system, information processing device, BIOS updating method for information processing device, and BIOS updating program for information processing device
CN109471779A (en) Board state monitoring method, micro-control unit, server and storage medium
CN111581021B (en) Application program starting abnormality repairing method, device, equipment and storage medium
US11016750B2 (en) Firmware update system
CN110502267A (en) Update method, device, equipment and the storage medium of appliance applications
CN101500330A (en) Tool for fast and safely updating operation system of smart phone
CN111459558B (en) Video interface self-adaptive configuration method, device, equipment and storage medium
CN113608970A (en) Core board, server, failure recovery method, device and storage medium
US8464273B2 (en) Information processing apparatus, information processing method, and computer-readable program
CN116521081A (en) Method, device, equipment and storage medium for assembling on-board redundant array of independent disks
CN113434089B (en) Data moving method and device and PCIE system
CN114281389A (en) Method and device for upgrading SOC (system on chip) and automatic driving vehicle
CN110868764A (en) Wireless connection self-recovery method, device, equipment and storage medium
CN112527091A (en) Power management method, firmware update method, apparatus, device, medium, and product
CN112559006A (en) Enterprise client automatic upgrading method, system, equipment and storage medium
CN111930502A (en) Server management method, device, equipment and storage medium
CN109150810B (en) Set top box convergence gateway and starting method, device and storage medium thereof
CN113127029A (en) Firmware updating method and device, electronic equipment and storage medium
CN108228202A (en) A kind of information processing method, equipment and computer readable storage medium
US7437435B2 (en) Automatically setting method and related system
US7657615B1 (en) Approach for provisioning network devices

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