CN104750524A - Upgraded data package transmitting method and device and data package upgrading method and device - Google Patents

Upgraded data package transmitting method and device and data package upgrading method and device Download PDF

Info

Publication number
CN104750524A
CN104750524A CN201510130697.9A CN201510130697A CN104750524A CN 104750524 A CN104750524 A CN 104750524A CN 201510130697 A CN201510130697 A CN 201510130697A CN 104750524 A CN104750524 A CN 104750524A
Authority
CN
China
Prior art keywords
packet
data block
data
difference
label
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
CN201510130697.9A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510130697.9A priority Critical patent/CN104750524A/en
Publication of CN104750524A publication Critical patent/CN104750524A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides an upgraded data package transmitting method and device and a data package upgrading method and device. The upgraded data package transmitting method comprises the steps that an installed data package corresponding to version information sent by a device to be upgraded is acquired; a residual quantity package is generated according to the difference between the installed data package and a latest version data package; the residual quantity package is sent to the device to be upgraded to indicate the device to be upgraded to generate the latest version data package according to the residual quantity package. According to the upgraded package transmitting method and device, due to the fact that the installed data package of the device to the upgraded is compared with the latest version data package, the residual quantity package is dynamically generated, latest version upgrading is conducted on the device to be upgraded according to the residual quantity package, it is not required to download a complete upgrading package, and therefore the upgrading time is shortened, and the upgrading efficiency is improved.

Description

The upgrade method of the transmission method of upgrading data packet and device, packet and device
Technical field
The invention belongs to data processing technique, particularly relate to a kind of transmission method of upgrading data packet and device, the upgrade method of packet and device.
Background technology
With it namely wearable device is directly through, or be incorporated into the clothes of user or a kind of portable set of accessory.Wearable device is not only a kind of hardware device, and realize powerful function alternately by software support and data interaction, high in the clouds especially, wearable device will bring very large transformation to our life, perception.
Constantly upgrading to wearable device, is a kind of means that user enjoys more high-quality experience.Along with the development of technology, carry out upgrading more and more general to wearable device by online mode, particularly itself in use do not need to use USB (Universal Serial Bus, USB (universal serial bus)), serial ports or other interfaces just upgradeable wearable device, use online upgrading not only convenient but also save hardware cost.But online upgrading is easily subject to extraneous interference, causes wireless connections disconnection to cause and upgrade unsuccessfully.Existing method, upgrading to wearable device is all downloaded by whole complete mirror image bag, be then written in equipment, and the upgrading often between two versions can't change all data, so existing upgrading mode is lost time, efficiency is not high.
Summary of the invention
In view of this, the invention provides a kind of transmission method of upgrading data packet and device, the upgrade method of packet and device, to reduce update time, improve upgrading efficiency, reduce the probability that upgrading is failed.
For achieving the above object, the present invention adopts following technical scheme:
First aspect, the transmission method of a kind of upgrading data packet that the embodiment of the present invention provides, comprising:
Obtain the installation data bag corresponding with the version information that equipment to be upgraded sends;
According to the difference between the described bag of installation data and latest edition packet, generate difference packet;
Described difference packet is sent to described equipment to be upgraded, generates described latest edition packet to indicate described equipment to be upgraded according to described difference packet.
Second aspect, the upgrade method of a kind of packet that the embodiment of the present invention provides, comprising:
The version information of installation data bag is sent to server;
Receive described server corresponding according to described version information described in the difference packet that generates of difference between installation data bag and latest edition packet;
According to described difference packet and the described bag of installation data, generate described latest edition packet.
The third aspect, the transmitting device of a kind of upgrading data packet that the embodiment of the present invention provides, comprising:
Packet acquiring unit, for the installation data bag that the version information obtained with equipment to be upgraded sends is corresponding;
The difference packet generation unit be connected with packet acquiring unit, for according to the difference between the described bag of installation data and latest edition packet, generates difference packet;
The difference packet transmitting element be connected with difference packet generation unit, for described difference packet is sent to described equipment to be upgraded, generates described latest edition packet to indicate described equipment to be upgraded according to described difference packet.
Fourth aspect, the update device of a kind of packet that the embodiment of the present invention provides, comprising:
Version information transmitting element, for being sent to server by the version information of installation data bag;
Difference packet receiving element, for receive described server corresponding according to described version information described in the difference packet that generates of difference between installation data bag and latest edition packet;
The packet generation unit be connected with difference packet receiving element, for according to described difference packet and the described bag of installation data, generates described latest edition packet.
Compared with prior art, the advantage of technical solution of the present invention is:
The upgrade method of the transmission method of a kind of upgrading data packet provided by the invention and device, packet and device, compared with prior art, the present invention is by comparing the bag of installation data of equipment to be upgraded and latest edition packet, dynamic generation difference packet, directly treating updating apparatus according to difference packet carries out latest edition upgrading, need not download complete renewal bag, effectively reduce update time, improve upgrading efficiency, reduce the probability that upgrading is failed.
Accompanying drawing explanation
Exemplary embodiment of the present invention will be described in detail by referring to accompanying drawing below, the person of ordinary skill in the art is more clear that above-mentioned and other feature and advantage of the present invention, in accompanying drawing:
The schematic flow sheet of the transmission method of a kind of upgrading data packet that Fig. 1 provides for the embodiment of the present invention one;
The schematic flow sheet of the transmission method of a kind of upgrading data packet that Fig. 2 provides for the embodiment of the present invention two;
The schematic flow sheet of the upgrade method of a kind of packet that Fig. 3 provides for the embodiment of the present invention three;
The schematic flow sheet of the upgrade method of a kind of packet that Fig. 4 provides for the embodiment of the present invention four;
The schematic flow sheet of the upgrade method of a kind of packet that Fig. 5 provides for the embodiment of the present invention five;
The structural representation of the transmitting device of a kind of upgrading data packet that Fig. 6 provides for the embodiment of the present invention six;
The structural representation of the difference packet upgrade unit that Fig. 7 provides for the embodiment of the present invention six;
The structural representation of the update device of a kind of packet that Fig. 8 provides for the embodiment of the present invention seven;
The structural representation of the packet upgrade unit that Fig. 9 provides for the embodiment of the present invention seven;
The mutual schematic diagram of the server that Figure 10 provides for the embodiment of the present invention eight and equipment to be upgraded.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, hereinafter with reference to the accompanying drawing in the embodiment of the present invention, by embodiment, technical scheme of the present invention is described clearly and completely, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment one
Fig. 1 gives the schematic flow sheet of the transmission method of a kind of upgrading data packet that the embodiment of the present invention one provides, the method can be performed by the transmitting device of upgrading data packet, the transmitting device of upgrading data packet can adopt the form of software and/or hardware to realize, the transmitting device of this upgrading data packet generally can be built in server, with equipment to be upgraded with the use of.As shown in Figure 1, the method comprises:
S101, obtain the installation data bag corresponding with the version information that equipment to be upgraded sends.
In general, an equipment (such as, wearable device), if want normal use, needs to be configured with corresponding software to support certain hardware capability.And As time goes on the software configured in an equipment often need to carry out certain software upgrading (or also claiming version updating).In the present embodiment, described equipment to be upgraded specifically refers to the above-mentioned equipment needing to carry out software upgrading.
In addition, the software configured in an equipment may through software upgrading repeatedly, and the software each time after upgrading all corresponds to an announced software installation kit, in the present embodiment, the described bag of installation data specifically refers to software installation kit current configured in an equipment, wherein, different software installation kits is distinguished by different version informations.Typically, described version information specifically comprises version name, and/or the information of different software installation kit can be distinguished by version number etc., and the present embodiment does not limit this.
In the present embodiment, the software installation kit corresponding with equipment different editions information to be upgraded is prestored in server, therefore, server obtains the version information of equipment to be upgraded installation data bag by wireless or wired mode, can determine the installation data bag corresponding with equipment to be upgraded.
In the present embodiment, server by the mode of passive reception, can obtain the version information that equipment to be upgraded sends, and also by the mode of active pull, can obtain the version information that equipment to be upgraded sends; In addition, server directly can obtain the version information that equipment to be upgraded sends, and the mode that also can be forwarded by an intermediate equipment obtains the version information that equipment to be upgraded sends, and the present embodiment does not all limit this.
S102, the difference of basis between installation data bag and latest edition packet, generate difference packet.
Usually, need upgrading in device prompts, when user confirms upgrading, equipment automatically according to latest edition number, directly can download complete latest edition packet, to cover installation data bag from server.And this upgrading mode is not only lost time, also add the possibility of the upgrading failure caused by reasons such as unstable networks.
In the present embodiment, consider that latest edition packet is on the basis of installation data bag, completed by the partial data revised in installation data bag, server is obtaining after installation data bag, installation data bag is compared (such as with the data one_to_one corresponding in latest edition packet on server, by word comparison, by byte comparison, or setting data block is than equity, this is not limited), extract in latest edition packet the data be different from installation data bag in certain sequence, and make the data extracted form difference packet, and the content in difference packet is the variance data of equipment to be upgraded in installation data bag and latest edition packet.
S103, difference packet is sent to equipment to be upgraded, generates latest edition packet to indicate equipment to be upgraded according to difference packet.
Exemplary, above-mentioned server and equipment to be upgraded are in same LAN (Local Area Network), this server is according to MAC (the Media Access Control of equipment to be upgraded, media interviews control) address and IP address, by wireless or wired mode, difference packet is sent to equipment to be upgraded, generates latest edition packet to indicate equipment to be upgraded according to difference packet.
The transmission method of the upgrading data packet that the embodiment of the present invention one provides, by according to the difference between the bag of installation data of equipment to be upgraded and latest edition packet, generate difference packet, again difference packet is sent to equipment to be upgraded, generates latest edition packet to indicate equipment to be upgraded according to difference packet.To reduce the update time of equipment to be upgraded, improve upgrading efficiency, reduce the probability that upgrading is failed.
Embodiment two
Fig. 2 gives the schematic flow sheet of the transmission method of a kind of upgrading data packet that the embodiment of the present invention two provides, the present embodiment is optimized based on above-described embodiment, in the present embodiment, by step according to the difference between installation data bag and latest edition packet, generation difference packet is optimized for: S2021, in units of setting data block size, respectively piecemeal process is carried out to installation data bag and latest edition packet, and carry out label for each piecemeal; S2022, obtains a data block from installation data bag with order latest edition packet respectively and compare: if the data content in two data blocks is identical, return S2022, otherwise, execution S2023; S2023, by the label of data block that obtains from latest edition packet and this data block, to be stored in difference packet.
Accordingly, the method for the present embodiment comprises the steps:
S201, obtain the installation data bag corresponding with the version information that equipment to be upgraded sends.
S2021, in units of setting data block size, respectively piecemeal process is carried out to installation data bag and latest edition packet, and carry out label for each piecemeal.
Wherein, data block is one group of continuous arrangement several groups of record together in order, is the data unit carrying out between primary memory and Input/Output Device or external storage transmitting.Data block size can be fixing or variable, has gap between block and block.Setting data block size, is subject to the impact of many factors, comprises input, output efficiency, storage space cost and computer utility feature etc.
Exemplary, setting data block size is 16 bytes, and in units of this setting data block size, server is respectively to installation data bag and latest edition packet carry out piecemeal process, respectively respective sequence of addresses is pressed to each data block after piecemeal process again, from 1, carry out order label, make installation data bag identical with the label of latest edition packet corresponding data block.
S2022, obtains a data block from installation data bag with order latest edition packet respectively and compare: if the data content in two data blocks is identical, return S2022, otherwise, execution S2023.
Exemplary, server from installation data bag and latest edition packet, from label 1, obtains the identical data block of two labels by label order, and compares above-mentioned two data blocks respectively.Concrete, each data block has the data of 16 bytes, and the data of server to the corresponding position of two data blocks compare, when all corresponding datas are all identical in data block that and if only if, judge that the data content in two data blocks is identical, now return S2022, otherwise, perform S2023.
S2023, by the label of data block that obtains from latest edition packet and this data block, to be stored in difference packet.
Exemplary, when server judges that installation data bag is different from two data blocks corresponding in latest edition packet, obtain the label of data block in two data blocks in latest edition packet and this data block, and the label of this data block and this data block are stored in difference packet.
S203, difference packet is sent to equipment to be upgraded, generates latest edition packet to indicate equipment to be upgraded according to difference packet.
Wherein, equipment to be upgraded can be wearable device.
The transmission method of the upgrading data packet that the embodiment of the present invention two provides, by to installation data bag and latest edition packet carry out piecemeal process, and carry out label for each piecemeal, then each data block more in installation data bag and latest edition packet, the data block be different from latest edition packet in installation data bag is stored in difference packet, alleviate the burden of server, and to make equipment to be upgraded replace partial data block in installation data bag accurately and rapidly.
Embodiment three
Fig. 3 gives the schematic flow sheet of the upgrade method of a kind of packet that the embodiment of the present invention three provides, the method can be performed by the update device of packet, the update device of packet can adopt the form of software and/or hardware to realize, the update device of this packet generally can be built in equipment to be upgraded, with server with the use of.As shown in Figure 3, the method comprises:
S301, the version information of installation data bag is sent to server.
Consider and server houses all announced software installation kit corresponding with equipment to be upgraded, therefore, equipment to be upgraded only sends the version information of installation data bag to server, this version information, in order to determine the bag of installation data that equipment to be upgraded is current installed, obtains the bag of installation data corresponding to this version information to indicate server.
The difference packet that S302, reception server generate according to the difference between the bag of installation data corresponding to version information and latest edition packet.
The difference packet that equipment to be upgraded is generated according to the difference between the bag of installation data corresponding to version information and latest edition packet by wireless or wired mode reception server, stores the data for mounting software corresponding to equipment to be upgraded of upgrading in this difference packet.
S303, according to difference packet and installation data bag, generate latest edition packet.
Exemplary, equipment to be upgraded is according to the information of difference packet, and the position of the data in inquiry difference packet in installation data bag, then replaces the data of correspondence position in installation data bag, generation latest edition packet by the data in difference packet.
The upgrade method of the packet that the embodiment of the present invention three provides, by the difference packet that reception server generates according to the difference between the bag of installation data of equipment to be upgraded and latest edition packet, and the data needing in installation data bag to upgrade are replaced out by difference packet, generate latest edition packet.Decrease the update time of equipment to be upgraded, improve upgrading efficiency, reduce the probability that upgrading is failed.
Embodiment four
Fig. 4 gives the schematic flow sheet of the upgrade method of a kind of packet that the embodiment of the present invention four provides, the present embodiment is optimized based on above-described embodiment, in the present embodiment, difference packet comprises the data block of at least one setting size, and described data block has corresponding data block label, then by step according to difference packet and installation data bag, generate latest edition packet to be optimized for: carry out piecemeal process according to the size of the data block in difference packet to installation data bag, and carry out label for each piecemeal; By data block identical with label in difference packet in installation data bag, replace with the data block that label in difference packet is identical, generate latest edition packet.
Accordingly, the method for the present embodiment comprises the steps:
S401, the version information of installation data bag is sent to server.
The difference packet that S402, reception server generate according to the difference between the bag of installation data corresponding to version information and latest edition packet.
S403, according to the size of the data block in difference packet, piecemeal process is carried out to installation data bag, and carry out label for each piecemeal.
Exemplary, the size of the data block in setting difference packet is 16 bytes, and data block label in difference packet and the data block label in corresponding latest edition packet.Equipment to be upgraded carries out piecemeal process according to the size of this data block to installation data bag, again sequence of addresses is pressed to each data block after piecemeal process, from 1, carry out order label, make in installation data bag, to need the label of the data block of replacing identical with the label of data block in difference packet.
S404, by data block identical with label in difference packet in installation data bag, replace with the data block that label in difference packet is identical, generate latest edition packet.
Exemplary, equipment to be upgraded searches data block identical with label in difference packet in installation data bag, and determine the address of this data block, then this data block is replaced with the data block in the difference packet identical with this data block label, generate latest edition packet.
The upgrade method of the packet that the embodiment of the present invention four provides, by the size according to the data block in difference packet, piecemeal process is carried out to installation data bag, and carry out label for each piecemeal, replace the data block in the bag of installation data identical with its label by the data block in difference packet again, generate latest edition packet.Improve the accuracy of the data block location in difference packet, accelerate the speed of device upgrade to be upgraded.
Embodiment five
Fig. 5 gives the schematic flow sheet of the upgrade method of a kind of packet that the embodiment of the present invention five provides, the present embodiment is optimized based on above-described embodiment, in the present embodiment, by step by data block identical with label in difference packet in installation data bag, replace with the data block that label in difference packet is identical, generate latest edition packet to be optimized for: S5041, order obtain a data block in difference packet, as service data block; The data block label of S5042, acquisition service data block, as operational label; S5043, in installation data bag, after the data block identical with operational label is replaced with service data block, return S5041 to generating latest edition packet.
Accordingly, the method for the present embodiment comprises the steps:
S501, the version information of installation data bag is sent to server.
The difference packet that S502, reception server generate according to the difference between the bag of installation data corresponding to version information and latest edition packet.
S503, according to the size of the data block in difference packet, piecemeal process is carried out to installation data bag, and carry out label for each piecemeal.
S5041, order obtain a data block in difference packet, as service data block.
The data block label of S5042, acquisition service data block, as operational label.
S5043, in installation data bag, after the data block identical with operational label is replaced with service data block, return S5041 to generating latest edition packet.
The upgrade method of the packet that the embodiment of the present invention five provides, obtains a data block in difference packet, as service data block by order, and obtain its data block label, as operational label, in installation data bag, the data block identical with operational label is replaced with service data block.Improve the accuracy of the data block location in difference packet, accelerate the speed of device upgrade to be upgraded.
Embodiment six
The structural representation of the transmitting device of a kind of upgrading data packet that Fig. 6 provides for the embodiment of the present invention six.As shown in Figure 6, the transmitting device 60 of this upgrading data packet comprises:
Packet acquiring unit 61, for the installation data bag that the version information obtained with equipment to be upgraded sends is corresponding;
The difference packet generation unit 62 be connected with packet acquiring unit 61, for according to the difference between installation data bag and latest edition packet, generates difference packet;
The difference packet transmitting element 63 be connected with difference packet generation unit 62, for difference packet is sent to equipment to be upgraded, generates latest edition packet to indicate equipment to be upgraded according to difference packet.
The transmitting device of the upgrading data packet that the embodiment of the present invention six provides, by according to the difference between the bag of installation data of equipment to be upgraded and latest edition packet, generate difference packet, again difference packet is sent to equipment to be upgraded, generates latest edition packet to indicate equipment to be upgraded according to difference packet.To reduce the update time of equipment to be upgraded, improve upgrading efficiency, reduce the probability that upgrading is failed.
Further, with reference to figure 7, above-mentioned difference packet generation unit 62 comprises:
First piecemeal label subelement 621, in units of setting data block size, carries out piecemeal process to installation data bag and latest edition packet respectively, and carries out label for each piecemeal;
The data block be connected with the first piecemeal label subelement 621 compares subelement 622, compare for obtaining a data block from installation data bag with order latest edition packet respectively: if the data content in two data blocks is identical, return data block compares the operation of subelement 622, otherwise, perform the operation of data block storing sub-units 623;
Compare with data block the data block storing sub-units 623 that subelement 622 is connected, for the label of data block that will obtain from latest edition packet and this data block, be stored in difference packet.
The transmitting device of above-mentioned upgrading data packet can adopt the form of software and/or hardware to realize, and the transmitting device of this upgrading data packet is built in server.
Embodiment seven
The structural representation of the update device of a kind of packet that Fig. 8 provides for the embodiment of the present invention seven.As shown in Figure 8, the update device 80 of this packet comprises:
Version information transmitting element 81, for being sent to server by the version information of installation data bag;
Difference packet receiving element 82, for the difference packet that reception server generates according to the difference between the bag of installation data corresponding to version information and latest edition packet;
The packet generation unit 83 be connected with difference packet receiving element 82, for according to difference packet and installation data bag, generates latest edition packet.
The update device of the packet that the embodiment of the present invention seven provides, by the difference packet that reception server generates according to the difference between the bag of installation data of equipment to be upgraded and latest edition packet, and the data needing in installation data bag to upgrade are replaced out by difference packet, generate latest edition packet.Decrease the update time of equipment to be upgraded, improve upgrading efficiency, reduce the probability that upgrading is failed.
Further, above-mentioned difference packet comprises the data block of at least one setting size, and data block has corresponding data block label.With reference to figure 9, above-mentioned packet generation unit 83 comprises:
Second piecemeal label subelement 831, carries out piecemeal process for the size according to the data block in difference packet to installation data bag, and carries out label for each piecemeal;
The data block be connected with the second piecemeal label subelement 831 replaces subelement 832, for by data block identical with label in difference packet in installation data bag, replaces with the data block that label in difference packet is identical, generates latest edition packet.
Further, above-mentioned data block replace subelement 832 specifically for:
Order obtains a data block in difference packet, as service data block;
Obtain the data block label of service data block, as operational label;
In installation data bag, after the data block identical with operational label is replaced with service data block, turn back to the initial operation that data block replaces subelement, to generating latest edition packet.
The update device of above-mentioned packet can adopt the form of software and/or hardware to realize, and the update device of this packet is built in equipment to be upgraded.
Embodiment eight
The mutual schematic diagram of the server that Figure 10 provides for the embodiment of the present invention eight and equipment to be upgraded.Wherein, equipment 100 to be upgraded can be wearable device, and it is independent of main frame 70, cannot carry out Direct Communication with server 90, and therefore, main frame 70 is as transmission medium, and the data completed between equipment 100 to be upgraded and server 90 are transmitted.
Exemplary, main frame 70 and equipment 100 to be upgraded carry out wireless connections, and the version information of the bag of installation data obtained from equipment 100 to be upgraded is uploaded onto the server 90 by main frame 70; Packet acquiring unit 61 in server 90 obtains the installation data bag corresponding with above-mentioned version information from announced release image; Then difference packet generation unit 62 is according to the difference between installation data bag and latest edition packet, generates difference packet; By difference packet transmitting element 63, difference packet is issued to main frame 70 again, the difference packet received directly is radioed to equipment 100 to be upgraded by main frame 70.After difference packet receiving element 82 in equipment 100 to be upgraded receives this difference packet, this difference packet is passed to packet generation unit 83; Difference packet, according to difference packet and installation data bag, is added in installation data bag by packet generation unit 83, and needs the data that upgrade in replacing installation data bag, generates latest edition packet.
The interactive system of the server that the embodiment of the present invention eight provides and equipment to be upgraded, the bag of installation data in updating apparatus is treated and latest edition packet compares by server, generate difference packet, equipment to be upgraded is upgraded to latest edition according to this difference packet.Decrease the update time of equipment to be upgraded, improve upgrading efficiency, reduce the probability that upgrading is failed.
Above-mentionedly only the specific embodiment in the present invention to be illustrated; but can not as protection scope of the present invention; every according to the change of the equivalence done by design spirit in the present invention or to modify or equal proportion zooms in or out, all should think and fall into protection scope of the present invention.

Claims (10)

1. a transmission method for upgrading data packet, is characterized in that, comprising:
Obtain the installation data bag corresponding with the version information that equipment to be upgraded sends;
According to the difference between the described bag of installation data and latest edition packet, generate difference packet;
Described difference packet is sent to described equipment to be upgraded, generates described latest edition packet to indicate described equipment to be upgraded according to described difference packet.
2. method according to claim 1, is characterized in that, according to the difference between the described bag of installation data and latest edition packet, generates difference packet and comprises:
S2021, in units of setting data block size, respectively piecemeal process is carried out to the described bag of installation data and described latest edition packet, and carry out label for each piecemeal;
S2022, obtains a data block from the described bag of installation data compare with order described latest edition packet respectively: if the data content in two data blocks is identical, return S2022, otherwise, execution S2023;
S2023, by the label of data block that obtains from described latest edition packet and this data block, to be stored in described difference packet.
3. a upgrade method for packet, is characterized in that, comprising:
The version information of installation data bag is sent to server;
Receive described server corresponding according to described version information described in the difference packet that generates of difference between installation data bag and latest edition packet;
According to described difference packet and the described bag of installation data, generate described latest edition packet.
4. method according to claim 3, is characterized in that:
Described difference packet comprises the data block of at least one setting size, and described data block has corresponding data block label;
According to described difference packet and the described bag of installation data, generate described latest edition packet and comprise:
According to the size of the data block in described difference packet, piecemeal process is carried out to the described bag of installation data, and carry out label for each piecemeal;
By data block identical with label in described difference packet in the described bag of installation data, replace with the data block that described label in described difference packet is identical, generate described latest edition packet.
5. method according to claim 4, is characterized in that, by data block identical with label in described difference packet in the described bag of installation data, replaces with the data block that described label in described difference packet is identical, generates described latest edition packet and comprise:
S5041, order obtain a data block in described difference packet, as service data block;
S5042, obtain the data block label of described service data block, as operational label;
S5043, in the described bag of installation data, after the data block identical with described operational label is replaced with described service data block, return S5041 to generating described latest edition packet.
6. a transmitting device for upgrading data packet, is characterized in that, comprising:
Packet acquiring unit, for the installation data bag that the version information obtained with equipment to be upgraded sends is corresponding;
The difference packet generation unit be connected with packet acquiring unit, for according to the difference between the described bag of installation data and latest edition packet, generates difference packet;
The difference packet transmitting element be connected with difference packet generation unit, for described difference packet is sent to described equipment to be upgraded, generates described latest edition packet to indicate described equipment to be upgraded according to described difference packet.
7. transmitting device according to claim 6, is characterized in that, described difference packet generation unit comprises:
First piecemeal label subelement, in units of setting data block size, carries out piecemeal process to the described bag of installation data and described latest edition packet respectively, and carries out label for each piecemeal;
The data block be connected with the first piecemeal label subelement compares subelement, compare for obtaining a data block from the described bag of installation data with order described latest edition packet respectively: if the data content in two data blocks is identical, return the operation that described data block compares subelement, otherwise, perform the operation of data block storing sub-units;
Compare with data block the data block storing sub-units that subelement is connected, for the label of data block that will obtain from described latest edition packet and this data block, be stored in described difference packet.
8. a update device for packet, is characterized in that, comprising:
Version information transmitting element, for being sent to server by the version information of installation data bag;
Difference packet receiving element, for receive described server corresponding according to described version information described in the difference packet that generates of difference between installation data bag and latest edition packet;
The packet generation unit be connected with difference packet receiving element, for according to described difference packet and the described bag of installation data, generates described latest edition packet.
9. update device according to claim 8, is characterized in that:
Described difference packet comprises the data block of at least one setting size, and described data block has corresponding data block label;
Packet generation unit comprises:
Second piecemeal label subelement, carries out piecemeal process for the size according to the data block in described difference packet to the described bag of installation data, and carries out label for each piecemeal;
The data block be connected with the second piecemeal label subelement replaces subelement, for by data block identical with label in described difference packet in the described bag of installation data, replace with the data block that described label in described difference packet is identical, generate described latest edition packet.
10. update device according to claim 9, is characterized in that, described data block replace subelement specifically for:
Order obtains a data block in described difference packet, as service data block;
Obtain the data block label of described service data block, as operational label;
In the described bag of installation data, after the data block identical with described operational label is replaced with described service data block, turn back to the initial operation that described data block replaces subelement, to generating described latest edition packet.
CN201510130697.9A 2015-03-24 2015-03-24 Upgraded data package transmitting method and device and data package upgrading method and device Pending CN104750524A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510130697.9A CN104750524A (en) 2015-03-24 2015-03-24 Upgraded data package transmitting method and device and data package upgrading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510130697.9A CN104750524A (en) 2015-03-24 2015-03-24 Upgraded data package transmitting method and device and data package upgrading method and device

Publications (1)

Publication Number Publication Date
CN104750524A true CN104750524A (en) 2015-07-01

Family

ID=53590272

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510130697.9A Pending CN104750524A (en) 2015-03-24 2015-03-24 Upgraded data package transmitting method and device and data package upgrading method and device

Country Status (1)

Country Link
CN (1) CN104750524A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106973099A (en) * 2017-03-28 2017-07-21 广东欧珀移动通信有限公司 A kind of data-updating method, apparatus and system
CN107707394A (en) * 2017-09-26 2018-02-16 深圳市麦斯杰网络有限公司 Equipment remote upgrade method, server, system and readable storage medium storing program for executing
CN108958752A (en) * 2018-07-09 2018-12-07 迈普通信技术股份有限公司 Single-chip microcontroller online upgrade system and method
CN109271196A (en) * 2018-09-28 2019-01-25 平安普惠企业管理有限公司 APP version upgrading method, device, system and computer equipment
WO2021238053A1 (en) * 2020-05-29 2021-12-02 歌尔股份有限公司 Earphone and program upgrading method therefor, and control device, and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101131649A (en) * 2006-08-23 2008-02-27 乐金电子(昆山)电脑有限公司 Updating speed improving method for read-only memory of device with flash memory
CN101425931A (en) * 2008-12-08 2009-05-06 上海华为技术有限公司 Communication apparatus software updating method, related equipment and communication system
CN102081536A (en) * 2010-12-30 2011-06-01 华为终端有限公司 Method for updating increment, and server
CN102693145A (en) * 2012-05-31 2012-09-26 红石阳光(北京)科技有限公司 Differential upgrading method for embedded system
CN103123588A (en) * 2013-02-05 2013-05-29 东莞宇龙通信科技有限公司 Method and system for obtaining difference upgrade patch
CN103729225A (en) * 2014-01-22 2014-04-16 中国人民解放军国防科学技术大学 Content-defined chunking remote file real-time updating method
CN104184814A (en) * 2014-08-25 2014-12-03 中山市永衡日用制品有限公司 Method and system for generating and compounding embedded firmware differential upgrading file

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101131649A (en) * 2006-08-23 2008-02-27 乐金电子(昆山)电脑有限公司 Updating speed improving method for read-only memory of device with flash memory
CN101425931A (en) * 2008-12-08 2009-05-06 上海华为技术有限公司 Communication apparatus software updating method, related equipment and communication system
CN102081536A (en) * 2010-12-30 2011-06-01 华为终端有限公司 Method for updating increment, and server
CN102693145A (en) * 2012-05-31 2012-09-26 红石阳光(北京)科技有限公司 Differential upgrading method for embedded system
CN103123588A (en) * 2013-02-05 2013-05-29 东莞宇龙通信科技有限公司 Method and system for obtaining difference upgrade patch
CN103729225A (en) * 2014-01-22 2014-04-16 中国人民解放军国防科学技术大学 Content-defined chunking remote file real-time updating method
CN104184814A (en) * 2014-08-25 2014-12-03 中山市永衡日用制品有限公司 Method and system for generating and compounding embedded firmware differential upgrading file

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106973099A (en) * 2017-03-28 2017-07-21 广东欧珀移动通信有限公司 A kind of data-updating method, apparatus and system
WO2018176792A1 (en) * 2017-03-28 2018-10-04 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and apparatus for updating data
CN106973099B (en) * 2017-03-28 2019-08-06 Oppo广东移动通信有限公司 A kind of data-updating method, apparatus and system
US10567503B2 (en) 2017-03-28 2020-02-18 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and apparatus for updating data
EP3382994B1 (en) * 2017-03-28 2020-09-23 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and apparatus for updating data
CN107707394A (en) * 2017-09-26 2018-02-16 深圳市麦斯杰网络有限公司 Equipment remote upgrade method, server, system and readable storage medium storing program for executing
CN108958752A (en) * 2018-07-09 2018-12-07 迈普通信技术股份有限公司 Single-chip microcontroller online upgrade system and method
CN108958752B (en) * 2018-07-09 2023-01-24 迈普通信技术股份有限公司 Single chip microcomputer online upgrading system and method
CN109271196A (en) * 2018-09-28 2019-01-25 平安普惠企业管理有限公司 APP version upgrading method, device, system and computer equipment
WO2021238053A1 (en) * 2020-05-29 2021-12-02 歌尔股份有限公司 Earphone and program upgrading method therefor, and control device, and readable storage medium

Similar Documents

Publication Publication Date Title
CN104750524A (en) Upgraded data package transmitting method and device and data package upgrading method and device
JP5177804B2 (en) Field communication system and field communication method
CN107357571B (en) Maintenance method and system for equipment component program
CN103379159A (en) Distributed web site data synchronization method
CN110875850B (en) Firmware upgrading method and system, readable storage medium and terminal equipment
CN102710436A (en) Network equipment management method, device, relative equipment and system
CN113518004A (en) Management and control method and system for gateway of Internet of things
CN105631715A (en) Advertisement updating supervision method and device
CN104917800A (en) Method and device for establishing redundancy connection for virtual machine
CN105281944B (en) Method for setting network protocol address and service management system
CN111737084A (en) Information monitoring method and device, intelligent equipment, computer equipment and medium
CN109413180B (en) Data acquisition method, system and equipment and storage medium
CN103428305A (en) Network equipment batch upgrading method
CN111339047A (en) Data interaction method, device and system
CN106462421B (en) Telecommunication device and method for updating software in a telecommunication device
CN111580857B (en) Equipment firmware online configuration method, device and system
CN103488503B (en) Oftware updating method and device
CN109800229B (en) Data access method and related equipment
JP2004151888A5 (en)
CN112528333A (en) User privacy protection method, MEC server, terminal, device and medium
CN112380411A (en) Sensitive word processing method and device, electronic equipment, system and storage medium
JP2020149227A (en) Information processing apparatus, information processing system and program
CN106412657B (en) A kind of method and system of set-top box programming sequence code
JP2009225374A (en) Setting supporting system, setting supporting method, and program
CN115150304B (en) Monitoring method, system, device and medium for server node IPv6 network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20150701