CN106681766B - Remote firmware upgrade control method and system - Google Patents

Remote firmware upgrade control method and system Download PDF

Info

Publication number
CN106681766B
CN106681766B CN201611218345.XA CN201611218345A CN106681766B CN 106681766 B CN106681766 B CN 106681766B CN 201611218345 A CN201611218345 A CN 201611218345A CN 106681766 B CN106681766 B CN 106681766B
Authority
CN
China
Prior art keywords
firmware
upgrade
upgrading
data packet
communication equipment
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.)
Active
Application number
CN201611218345.XA
Other languages
Chinese (zh)
Other versions
CN106681766A (en
Inventor
张东乾
高翔
刘远辉
李操炫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong PHNIX Eco Energy Solution Ltd
Original Assignee
Guangdong PHNIX Eco Energy Solution Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong PHNIX Eco Energy Solution Ltd filed Critical Guangdong PHNIX Eco Energy Solution Ltd
Priority to CN201611218345.XA priority Critical patent/CN106681766B/en
Publication of CN106681766A publication Critical patent/CN106681766A/en
Application granted granted Critical
Publication of CN106681766B publication Critical patent/CN106681766B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

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

Abstract

The invention provides a remote firmware upgrade control method and a system thereof.A mutual platform receives an upgrade configuration instruction; the interactive platform sends upgrading data information to the service platform according to the upgrading configuration instruction; the service platform acquires the MAC address of the communication equipment of the target upgrading object according to the firmware code identification and the version number in the received upgrading data information; the service platform sends an upgrading data packet to the communication equipment according to the MAC address and the upgrading data information; and the communication equipment carries out firmware upgrading when determining to be upgraded according to the received upgrading data packet. The remote firmware upgrading control method and the remote firmware upgrading control system can realize automatic upgrading of remote firmware, and upgrading control of each hardware device is not required to be carried out on site one by one in a manual mode, so that the remote firmware upgrading control method and the remote firmware upgrading control system save the trouble that a specially-assigned person personally approaches to site upgrading, labor cost can be saved, and upgrading efficiency can be improved.

Description

Remote firmware upgrade control method and system
Technical Field
The invention relates to the technical field of firmware upgrading control, in particular to a remote firmware upgrading control method and system.
Background
And firmware upgrading refers to upgrading the embedded firmware of the hardware equipment. The firmware upgrade can improve the functions of the machine, enhance the stability of the machine and repair the bugs of the machine. Because the high version often repairs part of BUG (BUG) of the low version, the upgraded version subjected to firmware upgrade generally has better performance than the original version, obtains an optimized effect, and enables users to have better experience.
Because the hardware equipment upgraded in the firmware upgrade is often hardware equipment which is not intelligent enough and is difficult to be like the control mode of software upgrade, after the new version is released, the version information is automatically detected through the intelligent terminal, the updating instruction input by the user is received, and then the updating is carried out. Therefore, under the condition that the hardware equipment cannot automatically detect the version information, the upgrading control of each hardware equipment needs to be carried out on site one by one in a manual mode, and the labor cost is high in the mode.
Disclosure of Invention
Accordingly, there is a need for a method and system for remote firmware upgrade control that saves labor costs.
A remote firmware upgrade control method includes:
the interactive platform receives an upgrading configuration instruction; the upgrading configuration instruction comprises a firmware code identifier and a version number of the upgrading firmware;
the interactive platform sends upgrading data information to the service platform according to the upgrading configuration instruction; the upgrading data information comprises a firmware code identifier and a version number of the upgrading firmware;
the service platform acquires the MAC address of the communication equipment of the target upgrading object according to the firmware code identification and the version number in the received upgrading data information;
the service platform sends an upgrading data packet to the communication equipment according to the MAC address and the upgrading data information;
and the communication equipment carries out firmware upgrading when determining to be upgraded according to the received upgrading data packet.
A remote firmware upgrade control system, comprising: the system comprises an interaction platform, a service platform and communication equipment; the interactive platform comprises a configuration instruction receiving module and an upgrade information sending module; the service platform comprises an MAC address module and an upgrading data packet sending module;
the configuration instruction receiving module is used for receiving an upgrading configuration instruction; the upgrading configuration instruction comprises a firmware code identifier and a version number of the upgrading firmware;
the upgrade information sending module is used for sending upgrade data information to the service platform according to the upgrade configuration instruction; the upgrading data information comprises a firmware code identifier and a version number of the upgrading firmware;
the MAC address module is used for acquiring the MAC address of the communication equipment of the target upgrading object according to the firmware code identification and the version number in the received upgrading data information;
the upgrading data packet sending module is used for sending an upgrading data packet to the communication equipment according to the MAC address and the upgrading data information;
and the communication equipment carries out firmware upgrading when determining to be upgraded according to the received upgrading data packet.
The remote firmware upgrading control method and the remote firmware upgrading control system can realize automatic upgrading of remote firmware, and upgrading control of each hardware device is not required to be carried out on site one by one in a manual mode, so that the remote firmware upgrading control method and the remote firmware upgrading control system save the trouble that a specially-assigned person personally approaches to site upgrading, labor cost can be saved, and upgrading efficiency can be improved.
Drawings
Fig. 1 is a flowchart of a remote firmware upgrade control method of a first embodiment;
fig. 2 is a flowchart of a remote firmware upgrade control method of the second embodiment;
FIG. 3 is a detailed flow chart of one step of the remote firmware upgrade control method of FIG. 1 or FIG. 2;
FIG. 4 is a sub-flow diagram of a sub-step of the detailed flow diagram of FIG. 3;
fig. 5 is a flowchart of a remote firmware upgrade control method of the third embodiment;
fig. 6 is a block diagram of a remote firmware upgrade control system of the first embodiment;
fig. 7 is a block diagram of a remote firmware upgrade control system of the second embodiment;
fig. 8 is a block diagram of a remote firmware upgrade control system of the third embodiment;
fig. 9 is a block diagram of a remote firmware upgrade control system of the fourth embodiment.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "or/and" includes any and all combinations of one or more of the associated listed items.
For convenience of explanation, the operating environment of the present invention, including the interactive platform, the service platform, and the communication device, is first introduced. The service platform is a server storing the upgrade firmware, firmware information of the upgrade firmware, and upgrade object information, preferably a cloud server, and specifically may be a GDCS (smart cloud Device Connection System) server; the interactive platform is a server for providing interactive services between the user and the service platform, and specifically may be a GDMS (fuzzy Device Management System) server; the communication equipment can be communicated with the interaction platform and the service platform; the production equipment is equipment that implements some of the job functions. Each communication device may correspond to one or more upgrade objects, and the upgrade objects may be the communication device itself or product devices connected to the communication device. The communication device may be a WiFi (WIreless-FIdelity) module, and the WiFi module stores firmware for implementing a specific communication function; the product device includes a device MCU (Microcontroller Unit) which stores firmware for realizing specific job functions. It is understood that a plurality of product devices correspond to one communication device. Each communication device has a MAC address (Media Access Control or Medium Access Control address, Media Access Control, or physical address, hardware address, which is used to define the location of the network device) for communication.
As shown in fig. 1, a remote firmware upgrade control method according to an embodiment of the present invention includes:
s140: and the interactive platform receives an upgrading configuration instruction. The upgrading configuration instruction comprises a firmware code identification and a version number of the upgrading firmware.
The interactive platform may receive upgrade configuration instructions in the form of establishing upgrade tasks. Specifically, the upgrade configuration instruction may further include an upgrade completion time, a firmware amount, and the like.
S150: and the interactive platform sends upgrading data information to the service platform according to the upgrading configuration instruction. The upgrade data information includes a firmware code identifier and a version number of the upgrade firmware.
The interactive platform can send the upgrade data information to the service platform in a form of sending the upgrade task to the service platform. Specifically, the upgrade data information may further include upgrade completion time, the number of firmware, and the like.
S160: and the service platform acquires the MAC address of the communication equipment of the target upgrading object according to the firmware code identification and the version number in the received upgrading data information.
It is understood that the service platform stores firmware information for upgrading the firmware and a server for upgrading object information. The firmware information comprises a firmware code identifier, a version number and a firmware size; specifically, the firmware code identification may be a firmware code name, a firmware code number, or the like. The upgrade object information includes device information of a device to be upgraded, and the device information includes a MAC address of a communication device corresponding to the device and a device identifier or/and a firmware code identifier of firmware corresponding to the device.
S170: and the service platform sends an upgrading data packet to the communication equipment according to the MAC address and the upgrading data information.
As will be appreciated, the upgrade data packet includes upgrade data information. Forming an upgrade data packet according to the upgrade data information; and sending the upgrading data packet to the communication equipment corresponding to the MAC address according to the MAC address.
S180: and the communication equipment carries out firmware upgrading when determining to be upgraded according to the received upgrading data packet.
The communication device may determine whether it is an upgrade itself through the firmware code identification. Specifically, whether the firmware is the upgrade itself may be determined by comparing whether the firmware code identification of the currently running firmware in the communication device is consistent with the firmware code identification in the received upgrade data packet. If the two are consistent, the upgrading is carried out, otherwise, the upgrading is not carried out. And when the firmware is determined to be upgraded, performing firmware upgrading. It is understood that the communication device may also determine whether to upgrade itself by the device identifier, that is, determine whether to upgrade itself by comparing whether the device identifier of the communication device is consistent with the device identifier in the received upgrade data packet.
In the remote firmware upgrade control method, the interactive platform receives an upgrade configuration instruction; the upgrading configuration instruction comprises a firmware code identifier and a version number of the upgrading firmware; the interactive platform sends upgrading data information to the service platform according to the upgrading configuration instruction; the upgrading data information comprises a firmware code identifier and a version number of the upgrading firmware; the service platform acquires the MAC address of the communication equipment of the target upgrading object according to the firmware code identification and the version number in the received upgrading data information; the service platform sends an upgrading data packet to the communication equipment according to the MAC address and the upgrading data information; and the communication equipment carries out firmware upgrading when determining to be upgraded according to the received upgrading data packet. Therefore, the remote firmware upgrading control method has the advantages that the remote firmware is automatically upgraded, and the upgrading control of each hardware device is not required to be carried out on site one by one in a manual mode, so that the trouble that a specially-assigned person personally approaches the site for upgrading is eliminated, the labor cost can be saved, and the upgrading efficiency is improved.
Referring to fig. 2, in one embodiment, in order to enable the user to view the upgrade result through the interactive platform, the method further includes:
s290: and after the communication equipment finishes upgrading, sending upgrading feedback information to the service platform. The upgrade feedback information comprises a firmware code identifier and a version number of the current running firmware in the communication equipment after the upgrade is completed.
S2A 0: and after receiving the upgrade feedback information, the service platform determines an upgrade result according to whether the firmware code identifier and the version number of the current running firmware are consistent with the firmware code identifier and the version number of the upgrade firmware, and returns the upgrade result to the interactive platform.
Specifically, when the firmware code identifier and the version number of the currently running firmware are consistent with the firmware code identifier and the version number of the upgraded firmware, the upgrade result is that the upgrade is successful; and when the firmware code identifier or the version number of the currently running firmware is inconsistent with the firmware code identifier or the version number of the upgraded firmware, the upgrading result is upgrading failure.
In one embodiment, in order to facilitate a user to conveniently determine an upgrade object when performing remote firmware upgrade on a control device, before the step of receiving an upgrade configuration instruction by the interactive platform, the method further includes:
s210: and the interactive platform receives an upgrading object query instruction and sends an upgrading object query request to the service platform according to the upgrading object query instruction.
The upgrade object query instruction is a query instruction which is input to the interactive platform by a user and aims at the upgrade object. Specifically, the upgrade object query instruction includes a firmware code identifier, a version number, a barcode, and a product type of the target upgrade object. Therefore, a user can set the screening condition through the firmware code identification, the version number, the bar code and the product type of the target upgrading object without remembering the specific MAC address of each target upgrading object, and then the upgrading object information meeting the screening condition is searched through the service platform. It will be appreciated that in one embodiment, the upgrade object query request may include the filter criteria.
S230: and the service platform returns the upgrading object information to the interactive platform according to the upgrading object query request.
The service platform inquires corresponding upgrading object information according to the upgrading object inquiry request, and returns the inquired upgrading object information to the interactive platform, so that a user can input an upgrading configuration instruction according to the upgrading object information on the interactive platform.
In this embodiment, the step of receiving the upgrade configuration instruction by the interactive platform is S240: and the interactive platform receives an upgrading configuration instruction on the basis of the upgrading object information.
And receiving an upgrading configuration instruction by the interactive platform based on the upgrading object information returned by the service platform. It is to be understood that upgrade object information is included in the upgrade configuration instructions. For example, specifically, the upgrade configuration instruction may include a firmware code identifier of the upgrade object.
Referring to fig. 3, when the communication device determines to upgrade itself according to the received upgrade data packet, the step of upgrading the firmware includes:
s381: and the communication equipment receives the upgrading data packet sent by the service platform. And the upgrade data packet sent by the service platform comprises the upgrade data information and a third check code of the upgrade firmware corresponding to the upgrade data information.
It can be understood that, in this embodiment, the service platform sends the upgrade data packet to the communication device according to the MAC address, the upgrade data information, and the upgrade firmware corresponding to the upgrade data information. Specifically, the service platform checks the upgrade firmware to obtain a third check code; and forming an upgrade data packet by the third check code and the upgrade data information, and sending the upgrade data packet to the communication equipment corresponding to the MAC address.
S383: and the communication equipment acquires the upgrade firmware corresponding to the upgrade data information from the service platform according to the received upgrade data packet, and checks the acquired upgrade firmware to obtain a fourth check code.
S385: and if the third check code is consistent with the fourth check code, the communication equipment carries out firmware upgrading.
Therefore, the third check code obtained by checking the upgrade firmware by the service platform contained in the upgrade data packet received by the communication equipment is determined to be consistent with the fourth check code obtained by checking the upgrade firmware received by the communication equipment, so that the communication equipment can only update the firmware after determining that the received upgrade data packet and the upgrade firmware are correct, and the upgrade failure caused by the error of the upgrade data packet or the upgrade firmware is avoided.
Referring to fig. 4, further, if the third check code is consistent with the fourth check code, the step of upgrading the firmware by the communication device includes:
s4851: and if the third check code is consistent with the fourth check code, the communication equipment stores the received upgrade data packet to a temporary storage area of the communication equipment and operates the firmware in the initial operation area of the communication equipment.
S4853: and when the obtained upgrading firmware is the firmware for upgrading the communication equipment, the communication equipment stores the obtained upgrading firmware to an upgraded operation area in the communication equipment.
S4855: and the communication equipment checks the upgrade firmware stored in the upgraded operation area to obtain a fifth check code.
S4857: and when the fifth check code is consistent with the third check code, the communication equipment stores the upgrade data packet in the temporary storage area in the communication equipment to the operation area after upgrade, and switches to the operation area after upgrade to operate.
It can be understood that, in this embodiment, the communication device includes a primary operation area, a temporary storage area, and an upgraded operation area. The initial operation area is an operation area of firmware corresponding to burning equipment when leaving a factory; the upgraded operation area is an operation area of firmware which is operated after the equipment is upgraded subsequently; the temporary storage area is used for storing some temporary files or data. Further, when the third check code is consistent with the fourth check code, the received upgrade data packet is stored in a temporary storage area of the communication device, the firmware in the initial operation area of the communication device is operated, and then whether the upgrade firmware corresponding to the upgrade data information acquired from the service platform according to the received upgrade data packet is upgraded is determined. And when the communication equipment is determined to be upgraded, the communication equipment carries out firmware upgrading. Specifically, the step of upgrading the firmware of the communication device includes: the communication equipment stores the acquired upgrade firmware to an upgraded operation area in the communication equipment; and the communication equipment stores the upgrade data packet in the temporary storage area in the communication equipment to the operation area after upgrade and switches to the operation area after upgrade for operation. More specifically, after the communication device stores the acquired upgrade firmware in an upgraded operating area in the communication device, verifying the upgrade firmware stored in the upgraded operating area to obtain a fifth verification code; and when the fifth check code is consistent with the third check code, the communication equipment stores the upgrade data packet in the temporary storage area in the communication equipment to the operation area after upgrade, and switches to the operation area after upgrade to operate. Therefore, the check code of the upgrade firmware stored in the operation area after the upgrade is consistent with the check code in the upgrade data packet sent to the communication equipment by the service platform, so that the upgrade data packet and the upgrade firmware in the operation area after the upgrade are ensured to be correct, that is, the operation area after the upgrade is operated to realize the firmware upgrade of the communication equipment by ensuring the accuracy and the success rate of transmission.
The firmware in the initial operation area is operated in the communication equipment before the upgrading is started but the upgrading is not completed, when the upgrading data packet and the upgrading firmware are stored in the operation area after the upgrading, the operation is switched to the operation area after the upgrading for operation, and if the upgrading data packet or/and the upgrading firmware are not successfully stored in the operation area after the upgrading, the firmware in the initial operation area is kept to be operated. Therefore, the equipment can still normally operate under the condition of power failure or data transmission error/failure, and the robustness of the equipment is improved.
In one embodiment, step S4857 includes:
when the fifth check code is consistent with the third check code stored in the temporary storage area, the communication equipment stores the upgrade data packet in the temporary storage area in the communication equipment to the upgraded operation area;
and when the third check code and the fifth check code stored in the operation area after upgrading are consistent, the communication equipment is switched to the operation area after upgrading to operate.
Therefore, the third check code in the operation area after the upgrade is consistent with the fifth check code of the upgrade firmware in the operation area after the upgrade, and the upgrade data packet and the upgrade firmware in the operation area after the upgrade of the communication equipment are ensured to be correct.
Referring to fig. 5, in an embodiment, after the step of sending, by the service platform, an upgrade data packet to the communication device according to the MAC address and the upgrade data information, the method includes:
s580: and the communication equipment broadcasts the received upgrading data packet to product equipment connected with the communication equipment when determining that the upgrading of the communication equipment is not carried out according to the received upgrading data packet.
If the communication device determines that the communication device is not the upgrade itself according to the received upgrade data packet, the upgrade object should be a product device connected to the communication device. Therefore, it is necessary to broadcast the upgrade data packet to the product devices connected to the communication device.
S581: and the product equipment receives the upgrading data packet broadcasted by the communication equipment. The upgrade data packet broadcast by the communication equipment comprises upgrade data information and a first check code of upgrade firmware corresponding to the upgrade data information.
It can be understood that, in this embodiment, the service platform sends the upgrade data packet to the communication device according to the MAC address, the upgrade data information, and the upgrade firmware corresponding to the upgrade data information. Specifically, the service platform checks the upgrade firmware to obtain a first check code; forming an upgrading data packet by the first check code and the upgrading data information, and sending the upgrading data packet to the communication equipment corresponding to the MAC address; the communication device broadcasts the upgrade data packet to the production devices.
S583: and the product equipment acquires the upgrade firmware corresponding to the upgrade data information from the service platform according to the received upgrade data packet, and verifies the acquired upgrade firmware to obtain a second check code.
S585: and if the first check code is consistent with the second check code, the product equipment carries out firmware upgrading.
Therefore, the first check code obtained by checking the upgrade firmware by the service platform contained in the upgrade data packet received by the product equipment is determined to be consistent with the second check code obtained by checking the upgrade firmware received by the product equipment, so that the product equipment can only update the firmware if the received upgrade data packet and the upgrade firmware are determined to be correct, and the upgrade failure caused by the error of the upgrade data packet or the upgrade firmware is avoided.
Further, if the first check code is consistent with the second check code, the step of upgrading the firmware of the product device includes:
(a) and if the first check code is consistent with the second check code, the product equipment stores the received upgrade data packet to a temporary storage area of the product equipment and operates the firmware in the initial operation area of the product equipment.
(b) And when the obtained upgrading firmware is the firmware for upgrading the product equipment, the product equipment stores the obtained upgrading firmware to the upgraded operation area in the product equipment.
(c) And the product equipment checks the upgrade firmware stored in the upgraded operation area to obtain a sixth check code.
(d) And when the sixth check code is consistent with the first check code, the product equipment stores the upgrade data packet in the temporary storage area in the product equipment to the operation area after upgrade and switches to the operation area after upgrade to operate.
It can be understood that, in this embodiment, the product equipment includes a primary operation area, a temporary storage area, and an upgraded operation area. The initial operation area is an operation area of firmware corresponding to burning equipment when leaving a factory; the upgraded operation area is an operation area of firmware which is operated after the equipment is upgraded subsequently; the temporary storage area is used for storing some temporary files or data. Further, when the first check code is consistent with the second check code, the received upgrade data packet is stored in a temporary storage area of the product device, the firmware in the initial operation area of the product device is operated, and then whether the upgrade firmware corresponding to the upgrade data information acquired from the service platform according to the received upgrade data packet is upgraded is determined. And when the firmware is determined to be upgraded, the product equipment carries out firmware upgrading. Specifically, the step of upgrading the firmware of the product device includes: the product equipment stores the obtained upgrading firmware to an upgraded operation area in the product equipment; and the product equipment stores the upgrade data packet of the temporary storage area in the product equipment to an upgraded operation area and switches to the upgraded operation area to operate. More specifically, after the product device stores the acquired upgrade firmware into an upgraded operating area in the product device, verifying the upgrade firmware stored in the upgraded operating area to obtain a sixth verification code; and when the sixth check code is consistent with the first check code, the product equipment stores the upgrade data packet in the temporary storage area in the product equipment to the operation area after upgrade and switches to the operation area after upgrade to operate. Therefore, the check code of the upgrade firmware stored in the operation area after upgrading is consistent with the check code in the upgrade data packet sent to the product equipment by the service platform, so that the upgrade data packet and the upgrade firmware in the operation area after upgrading are ensured to be correct, that is, the operation area after upgrading is operated only by ensuring the accuracy and success rate of transmission, and the firmware upgrading of the product equipment is realized.
The firmware in the initial operation area is operated in the product equipment before the upgrade is started but the upgrade is not completed, when the upgrade data packet and the upgrade firmware are stored in the upgraded operation area, the operation is switched to the upgraded operation area for operation, and if the upgrade data packet or/and the upgrade firmware are not successfully stored in the upgraded operation area, the firmware in the initial operation area is kept to be operated. Therefore, the equipment can still normally operate under the condition of power failure or data transmission error/failure, and the robustness of the equipment is improved.
It is understood that the temporary storage area and the upgraded running area of the product device may be merged into a flash (flash memory) area, and the flash area may be named as the upgraded running area. In this case, steps (a) and (b) may be combined as:
and if the first check code is consistent with the second check code, the product equipment stores the received upgrade data packet to an upgraded operation area of the product equipment and operates firmware data in a primary operation area of the product equipment.
In one embodiment, step (d) includes:
I) when the sixth check code is consistent with the first check code stored in the temporary storage area, the product equipment stores the upgrade data packet in the product equipment to the upgraded operation area;
and II) when the first check code and the sixth check code stored in the operation area after upgrading are consistent, the product equipment is switched to the operation area after upgrading to operate.
Therefore, the first check code in the operation area after the upgrade is consistent with the sixth check code of the upgrade firmware in the operation area after the upgrade, and the upgrade data packet and the upgrade firmware in the operation area after the upgrade of the product equipment are ensured to be correct.
Preferably, the check code in the above embodiment may be an MD5 check code.
Referring to fig. 6, the present invention further provides a remote firmware upgrade control system according to an embodiment, including: the interactive platform 100, the service platform 200 and the communication device 300; the interactive platform 100 comprises a configuration instruction receiving module 140 and an upgrade information sending module 150; the service platform 200 comprises a MAC address module 260 and an upgrade data packet sending module 270;
the configuration instruction receiving module 140 is configured to receive an upgrade configuration instruction; the upgrading configuration instruction comprises a firmware code identifier and a version number of the upgrading firmware;
the upgrade information sending module 150 is configured to send upgrade data information to the service platform according to the upgrade configuration instruction; the upgrading data information comprises a firmware code identifier and a version number of the upgrading firmware;
the MAC address module 260 is configured to obtain an MAC address of the communication device of the target upgrade object according to the firmware code identifier and the version number in the received upgrade data information;
the upgrade data packet sending module 270 is configured to send an upgrade data packet to the communication device according to the MAC address and the upgrade data information;
the communication device 300 performs firmware upgrade when it is determined to upgrade itself according to the received upgrade data packet.
The remote firmware upgrading control system can realize automatic upgrading of remote firmware, and upgrading control of each hardware device is not required to be carried out on site one by one in a manual mode, so that the remote firmware upgrading control system saves the trouble that a specially-assigned person personally approaches to site upgrading, can save labor cost and improve upgrading efficiency.
Referring to fig. 7, in one embodiment, the communication device 300 includes a feedback information sending module 390; the service platform 200 further comprises an upgrade result feedback module 2a 0;
the feedback information sending module 390 is configured to send upgrade feedback information to the service platform 200 after the communication device 300 finishes upgrading; the upgrade feedback information includes a firmware code identifier and a version number of the currently running firmware in the communication device 300 after the upgrade is completed;
the upgrade result feedback module 2a0 is configured to, after receiving the upgrade feedback information, determine an upgrade result according to whether the firmware code identifier and the version number of the currently running firmware are consistent with the firmware code identifier and the version number of the upgrade firmware, and return the upgrade result to the interactive platform 100.
With continued reference to fig. 7, in one embodiment, the communication device 300 includes: a communication data packet receiving module 381, a communication firmware verification obtaining module 383, and a communication firmware upgrading module 385;
the communication data packet receiving module 381 is configured to receive an upgrade data packet sent by the upgrade data packet sending module of the service platform 200; the upgrade data packet sent by the service platform 200 includes the upgrade data information and a third check code of the upgrade firmware corresponding to the upgrade data information;
the communication firmware verification obtaining module 383 is configured to obtain, according to the received upgrade data packet, the upgrade firmware corresponding to the upgrade data information from the service platform 200, and verify the obtained upgrade firmware to obtain a fourth verification code;
the communication firmware upgrade module 385 is configured to upgrade firmware if the third check code is consistent with the fourth check code.
In one embodiment, the communication firmware upgrade module 385 includes: a communication packet temporary storage unit (not shown), a communication firmware upgrade storage unit (not shown), a communication check code upgrade determination unit (not shown), and a communication packet upgrade storage unit (not shown);
the communication data packet temporary storage unit is configured to store the received upgrade data packet into a temporary storage area of the communication device 300 and run a firmware in an initial running area of the communication device 300 if the third check code is consistent with the fourth check code;
the communication firmware upgrade storing unit is configured to, when the obtained upgrade firmware is a firmware for upgrading the communication device 300 itself, store the obtained upgrade firmware in an upgraded operating area in the communication device 300;
the communication check code upgrading determining unit is used for verifying the upgrading firmware stored in the upgraded operation area to obtain a fifth verification code;
and the communication data packet upgrade storage unit is configured to, when the fifth check code is consistent with the third check code, store the upgrade data packet in the temporary storage area of the communication device 300 in the upgraded operating area, and switch to the upgraded operating area to operate.
Referring to fig. 8, in one embodiment, the communication device 300 includes a packet broadcasting module 320; the product device 400 comprises a broadcast data packet receiving module 421, a product firmware verification obtaining module 423 and a product firmware upgrading module 425;
the data packet broadcasting module 320 is configured to broadcast the received upgrade data packet to the product device 400 connected to the communication device 300 when it is determined that the upgrade itself is not upgraded according to the received upgrade data packet;
the broadcast packet receiving module 421, configured to receive an upgrade packet broadcasted by the packet broadcasting module 320 of the communication device 300; the upgrade data packet broadcast by the communication device 300 includes upgrade data information and a first check code of upgrade firmware corresponding to the upgrade data information;
the product firmware verification obtaining module 423 is configured to obtain, according to the received upgrade data packet, the upgrade firmware corresponding to the upgrade data information from the service platform 200, and verify the obtained upgrade firmware to obtain a second verification code;
the product firmware upgrade module 425 is configured to upgrade firmware if the first check code is identical to the second check code.
Referring to fig. 9, in one embodiment, the interaction platform 100 further includes a query instruction receiving module 110, and the service platform 200 further includes an object information returning module 230;
the query instruction receiving module 110 is configured to receive an upgrade object query instruction, and send an upgrade object query request to the service platform 200 according to the upgrade object query instruction;
the object information returning module 230 is configured to return the upgrade object information to the interactive platform 100 according to the upgrade object query request;
the configuration instruction receiving module 140 is configured to receive an upgrade configuration instruction on the basis of receiving the upgrade object information.
Because the system corresponds to the method, detailed technical features of the system are not repeated.
The above examples only show some embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that various changes and modifications can be made by those skilled in the art without departing from the spirit of the invention, and these changes and modifications are all within the scope of the invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A remote firmware upgrade control method is characterized by comprising the following steps:
the interactive platform receives an upgrading configuration instruction; the upgrading configuration instruction comprises a firmware code identifier and a version number of the upgraded firmware, upgrading completion time and the number of the firmware;
the interactive platform sends upgrading data information to the service platform according to the upgrading configuration instruction; the upgrading data information comprises a firmware code identifier and a version number of the upgrading firmware;
the service platform acquires the MAC address of the communication equipment of the target upgrading object from the service platform according to the firmware code identification and the version number in the received upgrading data information; the service platform is a server which stores firmware information of the upgraded firmware and upgrade object information;
the service platform sends an upgrading data packet to the communication equipment according to the MAC address and the upgrading data information; the upgrade data information includes: upgrade completion time, firmware quantity;
the communication equipment carries out firmware upgrading when determining to be upgraded according to the received upgrading data packet; when the firmware code identification of the current running firmware in the communication equipment is consistent with the firmware code identification in the received upgrading data packet, the communication equipment judges that the firmware is upgraded;
the communication equipment broadcasts the received upgrading data packet to product equipment connected with the communication equipment when determining that the upgrading of the communication equipment is not carried out according to the received upgrading data packet;
the product equipment receives an upgrade data packet broadcasted by the communication equipment; the upgrade data packet broadcast by the communication equipment comprises upgrade data information and a first check code of upgrade firmware corresponding to the upgrade data information;
the product equipment acquires the upgrade firmware corresponding to the upgrade data information from the service platform according to the received upgrade data packet, and verifies the acquired upgrade firmware to obtain a second check code;
and if the first check code is consistent with the second check code, the product equipment carries out firmware upgrading.
2. The remote firmware upgrade control method according to claim 1, further comprising:
after the communication equipment finishes upgrading, sending upgrading feedback information to the service platform; the upgrade feedback information comprises a firmware code identifier and a version number of the current running firmware in the communication equipment after the upgrade is finished;
and after receiving the upgrade feedback information, the service platform determines an upgrade result according to whether the firmware code identifier and the version number of the current running firmware are consistent with the firmware code identifier and the version number of the upgrade firmware, and returns the upgrade result to the interactive platform.
3. The remote firmware upgrade control method according to claim 1, wherein the step of the communication device performing firmware upgrade when it is determined to upgrade itself based on the received upgrade packet includes:
the communication equipment receives an upgrading data packet sent by the service platform; the upgrade data packet sent by the service platform comprises the upgrade data information and a third check code of upgrade firmware corresponding to the upgrade data information;
the communication equipment acquires the upgrade firmware corresponding to the upgrade data information from the service platform according to the received upgrade data packet, and verifies the acquired upgrade firmware to obtain a fourth verification code;
and if the third check code is consistent with the fourth check code, the communication equipment carries out firmware upgrading.
4. The remote firmware upgrade control method according to claim 3, wherein if the third check code is consistent with the fourth check code, the step of the communication device performing firmware upgrade includes:
if the third check code is consistent with the fourth check code, the communication equipment stores the received upgrade data packet into a temporary storage area of the communication equipment and runs the firmware in an initial running area of the communication equipment;
when the obtained upgrading firmware is the firmware for upgrading the communication equipment, the communication equipment stores the obtained upgrading firmware to an upgraded operation area in the communication equipment;
the communication equipment checks the upgrade firmware stored in the upgraded operation area to obtain a fifth check code;
and when the fifth check code is consistent with the third check code, the communication equipment stores the upgrade data packet in the temporary storage area in the communication equipment to the operation area after upgrade, and switches to the operation area after upgrade to operate.
5. The remote firmware upgrade control method according to claim 1, wherein before the step of receiving the upgrade configuration instruction by the interactive platform, the method further comprises:
the interactive platform receives an upgrading object query instruction and sends an upgrading object query request to the service platform according to the upgrading object query instruction;
the service platform returns upgrading object information to the interactive platform according to the upgrading object query request;
the step of receiving the upgrading configuration instruction by the interactive platform is that the interactive platform receives the upgrading configuration instruction on the basis of receiving the upgrading object information.
6. A remote firmware upgrade control system, comprising: the system comprises an interaction platform, a service platform and communication equipment; the interactive platform comprises a configuration instruction receiving module and an upgrade information sending module; the service platform comprises an MAC address module and an upgrading data packet sending module;
the configuration instruction receiving module is used for receiving an upgrading configuration instruction; the upgrading configuration instruction comprises a firmware code identifier and a version number of the upgrading firmware;
the upgrade information sending module is used for sending upgrade data information to the service platform according to the upgrade configuration instruction; the upgrading data information comprises a firmware code identifier and a version number of the upgrading firmware;
the MAC address module is used for acquiring the MAC address of the communication equipment of the target upgrading object from the MAC address module according to the firmware code identification and the version number in the received upgrading data information; the service platform is a server which stores firmware information of the upgraded firmware and upgrade object information;
the upgrading data packet sending module is used for sending an upgrading data packet to the communication equipment according to the MAC address and the upgrading data information; the upgrade data information includes: upgrade completion time, firmware quantity;
the communication equipment carries out firmware upgrading when determining to be upgraded according to the received upgrading data packet; when the firmware code identification of the current running firmware in the communication equipment is consistent with the firmware code identification in the received upgrading data packet, the communication equipment judges that the firmware is upgraded;
the communication device comprises a data packet broadcasting module; the product equipment comprises a broadcast data packet receiving module, a product firmware verification obtaining module and a product firmware upgrading module;
the data packet broadcasting module is used for broadcasting the received upgrading data packet to product equipment connected with the communication equipment when the received upgrading data packet is determined not to be upgraded;
the broadcast data packet receiving module is used for receiving an upgrade data packet broadcast by the data packet broadcasting module of the communication equipment; the upgrade data packet broadcast by the communication equipment comprises upgrade data information and a first check code of upgrade firmware corresponding to the upgrade data information;
the product firmware verification acquisition module is used for acquiring the upgrade firmware corresponding to the upgrade data information from the service platform according to the received upgrade data packet and verifying the acquired upgrade firmware to obtain a second verification code;
and the product firmware upgrading module is used for upgrading the firmware if the first check code is consistent with the second check code.
7. The remote firmware upgrade control system according to claim 6, wherein the communication device includes a feedback information transmission module; the service platform also comprises an upgrade result feedback module;
the feedback information sending module is used for sending upgrading feedback information to the service platform after the communication equipment is upgraded; the upgrade feedback information comprises a firmware code identifier and a version number of the current running firmware in the communication equipment after the upgrade is finished;
and the upgrade result feedback module is used for determining an upgrade result according to whether the firmware code identifier and the version number of the current running firmware are consistent with the firmware code identifier and the version number of the upgrade firmware after receiving the upgrade feedback information, and returning the upgrade result to the interactive platform.
8. The remote firmware upgrade control system according to claim 6, wherein the communication device comprises: the communication data packet receiving module, the communication firmware verifying and acquiring module and the communication firmware upgrading module are arranged in the communication data packet receiving module;
the communication data packet receiving module is used for receiving the upgrade data packet sent by the upgrade data packet sending module of the service platform; the upgrade data packet sent by the service platform comprises the upgrade data information and a third check code of upgrade firmware corresponding to the upgrade data information;
the communication firmware verification acquisition module is used for acquiring the upgrade firmware corresponding to the upgrade data information from the service platform according to the received upgrade data packet and verifying the acquired upgrade firmware to obtain a fourth verification code;
and the communication firmware upgrading module is used for upgrading the firmware if the third check code is consistent with the fourth check code.
9. The remote firmware upgrade control system according to claim 8, wherein the communication firmware upgrade module comprises: the communication data package upgrading system comprises a communication data package temporary storage unit, a communication firmware upgrading storage unit, a communication check code upgrading determination unit and a communication data package upgrading storage unit;
the communication data packet temporary storage unit is configured to store the received upgrade data packet into a temporary storage area of the communication device and operate a firmware in an initial operation area of the communication device if the third check code is consistent with the fourth check code;
the communication firmware upgrading storage unit is used for storing the obtained upgrading firmware to an upgraded operation area in the communication equipment when the obtained upgrading firmware is the firmware for upgrading the communication equipment;
the communication check code upgrading determining unit is used for verifying the upgrading firmware stored in the upgraded operation area to obtain a fifth verification code;
and the communication data packet upgrading storage unit is used for storing the upgrading data packet in the temporary storage area in the communication equipment to the operation area after upgrading and switching to the operation area after upgrading to operate when the fifth check code is consistent with the third check code.
10. The remote firmware upgrade control system according to claim 6, wherein the interaction platform further comprises a query instruction receiving module, and the service platform further comprises an object information returning module;
the query instruction receiving module is used for receiving an upgrade object query instruction and sending an upgrade object query request to the service platform according to the upgrade object query instruction;
the object information returning module is used for returning the upgrading object information to the interactive platform according to the upgrading object query request;
and the configuration instruction receiving module is used for receiving an upgrading configuration instruction on the basis of receiving the upgrading object information.
CN201611218345.XA 2016-12-26 2016-12-26 Remote firmware upgrade control method and system Active CN106681766B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611218345.XA CN106681766B (en) 2016-12-26 2016-12-26 Remote firmware upgrade control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611218345.XA CN106681766B (en) 2016-12-26 2016-12-26 Remote firmware upgrade control method and system

Publications (2)

Publication Number Publication Date
CN106681766A CN106681766A (en) 2017-05-17
CN106681766B true CN106681766B (en) 2021-04-27

Family

ID=58870688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611218345.XA Active CN106681766B (en) 2016-12-26 2016-12-26 Remote firmware upgrade control method and system

Country Status (1)

Country Link
CN (1) CN106681766B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107168750B (en) * 2017-06-08 2021-03-12 苏州浪潮智能科技有限公司 Firmware upgrade protection method and system
CN107291516B (en) * 2017-07-12 2019-10-22 珠海格力电器股份有限公司 Firmware upgrading method and system
CN107479877B (en) * 2017-07-24 2021-09-14 广东智科电子股份有限公司 Automatic upgrading method for heat pump hot water controller
CN107580040B (en) * 2017-08-29 2020-11-03 聚好看科技股份有限公司 Method and device for upgrading communication module in intelligent household terminal
CN107608701A (en) * 2017-10-20 2018-01-19 深圳市道通科技股份有限公司 A kind of method and apparatus of firmware updating
CN109358883B (en) * 2018-11-05 2021-12-24 珠海格力电器股份有限公司 Program upgrading method, system, application system and storage medium
CN109614131A (en) * 2018-12-12 2019-04-12 湖南康通电子股份有限公司 A kind of broadcasting equipment upgrading control system
CN111399874A (en) * 2020-03-05 2020-07-10 Tcl移动通信科技(宁波)有限公司 System upgrading method and device, storage medium and intelligent wearable device
CN111756574B (en) * 2020-06-19 2023-07-25 浪潮电子信息产业股份有限公司 Method, device and computer readable storage medium for remote batch updating firmware
CN114466260B (en) * 2020-11-10 2023-11-03 青岛海信宽带多媒体技术有限公司 Optical module upgrading method and optical module
CN113064612A (en) * 2021-03-19 2021-07-02 麒盛科技股份有限公司 System program upgrading method, system and storage medium for electric bed with communication unit
CN115397033B (en) * 2021-05-25 2024-04-09 成都鼎桥通信技术有限公司 Wireless communication method, wireless communication device, wireless communication module, medium, and program product
CN114697214B (en) * 2022-03-31 2023-08-15 四川虹美智能科技有限公司 System and method for realizing appointed upgrade of intelligent equipment by dynamically configuring upgrade package
CN118245092B (en) * 2024-05-28 2024-08-09 浙江正泰中自控制工程有限公司 Multi-module online upgrading method for safety control platform

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674590A (en) * 2009-09-29 2010-03-17 中兴通讯股份有限公司 Client device and remote updating method and remote updating service system thereof
CN103118198A (en) * 2013-02-05 2013-05-22 惠州Tcl移动通信有限公司 Firmware upgrading method and system for mobile terminals
CN103379142A (en) * 2012-04-17 2013-10-30 国基电子(上海)有限公司 Terminal device firmware upgrading method and system
CN103677911A (en) * 2013-12-06 2014-03-26 上海寰创通信科技股份有限公司 Mobile network equipment firmware upgrading system and method
CN103916440A (en) * 2013-01-05 2014-07-09 尼尔森网联媒介数据服务有限公司 Remote upgrade method and device
CN103957244A (en) * 2014-04-21 2014-07-30 惠州市新思为电子科技有限公司 Remote program upgrading method and server
CN104503774A (en) * 2014-11-28 2015-04-08 广东欧珀移动通信有限公司 Software debugging method, associated equipment and system
CN104579719A (en) * 2013-10-10 2015-04-29 中兴通讯股份有限公司 A method and system for updating firmware, upper computer and optical module
CN105094903A (en) * 2015-07-16 2015-11-25 广州飞米电子科技有限公司 Method and device for upgrading firmware
CN105117241A (en) * 2015-07-28 2015-12-02 努比亚技术有限公司 Firmware upgrade method and apparatus
CN105279001A (en) * 2015-11-20 2016-01-27 杭州云柚科技有限公司 Software remote upgrading method for network terminal devices

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060284763A1 (en) * 2005-02-10 2006-12-21 Homeland Integrated Security Systems Cyber Tracker
US8312448B2 (en) * 2008-06-24 2012-11-13 Sony Corporation Configuration to order software deployment and management
US20130125108A1 (en) * 2011-11-16 2013-05-16 General Electric Company System and method for upgrading firmware
CN102761481A (en) * 2012-06-29 2012-10-31 杭州华三通信技术有限公司 EVI (Ethernet Virtualization Interconnection) network based version upgrading method and device
US20150076226A1 (en) * 2013-09-13 2015-03-19 Pos Tech Solutions Llc Credit card terminal
US20150301526A1 (en) * 2014-04-16 2015-10-22 Danny Tjandra Smart Keyless Entry And Vehicle Control System
CN104636163A (en) * 2014-12-31 2015-05-20 青岛海尔科技有限公司 Firmware upgrading method and related device and system
CN105991680A (en) * 2015-01-30 2016-10-05 朔联科技(上海)有限公司 Internet of things smart device software automatic upgrading method and system
CN105591824A (en) * 2016-01-14 2016-05-18 杭州赫智电子科技有限公司 Method and system for firmware upgrade

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674590A (en) * 2009-09-29 2010-03-17 中兴通讯股份有限公司 Client device and remote updating method and remote updating service system thereof
CN103379142A (en) * 2012-04-17 2013-10-30 国基电子(上海)有限公司 Terminal device firmware upgrading method and system
CN103916440A (en) * 2013-01-05 2014-07-09 尼尔森网联媒介数据服务有限公司 Remote upgrade method and device
CN103118198A (en) * 2013-02-05 2013-05-22 惠州Tcl移动通信有限公司 Firmware upgrading method and system for mobile terminals
CN104579719A (en) * 2013-10-10 2015-04-29 中兴通讯股份有限公司 A method and system for updating firmware, upper computer and optical module
CN103677911A (en) * 2013-12-06 2014-03-26 上海寰创通信科技股份有限公司 Mobile network equipment firmware upgrading system and method
CN103957244A (en) * 2014-04-21 2014-07-30 惠州市新思为电子科技有限公司 Remote program upgrading method and server
CN104503774A (en) * 2014-11-28 2015-04-08 广东欧珀移动通信有限公司 Software debugging method, associated equipment and system
CN105094903A (en) * 2015-07-16 2015-11-25 广州飞米电子科技有限公司 Method and device for upgrading firmware
CN105117241A (en) * 2015-07-28 2015-12-02 努比亚技术有限公司 Firmware upgrade method and apparatus
CN105279001A (en) * 2015-11-20 2016-01-27 杭州云柚科技有限公司 Software remote upgrading method for network terminal devices

Also Published As

Publication number Publication date
CN106681766A (en) 2017-05-17

Similar Documents

Publication Publication Date Title
CN106681766B (en) Remote firmware upgrade control method and system
CN106648669B (en) Product equipment remote firmware upgrading method and system
CN106648781B (en) Method and system for upgrading remote firmware of communication equipment
CN108074177B (en) Data reconciliation method, system and computer-readable storage medium
CN111367545A (en) Terminal upgrading method and device, server, terminal equipment and readable storage medium
CN106020875B (en) Firmware update management method and device of embedded terminal
CN107608701A (en) A kind of method and apparatus of firmware updating
CN110727454A (en) Updating method and device of intelligent equipment, electronic equipment and storage medium
CN101091158A (en) Use loader for signaling the system software update service
CN113946358A (en) Automatic driving vehicle software remote upgrading method based on vehicle management system
CN105389177A (en) Software version confirmation method, device and system
CN107580040B (en) Method and device for upgrading communication module in intelligent household terminal
CN102855152A (en) Method and system for upgrading resource files in application programs
CN105897461A (en) Multi-system OTA upgrading method and multi-system equipment
CN106850241A (en) A kind of vehicle-mounted OBD terminals and its remote upgrade method
CN111683114A (en) Method and device for upgrading equipment program, terminal equipment and storage medium
CN109002305B (en) Method and system for updating equipment program
CN106897166A (en) A kind of mobile terminal and its restorative procedure
CN105045640A (en) Software upgrading method and device and intelligent equipment
CN105045671A (en) Method and device for upgrading systems of intelligent terminals
CN108319551B (en) Software testing method and device, computer equipment and readable storage medium
CN112788576B (en) Equipment offline processing method and system, storage medium and electronic device
CN108874410B (en) Patch management method and device
CN107659933B (en) Bidirectional pairing connection method for wireless equipment, wireless equipment and storage medium
CN112667272A (en) Ammeter upgrading method and system, intelligent ammeter and storage medium

Legal Events

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