CN103297482B - Information processing method and equipment - Google Patents
Information processing method and equipment Download PDFInfo
- Publication number
- CN103297482B CN103297482B CN201210055714.3A CN201210055714A CN103297482B CN 103297482 B CN103297482 B CN 103297482B CN 201210055714 A CN201210055714 A CN 201210055714A CN 103297482 B CN103297482 B CN 103297482B
- Authority
- CN
- China
- Prior art keywords
- packet
- files
- blocks
- client
- new data
- 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.)
- Active
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
Disclose information processing method and equipment.Described information processing method, is applied to server end, including: obtaining the first packet, described first packet is corresponding to the first application;Obtaining the second packet, described second packet is corresponding to the second application;Divide each file in the first packet, to obtain multiple first blocks of files;Divide each file in the second packet, to obtain multiple second blocks of files;Multiple first blocks of files are compared with multiple second blocks of files, to obtain more new data packets, in more new data packets, wherein comprises correspondence position and the data content of the described second packet blocks of files different from described first packet.
Description
Technical field
The present invention relates to information processing method and equipment.More particularly, it relates to the net needed for application upgrade can be reduced
Network flow and information processing method and the equipment of more new data packets can be dynamically generated.
Background technology
Current APK (AndroidPackage, Android installation kit) upgrading needs the APK of redaction to download from network
Getting off, the APK then replacing legacy version upgrades.But, existing this scheme network flow consumption is relatively big, the most right
For game class application (size is at tens M) that size is bigger, this problem more highlights.
One possible solution it is oneself achievement unit decilitre level in application, wherein to resource file (e.g., Background
Sheet etc.) carry out special handling, thus reduce upgrading flow.But, this scheme disadvantageously, for developer operate
More complicated, and the upgrading of the resource file of such as background picture etc can only be realized, and mastery routine (dex file) cannot be realized
Upgrading.
It addition, application upgrade method of the prior art also includes by programmer new, legacy version to prestore
APK compares, thus generates more new data packets.But, the shortcoming of this scheme be can not by server end automatically, dynamic
Generate to state more new data packets.Wherein, more new data packets is more commonly referred to as patch files.In this scheme, with file
For unit, the file updated is replaced.But, owing to the data on hard disk are in units of dish, update number even if therefore using
According to bag, the data volume of required transmission is the biggest.
Summary of the invention
In view of situation above, it is desirable to provide the new messaging device for application upgrade and method, it can reduce
Network traffics needed for upgrading.
According to an aspect of the invention, it is provided a kind of information processing method, it is applied to server end, including:
Obtaining the first packet, described first packet is corresponding to the first application;
Obtaining the second packet, described second packet is corresponding to the second application;
Divide each file in the first packet, to obtain multiple first blocks of files;
Divide each file in the second packet, to obtain multiple second blocks of files;
Multiple first blocks of files are compared with multiple second blocks of files, to obtain more new data packets, is wherein updating
Packet comprises correspondence position and the data content of the described second packet blocks of files different from described first packet.
Preferably, information processing method according to embodiments of the present invention also includes:
The first instruction is received from the client being connected with described server;
According to described first instruction, by the transmission of described more new data packets to described client.
Preferably, information processing method according to embodiments of the present invention also includes:
The second instruction is received from the client being connected with described server;
Judge whether described client stores the first packet;
If described client stores the first packet, then described more new data packets is sent to client, makes institute
State client and obtain the second packet according to the first packet and more new data packets, and carry out application liter by the second packet
Level;
If described client does not stores the first packet, then described second packet is sent to client, makes institute
State client and directly carry out application upgrade by the second packet.
Preferably, in information processing method according to embodiments of the present invention, by multiple first blocks of files and multiple second
The step that blocks of files compares includes:
Calculate multiple first blocks of files and multiple second blocks of files the verification of each and;
By the verification of each in multiple second blocks of files and respectively with the school of each in multiple second blocks of files
Test and compare;
If the verification of the two is with identical, verify the most by force;
If the result of strong verification represents that the two is identical, then record the correspondence position of same file block;Otherwise record second
Packet and the correspondence position of the different blocks of files of the first packet and data content.
Preferably, in information processing method according to embodiments of the present invention, the step dividing packet includes:
Once divide the first packet to obtain one group of multiple first blocks of files;
Repeatedly divide the second packet organizes multiple second blocks of files, in the start bit divided between the most each group to obtain more
Put and there is predetermined space, and
Wherein the step that multiple first blocks of files and multiple second blocks of files compare is included:
One group of multiple first blocks of files is compared with each groups organized in multiple second blocks of files respectively,
The most more new data packets also includes the second packet and the correspondence position of the identical blocks of files of the first packet.
Preferably, in information processing method according to embodiments of the present invention, the step obtaining the first packet includes:
The first packet is uploaded to described server by client.
Preferably, in information processing method according to embodiments of the present invention, the step obtaining the first packet includes:
Client is accessed, to obtain the first packet of storage in client by server.
According to another aspect of the present invention, it is provided that a kind of information processing method, it is applied to client, described method bag
Include:
An instruction is sent to the server being connected with client;
Judge whether client stores the first packet;
When client stores the first packet, according to this instruction, obtain more from the server being connected with client
New data packets, wherein produces more new data packets as follows at described server end:
Obtain the first packet, the second packet;
Divide each file in the first packet, to obtain multiple first blocks of files;
Divide each file in the second packet, to obtain multiple second blocks of files;
Multiple first blocks of files are compared with multiple second blocks of files, to obtain more new data packets, is wherein updating
Packet comprises correspondence position and the data content of the described second packet blocks of files different from described first packet;
First packet is merged with more new data packets, thus generates the second packet, to carry out application upgrade,
Wherein, described first packet, the second packet correspond respectively to the first application, the second application.
Preferably, in information processing method according to embodiments of the present invention,
When client does not stores the first packet, obtain the second packet from server.
Preferably, information processing method according to embodiments of the present invention farther includes to upload from user end to server
The step of one packet.
According to a further aspect of the invention, it is provided that a kind of messaging device, including:
Obtaining widget, for obtaining the first packet, described first packet is corresponding to the first application, and is used for obtaining
Second packet, described second packet is corresponding to the second application;
Divided parts, for dividing each file in the first packet, to obtain multiple first blocks of files, and is used for
Divide each file in the second packet, to obtain multiple second blocks of files;
Comparing unit, for comparing multiple first blocks of files with multiple second blocks of files;And
Generating unit, for generating more new data packets according to the comparative result of comparing unit, wherein in more new data packets
Comprise correspondence position and the data content of the described second packet blocks of files different from described first packet.
Preferably, messaging device according to embodiments of the present invention also includes:
Command reception parts, for receiving the first instruction from the client being connected with described server;
Transmission part, for according to described first instruction, by the transmission of described more new data packets to described client.
Preferably, messaging device according to embodiments of the present invention also includes:
Command reception parts, for receiving the second instruction from the client being connected with described server;
Judge parts, be used for judging whether described client stores the first packet;
Transmission part, for if it is determined that parts determine stores the first packet in described client, then by described more
New data packets is sent to client, makes described client obtain the second packet according to the first packet and more new data packets, and
Application upgrade is carried out by the second packet;And if it is determined that parts determine does not stores the first packet in described client, then
Described second packet is sent to client, makes described client directly carry out application upgrade by the second packet.
Preferably, in messaging device according to embodiments of the present invention, described comparing unit includes:
Verification and calculating unit, for calculating multiple first blocks of files and the verification of each of multiple second blocks of files
With;
Verification and comparing unit, for by the verification of each in multiple second blocks of files and respectively with multiple second literary composition
The verification of each in part block and comparing;
Verify by force parts, verify the most by force in the case of identical for the verification at the two;
Labelling recording-member, if the result for strong verification represents that the two is identical, then records the correspondence of same file block
Position, otherwise records the second packet and the correspondence position of the different blocks of files of the first packet and data content.
Preferably, in messaging device according to embodiments of the present invention, described divided parts once divides the first number
According to bag to obtain one group of multiple first blocks of files, and repeatedly divide the second packet organizes multiple second blocks of files to obtain more,
In the original position divided, predetermined space is there is between the most each group, and
Wherein said comparing unit by one group of multiple first blocks of files respectively with organize in multiple second blocks of files each
Group compares, and
The most more new data packets also includes the second packet and the correspondence position of the identical blocks of files of the first packet.
Preferably, in messaging device according to embodiments of the present invention, described first packet is by by client
Upload to obtaining widget and obtain.
Preferably, in messaging device according to embodiments of the present invention, described first packet is by by acquisition unit
Part accesses client and obtains.
According to a further aspect of the invention, it is provided that a kind of messaging device, including:
Instruction sends parts, for sending an instruction to the server being connected with client;
Judge parts, be used for judging whether client stores the first packet;
Obtaining widget, with when judge parts determine client stores the first packet time, according to this instruction, from visitor
The server that family end connects obtains more new data packets, wherein produces more new data packets as follows at described server end:
Obtain the first packet, the second packet;
Divide each file in the first packet, to obtain multiple first blocks of files;
Divide each file in the second packet, to obtain multiple second blocks of files;
Multiple first blocks of files are compared with multiple second blocks of files, to obtain more new data packets, is wherein updating
Packet comprises correspondence position and the data content of the described second packet blocks of files different from described first packet;
Merge parts, for being merged with more new data packets by the first packet, thus generate the second packet, to enter
Row application upgrade,
Wherein, described first packet, the second packet correspond respectively to the first application, the second application.
Preferably, in messaging device according to embodiments of the present invention,
When judge parts determine client does not stores the first packet time, described obtaining widget from server obtain second
Packet.
Preferably, messaging device according to embodiments of the present invention farther includes to upload parts, for server
Upload the first packet.
In messaging device according to embodiments of the present invention and method, the file in packet is divided into multiple literary composition
Part block, and generate more new data packets on the basis of blocks of files, thus with in units of file, generate the existing skill of patch file
Art is compared, and further reduces the network traffics needed for application upgrade.Further, this application upgrade is transparent for developer, nothing
Need developer to make extra effort, server end (application shop) complete the generation of AKU.
Accompanying drawing explanation
Fig. 1 show according to embodiments of the present invention, the of the process of the information processing method that is applied to server end
The flow chart of one example;
Fig. 2 show according to embodiments of the present invention, the of the process of the information processing method that is applied to server end
The flow chart of two examples;
Fig. 3 show according to embodiments of the present invention, the flow process of the process of the information processing method that is applied to client
Figure;
Fig. 4 show according to embodiments of the present invention, as server end messaging device configuration first
The block diagram of example;
Fig. 5 show according to embodiments of the present invention, as server end messaging device configuration second
The block diagram of example;And
Fig. 6 show according to embodiments of the present invention, as the block diagram of configuration of messaging device of client.
Detailed description of the invention
Below with reference to accompanying drawings each of the present invention is preferred embodiment described.There is provided referring to the drawings
Describe, to help the understanding of the example embodiment to the present invention limited by appended claims and their equivalents.It includes side
The various details that assistant solves, but they can only be counted as exemplary.Therefore, it would be recognized by those skilled in the art that
Embodiment described herein can be made various changes and modifications, without deviating from scope and spirit of the present invention.And, in order to
Make description more clear succinct, will omit the detailed description that it is well known that function and structure.
During upgrading in application according to the present invention, presence server end and client.At server end, by new and old
The application of two versions, automatically, dynamically produces the more new data packets representing the two difference.In client, by from service
Device end obtains more new data packets, then on the basis of old application, with reference to more new data packets, generates new opplication.Certainly, client
In the case of end does not stores old application, it is also possible to directly download new opplication from server end.
It follows that describe the information processing method being applied to server end with reference first to Fig. 1.
As it is shown in figure 1, described information processing method comprises the steps:
First, in step S101, obtaining the first packet, described first packet is corresponding to the first application, and obtains the
Two packets, described second packet is corresponding to the second application.Such as, the application that the first application is legacy version here, and the
Two application are the application of redaction.First packet and the second packet include multiple file respectively.It addition, here first
Packet can be obtained by client active upload, naturally it is also possible to is obtained by server access client.
Then, in step S102, divide each file in the first packet, to obtain multiple first blocks of files, and draw
Divide each file in the second packet, to obtain multiple second blocks of files.Can be divided in units of the byte of scheduled volume
One, the second packet.
Then, in step S103, multiple first blocks of files are compared with multiple second blocks of files, update number to obtain
According to bag.In more new data packets, wherein comprise the corresponding position of the described second packet blocks of files different from described first packet
Put and data content.
It is pointed out that comparison procedure here can be the process to bit comparison.Specifically, such as, with 5 bytes
For unit the first packet and the second packet be divided into multiple first blocks of files a1 (0~4 byte), a2 (5~9 byte),
A3 (10-14 byte) ... and multiple second blocks of files b1 (0~4 byte), b2 (5~9 byte), b3 (10-14 word
Joint) ....
Then, calculate multiple first blocks of files and multiple second blocks of files the verification of each and.
Then, by the verification of each in multiple second blocks of files and respectively with each in multiple second blocks of files
Verification and compare.That is, b1 is compared with a1, a2 ... respectively, b2 is carried out with a1, a2 ... respectively
Relatively, b3 is compared with a1, a2 ... respectively ....
If the verification of the two is with identical, verify the most by force.What so-called strong verification referred to position one by one carries out essence
Really compare.
If the result of strong verification represents that the two is identical, then record the correspondence position of same file block;Otherwise record second
Packet and the correspondence position of the different blocks of files of the first packet and data content.
But, the shortcoming of this manner of comparison is may not detect same file block fully.For example, it is assumed that the
First blocks of files of 0~4 bytes is identical with the second blocks of files of the 1st~5 bytes, but owing to bit comparison, therefore can not send out
Show such same file block and process as different blocks of files.
For this situation, as preferred embodiment, comparison procedure here can also be to roll circulation dislocation ratio
Process relatively.From the point of view of Gai Kuoing, in this preferred embodiment, the step dividing packet includes: once divide the first number
According to bag to obtain one group of multiple first blocks of files, and repeatedly divide the second packet organizes multiple second blocks of files to obtain more,
In the original position divided, predetermined space is there is between the most each group.In units of 5 bytes, still divide the first packet and
Two packets illustrate.First, the first packet is divided into one group of multiple first blocks of files a1 (0~4 byte), a2 (5~
9 bytes), a3 (10-14 byte) ....Then, the second packet is divided into organizes multiple second blocks of files more: first group:
Block b1 (0~4 byte), b2 (5~9 byte), b3 (10-14 byte) ...;Second group: block b1 (1~5 byte), b2 (6~
10 bytes), b3 (11-15 byte) ...;3rd group: block b1 (2~6 byte), b2 (7~11 byte), b3 (12-16 word
Joint) ....
In this case, the step that multiple first blocks of files and multiple second blocks of files compare is included one group
Multiple first blocks of files compare with each groups organized in multiple second blocks of files respectively.Multiple first file of one of which
The comparison of block and one group of multiple second blocks of files is identical with the method to bit comparison described before.
In this preferred embodiment, compare by rolling circulation dislocation, it is possible to find same file block more fully.Need
It is noted that in the case of dislocation is compared, except correspondence position and the data content of different blocks of files in more new data packets
Outside, also should include the second packet and the correspondence position of the identical blocks of files of the first packet.
In above-mentioned information processing method according to embodiments of the present invention, it is also possible to comprise the steps:
In step S104, receive the first instruction from the client being connected with described server.First instruction described here
For asking to obtain more new data packets to carry out application upgrade.
Then, in step S105, according to described first instruction, by the transmission of described more new data packets to described client.
It is pointed out that described step S104 may reside in step S101 as above~S103 before or it
After.In FIG, step S104 is illustrated after step s 103 as example.Additionally, it is appreciated that step S105 must be
After generating step S103 of more new data packets.
Below, with reference to Fig. 2 describe according to embodiments of the present invention, the information processing method that is applied to server end another
Example.As in figure 2 it is shown, described method includes step S101~S103, S106~S109, wherein, step S101~S103 and Fig. 1
Shown in the step that includes of method identical, be presented with like reference characters here, and for brevity, will
Repeat no more its content.
Unlike the method in Fig. 1, described method also comprises the steps with replacement step S104~S105:
In step S106, receive the second instruction from the client being connected with described server.First instruction described here
For asking to obtain more new data packets to carry out application upgrade.
Then, in step S107, it is judged that whether described client stores the first packet.
If determining in step s 107 and described client storing the first packet, then process and proceed to step
S108.In step S108, described more new data packets is sent to client, makes described client according to the first packet and renewal
Packet obtains the second packet, and carries out application upgrade by the second packet.
On the other hand, if determining in step s 107 and described client not storing the first packet, then process and carry out
To step S109.In step S109, described second packet is sent to client, makes described client directly by the second number
Application upgrade is carried out according to bag.
With step S104 in Fig. 1 and S105 similarly, step S106 in Fig. 2~S107, S109 may reside in as
Before or after upper described step S101~S103.In fig. 2, illustrated after step s 103 as example.It addition,
It is appreciated that step S108 must be after generating step S103 of more new data packets.
It follows that by with reference to Fig. 3 describe according to embodiments of the present invention, the information processing method that is applied to client.As
Described in Fig. 3, described method comprises the steps:
First, in step S301, an instruction is sent to the server being connected with client.
Then, in step S302, it is judged that whether client stores the first packet.
When determine in step s 302 client stores the first packet time, process proceed to step S303.In step
Rapid S303, according to this instruction, obtains more new data packets from the server being connected with client.Wherein said more new data packets is clothes
Business device is obtained by step S101 described above~S103, and in this case, described method can also be wrapped
Include the step uploading the first packet to server.
Finally, in step S304, the first packet is merged with more new data packets, thus generates the second packet,
To carry out application upgrade.Wherein, more new data packets includes how to construct the mapping table of the second packet, such as, * * byte
~the content of * * byte obtains from * * byte~the * * byte of the first packet, * * byte~the content of * * byte
Different from the first packet, particular content is " * * * * * ".
On the other hand, when determine in step s 302 client does not stores the first packet time, process proceed to step
S305.In step S305, directly obtain the second packet from server to carry out application upgrade.
Hereinbefore, referring to figs. 1 through Fig. 3 describe according to embodiments of the present invention, for the information of application upgrade
Processing method.It follows that reference Fig. 4 to Fig. 6 to be described the concrete configuration of messaging device according to embodiments of the present invention.
First, with reference to Fig. 4 describe according to embodiments of the present invention, as the configuration of messaging device of server end.
As shown in Figure 4, the messaging device 400 as server end includes obtaining widget 401, divided parts 402, comparing unit
403 and generating unit 404.
Obtaining widget 401 is for obtaining the first packet, and described first packet is corresponding to the first application, and is used for obtaining
Taking the second packet, described second packet is corresponding to the second application.Described first packet can be by client upload
Obtain, or described first packet can also be obtained by obtaining widget access client.
Divided parts 402, for dividing each file in the first packet, to obtain multiple first blocks of files, and is used
In each file divided in the second packet, to obtain multiple second blocks of files.
Comparing unit 403 is for comparing multiple first blocks of files with multiple second blocks of files.
Generating unit 404 is for generating more new data packets according to the comparative result of comparing unit, wherein in more new data packets
In comprise correspondence position and the data content of the described second packet blocks of files different from described first packet.
Here comparing unit 403 includes: verification and calculating unit 4031, is used for calculating multiple first blocks of files and multiple
The verification of each of the second blocks of files and;Verification and comparing unit 4032, for by each in multiple second blocks of files
Verification and respectively with the verification of each in multiple second blocks of files and comparing;Strong verification parts 4033, are used for
The verification of the two verifies the most by force in the case of identical;Labelling recording-member 4034, if for the knot of strong verification
Fruit represents that the two is identical, then record the correspondence position of same file block, otherwise record the second packet and the first packet is different
The correspondence position of blocks of files and data content.
As mentioned above it is possible, divided parts 402 can once divide the first packet to obtain one group of multiple first file
Block, and once divide the second packet to obtain one group of multiple second blocks of files.Certainly, it is highly preferred that divided parts 402 can
Once to divide the first packet to obtain one group of multiple first blocks of files, and repeatedly divide the second packet to obtain many groups
, between the most each group, in the original position divided, there is predetermined space in multiple second blocks of files, and in this case, institute
State comparing unit one group of multiple first blocks of files to be compared with each groups organized in multiple second blocks of files respectively more, and
In this case, more new data packets also includes the second packet and the correspondence position of the identical blocks of files of the first packet.
It addition, messaging device 400 also includes: command reception parts 405, for from the visitor being connected with described server
Family end receives the first instruction;And transmission part 406, for according to described first instruction, described more new data packets being transmitted extremely
Described client.
Below, with reference to Fig. 5 describe according to embodiments of the present invention, show as another of messaging device of server end
Example.As it is shown in figure 5, described equipment 400 ' includes obtaining widget 401, divided parts 402, comparing unit 403 and generating unit
404, its corresponding component included with the equipment shown in Fig. 4 is identical.Here it is presented with like reference characters, and
For brevity, will not be described in great detail its content.
In addition, the command reception parts 405 in Fig. 4 and transmission part 406, the messaging device in Fig. 5 are replaced
400 ' including: command reception parts 407, for receiving the second instruction from the client being connected with described server;Judge parts
408, it is used for judging whether described client stores the first packet;Transmission part 409, for if it is determined that parts determine
Described client stores the first packet, then described more new data packets is sent to client, make described client according to
First packet and more new data packets obtain the second packet, and carry out application upgrade by the second packet;And if it is determined that
Parts determine and do not store the first packet in described client, then described second packet is sent to client, makes described visitor
Family end directly carries out application upgrade by the second packet.
Finally, with reference to Fig. 6 describe according to embodiments of the present invention, as the configuration of messaging device 500 of client.
As shown in Figure 6, messaging device 500 includes that instruction sends parts 501, judges parts 502, obtaining widget 503 and merging portion
Part 504.
Instruction sends parts 501, for sending an instruction to the server being connected with client.
Judge that parts 502 are used for judging whether to store in client the first packet;
Obtaining widget 503 for when judge parts 502 determine client stores the first packet time, refer to according to this
Order, obtains more new data packets from the server being connected with client.
Merge parts 504 to be used for merging the first packet with more new data packets, thus generate the second packet, with
Carry out application upgrade.
When judge parts 502 determine client does not stores the first packet time, described obtaining widget 503 obtains from server
Take the second packet.
Further, messaging device 500 farther includes to upload parts 505, for uploading the first packet to server.
Information processing method according to embodiments of the present invention is described above by reference to Fig. 4 to Fig. 6.Owing to described method is with upper
Messaging device described in literary composition is the most corresponding, therefore to for the sake of Jian Ming, do not launch to describe to its detail content.
By messaging device according to embodiments of the present invention and method, it is possible to needed for reducing application upgrade further
Network traffics, and can by server automatically, be dynamically generated the more new data packets for application upgrade.
It should be noted that in this manual, term " includes ", " comprising " or its any other variant are intended to
Comprising of nonexcludability, so that include that the process of a series of key element, method, article or equipment not only include that those are wanted
Element, but also include other key elements being not expressly set out, or also include for this process, method, article or equipment
Intrinsic key element.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that at bag
Include and the process of described key element, method, article or equipment there is also other identical element.
Finally, in addition it is also necessary to explanation, above-mentioned a series of process not only includes with order described here in temporal sequence
The process performed, and include the process performed parallel or respectively rather than in chronological order.
Through the above description of the embodiments, those skilled in the art is it can be understood that can be by the present invention
Software adds the mode of required hardware platform and realizes, naturally it is also possible to all implemented by software.Based on such understanding,
What background technology was contributed by technical scheme can embody with the form of software product in whole or in part,
This computer software product can be stored in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions in order to make
Obtain a computer equipment (can be personal computer, server, or the network equipment etc.) and perform each embodiment of the present invention
Or the method described in some part of embodiment.
Being described in detail the present invention above, specific case used herein is to the principle of the present invention and embodiment party
Formula is set forth, and the explanation of above example is only intended to help to understand method and the core concept thereof of the present invention;Meanwhile, right
In one of ordinary skill in the art, according to the thought of the present invention, the most all can change
Part, in sum, this specification content should not be construed as limitation of the present invention.
Claims (18)
1. an information processing method, is applied to server end, including:
Obtaining the first packet, described first packet is corresponding to the first application;
Obtaining the second packet, described second packet is corresponding to the second application;
Divide each file in the first packet, to obtain multiple first blocks of files;
Divide each file in the second packet, to obtain multiple second blocks of files;
Multiple first blocks of files are compared with multiple second blocks of files, to obtain more new data packets, wherein at more new data
Bag comprises correspondence position and the data content of the described second packet blocks of files different from described first packet,
The step wherein dividing packet includes:
Once divide the first packet to obtain one group of multiple first blocks of files;
Repeatedly divide the second packet organizes multiple second blocks of files, between the most each group in the original position divided to obtain more
There is predetermined space, and
Wherein the step that multiple first blocks of files and multiple second blocks of files compare is included:
One group of multiple first blocks of files is compared with each groups organized in multiple second blocks of files respectively,
The most more new data packets also includes the second packet and the correspondence position of the identical blocks of files of the first packet.
Information processing method the most according to claim 1, also includes:
The first instruction is received from the client being connected with described server;
According to described first instruction, by the transmission of described more new data packets to described client.
Information processing method the most according to claim 1, also includes:
The second instruction is received from the client being connected with described server;
Judge whether described client stores the first packet;
If described client stores the first packet, then described more new data packets is sent to client, makes described visitor
Family end obtains the second packet according to the first packet and more new data packets, and carries out application upgrade by the second packet;
If described client does not stores the first packet, then described second packet is sent to client, makes described visitor
Family end directly carries out application upgrade by the second packet.
Multiple first blocks of files are wherein entered by information processing method the most according to claim 1 with multiple second blocks of files
The step that row compares includes:
Calculate multiple first blocks of files and multiple second blocks of files the verification of each and;
By the verification of each in multiple second blocks of files and respectively with the verification of each in multiple second blocks of files and
Compare;
If the verification of the two is with identical, verify the most by force;
If the result of strong verification represents that the two is identical, then record the correspondence position of same file block;Otherwise record the second data
Wrap correspondence position and the data content of the blocks of files different from the first packet.
Information processing method the most according to claim 1, the step wherein obtaining the first packet includes:
The first packet is uploaded to described server by client.
Information processing method the most according to claim 1, the step wherein obtaining the first packet includes:
Client is accessed, to obtain the first packet of storage in client by server.
7. an information processing method, is applied to client, and described method includes:
An instruction is sent to the server being connected with client;
Judge whether client stores the first packet;
When client stores the first packet, according to this instruction, obtain from the server being connected with client and update number
According to bag, wherein produce more new data packets as follows at described server end:
Obtain the first packet, the second packet;
Divide each file in the first packet, to obtain multiple first blocks of files;
Divide each file in the second packet, to obtain multiple second blocks of files;
Multiple first blocks of files are compared with multiple second blocks of files, to obtain more new data packets, wherein at more new data
Bag comprises correspondence position and the data content of the described second packet blocks of files different from described first packet;
First packet is merged with more new data packets, thus generates the second packet, to carry out application upgrade,
Wherein, described first packet, the second packet correspond respectively to the first application, the second application,
The step wherein dividing packet includes:
Once divide the first packet to obtain one group of multiple first blocks of files;
Repeatedly divide the second packet organizes multiple second blocks of files, between the most each group in the original position divided to obtain more
There is predetermined space, and
Wherein the step that multiple first blocks of files and multiple second blocks of files compare is included:
One group of multiple first blocks of files is compared with each groups organized in multiple second blocks of files respectively,
The most more new data packets also includes the second packet and the correspondence position of the identical blocks of files of the first packet.
Information processing method the most according to claim 7, wherein
When client does not stores the first packet, obtain the second packet from server.
Information processing method the most according to claim 7, farther includes to upload the first data from user end to server
The step of bag.
10. a messaging device, is arranged at server end, including:
Obtaining widget, for obtaining the first packet, described first packet is corresponding to the first application, and is used for acquisition second
Packet, described second packet is corresponding to the second application;
Divided parts, for dividing each file in the first packet, to obtain multiple first blocks of files, and is used for dividing
Each file in second packet, to obtain multiple second blocks of files;
Comparing unit, for comparing multiple first blocks of files with multiple second blocks of files;And
Generating unit, for generating more new data packets according to the comparative result of comparing unit, wherein comprises in more new data packets
The correspondence position of the blocks of files that described second packet is different from described first packet and data content,
Wherein said divided parts once divides the first packet to obtain one group of multiple first blocks of files, and repeatedly divides
To obtain multiple second blocks of files of many groups, between the most each group, in the original position divided, there is predetermined space in two packets,
And
One group of multiple first blocks of files is entered with each groups organized in multiple second blocks of files by wherein said comparing unit respectively
Row compares, and
The most more new data packets also includes the second packet and the correspondence position of the identical blocks of files of the first packet.
11. messaging devices according to claim 10, also include:
Command reception parts, for receiving the first instruction from the client being connected with described server;
Transmission part, for according to described first instruction, by the transmission of described more new data packets to described client.
12. messaging devices according to claim 10, also include:
Command reception parts, for receiving the second instruction from the client being connected with described server;
Judge parts, be used for judging whether described client stores the first packet;
Transmission part, for if it is determined that parts determine stores the first packet in described client, then by described renewal number
It is sent to client according to bag, makes described client obtain the second packet according to the first packet and more new data packets, and pass through
Second packet carries out application upgrade;And if it is determined that parts determine does not stores the first packet in described client, then by institute
State the second packet and be sent to client, make described client directly carry out application upgrade by the second packet.
13. messaging devices according to claim 10, wherein said comparing unit includes:
Verification and calculating unit, for calculate multiple first blocks of files and multiple second blocks of files the verification of each and;
Verification and comparing unit, for by the verification of each in multiple second blocks of files and respectively with multiple second blocks of files
In the verification of each and compare;
Verify by force parts, verify the most by force in the case of identical for the verification at the two;
Labelling recording-member, if the result for strong verification represents that the two is identical, then records the correspondence position of same file block,
Otherwise record the second packet and the correspondence position of the different blocks of files of the first packet and data content.
14. messaging devices according to claim 10, wherein said first packet by by client upload to
Obtaining widget and obtain.
15. messaging devices according to claim 10, wherein said first packet is by being accessed by obtaining widget
Client and obtain.
16. 1 kinds of messaging devices, are arranged at client, including:
Instruction sends parts, for sending an instruction to the server being connected with client;
Judge parts, be used for judging whether client stores the first packet;
Obtaining widget, with when judge parts determine client stores the first packet time, according to this instruction, from client
The server connected obtains more new data packets, wherein produces more new data packets as follows at described server end:
Obtain the first packet, the second packet;
Divide each file in the first packet, to obtain multiple first blocks of files;
Divide each file in the second packet, to obtain multiple second blocks of files;
Multiple first blocks of files are compared with multiple second blocks of files, to obtain more new data packets, wherein at more new data
Bag comprises correspondence position and the data content of the described second packet blocks of files different from described first packet;
Merge parts, for being merged with more new data packets by the first packet, thus generate the second packet, to carry out answering
With upgrading,
Wherein, described first packet, the second packet correspond respectively to the first application, the second application,
The step wherein dividing packet includes:
Once divide the first packet to obtain one group of multiple first blocks of files;
Repeatedly divide the second packet organizes multiple second blocks of files, between the most each group in the original position divided to obtain more
There is predetermined space, and
Wherein the step that multiple first blocks of files and multiple second blocks of files compare is included:
One group of multiple first blocks of files is compared with each groups organized in multiple second blocks of files respectively,
The most more new data packets also includes the second packet and the correspondence position of the identical blocks of files of the first packet.
17. messaging devices according to claim 16, wherein
When judge parts determine client does not stores the first packet time, described obtaining widget obtains the second data from server
Bag.
18. messaging devices according to claim 16, farther include to upload parts, for uploading the to server
One packet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210055714.3A CN103297482B (en) | 2012-03-05 | 2012-03-05 | Information processing method and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210055714.3A CN103297482B (en) | 2012-03-05 | 2012-03-05 | Information processing method and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103297482A CN103297482A (en) | 2013-09-11 |
CN103297482B true CN103297482B (en) | 2016-12-14 |
Family
ID=49097794
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210055714.3A Active CN103297482B (en) | 2012-03-05 | 2012-03-05 | Information processing method and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103297482B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104951315A (en) * | 2014-03-25 | 2015-09-30 | 上海三旗通信科技股份有限公司 | Rapid updating and downloading method for mobile software |
CN104199637B (en) * | 2014-07-16 | 2017-02-08 | 珠海金山网络游戏科技有限公司 | Method for comparing packaged files and device and system thereof |
CN111274275B (en) * | 2018-11-19 | 2023-07-04 | 中国电信股份有限公司 | Data processing method, apparatus and computer readable storage medium |
CN109815055B (en) * | 2019-01-22 | 2021-12-10 | 上海微小卫星工程中心 | Satellite program management system and satellite program management method |
CN110083614B (en) * | 2019-04-04 | 2023-06-06 | 中国银联股份有限公司 | Data processing method and server |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1758220A (en) * | 2004-10-08 | 2006-04-12 | 华为技术有限公司 | Method of updating software release |
CN101110788A (en) * | 2006-07-20 | 2008-01-23 | 阿里巴巴公司 | Method and system for updating client software |
EP1936497A2 (en) * | 2006-12-20 | 2008-06-25 | NCR Corporation | Automated wide area software distribution with reduced network bandwidth requirements |
CN101382961A (en) * | 2008-10-24 | 2009-03-11 | 无敌科技(西安)有限公司 | Method for making update file and updating data |
CN102147742A (en) * | 2011-03-18 | 2011-08-10 | 深圳市广和通实业发展有限公司 | Method and system for upgrading embedded software on line |
CN102193803A (en) * | 2010-03-03 | 2011-09-21 | 上海三旗通信科技有限公司 | Method for rapidly updating and downloading mobile phone software |
-
2012
- 2012-03-05 CN CN201210055714.3A patent/CN103297482B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1758220A (en) * | 2004-10-08 | 2006-04-12 | 华为技术有限公司 | Method of updating software release |
CN101110788A (en) * | 2006-07-20 | 2008-01-23 | 阿里巴巴公司 | Method and system for updating client software |
EP1936497A2 (en) * | 2006-12-20 | 2008-06-25 | NCR Corporation | Automated wide area software distribution with reduced network bandwidth requirements |
CN101382961A (en) * | 2008-10-24 | 2009-03-11 | 无敌科技(西安)有限公司 | Method for making update file and updating data |
CN102193803A (en) * | 2010-03-03 | 2011-09-21 | 上海三旗通信科技有限公司 | Method for rapidly updating and downloading mobile phone software |
CN102147742A (en) * | 2011-03-18 | 2011-08-10 | 深圳市广和通实业发展有限公司 | Method and system for upgrading embedded software on line |
Also Published As
Publication number | Publication date |
---|---|
CN103297482A (en) | 2013-09-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103297482B (en) | Information processing method and equipment | |
CN110275861B (en) | Data storage method and device, storage medium and electronic device | |
CN109582471A (en) | Information processing method, device and system | |
US8880651B2 (en) | Method and system for efficient download of data package | |
CN105515872B (en) | The update method of configuration information, apparatus and system | |
CN107885540A (en) | A kind of method, apparatus and terminal of loading application programs static resource | |
CN108491236A (en) | A kind of plug-in loading method, device and computer readable storage medium | |
CN111352836A (en) | Pressure testing method and related device | |
CN108804318A (en) | Page element testing method and device, electronic equipment and storage medium | |
CN109408375A (en) | The generation method and device of interface document | |
CN110022315A (en) | Weight management method, device and equipment in a kind of piece of chain type account book | |
CN103166911A (en) | Version management server authority management method and version management server authority management equipment | |
CN103747436A (en) | Application program downloading method and device | |
CN105117499A (en) | File display method and device based on cloud disk | |
CN109144619A (en) | Icon font information processing method, apparatus and system | |
CN106648769A (en) | Application upgrading method, server and user device | |
US20160140140A1 (en) | File classification in a distributed file system | |
CN110147410A (en) | Data verification method, system, device and equipment in a kind of piece of chain type account book | |
CN113051163A (en) | Unit testing method, unit testing device, electronic equipment and storage medium | |
CN104468222A (en) | Method, device and system for reporting log information | |
CN106843769B (en) | A kind of interface data caching method, device and calculate equipment | |
CN107766307A (en) | A kind of method and apparatus of Form Element linkage | |
CN108920642A (en) | Campus information delivery system | |
US8498963B2 (en) | Method and system for data synchronization | |
CN116208676A (en) | Data back-source method, device, computer equipment, storage medium and program product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |