Search

CN-122001763-A - Method for supporting multi-protocol firmware upgrade

CN122001763ACN 122001763 ACN122001763 ACN 122001763ACN-122001763-A

Abstract

The invention discloses a method for supporting multi-protocol firmware upgrade, which relates to the technical field of intelligent equipment of the Internet of things, and comprises the specific steps of file package generation and issuing, adaptation degree calculation and association establishment, upgrade strategy matching, transmission data volume calculation, upgrade evaluation and closed loop; according to the method, the system and the device, through a firmware upgrading technology supporting multiple protocols, the efficiency and the flexibility of firmware upgrading are improved, all intelligent device information accessed by a target home gateway is collected by utilizing a cloud server, a standardized upgrading file packet is generated, the purposes of one-time generation and multiple device application are achieved, meanwhile, the upgrading file packet is intelligently analyzed by the home gateway, the multiple protocol adaptation degree is calculated, and an association mapping table of device-protocol type-corresponding firmware data is established, so that corresponding upgrading strategies are matched for different intelligent devices, and the intelligent upgrading strategy matching mechanism reduces manual intervention, greatly improves the upgrading efficiency, and enables the firmware to be more flexible and efficient.

Inventors

  • LV GAOXIANG
  • LV JIANYAN

Assignees

  • 南京观海微电子有限公司

Dates

Publication Date
20260508
Application Date
20260209

Claims (9)

  1. 1. A method for supporting multi-protocol firmware upgrade is characterized by comprising the following specific steps: Collecting all intelligent equipment information accessed by a target home gateway through a cloud server, generating a standardized upgrade file packet, and sending the standardized upgrade file packet to the home gateway through a transmission channel; The method comprises the steps of carrying out analysis and data classification after a home gateway receives an upgrade file packet, initiating equipment detection requests to all access ports, establishing short-term communication connection with each intelligent equipment, obtaining unique fingerprint characteristics of the intelligent equipment, matching equipment identification information in the upgrade file packet through calculation of multi-protocol adaptation degree of the upgrade file packet, and establishing an association mapping table of equipment-protocol type-corresponding firmware data; The home gateway matches two strategies of full upgrade and differential upgrade for the wired intelligent equipment and matches a differential upgrade strategy for the wireless intelligent equipment through calculation of an intelligent selection index of the upgrade strategy according to the association mapping table and the communication protocol type and the connection mode of the intelligent equipment; After determining the upgrade strategy of each intelligent device, the home gateway firstly calculates the effective transmission data quantity, then sends an upgrade instruction to each intelligent device, simultaneously transmits corresponding data, and after receiving the upgrade instruction, the target device only keeps the core unit to operate and then starts the firmware upgrade operation; And (3) upgrading evaluation and closed loop, namely feeding back upgrading state information to the home gateway in real time by each intelligent device, obtaining an upgrading judging result by the home gateway through calculating the upgrading success rate, classifying and summarizing according to the communication protocol type, generating an upgrading log, uploading the upgrading log to a cloud server, and marking abnormal intelligent devices through the cloud server.
  2. 2. The method for supporting multi-protocol firmware upgrading according to claim 1, wherein in the generation and issuing of the file package, the intelligent device information comprises a communication protocol type, a current firmware version number, a device model number and hardware parameters of the intelligent device, the standardized upgrading file package comprises full-quantity firmware data, differential firmware data, device identification information, a data check code and an upgrading flow description required by various protocol devices, a unique identifier of a home gateway is a gateway MAC address, and the cloud server achieves directional issuing of the upgrading file package according to the unique identifier.
  3. 3. The method for supporting multi-protocol firmware upgrading according to claim 1, wherein in the matching degree calculation and association establishment, unique fingerprint features of the intelligent device comprise a device model, a currently used communication protocol type, a currently operated firmware version number and a device factory number, the multi-protocol adaptation degree of an upgrading file packet is calculated through an upgrading file packet multi-protocol adaptation degree formula, and an association mapping table is established in the establishment process of the association mapping table by comparing the unique fingerprint features of the intelligent device with device identification information in the upgrading file packet after analysis one by one, so that a one-to-one correspondence relation between the device, the protocol type and corresponding firmware data is formed.
  4. 4. The method for supporting multi-protocol firmware upgrade according to claim 1, wherein in the adaptation computation and association establishment, an upgrade package multi-protocol adaptation formula is: , wherein, In order to upgrade the multi-protocol adaptation of the file package, A value is matched for the device i-th fingerprint feature, The adaptation weight for the i-th type of communication protocol, the preset constant, For the difference value of the current firmware version and the target version of the intelligent device, Is the maximum version span supported; When the multi-protocol adaptation degree of the file packet is updated And when the upgrade file package is matched with the target intelligent equipment, judging that the upgrade file package is qualified.
  5. 5. The method for supporting multiple protocol firmware upgrades according to claim 1, wherein in said upgrade policy matching, the upgrade policy intelligent selection index is calculated by an upgrade policy intelligent selection index formula, and the upgrade policy intelligent selection index formula is: , wherein, The index is intelligently selected for the upgrade strategy, In order to upgrade the multi-protocol adaptation of the file package, The stability coefficient is connected for the intelligent device, Priority coefficients for the upgrade policies; For wired intelligent devices, when an upgrade strategy intelligently selects an index When the differential upgrade strategy is matched, the index is intelligently selected when the upgrade strategy is matched And matching the full upgrade strategy.
  6. 6. The method for supporting multiple protocol firmware upgrades according to claim 1, wherein in the transmission data amount calculation, the effective transmission data amount is calculated by an effective transmission data amount optimization formula, and the effective transmission data amount optimization formula is: , wherein, For the effective amount of data to be actually transmitted, For the full firmware size of the target version, Is the duty cycle of the differential data, Is the transmission loss factor.
  7. 7. The method for supporting multi-protocol firmware upgrading according to claim 1, wherein in the calculation of the transmission data quantity, the upgrading instruction comprises a policy identifier and an effective transmission data quantity, the specific steps of transmitting corresponding data and check codes are that the home gateway transmits complete firmware data to the wired intelligent device matched with the full-quantity upgrading and transmits differential firmware data to the wired intelligent device matched with the differential upgrading and the wireless intelligent device, and the core unit of the target device comprises a communication unit, a firmware storage unit, an upgrading control unit and a power management unit.
  8. 8. The method for supporting multi-protocol firmware upgrade according to claim 1, wherein in the upgrade evaluation and closed loop, the upgrade success rate is calculated by an upgrade success rate closed loop evaluation formula, and the upgrade success rate closed loop evaluation formula is: , wherein, In order to upgrade the success rate, For the data transmission completion rate, Operating state coefficients for the core unit of the device; When (when) When the equipment is successfully upgraded, when And when the equipment upgrade is failed, judging the equipment upgrade.
  9. 9. The method for supporting multi-protocol firmware upgrade according to claim 1, wherein in the upgrade evaluation and closed loop, an upgrade log includes an intelligent device number, a home gateway identifier, an upgrade start time, an upgrade completion time, an upgrade policy type, an effective transmission data amount, an upgrade determination result, and a failure reason code, wherein a data transmission unreachable amount corresponding code is 001, and a core unit abnormality corresponding code is 002.

Description

Method for supporting multi-protocol firmware upgrade Technical Field The invention relates to the technical field of intelligent equipment of the Internet of things, in particular to a method for supporting multi-protocol firmware upgrading. Background With the rapid development of the internet of things technology, the importance of the home gateway as a core hub for connecting intelligent equipment and the internet is increasingly prominent, the home gateway is not only responsible for data transmission and exchange, but also has multiple functions of intelligent equipment management, safety control and the like, in the internet of things ecological system, the intelligent equipment has various types and communication protocols, including but not limited to Wi-Fi, zigbee, bluetooth and other protocols, and when firmware of the intelligent equipment is upgraded, the intelligent equipment is often required to be customized and developed for different protocols and different models. However, in the traditional firmware upgrading mode, because the intelligent devices are various and the communication protocols are complex, the upgrading process often faces a plurality of challenges, on one hand, the devices with different protocols and different models need to respectively customize and issue upgrading files, which not only increases the development cost, but also prolongs the upgrading period, on the other hand, the traditional upgrading mode lacks an intelligent strategy matching mechanism, and cannot dynamically select the optimal upgrading strategy according to the actual condition of the devices, so that the upgrading process may fail due to discomfort and even cause equipment faults, and in addition, the traditional upgrading mode has defects in aspects of upgrading state monitoring and fault troubleshooting, is difficult to acquire upgrading progress and results in real time, and brings difficulties to subsequent maintenance and management. Disclosure of Invention The invention aims to make up the defects of the prior art and provides a method for supporting multi-protocol firmware upgrading, by the aid of a multi-protocol firmware upgrading technology, efficiency and flexibility of firmware upgrading are improved, all intelligent equipment information accessed by a target home gateway is collected by a cloud server to generate a standardized upgrading file packet, the purposes of 'one-time generation and multi-equipment application' are achieved, meanwhile, the intelligent upgrading file packet is analyzed intelligently by the home gateway, the multi-protocol adaptation degree is calculated, an associated mapping table of equipment-protocol type-corresponding firmware data is established, corresponding upgrading strategies are matched for different intelligent equipment, and an intelligent upgrading strategy matching mechanism reduces manual intervention, greatly improves upgrading efficiency, and enables firmware upgrading to be more flexible and efficient. The invention provides a method for supporting multi-protocol firmware upgrade, which comprises the following specific steps: Collecting all intelligent equipment information accessed by a target home gateway through a cloud server, generating a standardized upgrade file packet, and sending the standardized upgrade file packet to the home gateway through a transmission channel; The method comprises the steps of carrying out analysis and data classification after a home gateway receives an upgrade file packet, initiating equipment detection requests to all access ports, establishing short-term communication connection with each intelligent equipment, obtaining unique fingerprint characteristics of the intelligent equipment, matching equipment identification information in the upgrade file packet through calculation of multi-protocol adaptation degree of the upgrade file packet, and establishing an association mapping table of equipment-protocol type-corresponding firmware data; The home gateway matches two strategies of full upgrade and differential upgrade for the wired intelligent equipment and matches a differential upgrade strategy for the wireless intelligent equipment through calculation of an intelligent selection index of the upgrade strategy according to the association mapping table and the communication protocol type and the connection mode of the intelligent equipment; After determining the upgrade strategy of each intelligent device, the home gateway firstly calculates the effective transmission data quantity, then sends an upgrade instruction to each intelligent device, simultaneously transmits corresponding data, and after receiving the upgrade instruction, the target device only keeps the core unit to operate and then starts the firmware upgrade operation; And (3) upgrading evaluation and closed loop, namely feeding back upgrading state information to the home gateway in real time by each intelligent device, obtaining an upgrading