CN110275728A - Update the system and method for firmware - Google Patents

Update the system and method for firmware Download PDF

Info

Publication number
CN110275728A
CN110275728A CN201910579235.3A CN201910579235A CN110275728A CN 110275728 A CN110275728 A CN 110275728A CN 201910579235 A CN201910579235 A CN 201910579235A CN 110275728 A CN110275728 A CN 110275728A
Authority
CN
China
Prior art keywords
firmware
packet
subdomain
update
server
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.)
Granted
Application number
CN201910579235.3A
Other languages
Chinese (zh)
Other versions
CN110275728B (en
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.)
Lusheng Technology Co Ltd
Original Assignee
Lusheng Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lusheng Technology Co Ltd filed Critical Lusheng Technology Co Ltd
Priority to CN201910579235.3A priority Critical patent/CN110275728B/en
Publication of CN110275728A publication Critical patent/CN110275728A/en
Application granted granted Critical
Publication of CN110275728B publication Critical patent/CN110275728B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to a kind of systems for updating firmware, including server and terminal device.Server has load domain, and load domain has multiple subdomains, the module relation of each subdomain and firmware, and load domain also has the expansion area for being located at least partly subdomain tail portion, and server is configured to generate difference packet according to the new version and legacy version of subdomain to be updated.Terminal device includes equipment firmware regeneration block, and terminal equipment configuration is to receive difference packet from server, and be saved in equipment firmware regeneration block.

Description

Update the system and method for firmware
Technical field
The present invention relates to a kind of system for updating firmware, the system of the update firmware, which can be reduced, stores sky to terminal device Between demand, while the data volume that can reduce firmware update when transmits.
Background technique
In the field Internet of Things (IoT, Internet of Things), in order to realize people, machine, interconnecting between object, Usually need large scale deployment Internet of Things terminal device.Generally pass through OTA (Over The Air) between server and terminal device Mode carry out data transmission, such as terminal device version updating and upgrading etc..Due to the system by factors such as equipment costs About, memory space (memory headroom when running including data permanent storage space and program) capacity of terminal device relatively has Limit, therefore the mode of difference packet that the version updating of terminal device generallys use is pushed.
Currently, the equipment firmware that Internet of things system generallys use updates (DFU, Device Firmware Update) method Mainly whole domain difference packet updates and part domain difference packet updates.The update of whole domain difference packet is that entire load domain is done difference It calculates, and it is that Difference Calculation is done in the presence of the load domain updated in part that part domain difference packet, which updates,.Use both firmware updates The system of method can have the shortcomings that memory space is not optimised etc. using unreasonable and memory capacity.
Summary of the invention
Technical problem to be solved by the invention is to provide a kind of system for updating firmware, the system of the update firmware can be with The data volume transmitted when reducing the demand to terminal device memory space, while firmware update can be reduced.
The present invention to solve above-mentioned technical problem and the technical solution adopted is that provide it is a kind of update firmware system, packet Include: server has load domain, and the load domain has multiple subdomains, and the module relation of each subdomain and the firmware is described Load domain also has the expansion area for being located at least partly subdomain tail portion, and the server is configured to according to the new of subdomain to be updated Version and legacy version generate difference packet;And terminal device, including equipment firmware regeneration block, the terminal equipment configuration be from The server receives the difference packet, and is saved in the equipment firmware regeneration block.
In one embodiment of this invention, multiple subdomains of the capacity of the equipment firmware regeneration block and the load domain The middle maximum subdomain association of size.
In one embodiment of this invention, the equipment firmware regeneration block includes interim swapace.
In one embodiment of this invention, the terminal device further include operation subregion, the operation zone configuration for from The equipment firmware regeneration block, which receives, updates packet.
In one embodiment of this invention, the division mode of the operation subregion is identical as the load domain, the operation The expansion area of subregion is for storing newly-increased update packet.
In one embodiment of this invention, the module of the firmware is the library of the firmware.
In one embodiment of this invention, the server is configured to generate difference packet as follows: comparing to more The new version and legacy version of new subdomain are to determine update area;And update area and the legacy version more new district according to new version Domain carries out calculus of differences and generates the difference packet.
In one embodiment of this invention, the terminal device is internet-of-things terminal.
Another aspect of the present invention provides a kind of server for updating firmware, has load domain, and the load domain has more A subdomain, the module relation of each subdomain and the firmware, the load domain also have the expansion for being located at least partly subdomain tail portion Exhibition section, the server are configured to generate difference packet according to the new version and legacy version of subdomain to be updated.
Another aspect of the present invention provides a kind of terminal device, comprising: equipment firmware regeneration block is configured to save from institute The difference packet that server receives is stated, and is generated according to the difference packet and updates packet;Subregion is run, there are multiple child partitions, often The module relation of a child partition and the firmware, the operation subregion also have the extension for being located at least partly child partition tail portion Area, the operation zone configuration are to receive to update packet from the equipment firmware regeneration block, and the expansion area is newly-increased for storing Update packet.
Another aspect of the present invention provides a kind of method for updating firmware, comprising the following steps: configures and loads in server Domain, the load domain have multiple subdomains, the module relation of each subdomain and the firmware, and the load domain, which also has, to be located at extremely The expansion area of small part subdomain tail portion;Difference is generated according to the new version and legacy version of subdomain to be updated in the server Packet, and send the difference packet;And the difference packet is received in terminal device, and the equipment for being saved in the terminal device is solid In part regeneration block
In one embodiment of this invention, multiple subdomains of the capacity of the equipment firmware regeneration block and the load domain The middle maximum subdomain association of size.
In one embodiment of this invention, the terminal device includes operation subregion, the method also includes: it is set described Standby firmware update subregion is obtained according to the difference packet updates packet;And update packet is sent to the operation subregion.
In one embodiment of this invention, the division mode of the operation subregion is identical as the load domain, the operation The expansion area of subregion is for storing newly-increased update packet.
In one embodiment of this invention, generate difference packet the step of include: subdomain more to be updated new version and Legacy version is to determine update area;And calculus of differences is carried out according to the update area and legacy version update area of new version and is produced The raw difference packet.
The present invention due to using the technology described above, is allowed to compared with prior art, have the following obvious advantages:
(1) load domain is further refined and is divided into multiple sub- load domains, free address space is divided into and is loaded with son The corresponding multiple expansion areas in domain, reduce the demand of DFU subregion capacity.
(2) increase comparator, reduce the region for needing calculus of differences, reduce the demand of interim swapace, reduce The data volume of OTA upgrading push.
Detailed description of the invention
For the above objects, features and advantages of the present invention can be clearer and more comprehensible, below in conjunction with attached drawing to tool of the invention Body embodiment elaborates, in which:
Fig. 1 is the structural schematic diagram for updating the system of firmware;
Fig. 2 is a kind of process schematic of the system of the update firmware of prior art;
Fig. 3 is the process schematic of the system of the update firmware of another prior art;
Fig. 4 is a kind of process schematic of the system of update firmware of one embodiment of the invention;
Fig. 5 is a kind of flow chart of the method for update firmware of one embodiment of the invention.
The system of 10~update firmware
The system of 20~update firmware
The system of 30~update firmware
The system of 40~update firmware
100~difference algorithm
101~last time version
102~more new version
103~difference packet
110~operation subregion
120~DFU subregion
130~exchange partition
210~BIN load domain
211~occupy address space
212~free address space
220~DFU subregion
221~maximum domain BIN
222~interim swapace
230~operation subregion
231~practical occupied space
232~free area
233~update area
310~BIN load domain
311~part domain
312~free address space
320~DFU subregion
321~maximum domain F
322~interim swapace
330~operation subregion
331~update area
332~free area
401~comparator
402~difference engine
410~server
411~load domain
411a~subdomain
411b~expansion area
420~terminal device
The regeneration block of 421~equipment firmware
421a~regeneration block
421b~interim swapace
422~operation subregion
422a~child partition
422b~expansion area
422c~update area
430~legacy version
440~update area
450~exchange partition
Specific embodiment
For the above objects, features and advantages of the present invention can be clearer and more comprehensible, below in conjunction with attached drawing to tool of the invention Body embodiment elaborates.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, but the present invention can be with It is different from other way described herein using other and implements, therefore the present invention is by the limit of following public specific embodiment System.
As shown in the application and claims, unless context clearly prompts exceptional situation, " one ", "one", " one The words such as kind " and/or "the" not refer in particular to odd number, may also comprise plural number.It is, in general, that term " includes " only prompts to wrap with "comprising" Include clearly identify the step of and element, and these steps and element do not constitute one it is exclusive enumerate, method or apparatus The step of may also including other or element.
When describing the embodiments of the present invention, for purposes of illustration only, indicating that the sectional view of device architecture can disobey general proportion work Partial enlargement, and the schematic diagram is example, should not limit the scope of protection of the invention herein.In addition, in practical system It should include the three-dimensional space of length, width and depth in work.
For the convenience of description, herein may use such as " under ", " lower section ", " being lower than ", " following ", " top ", "upper" Etc. spatial relationship word the relationships of an elements or features shown in the drawings and other elements or feature described.It will reason Solve, these spatial relationship words be intended to encompass in use or device in operation, other than the direction described in attached drawing Other directions.For example, being described as be in other elements or feature " below " or " under " if overturning the device in attached drawing Or the direction of the element of " following " will be changed to " top " in the other elements or feature.Thus, illustrative word " under Side " and " following " can include upper and lower both direction.Device may also have other directions (to be rotated by 90 ° or in its other party To), therefore spatial relation description word used herein should be interpreted accordingly.In addition, it will also be understood that being referred to as when one layer at two layers " between " when, it can be only layer between described two layers, or there may also be one or more intervenient layers.
In the context of this application, structure of the described fisrt feature in the "upper" of second feature may include first Be formed as the embodiment directly contacted with second feature, also may include that other feature is formed between the first and second features Embodiment, such first and second feature may not be direct contact.
It is referred to as " on the other part " it should be appreciated that working as a component, " being connected to another component ", " is coupled in When another component " or " contacting another component ", it can directly on another component, be connected or coupled to, Or another component is contacted, or may exist insertion part.In contrast, when a component is referred to as " directly another On a component ", " being directly connected in ", " being coupled directly to " or when " directly contact " another component, insertion part is not present.Together Sample, when first component referred to as " is in electrical contact " or " being electrically coupled to " second component, in the first component and this second There is the power path for allowing electric current flowing between part.The power path may include capacitor, the inductor of coupling and/or permission electricity Other components of flowing, or even do not contacted directly between conductive component.
Fig. 1 is the structural schematic diagram for updating the system of firmware.Refering to what is shown in Fig. 1, passing through first in server (not shown) Difference algorithm 100 calculates the difference packet 103 of more new version 102 (BIN_V_B) and last time version 101 (BIN_V_A).Then will Difference packet 103 is pushed to terminal device (not shown) by cloud.Finally, terminal device uses identical 100 structure of difference algorithm It builds out more new version and DFU subregion 120 is written.
In the system 10 of update firmware shown in Fig. 1, operation subregion 110 is the subregion of the main operation of program.DFU subregion 120 be the subregion that OTA updates upgrading.Exchange partition 130 is up the backup subregion of version.It can not running subregion 110 When normal starting or OTA occur starting abnormal after updating, need for be restored to exchange partition 130 operation subregion 110 with again Starting.Operation subregion 110, DFU subregion 120, exchange partition 130 are respectively positioned on data persistent storage.
Data permanent memory can be in various non-volatile memory elements, for example, based on EPROM, In the element of the memory technologies such as EEPROM, NOR FLASH and NAND FLASH.At present in the industry more current mode be data forever Long storage be based on NOR-Flash memory technology, and address space be FLAT (flat) mode, i.e., program run when address and plus Set address is identical.
Fig. 2 is a kind of process schematic of the system 20 of the update firmware of prior art.The system 20 of the update firmware is adopted The mode updated with whole domain difference packet.Refering to what is shown in Fig. 2, entire BIN load domain 210 is carried out Difference Calculation first and is obtained To difference packet (not shown).Then, difference packet terminal device (not shown) is pushed to be updated.Due to depositing for terminal device Storage space is limited, needs a part of additional DFU subregion 220 in the versions merging before terminal device carries out difference packet and upgrading Space as interim swapace 222.Actual DFU subregion 220 (including the maximum domain BIN 221 and interim swapace 222) Total space requirement will be greater than the space of BIN load domain 210.Therefore, whole domain difference packet updates to store terminal device and hold It measures more demanding.Under normal circumstances, DFU subregion 220 (including occupies address space 211 and sky according to entire BIN load domain 210 Not busy address space 212) space size configure.
Fig. 3 is the process schematic of the system 30 of the update firmware of another prior art.The system 30 of the update firmware By the way of the update of part domain difference packet.Refering to what is shown in Fig. 3, being drawn first, in accordance with software function to BIN load domain 310 Point, BIN load domain 310 is subdivided into the multiple regions such as FA, FB (domain F).Meanwhile maximum update area is assessed to obtain maximum F Domain 321.Then, server (not shown) only calculates the domain F (such as FA) for existing and updating when carrying out difference calculating.Therefore, part Domain difference packet updates the spatial content demand reduced to DFU subregion 320, and the space of DFU subregion 320 adds equal to the maximum domain F 321 Interim swapace 322.
There is following both sides in the system of the update firmware of the above-mentioned prior art: first is that operation subregion (such as Run subregion 230 and run subregion 330) free area (such as free area 232 and free area 332) using unreasonable.Operation The free area of subregion is reserved for edition upgrading extension, which is not used by during normal operation in terminal device, To cause the waste of memory space.Second is that the spatial content of DFU subregion (such as DFU subregion 220 and DFU subregion 320) is not The spatial content demand of reasonably optimizing, DFU subregion needs to be further decreased.
For above problem, following embodiment of the invention describes a kind of system for updating firmware, the update firmware System can reduce the demand to terminal device memory space, while the data volume that can reduce firmware update when transmits.
Fig. 4 is a kind of process schematic of the system 40 of update firmware of one embodiment of the invention.Below with reference to Fig. 4 to more The system 40 of new firmware is illustrated.The system 40 of the update firmware includes server 410 and terminal device 420.Server 410 With load domain 411.Load domain 411 has multiple subdomain 411a (such as M1, M2 ... Mn), each subdomain 411a and firmware Module relation.Load domain 411 also have be located at at least partly tail portion subdomain 411a expansion area 411b (such as IDLE1, IDEL2,…IDLEn).Server 410 is configured to new version (such as M2) and legacy version 430 according to subdomain 411a to be updated (such as BIN_V_A) generates difference packet (not shown).Terminal device 420 includes equipment firmware regeneration block 421, terminal device 420 are configured to receive difference packet from server 410, and are saved in equipment firmware regeneration block 421.
In some embodiments, above-mentioned terminal device 420 can be internet-of-things terminal.Internet-of-things terminal is connected in Internet of Things Sensor Network network layers and transport network layer are connect, the equipment realized acquisition data and send data to network layer.Internet-of-things terminal is undertaken The multiple functions such as data acquisition, preliminary treatment, encryption, transmission.Internet-of-things terminal equipment can be divided into context aware layer, network Access layer, network control layer and application/operation layer.Each layer all has corresponding relationship with the control equipment of network side.Internet of Things Network termination is usually in various heterogeneous network environments, and has the ability of perception scene changes.For example, before terminal device passes through The variation of radio frequency (RF, Radio Frequency) module or sensor module etc. the perception environment at end, by calculating, decision is needed The counter-measure to be taken.Internet-of-things terminal according to using the scalability can be divided into simple function terminal and universal intelligent terminal, Data penetration transmission terminal and non-data transparent transmission terminal can be divided into according to transmission channel.
It should be appreciated that the subdomain 411a of above-mentioned load domain 411 can have identical size also and can have different rulers It is very little.Can be between the size of each subdomain 411a it is associated be also possible to it is not associated.
In an optimization example of the invention, the tail portion each subdomain 411a of above-mentioned load domain 411 has expansion area 411b.In some embodiments of the invention, the module for updating firmware in the system 40 of firmware can be library (Library).Library It is the ordered set of the information such as an available various standardization programs, subprogram, file and their catalogue.It can manage Solution, the library of above-mentioned firmware can be the static library using static linkage form and the dynamic base using dynamic link form.
In one embodiment of this invention, the capacity of the equipment firmware regeneration block 421 in terminal device 420 and position The maximum subdomain association of size in multiple subdomain 411a of load domain 411 in server 410.It is appreciated that association can be with It is to be positively correlated the association for being also possible to negative correlation or other modes.In an optimization example of the invention, equipment firmware, which updates, to be divided The capacity in area 421 is equal with the maximum subdomain of size in multiple subdomain 411a of load domain 411, but embodiments herein is not As limit.
In one embodiment of this invention, equipment firmware regeneration block 421 further includes interim swapace 421b.In Fig. 4 Shown in an example, equipment firmware regeneration block 421 can be divided into regeneration block 421a and interim swapace 421b.Phase It answers, the capacity of regeneration block 421a is associated with the maximum subdomain of size in multiple subdomain 411a of load domain 411.
In one embodiment of this invention, terminal device 420 further include operation subregion 422, operation subregion 422 be configured to from Equipment firmware regeneration block 421, which receives, updates packet (not shown).
In one embodiment of this invention, the division mode for running subregion 422 is identical as load domain 411.It is shown in Fig. 4 In one example, operation subregion 422 can have multiple child partition 422a (such as M1, M2 ... Mn), and each child partition 422a can With the module relation with firmware.Running subregion 422 also has the expansion area 422b (example for being located at at least partly tail portion child partition 422a Such as IDLE1, IDEL2 ... IDLEn).In some embodiments of the invention, the module of above-mentioned firmware can be the library of firmware (Library)。
The expansion area 422b of operation subregion 422 is for storing newly-increased update packet.For example, refering to what is shown in Fig. 4, operation subregion The expansion area IDLE2 of 422 child partition M2 stores above-mentioned newly-increased update packet.Updated child partition M2 newly-increased more new district Domain 422c occupies a part of its expansion area IDLE2.
In one embodiment of this invention, server 410 is configured to generate difference packet as follows: firstly, comparing The new version (such as M2) and legacy version 430 (such as BIN_V_A) of subdomain 411a to be updated is to determine update area 440.So Afterwards, calculus of differences is carried out according to the update area of new version 440 and (such as BIN_V_A) update area of legacy version 430 and generated Difference packet.
Refering to what is shown in Fig. 4, in some embodiments of the invention, the system 40 of above-mentioned update firmware further includes comparator 401 and difference engine 402.Subdomain 411a to be updated in load domain 411 new version (such as M2) and legacy version 430 (such as BIN_V_A update area 440) is obtained after comparator 401.New version update area 440 and legacy version 430 (such as BIN_V_A) update area obtains difference packet after difference engine 402.In some instances, the update area of above-mentioned new version 440 can be marked by the initial address (such as SADDR) and end address (such as EADDR) of the update area 440.
In one embodiment of this invention, the system 40 of above-mentioned update firmware can also include exchange partition 450.Exchange point Area 450 is up the backup subregion of version.Start after operation subregion 422 can not normally start or OTA updates When abnormal, need for be restored to exchange partition 450 operation subregion 422 to restart.
It should be noted that operation subregion 422, equipment firmware regeneration block 421 and exchange partition 450 can be located at data Persistent storage.For example, based on memory technologies data persistent storages such as NOR FLASH and NAND FLASH.Run subregion 422, in the memory that equipment firmware regeneration block 421 and exchange partition 450 can be different or positioned at the same memory Different storage zone.
It is appreciated that memory (Memory) can be internal storage (memory), be also possible to external memory or Combination.Wherein, memory can be semiconductor memory cell, including random access memory (RAM), read-only memory (ROM) And cache (CACHE).External memory can be multiple types, such as hard disk, floppy disk, CD and USB flash disk etc..
Above embodiments of the invention propose a kind of system for updating firmware, and the system of the update firmware can reduce pair The demand of terminal device memory space, while the data volume that can reduce firmware update when transmits.
Another aspect of the present invention proposes a kind of server for updating firmware.The server of the update firmware can reduce pair The demand of terminal device memory space, while the data volume that can reduce firmware update when transmits.
Refering to what is shown in Fig. 4, the server 410 of the update firmware has load domain 411.Load domain 411 has multiple subdomains 411a, the module relation of each subdomain 411a and firmware.Load domain 411 also has the expansion for being located at at least partly tail portion subdomain 411a Exhibition section 411b.Server 410 be configured to according to the new version (such as M2) and legacy version 430 of subdomain 411a to be updated (such as BIN_V_A difference packet) is generated.
Another aspect of the present invention proposes a kind of terminal device.The terminal device has lower memory space requirements, together When the data volume transmitted when can reduce firmware update.
Refering to what is shown in Fig. 4, the terminal device 420 includes equipment firmware regeneration block 421 and operation subregion 422.Equipment is solid Part regeneration block 421 is configured to save the difference packet received from above-mentioned server 410, and is generated and updated according to the difference packet Packet.
Running subregion 422 has multiple child partition 422a.The module relation of each child partition 422a and firmware.Run subregion 422 also have the expansion area 422b for being located at at least partly tail portion child partition 422a, and operation subregion 422 is configured to from equipment firmware more New subregion 421, which receives, updates packet, and expansion area 422b is for storing newly-increased update packet.
Another aspect of the present invention proposes a kind of method for updating firmware.The method of the update firmware can be reduced to terminal The demand of device memory, while the data volume that can reduce firmware update when transmits.
Fig. 5 is a kind of flow chart of the method for update firmware of one embodiment of the invention.This process for example can be in Fig. 4 Shown in implement in system or its change case, but not limited to this.Refering to what is shown in Fig. 5, the method for the update firmware includes following Step:
Step 501, load domain 411 is configured in server 410.Load domain 411 has multiple subdomain 411a, each subdomain The module relation of 411a and firmware.Load domain 411 also has the expansion area 411b for being located at at least partly tail portion subdomain 411a.
Step 502, difference packet is generated according to the new version and legacy version 430 of subdomain 411a to be updated in server 410, And send the difference packet.
In one embodiment of this invention, the step of generating difference packet includes: the new edition of subdomain 411a more to be updated This and legacy version 430 are to determine update area 440;According to 430 update area 440 of the update area 440 of new version and legacy version It carries out calculus of differences and generates difference packet.
Step 503, above-mentioned difference packet is received in terminal device 420, and the equipment firmware for being saved in terminal device 420 updates In subregion 421.
In one embodiment of this invention, multiple subdomains of the capacity of equipment firmware regeneration block 421 and load domain 411 The maximum subdomain 411a association of size in 411a.
In one embodiment of this invention, terminal device 420 includes operation subregion 422, and the method for above-mentioned update firmware is also It include: to be obtained to update packet according to difference packet in equipment firmware regeneration block 421;And packet will be updated and be sent to operation subregion 422.
In one embodiment of this invention, the division mode for running subregion 422 is identical as load domain 411, runs subregion 422 Expansion area 411b for storing newly-increased update packet.
Above embodiments of the invention provide a kind of method for updating firmware.The method of the update firmware can be reduced to end The demand of end equipment memory space, while the data volume that can reduce firmware update when transmits.The method of the present embodiment other Implementation detail can refer to the embodiment referring to Fig. 4 description, not reinflated herein.
The application has used particular words to describe embodiments herein.As " one embodiment ", " embodiment ", And/or " some embodiments " means a certain feature relevant at least one embodiment of the application, structure or feature.Therefore, it answers Emphasize and it is noted that " embodiment " or " one embodiment " that is referred to twice or repeatedly in this specification in different location or " alternate embodiment " is not necessarily meant to refer to the same embodiment.In addition, certain in one or more embodiments of the application Feature, structure or feature can carry out combination appropriate.
Although the present invention is described with reference to current specific embodiment, those of ordinary skill in the art It should be appreciated that above embodiment is intended merely to illustrate the present invention, can also make in the case where no disengaging spirit of that invention Various equivalent change or replacement out, therefore, as long as to the variation of above-described embodiment, change in spirit of the invention Type will all be fallen in the range of following claims.

Claims (15)

1. a kind of system for updating firmware, comprising:
Server, has load domain, and the load domain has multiple subdomains, the module relation of each subdomain and the firmware, institute Stating load domain also has the expansion area for being located at least partly subdomain tail portion, and the server is configured to according to subdomain to be updated New version and legacy version generate difference packet;And
Terminal device, including equipment firmware regeneration block, the terminal equipment configuration are to receive the difference from the server Packet, and be saved in the equipment firmware regeneration block.
2. system according to claim 1, which is characterized in that the capacity of the equipment firmware regeneration block and the load The maximum subdomain association of size in multiple subdomains in domain.
3. system according to claim 1, which is characterized in that the equipment firmware regeneration block includes that interim exchange is empty Between.
4. system according to claim 1, which is characterized in that the terminal device further includes operation subregion, the operation Zone configuration is to receive to update packet from the equipment firmware regeneration block.
5. system according to claim 4, which is characterized in that the division mode and the load domain phase of the operation subregion Together, the expansion area of the operation subregion is for storing newly-increased update packet.
6. system according to claim 1, which is characterized in that the module of the firmware is the library of the firmware.
7. system according to claim 1, which is characterized in that the server is configured to generate difference as follows Packet:
The new version and legacy version of subdomain more to be updated are to determine update area;And
Calculus of differences is carried out according to the update area of new version and legacy version update area and generates the difference packet.
8. system according to claim 1, which is characterized in that the terminal device is internet-of-things terminal.
9. it is a kind of update firmware server, have load domain, the load domain have multiple subdomains, each subdomain with it is described solid The module relation of part, the load domain also have the expansion area for being located at least partly subdomain tail portion, and the server is configured to root Difference packet is generated according to the new version and legacy version of subdomain to be updated.
10. a kind of terminal device, comprising:
Equipment firmware regeneration block is configured to save the difference packet received from server, and is generated more according to the difference packet New packet;
Subregion is run, there are multiple child partitions, the module relation of each child partition and the firmware, the operation subregion also has Positioned at the expansion area of at least partly child partition tail portion, the operation zone configuration is to receive more from the equipment firmware regeneration block New packet, the expansion area is for storing newly-increased update packet.
11. a kind of method for updating firmware, comprising the following steps:
Load domain is configured in server, the load domain has multiple subdomains, the module relation of each subdomain and the firmware, institute Stating load domain also has the expansion area for being located at least partly subdomain tail portion;
Difference packet is generated according to the new version and legacy version of subdomain to be updated in the server, and sends the difference packet; And
The difference packet is received in terminal device, and is saved in the equipment firmware regeneration block of the terminal device.
12. according to the method for claim 11, which is characterized in that the capacity of the equipment firmware regeneration block adds with described Carry the maximum subdomain association of size in multiple subdomains in domain.
13. according to the method for claim 11, which is characterized in that the terminal device includes operation subregion, the method Further include:
It is obtained in the equipment firmware regeneration block according to the difference packet and updates packet;And
Update packet is sent to the operation subregion.
14. according to the method for claim 13, which is characterized in that the division mode and the load domain of the operation subregion Identical, the expansion area of the operation subregion is for storing newly-increased update packet.
15. according to the method for claim 11, which is characterized in that generate difference packet the step of include:
The new version and legacy version of subdomain more to be updated are to determine update area;And
Calculus of differences is carried out according to the update area of new version and legacy version update area and generates the difference packet.
CN201910579235.3A 2019-06-28 2019-06-28 System and method for updating firmware Active CN110275728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910579235.3A CN110275728B (en) 2019-06-28 2019-06-28 System and method for updating firmware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910579235.3A CN110275728B (en) 2019-06-28 2019-06-28 System and method for updating firmware

Publications (2)

Publication Number Publication Date
CN110275728A true CN110275728A (en) 2019-09-24
CN110275728B CN110275728B (en) 2023-11-07

Family

ID=67963575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910579235.3A Active CN110275728B (en) 2019-06-28 2019-06-28 System and method for updating firmware

Country Status (1)

Country Link
CN (1) CN110275728B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045714A (en) * 2019-12-19 2020-04-21 歌尔股份有限公司 Firmware updating method and device, earphone and computer readable storage medium
CN113950118A (en) * 2021-10-14 2022-01-18 四川九州电子科技股份有限公司 Mesh-based software upgrading method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105573780A (en) * 2015-12-08 2016-05-11 北京元心科技有限公司 Container based mobile terminal operation system upgrading method and apparatus
CN105812178A (en) * 2016-03-08 2016-07-27 青岛海信移动通信技术股份有限公司 Terminal upgrade method and terminal
CN106686578A (en) * 2016-12-28 2017-05-17 深圳天珑无线科技有限公司 Difference package generation method and apparatus
CN109558160A (en) * 2017-09-26 2019-04-02 阿里巴巴集团控股有限公司 Upgrade method, embedded system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778376A (en) * 2009-12-31 2010-07-14 中兴通讯股份有限公司 Method and device for realizing wireless firmware update
CN103577202B (en) * 2012-07-23 2018-03-09 努比亚技术有限公司 Method for upgrading software and system
CN104932909A (en) * 2014-03-17 2015-09-23 中兴通讯股份有限公司 Terminal software upgrading method and device
CN107273160A (en) * 2017-06-09 2017-10-20 青岛海信电器股份有限公司 A kind of method and device of edition upgrading

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105573780A (en) * 2015-12-08 2016-05-11 北京元心科技有限公司 Container based mobile terminal operation system upgrading method and apparatus
CN105812178A (en) * 2016-03-08 2016-07-27 青岛海信移动通信技术股份有限公司 Terminal upgrade method and terminal
CN106686578A (en) * 2016-12-28 2017-05-17 深圳天珑无线科技有限公司 Difference package generation method and apparatus
CN109558160A (en) * 2017-09-26 2019-04-02 阿里巴巴集团控股有限公司 Upgrade method, embedded system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045714A (en) * 2019-12-19 2020-04-21 歌尔股份有限公司 Firmware updating method and device, earphone and computer readable storage medium
CN111045714B (en) * 2019-12-19 2022-03-01 歌尔股份有限公司 Firmware updating method and device, earphone and computer readable storage medium
CN113950118A (en) * 2021-10-14 2022-01-18 四川九州电子科技股份有限公司 Mesh-based software upgrading method
CN113950118B (en) * 2021-10-14 2023-04-28 四川九州电子科技股份有限公司 Mesh-based software upgrading method

Also Published As

Publication number Publication date
CN110275728B (en) 2023-11-07

Similar Documents

Publication Publication Date Title
CN111880936B (en) Resource scheduling method, device, container cluster, computer equipment and storage medium
US10019459B1 (en) Distributed deduplication in a distributed system of hybrid storage and compute nodes
CN105516367A (en) Distributed data storage system, method and device
CN110275728A (en) Update the system and method for firmware
CN107209716B (en) Memory management device and method
US9733835B2 (en) Data storage method and storage server
CN104023246A (en) Private video data cloud-storage system and method
CN101938516B (en) User-oriented dynamic storage resource distribution method
CN105260377A (en) Updating method and system based on hierarchical storage
CN103986783A (en) Cloud computing system
CN103593485A (en) Method and device for achieving real-time operation on data base
CN101727503A (en) Method for establishing disk file system
CN103259869A (en) Concentrated information management method based on distributed data storage
CN110765073B (en) File management method, medium, device and apparatus for distributed storage system
CN101483668A (en) Network storage and access method, device and system for hot spot data
CN112799588B (en) Data storage method for loading container cluster application data by using external storage
CN117914675A (en) Method and device for constructing distributed cache system
CN107943615B (en) Data processing method and system based on distributed cluster
CN117453130A (en) Trillion-level unstructured data storage management method, system, device and medium
CN109496420B (en) Ring server cluster management method, device and computer storage medium
CN104901903A (en) Multi-domain resource processing method and system for software defined network
CN113849309B (en) Memory allocation method and device for business object
CN107305581B (en) Table connection method in distributed database system and distributed database system
CN106843925B (en) Dynamic loading method for functional module of DSP
CN105704037A (en) Table item storage method and controller

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant