CN110119280A - The method and device of more firmware upgrades - Google Patents

The method and device of more firmware upgrades Download PDF

Info

Publication number
CN110119280A
CN110119280A CN201810119542.9A CN201810119542A CN110119280A CN 110119280 A CN110119280 A CN 110119280A CN 201810119542 A CN201810119542 A CN 201810119542A CN 110119280 A CN110119280 A CN 110119280A
Authority
CN
China
Prior art keywords
firmware
file
program file
target
upgrade
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810119542.9A
Other languages
Chinese (zh)
Inventor
朱俊杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Dymind Biotechnology Co Ltd
Original Assignee
Shenzhen Dymind Biotechnology 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 Shenzhen Dymind Biotechnology Co Ltd filed Critical Shenzhen Dymind Biotechnology Co Ltd
Priority to CN201810119542.9A priority Critical patent/CN110119280A/en
Publication of CN110119280A publication Critical patent/CN110119280A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1433Saving, restoring, recovering or retrying at system level during software upgrading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The embodiment of the invention discloses a kind of methods of more firmware upgrades, comprising: reads the executable file corresponding with more firmware upgrades and firmware program file packet for including in the targeted update file system stored in the external equipment of connection;The corresponding current version of firmware information of at least one firmware that target device is included is recorded by executing executable file;Targeted update program file corresponding at least one firmware is obtained from firmware program file packet, the version information of the targeted update program file is higher than the current version of firmware information;Upgraded according at least one firmware that targeted update program file is included to target device;In the case where upgrading failure, program file corresponding with current version of firmware information is obtained in firmware program file packet as backout routine file, burning again is carried out according at least one firmware that backout routine file is included to target device.Using the present invention, the failure rate of more firmware device upgradings can be reduced.

Description

The method and device of more firmware upgrades
Technical field
The present invention relates to field of computer technology more particularly to a kind of method and devices of more firmware upgrades.
Background technique
With the development of computer technology, the function of various smart machines is stronger and stronger, but simultaneously in various equipment Function also with technology rapid development and be frequently necessary to be updated or expand.It under normal circumstances, can be by firmware The method of upgrading is updated.
And with the development of technology, the firmware quantity more than one in many equipment, such as cellanalyzer etc. is cured Treat instrument instrument, that is to say, that need to carry out multiple firmwares on more firmware devices when carrying out firmware upgrade or updating Upgrading.Often complementary between each firmware in more firmware devices, this has resulted in needing between the version of each firmware If matched.That is, it is more in firmware and it is mutual exist when relying on, different from the equipment of single firmware, for For more firmware devices, if wherein some firmware upgrades failure when being upgraded, not only need to upgrade consolidating for failure Part retracts to original version, it is also necessary to multiple firmwares of upgrading all retracted to original version, it otherwise can be because of firmware Mismatch between version can not normal use so as to cause equipment.
In the prior art, to more firmware devices in one of them for carrying out the realization for the rollback processing that firmware upgrade fails Scheme is exactly to download corresponding firmware version program by connection server and retract, still, can be because needing under this mode It downloads the corresponding program file of firmware and expends the regular hour, and need to be operated under the scene for having network, for visitor For family, the convenience of operation is insufficient;In addition, because being to download corresponding firmware program text in the case where firmware upgrade failure Part, it is also possible to, can not be just so as to cause more firmware devices because downloading error causes to mismatch between each firmware version Normally opened machine or operation.
That is, it is above-mentioned to more firmware devices carry out firmware upgrade failure processing mode in, to firmware version into The processing that row retracts can lead to equipment fault because of unmatched phenomenon is likely to occur between the version of each firmware, so as to cause Firmware upgrade fails and can not successfully retract.
Summary of the invention
Based on this, to solve to carry out the firmware upgrade that firmware upgrade is unsuccessfully likely to occur to more firmware devices in the related technology The problem of firmware version mismatch being likely to occur in the processing scheme of failure leads to equipment fault, spy proposes a kind of more firmwares The method of upgrading.
A kind of method of more firmware upgrades, comprising:
The targeted update file system stored in the external equipment of connection is read, includes in the targeted update file system Executable file corresponding with more firmware upgrades and firmware program file packet;
The corresponding current firmware of at least one firmware that target device is included is recorded by executing the executable file Version information;
Targeted update program file corresponding at least one described firmware, institute are obtained from the firmware program file packet The version information for stating targeted update program file is higher than the current version of firmware information;
Upgraded according at least one firmware that the targeted update program file is included to the target device;
In the case where at least one described firmware upgrade failure, obtained and the note in the firmware program file packet The corresponding program file of current version of firmware information of record is as backout routine file, according to the backout routine file to described At least one firmware that target device is included carries out burning again.
Optionally, the targeted update file stored in the external equipment for reading connection in one of the embodiments, Before system, further includes:
Detect whether that connection external equipment passes through the outside if detecting by the external interface of the target device Interface obtains the targeted update file system stored in the external equipment of the connection.
Optionally, in one of the embodiments, the method also includes:
For each firmware that the target device includes, judge whether single firmware upgrades successfully one by one;
In the case where any firmware is judged as upgrading failure, at least one firmware upgrade failure is determined.
Optionally, described in one of the embodiments, to be obtained and described at least one from the firmware program file packet Before the corresponding targeted update program file of a firmware, further includes:
Receive firmware upgrade instruction, obtain in firmware upgrade instruction corresponding at least one target firmware mark and Target version information corresponding at least one target firmware mark;
According at least one described target firmware mark and target corresponding at least one target firmware mark Version information searches program file corresponding with the target version information as target liter in the firmware program file packet Grade program file.
Optionally, described in one of the embodiments, to be obtained and described at least one from the firmware program file packet Before the corresponding targeted update program file of a firmware, further includes:
For each firmware that the target device includes, searched and the firmware pair in the firmware program file packet The program file and corresponding version information answered determine highest version information corresponding with the firmware;In the highest version When information is higher than current version information corresponding with the firmware, using the corresponding program file of the highest version information as target Upgrade procedure file.
In addition, to solve to carry out the firmware upgrade mistake that firmware upgrade is unsuccessfully likely to occur to more firmware devices in the related technology A kind of the problem of firmware version mismatch being likely to occur in the processing scheme lost leads to equipment fault, it is also proposed that more firmware liters The device of grade.
A kind of device of more firmware upgrades, comprising:
File read module, for reading the targeted update file system stored in the external equipment connected, the target It include executable file corresponding with more firmware upgrades and firmware program file packet in upgrade file system;
Firmware version information logging modle, for by execute the executable file record target device included to Few corresponding current version of firmware information of a firmware;
Upgrade file obtains module, corresponding at least one described firmware for obtaining from the firmware program file packet Targeted update program file, the version information of the targeted update program file is higher than the current version of firmware information;
Firmware upgrade module, at least one for being included to the target device according to the targeted update program file A firmware is upgraded;
Rollback module is used in the case where at least one described firmware upgrade failure, in the firmware program file packet It is middle to obtain program file corresponding with the current version of firmware information of the record as backout routine file, according to the rollback At least one firmware that program file is included to the target device carries out burning again.
Optionally, described device further includes external equipment detection module in one of the embodiments, for by described The external interface of target device detects whether connection external equipment, if detecting, obtains the connection by the external interface External equipment in the targeted update file system that stores, and call the file read module.
Optionally, the upgrade file obtains module and is also used to receive firmware upgrade instruction in one of the embodiments, Obtain in firmware upgrade instruction corresponding at least one target firmware mark and at least one described target firmware mark Know corresponding target version information;According at least one described target firmware identify and at least one described target firmware mark Know corresponding target version information and searches program text corresponding with the target version information in the firmware program file packet Part is as targeted update program file;
Or, the upgrade file, which obtains module, is also used to each firmware for including for the target device, described Program file corresponding with the firmware and corresponding version information are searched in firmware program file packet, determination is corresponding with the firmware Highest version information;When the highest version information is higher than current version information corresponding with the firmware, by the highest The corresponding program file of version information is as targeted update program file.
In addition, in the present embodiment, it is also proposed that a kind of computer equipment, including memory, processor and it is stored in institute State the computer program that can be run on memory and on the processor, which is characterized in that the processor executes the meter Foregoing method is realized when calculation machine program.
Finally, in the present embodiment, it is also proposed that a kind of computer readable storage medium, including computer instruction work as institute When stating computer instruction and running on computers so that computer execute it is foregoing.
Implement the embodiment of the present invention, will have the following beneficial effects:
After method and apparatus using above-mentioned more firmware upgrades, when carrying out firmware upgrade to more firmware devices, lead to The executable file on the external equipment of connection is crossed, records the current version information of each firmware on more firmware devices, then Firmware upgrade is carried out by the upgrade file packet on external equipment again.If one of firmware rises in more firmware upgrades Grade failure then needs all to retract all firmwares of this upgrading to original version;In this case, according to before The current version information of each firmware of record searches corresponding program text in the upgrade file packet stored on external equipment Then part carries out burning again to each firmware on more firmware devices, to guarantee each solid of after upgrading failure burning again Part is mutually matched in version, avoids equipment fault caused by firmware version malfunctions.
Also, it using the method and apparatus of above-mentioned more firmware upgrades, does not need artificial to the progress of more firmware upgrade process Intervene, can automatically match the corresponding upgrade file of each firmware version, moreover it is possible to firmware upgrade failure in the case where automatically into Row rollback operation, simplifies operating process, improves operation ease.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, 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 invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Wherein:
Fig. 1 is a kind of flow diagram of the method for more firmware upgrades in one embodiment;
Fig. 2 is a kind of structural schematic diagram of the device of more firmware upgrades in one embodiment;
Fig. 3 is the structural schematic diagram that the computer equipment of method of aforementioned more firmware upgrades is run in one embodiment.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
To solve to carry out what the firmware upgrade that firmware upgrade is unsuccessfully likely to occur failed to more firmware devices in the related technology The problem of firmware version mismatch being likely to occur in processing scheme leads to equipment fault, in the present embodiment, spy proposes one The method of the more firmware upgrades of kind, the realization of this method can be dependent on computer program, which can run on based on Feng On the computer system of Nuo Yiman system, which can be the application journey that more firmware devices are carried out with firmware upgrade Sequence.The computer system can be the more firmware devices for running above-mentioned computer program.
It should be noted that in the present embodiment, the realization of the method for above-mentioned more firmware upgrades is to be based on more firmware devices, Also, more firmware devices are connected with an external equipment, for example, being set by the USB interface on more firmware devices with a USB storage It is standby to be connected, alternatively, being connected by network interface with other smart machines.Wherein, burning and can be into more firmware devices The quantity more than one of the firmware of row upgrading.
Specifically, as shown in Figure 1, the method for above-mentioned more firmware upgrades includes the following steps S102-S108:
Step S102: the targeted update file system stored in the external equipment of connection, the targeted update file are read It include executable file corresponding with more firmware upgrades and firmware program file packet in system.
In the present embodiment, more firmware devices be connected with an external equipment (for example, USB device or smart phone or its He has the equipment of memory space), the available file stored on this external device of more firmware devices, for example, being stored in Targeted update file system corresponding with more firmware upgrades on the external equipment.
Specifically, the targeted update file system includes an executable file and a firmware program file packet.And it is above-mentioned Executable file is the upgrading software package of firmware upgrade, that is to say, that how solid when more firmware devices are connected with the external equipment Part equipment can read and execute the corresponding executable file of upgrading software package, thereby executing corresponding updating operation.In addition, The program file of the corresponding each version of each firmware is contained in above-mentioned firmware program file packet.That is, in the firmware The program file of the corresponding firmware burning under each version of some firmware can be found in program file packet.
Further, in the present embodiment, more firmware devices can to whether being connected to external equipment and detect, and In the connection for detecting external equipment, corresponding targeted update file system is carried out corresponding more in automatic reading external equipment Firmware upgrade operation.
Specifically, before the targeted update file system stored in the external equipment of above-mentioned reading connection, further includes: pass through The external interface of the target device detects whether connection external equipment, if detecting, by described in external interface acquisition The targeted update file system stored in the external equipment of connection.
Step S104: corresponding by executing at least one firmware that the executable file record target device is included Current version of firmware information.
As previously mentioned, in the present embodiment, in the corresponding executable file of upgrading software package for having read more firmware upgrades Later, the corresponding relevant operation of the executable file is executed, for example, executing firmware upgrade journey corresponding with the executable file Sequence.
In the present embodiment, it before carrying out specific firmware upgrade operation, needs to record as the how solid of target device The current version information of each firmware in part equipment, as current version of firmware information.For example, as the more of target device In the case that firmware device includes 10 firmwares, version information that this 10 firmwares are currently installed on is obtained one by one as current firmware Version information.Also, the current version of firmware information of record is stored with table, mapping or other forms, for example, depositing Storage in preset storage region, is called so as to subsequent when firmware version retracts in the external equipment.
Step S106: targeted update journey corresponding at least one described firmware is obtained from the firmware program file packet The version information of preface part, the targeted update program file is higher than the current version of firmware information.
The corresponding current firmware of each firmware on more firmware devices as target device is had recorded in step S104 After version information, firmware upgrade can be carried out to each firmware on target device.
In the present embodiment, the triggering of step S106 can be the instruction triggers inputted by reception user, for example, connecing Receive the firmware upgrade instruction of user's input.It is also possible to other modes, for example user clicks directly on equipment interface or computer Upgrade button on administration interface upgrades to start.In another alternative embodiment, the triggering of step S106 can also be Automatic trigger, that is to say, that execute step S106 automatically after executing the step S104.
In the present embodiment, before carrying out firmware upgrade, it is thus necessary to determine that the specifically firmware that is upgraded and right The version for the upgrading answered, and the information can be it is preset, for example, firmware version update in the case where, by corresponding program File download carries out the upgrading of next step into external equipment, in such cases, the firmware for needing to upgrade and corresponding version This is the firmware and corresponding firmware version of the update.
In an alternative embodiment, above-mentioned to be obtained and at least one described firmware from the firmware program file packet Before the step of corresponding targeted update program file, further includes: receive firmware upgrade instruction, obtain the firmware upgrade instruction In corresponding at least one target firmware mark and target version information corresponding at least one target firmware mark; According at least one described target firmware mark and target version information corresponding at least one target firmware mark Program file corresponding with the target version information is searched in the firmware program file packet as targeted update program text Part.
In the present embodiment, can in firmware upgrade instruction to the firmware identifiers of the firmware upgraded and Corresponding firmware version information is preset, for example, a certain version information higher than current version information of setting is target Version information.After receiving firmware upgrade instruction, according to firmware upgrade instruct in corresponding target firmware mark and right The target version information that the needs answered upgrade searches corresponding program file as targeted update journey in firmware program file packet Preface part is upgraded.
In another alternative embodiment, above-mentioned to be obtained from the firmware program file packet and described at least one is solid Before the step of part corresponding targeted update program file, further includes: for each firmware that the target device includes, Program file corresponding with the firmware and corresponding version information, the determining and firmware are searched in the firmware program file packet Corresponding highest version information;It, will be described when the highest version information is higher than current version information corresponding with the firmware The corresponding program file of highest version information is as targeted update program file.
The program file of each version of firmware is contained in firmware program file packet.And in general, consolidated Part is by edition upgrading to current highest version when upgrading, that is to say, that in the present embodiment, in firmware program file packet Determine that it includes highest version in the program file of each version, which is, so that it is determined that the firmware version letter for needing to upgrade Breath.
Further, sometimes, determining highest version information current version corresponding with the firmware in target device Information is consistent, and in this case, does not need to upgrade the firmware.It is i.e. only high in determining highest version information In the case where the current version information recorded before being upgraded, just need to carry out firmware upgrade.
For each firmware for including in target device, by highest version corresponding with the firmware in firmware program file packet The program file of this information, current version of firmware information corresponding with the firmware is compared with what is recorded in step S104, if Highest version information is higher than the current version of firmware information of record, then needs to carry out firmware upgrade, and by the highest version information Corresponding program file is as targeted update program file;Conversely, if highest version information is less than or equal to current version of firmware Information then illustrates that the firmware does not need currently to be upgraded.
Step S108: at least one firmware for being included to the target device according to the targeted update program file into Row upgrading.
Determined in step s 106 firmware that this firmware upgrade is upgraded and corresponding program file it Afterwards, firmware corresponding in target device can be upgraded, i.e., according to the targeted update program file determined in step S106 The firmware upgraded at least one firmware for being included to target device upgrades.
In the present embodiment, when carrying out firmware upgrade, probably due to the appearance upgrading of various situations is unsuccessful.Both may be One of firmware upgrade failure, it is also possible to multiple firmware upgrade failures.In the present embodiment, because target device it is normal The each firmware of need of work is to work normally, and therefore, as long as there is a firmware upgrade unsuccessful, current firmware upgrade is exactly Failure.That is, as long as detecting the upgrading failure an of firmware, determining that this is more in primary more firmware upgrades Firmware upgrade failure;Conversely, detecting that each firmware upgrades successfully, then this more firmware upgrade success is determined.
Specifically, in the present embodiment, for each firmware that the target device includes, judging single firmware one by one Whether upgrade successfully;In the case where any firmware is judged as upgrading failure, at least one firmware upgrade failure is determined.
It should be noted that because when to more firmware upgrades, be the firmware upgraded is upgraded one by one, and More firmware upgrades successfully need each firmware to be intended to upgrade successfully, therefore, in the present embodiment, as long as there is a firmware upgrade Failure can terminate current firmware upgrade operation, directly execute at the correlation in following step S110 about firmware upgrade failure Reason.
Step S110: it in the case where at least one described firmware upgrade failure, is obtained in the firmware program file packet Take program file corresponding with the current version of firmware information of the record as backout routine file, according to the backout routine At least one firmware that file is included to the target device carries out burning again.
In the present embodiment, it in order to guarantee the normal operation of target device, in the case where firmware upgrade failure, needs pair The firmware of each upgrading failure in target device and the firmware upgraded successfully carry out rollback operation, to guarantee each firmware It is matched between version.
Specifically, being determined by the target device that is recorded in step S104 firmware version information before upgrading This needs the version to retract, so as to avoid the unmatched situation between firmware version each after rollback operation.
In concrete operations, in the case where firmware upgrade failure, the current version of firmware recorded in obtaining step S104 is believed Breath (such as reading corresponding data in the storage region of storage current version of firmware information in external equipment).Also, it obtains It takes under current state, the corresponding version information (the first firmware version information) of each firmware on target device, by itself and step The current version of firmware information recorded in S104 is compared, so that it is determined that each firmware to retract, and with this The corresponding version information of firmware.
That is, the version information of some firmware of target device, which is higher than in step S104, to be remembered in the case where upgrading failure In the case where the current version of firmware information of record, which is retracted in the current version of firmware information recorded into step S104 Corresponding version.That is, from the current version of firmware information for obtaining in firmware program file packet with being recorded in step S104 In program file corresponding with the firmware as backout routine file and carry out burning operation again.
, whereas if the version information of some firmware of target device is equal to the current firmware version recorded in step S104 In the case where this information, illustrate the firmware this it is during upgrading do not upgraded, do not need to retract.
After carrying out version rollback one by one for each firmware, that is, complete returning for more firmware upgrades failure Move back operation.
In addition, to solve to carry out the firmware upgrade mistake that firmware upgrade is unsuccessfully likely to occur to more firmware devices in the related technology The problem of firmware version mismatch being likely to occur in the processing scheme lost leads to equipment fault, in one embodiment, such as Fig. 2 It is shown, it is also proposed that a kind of device of more firmware upgrades
Specifically, above-mentioned more device for upgrading firmware include file read module 102, firmware version information logging modle 104, Upgrade file obtains module 106, firmware upgrade module 108, rollback module 110, in which:
File read module 102, for reading the targeted update file system stored in the external equipment connected, the mesh Mark includes executable file corresponding with more firmware upgrades and firmware program file packet in upgrade file system;
Firmware version information logging modle 104, for being included by executing the executable file record target device The corresponding current version of firmware information of at least one firmware;
Upgrade file obtains module 106, for obtaining and at least one described firmware from the firmware program file packet The version information of corresponding targeted update program file, the targeted update program file is believed higher than the current version of firmware Breath;
Firmware upgrade module 108, for according to the targeted update program file to the target device included to A few firmware is upgraded;
Rollback module 110 is used in the case where at least one described firmware upgrade failure, in the firmware program file Program file corresponding with the current version of firmware information of the record is obtained in packet as backout routine file, according to described time It moves back at least one firmware that program file is included to the target device and carries out burning again.
Optionally, in one embodiment, it as shown in Fig. 2, above-mentioned apparatus further includes external equipment detection module 112, uses Detect whether that connection external equipment is obtained if detecting by the external interface in the external interface by the target device The targeted update file system stored in the external equipment of the connection is taken, and calls the file read module 102.
Optionally, in one embodiment, above-mentioned upgrade file obtains module 106 and is also used to receive firmware upgrade instruction, Obtain in firmware upgrade instruction corresponding at least one target firmware mark and at least one described target firmware mark Know corresponding target version information;According at least one described target firmware identify and at least one described target firmware mark Know corresponding target version information and searches program text corresponding with the target version information in the firmware program file packet Part is as targeted update program file;
Or, the upgrade file, which obtains module 106, is also used to each firmware for including for the target device, in institute It states and searches program file corresponding with the firmware and corresponding version information in firmware program file packet, the determining and firmware pair The highest version information answered;When the highest version information is higher than current version information corresponding with the firmware, by described in most The corresponding program file of highest version information is as targeted update program file.
Implement the embodiment of the present invention, will have the following beneficial effects:
After method and apparatus using above-mentioned more firmware upgrades, when carrying out firmware upgrade to more firmware devices, lead to The executable file on the external equipment of connection is crossed, records the current version information of each firmware on more firmware devices, then Firmware upgrade is carried out by the upgrade file packet on external equipment again.If one of firmware rises in more firmware upgrades Grade failure then needs all to retract all firmwares of this upgrading to original version;In this case, according to before The current version information of each firmware of record searches corresponding program text in the upgrade file packet stored on external equipment Then part carries out burning again to each firmware on more firmware devices, to guarantee each solid of after upgrading failure burning again Part is mutually matched in version, avoids equipment fault caused by firmware version malfunctions.
Also, it using the method and apparatus of above-mentioned more firmware upgrades, does not need artificial to the progress of more firmware upgrade process Intervene, can automatically match the corresponding upgrade file of each firmware version, moreover it is possible to firmware upgrade failure in the case where automatically into Row rollback operation, simplifies operating process, improves operation ease.
In the above-described embodiments, can it is all or part of by software, hardware, firmware or any combination thereof come real It is existing.When being realized using software program, can entirely or partly realize in the form of a computer program product.The computer Program product includes one or more computer instructions.When loading on computers and executing the computer program instructions, entirely Portion is partly generated according to process or function described in the embodiment of the present invention.The computer can be general purpose computer, specially With computer, computer network or other programmable devices.The computer instruction can store in computer-readable storage In medium, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the meter The instruction of calculation machine can pass through wired (such as coaxial cable, light from a web-site, computer, server or data center Fine, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, clothes Business device or data center are transmitted.It is any available to can be that computer can access for the computer readable storage medium Medium either includes the data storage devices such as one or more usable mediums integrated server, data center.It is described to use Medium can be magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as it is solid State hard disk Solid State Disk (SSD)) etc..
In one embodiment, as shown in figure 3, Fig. 3 illustrate a kind of method for running above-mentioned more firmware upgrades based on The terminal of the computer system of von Neumann system.The computer system can be smart phone, tablet computer, palm PC, The terminal devices such as laptop or PC.Specifically, may include the outer input interface connected by system bus 1001, processor 1002, memory 1003 and output interface 1004.Wherein, outer input interface 1001 optionally can be wrapped at least Include network interface 10012.Memory 1003 may include external memory 10032 (such as hard disk, CD or floppy disk etc.) and interior storage Device 10034.Output interface 1004 can include at least the equipment such as display screen 10042.
In the present embodiment, the operation of this method is based on computer program, and the program file of the computer program is stored in In the external memory 10032 of the aforementioned computer system based on von Neumann system, it is loaded into built-in storage at runtime It in 10034, is then compiled as being transferred in processor 1002 after machine code executing, so that being based on von Neumann system Computer system in form modules in logic.And in the method implementation procedure of above-mentioned more firmware upgrades, input Parameter passes through outer input interface 1001 and receives, and is transferred in memory 1003 and caches, and is then input to processor 1002 In handled, the result data of processing or be cached in memory 1003 is subsequently handled, or is passed to output and is connect Mouth 1004 is exported.
In another embodiment, it is also proposed that a kind of computer readable storage medium, including computer instruction, when described When computer instruction is run on computers, so that the method that computer executes foregoing more firmware upgrades.
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (10)

1. a kind of method of more firmware upgrades characterized by comprising
Read the targeted update file system that stores in the external equipment of connection, in the targeted update file system comprising with it is more The corresponding executable file of firmware upgrade and firmware program file packet;
The corresponding current version of firmware of at least one firmware that target device is included is recorded by executing the executable file Information;
Targeted update program file corresponding at least one described firmware, the mesh are obtained from the firmware program file packet The version information for marking upgrade procedure file is higher than the current version of firmware information;
Upgraded according at least one firmware that the targeted update program file is included to the target device;
In the case where at least one described firmware upgrade failure, obtained in the firmware program file packet and the record The corresponding program file of current version of firmware information is as backout routine file, according to the backout routine file to the target At least one firmware that equipment is included carries out burning again.
2. the method for more firmware upgrades according to claim 1, which is characterized in that in the external equipment for reading connection Before the targeted update file system of storage, further includes:
Detect whether that connection external equipment passes through the external interface if detecting by the external interface of the target device Obtain the targeted update file system stored in the external equipment of the connection.
3. the method for more firmware upgrades according to claim 1, which is characterized in that the method also includes:
For each firmware that the target device includes, judge whether single firmware upgrades successfully one by one;
In the case where any firmware is judged as upgrading failure, at least one firmware upgrade failure is determined.
4. the method for more firmware upgrades according to any one of claims 1 to 3, which is characterized in that described from the firmware journey In preface part packet before acquisition targeted update program file corresponding at least one described firmware, further includes:
Receive firmware upgrade instruction, obtain in firmware upgrade instruction corresponding at least one target firmware mark and with institute It states at least one target firmware and identifies corresponding target version information;
According at least one described target firmware mark and target version corresponding at least one target firmware mark Information searches program file corresponding with the target version information as targeted update journey in the firmware program file packet Preface part.
5. the method for more firmware upgrades according to any one of claims 1 to 3, which is characterized in that described from the firmware journey In preface part packet before acquisition targeted update program file corresponding at least one described firmware, further includes:
For each firmware that the target device includes, searched in the firmware program file packet corresponding with the firmware Program file and corresponding version information determine highest version information corresponding with the firmware;In the highest version information When higher than current version information corresponding with the firmware, using the corresponding program file of the highest version information as targeted update Program file.
6. a kind of device of more firmware upgrades characterized by comprising
File read module, for reading the targeted update file system stored in the external equipment connected, the targeted update It include executable file corresponding with more firmware upgrades and firmware program file packet in file system;
Firmware version information logging modle, at least one for being included by executing the executable file record target device The corresponding current version of firmware information of a firmware;
Upgrade file obtains module, for obtaining mesh corresponding at least one described firmware from the firmware program file packet Upgrade procedure file is marked, the version information of the targeted update program file is higher than the current version of firmware information;
Firmware upgrade module, at least one for being included to the target device according to the targeted update program file are consolidated Part is upgraded;
Rollback module, for being obtained in the firmware program file packet in the case where at least one described firmware upgrade failure Take program file corresponding with the current version of firmware information of the record as backout routine file, according to the backout routine At least one firmware that file is included to the target device carries out burning again.
7. the device of more firmware upgrades according to claim 6, which is characterized in that described device further includes external equipment inspection Module is surveyed, for detecting whether connection external equipment by the external interface of the target device, if detecting, by described outer Portion's interface obtains the targeted update file system stored in the external equipment of the connection, and calls the file read module.
8. the device of more firmware upgrades according to claim 6 or 7, which is characterized in that the upgrade file obtains module Be also used to receive firmware upgrade instruction, obtain in firmware upgrade instruction corresponding at least one target firmware mark and with At least one described target firmware identifies corresponding target version information;According at least one described target firmware identify and with At least one described target firmware identifies corresponding target version information and searches in the firmware program file packet and the mesh The corresponding program file of version information is marked as targeted update program file;
Or, the upgrade file, which obtains module, is also used to each firmware for including for the target device, in the firmware Program file corresponding with the firmware and corresponding version information are searched in program file packet, determination is corresponding with the firmware most Highest version information;When the highest version information is higher than current version information corresponding with the firmware, by the highest version The corresponding program file of information is as targeted update program file.
9. a kind of computer equipment, including memory, processor and it is stored on the memory and can be on the processor The computer program of operation, which is characterized in that the processor is realized in claim 1 to 5 when executing the computer program Method described in any one claim.
10. a kind of computer readable storage medium, including computer instruction, when the computer instruction is run on computers When, so that computer executes method as claimed in claims 1-5.
CN201810119542.9A 2018-02-06 2018-02-06 The method and device of more firmware upgrades Pending CN110119280A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810119542.9A CN110119280A (en) 2018-02-06 2018-02-06 The method and device of more firmware upgrades

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810119542.9A CN110119280A (en) 2018-02-06 2018-02-06 The method and device of more firmware upgrades

Publications (1)

Publication Number Publication Date
CN110119280A true CN110119280A (en) 2019-08-13

Family

ID=67519513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810119542.9A Pending CN110119280A (en) 2018-02-06 2018-02-06 The method and device of more firmware upgrades

Country Status (1)

Country Link
CN (1) CN110119280A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111510909A (en) * 2020-03-10 2020-08-07 深圳市广和通无线股份有限公司 Communication module configuration processing method and device, computer equipment and storage medium
CN111880819A (en) * 2020-07-29 2020-11-03 北京浪潮数据技术有限公司 Method, system, equipment and computer medium for upgrading firmware of storage equipment
CN112433738A (en) * 2020-11-09 2021-03-02 苏州浪潮智能科技有限公司 Firmware update test method, system, equipment and medium
CN113238779A (en) * 2021-05-24 2021-08-10 深圳市网是科技有限公司 High-reliability upgrading method for single embedded device composed of multiple modules
CN113342383A (en) * 2021-06-30 2021-09-03 广州市保伦电子有限公司 Remote online burning upgrading method for single chip microcomputer
CN113805923A (en) * 2021-09-27 2021-12-17 一飞智控(天津)科技有限公司 Method, system and medium for upgrading control components of formation aircrafts, formation aircrafts and application
CN116841591A (en) * 2023-08-30 2023-10-03 杭州炬源智能科技有限公司 Firmware upgrading method, system and medium of metering equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120291021A1 (en) * 2011-05-13 2012-11-15 Lsi Corporation Method and system for firmware upgrade of a storage subsystem hosted in a storage virtualization environment
WO2015136621A1 (en) * 2014-03-11 2015-09-17 株式会社日立製作所 Computer system management method and management device
CN106951277A (en) * 2017-02-15 2017-07-14 青岛亿联客信息技术有限公司 Multi-chip firmware program updating method and multi-chip firmware program updating system
CN107291497A (en) * 2017-06-08 2017-10-24 Tcl通力电子(惠州)有限公司 Multi-firmware upgrading method and system and readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120291021A1 (en) * 2011-05-13 2012-11-15 Lsi Corporation Method and system for firmware upgrade of a storage subsystem hosted in a storage virtualization environment
WO2015136621A1 (en) * 2014-03-11 2015-09-17 株式会社日立製作所 Computer system management method and management device
CN106951277A (en) * 2017-02-15 2017-07-14 青岛亿联客信息技术有限公司 Multi-chip firmware program updating method and multi-chip firmware program updating system
CN107291497A (en) * 2017-06-08 2017-10-24 Tcl通力电子(惠州)有限公司 Multi-firmware upgrading method and system and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
力诚教育编著: "电脑急救", 电子科技大学出版社, pages: 112 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111510909A (en) * 2020-03-10 2020-08-07 深圳市广和通无线股份有限公司 Communication module configuration processing method and device, computer equipment and storage medium
CN111510909B (en) * 2020-03-10 2023-03-10 深圳市广和通无线股份有限公司 Communication module configuration processing method and device, computer equipment and storage medium
CN111880819A (en) * 2020-07-29 2020-11-03 北京浪潮数据技术有限公司 Method, system, equipment and computer medium for upgrading firmware of storage equipment
CN111880819B (en) * 2020-07-29 2022-06-17 北京浪潮数据技术有限公司 Method, system, equipment and computer medium for upgrading firmware of storage equipment
CN112433738A (en) * 2020-11-09 2021-03-02 苏州浪潮智能科技有限公司 Firmware update test method, system, equipment and medium
CN112433738B (en) * 2020-11-09 2023-01-06 苏州浪潮智能科技有限公司 Firmware update test method, system, equipment and medium
CN113238779A (en) * 2021-05-24 2021-08-10 深圳市网是科技有限公司 High-reliability upgrading method for single embedded device composed of multiple modules
CN113342383A (en) * 2021-06-30 2021-09-03 广州市保伦电子有限公司 Remote online burning upgrading method for single chip microcomputer
CN113805923A (en) * 2021-09-27 2021-12-17 一飞智控(天津)科技有限公司 Method, system and medium for upgrading control components of formation aircrafts, formation aircrafts and application
CN116841591A (en) * 2023-08-30 2023-10-03 杭州炬源智能科技有限公司 Firmware upgrading method, system and medium of metering equipment
CN116841591B (en) * 2023-08-30 2023-12-26 杭州炬源智能科技有限公司 Firmware upgrading method, system and medium of metering equipment

Similar Documents

Publication Publication Date Title
CN110119280A (en) The method and device of more firmware upgrades
CN108196878B (en) Method and device for generating application program installation package, electronic equipment and storage medium
US10191751B2 (en) Information processing device for generating application programming interface information
CN110457049B (en) Method and device for realizing plug-in automation, electronic equipment and storage medium
CN107644075B (en) Method and device for collecting page information
WO2017041499A1 (en) Software upgrade method and system, and computer-readable storage medium
CN107797818A (en) Application program updating method and device
US9552277B2 (en) Synchronized java debugger
CN108510287A (en) Judgment method, electronic device and the computer readable storage medium that client pays a return visit
CN107656750A (en) Update of plug-in method and device
CN109002305B (en) Method and system for updating equipment program
CN113835729A (en) Upgrading method and device, terminal equipment and computer readable storage medium
CN110889116A (en) Advertisement blocking method and device and electronic equipment
CN116719670B (en) Data processing method, electronic device and readable storage medium
US9058184B2 (en) Run time generation and functionality validation of device drivers
CN109901849A (en) Application program installation method, device, electronic equipment and storage medium
US20150331772A1 (en) Methods for updating diagnostic tools on a hardware device and devices thereof
CN112199270B (en) Program testing method, device, equipment and medium
CN109189369B (en) Method and device for compressing codes
CN108279937A (en) Call method, device, storage medium and the electronic equipment of parameter
CN114020350B (en) Android system-based terminal off-load equipment detection method, system and medium
US11714744B2 (en) System and method for diagnosing a computing device in safe mode
EP3958114B1 (en) Software eligibility
CN111324505B (en) Log collection method and device, electronic equipment and storage medium
CN102637133B (en) Method for automatically updating terminating machines of (L, S) waveband satellite mobile communication systems

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

Application publication date: 20190813