CN109271190A - A kind of device updating method and embedded device - Google Patents
A kind of device updating method and embedded device Download PDFInfo
- Publication number
- CN109271190A CN109271190A CN201811198382.8A CN201811198382A CN109271190A CN 109271190 A CN109271190 A CN 109271190A CN 201811198382 A CN201811198382 A CN 201811198382A CN 109271190 A CN109271190 A CN 109271190A
- Authority
- CN
- China
- Prior art keywords
- image file
- file
- update program
- upgrade
- embedded device
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 78
- 238000009434 installation Methods 0.000 claims abstract description 14
- 238000007689 inspection Methods 0.000 claims description 19
- 230000008569 process Effects 0.000 description 11
- 238000013461 design Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 238000004590 computer program Methods 0.000 description 7
- 230000008859 change Effects 0.000 description 5
- 238000007906 compression Methods 0.000 description 5
- 230000006835 compression Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000007704 transition Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 230000004888 barrier function Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 230000006837 decompression Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
Abstract
The embodiment of the present application provides a kind of device updating method and embedded device, comprising: equipment receives the image file for upgrading;Judge in the image file whether to include new update program;If including new update program in the image file, the upgrade file in the image file is installed according to the new update program.If in image file including new update program, then show that the upgrade procedure stored in original embedded device is unable to satisfy the demand of this upgrading, and update program new in image file can complete the installation upgrading of this upgrade file, therefore embedded device can install upgrade file according to new update program.Device updating method provided by the present application is when embedded device can not preferably be compatible with new upgrade file, update program is issued into embedded device together with upgrade file, to disposably complete the upgrading of target version, reduce product manages and maintains cost.
Description
Technical field
This application involves fields of communication technology, in particular to a kind of device updating method and embedded device.
Background technique
With development in science and technology, embedded device has low cost, scalability, portability and high reliability etc. because of it
Advantage is more and more widely used in fields such as communication, industry, securities.The composition of embedded device is with embedded
It handles based on chip, related hardwares module and the software program such as cooperation memory, FLASH, collectively constitutes a collection software and hardware one
The equipment that can work independently.
In the use process of embedded device, since there is new demand to product or solve to occur in use process
The problem of, it is often necessary to firmware upgrade is carried out to equipment.In the prior art, usually by being used to carry out in embedded device
The upgraded module downloading upgrade image file of software upgrading is simultaneously upgraded according to upgrade image file.
With the demand in market and the evolution of software version, version information, facility information, image file layout etc. may
It adjusts, causes the upgrade procedure in equipment that can not carry out compatible upgrading to the upgrade image file after change.
Apply for content
In view of this, the embodiment of the present application provides a kind of device updating method and embedded device.
In a first aspect, the embodiment of the present application provides a kind of device updating method, which comprises equipment reception is used for
The image file of upgrading;Judge in the image file whether to include new update program;If being wrapped in the image file
New update program is included, the upgrade file in the image file is installed according to the new update program.
If including new update program in image file, show the upgrade procedure stored in original embedded device
It is unable to satisfy the demand of this upgrading, and update program new in image file can complete the installation of this upgrade file
Upgrading, therefore embedded device can install upgrade file according to new update program.It is provided by the embodiments of the present application to set
Standby upgrade method is when embedded device can not preferably be compatible with new upgrade file, by update program together with upgrade file one
It rises and issues embedded device, so that disposably completing the upgrading of target version reduces the management of product compared with prior art
And maintenance cost, reduce the influence that the secondary upgrading of version uses market, increases customer satisfaction.
In a possible design, the image file further includes image file head, is received described for upgrading
After image file, it is described judge in the image file whether include new update program before, the method is also
It include: to determine that the image file passes through the first validity checking according to the image file head.
After receiving image file, before whether including new update program in judging image file, also
The first validity checking can be carried out to image file according to image file head.First validity checking is used for image file
Legitimacy and safety are checked, it is ensured that image file is safe, legal, complete;First validity checking includes identification code, school
The inspection for testing code, encryption situation and compression method shows the image file not if the first validity checking can not all pass through
Be suitble to current embedded device, be just not required to be made whether again include new update program judgement.
In a possible design, the text of the upgrading in the image file is installed according to the new update program
Part, comprising: according to the new update program, the second legitimacy inspection is carried out to the upgrade file in the image file
It looks into;If inspection passes through, the upgrade file in the image file is installed.
When the upgrade file in the image file being installed according to the new update program, the new upgrading peace
It fills program and the second validity checking is carried out to the upgrade file in the image file according to image file head, mainly to described
Facility information and version information in image file head carry out validity checking.The inspection of facility information and version information is referred to
Judge whether facility information and version information in image file head meet the Rule of judgment in new update program.Having can
The Rule of judgment that can be stored in advance in embedded device is unsatisfactory for the rule of the second validity checking, and new update journey
The Rule of judgment of sequence meets the rule of the second validity checking, i.e., the Rule of judgment of new update program is quasi- much sooner
Really, therefore the second validity checking can be carried out according to new update program, so that more about the second validity checking
It is accurate to add.
In a possible design, it is described judge in the image file whether include new update program it
Afterwards, the method also includes: if in the image file do not include new update program, according to the pre-stored liter of equipment
Grade installation procedure installs the upgrade file in the image file.
If in image file not including new update program, show that the upgrade procedure stored in embedded device can be with
Meet the needs of this upgrading, therefore the upgrading in image file can be installed according to the pre-stored update program of equipment
File.Decide whether that upgrading text is installed by pre-stored update program by judging image file
Part preferably realizes compatibility and coexists with installation effectiveness.
It is described that the image file is installed according to the pre-stored update program of equipment in a possible design
In upgrade file, comprising: according to the pre-stored update program, to the upgrade file in the image file into
The second validity checking of row;If inspection passes through, the upgrade file in the image file is installed.
Embedded device can first pass through whether the upgrade file that the judgement of image file head is stated in image file meets second
Validity checking rule, if it is satisfied, just upgrading according to the upgrade file in image file to embedded device.Second closes
Method inspection can specifically include the inspection of the information such as facility information, version information, it is ensured that the upgrade file symbol in image file
It closes upgrading to require, ensure that the accuracy of upgrading by the second validity checking, avoid the version for being mounted with mistake and lead to event
The appearance of barrier.
Second aspect, the embodiment of the present application provide a kind of embedded device, and the embedded device includes: upgrade file
Receiving module, for receiving the image file for being used for upgrading;Installation procedure judgment module is in the image file for judging
No includes new update program;First upgraded module, if for including new update program in the image file,
The upgrade file in the image file is installed according to the new update program.
If including new update program in image file, show the upgrade procedure stored in original embedded device
It is unable to satisfy the demand of this upgrading, and update program new in image file can complete the installation of this upgrade file
Upgrading, therefore embedded device can install upgrade file according to new update program.It is provided by the embodiments of the present application to set
Standby upgrade method is when embedded device can not preferably be compatible with new upgrade file, by update program together with upgrade file one
It rises and issues embedded device, to disposably complete the upgrading of target version, avoid the low failure being likely to occur of compatibility.
In a possible design, the image file further includes image file head, the embedded device further include:
Legitimacy module, for carrying out the first validity checking to the image file according to the image file head.
After receiving image file, and judge in image file whether include new update program before,
The first validity checking can also be carried out to image file according to image file head.First validity checking is used for image file
Legitimacy and safety checked, it is ensured that image file is safe, legal, complete;First validity checking include identification code,
The inspection of check code, encryption situation and compression method, then show that the image file is not suitable for current embedded device, just not
Need to be made whether again include new update program judgement.
In a possible design, the validity checking module is also used to according to the new update program,
Second validity checking is carried out to the upgrade file in the image file;
First upgraded module is specifically used for, if including new update program in the image file, and described
Upgrade file in image file then installs the mirror image according to the new update program by the second validity checking
Upgrade file in file.
The Rule of judgment for including in new update program and the Rule of judgment being stored in advance in embedded device are not
Together, it is possible to which the Rule of judgment being stored in advance in embedded device is unsatisfactory for the rule of the second legal inspection, and new upgrading
The Rule of judgment of installation procedure meets the rule of the second validity checking, i.e., the Rule of judgment of new update program more and
When it is accurate, therefore the second validity checking can be carried out according to new update program, so that examining about the second legitimacy
It is more accurate to look into.
In a possible design, the embedded device includes: the second upgraded module, if being used for the image file
In do not include new update program, the liter in the image file is installed according to the pre-stored update program of equipment
Grade file.
If in image file not including new update program, show that the upgrade procedure stored in embedded device can be with
Meet the needs of this upgrading, therefore the upgrading in image file can be installed according to the pre-stored update program of equipment
File.Decide whether that upgrading text is installed by pre-stored update program by judging image file
Part preferably realizes compatibility and coexists with installation effectiveness.
In a possible design, the validity checking module is also used to be pacified according to the pre-stored upgrading
Program is filled, the second validity checking is carried out to the upgrade file in the image file;Second upgraded module is specifically used for,
If in the image file not including new update program, and the upgrade file in the image file is legal by second
Property inspection, then install the upgrade file in the image file according to the pre-stored update program of equipment.
It is legal that embedded device can judge whether the upgrade file in image file meets second according to image file head
The rule of property inspection, if it is satisfied, installing the upgrading in the image file according to the pre-stored update program of equipment
File just completes the upgrading of image file.Second validity checking can specifically include the information such as facility information, version information
It checks, it is ensured that image file meets upgrading and requires, and ensure that the accuracy of upgrading by the second validity checking, avoids being mounted with
The version of mistake and the appearance for leading to failure.
The third aspect, the application provide a kind of electronic equipment, comprising: processor, memory and bus, the memory are deposited
The executable machine readable instructions of the processor are contained, when electronic equipment operation, the processor and the storage
By bus communication between device, execution first aspect or first aspect when the machine readable instructions are executed by the processor
Method described in any optional implementation.
Fourth aspect, the application provide a kind of computer readable storage medium, store on the computer readable storage medium
There is computer program, any optional realization of first aspect or first aspect is executed when which is run by processor
Method described in mode.
5th aspect, the application provide a kind of computer program product, and the computer program product is transported on computers
When row, so that computer executes the method in any possible implementation of first aspect or first aspect.
Above objects, features, and advantages to enable the embodiment of the present application to be realized are clearer and more comprehensible, be cited below particularly compared with
Good embodiment, and cooperate appended attached drawing, it is described in detail below.
Detailed description of the invention
Illustrate the technical solutions in the embodiments of the present application or in the prior art in order to clearer, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the flow diagram for the device updating method that the application first embodiment provides;
Fig. 2 is a kind of process signal of the specific embodiment for the device updating method that the application first embodiment provides
Figure;
Fig. 3 is the specific steps flow chart of step S130;
Fig. 4 is the specific steps flow chart of step S140;
Fig. 5 is the structural block diagram for the embedded device that the application second embodiment provides;
Fig. 6 is the schematic diagram of image file structure.
Specific embodiment
In the prior art, embedded device is downloaded upgrade image file by the upgraded module in equipment, upgrades,
The related contents such as kernel mirror image, file system are usually only included in upgrade image file.Wherein, there are many kinds of kernel mirror images, base
Originally it is all based on vmlinux compression plus head obtains, in order to make kernel mirror image as small as possible, be situated between in embedded middle storage
The space of matter is smaller, and kernel needs memory-resident, therefore kernel mirror image can occupy less memory space.File system is
Operating system is for clearly storing the method and data structure of equipment or the file on subregion;That is constituent act on a storage device
Method, be responsible for management in operating system and the software mechanism of storage file information be known as file management system, abbreviation file system
System.
With the demand in market and the evolution of software version, version information, facility information, image file layout etc. may
It adjusts, compatible upgrading can not be carried out to the upgrade image file after change so as to cause the upgrade procedure in equipment.It faces
Such case, common practice is to generate image file transition version in the prior art, is then mesh by transition edition upgrading
Version is marked, however which has the following disadvantages: and needs to generate transition version, increases the difficulty of version management and maintenance, increases
Product cost;It needs to be upgraded twice and can just be upgraded to target version, influence market use.
Drawbacks described above existing in the prior art, applicants contemplate that being inventor after practicing and carefully studying
It is obtaining as a result, therefore, what the discovery procedure of the above problem and the hereinafter embodiment of the present invention were proposed regarding to the issue above
Solution all should be the contribution that inventor makes the present invention in process of the present invention.
In order to solve the above technical problems, the embodiment of the present application provides following device updating method and embedded device,
Below in conjunction with attached drawing, in the embodiment of the present application device updating method and embedded device describe in detail.
First embodiment
Referring to Figure 1, Fig. 1 shows the flow diagram of the device updating method of the application first embodiment offer, tool
Body includes the following steps:
Step S110, equipment receive the image file for upgrading.
Embedded device receives the image file for upgrading, and image file can be specifically sent to embedded by server
Equipment can also pass through the user terminal held by user and image file is sent to embedded device.
Image file is the software program for carrying out software upgrading to the embedded device.In the embodiment of the present invention, ask
Referring to Fig. 6, image file includes image file head and file, and the identification code of file is defined in file header structure, check code, is added
Decryption method, compression method, version information, facility information and the file information.Defined in the file information the type of file, title,
Length and offset, embedded device can determine file type in image file by the file information and patrol location, to mention
Take corresponding file.There are minimum of one file in image file, most 16 files are right respectively with the file information 1 to 16
It answers;When number of files is less than 16, it is insufficient after file type mark in corresponding the file information be there is no, deviating is 0,
Length is 0, the entitled sky of file.
File header provides the legitimacy of file, integrality and can expand for controlling the content mirrors of file
The support of malleability cooperates upgrade procedure, completes the otherness upgrading of upgrade file.
File includes upgrade file and extension file, may further include update program.Wherein, upgrade file is that this is embedding
Entering formula equipment, this upgrades the file needed to be upgraded in embedded device, includes one or more upgrade package in image file,
Upgrade file can refer to the upgrade package for combining kernel and file system, be also possible to kernel file, file system list
Solely existing two upgrade files, specific upgrade file type are related to embedded system division.After extension file is support
Grade of continuing rising extends the file used, promotes the scalability of upgrade function.Update program is for completing this upgrading
Executable program can be two-stage system file or other executable script files.
Whether step S120 judges in the image file to include new update program, if so, executing step
S130。
Whether embedded device can decompress image file, and judge in the image file after decompression to include upgrading
Installation procedure shows the upgrading journey stored in original embedded device if including new update program in image file
Sequence is unable to satisfy the demand of this upgrading, and update program new in image file can complete the peace of this upgrade file
Dress upgrading, executes step S130.
Step S130 installs the upgrade file in the image file according to the new update program.
Embedded device can install upgrade file according to new update program.It is provided by the embodiments of the present application to set
Standby upgrade method is when embedded device can not preferably be compatible with new upgrade file, by update program together with upgrade file one
It rises and issues embedded device, to disposably complete the upgrading of target version, avoid the low failure being likely to occur of compatibility.
Fig. 2 is referred to, Fig. 2 shows a kind of specific embodiment parties for the device updating method that the application first embodiment provides
Formula specifically comprises the following steps:
Step S110, equipment receive the image file for upgrading.
Step S111 determines that the image file passes through the first validity checking according to the image file head.
After receiving the image file for upgrading, and judge in image file whether to include new update journey
Before sequence, the first validity checking can also be carried out to the image file according to the image file head.The inspection of first legitimacy
The inspection including identification code, check code, cipher mode and compression method is looked into, if the first validity checking can not all pass through,
Show that the image file is not suitable for current embedded device, is just not required to be made whether again to include sentencing for new update program
Break.
Specifically, embedded device can by the identification code of itself storage, check code and image file head identification code,
Check code compares, by itself cipher mode of storage, the cipher mode of compress mode and the image file, compress mode into
Row comparison, when above-mentioned adjusting compares consistent, then determines that the first validity checking passes through.
Whether step S120 judges in the image file to include new update program, if so, executing step
S130;If it is not, executing step S140.
Step S130 installs the upgrade file in the image file according to the new update program.
Fig. 2 shows step S110 to step S130 and step S110 shown in fig. 1 to step S130 it is corresponding identical, herein
Just it does not repeat them here.
Fig. 3 is referred to, Fig. 3 shows the specific steps flow chart of step S130, specifically comprises the following steps:
Step S131 judges whether the upgrade file in the image file is full according to the new update program
The second validity checking of foot, if so, executing step S132.
The Rule of judgment for including in new update program and the Rule of judgment being stored in advance in embedded device are not
Together, it is possible to which the Rule of judgment being stored in advance in embedded device is unsatisfactory for the second legitimacy, and new update program
Rule of judgment meet the second legitimacy, i.e., the Rule of judgment of new update program is accurate much sooner, therefore can root
The inspection of the second legitimacy is carried out according to new update program.
Second validity checking can specifically carry out the inspection of the information such as facility information, version information, i.e., according to new liter
Whether grade installation procedure meets the needs of upgrading come the facility information or version information for judging embedded device.
Specifically, the update program being stored in advance in embedded device judges the version of the upgrade file received
Whether this number be greater than 3.0, can be upgraded according to the upgrade file to the embedded device if more than 3.0 judgements.And with
The evolution of software version, adjustment is made that version information, such as version number is started counting by 1.0 again.At this point, if according to
So carry out the judgement of version number according to the update program being stored in advance in embedded device, version 1.0 certainly less than
Version 3 .0 will lead to the embedded device and be unable to complete this time upgrading.
And new update program can change Rule of judgment, so that embedded device judgement this time received
Whether the version number of upgrade file is greater than 1.0, if so, updating operation can be continued to execute.
Step S132 installs the upgrade file in the image file.
After completing the second validity checking according to new update program, the upgrading of image file can be carried out.
Step S140 installs the upgrade file in the image file according to the pre-stored update program of equipment.
If in image file not including new update program, show that the upgrade procedure stored in embedded device can be with
Meet the needs of this upgrading, therefore the upgrading in image file can be installed according to the pre-stored update program of equipment
File.
Fig. 4 is referred to, Fig. 4 shows the specific steps flow chart of step S140, specifically comprises the following steps:
Step S141 judges the upgrade file in the image file according to the pre-stored update program
Whether the second validity checking is passed through.
Decide whether that upgrading is installed by pre-stored update program by judging image file
File preferably realizes compatibility and coexists with installation effectiveness.Embedded device can first judge the description of image file head
Whether information meets the second validity checking, if it is satisfied, just completing the upgrading of image file.
Step S142 installs the upgrade file in the image file.
The device updating method that the application first embodiment provides can not preferably be compatible with new upgrading text in embedded device
When part, update program is issued into embedded device together with upgrade file, to disposably complete the liter of target version
Grade can solve upgrade procedure in equipment and consider upgrade problem caused by the factors such as not comprehensive or unpredictability, with existing skill
Art is compared, and reduce product manages and maintains cost, is reduced the influence that the secondary upgrading of version uses market, is increased client
Satisfaction.
Second embodiment
Fig. 5 is referred to, Fig. 5 shows the embedded device of the application second embodiment offer, the embedded device 300 packet
It includes:
Upgrade file receiving module 310, for receiving the image file for being used for upgrading.
Installation procedure judgment module 320, for judging in the image file whether to include new update program.
First upgraded module 330, if for including new update program in the image file, according to described new
Update program installs the upgrade file in the image file.
The embedded device further include:
Validity checking module, for carrying out the first legitimacy inspection to the image file according to the image file head
It looks into.The validity checking module is also used to according to the new update program, to the upgrading text in the image file
Part carries out the second validity checking.
First upgraded module 330 is used for, if in the image file including new update program, and the mirror
As the upgrade file in file is by the second validity checking, then the mirror image text is installed according to the new update program
Upgrade file in part.
Second upgraded module, if for not including new update program in the image file, it is preparatory according to equipment
The update program of storage installs the upgrade file in the image file.
The validity checking module is also used to according to the pre-stored update program, to the mirror image text
Upgrade file in part carries out the second validity checking.
Second upgraded module is used for, if in the image file not including new update program, and the mirror
As the upgrade file in file is by the second validity checking, then according to the pre-stored update program installation of equipment
Upgrade file in image file.
It is apparent to those skilled in the art that for convenience and simplicity of description, the insertion of foregoing description
The specific work process of formula equipment no longer can excessively repeat herein with reference to the corresponding process in preceding method.
The application also provides a kind of electronic equipment, comprising: processor, memory and bus, the memory storage is
The executable machine readable instructions of processor are stated, when electronic equipment operation, between the processor and the memory
By bus communication, method described in first embodiment is executed when the machine readable instructions are executed by the processor.
The application also provides a kind of computer readable storage medium, is stored with computer on the computer readable storage medium
Program executes method described in first embodiment when the computer program is run by processor.
The application also provides a kind of computer program product to be made when the computer program product is run on computers
It obtains computer and executes method described in first embodiment.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description
Specific work process, no longer can excessively be repeated herein with reference to the corresponding process in preceding method.
The embodiment of the present application provides a kind of device updating method and embedded device, comprising: equipment is received for upgrading
Image file;Judge in the image file whether to include new update program;If including new in the image file
Update program, the upgrade file in the image file is installed according to the new update program.If mirror image is literary
Include new update program in part, then shows that the upgrade procedure stored in original embedded device is unable to satisfy this upgrading
Demand, and update program new in image file can complete the installation upgrading of this upgrade file, therefore embedded set
It is standby upgrade file to be installed according to new update program.Device updating method provided by the embodiments of the present application is being embedded in
When formula equipment can not preferably be compatible with new upgrade file, update program is issued into embedded set together with upgrade file
It is standby, to disposably complete the upgrading of target version, it can solve upgrade procedure in equipment and consider not comprehensive or unpredictability
Etc. upgrade problem caused by factors, compared with prior art, reduce product manages and maintains cost, and it is secondary to reduce version
Upgrade the influence used market, increases customer satisfaction.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight
Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other.
For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng
See the part explanation of embodiment of the method.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through it
Its mode is realized.The apparatus embodiments described above are merely exemplary, for example, the flow chart and block diagram in attached drawing are aobvious
The device of multiple embodiments according to the application, architectural framework in the cards, the function of method and computer program product are shown
It can and operate.In this regard, each box in flowchart or block diagram can represent one of a module, section or code
Point, a part of the module, section or code includes one or more for implementing the specified logical function executable
Instruction.It should also be noted that function marked in the box can also be attached to be different from some implementations as replacement
The sequence marked in figure occurs.For example, two continuous boxes can actually be basically executed in parallel, they sometimes may be used
To execute in the opposite order, this depends on the function involved.It is also noted that each of block diagram and or flow chart
The combination of box in box and block diagram and or flow chart can be based on the defined function of execution or the dedicated of movement
The system of hardware is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the application can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) execute each embodiment the method for the application all or part of the steps.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.It needs
Illustrate, herein, relational terms such as first and second and the like be used merely to by an entity or operation with
Another entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this realities
The relationship or sequence on border.Moreover, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability
Contain, so that the process, method, article or equipment for including a series of elements not only includes those elements, but also including
Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device.
In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element
Process, method, article or equipment in there is also other identical elements.
The foregoing is merely preferred embodiment of the present application, are not intended to limit this application, for the skill of this field
For art personnel, various changes and changes are possible in this application.Within the spirit and principles of this application, made any to repair
Change, equivalent replacement, improvement etc., should be included within the scope of protection of this application.It should also be noted that similar label and letter exist
Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing
It is further defined and explained.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any
Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain
Lid is within the scope of protection of this application.Therefore, the protection scope of the application shall be subject to the protection scope of the claim.
Claims (10)
1. a kind of device updating method, which is characterized in that the described method includes:
Equipment receives the image file for upgrading;
Judge in the image file whether to include new update program;
If in the image file including new update program, the mirror image is installed according to the new update program
Upgrade file in file.
2. the method according to claim 1, wherein the image file further includes image file head, described
After receiving the image file for upgrading, it is described judge in the image file whether including new update program it
Before, the method also includes:
According to the image file head, determine that the image file passes through the first validity checking.
3. according to the method described in claim 2, it is characterized in that, described according to the new update program installation
Upgrade file in image file, comprising:
According to the new update program, the second validity checking is carried out to the upgrade file in the image file;If
Inspection passes through, and installs the upgrade file in the image file.
4. according to the method described in claim 2, it is characterized in that, judging in the image file whether to include new described
After update program, the method also includes:
If in the image file not including new update program, installed according to the pre-stored update program of equipment
Upgrade file in the image file.
5. according to the method described in claim 4, it is characterized in that, described pacify according to the pre-stored update program of equipment
Fill the upgrade file in the image file, comprising:
According to the pre-stored update program, the second legitimacy inspection is carried out to the upgrade file in the image file
It looks into;If inspection passes through, the upgrade file in the image file is installed.
6. a kind of embedded device, which is characterized in that the embedded device includes:
Upgrade file receiving module, for receiving the image file for being used for upgrading;
Installation procedure judgment module, for judging in the image file whether to include new update program;
First upgraded module, if being pacified for including new update program in the image file according to the new upgrading
Dress program installs the upgrade file in the image file.
7. embedded device according to claim 6, which is characterized in that the image file further includes image file head,
The embedded device further include:
Validity checking module, for carrying out the first validity checking to the image file according to the image file head.
8. embedded device according to claim 7, which is characterized in that
The validity checking module is also used to according to the new update program, to the upgrading in the image file
File carries out the second validity checking;
First upgraded module is used for, if in the image file including new update program, and the image file
In upgrade file by the second validity checking, then installed in the image file according to the new update program
Upgrade file.
9. embedded device according to claim 7, which is characterized in that the embedded device further include:
Second upgraded module, if being stored in advance for not including new update program in the image file according to equipment
Update program the upgrade file in the image file is installed.
10. embedded device according to claim 9, which is characterized in that
The validity checking module is also used to according to the pre-stored update program, in the image file
Upgrade file carry out the second validity checking;
Second upgraded module is used for, if in the image file not including new update program, and mirror image text
Upgrade file in part then installs the mirror image according to the pre-stored update program of equipment by the second validity checking
Upgrade file in file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811198382.8A CN109271190A (en) | 2018-10-15 | 2018-10-15 | A kind of device updating method and embedded device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811198382.8A CN109271190A (en) | 2018-10-15 | 2018-10-15 | A kind of device updating method and embedded device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109271190A true CN109271190A (en) | 2019-01-25 |
Family
ID=65196207
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811198382.8A Pending CN109271190A (en) | 2018-10-15 | 2018-10-15 | A kind of device updating method and embedded device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109271190A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110362427A (en) * | 2019-06-26 | 2019-10-22 | 苏州浪潮智能科技有限公司 | A kind of processing method of image file, system, BMC and readable storage medium storing program for executing |
CN111209017A (en) * | 2019-10-23 | 2020-05-29 | 高新兴创联科技有限公司 | CIR file remote upgrading method based on GMS |
CN112596765A (en) * | 2020-12-22 | 2021-04-02 | 华立科技股份有限公司 | Power equipment upgrading method, system and related device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102103509A (en) * | 2010-11-23 | 2011-06-22 | Tcl集团股份有限公司 | Method for remotely and automatically upgrading Internet television |
CN102255756A (en) * | 2011-07-21 | 2011-11-23 | 中兴通讯股份有限公司 | Method and system for upgrading set-top box |
CN102436383A (en) * | 2010-09-29 | 2012-05-02 | 中国移动通信集团公司 | Method and device for processing firmware programs |
CN102546818A (en) * | 2012-02-13 | 2012-07-04 | 成都欣点科技有限公司 | Method and system for upgrading embedded equipment in batches |
CN105446769A (en) * | 2015-11-03 | 2016-03-30 | 广东欧珀移动通信有限公司 | Mirror image file update processing method and apparatus and terminal device |
CN105487888A (en) * | 2015-11-26 | 2016-04-13 | 武汉光迅科技股份有限公司 | Method for generating upgrade file in system upgrade and/or application upgrade |
CN107943501A (en) * | 2017-11-30 | 2018-04-20 | 深圳市东微智能科技股份有限公司 | Embedded device upgrade method, device, computer equipment and storage medium |
-
2018
- 2018-10-15 CN CN201811198382.8A patent/CN109271190A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102436383A (en) * | 2010-09-29 | 2012-05-02 | 中国移动通信集团公司 | Method and device for processing firmware programs |
CN102103509A (en) * | 2010-11-23 | 2011-06-22 | Tcl集团股份有限公司 | Method for remotely and automatically upgrading Internet television |
CN102255756A (en) * | 2011-07-21 | 2011-11-23 | 中兴通讯股份有限公司 | Method and system for upgrading set-top box |
CN102546818A (en) * | 2012-02-13 | 2012-07-04 | 成都欣点科技有限公司 | Method and system for upgrading embedded equipment in batches |
CN105446769A (en) * | 2015-11-03 | 2016-03-30 | 广东欧珀移动通信有限公司 | Mirror image file update processing method and apparatus and terminal device |
CN105487888A (en) * | 2015-11-26 | 2016-04-13 | 武汉光迅科技股份有限公司 | Method for generating upgrade file in system upgrade and/or application upgrade |
CN107943501A (en) * | 2017-11-30 | 2018-04-20 | 深圳市东微智能科技股份有限公司 | Embedded device upgrade method, device, computer equipment and storage medium |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110362427A (en) * | 2019-06-26 | 2019-10-22 | 苏州浪潮智能科技有限公司 | A kind of processing method of image file, system, BMC and readable storage medium storing program for executing |
CN111209017A (en) * | 2019-10-23 | 2020-05-29 | 高新兴创联科技有限公司 | CIR file remote upgrading method based on GMS |
CN111209017B (en) * | 2019-10-23 | 2023-09-22 | 高新兴创联科技股份有限公司 | GMS-based CIR file remote upgrading method |
CN112596765A (en) * | 2020-12-22 | 2021-04-02 | 华立科技股份有限公司 | Power equipment upgrading method, system and related device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8032880B2 (en) | Multi-branch management for updating software | |
CN109271190A (en) | A kind of device updating method and embedded device | |
US20070118507A1 (en) | Managing software configuration of a wireless device | |
CN105989098B (en) | Icon package generation method and server, and icon processing method and system | |
CN107341025B (en) | Application updating method and device | |
CN103677898A (en) | Method for checking loaded extension and/or plug-in on server side and server | |
US20200231195A1 (en) | Method for operating a rail vehicle | |
CN110058867A (en) | The packing of application program mirror image, installation method and computer installation, storage medium | |
CN105704241A (en) | Client terminal program updating method and system and a service platform | |
CN108763051B (en) | Electronic device, transaction software running risk early warning method and storage medium | |
CN111125778A (en) | Copyright transaction information processing method and device | |
CN112486946A (en) | Version confirmation method, version confirmation system, electronic equipment and storage medium | |
CN110324343B (en) | Information monitoring and broadcasting method and device, electronic equipment and storage medium | |
CN105550071A (en) | System file upgrading and detecting method and communication device | |
CN107273172A (en) | A kind of data handling system based on business packet, method and device | |
CN112613288B (en) | Method, device, computer equipment and storage medium for generating bill | |
CN113849210A (en) | Firmware upgrading method and device based on TEE | |
CN108153537A (en) | Mobile application update method and device | |
CN101425072A (en) | Method and device for connect management | |
CN113037850A (en) | Application program upgrading method and device, electronic equipment and storage medium | |
KR101480040B1 (en) | Method, system and computer readable recording medium for web-page monitoring | |
CN112636954B (en) | Server upgrading method and device | |
CN113869989B (en) | Information processing method and device | |
KR101912410B1 (en) | System and method for management of advertisement connection information | |
CN109582330B (en) | Data model upgrading method, device, equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190125 |