CN108469958A - application program updating method and device - Google Patents

application program updating method and device Download PDF

Info

Publication number
CN108469958A
CN108469958A CN201710087133.0A CN201710087133A CN108469958A CN 108469958 A CN108469958 A CN 108469958A CN 201710087133 A CN201710087133 A CN 201710087133A CN 108469958 A CN108469958 A CN 108469958A
Authority
CN
China
Prior art keywords
information
application program
zone bit
updating
version information
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
CN201710087133.0A
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.)
Xi'an Zhongche Infoquick Yongji Electric Co Ltd
Original Assignee
Xi'an Zhongche Infoquick Yongji Electric 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 Xi'an Zhongche Infoquick Yongji Electric Co Ltd filed Critical Xi'an Zhongche Infoquick Yongji Electric Co Ltd
Priority to CN201710087133.0A priority Critical patent/CN108469958A/en
Publication of CN108469958A publication Critical patent/CN108469958A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • 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/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Abstract

The present invention provides a kind of application program updating method and device, belongs to field of computer technology.This method includes:Obtain operational order;Zone bit information is obtained according to operational order, zone bit information is used to indicate the updating result of application program;Determined whether to execute updating operation to application program according to zone bit information.Application program updating method and device provided by the invention improves the stability and reliability of embedded system.

Description

Application program updating method and device
Technical field
The present invention relates to field of computer technology more particularly to a kind of application program updating method and devices.
Background technology
Currently, the application of embedded system is more and more extensive, since embedded system has small, performance is strong, power consumption Low, reliability is high and prominent features towards commercial Application, extensively using and military and national defense, consumer electronics, network it is logical The every field such as news, Industry Control.
Embedded system online upgrading is a function of many product indispensabilities.It is main at present according to the difference of programming interface There are the various ways such as JTAG, UART, CAN, SPI.Although programming interface is different, upgrading principle is similar, is all logical External trigger conditions are crossed, the execution flow of the aberrant application program of microcontroller chip is made, jump to some fixed position Bootloader programs are executed, FLASH is wiped, upgrading data are received by corresponding communication protocol, by the upgrading data programming To the storage areas FLASH of chip.
Application program online upgrading mode is the most common type online upgrading mode, in the prior art, there are mainly two types of Mainstream applications program upgrading scheme.One is third party software CtoProg is utilized, completed in conjunction with the on piece bootloader of chip Application program updating, this mode are completed bootloader modes and are selected, upgrading is dumb due to needing to configure chip pin; Another kind is that user oneself develops bootloader, is functionally similar on piece bootloader, and this mode can not have to configuration Chip pin carries out boot model selections according to host computer agreement.But during being upgraded using the two ways, if one Denier upgrading failure, then can not carry out application program online upgrading again, and JTAG must be used to carry out software programming, reduce embedding The stability and reliability of embedded system.
Invention content
The present invention provides a kind of application program updating method and device, to improve the stability of embedded system and reliable Property.
The embodiment of the present invention provides a kind of application program updating method, including:
Obtain operational order;
Zone bit information is obtained according to the operational order, the zone bit information is used to indicate the liter of the application program Grade result;
Determined whether to execute updating operation to the application program according to the zone bit information.
In an embodiment of the present invention, the operational order is to power on instruction;
It is described to be determined whether to execute updating operation to the application program according to the zone bit information, including:
If the zone bit information be the first information, it is determined that the application program execute updating operation, described first Information fails for the application program updating.
In an embodiment of the present invention, further include:
If the zone bit information is the second information, it is determined that initialize the application program, second information is institute State application program updating success.
In an embodiment of the present invention, the operational order is upgrade command, includes target version in the upgrade command Information;
It is described to be determined whether to execute updating operation to the application program according to the zone bit information, including:
If the zone bit information be the first information, it is determined that the application program execute updating operation, described first Include upgraded version information in information, the target version information is consistent with the upgraded version information, and the first information refers to Show the corresponding application program updating failure of the upgraded version information.
In an embodiment of the present invention, further include:
If the zone bit information is the second information, it is determined that initialize the application program, wrapped in second information Information containing upgraded version, the target version information is consistent with the upgraded version information, and second information indicates the liter The corresponding application program updating success of grade version information.
In an embodiment of the present invention, further include:
If the zone bit information is third information, it is determined that execute updating operation to the application program, answered by described in The corresponding application program of the target version information is upgraded to program, includes upgraded version information, institute in the third information It states target version information and is higher than the upgraded version information, the third information indicates the corresponding application of the upgraded version information Program upgrading failure.
The embodiment of the present invention also provides a kind of application program updating device, including:
Acquisition module, for obtaining operational order;
The acquisition module is additionally operable to obtain zone bit information according to the operational order, and the zone bit information is used for Indicate the updating result of the application program;
Determining module executes updating operation for determining whether according to the zone bit information to the application program.
In an embodiment of the present invention, the operational order is to power on instruction;
The determining module, if being the first information specifically for the zone bit information, it is determined that the application program Updating operation is executed, the first information fails for the application program updating.
In an embodiment of the present invention, the determining module, if being the second information also particularly useful for the zone bit information, It then determines and initializes the application program, second information is application program updating success.
In an embodiment of the present invention, the operational order is upgrade command, includes target version in the upgrade command Information;
The determining module, if being the first information specifically for the zone bit information, it is determined that the application program Updating operation is executed, includes upgraded version information in the first information, the target version information is believed with the upgraded version Breath is consistent, and the first information indicates the corresponding application program updating failure of the upgraded version information.
In an embodiment of the present invention, the determining module, if being the second information also particularly useful for the zone bit information, It then determines and initializes the application program, include upgraded version information, the target version information and institute in second information It is consistent to state upgraded version information, second information indicates the corresponding application program updating success of the upgraded version information.
In an embodiment of the present invention, the determining module, if being third information also particularly useful for the zone bit information, It then determines and updating operation is executed to the application program, the application program updating is answered to the target version information is corresponding Include upgraded version information with program, in the third information, the target version information is higher than the upgraded version information, institute It states third information and indicates the corresponding application program updating failure of the upgraded version information.
Application program updating method and device provided in an embodiment of the present invention, by first obtaining operational order, further according to behaviour Make instruction and obtains zone bit information, it, can be with to be determined whether to execute updating operation to application program according to the zone bit information It avoids the problem that due to the stability and reliability of embedded system caused by upgrading failure in escalation process, to improve The stability and reliability of embedded system.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to do one simply to introduce, it should be apparent that, the accompanying drawings in the following description is this hair Some bright embodiments for those of ordinary skill in the art without having to pay creative labor, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow diagram of application program updating method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of application program updating principle provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of program data block transmission process provided in an embodiment of the present invention;
Fig. 4 is a kind of flow chart of bootloader upgrade procedure provided in an embodiment of the present invention;
Fig. 5 be it is provided in an embodiment of the present invention it is a kind of according to zone bit information determine whether execute updating operation flow show It is intended to;
Fig. 6 is a kind of structural schematic diagram of application program updating device provided in an embodiment of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art The every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Term " first ", " second ", " third " in description and claims of this specification and above-mentioned attached drawing, " The (if present)s such as four " are for distinguishing similar object, without being used to describe specific sequence or precedence.It should manage The data that solution uses in this way can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein, such as can be with Sequence other than those of illustrating or describing herein is implemented.In addition, term " comprising " and " having " and their times What is deformed, it is intended that cover it is non-exclusive include, for example, contain the process of series of steps or unit, method, system, Product or equipment those of are not necessarily limited to clearly to list step or unit, but may include not listing clearly or for The intrinsic other steps of these processes, method, product or equipment or unit.
It should be noted that these specific embodiments can be combined with each other below, for same or analogous concept Or process may repeat no more in certain embodiments.
Fig. 1 is a kind of flow diagram of application program updating method provided in an embodiment of the present invention, the application program liter Grade method can be executed by application program updating device, and exemplary, which can be independently arranged, can also It is integrated in the processor.Shown in Figure 1, certainly, the embodiment of the present invention is only illustrated by taking Fig. 1 as an example, but not generation Present invention is limited only by this for table.The application program updating method may include:
S101, operational order is obtained.
Exemplary, which can be to power on instruction, or upgrade command, here, having for operational order What body refers to, the present invention does not do and further limits.
S102, zone bit information is obtained according to operational order.
Wherein, zone bit information is used to indicate the updating result of application program.
It is exemplary, in embodiments of the present invention, by obtaining the zone bit information, its object is to:The mark can be passed through Will position information determines the updating result of application program, upgrades successfully or upgrade failure.Therefore, which can be Indicate the successful information of application program updating, or the information of instruction application program updating failure, here, for flag bit What information specifically refers to, and the present invention does not do and further limits.
S103, determined whether to execute updating operation to application program according to zone bit information.
It is exemplary, if the updating result of the application program of zone bit information instruction is to upgrade successfully, it is determined that the application Program does not execute updating operation, fails if the updating result of the application program of zone bit information instruction is upgrading, it is determined that this Application program execute updating operation, so as to get upgrading after application program, can to avoid in escalation process due to upgrading Caused by failure the problem of the stability and reliability of embedded system, to improve the stability of embedded system and reliable Property.
Application program updating method provided in an embodiment of the present invention, by first obtaining operational order, further according to operational order Obtain zone bit information, so as to according to the zone bit information determine whether to application program execute updating operation, can to avoid It is the problem of in escalation process due to the stability and reliability of the caused embedded system of upgrading failure, embedded to improve The stability and reliability of system.
Based on the corresponding embodiments of Fig. 1, on the basis of Fig. 1 corresponding embodiments, further, the embodiment of the present invention is also Another application program updating method provided, is applied to electronic equipment, which can also include:
Optionally, when operational order is to power on instruction, then S103 determines whether according to zone bit information to application program Updating operation is executed, can be realized by following two possible modes.
In the first possible implementation:If zone bit information is the first information, it is determined that executed to application program Updating operation, the first information fail for application program updating.
In second of possible realization method:If the zone bit information is the second information, it is determined that described in initialization Application program, second information are application program updating success.
In embodiments of the present invention, upgrading principle may refer to shown in Fig. 2, and Fig. 2 is one kind provided in an embodiment of the present invention The schematic diagram of application program updating principle after embedded system electrification reset, powers on instruction according to this and obtains zone bit information, enter Port address is 0x33fff6, judges the flag information, if flag bit is first information 0x9a9b, then it represents that last time applies journey Sequence upgrading failure, system jump to bootloader upgrade procedure area, and entry address 0x338000 waits for upgrading again to refer to It enables;If flag bit is the second information 0x9a9d, indicate that the success of last time application program updating, entry address 0x33000 are embedded Formula system automatic jumps to the operation of application program normal initialization.Bootloader upgrade procedure is stored to the sectors Flash A, is answered It is stored in the sectors Flash B, C, D, E, F, G, H with program.Certainly, in embodiments of the present invention, it is respectively with entry address only 0x33fff6,0x338000 and 0x33000, flag bit are respectively to illustrate for 0x9a9b and 0x9a9d, but do not represent Present invention is limited only by this.
It is exemplary, it in the first possible implementation, can be with during executing updating operation to application program Believed by the number of host computer graphic user interface (Graphical User Interface, abbreviation GUI) and embedded system Number processing (Digital Signal Processing, abbreviation DSP) is communicated, and upgrade command and program data block are completed Transmission., can be by online upgrading communication protocol in order to complete reliable and stable communication, shown in Figure 3, Fig. 3 is this hair A kind of schematic diagram for program data block transmission process that bright embodiment provides.
Specifically, in program data block transmission process, host computer sends upgrade command to DSP;It is exemplary, in the present invention In embodiment, upgrade command can be 0xaabb, and certainly, the embodiment of the present invention is only carried out so that upgrade command is 0xaabb as an example Illustrate, but does not represent that present invention is limited only by this.After DSP receives upgrade command, judge whether upgrade command is default rise Grade instruction;Exemplary, preset instructions may be 0xaabb.If it is not, then continuing to the upgrade command of host computer transmission;If It is then to be replied to host computer and confirm answer signal, after host computer receives the answer signal of DSP, proceeds by program data block hair It send;DSP receive program data block and calculate verification and;If correct, Burning flash, and send the confirmation response to host computer Signal sends negative acknowledgement if incorrect to host computer;Cycle executes, until all program data blocks have been sent Until, host computer sends full stop to DSP;Exemplary, in embodiments of the present invention, full stop can be 0x5a5b, certainly, this Inventive embodiments are only illustrated so that full stop is 0x5a5b as an example, but do not represent that present invention is limited only by this, if the end Only symbol is that preset termination accords with, then carries out software reset, exemplary, preset termination symbol or 0x5a5b.
It should be noted that in embodiments of the present invention, carry out with the DSP of embedded system communicating it by host computer Before, host computer needs first to carry out serial ports configuration, the reading and parsing of file, order button and relevant indicator light.Wherein, literary The reading of part is with the key component for resolving to host computer design, required hex files when to generate application program updating, and will The hex document analysis is at the data block of set form one by one, and exemplary, the format of data block may refer to such as the following table 1 institute Show:
Table 1
Address Length Database Verification and
32bits 16bits 1-244bits 16bits
After starting host computer, DSP is connected to host computer serial ports, can be sent out to DSP by clicking Update Cmd buttons Upgrade command is sent, after DSP receives the upgrade command, confirmation answer signal, Ready Update traffic light systems can be postbacked Green.Then, Hex Select buttons are clicked, corresponding Hex files are browsed, selection is needed to wipe the sectors Flash, then be clicked Program buttons, Update Process progress bars can show upgrading progress.Upgrading finishes, Program Complete instructions Lamp display green.
It is exemplary, in second of possible realization method, if the second information is application program updating success, illustrate at this time The application program be in promoted after state, therefore, after receiving and powering on instruction, so that it may directly to initialize described answer With program, application program is improved to save update time without executing updating operation to the application program again Utilization rate.
In actual application, it is illustrated so that application program is upgraded to version 3 .1 by version 3 .0 as an example, if using During being upgraded to version 3 .1 power down occurs suddenly for program, so that application program is imperfect, through the invention Technical solution, after powering on again, so that it may zone bit information is obtained to power on instruction according to this, if zone bit information is first Information, then before illustrating power down, application program is failed by version 3 .0 to version 3 .1 upgradings, at this point it is possible to pass through host computer weight The new operation for executing version 3 .1 upgradings, until version 3 .1 is upgraded successfully and then is initialized to the application program, from And it avoids in the case of version 3 .1 upgrading failures, entering directly into the application program, and then it is steady to improve embedded system Qualitative and reliability.If zone bit information is the second information, before illustrating power down, application program is by version 3 .0 to version 3 .1 It upgrades successfully, at this point it is possible to directly be initialized to the application program, without executing version to the application program again 3.1 updating operations improve the utilization rate of application program to save update time again.
Based on the corresponding embodiments of Fig. 1, on the basis of Fig. 1 corresponding embodiments, further, the embodiment of the present invention is also Another application program updating method of offer, is applied to electronic equipment, which can also include:
Optionally, operational order is upgrade command, includes target version information in upgrade command;Then S103 is according to flag bit Information determines whether to execute updating operation to application program, can be realized by following possible three kinds of modes.
In embodiments of the present invention, Bootloader upgrade procedure includes serial communication function and FLASH API functions, is asked Shown in Figure 4, Fig. 4 is a kind of flow chart of bootloader upgrade procedure provided in an embodiment of the present invention.
When application program receives the upgrade command of host computer transmission, the execution of current application program can be stopped, being redirected Code_start entrances to bootloader upgrade procedure start to execute, in the principal function of bootloader upgrade procedure, System, including system clock, Flash, shared RAM, the modules such as UART can be reinitialized, and wipe application program Flash Sector, return response give host computer GUI, indicate that application program sector erasing finishes, receivable upgrade code is updated.Then Into a major cycle, serial ports reception and school are passed through according to preset communication protocol, data format in this major cycle The data of each data block are tested, then the data block is programmed on corresponding address again, then GUI tables are given in one response of loopback Show that this data block is programmed to finish, next data block can be sent.Last host computer sends an end mark and indicates to rise Level data block is sent, and bootloader upgrade procedure can jump out major cycle, then software reset's subsystem.
In the first possible implementation:
If zone bit information is the first information, it is determined that execute updating operation to application program, include liter in the first information Grade version information, target version information is consistent with upgraded version information, and the first information indicates the corresponding application of upgraded version information Program upgrading failure.
It is exemplary, at the entry address of embedded system boot to Flash, FlagPtr is upgraded by inquiry judging It is directed toward the zone bit information stored in address, upgrades journey so that it is determined that jumping to application program or redirecting into bootloader Sequence carries out application program and upgrades again.It is 0x33ff80 with FlagPtr initial address, shown in Figure 5, Fig. 5 is the present invention A kind of flow diagram for being determined whether to execute updating operation according to zone bit information that embodiment provides.
Embedded system before jumping to bootloader upgrade procedure or user application, is required to each time The zone bit information got is judged, if it is 0xffff that the addresses FlagPtr, which are stored to value of statistical indicant, then it represents that system is not Upgrading was carried out, user application is jumped directly to;If FlagPtr is stored to not being 0xffff, by flag bit Information is pre-processed, for example, can carry out subtracting certainly and handling from adding, FlagPtr address decrements to zone bit information, then is carried out Judge, is 0xffff until FlagPtr is directed toward address storage value, then FlagPtr address values add 1, if the addresses FlagPtr at this time Storage value is first information 0x9a9b, then it represents that upper secondary program upgrading failure jumps to bootloader upgrade procedure and waits for again Secondary to be upgraded, if storage value in the addresses FlagPtr is the second information 0x9a9d, upper expression last time program upgrades successfully, journey Sequence is jumped at user application and is executed.
In actual application, it is illustrated so that first time application program is upgraded to version 3 .1 by version 3 .0 as an example, Wherein, target version information is version 3 .1, and after receiving upgrade command, user needs to stop current operation, according to this Upgrade command obtains zone bit information, if the zone bit information is the first information for including upgraded version information 3.1, illustrates the Application program is failed by version 3 .0 to version 3 .1 upgradings, at this point it is possible to re-execute second of version by host computer The operation of 3.1 upgradings, i.e. target version information is consistent with the upgraded version information that the first information includes, until version 3 .1 liters Grade success and then the application program is initialized, to avoid in the case of version 3 .1 upgrading failure, directly into Enter into the application program, and then improves embedded system stability and reliability.It should be noted that executing updating operation Process may refer to shown in Fig. 3, here, the present invention no longer repeats.
In second of possible realization method:
If zone bit information is the second information, it is determined that initialize application program, believe comprising upgraded version in the second information Breath, target version information is consistent with upgraded version information, and the second information indicates the corresponding application program updating of upgraded version information Success.
In actual application, it is illustrated so that first time application program is upgraded to version 3 .1 by version 3 .0 as an example, Wherein, target version information is version 3 .1, and after receiving upgrade command, user needs to stop current operation, according to this Upgrade command obtains zone bit information, if the zone bit information is the second information comprising upgraded version information 3.1, illustrates the Application program is upgraded successfully by version 3 .0 to version 3 .1, at this point it is possible to directly the application program is initialized, and Without executing version 3 .1 updating operations to the application program again application program is improved to save update time again Utilization rate.
In the third possible realization method:
If zone bit information is third information, it is determined that execute updating operation to application program, extremely by application program updating The corresponding application program of target version information, includes upgraded version information in third information, and target version information is higher than upgrade version This information, third information indicate the corresponding application program updating failure of upgraded version information.
In actual application, it is illustrated so that first time application program is upgraded to version 3 .1 by version 3 .0 as an example, Wherein, target version information is version 3 .2, and after receiving upgrade command, user needs to stop current operation, according to this Upgrade command obtains zone bit information, if the zone bit information is the first information for including upgraded version information 3.1, illustrates the Application program, to version 3 .1 upgrading failures, is upgraded by version 3 .0 at this point it is possible to directly execute version 3 .2 by host computer Operation, i.e. target version information is higher than the first information upgraded version information that includes, version 3 .0 is directly upgraded to version 3.2, it is upgraded successfully in version 3 .2 and then the application program is initialized, entered in the application program, Jin Erti High embedded system stability and reliability.It should be noted that the process for executing updating operation may refer to shown in Fig. 3, Here, the present invention no longer repeats.
Fig. 6 is a kind of structural schematic diagram of application program updating device 60 provided in an embodiment of the present invention, certainly, the present invention Embodiment is only illustrated by taking Fig. 6 as an example, but does not represent that present invention is limited only by this.Shown in Figure 6, this applies journey Sequence update device 60 may include:
Acquisition module 601, for obtaining operational order.
Acquisition module 601 is additionally operable to obtain zone bit information according to operational order, and zone bit information is used to indicate using journey The updating result of sequence.
Determining module 602 executes updating operation for determining whether according to zone bit information to application program.
Optionally, operational order is to power on instruction.
Determining module 602, if being the first information specifically for zone bit information, it is determined that execute upgrading behaviour to application program Make, the first information fails for application program updating.
Optionally, determining module 602, if being the second information also particularly useful for zone bit information, it is determined that initialization application Program, the second information are application program updating success.
Optionally, operational order is upgrade command, includes target version information in upgrade command.
Determining module 602, if being the first information specifically for zone bit information, it is determined that execute upgrading behaviour to application program Make, include upgraded version information in the first information, target version information is consistent with upgraded version information, first information instruction upgrading The corresponding application program updating failure of version information.
Optionally, determining module 602, if being the second information also particularly useful for zone bit information, it is determined that initialization application Program includes upgraded version information in the second information, and target version information is consistent with upgraded version information, the instruction liter of the second information The corresponding application program updating success of grade version information.
Optionally, determining module 602, if being third information also particularly useful for zone bit information, it is determined that application program Updating operation is executed, includes upgrade version by application program updating to the corresponding application program of target version information, in third information This information, target version information are higher than upgraded version information, and third information indicates the corresponding application program liter of upgraded version information Grade failure.
Application program updating device 60 shown in the embodiment of the present invention, can execute technology shown in above method embodiment Scheme, realization principle and advantageous effect are similar, are no longer repeated herein.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer read/write memory medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or The various media that can store program code such as person's CD.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (12)

1. a kind of application program updating method, which is characterized in that including:
Obtain operational order;
Zone bit information is obtained according to the operational order, the zone bit information is used to indicate the upgrading knot of the application program Fruit;
Determined whether to execute updating operation to the application program according to the zone bit information.
2. according to the method described in claim 1, it is characterized in that, the operational order is to power on instruction;
It is described to be determined whether to execute updating operation to the application program according to the zone bit information, including:
If the zone bit information is the first information, it is determined that execute updating operation, the first information to the application program Fail for the application program updating.
3. according to the method described in claim 2, it is characterized in that, further including:
If the zone bit information is the second information, it is determined that initialize the application program, second information is described answer It is upgraded successfully with program.
4. according to the method described in claim 1, it is characterized in that, the operational order be upgrade command, the upgrade command In include target version information;
It is described to be determined whether to execute updating operation to the application program according to the zone bit information, including:
If the zone bit information is the first information, it is determined that execute updating operation, the first information to the application program In include upgraded version information, the target version information is consistent with the upgraded version information, first information instruction institute State the corresponding application program updating failure of upgraded version information.
5. according to the method described in claim 4, it is characterized in that, further including:
If the zone bit information is the second information, it is determined that initialize the application program, include liter in second information Grade version information, the target version information is consistent with the upgraded version information, and second information indicates the upgrade version The corresponding application program updating success of this information.
6. according to the method described in claim 4, it is characterized in that, further including:
If the zone bit information is third information, it is determined that execute updating operation to the application program, journey is applied by described Sequence upgrades to the corresponding application program of the target version information, includes upgraded version information, the mesh in the third information It marks version information and is higher than the upgraded version information, the third information indicates the corresponding application program of the upgraded version information Upgrading failure.
7. a kind of application program updating device, which is characterized in that including:
Acquisition module, for obtaining operational order;
The acquisition module is additionally operable to obtain zone bit information according to the operational order, and the zone bit information is used to indicate The updating result of the application program;
Determining module executes updating operation for determining whether according to the zone bit information to the application program.
8. device according to claim 7, which is characterized in that the operational order is to power on instruction;
The determining module, if being the first information specifically for the zone bit information, it is determined that executed to the application program Updating operation, the first information fail for the application program updating.
9. device according to claim 8, which is characterized in that
The determining module, if being the second information also particularly useful for the zone bit information, it is determined that initialization is described to apply journey Sequence, second information are application program updating success.
10. device according to claim 7, which is characterized in that the operational order is upgrade command, the upgrade command In include target version information;
The determining module, if being the first information specifically for the zone bit information, it is determined that executed to the application program Updating operation includes upgraded version information, the target version information and the upgraded version information one in the first information It causes, the first information indicates the corresponding application program updating failure of the upgraded version information.
11. device according to claim 10, which is characterized in that
The determining module, if being the second information also particularly useful for the zone bit information, it is determined that initialization is described to apply journey Sequence includes upgraded version information in second information, and the target version information is consistent with the upgraded version information, described Second information indicates the corresponding application program updating success of the upgraded version information.
12. device according to claim 10, which is characterized in that
The determining module, if being third information also particularly useful for the zone bit information, it is determined that held to the application program Row updating operation, by the application program updating to the corresponding application program of the target version information, in the third information Including upgraded version information, the target version information is higher than the upgraded version information, and the third information indicates the liter The corresponding application program updating failure of grade version information.
CN201710087133.0A 2017-02-17 2017-02-17 application program updating method and device Pending CN108469958A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710087133.0A CN108469958A (en) 2017-02-17 2017-02-17 application program updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710087133.0A CN108469958A (en) 2017-02-17 2017-02-17 application program updating method and device

Publications (1)

Publication Number Publication Date
CN108469958A true CN108469958A (en) 2018-08-31

Family

ID=63266597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710087133.0A Pending CN108469958A (en) 2017-02-17 2017-02-17 application program updating method and device

Country Status (1)

Country Link
CN (1) CN108469958A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012079400A1 (en) * 2010-12-15 2012-06-21 中兴通讯股份有限公司 Method and apparatus for upgrading embedded system bootrom
CN104699491A (en) * 2013-12-06 2015-06-10 中兴通讯股份有限公司 Upgrade processing method and terminal device of application program
CN105354063A (en) * 2015-11-18 2016-02-24 上海联影医疗科技有限公司 Online program upgrading method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012079400A1 (en) * 2010-12-15 2012-06-21 中兴通讯股份有限公司 Method and apparatus for upgrading embedded system bootrom
CN104699491A (en) * 2013-12-06 2015-06-10 中兴通讯股份有限公司 Upgrade processing method and terminal device of application program
CN105354063A (en) * 2015-11-18 2016-02-24 上海联影医疗科技有限公司 Online program upgrading method and system

Similar Documents

Publication Publication Date Title
CN110134415A (en) A kind of controller and its method for upgrading software and device
CN110347414A (en) Firmware update, device, equipment and computer readable storage medium
US8595713B2 (en) Radio base station and a method of operating a radio base station
CN109002310A (en) firmware upgrade method
US20220200798A1 (en) Key code data burning method, device, terminal equipment and readable storage medium
CN107704285B (en) Multi-version configuration chip, system and method for field programmable gate array
US20090198770A1 (en) System and method of updating codes in controller
CN114003538B (en) Identification method of intelligent network card and intelligent network card
CN108776587B (en) Data acquisition method and device, computer equipment and storage medium
CN108829619A (en) A kind of continuous topological structure of hard disk ID and hard disk ID localization method
CN103365701A (en) Work method of analog card reader and analog communication system
CN110633091A (en) Electronic module and software wireless upgrading method thereof
CN105468302A (en) Data processing method, apparatus and system
CN108628732B (en) Traversal test method and device for application interface control
CN108510287A (en) Judgment method, electronic device and the computer readable storage medium that client pays a return visit
CN107992315A (en) A kind of application program automatically updating method and storage medium
CN109377383A (en) Product data synchronous method, device, computer equipment and storage medium
CN108833584A (en) Information push method, terminal, server and computer storage medium
CN106502750B (en) OTA upgrade method and Bluetooth chip
CN109002305A (en) A kind of update method and its system of device program
CN104598374A (en) Failure script correcting method and equipment
CN109426511A (en) Soft core update method and system
CN108469958A (en) application program updating method and device
CN106951296A (en) A kind of Oftware updating method and device
CN101197959B (en) Terminal control method, system and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180831