Low-power device broadcast upgrade method and system based on Wi-SUN network mass data mode

By constructing an architecture in which gateways and relays are always powered devices in the Wi-SUN network, scheduling wake-up and batch upgrade of low-power devices solves the problems of low efficiency in remote upgrade of low-power devices and network congestion, and achieves high efficiency. , Stable upgrade management.

CN118283761BActive Publication Date: 2024-09-03HANGZHOU HAIXINGZEKE INFORMATION TECHNOLOGY CO LTD +6
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410704303.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-09-03
Estimated Expiration
2044-06-03

AI Technical Summary

Technical Problem

The sleep state of low-power devices during the remote upgrade process results in low upgrade efficiency and long time, and may lead to a mix of old and new versions, which increases network communication bandwidth requirements and network congestion.

Method used

By building an architecture with gateways and relays as always-on devices in the Wi-SUN network, relay nodes are used to store upgrade packages and intercept sleep commands, and schedule wake-up of low-power devices for batch upgrades to avoid failures caused by sleep states. Upgrade disruption and waste of network resources.

Benefits of technology

It improves the success rate and efficiency of remote upgrades of low-power devices, reduces network traffic and battery consumption, avoids network congestion, and ensures orderly and controllable upgrade management of large-scale equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118283761B
    Figure CN118283761B
Patent Text Reader

Abstract

The present invention relates to the field of wireless communication technology, and in particular to a method and system for broadcasting and upgrading low-power devices in a massive data mode of a Wi‑SUN network. The method includes: using low-power devices as terminal node devices, and gateways and relays as always-on devices to construct a Wi‑SUN network architecture; a remote server broadcasts and transmits an upgrade package and stores it to the relay closest to the low-power device; when all preset message commands are issued, the remote server issues a sleep command; the relay closest to the low-power device intercepts the sleep command and determines whether it contains an upgrade package. When it contains an upgrade package, the relay closest to the low-power device schedules a wake-up of the low-power device, and the low-power device performs an upgrade operation based on the upgrade package at the scheduled wake-up time; when it does not contain an upgrade package, the low-power device executes the sleep command. The broadcast mechanism of the Wi‑SUN network is cleverly combined to ensure the effectiveness and efficiency of broadcast upgrades of low-power devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless communication technology, and in particular to a low-power device broadcast upgrade method and system based on a Wi-SUN network mass data mode. Background Art

[0002] As a new open standard protocol designed for smart utility networks, Wi-SUN FAN 1.1 has the core advantage of low-power design, providing strong technical support for reliable and efficient communication of low-power devices (such as gas meters, water meters, etc.) over a wide area. By optimizing the radio communication protocol stack, adopting energy-saving network topology, and supporting advanced power management functions, the standard significantly reduces the energy consumption of devices in various working states, extends the service life of battery-powered devices, and creates favorable conditions for large-scale deployment of devices in Internet of Things (IoT) application scenarios.

[0003] As low-power devices, especially smart gas meters and water meters, continue to advance in intelligent and engineering applications, the need for remote upgrade capabilities is becoming increasingly prominent. Remote upgrades can not only enable iterative updates of device functions, fix vulnerabilities, and adapt to new standards, but are also a key means to ensure long-term stable operation of devices and improve service quality.

[0004] At present, low-power devices (such as smart gas meters, water meters, etc.) still mainly rely on communication technologies such as NB-IoT and GPRS when performing remote upgrades. As a newer communication technology, Wi-SUN's ecosystem and application scenarios are still developing. Therefore, research and application of remote upgrades of low-power devices based on Wi-SUN networks are not common.

[0005] Low-power devices were originally designed to save energy. However, traditional upgrade methods (i.e., upgrade methods that rely on communication technologies such as NB-IoT and GPRS) usually adopt a point-to-point communication mode, that is, the server sends upgrade data packets to each device at a single point. Therefore, the device may need to frequently activate the network connection to receive upgrade data, which will increase the energy consumption of the device and shorten the battery life. Especially when there are a large number of devices, it will lead to inefficient upgrades and long time consumption.

[0006] Although when using the Wi-SUN network, the network broadcast mechanism can be used for broadcast upgrades, which can improve the upgrade efficiency to a certain extent. However, during the broadcast upgrade, due to the different wake-up times of low-power devices, many devices are already in a dormant state during the broadcast operation. Therefore, the broadcast message cannot immediately wake up all devices, resulting in a slow upgrade process and increasing the time required to complete the remote upgrade of low-power devices. At the same time, due to the uncertainty of the wake-up time of low-power devices, some low-power devices fail to receive the upgrade information, resulting in a mixture of new and old versions in low-power devices, reducing the overall performance of low-power devices. Moreover, in order to ensure that low-power devices in a dormant state can eventually receive the upgrade information, the Wi-SUN network needs to send broadcast information repeatedly, which greatly increases the communication bandwidth requirements of the Wi-SUN network and causes network congestion. Summary of the invention

[0007] In view of the above technical problems, the present invention proposes a method and system for broadcasting and upgrading low-power devices in the massive data mode of the Wi-SUN network, aiming to cleverly combine the broadcast mechanism of the Wi-SUN network, ensure the effectiveness of broadcasting and upgrading low-power devices within limited power consumption, and improve the efficiency of remote upgrading of low-power devices.

[0008] In a first aspect, the present application provides a low-power device broadcast upgrade method based on a Wi-SUN network mass data mode, comprising the following steps:

[0009] Step 102, constructing a Wi-SUN network architecture with low-power devices as end node devices and gateways and relays as always-on devices;

[0010] Step 104, the remote server transmits and stores the upgrade package to the relay closest to the low-power device based on the logic broadcast of the always-on power device;

[0011] Step 106, when the remote server determines that all preset message commands have been sent, it sends a sleep command;

[0012] Step 108, the relay closest to the low-power device intercepts the sleep command and determines whether it contains the upgrade package. When it contains the upgrade package, the relay closest to the low-power device schedules the low-power device to wake up, and the low-power device performs the upgrade operation based on the upgrade package at the scheduled wake-up time; when it does not contain the upgrade package, the low-power device executes the sleep command.

[0013] In some embodiments, in step 106, when the remote server determines that all preset message commands have been sent, sending a sleep command includes:

[0014] When the remote server determines that all preset message commands have been sent out, it sends a sleep command to the relay closest to the low-power device that needs to be upgraded.

[0015] In some embodiments, in step 108, the relay closest to the low power consumption device schedules the low power consumption device to wake up, including:

[0016] The relay closest to the low-power device sends the scheduled wake-up time and the time to try again if the discovery fails to the low-power device;

[0017] Based on the scheduled wake-up time and the time to retry the discovery failure, the relay closest to the low-power device arranges the low-power device to be woken up again in batches.

[0018] Among them, discover refers to the process in which low-power devices actively discover relay nodes to confirm that the communication link is unobstructed.

[0019] In some embodiments, based on the scheduled wake-up time and the time for retrying the discovery failure, the relay closest to the low-power device arranges the low-power device to wake up again in batches, including:

[0020] Step 202: The relay closest to the low-power device arranges the first batch of low-power devices to initiate a discover to wake up at the scheduled wake-up time according to the maximum number of low-power devices that the relay can accommodate;

[0021] Step 204, the low-power devices that failed to discover in the previous batch and the low-power devices that initiated the discovery to wake up after the previous batch of low-power devices started to be upgraded are arranged to be woken up again in the next batch based on the delay of the retry time of the discovery failure;

[0022] Step 206, repeating step 204 until all low-power devices are successfully awakened.

[0023] In some embodiments, based on the scheduled wake-up time and the time for retrying the discovery failure, the relay closest to the low-power device arranges the low-power device to wake up again in batches, including:

[0024] Step 302: The relay closest to the low-power device arranges the first batch of low-power devices to initiate a discover to wake up at the scheduled wake-up time according to the preset number of low-power devices;

[0025] Step 304: The remaining low-power devices, the low-power devices that failed to discover in the previous batch of low-power devices, and the low-power devices that initiated discover to wake up after the previous batch of low-power devices started to upgrade are arranged to be woken up again in the next batch based on the delay of the retry time of the discovery failure;

[0026] Step 306, repeating step 304 until all low-power devices are successfully awakened.

[0027] In some embodiments, the low power consumption device performs an upgrade operation based on the upgrade package at the scheduled wake-up time, including:

[0028] Low-power devices automatically wake up according to the scheduled wake-up time;

[0029] The relay closest to the low-power device transmits the upgrade package to the low-power device;

[0030] After receiving and verifying the upgrade package, the low-power device performs an upgrade operation based on the upgrade package;

[0031] After the low-power device upgrade operation is completed, the sleep command is executed.

[0032] In some embodiments, after the “low-power consumption device receives and verifies the upgrade package, and then performs an upgrade operation based on the upgrade package”, the following steps are also included:

[0033] The relay closest to the low-power device reports the upgrade result of the low-power device to the remote server;

[0034] The remote server compares the upgrade result with the upgrade package version, and comprehensively determines the upgrade result of the low-power device based on the comparison result.

[0035] In the second aspect, the present application provides a low-power device broadcast upgrade system based on the Wi-SUN network mass data mode, including:

[0036] Network building module, used to build Wi-SUN network architecture with low-power devices as end node devices and gateways and relays as always-on devices;

[0037] The remote server is used to transmit and store the upgrade package to the relay closest to the low-power device based on the logic broadcast of the always-on device, and issue a sleep command when it is determined that all preset message commands have been issued;

[0038] The relay closest to the low-power device is used to intercept the sleep command and determine whether it contains the upgrade package. If it contains the upgrade package, it will schedule the low-power device to wake up.

[0039] The low-power device is used to perform an upgrade operation based on the upgrade package at the scheduled wake-up time, and execute a sleep command when the relay closest to the low-power device does not contain the upgrade package itself.

[0040] In a third aspect, the present application provides an electronic device, including a processor and a memory;

[0041] The processor is connected to the memory;

[0042] The memory is used to store executable program code;

[0043] The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the low-power device broadcast upgrade method based on the Wi-SUN network mass data mode as described above.

[0044] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the low-power device broadcast upgrade method based on the Wi-SUN network massive data mode as described above is implemented.

[0045] The beneficial technical effects of the present invention include at least:

[0046] 1. A low-power device broadcast upgrade method and system based on the Wi-SUN network mass data mode is adopted. First, by taking the low-power device as the terminal node and the gateway and relay as the always-on device, a Wi-SUN network architecture is constructed. By using the always-on device to perform the broadcast operation, the upgrade interruption problem caused by the sleep of the low-power device can be effectively reduced. Secondly, the relay node stores the upgrade package and intercepts the sleep command. When the sleep command is received, it is determined whether the upgrade package is contained, and whether to schedule the low-power device to wake up accordingly, so as to ensure that the upgrade information is received by the target low-power device and improve the success rate of remote upgrade. Then, through the scheduled wake-up mechanism, the problem of failing to receive the upgrade information due to the device being in a dormant state is effectively avoided, and the waste of network resources caused by multiple broadcasts is reduced to a certain extent, and the overall efficiency of remote upgrade is improved, making the remote upgrade management of large-scale low-power devices more orderly and controllable. Low-power devices can also be upgraded during periods of low network traffic, further reducing the impact on the normal operation of the network and avoiding network congestion.

[0047] 2. The design of retrying the discovery failure and arranging the low-power devices to wake up again in batches can avoid the broadcast frequency difference and network collision caused by the low-power devices that failed to discover waking up and pushing data upward during the top-down broadcast of upgrade information, which helps to improve the success rate of remote upgrade of low-power devices, avoid frequent and ineffective repeated attempts of low-power devices, reduce resource waste and battery consumption, and improve the overall efficiency and stability of remote upgrade.

[0048] 3. By arranging low-power devices to be awakened again in batches, low-power devices that failed to discover and low-power devices that initiated discover to wake up after the upgrade started are taken into consideration. Setting these low-power devices to delay retry can effectively reduce wake-up failures caused by different broadcast frequencies and network collisions, thereby ensuring the efficiency and stability of network communication and improving the overall upgrade success rate. Moreover, by designing repeated broadcasts for scheduled wake-up only when discover fails, the pressure on network communication bandwidth is relatively small, which avoids network congestion to the greatest extent. At the same time, scheduled wake-up is directly performed in batches according to the maximum capacity, reducing the implementation complexity.

[0049] Other features and advantages of the present invention will be disclosed in detail in the following specific embodiments and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The present invention will be further described below in conjunction with the accompanying drawings:

[0051] Figure 1 The present invention is a flowchart of a low-power device broadcast upgrade method based on a Wi-SUN network according to an embodiment of the present invention.

[0052] Figure 2 This is a schematic diagram of the principle of scheduling wake-up and remote upgrade of low-power devices in batches according to an embodiment of the present invention.

[0053] Figure 3 A schematic diagram of a Wi-SUN network architecture for broadcasting upgrades of low-power devices according to an embodiment of the present invention.

[0054] Figure 4 The figure is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0055] The technical solutions of the embodiments of the present invention are explained and described below in conjunction with the drawings of the embodiments of the present invention, but the following embodiments are only preferred embodiments of the present invention, not all. Based on the embodiments in the implementation mode, other embodiments obtained by those skilled in the art without creative work are all within the protection scope of the present invention.

[0056] In the following description, terms such as "inside", "outside", "up", "down", "left", "right", etc. that indicate directions or positional relationships are only used to facilitate the description of the embodiments and simplify the description, and do not indicate or imply that the referred device or element must have a specific direction, be constructed and operate in a specific direction. Therefore, it should not be understood as a limitation of the present invention.

[0057] The present application embodiment provides a low-power device broadcast upgrade method based on the Wi-SUN network mass data mode. Figure 1 , including the following steps:

[0058] Step 102 , constructing a Wi-SUN network architecture with low-power devices as end node devices and gateways and relays as always-on devices.

[0059] It is understandable that due to the sleep mechanism of low-power devices, low-power devices cannot serve as relay nodes. For this reason, in this embodiment, low-power devices are set only as end node devices. Except for the end node low-power devices, other devices (i.e., gateways and relays) are always-on devices and can use network broadcast operations.

[0060] Step 104 , the remote server transmits and stores the upgrade package to a relay closest to the low-power device based on the always-on device logical broadcast.

[0061] The remote server uses wireless communication technology to communicate with the gateway in the Wi-SUN network, allowing the remote server to access and manage all devices in the Wi-SUN network, including relays and low-power devices. Upgrade packages refer to software update packages for low-power devices (such as smart gas meters, water meters, etc.). These updates may include performance optimization, function enhancements, security patches, etc. The upgrade package usually contains executable upgrade files.

[0062] It can be understood that the gateway and the relay are always-on devices, so the always-on device logic refers to the data transmission path between the gateway and the relay in the Wi-SUN network architecture. In this embodiment, the remote server broadcasts and transmits the upgrade package based on the always-on device logic and stores it to all relays closest to the low-power device in the Wi-SUN network architecture. The router node that receives the upgrade package can be determined based on the routing relationship, that is, the relay closest to the low-power device.

[0063] Step 106: When the remote server determines that all preset message commands have been sent, it sends a sleep command.

[0064] It is understandable that after the low-power device pushes data upward, the remote server may send multiple message commands downward based on the data reported by the low-power device and the preset logic to achieve remote control and management of the low-power device. The preset message commands include: configuration update commands, device upgrade commands, data collection commands or other personalized configuration commands.

[0065] The sleep command refers to a control command that causes a low-power device to enter sleep mode.

[0066] On the other hand, in this embodiment, in step 106, when the remote server determines that all preset message commands have been sent, sending a sleep command includes:

[0067] When the remote server determines that all preset message commands have been sent out, it sends a sleep command to the relay closest to the low-power device that needs to be upgraded.

[0068] It is understandable that low-power devices are usually dormant most of the time. Only when data needs to be pushed will each low-power device wake up and then push data upward discretely. If the low-power device that needs to be upgraded has data to push, it needs to actively initiate a discover upward. If discover is successful, it means that the corresponding link that can be used for communication has been found. When the link is connected, the remote server can check the firmware version information of the low-power device according to the push data of the low-power device, and compare the relationship between the current version of the low-power device and its known latest version. If it is determined that the low-power device has not been upgraded to the latest version, it is considered that the low-power device is "not upgraded". In this way, the low-power device that needs to be upgraded is identified and the relay closest to the low-power device that needs to be upgraded is determined, and then the sleep command is sent to the relay closest to the low-power device that needs to be upgraded. That is, the remote server transmits the sleep command based on the logic broadcast of the always-on device to the relay closest to the low-power device that needs to be remotely upgraded, so as to avoid the mixing of new and old versions and maintain the overall performance of the low-power device; if discover fails, it means that the corresponding link that can be used for communication is not found, and the link is not connected. Therefore, it is impossible to determine the relay closest to the low-power device that needs to be upgraded to transmit the sleep command, and the subsequent upgrade process cannot be continued. The low-power device needs to actively initiate discover again.

[0069] Step 108, the relay closest to the low-power device intercepts the sleep command and determines whether it contains the upgrade package. When it contains the upgrade package, the relay closest to the low-power device schedules the low-power device to wake up, and the low-power device performs the upgrade operation based on the upgrade package at the scheduled wake-up time; when it does not contain the upgrade package, the low-power device executes the sleep command.

[0070] It can be understood that the relay closest to the low-power device mentioned in step 108 of this embodiment means the relay node closest to the low-power device that needs to be remotely upgraded.

[0071] On the other hand, in this embodiment, the low-power device performs an upgrade operation based on the upgrade package at the scheduled wake-up time, including:

[0072] Low-power devices automatically wake up according to the scheduled wake-up time;

[0073] The relay closest to the low-power device transmits the upgrade package to the low-power device;

[0074] After receiving and verifying the upgrade package, the low-power device performs an upgrade operation based on the upgrade package;

[0075] After the low-power device upgrade operation is completed, the sleep command is executed.

[0076] It can be understood that the specific implementation of step 108 in this embodiment is: when the relay closest to the low-power device that needs to be upgraded in the Wi-SUN network architecture receives the sleep command, it first determines whether it contains the low-power device upgrade package. If it contains the low-power device upgrade package, it temporarily suspends entering the control logic of the sleep command and executes the upgrade step. If it does not contain the low-power device upgrade package, it enters the control logic of the sleep command of the low-power device. The specific upgrade steps are:

[0077] First, the relay that contains the upgrade package and is closest to the low-power device that needs to be upgraded schedules the wake-up of the low-power device, that is, sends the scheduled wake-up time (for example, scheduled wake-up at 20:00) to all low-power devices accommodated by the relay;

[0078] Secondly, the low-power device automatically wakes up according to the scheduled wake-up time, that is, it starts to initiate a discovery to find the communication link between the low-power device and the relay closest to the low-power device that contains the upgrade package;

[0079] Subsequently, the relay closest to the low-power device transmits the upgrade package to the low-power device, thereby realizing the broadcast upgrade of the batch of low-power devices scheduled to be woken up by the relay closest to the low-power device. After the low-power device receives and verifies the upgrade package, it executes the upgrade file in the upgrade package on the low-power device;

[0080] Finally, after the low-power device upgrade operation is completed, the control logic of the sleep command continues.

[0081] This embodiment uses low-power devices as end nodes and gateways and relays as always-on devices to build a Wi-SUN network architecture. The always-on devices are used to perform broadcast operations, which can effectively reduce the upgrade interruption problem caused by the sleep of low-power devices. At the same time, the relay node stores the upgrade package and intercepts the sleep command. When the sleep command is received, it is determined whether the upgrade package is contained, and whether to schedule the low-power device to wake up accordingly, thereby ensuring that the upgrade information is received by the target low-power device and improving the success rate of remote upgrades. The scheduled wake-up mechanism effectively avoids the problem of failing to receive the upgrade information due to the device being in a sleep state, reduces the waste of network resources caused by multiple broadcasts to a certain extent, improves the overall efficiency of remote upgrades, makes the remote upgrade management of large-scale low-power devices more orderly and controllable, and also enables low-power devices to be upgraded during periods of low network traffic, further reducing the impact on the normal operation of the network and avoiding network congestion.

[0082] In one embodiment of the present specification, in step 108, the relay closest to the low power consumption device performs a scheduled wake-up on the low power consumption device, including:

[0083] The relay closest to the low-power device sends the scheduled wake-up time and the time to try again if the discovery fails to the low-power device;

[0084] Based on the scheduled wake-up time and the time to retry the discovery failure, the relay closest to the low-power device arranges the low-power device to be woken up again in batches.

[0085] Among them, discover refers to the process in which low-power devices actively discover relay nodes to confirm that the communication link is unobstructed. The parameter "discover failure retry time" is especially used in the network discovery process. It is used for local low-power devices to automatically wake up at the scheduled wake-up time and initiate discover. After the failure, it needs to wait for the discovery failure retry time (for example, 1 hour later) before re-waking up and initiating discover. That is, if the low-power device fails when trying to rejoin the network or discover, a timer will be set to wait for a period of time before trying again.

[0086] This embodiment avoids broadcast frequency differences and network collisions caused by waking up and pushing data upward of low-power devices that have failed to discover during the top-down broadcast of upgrade information, by designing the time for retrying discovery and arranging low-power devices to wake up again in batches. This helps to improve the success rate of remote upgrades of low-power devices, avoids frequent and ineffective repeated attempts by low-power devices, reduces resource waste and battery consumption, and improves the overall efficiency and stability of remote upgrades.

[0087] In one embodiment of the present specification, based on the scheduled wake-up time and the discovery failure retry time, the relay closest to the low-power device arranges the low-power device to wake up again in batches, including:

[0088] Step 202: The relay closest to the low-power device arranges the first batch of low-power devices to initiate a discover to wake up at the scheduled wake-up time according to the maximum number of low-power devices that the relay can accommodate;

[0089] Step 204, the low-power devices that failed to discover in the previous batch and the low-power devices that initiated the discovery to wake up after the previous batch of low-power devices started to be upgraded are arranged to be woken up again in the next batch based on the delay of the retry time of the discovery failure;

[0090] Step 206, repeating step 204 until all low-power devices are successfully awakened.

[0091] The maximum number of low-power devices that a relay can accommodate refers to the number of low-power devices that the relay supports connecting, which depends on the hardware resources of the relay.

[0092] Please see attached Figure 2 , Figure 2 A schematic diagram of the principle of scheduling wake-up and remote upgrade of low-power devices in batches provided by this embodiment.

[0093] For example, Figure 2 As shown, LFN1, LFN2, LFN3, LFN4, LFNx...LFNn are all low-power devices accommodated by the relay closest to the low-power device when it intercepts the sleep command and determines that it contains the upgrade package. The relay closest to the low-power device that needs to be upgraded is referred to as "low-power device" below. The horizontal axis is the time axis. In this embodiment, the relay closest to the low-power device arranges the low-power device to wake up again in batches as follows:

[0094] From the TO moment, due to the need to push data, each low-power device will wake up and then discretely push data upward. At this time, the relay closest to the low-power device schedules the low-power device to wake up, that is, sends the scheduled wake-up time T1 and the time to try again if the discovery fails to the low-power device from top to bottom;

[0095] At time T1, the relay closest to the low-power device arranges the first batch of low-power devices to initiate discovery to wake up at time T1 according to the maximum number of low-power devices that the relay can accommodate. Among them, LFN1, LFN2, LFN3, LFN4, and LFNx that have successfully discovered will perform the upgrade operation based on the upgrade package, while LFNx1, LFNx2...LFNxx that have failed to discover will enter the next step;

[0096] The LFNx1, LFNx2, ..., LFNxx whose discovery failed in the previous batch of low-power devices and the LFNx... whose discovery was initiated upwards to wake up after the previous batch of low-power devices started to be upgraded are delayed and scheduled to be woken up again in the next batch (i.e., time T2) based on the time of retry due to discovery failure. Among them, the LFNx1, LFNx2, LFNx..., LFNxx whose discovery succeeded will perform the upgrade operation based on the upgrade package, while the LFNxx1, LFNxx2...LFNxxx whose discovery failed will enter the next step;

[0097] The LFNxx1, LFNxx2, ..., LFNxxx low-power devices in the previous batch that failed to discover, and the low-power devices LFNxx... that initiated the discovery to wake up after the previous batch of low-power devices started to be upgraded, will be delayed based on the time of the retry of the discovery failure and will be arranged to be woken up again in the next batch (that is, at T3), until all low-power devices have successfully discovered at T3 and perform the upgrade operation based on the upgrade package.

[0098] This embodiment arranges low-power devices to be awakened again in batches, taking into account low-power devices that have failed to discover and low-power devices that initiate discover to wake up only after starting the upgrade. Setting these low-power devices to delay retry can effectively reduce wake-up failures caused by broadcast frequency differences and network collisions, thereby ensuring the efficiency and stability of network communication and improving the overall upgrade success rate. Moreover, this embodiment reduces the pressure on network communication bandwidth by designing repeated broadcasts for scheduled wake-up only when discover fails, thereby avoiding network congestion to the greatest extent. At the same time, scheduled wake-up is directly performed in batches according to the maximum capacity, which is relatively direct to implement and reduces the implementation complexity.

[0099] In one embodiment of the present specification, based on the scheduled wake-up time and the discovery failure retry time, the relay closest to the low-power device arranges the low-power device to wake up again in batches, including:

[0100] Step 302: The relay closest to the low-power device arranges the first batch of low-power devices to initiate a discover to wake up at the scheduled wake-up time according to the preset number of low-power devices;

[0101] Step 304: The remaining low-power devices, the low-power devices that failed to discover in the previous batch of low-power devices, and the low-power devices that initiated discover to wake up after the previous batch of low-power devices started to upgrade are arranged to be woken up again in the next batch based on the delay of the retry time of the discovery failure;

[0102] Step 306, repeating step 304 until all low-power devices are successfully awakened.

[0103] Compared to Figure 2 In the embodiment shown, this embodiment arranges the wake-up of the first batch of devices according to the preset number of low-power devices, and can subsequently adjust the wake-up of each batch of low-power devices according to actual conditions, which helps to evenly distribute the network load and further avoid network congestion caused by a large number of low-power devices initiating discover requests at the same time, thereby making more efficient use of network resources.

[0104] In one embodiment of the present specification, after “the low-power consumption device receives and verifies the upgrade package, and then performs an upgrade operation based on the upgrade package”, the following steps are also included:

[0105] The relay closest to the low-power device reports the upgrade result of the low-power device to the remote server;

[0106] The remote server compares the upgrade result with the upgrade package version, and comprehensively determines the upgrade result of the low-power device based on the comparison result.

[0107] Furthermore, by comparing the upgrade results with the upgrade package version, the remote server can further determine whether the upgrade of the low-power device is successful, whether it is necessary to re-download the upgrade package or take other remedial measures, so as to avoid the mixing of new and old versions and maintain the overall performance of the low-power device. It can also monitor and manage the upgrade progress and analyze the collected upgrade data to optimize future upgrade strategies.

[0108] On the other hand, an embodiment of the present specification further provides a low-power device broadcast upgrade system based on a Wi-SUN network mass data mode, including:

[0109] Network building module, used to build Wi-SUN network architecture with low-power devices as end node devices and gateways and relays as always-on devices;

[0110] The remote server is used to transmit and store the upgrade package to the relay closest to the low-power device based on the logic broadcast of the always-on device, and issue a sleep command when it is determined that all preset message commands have been issued;

[0111] The relay closest to the low-power device is used to intercept the sleep command and determine whether it contains the upgrade package. If it contains the upgrade package, it will schedule the low-power device to wake up.

[0112] The low-power device is used to perform an upgrade operation based on the upgrade package at the scheduled wake-up time, and execute a sleep command when the relay closest to the low-power device does not contain the upgrade package itself.

[0113] Please see attached Figure 3 , Figure 3 A schematic diagram of a Wi-SUN network architecture for broadcasting upgrades of low-power devices provided in this embodiment.

[0114] like Figure 3 As shown in the figure, the Wi-SUN network includes a gateway, several relays and several low-power devices. The remote server uses 4G wireless communication technology to communicate with the gateway of the Wi-SUN network. This connection method allows the remote server to access and manage all devices in the Wi-SUN network, including relays and low-power devices. Gateways and relays are always-on devices in the Wi-SUN network architecture, and low-power devices are end-node devices in the Wi-SUN network architecture. The gateway, relay and low-power devices are connected through a radio frequency link. The radio frequency link here refers to the data transmission path using radio frequency (RF).

[0115] It can be understood that the technical concept of the low-power device broadcast upgrade system based on the Wi-SUN network massive data mode provided in this embodiment is similar to the technical concept of the low-power device broadcast upgrade method based on the Wi-SUN network massive data mode described above, and this embodiment will not be repeated here.

[0116] Please see attached Figure 4 , Figure 4 A schematic diagram of the structure of an electronic device is provided as another embodiment of the present specification.

[0117] like Figure 4 As shown, the electronic device 400 may include: at least one processor 401 , at least one network interface 404 , a user interface 403 , a memory 405 , and at least one communication bus 402 .

[0118] The communication bus 402 may be used to realize the connection and communication among the above-mentioned components.

[0119] The user interface 403 may include buttons, and the optional user interface may also include a standard wired interface or a wireless interface.

[0120] The network interface 404 may include, but is not limited to, a Bluetooth module, an NFC module, a Wi-Fi module, etc.

[0121] Among them, the processor 401 may include one or more processing cores. The processor 401 uses various interfaces and lines to connect the various parts of the entire electronic device 400, and executes various functions and processes data of the electronic device 400 by running or executing instructions, programs, code sets or instruction sets stored in the memory 405, and calling data stored in the memory 405. Optionally, the processor 401 can be implemented in at least one hardware form of DSP, FPGA, and PLA. The processor 401 can integrate one or a combination of CPU, GPU, modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 401, and it can be implemented separately through a chip.

[0122] Among them, the memory 405 may include RAM or ROM. Optionally, the memory 405 includes a non-transitory computer-readable medium. The memory 405 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 405 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 405 may also be at least one storage device located away from the aforementioned processor 401. The memory 405 as a computer storage medium may include an operating system, a network communication module, a user interface module and an application. The processor 401 may be used to call the application stored in the memory 405 and execute the method in one or more of the above-mentioned embodiments.

[0123] Another embodiment of the present specification provides a computer-readable storage medium, which stores instructions, and when the instructions are executed on a computer or a processor, the computer or the processor executes one or more steps in the above embodiments. If the components of the above electronic device are implemented in the form of software functional units and predicted or used as independent downstream tasks, they can be stored in a computer-readable storage medium.

[0124] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of this specification is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through a computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that can be accessed by the computer or a data storage device such as a server or data center that contains one or more available media integrations. Available media may be magnetic media (eg, floppy disks, hard disks, tapes), optical media (eg, digital versatile discs (DVD)), or semiconductor media (eg, solid state drives (SSD)).

[0125] The above description is only the preferred embodiment disclosed in this application and the description of the technical principle used. Those skilled in the art should understand that the scope of protection involved in this disclosure is not limited to the technical solution formed by a specific combination of the above technical features, but also should cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this disclosure (but not limited to) to form a technical solution.

[0126] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

Claims

1. A low-power device broadcast upgrade method based on Wi-SUN network mass data mode, characterized in that: The following steps are involved: Step 102, constructing a Wi-SUN network architecture with low-power devices as end node devices and gateways and relays as always-on devices; Step 104, the remote server transmits and stores the upgrade package to the relay closest to the low-power device based on the logic broadcast of the always-on power device; Step 106, when the remote server determines that all preset message commands have been sent, it sends a sleep command; In step 106, issuing a sleep command includes: The remote server checks the firmware version information of the low-power device according to the push data of the low-power device, and compares the relationship between the current version of the low-power device and its known latest version, thereby identifying the low-power device that needs to be upgraded and determining the relay closest to the low-power device that needs to be upgraded, and then sends a sleep command to the relay closest to the low-power device that needs to be upgraded; Step 108, the relay closest to the low-power device intercepts the sleep command and determines whether it contains the upgrade package. When it contains the upgrade package, the relay closest to the low-power device schedules the low-power device to wake up, and the low-power device performs the upgrade operation based on the upgrade package at the scheduled wake-up time; when it does not contain the upgrade package, the low-power device executes the sleep command; Among them, in step 108, the relay closest to the low-power device schedules the low-power device to wake up, including: The relay closest to the low-power device sends the scheduled wake-up time and the time to try again if the discovery fails to the low-power device; Based on the scheduled wake-up time and the time to retry the discovery failure, the relay closest to the low-power device arranges the low-power device to wake up again in batches, including: Step 202: The relay closest to the low-power device arranges the first batch of low-power devices to initiate a discover to wake up at the scheduled wake-up time according to the maximum number of low-power devices that the relay can accommodate; Step 204, the low-power devices that failed to discover in the previous batch and the low-power devices that initiated the discovery to wake up after the previous batch of low-power devices started to be upgraded are arranged to be woken up again in the next batch based on the delay of the retry time of the discovery failure; Step 206, repeating step 204 until all low-power devices are successfully woken up; In step 108, the low-power device performs an upgrade operation based on the upgrade package at the scheduled wake-up time, including: Low-power devices automatically wake up according to the scheduled wake-up time; The relay closest to the low-power device transmits the upgrade package to the low-power device; After receiving and verifying the upgrade package, the low-power device performs an upgrade operation based on the upgrade package; After the low-power device upgrade operation is completed, the sleep command is executed.

2. The low-power device broadcast upgrade method based on Wi-SUN network mass data mode according to claim 1, characterized in that: Based on the scheduled wake-up time and the time to retry the discovery failure, the relay closest to the low-power device arranges the low-power device to wake up again in batches, including: Step 302: The relay closest to the low-power device arranges the first batch of low-power devices to initiate a discover to wake up at the scheduled wake-up time according to the preset number of low-power devices; Step 304: The remaining low-power devices, the low-power devices that failed to discover in the previous batch of low-power devices, and the low-power devices that initiated discover to wake up after the previous batch of low-power devices started to upgrade are arranged to be woken up again in the next batch based on the delay of the retry time of the discovery failure; Step 306, repeating step 304 until all low-power devices are successfully awakened.

3. The low-power device broadcast upgrade method based on Wi-SUN network mass data mode according to claim 2, characterized in that: After the low-power consumption device receives and verifies the upgrade package and performs the upgrade operation based on the upgrade package, the following steps are also included: The relay closest to the low-power device reports the upgrade result of the low-power device to the remote server; The remote server compares the upgrade result with the upgrade package version, and comprehensively determines the upgrade result of the low-power device based on the comparison result.

4. A low-power device broadcast upgrade system based on Wi-SUN network mass data mode, characterized in that: include: Network building module, used to build Wi-SUN network architecture with low-power devices as end node devices and gateways and relays as always-on devices; The remote server is used to transmit and store the upgrade package to the relay closest to the low-power device based on the logic broadcast of the always-on device, and issue a sleep command when it is determined that all preset message commands have been issued; The relay closest to the low-power device is used to intercept the sleep command and determine whether it contains the upgrade package. If it contains the upgrade package, it will schedule the low-power device to wake up. The low-power device is used to perform an upgrade operation based on the upgrade package at the scheduled wake-up time, and execute a sleep command when the relay closest to the low-power device does not contain the upgrade package itself; The remote server is used to perform the following steps: The remote server checks the firmware version information of the low-power device according to the push data of the low-power device, and compares the relationship between the current version of the low-power device and its known latest version, thereby identifying the low-power device that needs to be upgraded and determining the relay closest to the low-power device that needs to be upgraded, and then sends a sleep command to the relay closest to the low-power device that needs to be upgraded; The relay closest to the low power consumption device is used to perform the following steps: The relay closest to the low-power device sends the scheduled wake-up time and the time to try again if the discovery fails to the low-power device; Based on the scheduled wake-up time and the time to retry the discovery failure, the relay closest to the low-power device arranges the low-power device to wake up again in batches, including: Step 202: The relay closest to the low-power device arranges the first batch of low-power devices to initiate a discover to wake up at the scheduled wake-up time according to the maximum number of low-power devices that the relay can accommodate; Step 204, the low-power devices that failed to discover in the previous batch and the low-power devices that initiated the discovery to wake up after the previous batch of low-power devices started to be upgraded are arranged to be woken up again in the next batch based on the delay of the retry time of the discovery failure; Step 206, repeating step 204 until all low-power devices are successfully woken up; The low power consumption device is used to perform the following steps: Low-power devices automatically wake up according to the scheduled wake-up time; The relay closest to the low-power device transmits the upgrade package to the low-power device; After receiving and verifying the upgrade package, the low-power device performs an upgrade operation based on the upgrade package; After the low-power device upgrade operation is completed, the sleep command is executed.

5. An electronic device, characterized in that: including a processor and a memory; The processor is connected to the memory; The memory is used to store executable program code; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the low-power device broadcast upgrade method based on the Wi-SUN network mass data mode as described in any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the low-power device broadcast upgrade method based on the Wi-SUN network mass data mode is implemented as described in any one of claims 1 to 3.