CN111651180B - Firmware updating method and device, processor and intelligent gateway equipment - Google Patents

Firmware updating method and device, processor and intelligent gateway equipment Download PDF

Info

Publication number
CN111651180B
CN111651180B CN202010531696.6A CN202010531696A CN111651180B CN 111651180 B CN111651180 B CN 111651180B CN 202010531696 A CN202010531696 A CN 202010531696A CN 111651180 B CN111651180 B CN 111651180B
Authority
CN
China
Prior art keywords
information
firmware
updated
communication module
intelligent
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
CN202010531696.6A
Other languages
Chinese (zh)
Other versions
CN111651180A (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.)
Shanghai Mxchip Information Technology Co Ltd
Original Assignee
Shanghai Mxchip Information 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 Shanghai Mxchip Information Technology Co Ltd filed Critical Shanghai Mxchip Information Technology Co Ltd
Priority to CN202010531696.6A priority Critical patent/CN111651180B/en
Publication of CN111651180A publication Critical patent/CN111651180A/en
Application granted granted Critical
Publication of CN111651180B publication Critical patent/CN111651180B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

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)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a firmware updating method, a firmware updating device, a processor and intelligent gateway equipment. The method comprises the following steps: the method comprises the steps that firmware information to be updated is obtained from a cloud server, wherein the firmware information to be updated is used for carrying out matched updating on first firmware of a first communication module and second firmware of a second communication module in intelligent gateway equipment, the first communication module is used for wireless local area network communication, and the second communication module is used for wireless personal area network communication; and carrying out matched updating on the first firmware and the second firmware by adopting firmware information to be updated. The invention solves the technical problem that when the intelligent gateway equipment provided in the related technology is simultaneously configured with the Wi-Fi module and the BLE module, the firmware version is easy to be mismatched due to the difference of communication modes, so that the intelligent gateway equipment cannot work normally.

Description

Firmware updating method and device, processor and intelligent gateway equipment
Technical Field
The present invention relates to the field of communications, and in particular, to a firmware update method, apparatus, processor, and intelligent gateway device.
Background
Currently, wireless fidelity (Wi-Fi) modules and Bluetooth (BLE) modules are configured simultaneously in the intelligent gateway device provided in the related art. In order for the intelligent gateway device to function properly, the Wi-Fi module and BLE module configured in the intelligent gateway device need to implement version matching. For example: the intelligent gateway device can work normally only when the Firmware (FW) version of the Wi-Fi module configured in the intelligent gateway device is version 1 and the Firmware version of the BLE module configured in the intelligent gateway device is version 2. Because Wi-Fi module can communicate with the cloud server, therefore, the Wi-Fi module can update the firmware version in time. However, the BLE module cannot directly communicate with the cloud server, and therefore, the BLE module cannot update the firmware version in time. Therefore, the Wi-Fi module and the BLE module are easy to generate mismatching of firmware versions, and the intelligent gateway equipment cannot work normally. For example: the intelligent gateway device can work normally only when the firmware version of the Wi-Fi module configured in the intelligent gateway device is version 1 and the firmware version of the BLE module configured in the intelligent gateway device is version 2. However, if the Wi-Fi module is communicated with the cloud server, the firmware version is upgraded to the version 3 independently, but the BLE module cannot be directly communicated with the cloud server, so that the firmware version is still the version 2, at this time, mismatching of the firmware versions of the Wi-Fi module and the BLE module easily occurs, and the intelligent gateway device cannot work normally.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
At least some embodiments of the present invention provide a firmware update method, apparatus, processor, and intelligent gateway device, so as to at least solve the technical problem that when the intelligent gateway device provided in the related art configures a Wi-Fi module and a BLE module simultaneously, a firmware version is not matched easily due to a difference in communication modes, and thus the intelligent gateway device cannot work normally.
According to one embodiment of the present invention, there is provided a firmware updating method, including:
the method comprises the steps that firmware information to be updated is obtained from a cloud server, wherein the firmware information to be updated is used for carrying out matched updating on first firmware of a first communication module and second firmware of a second communication module in intelligent gateway equipment, the first communication module is used for wireless local area network communication, and the second communication module is used for wireless personal area network communication; and carrying out matched updating on the first firmware and the second firmware by adopting firmware information to be updated.
Optionally, performing matched update on the first firmware and the second firmware by using firmware information to be updated includes: the method comprises the steps of obtaining first part of information from firmware information to be updated, wherein the first part of information is update guide information, and the update guide information at least comprises: firmware version information and firmware size information; obtaining second part information corresponding to the first firmware and third part information corresponding to the second firmware from the firmware information to be updated through the first part information, wherein the second part information comprises: the data to be updated corresponding to the first firmware, and the third part of information comprises: the data to be updated corresponding to the second firmware; the first firmware is updated by adopting the second part of information in the first communication module, the third part of information is sent to the second communication module through the first communication module in a serial port mode, and the second firmware is updated on the second communication module.
Optionally, updating the guidance information further includes: firmware verification information, the method for carrying out matched updating on the first firmware and the second firmware by adopting the firmware information to be updated further comprises the following steps: and carrying out integrity check on the second part of information and the third part of information based on the firmware verification information.
Optionally, the first portion of information is stored and represented using a preset data interchange format, wherein the preset data interchange format is a text format independent of the programming language.
Optionally, before acquiring the firmware information to be updated, the method further includes: transmitting device authentication information to a cloud server, so that the cloud server performs authorization authentication according to the device authentication information, and transmitting firmware information to be updated to the intelligent gateway device after the authentication is passed, wherein the device authentication information is quintuple information, and the quintuple information comprises: product identification, product activation code, product key, device name, and device key.
Optionally, the intelligent gateway device is an intelligent bulb lamp, and the method further includes: and burning equipment authentication information in the intelligent bulb lamp, wherein the equipment authentication information is quintuple information, and the quintuple information comprises: product identification of the intelligent bulb lamp, product activation code of the intelligent bulb lamp, product key of the intelligent bulb lamp, equipment name of the intelligent bulb lamp and equipment key of the intelligent bulb lamp.
Optionally, the burning device authentication information in the smart bulb lamp includes one of: burning equipment authentication information in the intelligent bulb lamp through a serial port instruction; and burning the equipment authentication information in the intelligent bulb lamp through the operation code.
According to one embodiment of the present invention, there is also provided a firmware updating apparatus including:
the system comprises an acquisition module, a first communication module and a second communication module, wherein the acquisition module is used for acquiring firmware information to be updated from a cloud server, the firmware information to be updated is used for carrying out matched updating on first firmware of the first communication module and second firmware of the second communication module in the intelligent gateway equipment, the first communication module is used for wireless local area network communication, and the second communication module is used for wireless personal area network communication; and the updating module is used for carrying out matched updating on the first firmware and the second firmware by adopting the firmware information to be updated.
Optionally, the updating module includes: the first obtaining unit is configured to obtain first part of information from firmware information to be updated, where the first part of information is update guide information, and the update guide information at least includes: firmware version information and firmware size information; the second obtaining unit is configured to obtain, from the firmware information to be updated, second part information corresponding to the first firmware and third part information corresponding to the second firmware through the first part information, where the second part information includes: the data to be updated corresponding to the first firmware, and the third part of information comprises: the data to be updated corresponding to the second firmware; the updating unit is used for updating the first firmware by adopting the second part of information in the first communication module, transmitting the third part of information to the second communication module in a serial port mode through the first communication module, and updating the second firmware on the second communication module.
Optionally, updating the guidance information further includes: firmware verification information, the update module further includes: and the verification unit is used for carrying out integrity verification on the second part of information and the third part of information based on the firmware verification information.
Optionally, the first portion of information is stored and represented using a preset data interchange format, wherein the preset data interchange format is a text format independent of the programming language.
Optionally, the apparatus further includes: the authentication module is used for sending equipment authentication information to the cloud server so that the cloud server performs authorization authentication according to the equipment authentication information, and after the authentication is passed, the firmware information to be updated is issued to the intelligent gateway equipment, wherein the equipment authentication information is quintuple information, and the quintuple information comprises: product identification, product activation code, product key, device name, and device key.
Optionally, the intelligent gateway device is an intelligent bulb lamp, and the apparatus further includes: the burning module is used for burning equipment authentication information in the intelligent bulb lamp, wherein the equipment authentication information is quintuple information, and the quintuple information comprises: product identification of the intelligent bulb lamp, product activation code of the intelligent bulb lamp, product key of the intelligent bulb lamp, equipment name of the intelligent bulb lamp and equipment key of the intelligent bulb lamp.
Optionally, the burning module is configured to burn, in the smart bulb lamp, the device authentication information including one of: burning equipment authentication information in the intelligent bulb lamp through a serial port instruction; and burning the equipment authentication information in the intelligent bulb lamp through the operation code.
According to one embodiment of the present invention, there is also provided a non-volatile storage medium in which a computer program is stored, wherein the computer program is arranged to perform the firmware update method of any one of the above when run.
According to an embodiment of the present invention, there is also provided a processor for running a program, wherein the program is configured to execute the firmware update method in any one of the above-mentioned claims at run-time.
According to one embodiment of the present invention, there is also provided an intelligent gateway device including a memory having a computer program stored therein and a processor configured to run the computer program to perform the firmware update method of any one of the above.
In at least some embodiments of the present invention, firmware information to be updated is obtained from a cloud server, where the firmware information to be updated is used to update a first firmware of a first communication module in an intelligent gateway device and a second firmware of a second communication module, where the first communication module is used for wireless local area network communication, and the second communication module is used for wireless personal area network communication, where the first firmware and the second firmware are updated in a matching manner by the firmware information to be updated, so as to achieve the purpose of real-time matching update for a plurality of communication modules configured in the intelligent gateway device at the same time, thereby facilitating version matching of a plurality of communication modules configured in the intelligent gateway device at the same time, ensuring a technical effect of normal operation of the intelligent gateway device, and further solving the technical problem that the intelligent gateway device provided in the related art cannot operate normally because firmware versions are not matched easily due to a difference in communication mode when the intelligent gateway device is configured with Wi-Fi modules and BLE modules at the same time.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a schematic deployment diagram of a firmware update system according to one embodiment of the present invention;
FIG. 2 is a flow chart of a firmware update method according to one embodiment of the invention;
FIG. 3 is a block diagram of a firmware update apparatus according to one embodiment of the present invention;
fig. 4 is a block diagram of a firmware update apparatus according to an alternative embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one embodiment of the present invention, there is provided an embodiment of a firmware update method, it being noted that the steps shown in the flowchart of the figures may be performed in a computer system such as a set of computer executable instructions, and, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order other than that shown or described herein.
The method embodiment may be performed in a firmware update system. FIG. 1 is a schematic diagram of a firmware update system deployment according to an embodiment of the present invention. As shown in fig. 1, the system includes: mobile terminal, high in the clouds server and intelligent gateway equipment. The intelligent gateway equipment is provided with a first communication module and a second communication module at the same time. The first communication module (e.g., wi-Fi module) is used for wireless local area network communication, and the second communication module (e.g., BLE module) is used for wireless personal area network communication.
The mobile terminal may be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palm computer, a mobile internet device (Mobile Internet Devices, abbreviated as MID), a PAD, etc.
A mobile terminal may include one or more processors (which may include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processor (GPU), a Digital Signal Processing (DSP) chip, a Microprocessor (MCU), a programmable logic device (FPGA), a neural Network Processor (NPU), a Tensor Processor (TPU), an Artificial Intelligence (AI) type processor, etc.) and a memory for storing data. Optionally, the mobile terminal may further include a transmission device, an input/output device, and a display device for a communication function. It will be appreciated by those of ordinary skill in the art that the foregoing structural descriptions are merely illustrative and are not intended to limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than the above structural description, or have a different configuration than the above structural description.
The memory may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to the firmware update method in the embodiment of the present invention, and the processor executes the computer program stored in the memory, thereby performing various functional applications and data processing, that is, implementing the firmware update method described above. The memory may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory may further include memory remotely located with respect to the processor, the remote memory being connectable to the mobile terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through the base station to communicate with the internet. In one example, the transmission device may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
Display devices may be, for example, touch screen type Liquid Crystal Displays (LCDs) and touch displays (also referred to as "touch screens" or "touch display screens"). The liquid crystal display may enable a user to interact with a user interface of the mobile terminal. In some embodiments, the mobile terminal has a Graphical User Interface (GUI), and the user may interact with the GUI by touching finger contacts and/or gestures on the touch-sensitive surface, where the man-machine interaction functions optionally include the following interactions: executable instructions for performing the above-described human-machine interaction functions, such as creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, sending and receiving electronic mail, talking interfaces, playing digital video, playing digital music, and/or web browsing, are configured/stored in a computer program product or readable storage medium executable by one or more processors.
The intelligent gateway device may include one or more processors (which may include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processor (GPU), a Digital Signal Processing (DSP) chip, a Microprocessor (MCU), a programmable logic device (FPGA), a neural Network Processor (NPU), a Tensor Processor (TPU), an Artificial Intelligence (AI) type processor, etc.) and a memory for storing data. Optionally, the intelligent gateway device may further include a transmission device for communication functions, an input/output device, a power supply component (e.g., a stand-alone power supply), and a light emitting component (e.g., an illumination lamp). It will be appreciated by those of ordinary skill in the art that the above description of the structure is merely illustrative, and is not intended to limit the structure of the intelligent gateway device. For example, the intelligent gateway device may also include more or fewer components than the above-described structural descriptions, or have a different configuration than the above-described structural descriptions.
The memory may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to the firmware update method in the embodiment of the present invention, and the processor executes the computer program stored in the memory, thereby performing various functional applications and data processing, that is, implementing the firmware update method described above. The memory may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory may further include memory remotely located with respect to the processor, the remote memory being connectable to the intelligent gateway device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device is used for receiving or transmitting data via a network. In one example, the transmission device includes a Wi-Fi module and a BLE module, and the intelligent gateway device processed by the distribution network becomes a part of a Mesh (Mesh) network, i.e., a node. Mesh networks belong to the Many-to-Many (Many to Many) network. Each node may communicate freely with the rest of the nodes in the network. In the network topology, a plurality of nodes can relay (relay) received messages (messages), so that the communication distance of end-to-end communication can be enlarged. In one example, the intelligent gateway device may be a gateway device with a gateway function alone, or may be other types of intelligent devices with additional gateway functions based on an initial service function, so as to implement gateway generalization.
The generalization of the gateway refers to embedding a module with gateway functions into any intelligent device capable of supplying power normally, so that the intelligent device is newly added with gateway functions based on the original functions. Taking an intelligent bulb lamp as an example, an initial service function is to provide a lighting function, and a gateway module is added to the intelligent bulb lamp so that the intelligent bulb lamp becomes gateway equipment.
It should be noted that, the gateway module can be inserted into the intelligent gateway device through the peripheral interface of the intelligent device, or the gateway module can be embedded into the intelligent gateway device in advance in the production process of the intelligent device.
In this embodiment, a firmware updating method is provided, and fig. 2 is a flowchart of a firmware updating method according to an embodiment of the present invention, as shown in fig. 2, and the method includes the following steps:
step S22, firmware information to be updated is obtained from a cloud server, wherein the firmware information to be updated is used for carrying out matched updating on a first firmware of a first communication module and a second firmware of a second communication module in the intelligent gateway equipment, the first communication module is used for wireless local area network communication, and the second communication module is used for wireless personal area network communication;
And step S24, the first firmware and the second firmware are updated in a matched mode by adopting firmware information to be updated.
Through the steps, the firmware information to be updated can be obtained from the cloud server and used for carrying out matched updating on the first firmware of the first communication module and the second firmware of the second communication module in the intelligent gateway equipment, the first communication module is used for wireless local area network communication, the second communication module is used for carrying out matched updating on the first firmware and the second firmware through the firmware information to be updated, the purpose of carrying out real-time matched updating on a plurality of communication modules configured in the intelligent gateway equipment at the same time is achieved, the purpose of matching versions of the plurality of communication modules configured in the intelligent gateway equipment at the same time is facilitated, the technical effect of normal operation of the intelligent gateway equipment is ensured, and the technical problem that the intelligent gateway equipment cannot normally operate due to mismatching of firmware versions caused by difference of communication modes when the Wi-Fi module and the BLE module are configured in the same time is solved.
The first communication module may be a Wi-Fi module, and the second communication module may be a BLE module. The intelligent gateway device can be gateway device with gateway function only, or other intelligent devices with additional gateway function based on initial service function to realize gateway generalization. The generalization of the gateway refers to embedding a module with gateway functions into any intelligent device capable of supplying power normally, so that the intelligent device is newly added with gateway functions based on the original functions. Taking an intelligent bulb lamp as an example, an initial service function is to provide a lighting function, and a gateway module is added to the intelligent bulb lamp so that the intelligent bulb lamp becomes gateway equipment.
It should be noted that, the gateway module can be inserted into the intelligent gateway device through the peripheral interface of the intelligent device, or the gateway module can be embedded into the intelligent gateway device in advance in the production process of the intelligent device.
Optionally, in step S24, the performing the matched update on the first firmware and the second firmware with the firmware information to be updated may include the following performing steps:
step S241, acquiring first part of information from the firmware information to be updated, where the first part of information is update guide information, and the update guide information at least includes: firmware version information and firmware size information;
step S242, obtaining second part information corresponding to the first firmware and third part information corresponding to the second firmware from the firmware information to be updated through the first part information, where the second part information includes: the data to be updated corresponding to the first firmware, and the third part of information comprises: the data to be updated corresponding to the second firmware;
step S243, the first firmware is updated by the second part of information in the first communication module, and the third part of information is sent to the second communication module through the serial port mode by the first communication module, and the second firmware is updated on the second communication module.
The firmware information to be updated may include: the first partial information, the second partial information, and the third partial information. Some of the information is update guide information, and the update guide information at least includes: firmware Version (Version) information and firmware Size (Size) information. The second part of information comprises data to be updated (i.e. Wi-Fi FW update data) corresponding to the first firmware. The third portion of information includes data to be updated (i.e., BLE FW update data) corresponding to the second firmware.
In an alternative embodiment, the intelligent gateway device may obtain update guide information from the firmware information to be updated, so as to obtain firmware version information and firmware size information of the Wi-Fi module, which need to be updated in a matched manner, and firmware version information and firmware size information of the BLE module. For example: the firmware Version information of the Wi-Fi module is V0.1.1, the firmware Size information is 898256KB, and the firmware Version information of the BLE module is V0.1.1, and the firmware Size information is 110848KB. Therefore, the intelligent gateway device can acquire Wi-Fi FW update data from the firmware information to be updated through the firmware version information and the firmware size information of the Wi-Fi module, and acquire BLE FW update data from the firmware information to be updated through the firmware version information and the firmware size information of the BLE module. Then, the intelligent gateway device updates the first firmware by adopting Wi-Fi FW update data in the Wi-Fi module, sends BLE FW update data to the BLE module in a serial port mode through the Wi-Fi module, and updates the second firmware on the BLE module.
Optionally, the updating the guiding information may further include: in step S24, the performing the matched update on the first firmware and the second firmware by using the firmware information to be updated may further include the following execution steps:
step S244 performs integrity check on the second part information and the third part information based on the firmware check information.
The firmware verification information may be Cyclic Redundancy Check (CRC) information. The intelligent gateway device may obtain the CRC information from the firmware information to be updated, and then perform integrity check on Wi-Fi FW update data and BLE FW update data according to the CRC information, respectively. If the verification fails, the intelligent gateway equipment needs to download the firmware information to be updated from the cloud server again. If the verification is successful, the intelligent gateway device updates the first firmware by adopting Wi-Fi FW update data in the Wi-Fi module, sends BLE FW update data to the BLE module in a serial port mode through the Wi-Fi module, and updates the second firmware on the BLE module.
Optionally, the first portion of information is stored and represented using a preset data interchange format, wherein the preset data interchange format is a text format independent of the programming language.
If the first portion of information is to be stored on the intelligent gateway device, the first portion of information may be stored in either hexadecimal format or Type Length Value (TLV) format. However, these formats may impose limitations on the scalability and readability of the first portion of information. For this purpose, in an alternative embodiment, the preset data exchange format may be JSON format. In one alternative example, the first portion of information is stored and represented in the JSON format as follows:
if the update guide information further includes CRC information, the first portion information is stored and represented in the JSON format as follows:
note that, since JSON is generally expressed as an ASCII code string, the first partial information may use '\x00' as an ending symbol.
Optionally, before the firmware information to be updated is acquired in step S22, the following steps may be performed:
step S21, sending device authentication information to a cloud server to enable the cloud server to conduct authorization authentication according to the device authentication information, and after the authentication is passed, issuing firmware information to be updated to the intelligent gateway device, wherein the device authentication information is quintuple information, and the quintuple information comprises: product identification, product activation code, product key, device name, and device key.
The five-tuple information may include: product identification (Product ID), product activation code (Product Key), product Key (Product Secret), device Name (Device Name), and Device Key (Device Secret).
Each Product type will typically be assigned a corresponding Product ID, product Key, and Product Secret. The Product Key is a globally unique activation code issued by the Internet of things platform for the Product. The Product ID is a globally unique identifier issued by the Internet of things platform for the Product, and is used for identifying the type of the Product when Bluetooth distribution is performed. The Product Secret is a Product Key issued by the internet of things platform, typically occurring in pairs with the Product Key.
In addition, each intelligent gateway Device will also be assigned a Device Name and a Device Secret. The Device Name is a Device Name which is custom or generated by a system when registering a Device, and has uniqueness in a product dimension. Device Secret is a Device key issued by the internet of things platform for a Device, typically occurring in pairs with the Device Name.
The intelligent gateway device sends device authentication information (namely five-tuple information) to the cloud server, so that the cloud server performs authorization authentication according to the device authentication information, and after the authentication is passed, firmware information to be updated is issued to the intelligent gateway device.
Optionally, the intelligent gateway device is an intelligent bulb lamp, and the method may further include the following implementation steps:
step S20, burning equipment authentication information in the intelligent bulb lamp, wherein the equipment authentication information is quintuple information, and the quintuple information comprises: product identification of the intelligent bulb lamp, product activation code of the intelligent bulb lamp, product key of the intelligent bulb lamp, equipment name of the intelligent bulb lamp and equipment key of the intelligent bulb lamp.
When the intelligent gateway Device is an intelligent bulb lamp, the five-tuple information can be further expressed as a Product ID of the intelligent bulb lamp, a Product Key of the intelligent bulb lamp, a Product Secret of the intelligent bulb lamp, a Device Name of the intelligent bulb lamp, and a Device Secret of the intelligent bulb lamp.
In an alternative example, the five-tuple information described above is represented as follows:
(1)Product ID:3808464;
(2)Product Key:a1EGL47QzMN;
(3)Product Secret:n5BmQruIExjSdUYj;
(4)Device Secret:dTVdBg08K0ZQtjt3dNDCOcNB7xbuVsGA;
(5)Device Name:test_01。
optionally, in step S20, the burning device authentication information in the smart bulb lamp includes one of the following ways:
the first mode is that equipment authentication information is burnt in the intelligent bulb lamp through a serial port instruction;
the device authentication information can be burnt in the intelligent bulb lamp through the serial port instruction. For example:
serial port instruction 1 (linkkey 1) 3808464a1EGL47QzMN n5BmQruIExjSdUYj;
Serial port instruction 2 (linkkey 2) is dTVdBg08K0ZQtjt3dNDCOcNB7xbuVsGA test_01;
and serial port instructions need to be sequentially sent, namely, linkkey1 is sent first, and then linkkey2 is sent, so that the five-tuple information is burnt in the intelligent bulb lamp.
And secondly, burning equipment authentication information in the intelligent bulb lamp through the operation code.
If the intelligent bulb lamp cannot burn the equipment authentication information through the serial port instruction, the five-tuple information can be burnt to the intelligent bulb lamp through an operation code (opcode) on the mobile terminal. Specifically, first five-tuple information can be filled into a tool input box by running a string-to-hexadecimal (hex) tool on the mobile terminal in the following format, with spaces as separators. Secondly, adding the intelligent bulb lamp into a mesh network by using nrf mesh, and establishing a binding relation between an app key and a vendor model. Then, entering a vendor model setting interface on the mobile terminal, and inputting an opcode and converted five-tuple hex data. Finally, if the setting is successful, the intelligent bulb lamp returns five-tuple information to the vendor model setting interface. When the five-tuple information is checked without any error, the five-tuple information is successfully burnt to the intelligent bulb lamp.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiment also provides a firmware updating apparatus, which is used for implementing the above embodiment and the preferred implementation, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 3 is a block diagram of a firmware update apparatus according to one embodiment of the present invention, as shown in fig. 3, the apparatus includes: the acquiring module 10 is configured to acquire firmware information to be updated from the cloud server, where the firmware information to be updated is used to update a first firmware of a first communication module in the intelligent gateway device and a second firmware of a second communication module in the intelligent gateway device in a matching way, the first communication module is used for wireless local area network communication, and the second communication module is used for wireless personal area network communication; and the updating module 20 is used for carrying out matched updating on the first firmware and the second firmware by adopting the firmware information to be updated.
Optionally, the updating module 20 includes: a first obtaining unit (not shown in the figure) configured to obtain first part of information from firmware information to be updated, where the first part of information is update boot information, and the update boot information at least includes: firmware version information and firmware size information; a second obtaining unit (not shown in the figure) configured to obtain, from the firmware information to be updated, second part information corresponding to the first firmware and third part information corresponding to the second firmware through the first part information, where the second part information includes: the data to be updated corresponding to the first firmware, and the third part of information comprises: the data to be updated corresponding to the second firmware; and the updating unit (not shown in the figure) is used for updating the first firmware by adopting the second part of information in the first communication module, sending the third part of information to the second communication module in a serial port mode through the first communication module, and updating the second firmware on the second communication module.
Optionally, updating the guidance information further includes: firmware verification information, the update module 20 further includes: a verification unit (not shown in the figure) for performing integrity verification on the second part information and the third part information based on the firmware verification information.
Optionally, the first portion of information is stored and represented using a preset data interchange format, wherein the preset data interchange format is a text format independent of the programming language.
Optionally, fig. 4 is a block diagram of a firmware updating apparatus according to an alternative embodiment of the present invention, as shown in fig. 4, where the apparatus includes, in addition to all the modules shown in fig. 3: the authentication module 30 is configured to send device authentication information to the cloud server, so that the cloud server performs authorization authentication according to the device authentication information, and sends firmware information to be updated to the intelligent gateway device after the authentication is passed, where the device authentication information is quintuple information, and the quintuple information includes: product identification, product activation code, product key, device name, and device key.
Optionally, the intelligent gateway device is an intelligent bulb lamp, as shown in fig. 4, and the apparatus includes, in addition to all the modules shown in fig. 3, the apparatus further includes: the burning module 40 is configured to burn device authentication information in the intelligent bulb lamp, where the device authentication information is quintuple information, and the quintuple information includes: product identification of the intelligent bulb lamp, product activation code of the intelligent bulb lamp, product key of the intelligent bulb lamp, equipment name of the intelligent bulb lamp and equipment key of the intelligent bulb lamp.
Optionally, the burning module 40 is configured to burn, in the smart bulb, the device authentication information including one of the following: burning equipment authentication information in the intelligent bulb lamp through a serial port instruction; and burning the equipment authentication information in the intelligent bulb lamp through the operation code.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
An embodiment of the invention also provides a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s1, firmware information to be updated is obtained from a cloud server, wherein the firmware information to be updated is used for carrying out matched updating on first firmware of a first communication module and second firmware of a second communication module in intelligent gateway equipment, the first communication module is used for wireless local area network communication, and the second communication module is used for wireless personal area network communication;
S2, carrying out matched updating on the first firmware and the second firmware by adopting firmware information to be updated.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, firmware information to be updated is obtained from a cloud server, wherein the firmware information to be updated is used for carrying out matched updating on first firmware of a first communication module and second firmware of a second communication module in intelligent gateway equipment, the first communication module is used for wireless local area network communication, and the second communication module is used for wireless personal area network communication;
s2, carrying out matched updating on the first firmware and the second firmware by adopting firmware information to be updated.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (15)

1. A firmware update method, comprising:
the method comprises the steps that firmware information to be updated is obtained from a cloud server, wherein the firmware information to be updated is used for carrying out matched updating on first firmware of a first communication module and second firmware of a second communication module in intelligent gateway equipment, the first communication module is used for wireless local area network communication, and the second communication module is used for wireless personal area network communication;
matching and updating the first firmware and the second firmware by adopting the firmware information to be updated;
the method for carrying out matched updating on the first firmware and the second firmware by adopting the firmware information to be updated comprises the following steps: acquiring first part of information from the firmware information to be updated, wherein the first part of information is update guide information, and the update guide information at least comprises: firmware version information and firmware size information of the first firmware, and firmware version information and firmware size information of the second firmware which are matched; acquiring second part information corresponding to the first firmware and third part information corresponding to the second firmware from the firmware information to be updated through the first part information, wherein the second part information comprises: the data to be updated corresponding to the first firmware, and the third part of information includes: the data to be updated corresponding to the second firmware; and updating the first firmware by adopting the second part of information in the first communication module, transmitting the third part of information to the second communication module through the first communication module in a serial port mode, and updating the second firmware on the second communication module.
2. The method of claim 1, wherein updating the guidance information further comprises: firmware verification information, the firmware information to be updated is adopted to update the first firmware and the second firmware in a matching way, and the method further comprises the following steps:
and carrying out integrity check on the second part information and the third part information based on the firmware check information.
3. The method of claim 1, wherein the first portion of information is stored and represented in a pre-set data exchange format, wherein the pre-set data exchange format is a text format that is independent of a programming language.
4. The method of claim 1, further comprising, prior to acquiring the firmware information to be updated:
transmitting device authentication information to the cloud server, so that the cloud server performs authorization authentication according to the device authentication information, and transmits the firmware information to be updated to the intelligent gateway device after the authentication is passed, wherein the device authentication information is quintuple information, and the quintuple information comprises: product identification, product activation code, product key, device name, and device key.
5. The method of claim 1, wherein the intelligent gateway device is a smart bulb lamp, the method further comprising:
burning equipment authentication information in the intelligent bulb lamp, wherein the equipment authentication information is quintuple information, and the quintuple information comprises: the product identification of the intelligent bulb lamp, the product activation code of the intelligent bulb lamp, the product key of the intelligent bulb lamp, the equipment name of the intelligent bulb lamp and the equipment key of the intelligent bulb lamp.
6. The method of claim 5, wherein burning the device authentication information in the smart bubble lamp comprises one of:
burning the equipment authentication information in the intelligent bulb lamp through a serial port instruction;
and burning the equipment authentication information in the intelligent bulb lamp through an operation code.
7. A firmware updating apparatus, comprising:
the system comprises an acquisition module, a first communication module and a second communication module, wherein the acquisition module is used for acquiring firmware information to be updated from a cloud server, the firmware information to be updated is used for carrying out matched updating on first firmware of the first communication module and second firmware of the second communication module in the intelligent gateway equipment, the first communication module is used for wireless local area network communication, and the second communication module is used for wireless personal area network communication;
The updating module is used for carrying out matched updating on the first firmware and the second firmware by adopting the firmware information to be updated;
wherein the update module comprises: a first obtaining unit, configured to obtain first part of information from the firmware information to be updated, where the first part of information is update guide information, and the update guide information at least includes: firmware version information and firmware size information of the first firmware, and firmware version information and firmware size information of the second firmware which are matched; a second obtaining unit, configured to obtain, from the firmware information to be updated, second portion information corresponding to the first firmware and third portion information corresponding to the second firmware through the first portion information, where the second portion information includes: the data to be updated corresponding to the first firmware, and the third part of information includes: the data to be updated corresponding to the second firmware; and the updating unit is used for updating the first firmware by adopting the second part of information in the first communication module, transmitting the third part of information to the second communication module in a serial port mode through the first communication module, and updating the second firmware on the second communication module.
8. The apparatus of claim 7, wherein the update-guide information further comprises: firmware verification information, the update module further comprising:
and the verification unit is used for carrying out integrity verification on the second part information and the third part information based on the firmware verification information.
9. The apparatus of claim 7, wherein the first portion of information is stored and represented in a pre-set data exchange format, wherein the pre-set data exchange format is a text format that is independent of a programming language.
10. The apparatus of claim 7, wherein the apparatus further comprises:
the authentication module is used for sending equipment authentication information to the cloud server so that the cloud server performs authorization authentication according to the equipment authentication information, and after the authentication is passed, the firmware information to be updated is issued to the intelligent gateway equipment, the equipment authentication information is quintuple information, and the quintuple information comprises: product identification, product activation code, product key, device name, and device key.
11. The apparatus of claim 7, wherein the intelligent gateway device is a smart bulb lamp, the apparatus further comprising:
The burning module is used for burning equipment authentication information in the intelligent bulb lamp, wherein the equipment authentication information is quintuple information, and the quintuple information comprises: the product identification of the intelligent bulb lamp, the product activation code of the intelligent bulb lamp, the product key of the intelligent bulb lamp, the equipment name of the intelligent bulb lamp and the equipment key of the intelligent bulb lamp.
12. The apparatus of claim 11, wherein the means for burning the device authentication information in the smart bulb lamp comprises one of: burning the equipment authentication information in the intelligent bulb lamp through a serial port instruction; and burning the equipment authentication information in the intelligent bulb lamp through an operation code.
13. A non-volatile storage medium, characterized in that a computer program is stored in the storage medium, wherein the computer program is arranged to execute the firmware update method of any of claims 1 to 6 at run-time.
14. A processor, characterized in that the processor is arranged to run a program, wherein the program is arranged to execute the firmware update method of any of the claims 1 to 6 at run-time.
15. An intelligent gateway device comprising a memory and a processor, wherein the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the firmware update method of any of claims 1 to 6.
CN202010531696.6A 2020-06-11 2020-06-11 Firmware updating method and device, processor and intelligent gateway equipment Active CN111651180B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010531696.6A CN111651180B (en) 2020-06-11 2020-06-11 Firmware updating method and device, processor and intelligent gateway equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010531696.6A CN111651180B (en) 2020-06-11 2020-06-11 Firmware updating method and device, processor and intelligent gateway equipment

Publications (2)

Publication Number Publication Date
CN111651180A CN111651180A (en) 2020-09-11
CN111651180B true CN111651180B (en) 2024-03-26

Family

ID=72347661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010531696.6A Active CN111651180B (en) 2020-06-11 2020-06-11 Firmware updating method and device, processor and intelligent gateway equipment

Country Status (1)

Country Link
CN (1) CN111651180B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112445502A (en) * 2020-12-02 2021-03-05 深圳小窝科技有限公司 Cloud management general module assembling and testing method
CN114679382A (en) * 2020-12-24 2022-06-28 华为技术有限公司 Method and communication device for updating intelligent assembly
CN114816488B (en) * 2022-06-27 2022-09-09 深圳市物语智联科技有限公司 Smart kitchen synchronous updating method and device, electronic equipment and storage medium
CN115296948A (en) * 2022-06-28 2022-11-04 青岛海尔科技有限公司 Scene information updating method and device, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105743697A (en) * 2016-01-27 2016-07-06 四川长虹电器股份有限公司 Bluetooth gateway firmware upgrading method
KR20180050001A (en) * 2016-11-04 2018-05-14 김형만 Firmware upgrade system and method for IoT
CN110175042A (en) * 2019-06-04 2019-08-27 深圳云里物里科技股份有限公司 A kind of firmware upgrade method, device and its relevant device
CN110704080A (en) * 2019-09-17 2020-01-17 厦门市思芯微科技有限公司 Method for upgrading Bluetooth module through Wi-Fi module

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105743697A (en) * 2016-01-27 2016-07-06 四川长虹电器股份有限公司 Bluetooth gateway firmware upgrading method
KR20180050001A (en) * 2016-11-04 2018-05-14 김형만 Firmware upgrade system and method for IoT
CN110175042A (en) * 2019-06-04 2019-08-27 深圳云里物里科技股份有限公司 A kind of firmware upgrade method, device and its relevant device
CN110704080A (en) * 2019-09-17 2020-01-17 厦门市思芯微科技有限公司 Method for upgrading Bluetooth module through Wi-Fi module

Also Published As

Publication number Publication date
CN111651180A (en) 2020-09-11

Similar Documents

Publication Publication Date Title
CN111651180B (en) Firmware updating method and device, processor and intelligent gateway equipment
CN107589952A (en) Intelligent upgrade method, device and system
CN107783777A (en) A kind of upgrade method, equipment and the system of vehicle-mounted integral machine
CN108446128A (en) A kind of method for upgrading software and device
CN104199706A (en) Firmware upgrade method and device for eMMC
CN110875850B (en) Firmware upgrading method and system, readable storage medium and terminal equipment
CN109656597A (en) Firmware upgrade method, device and computer readable storage medium
CN107078806B (en) The programmed method and operating method and electric interfaces equipment of optical transceiver
US10684842B2 (en) Portable electronic device and data updating method
CN105765533A (en) Method and apparatus for firmware virtualization
CN106796633A (en) Equipment authentication method, device, electronic equipment and slave unit
EP3410753B1 (en) Wireless communication apparatus and communication system
CN111683372B (en) Attribute information processing method, attribute information processing device, processor and terminal
CN104780058A (en) Electronic equipment configuration method and system
WO2015117522A1 (en) Parameter configuration data processing method and device, and parameter configuration method and device
CN106569843A (en) Method and device for generating OTA central package
CN105072212B (en) To code method and to code system
CN110083375A (en) A kind of equipment room interaction carries out the method and device of OTA upgrading
CN106789236B (en) A method of the FOTA remote online upgrading of fusion WiFiP2P
CN104735641B (en) The method and device of parameter configuration is carried out based on double data rate DDR register
CN108108173A (en) A kind of information processing method and device
CN109670062A (en) A kind of three dimensional resource management method and device
CN115016823A (en) Target software upgrading method, device, electronic equipment, medium and program product
CN105530542B (en) The method and module TV of module TV upgrading
CN113568646A (en) Novel portable program upgrading method

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