CN110268386A - A kind of firmware upgrade method, device, electronic equipment and control equipment - Google Patents

A kind of firmware upgrade method, device, electronic equipment and control equipment Download PDF

Info

Publication number
CN110268386A
CN110268386A CN201880010765.XA CN201880010765A CN110268386A CN 110268386 A CN110268386 A CN 110268386A CN 201880010765 A CN201880010765 A CN 201880010765A CN 110268386 A CN110268386 A CN 110268386A
Authority
CN
China
Prior art keywords
firmware
electronic equipment
upgraded
target
mark
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
CN201880010765.XA
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.)
SZ DJI Technology Co Ltd
Original Assignee
SZ DJI Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SZ DJI Technology Co Ltd filed Critical SZ DJI Technology Co Ltd
Publication of CN110268386A publication Critical patent/CN110268386A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Landscapes

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

Abstract

A kind of firmware upgrade method, device, electronic equipment and control equipment, one of firmware upgrade method includes: the firmware upgrade order that receiving control apparatus is sent, in response to the firmware upgrade order, obtain the target hardware mark of current controller, the target firmware mark for the firmware to be upgraded that receiving control apparatus is sent, according to the corresponding relationship of preset hardware identifier and firmware identifiers, judge that target firmware identifies whether to identify with target hardware to match, in the event of a match, upgrading data needed for obtaining firmware to be upgraded, and firmware updating is treated according to the upgrading data and is upgraded.This method helps to promote the accuracy and reliability of firmware upgrade, reduces because of system in case of system halt caused by upgrading wrong firmware, to ensure the normal operation of equipment.

Description

A kind of firmware upgrade method, device, electronic equipment and control equipment Technical field
The present invention relates to electronic technology field more particularly to a kind of firmware upgrade method, device, electronic equipment and control equipment.
Background technique
Firmware refers to the program in write-in rewritable read-only memory or Electrically Erasable Programmable Read-Only Memory, is also considered as being stored in one of medium binary file, for realizing the function of electronic equipment.The continuous improvement required with the continuous development of computer technology with user electronic equipment, the firmware in electronic equipment need constantly upgrading to update, and to enrich product function, enhance user experience.
Currently, the microcontroller of electronic equipment once receives new firmware data when carrying out firmware upgrade, new firmware data is just replaced into former firmware data storage in the medium, to realize the upgrading of firmware.However, such firmware upgrade method is easy will not need firmware updating and is mistakened as making firmware to be upgraded upgrading, or accidentally alternative document is upgraded as firmware file, lead to firmware upgrade mistake, upgrading is caused to fail, possibly even it can lead to system in case of system halt because upgrading wrong firmware, so that electronic equipment can not normal use.
Summary of the invention
The embodiment of the invention discloses a kind of firmware upgrade method, device, electronic equipment and control equipment, facilitate the accuracy and reliability for promoting firmware upgrade, reduce because of system in case of system halt caused by upgrading wrong firmware, to ensure the normal operation of equipment.
In a first aspect, the embodiment of the invention provides a kind of firmware upgrade methods, comprising:
The firmware upgrade order that receiving control apparatus is sent;
In response to firmware upgrade order, the target hardware mark of current controller is obtained, target hardware identifies the identity for uniquely determining current controller;
The target firmware mark for the firmware to be upgraded that receiving control apparatus is sent;
According to the corresponding relationship of preset hardware identifier and firmware identifiers, judges that target firmware identifies whether to identify with target hardware and match;
If it does, then upgrading data needed for obtaining firmware to be upgraded, and treat firmware updating according to upgrading data and upgraded.
Second aspect, present invention implementation provide another firmware upgrade method, comprising:
Firmware upgrade order is sent to electronic equipment;
The target firmware mark of firmware to be upgraded is sent to electronic equipment;
Whether judgement receives the error indication message of electronic equipment transmission within a preset time;
If being not received by error indication message, upgrading data needed for sending firmware to be upgraded to electronic equipment.
The third aspect, the embodiment of the invention provides a kind of device for upgrading firmware, device for upgrading firmware is configured in electronic equipment, and electronic equipment includes at least one controller, and device for upgrading firmware includes:
Receiving unit, the firmware upgrade order sent for receiving control apparatus;
Acquiring unit, for obtaining the target hardware mark of current controller in response to firmware upgrade order, target hardware identifies the identity for uniquely determining current controller;
Receiving unit is also used to the target firmware mark of the firmware to be upgraded of receiving control apparatus transmission;
Judging unit judges that target firmware identifies whether to identify with target hardware and matches for the corresponding relationship according to preset hardware identifier and firmware identifiers;
Acquiring unit, upgrading data needed for being also used to obtain firmware to be upgraded, and treat firmware updating according to upgrading data and upgraded.
Fourth aspect, the embodiment of the invention provides another device for upgrading firmware, comprising:
Transmission unit, for sending firmware upgrade order to electronic equipment;
Transmission unit is also used to send the target firmware mark of firmware to be upgraded to electronic equipment;
Judging unit, the error indication message for judging whether to receive electronic equipment transmission within a preset time;
Transmission unit, if being also used to be not received by error indication message, upgrading data needed for sending firmware to be upgraded to electronic equipment.
5th aspect, the embodiment of the invention provides a kind of electronic equipment, including at least one controller, memory and transceiver:
The memory, for storing program instruction;
The processor, for calling the described program instruction execution following steps in the memory:
The firmware upgrade order for calling the transceiver receiving control apparatus to send;
In response to the firmware upgrade order, the target hardware mark of current controller is obtained, the target hardware identifies the identity for uniquely determining the current controller;
The transceiver is called to receive the target firmware mark for the firmware to be upgraded that the control equipment is sent;
According to the corresponding relationship of preset hardware identifier and firmware identifiers, judges that the target firmware identifies whether to identify with the target hardware and match;
If it does, then upgrading data needed for obtaining the firmware to be upgraded, and the firmware to be upgraded is upgraded according to the upgrading data.
6th aspect, the embodiment of the invention provides a kind of control equipment, including memory, transceiver and processor:
The memory, for storing program instruction;
The processor, for calling the program instruction in the memory to execute following steps:
The transceiver is called to send firmware upgrade order to electronic equipment;
The transceiver is called to send the target firmware mark of firmware to be upgraded to the electronic equipment;
Whether judgement receives the error indication message that the electronic equipment is sent within a preset time;
If being not received by the error indication message, upgrading data needed for calling the transceiver to send the firmware to be upgraded to the electronic equipment.
7th aspect, the embodiment of the invention provides a kind of computer readable storage mediums, computer-readable recording medium storage has a computer program, and computer program includes program instruction, and program instruction makes processor execute the firmware upgrade method of above-mentioned first aspect when being executed by a processor.
Eighth aspect, the embodiment of the invention provides another computer readable storage mediums, computer-readable recording medium storage has a computer program, and computer program includes program instruction, and program instruction makes processor execute the firmware upgrade method of above-mentioned second aspect when being executed by a processor.
The firmware upgrade order sent by obtaining the target hardware mark of current controller in response to the control equipment received in the embodiment of the present invention, further according to the corresponding relationship of preset hardware identifier and firmware identifiers, judge that identifying the target firmware sent with the control equipment received in the target hardware identifies in matched situation, upgrading data needed for obtaining firmware to be upgraded, firmware updating is treated according to the upgrading data to be upgraded, facilitate the accuracy and reliability of promotion firmware upgrade, it reduces because of system in case of system halt caused by upgrading wrong firmware, to ensure the normal operation of equipment.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, the drawings to be used in the embodiments are briefly described below, apparently, drawings in the following description are only some embodiments of the invention, for those of ordinary skill in the art, without any creative labor, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of firmware upgrade method provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of the upgrade file of firmware provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another firmware upgrade method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of device for upgrading firmware provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another device for upgrading firmware provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram for controlling equipment provided in an embodiment of the present invention.
Specific embodiment
The electronic equipment being related in the present invention can be the portable mobile termianls such as mobile phone, tablet computer, or the non-portable terminal such as computer perhaps may be holder or can be aircraft such as unmanned plane, wherein holder can be equipped on aircraft.Electronic equipment internal may include that printed circuit board (Printed Circuit Board, PCB) for realizing the connection between component each in electronic equipment provides necessary mechanical support for electronic equipment.Be integrated with multiple micro-control units (Microcontroller Unit, MCU) on printed circuit board or be called controller or be called microcontroller etc., hereafter it is described by taking controller as an example.Each controller can control the firmware of multiple electronic equipments, realize that a certain concrete function of electronic equipment, each controller cooperate the function of realizing the various complexity of electronic equipment jointly.Optionally, it may also include at least one register on the printed circuit board of electronic equipment, register can be corresponded with controller, the related data for storage control.
Controlling equipment can be computer, it may be server, or be controlling terminal, the certificate data of firmware to be upgraded, ascending series are provided accordingly and data needed for other firmwares to be upgraded for sending firmware upgrade order to electronic equipment, and for electronic equipment.
Within the product life cycle, in order to cope with functional requirement change, the software architecture of controller can take two-level configuration, such as first order BootLoader (bootstrap loader), be mainly responsible for firmware upgrade functionality;The second level is firmware, is responsible for the normal function of product.At the initial stage of deisgn product, hardware identifier can be distributed to controller, which can be a partial pressure value on printed circuit board, or can be the mark etc. stored in register, for uniquely determining the identity of the controller.When firmware generates, it can determine firmware identifiers, the firmware identifiers such as are written in predeterminable area.For example, script can be linked by modification, marks off one section of reserved area in fastener heads, and firmware identifiers are written at the place of specifying Offsets of the reserved area.Different controllers corresponds to different firmware identifiers, and the firmware identifiers of firmware and the hardware identifier of the controller are corresponding under each controller.Optionally, which can also be called hardware ID, product identification or remaining title;The firmware identifiers can also be called software identification, software I D, product number or remaining title.It is further alternative, the firmware identifiers of firmware can be identical under one controller, such as can be to be identical as the hardware identifier of the controller, and the firmware identifiers of firmware can also be different under a controller, it presets to obtain the corresponding relationship of hardware identifier and firmware identifiers, the application is without limitation.
When realizing firmware upgrade, control equipment can be by sending firmware upgrade order to electronic equipment, to indicate that electronic equipment carries out firmware upgrade.To which electronic equipment can may be in response to the firmware upgrade order that control equipment is sent after receiving the firmware upgrade order, the target hardware mark of electronic equipment current controller is obtained, is prepared for firmware upgrade.Further, control equipment can also send the target firmware mark of firmware to be upgraded to electronic equipment, to which electronic equipment can receive target firmware mark and according to the corresponding relationship of preset firmware identifiers and hardware identifier, judge that target firmware mark identifies whether to match with target hardware, if matching, firmware can be then jumped to, is operated normally, i.e., the upgrading data that electronic equipment can obtain the firmware to be upgraded that control equipment is sent treat firmware updating and carry out firmware upgrade;Upgraded if it does not match, electronic equipment can not treat firmware updating, for example can be rested in BootLoader (bootstrap loader).It is further alternative, the firmware upgrade order, target firmware mark and upgrading data can be carried in a piece of news and be sent to electronic equipment, or electronic equipment can be sent respectively to using different message, or the firmware upgrade order can individually be sent, target firmware mark and upgrading data can be carried in a piece of news as being sent to electronic equipment in the message including upgrade file, etc., the application is without limitation.The current controller can refer to the controller for receiving firmware upgrade order.
It is a kind of flow diagram of firmware upgrade method provided in an embodiment of the present invention, firmware upgrade method as shown in Figure 1 with reference to Fig. 1 can include:
101, control equipment sends firmware upgrade order to electronic equipment.
Optionally, before control equipment sends firmware upgrade order to electronic equipment, whether the connection that can first detect between electronic equipment is established.If the connection between electronic equipment it has been established that if control equipment to electronic equipment send firmware upgrade order;If the connection between electronic equipment is not set up, connection can not first can be established to electronic equipment transmission firmware upgrade order or control equipment with electronic equipment and then send firmware upgrade order by controlling equipment, can so save the power dissipation overhead of control equipment.Wherein, the connection controlled between equipment and electronic equipment can be wired connection, or be wirelessly connected.
Optionally, the firmware upgrade order that control equipment is sent to electronic equipment can be what the firmware upgrade request that control equipment is sent according to electronic equipment generated, or control what equipment was generated according to the firmware testing result to electronic equipment.That is, control equipment sends firmware upgrade order to electronic equipment, it may be possible to since control equipment receives the firmware upgrade request of electronic equipment transmission, then control equipment for firmware upgrade request and generate firmware upgrade order;It controls equipment and sends firmware upgrade order to electronic equipment, it is also possible to be that periodically (for example detecting according to prefixed time interval) or the irregular firmware to electronic equipment detect control equipment, if control equipment detects the firmware of upgrading in need in electronic equipment, firmware upgrade order is generated for the firmware of needs upgrading.The embodiment of the present invention is the mode for enumerating two kinds of possible control equipment and generating firmware upgrade order and sending to electronic equipment, and specific embodiment is without limitation.
102, electronic equipment obtains the target hardware mark of current controller.
Wherein, hardware identifier is used to uniquely determine the identity of controller, that is to say, that the corresponding unique and fixed hardware identifier of each controller.Target hardware identifies the identity for uniquely determining current controller.Hardware identifier can be electronic equipment in producing initial stage, be that each controller on printed circuit board is preset.Or hardware identifier can also refer in electronic equipment producing initial stage, be that printed circuit board is preset, for example the hardware identifier may be the mark of the printed circuit board when printed circuit board only includes a controller.That is, hardware identifier can be for each controller in embodiments of the present invention.
Specifically, preparing after electronic equipment receives the firmware upgrade order that control equipment is sent for firmware upgrade, the target hardware mark of current controller can be first obtained, for determining the identity for the controller being currently running.
Optionally, the target hardware mark of current controller is obtained, comprising: the partial pressure value of acquisition current controller on a printed circuit, and determine that the target hardware of current controller identifies according to partial pressure value.That is electronic equipment can acquire the voltage that current controller distributes on a printed circuit by acquiring current controller partial pressure value, such as by hardware circuit, to determine the target hardware mark of current controller according to the partial pressure value.Optionally, the partial pressure value of each controller is different on printed circuit board, electronic equipment can carry out default operation or other operations using collected partial pressure value as the target hardware of current controller mark or electronic equipment to determine that the target hardware of current controller is identified to the partial pressure value.
Optionally, the target hardware mark of current controller is obtained, comprising: the hardware information of current controller is read from the register of current controller;The target hardware mark of current controller is determined according to hardware information.Wherein, the hardware information of controller may include hardware identifier, numerical value or other hardware informations.That is, the target hardware mark of current controller is also possible to be stored in advance in the corresponding register of current controller, electronic equipment can read the hardware information of current controller from the corresponding register of current controller, it may include target hardware mark in the hardware information, such as a certain numerical value, or can determine that target hardware is identified by information certain in hardware information.
103, control equipment sends the target firmware mark of firmware to be upgraded to electronic equipment.
Wherein, target firmware mark is for uniquely determining firmware identity.Firmware identifiers can be when firmware generates, for the identity of firmware addition.Optionally, control equipment sends the target firmware mark of firmware to be upgraded to electronic equipment, comprising: sends the upgrade file of firmware to be upgraded to electronic equipment, target firmware mark is carried in the predeterminable area of upgrade file.That is, control equipment can reserve predeterminable area in the upgrade file of firmware to be upgraded, and the predeterminable area is written in the target firmware mark of firmware to be upgraded, it controls equipment and upgrade file is sent to electronic equipment, the target firmware mark of firmware to be upgraded is just also sent to electronic equipment simultaneously.Optionally, electronic equipment receives the target firmware mark for the firmware to be upgraded that control equipment is sent, comprising: the upgrade file for the firmware to be upgraded that receiving control apparatus is sent;Target firmware mark is parsed from the predeterminable area of upgrade file.Specifically, assuming that control equipment identifies the target firmware that firmware to be upgraded is written in the reservation region of the upgrade file of firmware to be upgraded, then the upgrade file is sent to electronic equipment, after electronic equipment receives upgrade file, the target firmware mark of firmware to be upgraded can be parsed from the reserved area of upgrade file.For example, as shown in Figure 2, assuming that the upgrade file for the firmware to be upgraded that control equipment is sent to electronic equipment is made of vector table data, reserved area and other firmware data three parts, it may be assumed that preset reserved area is written in target firmware mark by control equipment, after electronic equipment receives upgrade file, target firmware mark can be parsed from reserved area.
In this application, the firmware upgrade order and target firmware mark can be carried in a piece of news and be sent to electronic equipment, can also be sent respectively to electronic equipment, the application is without limitation.
104, electronic equipment judges that target firmware mark identifies whether to match with the target hardware of current controller.
Optionally, electronic equipment can receive the target firmware mark for the firmware to be upgraded that control equipment is sent, and then can judge that target firmware identifies whether to identify with target hardware according to the corresponding relationship of preset hardware identifier and firmware identifiers and match.That is, electronic equipment can acquire the corresponding relationship of the hardware identifier of at least one set of firmware identifiers and controller in advance and be stored, and then it can judge that target firmware mark identifies whether to match with the target hardware of current controller according to the corresponding relationship of preset at least one set of firmware identifiers and hardware identifier.For example, the firmware identifiers of firmware under a controller can be determined as with the hardware identifier of the controller with corresponding relationship by electronic equipment, namely match.Further, electronic equipment judges that target firmware mark identifies whether to match with the target hardware of current controller and namely judges that target firmware mark and the target hardware of current controller identify whether to meet above-mentioned corresponding relationship, if met, electronic equipment can determine whether that target firmware mark is matched with the target hardware of current controller mark;If do not met, electronic equipment can determine whether that target firmware mark and the target hardware mark of current controller mismatch.
Optionally, if target hardware mark is mismatched with target firmware mark, then error indication message can be sent to control equipment, be used to indicate control equipment and do not continue the upgrading data for sending firmware to be upgraded to electronic equipment, or instruction control equipment reselects firmware to be upgraded to be upgraded.Optionally, target firmware mark can be carried in error indication message, to control after equipment receives error indication message, it can be identified according to the target firmware and quickly determine that the error indication message is issued for which firmware to be upgraded, and then can the quick obtaining firmware to be upgraded upgrading data, especially when the firmware that need to upgrade is more, this saves on the control equipment query times.
For example, assuming that control equipment can send multiple firmware upgrade orders to electronic equipment simultaneously, for indicating respectively that electronic equipment upgrades multiple firmwares to be upgraded, the target hardware that electronic equipment obtains current controller identifies and receives multiple target firmwares mark that control equipment is sent, assuming that receiving two target firmware marks, it is denoted as target firmware mark 1 and target firmware mark 2 respectively, target hardware is identified and matched respectively with target firmware 1 and target firmware mark 2 by electronic equipment.If target firmware mark 2 matches unsuccessful with target hardware mark, then electronic equipment sends error indication message to control equipment, it include target firmware mark 2 in the error indication message, so, equipment is controlled after receiving error indication message, target firmware can be quickly found from the upgrading data of the firmware to be upgraded of transmission and identifies 2 corresponding upgrading data, and the upgrading data are handled.
Optionally, if hardware identifier matches with target firmware, confirmation instruction message can be sent to controller.The confirmation instruction message, which is used to indicate control equipment, can continue upgrading data needed for sending firmware to be upgraded to electronic equipment, so, it can guarantee that controlling equipment is sent to electronic equipment for the upgrading data of firmware to be upgraded within a short period of time, firmware updating is treated in order to electronic equipment to be upgraded, and the firmware upgrade time is saved.Optionally, target firmware mark is carried in confirmation instruction message, it can be in the case where multiple firmwares to be upgraded upgrade simultaneously, guarantee that control equipment can be identified according to the target firmware and quickly determines the confirmation instruction message is issued for which firmware, the upgrading data that the target firmware identifies corresponding firmware to be upgraded are sent to electronic equipment convenient for control equipment, save the firmware upgrade time.
Optionally, if hardware identifier matches with target firmware, then electronic equipment can not also send confirmation instruction message to control equipment can not such as send any message, when being not received by the error indication message of electronic equipment transmission within a preset time until controlling equipment, control equipment sends the upgrading data of firmware to be upgraded to electronic equipment again, can so save the power dissipation overhead of electronic equipment.
If 105, preset time internal control control equipment does not receive the error indication message of electronic equipment transmission or receives confirmation instruction message, the upgrading data of firmware to be upgraded are sent to electronic equipment.
Specifically, preset time internal control control equipment does not receive the error indication message of electronic equipment transmission or receives confirmation instruction message, the hardware identifier of the target firmware mark and electronic equipment current controller that can indicate the firmware to be upgraded that control equipment is sent matches, namely showing that the target firmware identifies corresponding firmware to be upgraded is the correct firmware for needing to upgrade, for example the firmware to be upgraded belongs to the firmware under current controller control, the upgrading data of firmware to be upgraded can be sent to electronic equipment by then controlling equipment, in order to which to this, correctly firmware to be upgraded upgrades.
106, electronic equipment obtains the upgrading data of firmware to be upgraded, treats firmware updating and is upgraded.
Optionally, obtain the upgrading data of firmware to be upgraded, it include: the upgrading data that receiving control apparatus is sent, the upgrading data are upgrading data needed for firmware to be upgraded, and upgrading data control equipment is sent when not receiving error indication message within a preset time or when upgrading data control equipment does not receive any message within a preset time sends.Optionally, the upgrading data of firmware to be upgraded are obtained, comprising: the upgrading data that receiving control apparatus response confirmation instruction message is sent, the upgrading data are upgrading data needed for firmware to be upgraded.That is, the upgrading data for the firmware to be upgraded that electronic equipment is got, it may be to be sent in the case where controlling equipment and not receiving error indication message (or other instruction messages) of electronic equipment transmission within a preset time, it is also possible to control what equipment was sent when receiving the confirmation instruction message of electronic equipment transmission.
After electronic equipment receives the firmware upgrade order that control equipment is sent in the embodiment of the present invention, the target hardware mark of current controller, and the target firmware mark of the firmware to be upgraded of receiving control apparatus transmission are obtained.Target hardware is identified and is matched with target firmware mark by electronic equipment, in the case where successful match, namely in the case that electronic equipment does not send error indication message or sends confirmation instruction message to control equipment within a preset time, obtain the upgrading data for the firmware to be upgraded that control equipment is sent, firmware updating is treated to be upgraded, facilitate the accuracy and reliability of promotion firmware upgrade, reduces because of system in case of system halt caused by upgrading wrong firmware, to ensure the normal operation of equipment.
With reference to Fig. 3, for the schematic flow diagram of another firmware upgrade method provided in an embodiment of the present invention, firmware upgrade method as shown in Figure 3, it may include:
301, control equipment sends firmware upgrade order to electronic equipment.
302, electronic equipment obtains the target hardware mark of current controller.
Specifically, preparing after electronic equipment receives the firmware upgrade order that control equipment is sent for firmware upgrade, the target hardware mark of current controller can be first obtained, for determining the identity for the controller being currently running.Optionally, the mode which obtains target hardware mark can refer to the description that the mode of target hardware mark is obtained in above-mentioned embodiment illustrated in fig. 1, not repeat herein.
303, control equipment sends the upgrade file of firmware to be upgraded to electronic equipment.
304, electronic equipment obtains the target firmware mark of firmware to be upgraded from the upgrade file that control equipment is sent.
It wherein, may include the target firmware mark of firmware to be upgraded in upgrade file.Optionally, when connection between electronic equipment and control equipment is established, if electronic equipment detects that inside has firmware to need to upgrade, firmware upgrade request can be then sent to control equipment, it controls equipment and generates firmware upgrade order for firmware upgrade request, and the firmware upgrade order is sent to electronic equipment, it is used to indicate electronic equipment and carries out firmware upgrade preparation.In other words, after electronic equipment receives the firmware upgrade order that control equipment is sent, the target hardware mark for obtaining electronic equipment current controller is considered as electronic equipment and prepares to start firmware upgrade.Electronic equipment is after beginning firmware upgrade is prepared, and control equipment sends the upgrade file of firmware to be upgraded to electronic equipment, and electronic equipment is prepared to enter into formal firmware upgrade step.
Specifically, control equipment into the upgrade file for the firmware to be upgraded that electronic equipment is sent, can carry target firmware mark in predeterminable area, to can parse target firmware mark from predeterminable area after electronic equipment receives the upgrade file that control equipment is sent.
305, electronic equipment judges that target hardware identifies whether to match with target firmware mark.If it does, then executable step 306.
Electronic equipment can judge that target firmware identifies whether to identify with target hardware and match according to the corresponding relationship of preset firmware identifiers and hardware identifier.Electronic equipment judges that target hardware identifies whether to identify with target firmware to match and namely judges that target hardware mark identifies whether the corresponding relationship for meeting preset firmware identifiers and hardware identifier with target firmware, if met, then it represents that target hardware mark matches with target firmware mark;If do not met, then it represents that target hardware mark is mismatched with target firmware mark.Optionally, the preset firmware identifiers of electronic equipment and the corresponding relationship of the hardware identifier of controller can be the corresponding multiple firmware identifiers of a hardware identifier, firmware identifiers one hardware identifier of correspondence.A target hardware mark can correspond to multiple target firmware marks in embodiments of the present invention, and a target firmware mark can only correspond to a target hardware mark.For example, it will be assumed that the controller 1 of electronic equipment may include firmware 10, firmware 11 and firmware 12;Controller 2 may include firmware 20, firmware 21 and firmware 22.May be assumed that electronic equipment in advance and be that hardware identifier that controller 1 is arranged is ID1, the firmware identifiers for the firmware 10 that controller 1 includes can be ID110, firmware 11 firmware identifiers can be the firmware identifiers of ID111 and firmware 12 can be ID112;The hardware identifier of controller 2 is ID2, and the firmware identifiers for the firmware 20 that controller 2 includes are ID220, and the firmware identifiers of firmware 21 are ID221, and the firmware identifiers of firmware 22 can be ID222.The corresponding relationship of the hardware identifier of the preset firmware identifiers of electronic equipment and controller can be with are as follows: controller ID1 has corresponding relationship with ID110, ID111 and ID112 respectively, and controller ID2 has corresponding relationship with ID220, ID221 and ID222 respectively.Namely firmware identifiers be ID110, ID111 and ID112 the corresponding hardware identifier of firmware be ID1, the corresponding hardware identifier of firmware identifiers ID220, ID221 and ID221 be ID2.
In the above example, assuming that the target hardware for the current controller that electronic equipment is got is identified as ID2, if the target firmware for assuming that the control equipment that electronic equipment receives is sent is identified as ID110, then electronic equipment is according to the corresponding relationships of preset firmware identifiers and hardware identifier, it can determine whether out that target hardware mark ID2 and target firmware mark ID110 do not meet preset corresponding relationship, that is, mismatch;If assuming, the target firmware that the control equipment that electronic equipment receives is sent is identified as ID220, and electronic equipment can determine whether out that target hardware mark ID2 and target firmware mark ID220 meet preset corresponding relationship, that is, match.
306, electronic equipment obtains the upgrading data of firmware to be upgraded from the upgrade file that control equipment is sent, and treats firmware updating and is upgraded.
Optionally, it may also include the upgrading data of the firmware to be upgraded in the upgrade file.Specifically, the target firmware mark that electronic equipment can be obtained from upgrade file is matched with the target hardware of current controller mark, if successful match, the firmware to be upgraded that can determine that control equipment selects is the firmware under current controller, the firmware to be upgraded for indicating control equipment selection is the electronic equipment firmware to be upgraded, i.e. correct firmware, upgrading data needed for then electronic equipment can obtain upgrading from the upgrading data for the firmware to be upgraded that control equipment is sent, treat firmware updating and are upgraded;If matched unsuccessful, it is not correct firmware that the firmware to be upgraded that can determine control equipment selection, which is not the firmware to be upgraded of firmware under current controller or control equipment selection, the firmware to be upgraded for indicating control equipment selection is not the electronic equipment firmware to be upgraded, that is wrong firmware, upgrading data needed for then electronic equipment can not obtain upgrading from the upgrading data for the firmware to be upgraded that control equipment is sent, can so save power dissipation overhead.
It should be understood that, in other alternative-embodiments, controlling equipment can also send target firmware mark and the upgrading data to electronic equipment respectively, or, the firmware upgrade order, target firmware mark and the upgrading data can be also carried on a piece of news and be sent to electronic equipment by control equipment, and the application is without limitation.
After electronic equipment receives the upgrade command for controlling the firmware to be upgraded that equipment is sent in the embodiment of the present invention, the target hardware mark of current controller, while the upgrade file of the firmware to be upgraded of receiving control apparatus transmission are obtained.Further, target hardware is identified and is matched with the target firmware mark for including in upgrade file by electronic equipment, and in the case where successful match, electronic equipment obtains the upgrading data of firmware to be upgraded from upgrade file, firmware updating is treated to be upgraded, facilitate the accuracy and reliability of promotion firmware upgrade, reduces because of system in case of system halt caused by upgrading wrong firmware, to ensure the normal operation of equipment.
It is a kind of structural schematic diagram of device for upgrading firmware provided in an embodiment of the present invention, specifically, the device for upgrading firmware may be disposed in above-mentioned electronic equipment with reference to Fig. 4.Device for upgrading firmware as shown in Figure 4, it may include receiving unit 401, acquiring unit 402 and judging unit 403.
Receiving unit 401, the firmware upgrade order sent for receiving control apparatus;
Acquiring unit 402, for obtaining the target hardware mark of current controller in response to firmware upgrade order, target hardware identifies the identity for uniquely determining current controller;
Receiving unit 401 is also used to the target firmware mark of the firmware to be upgraded of receiving control apparatus transmission;
Judging unit 403 judges that target firmware identifies whether to identify with target hardware and matches for the corresponding relationship according to preset hardware identifier and firmware identifiers;
Acquiring unit 402 matches if being also used to target firmware mark with target hardware mark, upgrading data needed for obtaining firmware to be upgraded, and treats firmware updating according to upgrading data and upgraded.
Optionally, acquiring unit 402 obtains the concrete mode of the target hardware mark of current controller are as follows: the partial pressure value of acquisition current controller on a printed circuit;The target hardware mark of current controller is determined according to partial pressure value.Wherein, which includes at least one controller, further includes printed circuit board, at least one controller is configured on printed circuit board.
Optionally, acquiring unit 402 obtains the concrete mode of the target hardware mark of current controller are as follows: the hardware information of current controller is read from the register of current controller;The target hardware mark of current controller is determined according to hardware information.Further alternative, which may also include at least one register, and the controller on printed circuit board can be corresponded with the register of configuration.
Optionally, the concrete mode of the target firmware mark for the firmware to be upgraded that 401 receiving control apparatus of receiving unit is sent are as follows: the upgrade file for the firmware to be upgraded that receiving control apparatus is sent;Target firmware mark is parsed from the predeterminable area of upgrade file.
Optionally, it include upgrading data in upgrade file, the concrete mode of upgrading data needed for acquiring unit 402 obtains firmware to be upgraded are as follows: if target firmware mark matches with target hardware mark, upgrading data are extracted from upgrade file, wherein, the upgrading data of extraction are upgrading data needed for firmware to be upgraded.
Optionally, device for upgrading firmware further includes transmission unit 404, if mismatched for target firmware mark and target hardware mark, sends error indication message to control equipment.Optionally, target firmware mark is carried in error indication message.Optionally, the concrete mode of upgrading data needed for acquiring unit 402 obtains firmware to be upgraded are as follows: the upgrading data that receiving control apparatus is sent, upgrading data is upgrading data needed for firmware to be upgraded, and upgrades when data control equipment does not receive error indication message within a preset time and send.
Optionally, transmission unit 404 match with target hardware mark if being also used to target firmware mark, send confirmation instruction message to control equipment.Optionally, confirm and carry target firmware mark in instruction message.Optionally, the concrete mode of upgrading data needed for acquiring unit 402 obtains firmware to be upgraded are as follows: the upgrading data that receiving control apparatus response confirmation instruction message is sent, upgrading data are upgrading data needed for firmware to be upgraded.
Optionally, device for upgrading firmware may be disposed in holder, and holder can be equipped on aircraft.Alternatively, the device for upgrading firmware may be disposed in aircraft.
In the embodiment of the present invention receiving unit 401 receive control equipment send firmware upgrade order after, the target firmware mark for the firmware to be upgraded that further receiving control apparatus is sent, acquiring unit 402 is for responding the firmware upgrade order, obtain the target hardware mark of current controller, to which judging unit 403 judges that the target firmware that acquiring unit 402 is got identifies whether that the target hardware received with receiving unit 401 mark matches, in the event of a match, upgrading data needed for acquiring unit 402 obtains firmware to be upgraded.The embodiment of the present invention helps to promote the accuracy and reliability of firmware upgrade, reduces because of system in case of system halt caused by upgrading wrong firmware, to ensure the normal operation of equipment.
With reference to Fig. 5, for the structural schematic diagram of another device for upgrading firmware provided in an embodiment of the present invention, device for upgrading firmware as shown in Figure 5, it may include transmission unit 501 and judging unit 502.
Transmission unit 501, for sending firmware upgrade order to electronic equipment;
Transmission unit 501 is also used to send the target firmware mark of firmware to be upgraded to electronic equipment;
Judging unit 502, the error indication message for judging whether to receive electronic equipment transmission within a preset time;
Transmission unit 501, if being also used to be not received by error indication message, upgrading data needed for sending firmware to be upgraded to electronic equipment.
Optionally, transmission unit 501 carry target firmware mark specifically for sending the upgrade file of firmware to be upgraded to electronic equipment in the predeterminable area of upgrade file.
Optionally, if transmission unit 501 is also used to receive error indication message within a preset time, forbid upgrading data needed for sending firmware to be upgraded to electronic equipment.Optionally, target firmware mark is carried in error indication message.
Optionally, judging unit 502 are also used to the confirmation instruction message for judging whether to receive electronic equipment transmission within a preset time;
Transmission unit 501, if being also used to receive confirmation instruction message, upgrading data needed for sending firmware to be upgraded to electronic equipment.
Optionally, confirm and carry target firmware mark in instruction message.Optionally, electronic equipment is holder, and holder is equipped on aircraft.
Transmission unit 501 sends the target firmware mark of firmware upgrade order and firmware to be upgraded to electronic equipment in the embodiment of the present invention, and in the case where the judgement of judging unit 502 is not received by error indication message scenario within a preset time, the upgrading data of firmware to be upgraded are sent to electronic equipment, it can contribute to be promoted the accuracy and reliability of firmware upgrade, it reduces because of system in case of system halt caused by upgrading wrong firmware, to ensure the normal operation of equipment.
It is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention with reference to Fig. 6, the electronic equipment in the embodiment of the present invention can be holder or aircraft such as unmanned plane.Electronic equipment may include at least one controller 601, memory 602 and transceiver 603, and controller 601, memory 602 and transceiver 603 can be connected by bus 604, or can be connected by remaining mode, is illustrated in Fig. 5 with bus mode.Wherein, controller 601 can be used for controlling firmware to be upgraded and be upgraded, and memory 602 can be used for storing program instruction.Further alternative, which may also include one or more processors, the one or more processors can with the controller 601 connect or the controller 601 in may include one or more processors.Specifically, controller 601, which can call, stores program instruction execution in memory 602:
The firmware upgrade order for calling 603 receiving control apparatus of transceiver to send;
In response to firmware upgrade order, the target hardware mark of current controller is obtained, target hardware identifies the identity for uniquely determining current controller;
The target firmware mark for the firmware to be upgraded for calling 603 receiving control apparatus of transceiver to send;
According to the corresponding relationship of preset hardware identifier and firmware identifiers, judges that target firmware identifies whether to identify with target hardware and match;
If it does, then upgrading data needed for obtaining firmware to be upgraded, and treat firmware updating according to upgrading data and upgraded.
Optionally, electronic equipment further includes printed circuit board, for supporting the connection in electronic equipment between each component, provides mechanical support for electronic equipment.Controller 601 is configured on printed circuit board, and controller 601 obtains the concrete mode of the target hardware mark of current controller are as follows:
Acquire the partial pressure value of current controller on a printed circuit;
The target hardware mark of current controller is determined according to partial pressure value.
Optionally, electronic equipment may also include register 605, and register and controller correspond, and controller 601 obtains the concrete mode of the target hardware mark of current controller are as follows:
The hardware information of current controller is read from the register of current controller;
The target hardware mark of current controller is determined according to hardware information.
Optionally, the concrete mode of the target firmware mark for the firmware to be upgraded that controller 601 calls 603 receiving control apparatus of transceiver to send are as follows:
The upgrade file for the firmware to be upgraded for calling 603 receiving control apparatus of transceiver to send;
Target firmware mark is parsed from the predeterminable area of upgrade file.
Optionally, the concrete mode of upgrading data needed for controller 601 obtains firmware to be upgraded are as follows:
If target firmware mark matches with target hardware mark, upgrading data are extracted from upgrade file, wherein the upgrading data of extraction are upgrading data needed for firmware to be upgraded.
Optionally, controller 601 is also used to execute:
If target firmware mark is mismatched with target hardware mark, transceiver 603 is called to send error indication message to control equipment.Optionally, target firmware mark is carried in error indication message.
Optionally, the concrete mode of upgrading data needed for controller 601 obtains firmware to be upgraded are as follows:
The upgrading data for calling 603 receiving control apparatus of transceiver to send, upgrading data are upgrading data needed for firmware to be upgraded, and upgrade when data control equipment does not receive error indication message within a preset time and send.
Optionally, controller 601 is also used to execute:
If target firmware mark matches with target hardware mark, transceiver 603 is called to send confirmation instruction message to control equipment.Optionally, confirm and carry target firmware mark in instruction message.Optionally, the concrete mode of upgrading data needed for controller 601 obtains firmware to be upgraded are as follows: the upgrading data that receiving control apparatus response confirmation instruction message is sent, upgrading data are upgrading data needed for firmware to be upgraded.
Optionally, electronic equipment can be holder, and holder is equipped on aircraft.
It should be understood that, in embodiments of the present invention, controller can be MCU, processor can be central processing unit (Central Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, ) or other programmable logic device FPGA, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor etc..
Transceiver 605 can be used for receiving or sending data, for example component part may include signal source, converter, transmitter and receiver etc..
Memory 602 may include read-only memory and random access memory, and provide instruction and data to controller or processor.The a part of of memory 602 can also include nonvolatile RAM.For example, memory 602 can also store firmware identifiers.
In specific implementation, implementation described in firmware upgrade method shown in the executable Fig. 1-3 such as controller 601 described in the embodiment of the present invention, memory 602, transceiver 603, transceiver 605, the implementation in device for upgrading firmware described in Fig. 4 can also be executed, details are not described herein.
It is a kind of structural schematic diagram for controlling equipment provided in an embodiment of the present invention with reference to Fig. 7.Server in the embodiment of the present invention as shown in Figure 7 may include: processor 701 and memory 702, transceiver 703, and processor 701 and memory 702, transceiver 703 can be connected by bus 704, or can be connected by remaining mode.Memory 702 includes program instruction for storing computer program, computer program, and processor 701 is used to execute the program instruction of the storage of memory 702.Wherein, processor 701 is configured for caller instruction execution:
Transceiver 703 is called to send firmware upgrade order to electronic equipment;Transceiver 703 is called to send the target firmware mark of firmware to be upgraded to electronic equipment;Whether judgement receives the error indication message of electronic equipment transmission within a preset time;If being not received by error indication message, upgrading data needed for calling transceiver 703 to send firmware to be upgraded to electronic equipment.
Optionally, the concrete mode that the target firmware that processor 701 calls transceiver 703 to send firmware to be upgraded to electronic equipment identifies are as follows: call transceiver 703 to send the upgrade file of firmware to be upgraded to electronic equipment, target firmware mark is carried in the predeterminable area of upgrade file.
Optionally, processor 701 is also used to execute: if receiving error indication message within a preset time, forbidding upgrading data needed for sending firmware to be upgraded to electronic equipment.Optionally, target firmware mark is carried in error indication message.
Optionally, processor 701 is also used to the confirmation instruction message for judging whether to receive electronic equipment transmission within a preset time;If receiving confirmation instruction message, upgrading data needed for calling transceiver 703 to send firmware to be upgraded to electronic equipment.Optionally, confirm and carry target firmware mark in instruction message.Optionally, electronic equipment can be holder, and holder can be equipped on aircraft.
It should be appreciated that in embodiments of the present invention, processor 701 can be CPU, which can also be other general processors, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic, discrete hardware components etc..
Transceiver 703 can be used for receiving or sending data, for example component part may include signal source, converter, transmitter and receiver etc..
The memory 702 may include read-only memory and random access memory, and provide instruction and data to processor 701.The a part of of memory 702 can also include nonvolatile RAM.For example, memory 702 can be with firmware identifiers and upgrading data etc..
In specific implementation, implementation described in firmware upgrade method shown in Fig. 1-3 can be performed in processor 701, memory 702 and transceiver 703 described in the embodiment of the present invention, the implementation of device for upgrading firmware described in Fig. 5 can also be executed, details are not described herein.
The embodiment of the invention provides a kind of computer readable storage medium, computer-readable recording medium storage has computer program, and computer program includes program instruction, realization when program instruction is executed by processor: the firmware upgrade order that receiving control apparatus is sent;In response to firmware upgrade order, the target hardware mark of current controller is obtained, target hardware identifies the identity for uniquely determining current controller;The target firmware mark for the firmware to be upgraded that receiving control apparatus is sent;According to the corresponding relationship of preset hardware identifier and firmware identifiers, judges that target firmware identifies whether to identify with target hardware and match;If it does, then upgrading data needed for obtaining firmware to be upgraded, and treat firmware updating according to upgrading data and upgraded.
The embodiment of the invention provides another computer readable storage medium, computer-readable recording medium storage has computer program, and computer program includes program instruction, realization when program instruction is executed by processor: sending firmware upgrade order to electronic equipment;The target firmware mark of firmware to be upgraded is sent to electronic equipment;Whether judgement receives the error indication message of electronic equipment transmission within a preset time;If being not received by error indication message, upgrading data needed for sending firmware to be upgraded to electronic equipment.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is relevant hardware can be instructed to complete by program, the program can be stored in a computer readable storage medium, storage medium may include: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc..
A kind of firmware upgrade method, device, electronic equipment and control equipment is provided for the embodiments of the invention above to be described in detail, used herein a specific example illustrates the principle and implementation of the invention, and the above description of the embodiment is only used to help understand the method for the present invention and its core ideas;At the same time, for those skilled in the art, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, and to sum up, the contents of this specification are not to be construed as limiting the invention.

Claims (40)

  1. A kind of firmware upgrade method, the method are applied in electronic equipment, and the electronic equipment includes at least one controller characterized by comprising
    The firmware upgrade order that receiving control apparatus is sent;
    In response to the firmware upgrade order, the target hardware mark of current controller is obtained, the target hardware identifies the identity for uniquely determining the current controller;
    Receive the target firmware mark for the firmware to be upgraded that the control equipment is sent;
    According to the corresponding relationship of preset hardware identifier and firmware identifiers, judges that the target firmware identifies whether to identify with the target hardware and match;
    If it does, then upgrading data needed for obtaining the firmware to be upgraded, and the firmware to be upgraded is upgraded according to the upgrading data.
  2. The method as described in claim 1, which is characterized in that the electronic equipment further includes printed circuit board, at least one described controller is configured on the printed circuit board;
    The target hardware mark for obtaining current controller, comprising:
    Acquire the partial pressure value of the current controller on the printed circuit board;
    The target hardware mark of the current controller is determined according to the partial pressure value.
  3. The method as described in claim 1, which is characterized in that the electronic equipment further includes at least one register, and the register and the controller correspond;
    The target hardware mark for obtaining current controller, comprising:
    The hardware information of the current controller is read from the register of the current controller;
    The target hardware mark of the current controller is determined according to the hardware information.
  4. Method as claimed in any one of claims 1-3, which is characterized in that the target firmware mark for receiving the firmware to be upgraded that the control equipment is sent, comprising:
    Receive the upgrade file for the firmware to be upgraded that the control equipment is sent;
    The target firmware mark is parsed from the predeterminable area of the upgrade file.
  5. Method as claimed in claim 4, which is characterized in that it include upgrading data in the upgrade file, upgrading data needed for the acquisition firmware to be upgraded, comprising:
    If the target firmware mark matches with target hardware mark, upgrading data are extracted from the upgrade file, wherein the upgrading data of extraction are upgrading data needed for the firmware to be upgraded.
  6. Such as method of any of claims 1-4, which is characterized in that further include:
    If the target firmware mark is mismatched with target hardware mark, error indication message is sent to the control equipment.
  7. Method as claimed in claim 6, which is characterized in that the target firmware mark is carried in the error indication message.
  8. Method as claimed in claim 6, which is characterized in that upgrading data needed for the acquisition firmware to be upgraded, comprising:
    The upgrading data that the control equipment is sent are received, the upgrading data are upgrading data needed for the firmware to be upgraded, and the upgrading data are that the control equipment is sent when not receiving the error indication message within a preset time.
  9. Such as method of any of claims 1-4, which is characterized in that further include:
    If the target firmware mark matches with target hardware mark, confirmation instruction message is sent to the control equipment.
  10. Method as claimed in claim 9, which is characterized in that the target firmware mark is carried in the confirmation instruction message.
  11. Method as claimed in claim 9, which is characterized in that upgrading data needed for the acquisition firmware to be upgraded, comprising:
    It receives the control equipment and responds the upgrading data that the confirmation instruction message is sent, the upgrading data are upgrading data needed for the firmware to be upgraded.
  12. Such as method of any of claims 1-11, which is characterized in that the electronic equipment is holder, and the holder is equipped on aircraft.
  13. A kind of firmware upgrade method characterized by comprising
    Firmware upgrade order is sent to electronic equipment;
    The target firmware mark of firmware to be upgraded is sent to the electronic equipment;
    Whether judgement receives the error indication message that the electronic equipment is sent within a preset time;
    If being not received by the error indication message, upgrading data needed for sending the firmware to be upgraded to the electronic equipment.
  14. Method as claimed in claim 13, which is characterized in that the target firmware mark that firmware to be upgraded is sent to the electronic equipment, comprising:
    The upgrade file of firmware to be upgraded is sent to the electronic equipment, and the target firmware mark is carried in the predeterminable area of the upgrade file.
  15. Method according to claim 13 or 14, which is characterized in that further include:
    If receiving the error indication message in the preset time, forbid upgrading data needed for sending the firmware to be upgraded to the electronic equipment.
  16. Method as claimed in claim 15, which is characterized in that the target firmware mark is carried in the error indication message.
  17. Method according to claim 13 or 14, which is characterized in that after the target firmware mark for sending firmware to be upgraded to the electronic equipment, the method also includes:
    Judge the confirmation instruction message that the electronic equipment is sent whether is received in the preset time;
    If receiving the confirmation instruction message, upgrading data needed for sending firmware to be upgraded to the electronic equipment.
  18. Method as claimed in claim 17, which is characterized in that the target firmware mark is carried in the confirmation instruction message.
  19. Method as described in any one of claim 13-18, which is characterized in that the electronic equipment is holder, and the holder is equipped on aircraft.
  20. A kind of device for upgrading firmware, the device for upgrading firmware are configured in electronic equipment, and the electronic equipment includes at least one controller characterized by comprising
    Receiving unit, the firmware upgrade order sent for receiving control apparatus;
    Acquiring unit, for obtaining the target hardware mark of current controller in response to the firmware upgrade order, the target hardware identifies the identity for uniquely determining the current controller;
    The receiving unit is also used to receive the target firmware mark for the firmware to be upgraded that the control equipment is sent;
    Judging unit judges that the target firmware identifies whether to identify with the target hardware and matches for the corresponding relationship according to preset hardware identifier and firmware identifiers;
    The acquiring unit matches if being also used to the target firmware mark with target hardware mark, upgrading data needed for obtaining the firmware to be upgraded, and is upgraded according to the upgrading data to the firmware to be upgraded.
  21. A kind of device for upgrading firmware characterized by comprising
    Transmission unit, for sending firmware upgrade order to electronic equipment;
    The transmission unit is also used to send the target firmware mark of firmware to be upgraded to the electronic equipment;
    Judging unit, the error indication message for judging whether to receive the electronic equipment transmission within a preset time;
    The transmission unit, if being also used to be not received by the error indication message, upgrading data needed for sending the firmware to be upgraded to the electronic equipment.
  22. A kind of electronic equipment, which is characterized in that including at least one controller, memory and transceiver:
    The memory, for storing program instruction;
    The processor, for calling the described program instruction execution following steps in the memory:
    The firmware upgrade order for calling the transceiver receiving control apparatus to send;
    In response to the firmware upgrade order, the target hardware mark of current controller is obtained, the target hardware identifies the identity for uniquely determining the current controller;
    The transceiver is called to receive the target firmware mark for the firmware to be upgraded that the control equipment is sent;
    According to the corresponding relationship of preset hardware identifier and firmware identifiers, judges that the target firmware identifies whether to identify with the target hardware and match;
    If it does, then upgrading data needed for obtaining the firmware to be upgraded, and the firmware to be upgraded is upgraded according to the upgrading data.
  23. Electronic equipment as claimed in claim 22, which is characterized in that the electronic equipment further includes printed circuit board, at least one described controller is configured on the printed circuit board;
    The controller obtains the concrete mode of the target hardware mark of current controller are as follows:
    Acquire the partial pressure value of the current controller on the printed circuit board;
    The target hardware mark of the current controller is determined according to the partial pressure value.
  24. Electronic equipment as claimed in claim 22, which is characterized in that the electronic equipment further includes at least one register, and the register and the controller correspond;
    The controller obtains the concrete mode of the target hardware mark of current controller are as follows:
    The hardware information of the current controller is read from the register of the current controller;
    The target hardware mark of the current controller is determined according to the hardware information.
  25. Electronic equipment as described in any one of claim 22-24, which is characterized in that the controller calls the transceiver to receive the concrete mode that the target firmware for the firmware to be upgraded that the control equipment is sent identifies are as follows:
    The transceiver is called to receive the upgrade file for the firmware to be upgraded that the control equipment is sent;
    The target firmware mark is parsed from the predeterminable area of the upgrade file.
  26. Electronic equipment as claimed in claim 25, which is characterized in that include upgrading data, the concrete mode of upgrading data needed for the controller obtains the firmware to be upgraded in the upgrade file are as follows:
    If the target firmware mark matches with target hardware mark, upgrading data are extracted from the upgrade file, wherein the upgrading data of extraction are upgrading data needed for the firmware to be upgraded.
  27. Electronic equipment as described in any one of claim 22-25, which is characterized in that the processor is also used to execute:
    If the target firmware mark is mismatched with target hardware mark, the transceiver is called to send error indication message to the control equipment.
  28. Electronic equipment as described in any of claims 27, which is characterized in that the target firmware mark is carried in the error indication message.
  29. Electronic equipment as described in any of claims 28, which is characterized in that the concrete mode of upgrading data needed for the controller obtains the firmware to be upgraded are as follows:
    The transceiver is called to receive the upgrading data that the control equipment is sent, the upgrading data are upgrading data needed for the firmware to be upgraded, and the upgrading data are that the control equipment is sent when not receiving the error indication message within a preset time.
  30. Electronic equipment as described in any one of claim 22-25, which is characterized in that the processor is also used to execute:
    If the target firmware mark matches with target hardware mark, the transceiver is called to send confirmation instruction message to the control equipment.
  31. Electronic equipment as claimed in claim 30, which is characterized in that the target firmware mark is carried in the confirmation instruction message.
  32. Electronic equipment as claimed in claim 30, which is characterized in that the concrete mode of upgrading data needed for the controller obtains the firmware to be upgraded are as follows:
    It calls the transceiver to receive the control equipment and responds the upgrading data that the confirmation instruction message is sent, the upgrading data are upgrading data needed for the firmware to be upgraded.
  33. Electronic equipment as described in any one of claim 22-32, which is characterized in that the electronic equipment is holder, and the holder is equipped on aircraft.
  34. A kind of control equipment, which is characterized in that including memory, transceiver and processor:
    The memory, for storing program instruction;
    The processor calls the program instruction in the memory to execute following steps:
    The transceiver is called to send firmware upgrade order to electronic equipment;
    The transceiver is called to send the target firmware mark of firmware to be upgraded to the electronic equipment;
    Whether judgement receives the error indication message that the electronic equipment is sent within a preset time;
    If being not received by the error indication message, upgrading data needed for calling the transceiver to send the firmware to be upgraded to the electronic equipment.
  35. Control equipment as claimed in claim 34, which is characterized in that the concrete mode that the target firmware that the processor calls the transceiver to send firmware to be upgraded to the electronic equipment identifies are as follows:
    It calls the transceiver to send the upgrade file of firmware to be upgraded to the electronic equipment, the target firmware mark is carried in the predeterminable area of the upgrade file.
  36. Control equipment as described in claim 34 or 35, which is characterized in that the processor is also used to execute:
    If receiving the error indication message in the preset time, the transceiver is called to forbid upgrading data needed for sending the firmware to be upgraded to the electronic equipment.
  37. Control equipment as claimed in claim 36, which is characterized in that the target firmware mark is carried in the error indication message.
  38. Control equipment as described in claim 34 or 35, which is characterized in that the processor is also used to execute:
    Judge the confirmation instruction message that the electronic equipment is sent whether is received in the preset time;
    If receiving the confirmation instruction message, upgrading data needed for calling the transceiver to send firmware to be upgraded to the electronic equipment.
  39. Control equipment as claimed in claim 38, which is characterized in that the target firmware mark is carried in the confirmation instruction message.
  40. Control equipment as described in any one of claim 34-39, which is characterized in that the electronic equipment is holder, and the holder is equipped on aircraft.
CN201880010765.XA 2018-01-19 2018-01-19 A kind of firmware upgrade method, device, electronic equipment and control equipment Pending CN110268386A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/073500 WO2019140656A1 (en) 2018-01-19 2018-01-19 Firmware upgrade method and apparatus, electronic device and control device

Publications (1)

Publication Number Publication Date
CN110268386A true CN110268386A (en) 2019-09-20

Family

ID=67301891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880010765.XA Pending CN110268386A (en) 2018-01-19 2018-01-19 A kind of firmware upgrade method, device, electronic equipment and control equipment

Country Status (2)

Country Link
CN (1) CN110268386A (en)
WO (1) WO2019140656A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111273930A (en) * 2020-01-21 2020-06-12 深圳市雷赛软件技术有限公司 Firmware upgrading control method, upper computer and firmware upgrading system
CN111475186A (en) * 2020-03-13 2020-07-31 苏州浪潮智能科技有限公司 Firmware upgrading method, device, equipment and medium based on BMC
CN113242145A (en) * 2021-04-30 2021-08-10 合肥移瑞通信技术有限公司 Wireless device, firmware upgrading method, firmware server and readable storage medium
CN113721953A (en) * 2021-08-11 2021-11-30 西安诺瓦星云科技股份有限公司 Firmware program upgrading method and device and display control equipment
CN113778496A (en) * 2021-09-16 2021-12-10 联想(北京)有限公司 Firmware upgrading method and device, electronic equipment and storage medium
CN113944991A (en) * 2020-07-17 2022-01-18 海信(山东)空调有限公司 Air conditioner and firmware upgrading method
CN117075958A (en) * 2023-10-16 2023-11-17 广东优力普物联科技有限公司 Firmware generation method suitable for multiple models, storage medium and electronic equipment
CN117850565A (en) * 2024-03-08 2024-04-09 闪极科技(深圳)有限公司 Power supply device, firmware upgrade method, and readable storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110764811A (en) * 2019-09-05 2020-02-07 深圳优地科技有限公司 Firmware upgrading method and device
CN110750285B (en) * 2019-10-17 2023-08-04 和美(深圳)信息技术股份有限公司 Firmware upgrading method, device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868945A (en) * 2012-10-15 2013-01-09 上海斐讯数据通信技术有限公司 Upgrading method optical network unit (ONU) in Ethernet passive optical network (EPON)
CN106815050A (en) * 2016-12-30 2017-06-09 深圳怡化电脑股份有限公司 A kind of firmware management method and device of embedded device
CN107066300A (en) * 2017-04-21 2017-08-18 杭州宏杉科技股份有限公司 The firmware upgrade method and storage device of a kind of storage device
CN107168750A (en) * 2017-06-08 2017-09-15 郑州云海信息技术有限公司 A kind of firmware upgrade guard method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100021B (en) * 2014-05-20 2021-03-16 西安中兴新软件有限责任公司 Triggering method, device and system for device management session
CN104202471B (en) * 2014-08-22 2017-10-24 惠州Tcl移动通信有限公司 Firmware upgrade processing method, system and mobile terminal based on mobile terminal
US9626221B2 (en) * 2015-02-24 2017-04-18 Red Hat Israel, Ltd. Dynamic guest virtual machine identifier allocation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868945A (en) * 2012-10-15 2013-01-09 上海斐讯数据通信技术有限公司 Upgrading method optical network unit (ONU) in Ethernet passive optical network (EPON)
CN106815050A (en) * 2016-12-30 2017-06-09 深圳怡化电脑股份有限公司 A kind of firmware management method and device of embedded device
CN107066300A (en) * 2017-04-21 2017-08-18 杭州宏杉科技股份有限公司 The firmware upgrade method and storage device of a kind of storage device
CN107168750A (en) * 2017-06-08 2017-09-15 郑州云海信息技术有限公司 A kind of firmware upgrade guard method and system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111273930A (en) * 2020-01-21 2020-06-12 深圳市雷赛软件技术有限公司 Firmware upgrading control method, upper computer and firmware upgrading system
CN111475186A (en) * 2020-03-13 2020-07-31 苏州浪潮智能科技有限公司 Firmware upgrading method, device, equipment and medium based on BMC
CN113944991A (en) * 2020-07-17 2022-01-18 海信(山东)空调有限公司 Air conditioner and firmware upgrading method
CN113242145A (en) * 2021-04-30 2021-08-10 合肥移瑞通信技术有限公司 Wireless device, firmware upgrading method, firmware server and readable storage medium
CN113721953A (en) * 2021-08-11 2021-11-30 西安诺瓦星云科技股份有限公司 Firmware program upgrading method and device and display control equipment
CN113721953B (en) * 2021-08-11 2024-06-04 西安诺瓦星云科技股份有限公司 Firmware program upgrading method and device and display control equipment
CN113778496A (en) * 2021-09-16 2021-12-10 联想(北京)有限公司 Firmware upgrading method and device, electronic equipment and storage medium
CN117075958A (en) * 2023-10-16 2023-11-17 广东优力普物联科技有限公司 Firmware generation method suitable for multiple models, storage medium and electronic equipment
CN117075958B (en) * 2023-10-16 2024-01-23 广东优力普物联科技有限公司 Firmware generation method suitable for multiple models, storage medium and electronic equipment
CN117850565A (en) * 2024-03-08 2024-04-09 闪极科技(深圳)有限公司 Power supply device, firmware upgrade method, and readable storage medium

Also Published As

Publication number Publication date
WO2019140656A1 (en) 2019-07-25

Similar Documents

Publication Publication Date Title
CN110268386A (en) A kind of firmware upgrade method, device, electronic equipment and control equipment
CN106612192A (en) An equipment upgrading method, apparatus and system
US11995427B2 (en) Method, apparatus, device, and storage medium for upgrading vehicle-mounted Tbox
EP2492821A1 (en) Method and device for updating data card
CN108874426B (en) Application program updating method and device and readable storage medium
CN108182077B (en) Device, firmware upgrading method and device of device and storage medium
CN111901142B (en) Firmware silence upgrading method and device for embedded device cluster
US20130283255A1 (en) Method, Device and System for Installing Terminal Software
WO2016082649A1 (en) Method and device for automatically processing static test data of rail transit vehicle
US20230211694A1 (en) Method and device for controlling vehicle charging and vehicle
CN111414183A (en) Upgrade detection method and device for vehicle component, computer equipment and storage medium
CN113672441A (en) Method and device for testing intelligent equipment
CN109002305B (en) Method and system for updating equipment program
CN115291907A (en) Vehicle upgrading method, device and system
CN111190621A (en) Firmware burning method, device, system, terminal equipment and storage medium
CN109274709B (en) Method and system for synchronizing programming works on education operation system
CN114138296A (en) Multi-system gateway upgrading method, equipment and storage medium
CN113360161B (en) Resource upgrading method and related products
CN106951276B (en) Multi-controller software upgrading and address conflict detection method and device
CN116302131A (en) Server function configuration method and device, storage medium and electronic equipment
CN112015452B (en) Firmware upgrading method and device for gate system and gate system
CN114816887A (en) Method, system, equipment and medium for checking topology setting of hard disk backboard of server
CN106789863B (en) Matching rule upgrading method and device
CN110764789B (en) Process control method and device, storage medium and electronic equipment
WO2021057648A1 (en) Esim card, method for processing and setting card application, terminal and platform device

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190920

WD01 Invention patent application deemed withdrawn after publication