A method, medium, and terminal for reporting power failure information based on Wi-SUN network
By employing delay and BitMap table management in the Wi-SUN network to control node transmission time and using unicast and broadcast methods to transmit power failure information, the problem of low success rate of power failure information transmission in the Wi-SUN network is solved, and efficient information reporting is achieved.
Patent Information
- Application Number
- CN202311290514.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-08
- Publication Date
- 2025-12-02
- Estimated Expiration
- 2043-10-08
AI Technical Summary
When a device loses power, the nodes simultaneously report power failure information in the existing Wi-SUN network, resulting in a large amount of data transmission and a low transmission success rate.
By calculating latency and managing the BitMap table, when a node first receives a power failure message, it calculates the latency based on the hierarchy and the number of child nodes, and transmits the power failure message using unicast and broadcast methods. It leverages the cross-level transmission characteristics of the Wi-SUN network to avoid network conflicts.
It effectively reduced the data transmission volume of the Wi-SUN network, increased the reporting rate of power outage information, reduced network conflicts, and improved the transmission success rate.
Smart Images

Figure CN117528624B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of communication technology, and in particular relates to a method, medium and terminal for reporting power failure information based on Wi-SUN network. Background Technology
[0002] Wi-SUN is a networking technology that extends from the physical layer to the transport layer. In recent years, based on its advanced networking and self-healing technologies and powerful security encryption mechanisms, it has been widely used in various fields, such as electricity meters, photovoltaic energy, and smart cities.
[0003] In many Wi-SUN technology applications, devices need to report power failures in various scenarios. When the external power supply to a device fails and loses power, additional circuitry is needed to maintain continuous power and report current data and the power failure event to the backend control center. Current Wi-SUN communication solutions typically require devices to have energy storage capacitors, enabling them to proactively report power failure information to the system for subsequent processing. In existing Wi-SUN communication solutions, each node in the Wi-SUN network has a unique IPv6 address, allowing direct communication with the management system. Power failure reporting is achieved by the node directly sending its own power failure information to the management system. However, this approach has the following drawbacks: Since the Wi-SUN solution uses a mesh network, when any node wants to transmit data to the management system, its transmission path in the Wi-SUN network starts from itself, transmits to its parent node, its parent node then transmits to its parent's parent node, and so on, until it is transmitted to the Wi-SUN network's Board Router (BR). From there, the BR transmits the data to the gateway, and finally to the management system. In this transmission method, any node transmitting power failure information requires the participation of all nodes on that link. If all nodes in the entire network experience a power failure at the same time, and all nodes need to send power failure information, the amount of data transmitted over the network is large, and the increased network collisions lead to a low transmission success rate. Patent application CN115802294A discloses a method, system, device, and medium for improving the power outage information reporting rate in a Wi-SUN network. The method includes: classifying nodes into first-type nodes and second-type nodes based on their type; first-type nodes transmitting power outage information via unicast, while second-type nodes transmit power outage information via broadcast; further classifying first-type nodes into hierarchical levels based on their level; first-type nodes at least one level apart transmitting power outage information in the same time slot; first-type nodes at adjacent levels transmitting power outage information in different time slots; power outage information transmitted by first-type nodes at the same level in the same time slot being aggregated to the same parent first-type node; and a border router acquiring the power outage information transmitted by the first-type and second-type nodes and reporting it to a management system. This patent involves numerous nodes, some of which have many subordinate nodes, resulting in complex and redundant power outage information reporting with low efficiency.
[0004] Therefore, how to reduce the amount of data transmitted over the network, thereby improving the reporting rate of power outage information in the Wi-SUN network, is a problem that urgently needs to be solved by those in this technical field. Summary of the Invention
[0005] To address the shortcomings of existing technologies, the purpose of this invention is to provide a method for reporting power outage information based on Wi-SUN networks, thereby solving the problems of large data transmission volume and low power outage information reporting rate in existing technologies. In addition, this invention also provides a medium and terminal for reporting power outage information based on Wi-SUN networks.
[0006] To solve the above-mentioned technical problems, the present invention adopts the following technical solution:
[0007] In a first aspect, the present invention provides a method for reporting power failure information based on a Wi-SUN network, comprising the following steps:
[0008] S10. When a node receives a power failure message for the first time, it calculates the delay time based on its own network level and the number of child nodes.
[0009] S20. While waiting for the delay time to be calculated in step S10, the node executes step S30. After the delay expires, the node executes step S40.
[0010] S30. The node listens for and receives power failure information from child nodes or neighboring nodes, and updates its own BitMap table accordingly.
[0011] S40. The node sends the BitMap table of power failure information to the link-local address of the parent node using unicast. If it receives an ACK confirmation signal from the parent node, it stops sending and proceeds to step S50. If it does not receive an ACK confirmation message from the upper-level node, it continues sending. If it fails to receive an ACK confirmation message from the upper-level node after three consecutive sending attempts, the sending fails and proceeds to step S60.
[0012] S50. The node listens for power failure information in the surrounding area for a certain period of time and updates the received power failure information to its own BitMap table. When the BitMap table is updated, step S40 is executed.
[0013] S60. The node uses broadcast to send the power outage diagram information to the network. After sending, step S70 is executed.
[0014] S70. The node listens for power outage information in the surrounding area for a certain period of time and updates the received power outage information to its own BitMap table. When the BitMap table is updated, step S60 is executed.
[0015] Furthermore, the delay time in step S10 is calculated using the following expression:
[0016] T1=(10-C l )*1000+C n *100
[0017] Among them, Cl C represents the network level of the node itself, with values ranging from [0, 10]. n The number of child nodes of a node is [0, 50], and T is the calculated delay time in milliseconds.
[0018] Furthermore, the BitMap table in step S30 satisfies the following mapping relationship between IP address and bitmap:
[0019] B(n) = A / 8
[0020] b(m) = Amod8
[0021] Where A represents the last 2 bytes of the node's IPv6 address, B(n) represents the nth byte of the BitMap table, and b(m) represents the mth bit of the nth byte of the BitMap table.
[0022] Furthermore, the certain time in steps S50 and S70 is calculated using the following expression:
[0023] T2 = (random()%10)*250 + 2500
[0024] In the formula, random() is a random function, and T2 is a certain time obtained from the calculation, in milliseconds.
[0025] Furthermore, in steps S50 and S70, the node listens for surrounding power outage information and updates it to its own BitMap table, specifically using the following rules:
[0026] After receiving a power failure message, if the BitMap table carried in the power failure message is inconsistent with the node's own BitMap table, it needs to forward the message; otherwise, it remains silent.
[0027] After receiving a power failure message, if the sender of the message is the parent node and the BitMap table contains the node's own BitMap table, then the node will stop sending power failure messages.
[0028] After receiving a power outage message, if the node has not experienced a power outage itself, it will continue to listen for 60 seconds. If the node's own BitMap table is not updated during this period, it will stop sending power outage messages.
[0029] Furthermore, after receiving the first power failure message, the border router starts a 60-second countdown. If a new BitMap table is received within 60 seconds, the border router updates the BitMap table in its own BitMap table and restarts the 60-second countdown. If the BitMap table is not updated within 60 seconds, the border router sends the power failure message to the management system according to the mapping relationship between the BitMap and the IP address.
[0030] In a second aspect, the present invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described above.
[0031] Thirdly, the present invention also provides an electronic terminal, comprising: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to cause the terminal to perform the method described above.
[0032] Compared with existing technologies, the method, medium, and terminal for reporting power failure information based on Wi-SUN networks provided by this invention have at least the following advantages:
[0033] Existing Wi-SUN networks suffer from large data transmission volumes and increased network collisions, leading to low transmission success rates. This invention offers a simple and efficient process. By controlling the transmission time of nodes at different levels within the Wi-SUN network—prioritizing transmission from nodes at deeper network levels and delaying transmission from nodes at shallower levels—this invention leverages the non-interference characteristic of cross-level transmission in the Wi-SUN network to accelerate the overall power failure information reporting efficiency. Nodes aggregate power failure information received via unicast or broadcast, effectively reducing the overall data transmission volume of the Wi-SUN network and thus significantly improving the power failure information reporting rate of each node. Attached Figure Description
[0034] To more clearly illustrate the solution of the present invention, a brief introduction will be given to the drawings used in the description of the embodiments below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0035] Figure 1 A flowchart of a method for reporting power failure information based on a Wi-SUN network, provided in an embodiment of the present invention;
[0036] Figure 2 This is a calculation diagram of step S10 in a method for reporting power loss information based on a Wi-SUN network provided in an embodiment of the present invention;
[0037] Figure 3 A schematic diagram illustrating unicast and broadcast transmission of power loss information in a method for reporting power loss information based on a Wi-SUN network, provided in an embodiment of the present invention;
[0038] Figure 4 This is a mid-section diagram illustrating a method for reporting power failure information based on a Wi-SUN network, as provided in an embodiment of the present invention. Detailed Implementation
[0039] To facilitate understanding of the present invention, a more complete description will be given below with reference to the accompanying drawings. Preferred embodiments of the invention are shown in the drawings. However, the invention can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided to provide a thorough and complete understanding of the disclosure of the invention.
[0040] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
[0041] This invention provides a method for reporting power failure information based on a Wi-SUN network, applied during Wi-SUN network communication. The method for reporting power failure information based on a Wi-SUN network includes the following steps:
[0042] S10. When a node receives a power failure message for the first time, it calculates the delay time based on its own network level and the number of child nodes.
[0043] S20. The node executes step S30 while waiting for the delay time to be calculated in step S10. After the delay expires, it executes step S40.
[0044] S30. The node listens for and receives power failure information from child nodes or neighboring nodes, and updates its own BitMap table accordingly.
[0045] S40. The node sends the BitMap table of power failure information to the link-local address of the parent node using unicast. If it receives an ACK confirmation signal from the parent node, it stops sending and proceeds to step S50. If it does not receive an ACK confirmation message from the upper-level node, it continues sending. If it fails to receive an ACK confirmation message from the upper-level node after three consecutive sending attempts, the sending fails and proceeds to step S60.
[0046] S50. The node listens for power failure information in the surrounding area for a certain period of time and updates the received power failure information to its own BitMap table. When the BitMap table is updated, step S40 is executed.
[0047] S60. The node uses broadcast to send the power outage diagram information to the network. After sending, step S70 is executed.
[0048] S70. The node listens for power outage information in the surrounding area for a certain period of time and updates the received power outage information to its own BitMap table. When the BitMap table is updated, step S60 is executed.
[0049] The present invention adopts a hierarchical reporting method, which can significantly reduce the competition for time slot resources in the Wi-SUN network, accelerate the overall power failure information reporting efficiency of the network, effectively reduce the amount of data transmission, and thus improve the reporting rate of power failure information of each node in the Wi-SUN network.
[0050] To enable those skilled in the art to better understand the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings.
[0051] This invention provides a method for reporting power failure information based on Wi-SUN networks, applied in the Wi-SUN network communication process, combined with... Figures 1 to 4 In this embodiment, the method for reporting power outage information based on the Wi-SUN network includes the following steps:
[0052] S10. When a node receives a power failure message for the first time, it calculates the delay time based on its own network level and the number of child nodes.
[0053] Specifically, when a node first receives a power outage notification, it calculates the delay time based on its own network hierarchy and the number of child nodes. During the delay period, it continuously monitors surrounding power outage information and aggregates power outage map information. The delay time is calculated using the following expression:
[0054] T1=(10-C l )*1000+C n *100
[0055] Among them, C l C represents the network level of the node itself, with values ranging from [0, 10]. n The number of child nodes of a node is [0, 50], and T is the calculated delay time in milliseconds.
[0056] In this embodiment, if C l If it is greater than 10, then C l Take 10.
[0057] Specifically, such as Figure 2 As shown, after a node first receives a power outage message, it calculates the delay time. NODE1 is in the first level, and its calculated delay is: (10-1)*1000+1*200=9200, in milliseconds. NODE2 is in the first level, and its calculated delay is: (10-1)*1000+2*200=9400, in milliseconds.
[0058] S20. The node executes step S30 while waiting for the delay time to be calculated in step S10. After the delay expires, it executes step S40.
[0059] S30. The node listens for and receives power failure information from child nodes or neighboring nodes, and updates its own BitMap table accordingly.
[0060] Specifically, in step S30, the BitMap table itself satisfies the following mapping relationship between IP address and bitmap:
[0061] Where A represents the last 2 bytes of the node's IPv6 address, B(n) represents the nth byte of the BitMap table, and b(m) represents the mth bit of the nth byte of the BitMap table.
[0062] S40. The node sends the BitMap table of power failure information to the link-local address of the parent node using unicast. If it receives an ACK confirmation signal from the parent node, it stops sending and proceeds to step S50. If it does not receive an ACK confirmation message from the upper-level node, it continues sending. If it fails to receive an ACK confirmation message from the upper-level node after three consecutive sending attempts, the sending fails and proceeds to step S60.
[0063] Specifically, during node listening, if the bitmap is updated, transmission will resume; if the listened bitmap information matches its own bitmap information, transmission will stop.
[0064] It should be noted that after a node successfully sends a power-down message using unicast for the first time, if it fails to receive an ACK confirmation signal from its parent node three consecutive times during subsequent transmissions, the node will then use broadcast. In unicast mode, the node only transmits the power-down information to the next higher-level node. After transmitting the power-down information, it receives an ACK confirmation signal from the higher-level node and stops sending the same power-down information. In broadcast mode, the node transmits the power-down information to the border router or other surrounding nodes.
[0065] Specifically, such as Figure 3 As shown, node NODE4 initially unicasts the power outage information to NODE2. After failing to receive an ACK confirmation message from NODE2 three times, it broadcasts the power outage information to surrounding nodes. NODE1 receives the power outage information from NODE4, aggregates it, and then transmits it to the border router. If a node hears power outage information that matches its own before transmitting its own information, it stops transmitting its own power outage information.
[0066] S50. The node listens for power failure information in the surrounding area for a certain period of time and updates the received power failure information to its own BitMap table. When the BitMap table is updated, step S40 is executed.
[0067] Specifically, the certain time in step S50 is calculated using the following expression:
[0068] T2 = (random()%10)*250 + 2500
[0069] In the formula, random() is a random function, and T2 is a certain time obtained from the calculation, in milliseconds.
[0070] S60. The node uses broadcast to send the power outage diagram information to the network. After sending, step S70 is executed.
[0071] S70. The node listens for power outage information in the surrounding area for a certain period of time and updates the received power outage information to its own BitMap table. When the BitMap table is updated, step S60 is executed.
[0072] Specifically, the certain time in step S70 is calculated using the following expression:
[0073] T2 = (random()%10)*250 + 2500
[0074] In the formula, random() is a random function, and T2 is a certain time obtained from the calculation, in milliseconds.
[0075] Furthermore, in this embodiment, the node listens for surrounding power outage information and updates its own BitMap table in steps S50 and S70, specifically using the following rules:
[0076] After receiving a power failure message, if the BitMap table carried in the power failure message is inconsistent with the node's own BitMap table, it needs to forward the message; otherwise, it remains silent.
[0077] After receiving a power failure message, if the sender of the message is the parent node and the BitMap table contains the node's own BitMap table, then the node will stop sending power failure messages.
[0078] After receiving a power outage message, if the node has not experienced a power outage itself, it will continue to listen for 60 seconds. If the node's own BitMap table is not updated during this period, it will stop sending power outage messages.
[0079] Furthermore, in this embodiment, after receiving the first power outage information, the border router starts a 60-second countdown. If a new BitMap table is received within 60 seconds, the border router updates its own BitMap table and restarts the 60-second countdown. If the BitMap table is not updated within 60 seconds, the border router sends the power outage information to the management system according to the mapping relationship between the BitMap and the IP address. It can be seen that when a node transmits power outage map information to its parent node, it adopts a progressively upward message transmission method and implements power outage information aggregation and waiting avoidance, reducing the number of communications with the parent node and avoiding communication conflicts and power consumption problems when multiple nodes report data simultaneously.
[0080] Specifically, such as Figure 4 As shown, the bitmap information contains N bytes, and each byte contains 8 bits. The node device with IP address 0 corresponds to bit 0 of Byte1, and bit 7 of Byte1 corresponds to the node with IP address 7. "1" on each bit represents that the node sent a power failure message, and "0" represents that the node did not lose power.
[0081] This invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the methods in this embodiment.
[0082] This invention also provides an electronic terminal, including: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal performs any of the methods in this embodiment.
[0083] As will be understood by those skilled in the art, the computer-readable storage medium described in this embodiment allows for the implementation of all or part of the steps in the above method embodiments by computer program-related hardware. The aforementioned computer program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0084] The electronic terminal provided in this embodiment includes a processor, a memory, a transceiver, and a communication interface. The memory and the communication interface are connected to the processor and the transceiver and complete communication between them. The memory is used to store computer programs, the communication interface is used to perform communication, and the processor and the transceiver are used to run the computer programs, so that the electronic terminal performs the steps of the above method.
[0085] The method, medium, and terminal for reporting power outage information based on the Wi-SUN network described in the above embodiments, compared with the prior art, suffer from low transmission success rates due to the large amount of data transmitted in the existing Wi-SUN network and increased network collisions. The present invention offers a simple process and high efficiency. By controlling the transmission time of nodes at different levels in the Wi-SUN network, nodes at deeper network levels send first, while nodes at shallower network levels send later. Utilizing the characteristic that cross-level transmission in the Wi-SUN network does not interfere with each other, the overall power outage information reporting efficiency of the Wi-SUN network is accelerated. Nodes aggregate power outage information received via unicast or broadcast, effectively reducing the overall data transmission volume of the Wi-SUN network, thereby significantly improving the power outage information reporting rate of each node in the Wi-SUN network.
[0086] Obviously, the embodiments described above are merely preferred embodiments of the present invention, and not all embodiments. The accompanying drawings illustrate preferred embodiments of the present invention, but do not limit the scope of the patent. The present invention can be implemented in many different forms; rather, these embodiments are provided to provide a more thorough and complete understanding of the disclosure of the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing specific embodiments, or make equivalent substitutions for some of the technical features. Any equivalent structures made using the content of this specification and drawings, directly or indirectly applied to other related technical fields, are similarly within the scope of patent protection of this invention.
Claims
1. A method for reporting power failure information based on a Wi-SUN network, characterized in that, Includes the following steps: S10. When a node receives a power failure message for the first time, it calculates the delay time based on its own network level and the number of child nodes. S20. While waiting for the delay time to be calculated in step S10, the node executes step S30. After the delay expires, the node executes step S40. S30. The node listens for and receives power failure information from child nodes or neighboring nodes, and updates its own BitMap table accordingly. S40. The node sends the BitMap table of power failure information to the link-local address of the parent node using unicast. If it receives an ACK confirmation signal from the parent node, it stops sending and proceeds to step S50. If it does not receive an ACK confirmation message from the upper-level node, it continues sending. If it fails to receive an ACK confirmation message from the upper-level node after three consecutive sending attempts, the sending fails and proceeds to step S60. S50. The node listens for power failure information in the surrounding area for a certain period of time and updates the received power failure information to its own BitMap table. When the BitMap table is updated, step S40 is executed. S60. The node uses broadcast to send the power outage diagram information to the network. After sending, step S70 is executed. S70. The node listens for power outage information in the surrounding area for a certain period of time and updates the received power outage information to its own BitMap table. When the BitMap table is updated, step S60 is executed.
2. The method for reporting power failure information based on a Wi-SUN network according to claim 1, characterized in that, The delay time in step S10 is calculated using the following expression: T1=(10-C l )*1000+C n *100 Among them, C l C represents the network level of the node itself, with values ranging from [0, 10]. n The number of child nodes of a node is [0, 50], and T is the calculated delay time in milliseconds.
3. The method for reporting power failure information based on a Wi-SUN network according to claim 1, characterized in that, In step S30, the BitMap table itself satisfies the following IP address to bitmap mapping relationship: B(n) = A / 8 b(m) = Amod8 Where A represents the last 2 bytes of the node's IPv6 address, B(n) represents the nth byte of the BitMap table, and b(m) represents the mth bit of the nth byte of the BitMap table.
4. The method for reporting power failure information based on a Wi-SUN network according to claim 1, characterized in that, The certain time in steps S50 and S70 is calculated using the following expression: T2 = (random()%10)*250 + 2500 In the formula, random() is a random function, and T2 is a certain time obtained from the calculation, in milliseconds.
5. The method for reporting power failure information based on a Wi-SUN network according to claim 1, characterized in that, In steps S50 and S70, the node listens for surrounding power outage information and updates it to its own BitMap table, specifically using the following rules: After receiving a power failure message, if the BitMap table carried in the power failure message is inconsistent with the node's own BitMap table, it needs to forward the message; otherwise, it remains silent. After receiving a power failure message, if the sender of the message is the parent node and the BitMap table contains the node's own BitMap table, then the node will stop sending power failure messages. After receiving a power outage message, if the node has not experienced a power outage itself, it will continue to listen for 60 seconds. If the node's own BitMap table is not updated during this period, it will stop sending power outage messages.
6. The method for reporting power failure information based on a Wi-SUN network according to claim 1, characterized in that, After receiving the first power outage message, the border router starts a 60-second countdown. If a new BitMap table is received within 60 seconds, the border router updates the BitMap table in its own BitMap table and restarts the 60-second countdown. If the BitMap table is not updated within 60 seconds, the border router sends the power outage message to the management system according to the mapping relationship between the BitMap and the IP address.
7. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1 to 6.
8. An electronic terminal, characterized in that, include: Processor and memory; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to cause the terminal to perform the method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Method, system, equipment and medium for improving power failure information report rate of Wi-SUN (Wireless Subscriber Identity Network)
CN115802294A
Asynchronous frequency hopping networking communication method for wireless Internet of Things
CN116489801A