Detailed description of the invention
For making the purpose of the application, technical scheme and advantage clearer, specifically real below in conjunction with the application
Execute example and technical scheme is clearly and completely described by corresponding accompanying drawing.Obviously, described
Embodiment is only some embodiments of the present application rather than whole embodiments.Based on the enforcement in the application
Example, the every other enforcement that those of ordinary skill in the art are obtained under not making creative work premise
Example, broadly falls into the scope of the application protection.
The information updating process that Fig. 1 provides for the embodiment of the present application, specifically includes following steps:
S101: obtain the check information that the customizing messages in terminal is corresponding.
The executive agent of the information updating method that the embodiment of the present application provides may is that server, terminal or is
System etc..Described executive agent is not intended that the restriction to the application, and for the ease of describing, the application implements
Example is all to illustrate as a example by server by executive agent.
In the embodiment of the present application, described customizing messages can be the software in terminal or other specific literary compositions
Part, wherein, firmware (Firmware) is exactly a kind of typical software in terminal, general, firmware quilt
Band EEPROM (the Electrically Erasable Programmable of write terminal
Read-Only Memory, EEPROM), or it is cured in the read only memory (Read-Only of terminal
Memory, ROM) in, it is the software of bottom hardware direct interaction with terminal.Such as, for individual
Computer (Personal Computer, PC) terminal, be solidificated in the ROM on PC mainboard is basic
Input-output system (Basic Input Output System, BIOS) is exactly the firmware of this PC;For hands
Machine terminal, the mobile phone operating system in flash memory type read only memory (flashROM) on write mobile phone is just
It it is the firmware of this mobile phone.For the ease of describing, it is terminal that the embodiment of the present application is based on described customizing messages
On the application scenarios of firmware, the information updating method providing the embodiment of the present application illustrates.
General, periodically or non-periodically can be updated the firmware in terminal (updating, it is possible to be referred to as
Upgrading) so that this firmware keeps consistent with the firmware of the latest edition preserved on server, thus improves end
The function of operating system and/or revise the defect of operating system in terminal on end.
In the prior art, when the firmware in terminal is updated, can be sent out by terminal to server
Play firmware more newly requested, then server can be by oneself preservation, the firmware of latest edition or this is up-to-date
The download address of the firmware of version is sent to terminal, and then by this terminal, the firmware of terminal is carried out full dose
Update, that is, replace the firmware of this terminal with the firmware of this latest edition so that the firmware of terminal updates
To latest edition;Further, in actual applications, if carry out full dose renewal every time, terminal can be increased
Burden and flow consumption, therefore, when the firmware in terminal is updated, terminal can also to
Carry the version number of firmware of oneself during firmware that server is initiated is more newly requested, then server is by terminal
The comparison of version of firmware of firmware and latest edition, it may be determined that the difference going out between the two, and can looking into
Find the difference update bag corresponding with this difference of preservation, and by this difference update bag, or by this difference more
The download address of new bag is sent to terminal, and then by this terminal, the firmware of terminal is carried out difference update,
That is, the firmware of terminal is carried out use difference update bag incremental update or partial replacement (can be collectively referred to as difference
Update) so that the firmware of terminal is updated to latest edition.
But, in some scenarios, user or assailant likely get the firmware to terminal and operate
Authority, such as, use third party's instrument terminal is carried out root, it is thus achieved that superuser right, Jin Erke
To revise the firmware of terminal.In such cases, although the version number of the firmware of terminal does not changes, but terminal
The actual content of the firmware of identical version number that preserves with server of firmware the most inconsistent, consequently, it is possible to lead
Cause the above-mentioned firmware to terminal and carry out difference update failure, and, still can be poor even if retrying terminal
Divide and update bag, it is impossible to the firmware of the most more new terminal.
For these reasons, in the embodiment of the present application, server before the firmware of terminal is updated,
The check information of this firmware can be obtained, for this firmware being verified, to have determined this firmware the most
It is modified, how this firmware is updated so that it is determined that follow-up.
In addition, it is necessary to explanation, in addition to the above-mentioned process actively being initiated renewal firmware by terminal,
Can also actively be initiated to update the process of firmware equally by server, concrete, save on server
After the firmware of redaction, actively the firmware of redaction can be pushed to terminal and carry out real-time firmware renewal,
Or, terminal can temporarily preserve the firmware of the redaction of server push, user determine when to carry out firmware
Update.
S102: judge whether described check information meets default result, the most then perform step S103,
Otherwise, step S104 is performed.
S103: determine and described customizing messages is carried out difference update.
S104: determine and described customizing messages is carried out full dose renewal.
It should be noted that server determine the update mode customizing messages in terminal is carried out it
After, actively pushing to terminal and update bag (difference bag or full dose bag) accordingly, terminal receives this renewal
Bao Houzai carries out difference update or full dose renewal to from customizing messages with it.Or, server can also be only
Carry out to terminal pointing out the update mode determined, terminal download from server voluntarily and update bag accordingly, so
After, then carry out difference update or full dose renewal to from customizing messages with it, etc..Therefore, the application couple
After server determines update mode, the executive agent of the corresponding update action of subsequent execution does not limit,
Obviously, this executive agent both can be terminal, it is also possible to be server.
By said method, owing to server is according to the check information of firmware in terminal, it may be determined that this firmware
The most it is modified, the most then full dose can be used to update bag the firmware in terminal is carried out full dose renewal, no
Then, can use difference update bag that the firmware in terminal is carried out difference update, and then, can be in terminal
Firmware is updated successfully.
In the embodiment of the present application, for above-mentioned steps S101, the customizing messages in terminal is obtained corresponding
Check information, specifically includes: receiving the check information that terminal sends, wherein, described check information is basis
Customizing messages in described terminal generates, and described check information specifically comprises the mark letter of described customizing messages
Breath and characteristic information.Wherein, described characteristic information can be whether arbitrary can be used for determines this customizing messages
The information being modified.
More specifically, when described customizing messages is firmware, described identification information specifically includes version number,
Described characteristic information specifically includes system space (system space is alternatively referred to as: size or size), message is plucked
Want, at least one in CRC.By described characteristic information is verified, it may be determined that
Firmware in terminal has been modified, and then uses the mode being suitable for be updated this firmware so that
The renewable success of this firmware.
Further, in actual applications, the school of this firmware can be generated by terminal according to self firmware
Testing information, wherein, this check information specifically comprises version number and the characteristic information of this firmware.General, version
This number can obtain by reading the configuration file of this firmware, and for characteristic information, then can be according to concrete feelings
Condition uses and generates method accordingly, and the embodiment of the present application lists three kinds and (system space, eap-message digest, follows
Ring redundancy check code) applicable characterization value is as characteristic information, and certainly, other are arbitrary can reflect this firmware
The characterization value whether being modified can also be used as characteristic information, and described characterization value is chosen not structure
The restriction of the application in pairs.
Here, be respectively directed to these three characterization value, the mode generating characteristic information is briefly described.
Selecting system space is as characteristic information, and system space can carry out table by byte or than top grade unit
Showing, when firmware is modified, the system space of firmware also can change, and calculates whole literary compositions that firmware comprises
The system space of part, is the system space of firmware.
Choosing eap-message digest as characteristic information, eap-message digest is based on one-way Hash algorithm, determines only
The value of the regular length of an one corresponding message or file, when firmware is modified, the eap-message digest of firmware is also
Can change.Conventional one-way Hash algorithm includes: Message Digest 55 (Message Digest
Algorithm 5, MD5), Secure Hash Algorithm (Secure Hash Algorithm, SHA), message recognizes
Card code (Message Authentication Code, MAC) etc..
Choosing CRC as characteristic information, CRC is based on modulo operation, really
The value of the regular length of one message of the correspondence made or file, when firmware is modified, the circulation of firmware is superfluous
Remaining check code also can change.
Further, for above-mentioned steps S102, it is judged that whether described check information meets default result,
Specifically include: on the server, search the standard information corresponding with described check information, generate described standard
The characteristic information of information, it is judged that the characteristic information that described check information comprises whether with the spy of described standard information
Reference manner of breathing is same, if, it is determined that described check information meets default result, otherwise, it determines described verification
Information does not meets default result.
Further, on the server, search the standard information corresponding with described check information, specifically wrap
Including: on the server, search each standard information pre-saved, wherein, each standard information comprises respectively
There is the identification information of self, in each standard information found, determine the identification information and described school comprised
The standard information that identification information that the information of testing comprises is identical, as the standard letter corresponding with described check information
Breath.
Here, illustrate described standard information, all of standard information is all stored in advance in service
On device, when not yet there is customizing messages in terminal, terminal can obtain the mark being applicable to self from server
Calibration information, hereafter, the standard information that terminal gets can become the customizing messages in terminal.Obviously, by
After terminal gets standard information, this standard information may be modified, therefore, specific in terminal
The information standard information corresponding with on server may differ, that is, the customizing messages before being modified is just
It is: the standard information corresponding with the flag information that this customizing messages comprises.Certainly, if terminal is not to acquisition
To standard information modify, then, the standard information phase that described customizing messages is corresponding with on server
With.
More specifically, when described customizing messages is the firmware in terminal, described standard information specifically includes
That pre-save on server, be applicable to the firmware of described terminal.Server is at the firmware got in terminal
Version number and characteristic information after, that can preserve, version number is identical with the version number of the firmware in terminal
Firmware, and determine the characteristic information of this firmware of preservation, then, it is judged that the characteristic information of the firmware in terminal
The most identical with the characteristic information of this firmware preserved, the most then can determine that the firmware in terminal is unmodified,
May determine that and carry out difference update, otherwise, it may be determined that the firmware in terminal is revised, if carrying out difference update
May be failed, hence, it can be determined that carry out full dose renewal.
The application, to after server determines the update mode of the customizing messages in terminal, performs this renewal side
The executive agent of formula, and concrete executive mode do not limits, here, only illustrate two of which
Feasible executive mode.For above-mentioned steps S104 and S105, determine and described customizing messages is carried out difference
Update, specifically include: server is pointed out to described terminal, make described terminal obtain from described server
Difference bag, and use the difference bag of acquisition, will be and described school from described customizing messages difference update with it
The standard information that information of testing is corresponding;Determine and described customizing messages is carried out full dose renewal, specifically include: service
Device is pointed out to described terminal, makes described terminal obtain corresponding with described check information from described server
Standard information, and use the standard information of acquisition, will be updated to and institute from described customizing messages full dose with it
State the standard information that check information is corresponding.
Further, in order to improve the treatment effeciency of server, server can not also be sent out receiving terminal
After the check information sent, determine characteristic information the most in real time, but can predefine and preserve each version
The characteristic information of firmware, like this, server is after receiving the check information that terminal sends, permissible
The version number comprised according to this check information, directly in each characteristic information preserved, searches corresponding version
Number characteristic information identical with the version number that this check information comprises, then the firmware determining in terminal of comparing
The most revise.
In the embodiment of the present application, except using the above-mentioned mode being sent check information by terminal to server
Outside, it is also possible to use the mode being sent check information by server to terminal, it is achieved information updating process.
Concrete, server can determine the verification of the firmware of this version number self preserved according to the version number of terminal
Information, and be sent to terminal, then, by terminal by this check information of receiving with according to consolidating in terminal
The check information that part generates is compared, it is judged that the firmware in terminal is revised the most, and will determine that result is sent out
Give server, then server, can be able to pass through when judged result is for being according to the judged result received
Terminal, carries out full dose renewal to the firmware in terminal, when judged result is no, can pass through terminal, to end
Firmware on end carries out difference update.This mode, compared with former mode, adds terminal and server
Between interaction times, however, it is possible to reduce server burden.Can be according to the need of actual application scenarios
Ask, both modes are selected.
If additionally, sent check information by server to terminal, the port used due to server is probably solid
Fixed, hacker there may be and attacks this port pointedly, distorts the verification letter that server sends to each terminal
Breath, therefore, server can be then forwarded to terminal after check information is encrypted and is signed, thus, can
To improve the safety of server and the interaction of terminal;And if being sent verification letter by terminal to server
Breath, typically can use random port, therefore, add the difficulty of assault, comparatively speaking due to terminal
This mode is safer.
In actual applications, it is also possible to there is such a case that the firmware version in terminal and latest firmware version
Originally differ greatly, to such an extent as to need to obtain a lot of difference update bags could be by the firmware upgrade in terminal to
Redaction.In this case, compared to difference update, the firmware in terminal is carried out full dose and updates possible
More efficiently, and the memory space fragment in terminal can be reduced, improve the efficiency of terminal.
It addition, in some scenarios, terminal, may be by the amendment to firmware according to the security strategy of self
Operation note is in system journal, and in this case, terminal and server can not also check check information,
But only by terminal directly according to system journal, determine that the firmware of self is revised the most, the most then to clothes
Business device request carries out full dose renewal, otherwise, carries out difference update to server request.It should be noted that
General, when not obtaining superuser right, may the system journal of reading terminals.
In the embodiment of the present application, described customizing messages can also is that other information in addition to firmware, because of
This, accordingly, judging whether check information corresponding to these other information meets default result, it is also possible to right
These other information carry out other process except for update.Described process includes but not limited to: updates, lock
Determine, recover, unpack, encapsulate, encrypt, the operation such as deciphering.
As described in above-mentioned steps, when described customizing messages is the firmware in terminal, server can be according to obtaining
The check information of the firmware in terminal taken, then, according to this check information, uses the mode being suitable for this
Firmware is updated so that the renewable success of this firmware.
The information updating process corresponding to Fig. 1 that Fig. 2 provides for the embodiment of the present application, specifically includes following step
Rapid:
S201: terminal, for from customizing messages with it, generates corresponding check information.
S202: described check information is sent to server.
S203: after receiving the difference update prompting that described server sends, described customizing messages is carried out
Difference update, after receiving the full dose renewal prompting that described server sends, is carried out described customizing messages
Full dose updates, and wherein, the prompting of described difference update is to be determined that described check information meets by described server
Sending after presetting result, it is to be determined described check information not by described server that described full dose updates prompting
Send after meeting default result.
Described customizing messages specifically includes the firmware in terminal, and described check information specifically comprises described specific letter
The identification information of breath and characteristic information, described identification information specifically includes version number, and described characteristic information is concrete
Including at least one in system space, eap-message digest, CRC.
According to above-mentioned explanation, figure 3 illustrates the detailed mistake of the information updating that the embodiment of the present application provides
Journey, specifically includes following steps:
S301: terminal generates the check information of firmware of self, this check information include but not limited to version number,
Characteristic information etc..
It is more newly requested that S302: terminal to server sends firmware, and this firmware upgrade request carries terminal and generates
Check information.
Based on different application scenarios, terminal can also send more information to server simultaneously, such as,
The model of terminal, device identification etc..
S303: server according to the version number received, search whether can the firmware of version updating, if
Then perform step S304, otherwise, be latest edition the most to terminal notifying.
It addition, in some scenarios, the terminal of different model may can only use the firmware of particular version,
In this case, the up-to-date firmware of version is not necessarily suitable terminal, and therefore, server can be according to reception
The model arrived, filters out this terminal is suitable for, the firmware of version updating.
S304: server, according to the version number received, is searched the firmware of this version number preserved, and is determined
The characteristic information of this firmware preserved.
S305: the server characteristic information to receiving is compared with the characteristic information that server is determined,
Determine that both are the most identical.
S306: server, when both are identical, sends the difference update bag of firmware to terminal, when both not phases
Meanwhile, the firmware of latest edition is sent to terminal.
Or, server can also send the difference update bag of firmware or the firmware download address of latest edition.
It addition, in some scenarios, server not necessarily has difference update bag, in this case, it is impossible to end
Firmware on end carries out difference update, can only carry out full dose renewal.
The information for updating firmware that S307: terminal provides according to server, the correspondingly firmware to self
Carry out difference update or full dose updates so that the firmware of self is updated to latest edition.
The information updating method provided for the embodiment of the present application above, based on same thinking, the application implements
Example also provides for corresponding information updating apparatus, as shown in Figure 4, Figure 5.
The information updating apparatus structural representation that Fig. 4 provides for the embodiment of the present application, specifically includes:
Acquisition module 401, for obtaining the check information that the customizing messages in terminal is corresponding;
More new module 402, is used for judging whether described check information meets default result, if, it is determined that
Described customizing messages is carried out difference update, otherwise, it determines described customizing messages is carried out full dose renewal.
Described acquisition module 401 is specifically for receiving the check information that terminal sends, wherein, and described verification letter
Breath is to generate according to the customizing messages in described terminal, and described check information specifically comprises described customizing messages
Identification information and characteristic information.
Described more new module 402 specifically for, on the server, search the mark corresponding with described check information
Calibration information, generates the characteristic information of described standard information, it is judged that the characteristic information that described check information comprises is
The characteristic information of no and described standard information is identical, if, it is determined that described check information meets default result,
Otherwise, it determines described check information does not meets default result.
Described more new module 402 specifically for, on the server, search each standard information of pre-saving,
Wherein, each standard information includes the identification information of self respectively, in each standard information found,
Determine the standard information that the identification information comprised is identical with the identification information that described check information comprises, as with
The standard information that described check information is corresponding.
Described more new module 402 specifically for, when judging that described check information meets default result, to institute
State terminal to point out, make described terminal obtain difference bag from described server, and use the difference bag of acquisition,
By being the standard information corresponding with described check information from described customizing messages difference update with it, work as judgement
When described check information does not meets default result, point out to described terminal, make described terminal from described clothes
Business device obtains the standard information corresponding with described check information, and uses the standard information of acquisition, will from
Described customizing messages full dose be updated to the standard information corresponding with described check information
Described customizing messages specifically includes the firmware in terminal, and described standard information specifically includes on server pre-
That first preserve, be applicable to the firmware of described terminal, described identification information specifically includes version number, described feature
Information specifically includes at least one in system space, eap-message digest, CRC.
Concrete above-mentioned device as shown in Figure 4 may be located on server.
Another information updating apparatus structural representation that Fig. 5 provides for the embodiment of the present application, specifically includes:
Generation module 501, for for the customizing messages in terminal, generating corresponding check information;
Sending module 502, for being sent to server by described check information;
More new module 503, for after receiving the difference update prompting that described server sends, to described
Customizing messages carries out difference update, after receiving the full dose renewal prompting that described server sends, to described
Customizing messages carries out full dose renewal, wherein, the prompting of described difference update be by described server determine described
Check information sends after meeting default result, and it is determining by described server that described full dose updates prompting
State check information not meet and send after default result.
Described customizing messages specifically includes the firmware in terminal, and described check information specifically comprises described specific letter
The identification information of breath and characteristic information, described identification information specifically includes version number, and described characteristic information is concrete
Including at least one in system space, eap-message digest, CRC.
Concrete above-mentioned device as shown in Figure 5 may be located in terminal.
The information updating method provided for the embodiment of the present application above and device, based on same thinking, this Shen
Embodiment please also provide for corresponding information update system, as shown in Figure 6, described information update system includes end
End and server, in actual applications, terminal and server can be direct-connected by cable, it is also possible to by office
The networks such as territory net, wide area network are attached.
Described terminal, for for from customizing messages with it, generating corresponding check information, by described school
The information of testing is sent to described server, after receiving the difference update prompting that described server sends, to institute
State customizing messages and carry out difference update, after receiving the full dose renewal prompting that described server sends, to institute
State customizing messages and carry out full dose renewal;
Described server, for receiving the described check information that described terminal sends, and judges described verification letter
Whether breath meets default result, the most then send difference update prompting to described terminal, otherwise, to described
Terminal sends full dose and updates prompting.
It should be noted that the difference update that server is sent by the application is pointed out and full dose updates prompting
Presentation format does not limit, and both can use the presentation format of text message, it would however also be possible to employ picture, sound
The presentation format of the multimedia messages such as frequency, etc..
The embodiment of the present application provides a kind of information updating method, Apparatus and system, and the method obtains in terminal
The check information that customizing messages is corresponding, it is judged that whether described check information meets default result, the most right
Described customizing messages carries out difference update, otherwise, described customizing messages carries out full dose renewal, wherein, institute
Stating customizing messages and specifically include firmware, described check information specifically includes system space, eap-message digest, circulation
At least one in redundancy check code, and version number.By said method, owing to server is according to this school
Test information, it may be determined that the firmware in terminal is modified the most, the most then full dose can be used to update bag right
Firmware in terminal carries out full dose renewal, otherwise, difference update bag can be used poor to the firmware in terminal
Divide and update, and then, the firmware in terminal can be updated successfully.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meter
Calculation machine program product.Therefore, the present invention can use complete hardware embodiment, complete software implementation or knot
The form of the embodiment in terms of conjunction software and hardware.And, the present invention can use and wherein wrap one or more
Computer-usable storage medium containing computer usable program code (include but not limited to disk memory,
CD-ROM, optical memory etc.) form of the upper computer program implemented.
The present invention is with reference to method, equipment (system) and computer program product according to embodiments of the present invention
The flow chart of product and/or block diagram describe.It should be understood that can by computer program instructions flowchart and
/ or block diagram in each flow process and/or flow process in square frame and flow chart and/or block diagram and/
Or the combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embedding
The processor of formula datatron or other programmable data processing device is to produce a machine so that by calculating
The instruction that the processor of machine or other programmable data processing device performs produces for realizing at flow chart one
The device of the function specified in individual flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or the process of other programmable datas can be guided to set
In the standby computer-readable memory worked in a specific way so that be stored in this computer-readable memory
Instruction produce and include the manufacture of command device, this command device realizes in one flow process or multiple of flow chart
The function specified in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes
Sequence of operations step must be performed to produce computer implemented place on computer or other programmable devices
Reason, thus the instruction performed on computer or other programmable devices provides for realizing flow chart one
The step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
In a typical configuration, calculating equipment includes one or more processor (CPU), input/defeated
Outgoing interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory
(RAM) and/or the form such as Nonvolatile memory, such as read only memory (ROM) or flash memory (flash
RAM).Internal memory is the example of computer-readable medium.
Computer-readable medium includes that removable media permanent and non-permanent, removable and non-can be by appointing
Where method or technology realize information storage.Information can be computer-readable instruction, data structure, program
Module or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory
(PRAM), static RAM (SRAM), dynamic random access memory (DRAM), its
The random access memory (RAM) of his type, read only memory (ROM), electrically erasable are read-only
Memorizer (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read only memory
(CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape, tape magnetic
Disk storage or other magnetic storage apparatus or any other non-transmission medium, can be used for storage can be calculated
The information that equipment accesses.According to defining herein, computer-readable medium does not include temporary computer-readable matchmaker
Body (transitory media), such as data signal and the carrier wave of modulation.
Also, it should be noted term " includes ", " comprising " or its any other variant are intended to non-
Comprising of exclusiveness, so that include that the process of a series of key element, method, commodity or equipment not only wrap
Include those key elements, but also include other key elements being not expressly set out, or also include for this process,
The key element that method, commodity or equipment are intrinsic.In the case of there is no more restriction, statement " include
One ... " key element that limits, it is not excluded that including the process of described key element, method, commodity or setting
Other identical element is there is also in Bei.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer journey
Sequence product.Therefore, the application can use complete hardware embodiment, complete software implementation or combine software and
The form of the embodiment of hardware aspect.And, the application can use and wherein include calculating one or more
The computer-usable storage medium of machine usable program code (include but not limited to disk memory, CD-ROM,
Optical memory etc.) form of the upper computer program implemented.
The foregoing is only embodiments herein, be not limited to the application.For this area skill
For art personnel, the application can have various modifications and variations.All institutes within spirit herein and principle
Any modification, equivalent substitution and improvement etc. made, within the scope of should be included in claims hereof.