Remote upgrading method and system for central coordinator of Internet of Things system

By leveraging the synergy of an IoT platform and gateways, remote upgrades of the central coordinator were achieved, resolving issues of high upgrade difficulty, low success rate, and low efficiency. This simplified the upgrade process and improved the success rate and efficiency of device upgrades.

CN122069261APending Publication Date: 2026-05-19GUANGZHOU JIXIANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGZHOU JIXIANG TECH CO LTD
Filing Date
2024-11-19
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

The central coordinator faces challenges such as high difficulty, low success rate, and low efficiency in upgrading its equipment, especially in smart grids where inconsistent upgrade program versions for different central coordinators lead to chaotic upgrades and excessively long upgrade times.

Method used

The upgrade file and file self-description information of the central coordinator are obtained through the IoT platform. The gateway is used as a proxy. The protocol transmission logic of the central coordinator is invisible to the gateway. The upgrade file is sent to the central coordinator through the gateway, decoupling the transmission logic of different protocols. The file self-description information is used to ensure version matching, thereby realizing the remote upgrade of the central coordinator.

Benefits of technology

The upgrade process for the central coordinator has been simplified, the success rate and efficiency of equipment upgrades have been improved, the workload of technical personnel and the total upgrade time have been reduced, and the stability and integrity of upgrade data transmission have been ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122069261A_ABST
    Figure CN122069261A_ABST
Patent Text Reader

Abstract

The invention relates to a central coordinator remote upgrading method and system of an Internet of Things system, and the method comprises the steps: an Internet of Things platform obtains a central coordinator upgrading file and file self-description information, and creates a central coordinator upgrading task according to the central coordinator upgrading file and the file self-description information; the Internet of Things platform sends a file transmission request to the gateway according to the central coordinator upgrading task; the gateway responds to the file transmission request, returns request success information to the Internet of Things platform, and obtains a central coordinator upgrading file and file self-description information from the Internet of Things platform; the gateway sends the central coordinator upgrading file to the central coordinator according to the central coordinator upgrading file and the file self-description information; and the central coordinator responds to the central coordinator upgrading command and executes equipment upgrading of the central coordinator. According to the invention, the system capability requirement of equipment upgrading can be greatly simplified, especially the requirement on the equipment upgrading function of the Internet of Things platform, so that the equipment upgrading efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of equipment upgrades, and in particular to a method and system for remotely upgrading a central coordinator of an Internet of Things (IoT) system. Background Technology

[0002] With the continuous development of smart grids, the importance of power grid data acquisition terminals is becoming increasingly prominent. Among them, the central coordinator, which is responsible for multiple functions such as network establishment and management, resource allocation and scheduling, coordination and synchronization, as well as automation and intelligence, is facing multiple challenges.

[0003] In existing technologies, upgrading the central coordinator often involves technicians controlling the central coordinator to download the upgrade program from the official website. Since different central coordinators require different versions of the upgrade program, this can easily lead to upgrade confusion or even upgrade failure. At the same time, the workload of technicians controlling different central coordinators to download and upgrade is heavy, which also increases the overall upgrade time.

[0004] Therefore, existing technologies suffer from technical problems such as high difficulty in upgrading central coordinators, low success rate in upgrading equipment, and low efficiency in upgrading equipment. Summary of the Invention

[0005] Based on this, the purpose of the present invention is to provide a method and system for remotely upgrading the central coordinator of an Internet of Things (IoT) system, which reduces the difficulty of upgrading, increases the success rate of device upgrades, and improves the efficiency of device upgrades for the central coordinator.

[0006] According to a first aspect of the embodiments of this application, a method for remotely upgrading a central coordinator in an Internet of Things (IoT) system is provided. The IoT system includes an IoT platform, a gateway communicatively connected to the IoT platform, and at least one central coordinator connected to the gateway. The upgrade method includes the following steps: the IoT platform obtains a central coordinator upgrade file and file self-description information; based on the central coordinator upgrade file and file self-description information, it creates a central coordinator upgrade task; the IoT platform sends a file transfer request to the corresponding gateway based on the central coordinator upgrade task; in response to the file transfer request, the gateway returns a request success message to the IoT platform and obtains the central coordinator upgrade file and the file self-description information from the IoT platform; the gateway sends the central coordinator upgrade file to the corresponding central coordinator based on the central coordinator upgrade file and the file self-description information; and the central coordinator, in response to a central coordinator upgrade command, executes a device upgrade for the central coordinator.

[0007] According to a second aspect of the embodiments of this application, a remote upgrade system for the central coordinator of an Internet of Things (IoT) system is provided, wherein the remote upgrade system for the central coordinator of the IoT system is used to execute the remote upgrade method for the central coordinator of the IoT system described above.

[0008] Compared to existing technologies, this invention receives the central coordinator upgrade file from the IoT platform through a gateway and sends the upgrade file to the central coordinator through the gateway. Compared to the existing technology where the IoT platform directly transmits the central coordinator upgrade file based on the individual protocol transmission logic of each central coordinator, this invention, based on the fact that the central coordinator's protocol transmission logic is invisible to the gateway, completes the central coordinator upgrade file transmission through the gateway proxy, completely decoupling the transmission logic between different protocols, expanding the gateway's file transmission function, and effectively simplifying the central coordinator upgrade process in existing technologies. Furthermore, based on the file's self-description information, the version information of the central coordinator upgrade file received by the central coordinator can be matched with the version information of the corresponding upgrade file required by the central coordinator, ensuring the stability and integrity of the upgrade data transmission and guaranteeing the success rate of the corresponding central coordinator's device upgrade. After applying this invention, the gateway distributes the required central coordinator upgrade files to each central coordinator, eliminating the need for technicians to individually request their corresponding central coordinator upgrade files from the IoT platform, as is required in existing technologies, thus reducing the overall upgrade time and the heavy workload of technicians. Therefore, the method described in this invention effectively improves the equipment upgrade efficiency of the central coordinator and solves the technical problems of high equipment upgrade difficulty, low equipment upgrade success rate, and low equipment upgrade efficiency of the central coordinator.

[0009] To better understand and implement this invention, the following detailed description is provided in conjunction with the accompanying drawings. Attached Figure Description

[0010] Figure 1 A schematic diagram of the Internet of Things system provided by the present invention;

[0011] Figure 2 A flowchart of a remote upgrade method for the central coordinator of an Internet of Things system provided by the present invention;

[0012] Figure 3 The flowchart shows the specific steps of the method for remotely upgrading the central coordinator of the Internet of Things system provided by the present invention, which involves sending the central coordinator upgrade file to the corresponding central coordinator.

[0013] Figure 4 A flowchart detailing the steps involved in creating a central coordinator upgrade file for the remote upgrade method of the central coordinator of the Internet of Things system provided by the present invention.

[0014] Figure 5 The flowchart illustrates the specific steps of compressing the central coordinator upgrade file in the remote upgrade method for the central coordinator of the Internet of Things system provided by this invention. Detailed Implementation

[0015] This invention provides a method and system for remotely upgrading the central coordinator of an Internet of Things (IoT) system. To make the objectives, technical solutions, and effects of this invention clearer and more explicit, the invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and are not intended to limit the invention.

[0016] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the term “comprising” as used in this specification means the presence of the stated features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when we say an element is “connected” or “coupled” to another element, it can be directly connected or coupled to the other element, or there may be intermediate elements. Furthermore, “connected” or “coupled” as used herein can include wireless connections or wireless coupling. The term “and / or” as used herein includes all or any units and all combinations of one or more associated listed items.

[0017] It will be understood by those skilled in the art that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. It should also be understood that terms such as those defined in general dictionaries should be understood to have the same meaning as in the context of the prior art, and should not be interpreted in an idealized or overly formal sense unless specifically defined as herein.

[0018] The invention will be further explained below with reference to the accompanying drawings and the description of the embodiments.

[0019] Example 1

[0020] Please refer to the following at the same time Figure 1 and Figure 2 The IoT system of this application embodiment includes an IoT platform 11, a gateway 12 communicatively connected to the IoT platform, and at least one central coordinator 13 connected to the gateway. The remote upgrade method for the central coordinator of the IoT system provided in this application embodiment includes the following steps:

[0021] S10. The IoT platform obtains the central coordinator upgrade file and file self-description information, and creates a central coordinator upgrade task based on the central coordinator upgrade file and file self-description information.

[0022] S20. The IoT platform sends a file transfer request to the corresponding gateway according to the central coordinator upgrade task.

[0023] S30. In response to the file transfer request, the gateway returns a request success message to the IoT platform and obtains the central coordinator upgrade file and file self-description information from the IoT platform.

[0024] S40. The gateway sends the central coordinator upgrade file to the corresponding central coordinator based on the central coordinator upgrade file and the file self-description information;

[0025] S50, The central coordinator responds to the central coordinator upgrade command and performs a device upgrade of the central coordinator.

[0026] Compared to existing technologies, this invention receives the central coordinator upgrade file from the IoT platform through a gateway and sends the upgrade file to the central coordinator through the gateway. Compared to the existing technology where the IoT platform directly transmits the central coordinator upgrade file based on the individual protocol transmission logic of each central coordinator, this invention, based on the fact that the central coordinator's protocol transmission logic is invisible to the gateway, completes the central coordinator upgrade file transmission through the gateway proxy, completely decoupling the transmission logic between different protocols, expanding the gateway's file transmission function, and effectively simplifying the central coordinator upgrade process in existing technologies. Furthermore, based on the file's self-description information, the version information of the central coordinator upgrade file received by the central coordinator can be matched with the version information of the corresponding upgrade file required by the central coordinator, ensuring the stability and integrity of the upgrade data transmission and guaranteeing the success rate of the corresponding central coordinator's device upgrade. After applying this invention, the gateway distributes the required central coordinator upgrade files to each central coordinator, eliminating the need for technicians to individually request their corresponding central coordinator upgrade files from the IoT platform, as is required in existing technologies, thus reducing the overall upgrade time and the heavy workload of technicians. Therefore, the method described in this invention effectively improves the equipment upgrade efficiency of the central coordinator and solves the technical problems of high equipment upgrade difficulty, low equipment upgrade success rate, and low equipment upgrade efficiency of the central coordinator.

[0027] For step S10, the IoT platform obtains the central coordinator upgrade file and file self-description information, and creates a central coordinator upgrade task based on the central coordinator upgrade file and file self-description information.

[0028] The central coordinator upgrade file refers to the upgrade file used to upgrade the version of the central coordinator. The file self-description information includes, but is not limited to, the upgrade package version number, upgrade package file name, upgrade package file size, upgrade device type, upgrade package signature information (including but not limited to signature name, signature algorithm, signature hash value and signature key identifier), device manufacturer name, device product model, device access protocol type, upgrade package output time, upgrade package custom description information and upgrade file checksum (e.g., MD5 checksum, a 128-bit hash value calculated by the MD5 algorithm), and also includes the characteristic information of the central coordinator that needs to perform the device upgrade.

[0029] The IoT platform is a software platform or cloud service used to connect, manage, and control a large number of IoT devices; these IoT devices include gateways, central coordinators, communication modules, or terminal device host computers, etc. The IoT platform can also be used to manage smart home devices (such as the opening and closing of smart door locks and smart appliances) and monitor the operating status of production equipment (such as the operation of industrial automated production lines).

[0030] In one embodiment, the IoT platform has a southbound interface and a northbound interface. The southbound interface of the IoT platform is used to connect IoT devices to realize data interaction and management between the IoT platform and the IoT devices. In this embodiment, the southbound interface of the IoT platform is connected to the gateway for device upgrade management of the central coordinator. The northbound interface of the IoT platform is used to connect to user-end applications to realize data interaction and integration between the IoT platform and the applications.

[0031] In one embodiment, the user uploads the central coordinator upgrade file to the IoT platform and selects the corresponding power distribution room gateway, enabling the IoT platform to obtain and create a central coordinator upgrade task based on the central coordinator upgrade file and the user's selection information for the power distribution room gateway.

[0032] In step S20, the IoT platform sends a file transfer request to the corresponding gateway according to the central coordinator upgrade task.

[0033] The file transfer request includes, but is not limited to, file name, total file size, download chunk size, and total number of chunks. It is worth mentioning that, in this embodiment, the central coordinator upgrade file will be sliced ​​according to preset data slicing rules before file transfer is performed.

[0034] The gateway refers to a hardware device or software service responsible for enabling data exchange and communication between different networks. In this embodiment, the gateway refers to a power distribution room gateway, which is used to realize firmware upgrades and file transfers for IoT devices in the digital power grid. In other embodiments, the gateway may also include devices such as firewalls and load balancers to achieve more complex security control and network management.

[0035] In one embodiment, the gateway can upgrade the corresponding device by receiving instructions from the IoT platform to upgrade the device, or by calling the interface of a central coordinator or other device with different communication protocols, thus serving as a bridge between the upper and lower levels.

[0036] In one embodiment, the gateway includes a file management module and an upgrade management module; the file management module is responsible for downloading the central coordinator upgrade file from the IoT platform, starting the central coordinator's file transfer agent, and transferring the central coordinator upgrade file to the central coordinator; the upgrade management module is responsible for receiving upgrade instructions issued by the IoT platform, notifying the file management module to start file transfer, receiving file transfer results, and notifying the device to perform the upgrade update.

[0037] In other alternative implementations, the gateway includes, but is not limited to, the following functions: 1. Receiving upgrade instructions from the IoT platform, such as upgrading the central coordinator or the host computer of the terminal device; 2. Downloading the upgrade file corresponding to the URL (Uniform Resource Locator) of the upgrade instruction, such as downloading the file from the file server via HTTP (Hypertext Transfer Protocol) and saving it; 3. Result feedback, such as after the IoT platform issues an upgrade instruction, the gateway returns a received message, and then reports the transmission result back to the IoT platform after the file transfer is completed; 4. Device upgrade initiation, such as after successful file transfer, the gateway issues an instruction to the corresponding IoT device to notify it to update or feeds back the file transfer result to the IoT platform, which then decides to initiate the upgrade update of the corresponding IoT device; 5. Upgrade result feedback, such as after the IoT device upgrade update is completed and the upgrade result is reported to the gateway, the gateway reports the upgrade result back to the IoT platform.

[0038] In step S30, the gateway responds to the file transfer request by returning a request success message to the IoT platform and obtaining the central coordinator upgrade file and the file self-description information from the IoT platform.

[0039] The success message refers to the confirmation message returned by the gateway to the IoT platform after the gateway receives and accepts the file transfer request.

[0040] In addition, the remote upgrade method for the central coordinator of the Internet of Things system described in this invention further includes some upgrade steps, used to determine whether the gateway has correctly received the central coordinator upgrade file after step S30 (i.e., the step in which the gateway responds to the file transfer request, returns a request success message to the Internet of Things platform, and obtains the central coordinator upgrade file and the file self-description information from the Internet of Things platform). The upgrade steps specifically include:

[0041] S31a. The gateway matches the file information of the received central coordinator upgrade file with the file information of the file transfer request, performs version verification and integrity verification on the central coordinator upgrade file received by the gateway, and determines whether the gateway has correctly received the central coordinator upgrade file.

[0042] In one embodiment, the file information in the file transfer request includes the MD5 (Message-Digest Algorithm 5) checksum of the central coordinator upgrade file to be transferred, carried in the file transfer request; the received file information of the central coordinator upgrade file refers to the MD5 checksum of the central coordinator upgrade file received by the gateway. Specifically, the gateway matches the received file information of the central coordinator upgrade file with the file information in the file transfer request to determine whether their MD5 checksums match, thereby performing version and integrity checks on the central coordinator upgrade file received by the gateway. If they match, it is determined that the gateway has correctly received the central coordinator upgrade file.

[0043] In addition, the remote upgrade method for the central coordinator of the Internet of Things system described in this invention further includes some upgrade steps. After step S30 (i.e., the step in which the gateway responds to the file transfer request, returns a request success message to the Internet of Things platform, and obtains the central coordinator upgrade file and the file self-description information from the Internet of Things platform), the upgrade steps specifically include:

[0044] S31b, The gateway caches the central coordinator upgrade file and the file self-description information locally.

[0045] The gateway has Flash space for storing the central coordinator upgrade file and the file self-description information.

[0046] In step S40, the gateway sends the central coordinator upgrade file to the corresponding central coordinator based on the central coordinator upgrade file and the file self-description information.

[0047] Please refer to Figure 3 In one embodiment, step S40 specifically includes the following steps:

[0048] S401. The gateway sends a command to the corresponding central coordinator to clear the old version file based on the central coordinator upgrade file and the file self-description information.

[0049] The "old version file" refers to the firmware file that was previously installed on the central coordinator and is stored in the central coordinator.

[0050] S402, The corresponding central coordinator responds to the command to clear old version files, executes the clearing of old version files, and returns the confirmation information of clearing old version files to the gateway.

[0051] S403. Based on the old version file clearing confirmation information, the gateway sends a file matching request to the corresponding central coordinator.

[0052] The file matching request includes, but is not limited to, the file version number, file name, file size, upgrade device type, signature information, manufacturer name, product model, device access protocol type, packet output time, custom description, and version check code in the file self-description information.

[0053] In one embodiment, the file matching request includes, but is not limited to: file ID, file size, target version number, current version number, file nature (representing upgrade files for different node types), device model length, device model, total number of devices in this upgrade, and device ID for each device (each ID occupies 6 bytes).

[0054] S404. The corresponding central coordinator responds to the file matching request, verifies the file matching, and then returns the file matching result to the gateway.

[0055] Specifically, the corresponding central coordinator responds to and reads the file matching request, matches its own information, checks whether it is suitable for using the central coordinator to upgrade the file, and after the file matching verification is passed, returns the file matching result to the gateway.

[0056] S405. In response to the file matching result, the gateway sends a request to initiate file transfer to the central coordinator.

[0057] In one embodiment, the initiation file transfer request includes, but is not limited to, the number of devices and the device ID of each device (each ID occupies 6 bytes).

[0058] S406. In response to the startup file transfer request, the central coordinator returns a startup file transfer request confirmation message to the gateway.

[0059] S407. In response to the startup file transfer request confirmation information, the gateway extracts the central coordinator upgrade file from the local cache, slices the central coordinator upgrade file, and transmits the sliced ​​central coordinator upgrade file to the central coordinator piece by piece.

[0060] In one embodiment, the gateway opens a serial port interface to the south and sends the central coordinator upgrade file to the central coordinator.

[0061] In one embodiment, the gateway's southbound open interface is invoked by the caller (e.g., the central coordinator) to implement the functions required to jointly complete different stages of file transfer, such as opening a file transfer result receiving interface; after the file transfer is completed, the central coordinator notifies the gateway of the file transfer result through the file transfer result receiving interface; the central coordinator's northbound open interface is invoked by the caller (e.g., the gateway) to implement the functions required for file proxy transfer, such as initiating a file transfer or querying file transfer results.

[0062] In addition, the remote upgrade method for the central coordinator of the IoT system described in this invention further includes some upgrade steps, used to determine whether the central coordinator has correctly received the central coordinator upgrade file after step S40 (i.e., the step in which the gateway sends the central coordinator upgrade file to the corresponding central coordinator according to the central coordinator upgrade file and the file self-description information). The upgrade steps specifically include:

[0063] S41. The gateway sends a file information query command to the central coordinator.

[0064] S42. In response to the file information query command, the central coordinator reports the file information of the received central coordinator upgrade file to the gateway.

[0065] The file information of the central coordinator upgrade file includes the corresponding file description information.

[0066] S43. The gateway matches the file information of the central coordinator upgrade file reported by the central coordinator with the file self-description information, performs packet loss verification and integrity verification on the central coordinator upgrade file received by the central coordinator, determines whether the central coordinator has correctly received the central coordinator upgrade file, and reports the result of whether the central coordinator has correctly received the central coordinator upgrade file to the IoT platform.

[0067] In step S50, the central coordinator responds to the central coordinator upgrade command and performs a device upgrade of the central coordinator.

[0068] In one embodiment, step S50 specifically includes the following steps:

[0069] S501, The gateway sends a central coordinator upgrade command to the central coordinator.

[0070] The central coordinator upgrade command includes file ID, file type, number of devices, and device ID for each device.

[0071] In one embodiment, the central coordinator upgrade command includes, but is not limited to: file ID, file nature (indicating upgrade files for different node types), number of devices, and device ID for each device (each ID occupies 6 bytes).

[0072] S502, The central coordinator receives the central coordinator upgrade command and executes the central coordinator's device upgrade.

[0073] In one embodiment, after the central coordinator finishes receiving the central coordinator upgrade file and receives the upgrade instruction, the central coordinator sets an upgrade flag for itself. After the central coordinator restarts and detects the upgrade flag, it calls the central coordinator upgrade file stored in itself to complete the upgrade.

[0074] In addition, the remote upgrade method for the central coordinator of the Internet of Things system described in this invention further includes some upgrade steps, used to determine whether the central coordinator has successfully upgraded and to return the corresponding result after step S50 (i.e., the central coordinator responds to the central coordinator upgrade command and executes the central coordinator device upgrade step). The upgrade steps specifically include:

[0075] S51. The gateway sends a central coordinator upgrade result query to the central coordinator according to a preset upgrade result query cycle.

[0076] The preset upgrade result query period can be set in advance by technical personnel and the specific value can be adjusted according to the actual situation, such as 10,000 milliseconds.

[0077] S52. In response to the central coordinator upgrade result query, the central coordinator returns its corresponding version information to the gateway.

[0078] S53. The gateway determines whether the central coordinator has been successfully upgraded based on the version information returned by the central coordinator and the central coordinator upgrade file, and reports the upgrade result of the central coordinator to the IoT platform.

[0079] In one embodiment, the file self-description information includes a file version number, and the gateway can determine whether the central coordinator has been successfully upgraded by judging whether the version information returned by the central coordinator matches the file version number.

[0080] Alternatively, those skilled in the art can use the following steps instead of steps S51-S53 to determine whether the central coordinator has been successfully upgraded, while continuing to implement other steps of the remote upgrade method for the central coordinator of the Internet of Things system described in this invention. The specific steps are as follows:

[0081] S54. The central coordinator returns its corresponding version information to the gateway.

[0082] S55. The gateway determines whether the central coordinator has been successfully upgraded based on the version information returned by the central coordinator and the central coordinator upgrade file, and reports the upgrade result of the central coordinator to the IoT platform.

[0083] In addition, the IoT system is equipped with an upgrade file generation tool, which is used before step S10 (i.e., the step of the IoT platform obtaining the central coordinator upgrade file). The remote upgrade method for the central coordinator of the IoT system described in this invention also includes creating the central coordinator upgrade file. Please refer to [link to relevant documentation]. Figure 4 , Figure 4 The flowchart illustrates the specific steps of creating a central coordinator upgrade file in the remote upgrade method for the central coordinator of the Internet of Things system provided by this invention. The upgrade steps specifically include:

[0084] S11. The upgrade file generation tool obtains the original full upgrade file or the original differential upgrade file; the original full upgrade file or the original differential upgrade file is used as the upgrade file to be generated; the upgrade file to be generated includes a header description information field and a data field, the header description information field including packet header description information and file header description information.

[0085] S12. The upgrade file generation tool performs hash value calculation on the file header description information and the data field to obtain a first hash value.

[0086] S13. The upgrade file generation tool inserts the first hash value into the packet header description information.

[0087] S14. The upgrade file generation tool performs a hash value calculation on the data field to obtain a second hash value.

[0088] S15. The upgrade file generation tool inserts the second hash value into the file header description information to obtain the central coordinator upgrade file.

[0089] In this embodiment, by inserting two different hash values ​​into different parts of the upgrade file, the resulting central coordinator upgrade file can subsequently perform integrity verification on itself based on these two hash values, thereby further improving the success rate of the central coordinator's device upgrade and increasing upgrade efficiency.

[0090] Meanwhile, if the upgrade file to be generated in step S11 is the original differential upgrade file, then step S15 further includes steps for compressing the differential upgrade file after hash value insertion. Please refer to [link / reference]. Figure 5 , Figure 5 The flowchart of the steps for compressing the central coordinator upgrade file in the remote upgrade method for the central coordinator of the Internet of Things system provided by the present invention is as follows:

[0091] S1501, The upgrade file generation tool inserts the second hash value into the file header description information to obtain the first upgrade file.

[0092] S1502, the upgrade file generation tool uses the correlation of adjacent data in the first upgrade file to compress the first upgrade file and obtain several literal data pairs and distance-length data pairs in the first upgrade file.

[0093] The literal data pair refers to a data combination of two literal values, which are usually associated in some way. Common literal data pairs include key-value pairs, tuples, and arrays. The distance-length data pair refers to a data combination consisting of distance and length, which is commonly used in maps.

[0094] S1503, the upgrade file generation tool performs data statistics on the literal data pairs and the distance-length data pairs respectively, generates a corresponding first Huffman table, and performs Huffman encoding on the literal data pairs and the distance-length data pairs according to the first Huffman table to obtain a first compressed data stream.

[0095] The Huffman table is a table composed of the characters appearing in a set of data and their frequencies. In this embodiment, the first Huffman table is a table composed of the characters appearing in the literal data pairs and the distance-length data pairs respectively, based on their frequencies. The Huffman coding refers to a commonly used entropy coding algorithm.

[0096] In one embodiment, the data to be compressed is first traversed, and the frequency of each character (or source symbol) is counted. Then, based on the counted character frequencies, a Huffman tree is constructed using a bottom-up approach. In this Huffman tree, characters with higher frequencies are located near the root of the tree, while characters with lower frequencies are located at deeper levels. Finally, after the Huffman tree is constructed, a unique variable-length code is assigned to each character according to the tree structure. These codes and the corresponding characters constitute the corresponding Huffman table.

[0097] S1504. The upgrade file generation tool performs data statistics on the first compressed data stream, generates a corresponding second Huffman table, and performs Huffman encoding on the first compressed data stream according to the second Huffman table to obtain the second compressed data stream.

[0098] S1505, the upgrade file generation tool obtains the central coordinator upgrade file based on the first Huffman table, the second Huffman table, and the second compressed data stream.

[0099] In one embodiment, by repeatedly performing Huffman coding, the redundancy of data in the differential upgrade file can be significantly reduced, the compression ratio can be improved, and efficient data compression can be achieved, thereby saving storage space or speeding up data transmission.

[0100] Compared to existing technologies, the method described in this invention coordinates the upgrade process of multiple central coordinators through a gateway, reducing upgrade time and improving equipment upgrade efficiency. It also effectively avoids anomalies during the central coordinator upgrade process, increasing the success rate and ensuring upgrade robustness. Furthermore, by designing the central coordinator upgrade file generation method, it effectively improves data transmission efficiency, stability, and data integrity during the upgrade process. Moreover, the method described in this invention has good adaptability, accommodating the continuous updates of other technologies during the promotion of the "unified standard for digital power grids," effectively supporting the further development of smart grids.

[0101] Example 2

[0102] The present invention also provides a remote upgrade system for the central coordinator of an Internet of Things (IoT) system. The remote upgrade system for the central coordinator of an IoT system is used to execute the remote upgrade method for the central coordinator of an IoT system described in the above embodiments, so as to realize the steps of the remote upgrade method for the central coordinator of an IoT system described in the above embodiments.

[0103] It should be noted that, in implementing the remote upgrade method for the central coordinator of an IoT system provided in the above embodiments, the functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described in Embodiment 1. Furthermore, the remote upgrade system for the central coordinator of an IoT system provided in the above embodiments and the remote upgrade method for the central coordinator of an IoT system in Embodiment 1 belong to the same concept, and their implementation process is detailed in the method embodiments, which will not be repeated here.

[0104] The embodiments described above are merely examples of several implementations of the present invention, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and the present invention also intends to include these modifications and variations.

Claims

1. A method for remotely upgrading the central coordinator of an Internet of Things (IoT) system, characterized in that, The Internet of Things (IoT) system includes an IoT platform, a gateway communicatively connected to the IoT platform, and at least one central coordinator connected to the gateway; the upgrade method includes the following steps: The IoT platform obtains the central coordinator upgrade file and file self-description information, and creates a central coordinator upgrade task based on the central coordinator upgrade file and file self-description information; The IoT platform sends a file transfer request to the corresponding gateway based on the upgrade task from the central coordinator. In response to the file transfer request, the gateway returns a request success message to the IoT platform and obtains the central coordinator upgrade file and the file self-description information from the IoT platform; The gateway sends the central coordinator upgrade file to the corresponding central coordinator based on the central coordinator upgrade file and the file self-description information; The central coordinator responds to a central coordinator upgrade command and performs a device upgrade for the central coordinator.

2. The remote upgrade method for the central coordinator of an Internet of Things system according to claim 1, characterized in that: The file self-description information includes the self-description information version number, upgrade device type, device manufacturer name, device product model, device access protocol type, upgrade package file name, upgrade package version number, upgrade package self-description information, upgrade package file size, upgrade package signature information, upgrade package release time, and upgrade file verification code.

3. The method for remotely upgrading the central coordinator of an IoT system according to claim 1, after the steps of the gateway responding to the file transfer request, returning a request success message to the IoT platform, and obtaining the central coordinator upgrade file and the file self-description information from the IoT platform, includes: The gateway matches the file information of the received central coordinator upgrade file with the file information of the file transfer request, performs version verification and integrity verification on the central coordinator upgrade file received by the gateway, and determines whether the gateway has correctly received the central coordinator upgrade file.

4. The method for remotely upgrading the central coordinator of an IoT system according to claim 1, after the steps of the gateway responding to the file transfer request, returning a request success message to the IoT platform, and obtaining the central coordinator upgrade file and the file self-description information from the IoT platform, includes: The gateway caches the central coordinator upgrade file and the file self-description information locally. The step of the gateway sending the central coordinator upgrade file to the corresponding central coordinator based on the central coordinator upgrade file and the file self-description information includes: The gateway sends a command to the corresponding central coordinator to clear the old version file based on the central coordinator upgrade file and the file self-description information; The corresponding central coordinator responds to the command to clear old version files, executes the clearing of old version files, and returns confirmation information of clearing old version files to the gateway; Based on the old version file clearing confirmation information, the gateway sends a file matching request to the corresponding central coordinator. The corresponding central coordinator responds to the file matching request, verifies the file matching, and then returns the file matching result to the gateway. In response to the file matching result, the gateway sends a request to initiate file transfer to the central coordinator; In response to the startup file transfer request, the central coordinator returns a confirmation message for the startup file transfer request to the gateway. In response to the startup file transfer request confirmation information, the gateway extracts the central coordinator upgrade file from its local cache, slices the central coordinator upgrade file, and transmits the sliced ​​central coordinator upgrade file to the central coordinator piece by piece.

5. The method for remotely upgrading the central coordinator of an Internet of Things system according to claim 4, characterized in that: The file matching request includes the file ID, file size, target version number, current version number, file type, device model length, device model, total number of devices in this upgrade, and device ID of each device.

6. The remote upgrade method for the central coordinator of an Internet of Things system according to claim 1, characterized in that, After the step of the gateway sending the central coordinator upgrade file to the corresponding central coordinator based on the central coordinator upgrade file and the file self-description information, the method further includes: The gateway sends a file information query command to the central coordinator; In response to the file information query command, the central coordinator reports the file information of the received central coordinator upgrade file to the gateway, wherein the file information of the central coordinator upgrade file includes corresponding file description information; The gateway matches the file information of the central coordinator upgrade file reported by the central coordinator with the file self-description information, performs packet loss verification and integrity verification on the central coordinator upgrade file received by the central coordinator, determines whether the central coordinator has correctly received the central coordinator upgrade file, and reports the result of whether the central coordinator has correctly received the central coordinator upgrade file to the IoT platform.

7. The method for remotely upgrading the central coordinator of an Internet of Things system according to claim 1, characterized in that, The central coordinator, in response to a central coordinator upgrade command, performs the following steps for upgrading the central coordinator's equipment: The gateway sends a central coordinator upgrade command to the central coordinator; The central coordinator receives the central coordinator upgrade command and performs the central coordinator's device upgrade.

8. The method for remotely upgrading the central coordinator of an Internet of Things system according to claim 7, characterized in that: The central coordinator upgrade command includes the file ID, file type, number of devices, and device ID for each device.

9. The method for remotely upgrading the central coordinator of an Internet of Things system according to claim 1, characterized in that, After the central coordinator responds to a central coordinator upgrade command and performs the central coordinator device upgrade steps, it includes: The gateway sends a central coordinator upgrade result query to the central coordinator according to a preset upgrade result query period. In response to the central coordinator upgrade result query, the central coordinator returns its corresponding version information to the gateway; The gateway determines whether the central coordinator has been successfully upgraded based on the version information returned by the central coordinator and the central coordinator upgrade file, and reports the upgrade result of the central coordinator to the IoT platform. or, The central coordinator returns its corresponding version information to the gateway; The gateway determines whether the central coordinator has been successfully upgraded based on the version information returned by the central coordinator and the central coordinator upgrade file, and reports the upgrade result of the central coordinator to the IoT platform.

10. The method for remotely upgrading the central coordinator of an Internet of Things system according to any one of claims 1 to 9, characterized in that, The IoT system is equipped with an upgrade file generation tool; Before the IoT platform obtains the central coordinator upgrade file, the following steps are included: The upgrade file generation tool obtains the original full upgrade file or the original differential upgrade file; it uses the original full upgrade file or the original differential upgrade file as the upgrade file to be generated; the upgrade file to be generated includes a header description information field and a data field, and the header description information field includes packet header description information and file header description information; The upgrade file generation tool performs hash value calculation on the file header description information and the data fields to obtain a first hash value; The upgrade file generation tool inserts the first hash value into the packet header description information; The upgrade file generation tool performs hash value calculation on the data field to obtain a second hash value; The upgrade file generation tool inserts the second hash value into the file header description information to obtain the central coordinator upgrade file.

11. The method for remotely upgrading the central coordinator of an Internet of Things system according to claim 10, characterized in that, If the upgrade file to be generated is the original differential upgrade file, the upgrade file generation tool inserts the second hash value into the file header description information to obtain the central coordinator upgrade file, including the following steps: The upgrade file generation tool inserts the second hash value into the file header description information to obtain the first upgrade file; The upgrade file generation tool uses the correlation of adjacent data in the first upgrade file to compress the first upgrade file and obtain several literal data pairs and distance-length data pairs from the first upgrade file; The upgrade file generation tool performs data statistics on the literal data pairs and the distance-length data pairs respectively, generates a corresponding first Huffman table, and performs Huffman encoding on the literal data pairs and the distance-length data pairs according to the first Huffman table to obtain a first compressed data stream; The upgrade file generation tool performs data statistics on the first compressed data stream, generates a corresponding second Huffman table, and performs Huffman encoding on the first compressed data stream according to the second Huffman table to obtain the second compressed data stream. The upgrade file generation tool obtains the central coordinator upgrade file based on the first Huffman table, the second Huffman table, and the second compressed data stream.

12. The method for remotely upgrading the central coordinator of an Internet of Things (IoT) system according to any one of claims 1 to 9, characterized in that, The file transfer request includes, but is not limited to, file name, total file size, download chunk size, and total number of chunks.

13. A remote upgrade system for a central coordinator of an Internet of Things (IoT) system, characterized in that, The central coordinator remote upgrade system of the Internet of Things system is used to perform the central coordinator remote upgrade method of the Internet of Things system as described in any one of claims 1 to 12.