Wireless networking method of power system, power system, equipment and medium

By parsing network packets to determine device relationships and dynamically updating the set of network devices in the power system, direct communication between devices is achieved, solving the problem of extended data transmission paths in existing technologies and improving communication efficiency and stability.

CN121968243APending Publication Date: 2026-05-01SHANGHAI SIGE DIGITAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHANGHAI SIGE DIGITAL TECHNOLOGY CO LTD
Filing Date
2026-01-23
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

In existing wireless networking methods, the data transmission path is extended, the communication efficiency is low, and multiple levels of upstream devices are required for relay, resulting in latency and low efficiency.

Method used

By receiving and parsing network messages from the target power equipment, the direct sending device and the initial sending device are determined, and the network device set is dynamically updated to achieve direct communication and network construction between devices, shortening the data transmission path and reducing multi-hop forwarding delay.

Benefits of technology

It improves the communication efficiency of the power system, reduces communication latency, enhances the stability and accuracy of data transmission, and has redundancy backup capabilities and anti-interference capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121968243A_ABST
    Figure CN121968243A_ABST
Patent Text Reader

Abstract

The invention discloses a wireless networking method of a power system, the power system, equipment and a medium, and belongs to the technical field of wireless communication. The method comprises the following steps: receiving and analyzing a networking message by target power equipment, and determining direct sending equipment and initial sending equipment of the networking message; wherein the target power equipment is any power equipment in the power system, and the direct sending equipment is power equipment capable of directly performing WiFi communication with the target power equipment in the power system; and if the initial sending equipment does not exist in the target networking equipment set of the target power equipment, adding the initial sending equipment into the target networking equipment set of the target power equipment, and marking the direct sending equipment in the target networking equipment set as forwarding equipment to the initial sending equipment. According to the invention, through networking construction among the devices, additional deployment of complex networking control devices is not needed, the data transmission path is shortened, the transmission delay caused by multi-hop forwarding is reduced, and the communication efficiency of the power system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of wireless communication technology, and in particular relates to a wireless networking method, power system, equipment and medium for a power system. Background Technology

[0002] Wireless networking refers to connecting multiple devices together through wireless communication technology to form a network system that enables data transmission and sharing, thereby meeting people's network usage needs in different environments.

[0003] In related technologies, wireless networking typically employs a nested networking mode of AP (Access Point) + STA (Station). Because this mode connects each device to the AP port of the next-level device in STA mode, forming a hierarchical cascaded network structure, a master route must be pre-configured as the network starting point. Data exchange between devices must be relayed through the AP of the next-level device. This multi-hop forwarding mechanism leads to extended data transmission paths, significantly impacting communication efficiency. Summary of the Invention

[0004] This application aims to address at least one of the technical problems existing in the prior art. To this end, this application proposes a wireless networking method, power system, equipment, and medium for power systems to improve communication efficiency.

[0005] In a first aspect, this application provides a wireless networking method for a power system, the power system including at least two power devices capable of direct WiFi communication, the power devices being configured with a networking device set; the method includes: The target power device receives and parses the networking message to determine the direct sending device and the initial sending device of the networking message; wherein, the target power device is any power device in the power system, and the direct sending device is a power device in the power system that can directly communicate with the target power device via WiFi; If the initial transmitting device is not present in the target network device set of the target power equipment, the initial transmitting device is added to the target network device set of the target power equipment, and the direct transmitting device is marked as a forwarding device to the initial transmitting device in the target network device set.

[0006] According to the wireless networking method for power systems in this application, by receiving and parsing networking messages on the target power equipment, the direct transmitting device and the initial transmitting device can be identified, and the communication relationship between the devices can be clarified. When the initial transmitting device is not present in the target networking device set of the target power equipment, the initial transmitting device is accurately added to the target networking device set, and the direct transmitting device is marked as a forwarding device to the initial transmitting device. The communication forwarding paths between devices are collected. It does not rely on a pre-set main route and hierarchical cascading structure, nor does it require data to be relayed through multiple upper-level devices. Based on the WiFi direct communication capability of the power equipment itself and the dynamic update of the networking device set, direct communication and networking between devices can be realized. There is no need to deploy additional complex networking control equipment, which shortens the data transmission path, reduces the transmission delay caused by multi-hop forwarding, and improves the communication efficiency of the power system.

[0007] According to one embodiment of this application, the method further includes: Extract the first link quality from the network packets; Calculate the quality of the second link between the target power equipment and the direct transmitting equipment; Based on the first link quality and the second link quality, the third link quality from the initial transmitting device to the target power device via the forwarding device is calculated; Establish a correspondence between the initial transmitting device, the forwarding device, and the third link quality in the target network device set.

[0008] In this embodiment, by extracting the link quality from the network packets, calculating the link quality between devices, and combining them to obtain the third link quality at both ends of the link, and establishing the association between the devices and the corresponding link quality in the network device set, the power system can select the communication path according to the link quality, further reducing communication latency and improving the stability of data transmission.

[0009] According to one embodiment of this application, based on the formula:

[0010] or

[0011] Calculate the quality of the second link between the target power equipment and the direct transmitting equipment; in, Indicates the quality of the second link. , , Indicates the weighting coefficient. Indicates signal strength. This indicates the maximum number of times the data can be forwarded. This indicates the number of times the data has been forwarded. This indicates the packet loss rate.

[0012] According to one embodiment of this application, based on the formula:

[0013] or

[0014] The quality of the third link between the initial transmitting device and the target power device is calculated. in, Indicates the quality of the third link. , Indicates the weighting coefficient. Indicates the quality of the first link. This indicates the quality of the second link.

[0015] According to one embodiment of this application, the method further includes: Determine whether the network packet needs to be forwarded; If the network packet needs to be forwarded, the quality of the third link is written into the network packet to override the quality of the first link; and the device identifier of the direct sending device is written into the network packet, and the network packet is forwarded to the destination power equipment in the power system.

[0016] In this embodiment, by determining whether the networking message needs to be forwarded, when it is determined that forwarding is required, the calculated third link quality is written into the networking message to overwrite the original first link quality, and the device identifier of the directly sending device is written into the message and forwarded to the destination power equipment. This realizes the dynamic updating of information in the networking message, enabling the destination power equipment to accurately obtain the link quality information of the current transmission link and the forwarding device information, thereby improving the accuracy of network construction.

[0017] According to one embodiment of this application, the method further includes: If the initial transmitting device exists in the target network device set of the target power equipment, and the direct transmitting device is inconsistent with the forwarding device to the initial transmitting device in the target network device set, then search for the backup forwarding device set of the initial transmitting device in the target network device set. If the direct sending device is not present in the set of backup forwarding devices, the direct sending device is added to the set of backup forwarding devices.

[0018] In this embodiment, when an initial transmitting device already exists in the target network device set of the target power equipment, and the current direct transmitting device is inconsistent with the forwarding device to the initial transmitting device recorded in the set, the backup forwarding device set of the initial transmitting device is searched, and added if the current direct transmitting device does not exist in the set. This enriches the communication forwarding path between the initial transmitting device and the target power equipment, reduces communication interruption problems caused by single forwarding device failure or link anomaly, and enhances the redundancy backup capability and anti-interference ability of the Rigao power system network.

[0019] According to one embodiment of this application, the method further includes: When the direct transmitting device is consistent with the forwarding device to the initial transmitting device in the target network device set, the quality of the third link is updated.

[0020] In this embodiment, by updating the third link quality when the direct transmitting device is consistent with the forwarding device in the target network device set that leads to the initial transmitting device, the link quality information from the initial transmitting device to the target power device via the forwarding device can be dynamically updated, enabling the power system to select communication paths based on the new link quality, thereby further improving the stability of power system communication.

[0021] According to one embodiment of this application, the method further includes: At target intervals, check the status of each power device in the target network device set. If the forwarding device to the initial sending device is offline, select the backup forwarding device with the highest fourth link quality from the backup forwarding device set of the initial sending device to replace the forwarding device.

[0022] In this embodiment, by periodically checking the status of the network devices, offline faults of the forwarding devices leading to the initial transmitting device can be detected in a timely manner. After offline detection, the backup device with the highest link quality is selected from the set of backup forwarding devices for replacement, which can ensure the transmission performance of the communication link after the switch and improve the stability of communication between the initial transmitting device and the target power equipment.

[0023] According to one embodiment of this application, the method further includes: If the backup forwarding device set of the initial sending device is empty, then the forwarding device and the quality of the third link in the target networking device set will be cleared.

[0024] In this embodiment, by clearing the forwarding devices and third link quality in the target network device set when the backup forwarding device set of the initial sending device is empty, invalid link records can be reduced, making the link information in the network device set available and improving the accuracy of power system communication path selection.

[0025] According to one embodiment of this application, the method further includes: At target intervals, check the status of each power device in the target network device set. If the forwarding device to the initial sending device is online, remove the offline backup forwarding device from the backup forwarding device set. The target backup forwarding device with the highest quality for the fourth link is determined from the set of backup forwarding devices; If the fourth link quality of the target backup forwarding device is greater than the third link quality of the forwarding device, the target backup forwarding device replaces the forwarding device, and the fourth link quality replaces the third link quality.

[0026] In this embodiment, by periodically checking the status of the network devices, offline devices in the backup forwarding device set are promptly cleared when the forwarding device is online, ensuring that the device status in the backup forwarding device set is valid. The target backup device with the highest link quality is selected from the backup device set and replaced when the link quality is better than the current forwarding device. This can improve the transmission performance of the communication link after the switchover, thereby improving the communication efficiency between the initial sending device and the target power device.

[0027] Secondly, this application provides a power system including at least two power devices capable of direct WiFi communication, wherein the power devices are configured with a network device set; any one of the power devices in the power system is used to execute the wireless networking method of the power system described above.

[0028] According to the power system of this application, by receiving and parsing network messages by the target power equipment, the direct transmitting device and the initial transmitting device can be identified, and the communication relationship between the devices can be clarified. When the initial transmitting device is not present in the target network device set of the target power equipment, the initial transmitting device is accurately added to the target network device set, and the direct transmitting device is marked as a forwarding device to the initial transmitting device. The communication forwarding path between devices is collected. It does not rely on a pre-set main route and hierarchical cascading structure, nor does it require data to be relayed through multiple upper-level devices. Based on the WiFi direct communication capability of the power equipment itself and the dynamic update of the network device set, direct communication and network construction between devices can be realized. There is no need to deploy additional complex network control equipment, which shortens the data transmission path, reduces the transmission delay caused by multi-hop forwarding, and improves the communication efficiency of the power system.

[0029] Thirdly, this application provides a power device, including a WiFi module and a controller; The controller is used to execute the wireless networking method of the power system described above.

[0030] Fourthly, this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the aforementioned wireless networking method for a power system.

[0031] Fifthly, this application provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the aforementioned wireless networking method for a power system.

[0032] Sixthly, this application provides a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the above-mentioned wireless networking method for power systems.

[0033] In a seventh aspect, this application provides a computer program product, including a computer program that, when executed by a processor, implements the aforementioned wireless networking method for a power system.

[0034] The above-described one or more technical solutions in the embodiments of this application have at least one of the following technical effects: According to the wireless networking method for power systems in this application, by receiving and parsing networking messages on the target power equipment, the direct transmitting device and the initial transmitting device can be identified, and the communication relationship between the devices can be clarified. When the initial transmitting device is not present in the target networking device set of the target power equipment, the initial transmitting device is accurately added to the target networking device set, and the direct transmitting device is marked as a forwarding device to the initial transmitting device. The communication forwarding paths between devices are collected. It does not rely on a pre-set main route and hierarchical cascading structure, nor does it require data to be relayed through multiple upper-level devices. Based on the WiFi direct communication capability of the power equipment itself and the dynamic update of the networking device set, direct communication and networking between devices can be realized. There is no need to deploy additional complex networking control equipment, which shortens the data transmission path, reduces the transmission delay caused by multi-hop forwarding, and improves the communication efficiency of the power system.

[0035] In some embodiments, by extracting the link quality from the network packets, calculating the link quality between devices, and combining them to obtain the third link quality at both ends of the link, and establishing an association between the devices and the corresponding link quality in the network device set, the power system can select the communication path according to the link quality, further reducing communication latency and improving the stability of data transmission.

[0036] In some embodiments, by determining whether a network packet needs to be forwarded, if it is determined that forwarding is required, the calculated third link quality is written into the network packet to overwrite the original first link quality, and the device identifier of the directly sending device is written into the packet before forwarding it to the destination power equipment. This realizes the dynamic updating of information in the network packet, enabling the destination power equipment to accurately obtain the link quality information of the current transmission link and the forwarding device information, thereby improving the accuracy of network construction.

[0037] In some embodiments, when an initial transmitting device already exists in the target network device set of the target power equipment, and the current direct transmitting device is inconsistent with the forwarding device to the initial transmitting device recorded in the set, the backup forwarding device set of the initial transmitting device is searched, and added if the current direct transmitting device does not exist in the set. This can enrich the communication forwarding path between the initial transmitting device and the target power equipment, reduce communication interruption problems caused by single forwarding device failure or link anomaly, and enhance the redundancy backup capability and anti-interference of the Rigao power system network.

[0038] In some embodiments, by updating the third link quality when the direct transmitting device is consistent with the forwarding device in the target network device set that leads to the initial transmitting device, the link quality information from the initial transmitting device to the target power device via the forwarding device can be dynamically updated, enabling the power system to select communication paths based on the new link quality, thereby further improving the stability of power system communication.

[0039] In some embodiments, by periodically checking the status of the network devices, offline faults of the forwarding devices leading to the initial transmitting device can be detected in a timely manner. After offline detection, the backup device with the highest link quality is selected from the set of backup forwarding devices for replacement, which can ensure the transmission performance of the communication link after the switch and improve the stability of communication between the initial transmitting device and the target power equipment.

[0040] In some embodiments, by clearing the forwarding devices and third link quality in the target network device set when the backup forwarding device set of the initial sending device is empty, invalid link records can be reduced, making the link information in the network device set available and improving the accuracy of power system communication path selection.

[0041] In some embodiments, by periodically checking the status of network devices, offline devices in the backup forwarding device set are promptly cleared when the forwarding device is online, so that the device status in the backup forwarding device set is effective. The target backup device with the highest link quality is selected from the backup device set and replaced when the link quality is better than the current forwarding device. This can improve the transmission performance of the communication link after the switchover, thereby improving the communication efficiency between the initial sending device and the target power device.

[0042] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description

[0043] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0044] Figure 1 This is a flowchart illustrating the wireless networking method for a power system provided in an embodiment of this application; Figure 2 This is one of the structural schematic diagrams of the power system provided in the embodiments of this application; Figure 3 This is the second schematic diagram of the power system provided in the embodiments of this application; Figure 4 This is a scenario example of the wireless networking process of a power system provided in the embodiments of this application; Figure 5 This is a schematic diagram of the process for replacing the backup forwarding device provided in the embodiments of this application; Figure 6 This is the third schematic diagram of the power system provided in the embodiments of this application; Figure 7 This is the fourth schematic diagram of the structure of the power system provided in the embodiments of this application; Figure 8 This is the fifth schematic diagram of the power system provided in the embodiments of this application; Figure 9 This is the sixth schematic diagram of the power system provided in the embodiments of this application; Figure 10 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0045] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0046] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0047] The following description, in conjunction with the accompanying drawings, details the wireless networking method, power system, equipment, and medium for power systems provided in this application through specific embodiments and application scenarios.

[0048] The wireless networking method for power systems provided in this application can be widely applied to various power systems related to power production, transmission, distribution, and monitoring and control, including new energy power generation systems, traditional power distribution systems, power storage systems, and integrated energy management systems. New energy power generation systems can include photovoltaic grid-connected power generation systems, wind power grid-connected power generation systems, and integrated photovoltaic-storage-charging systems. These power systems typically contain a large number of distributed devices, requiring data interaction between devices and information communication with the monitoring center. Traditional power distribution systems can include urban distribution network systems and industrial park distribution systems, involving communication needs of distributed terminals such as distribution switches, ring main units, and distribution transformer monitoring equipment. Of course, it can also be applied to other power systems, and this application does not limit this application.

[0049] The wireless networking method for power systems provided in this application adopts a WiFi networking architecture. Each power device in the power system is equipped with a WiFi module, supporting the 802.11 protocol, and capable of communication via WiFi. Depending on the power system, the power devices can be of different types. For example, in a photovoltaic grid-connected power generation system, the power devices may include photovoltaic inverters, photovoltaic module monitors, combiner boxes, grid-connected switches, etc.; in a wind power grid-connected power generation system, the power devices may include wind turbine controllers, pitch system actuators, yaw system monitoring equipment, wind power combiner equipment, etc.; in a power energy storage system, the power devices may include energy storage converters, battery management systems, energy storage battery pack monitoring units, energy storage system operation and maintenance terminals, etc.

[0050] It should be noted that a power system includes at least two power devices capable of direct WiFi communication. Direct WiFi communication means that data can be transmitted directly between devices without the need for intermediaries. A power system may also contain two or more power devices that cannot directly communicate via WiFi.

[0051] In this embodiment, the power equipment is configured with a network device set. The network device set is a data set storing network association information of the power equipment, used to record relevant information of other power equipment within the power system that is network-associated with the current power equipment. Data elements of the network device set include, but are not limited to: device identifiers of associated power equipment (such as device SN (Serial Number), MAC (Media Access Control) address, etc.), and device identifiers of forwarding devices to associated power equipment (i.e., the device identifiers of intermediate devices that data must pass through when the current power equipment communicates indirectly with associated power equipment). The network device set of each power equipment can gradually add new associated power equipment information or update existing associated power equipment information as the networking process progresses.

[0052] The wireless networking method for power systems provided in this application embodiment can be executed by an electronic device or a functional module or entity in an electronic device that can implement the wireless networking method for power systems. The electronic device mentioned in this application embodiment can be a target power device, which can be any power device in the power system. The wireless networking method for power systems provided in this application embodiment is described below using an electronic device as the execution subject as an example.

[0053] like Figure 1 As shown, the wireless networking method for this power system includes steps 110 and 120.

[0054] Step 110: The target power device receives and parses the networking message to determine the direct sending device and the initial sending device of the networking message; wherein, the target power device is any power device in the power system, and the direct sending device is any power device in the power system that can directly communicate with the target power device via WiFi.

[0055] In this embodiment of the application, the target power device is any power device in the power system. For example, in a star topology network, such as... Figure 2 As shown, the power system includes power devices A1, A2, and A3. A1 and A2, and A1 and A3 can communicate directly, while A2 and A3 cannot communicate directly. A1, A2, and A3 can all serve as target power devices. In a mesh topology network, such as... Figure 3As shown, the power system includes power equipment A1, A2 and A3. A1, A2 and A3 can communicate directly with each other, and A1, A2 and A3 can all be used as target power equipment.

[0056] Networking messages are data carriers exchanged by power equipment during the networking process. They are generated by the initial sending device according to a preset networking communication protocol. The networking messages carry networking information such as the unique identifier of the initial sending device, the unique identifier of the direct sending device, and the message generation time.

[0057] When the target power equipment is in a network-ready state, the WiFi module will continuously monitor the WiFi communication channel in the area. When it detects a network message transmitted in the channel, it will receive the network message, disassemble and extract information from the network message, and determine the direct sending device and the initial sending device of the network message based on the identifier carried in the network equipment.

[0058] In this context, the direct transmitting device refers to a power device in the power system capable of directly communicating with the target power device via WiFi. This means that network packets are transmitted directly from this power device to the target power device, without any other intermediate forwarding devices between them. For example... Figure 2 In the star topology network shown, if the target power device is A3, and the network message received by A3 is directly sent by A1, then A1 is the direct sending device of the network message.

[0059] The initial sending device is the power equipment that initiates this network message transmission, for example, Figure 2 In the star topology network shown, A2 generates a networking message and sends it directly to A1. At this time, A2 is the initial sending device, and A2 is also the direct sending device for A1. If the networking message generated by A2 is forwarded to A3 by A1, then for the target power equipment A3, the initial sending device is still A2, and the direct sending device is A1.

[0060] Step 120: If the initial transmitting device does not exist in the target network device set of the target power equipment, add the initial transmitting device to the target network device set of the target power equipment, and mark the direct transmitting device as a forwarding device to the initial transmitting device in the target network device set.

[0061] In this embodiment, the target networking device set is a set of networking devices for the target power equipment, used to record information about other power equipment that the target power equipment has identified and that can perform networking interactions. After parsing and determining the initial transmitting device and the direct transmitting device, the target power equipment can retrieve whether the initial transmitting device exists in the target networking device set based on the device identifier of the initial transmitting device.

[0062] If the search reveals that the initial transmitting device is not present in the target network device set, it indicates that the initial transmitting device has not been added to the target power equipment's network architecture. The target power equipment needs to add the initial transmitting device to the target network device set. For example, basic information such as the initial transmitting device's device identifier and device type can be entered into the target network device set, making the initial transmitting device a network-associated device of the target power equipment. Furthermore, within the target network device set, direct transmitting devices can be marked as forwarding devices to the initial transmitting device, establishing an association mapping between the initial transmitting device and the forwarding device. For example, this association mapping can be stored in the initial transmitting device directory within the target network device set.

[0063] It should be noted that the device that directly sends the network packet and the device that initially sends the packet can be the same device or different devices.

[0064] by Figure 2 Taking the star topology network shown as an example, when A2 generates a network packet and sends it directly to A1, for A1, the direct sending device and the initial sending device of the network packet are both A2. If A2 does not exist in the network device set of A1, A2 can be added to the network device set, and A2 (direct sending device) can be marked as a forwarding device of A2 (initial sending device).

[0065] When A2 generates a networking message and sends it directly to A1, A1 then forwards the networking message to A3. For A3, the direct sending device for the networking message is A1, and the initial sending device is A2. If A2 does not exist in A3's networking device set, A2 can be added to the networking device set, and A1 (the direct sending device) can be marked as a forwarding device for A2 (the initial sending device).

[0066] Of course, A1 can also receive networking messages generated by A3, and can also forward A3's networking messages to A2. Therefore, as the networking process progresses, the set of networking devices for power equipment should at least include the following information: In the network device set of A1, A2 and A3 will be added, including directories of A2 and A3. In the directory of A2, A2 will be marked as a forwarding device of A2, and in the directory of A3, A3 will be marked as a forwarding device of A3. In the network device set of A2, A1 and A3 will be added, including directories of A1 and A3. In the directory of A1, A1 will be marked as a forwarding device of A1, and in the directory of A3, A1 will be marked as a forwarding device of A3. In the network device set of A3, add A1 and A2, including the directories of A1 and A2. In the directory of A1, mark A1 as the forwarding device of A1, and in the directory of A2, mark A1 as the forwarding device of A2.

[0067] The following is combined Figure 2 The star topology network shown further illustrates the role of the network device set. In this scenario, if the target power device is A3 and needs to send service data to the destination power device A2, A3 calls its own network device set, finds that A2 is already in the set, and extracts that the forwarding device to A2 is A1. Then, A3 will encapsulate the service data into a data packet and send it directly to the forwarding device A1. After receiving the data packet, A1 calls its own network device set, finds that the forwarding device to A2 is A2, and forwards the data packet to A2, thus completing the indirect data communication between A3 and A2.

[0068] According to the wireless networking method for power systems in this application, by receiving and parsing networking messages on the target power equipment, the direct transmitting device and the initial transmitting device can be identified, and the communication relationship between the devices can be clarified. When the initial transmitting device is not present in the target networking device set of the target power equipment, the initial transmitting device is accurately added to the target networking device set, and the direct transmitting device is marked as a forwarding device to the initial transmitting device. The communication forwarding paths between devices are collected. It does not rely on a pre-set main route and hierarchical cascading structure, nor does it require data to be relayed through multiple upper-level devices. Based on the WiFi direct communication capability of the power equipment itself and the dynamic update of the networking device set, direct communication and networking between devices can be realized. There is no need to deploy additional complex networking control equipment, which shortens the data transmission path, reduces the transmission delay caused by multi-hop forwarding, and improves the communication efficiency of the power system.

[0069] In some embodiments, the method further includes: Extract the quality of the first link from the network topology packets; Calculate the quality of the second link between the target power equipment and the direct transmitting equipment; Based on the quality of the first and second links, the quality of the third link from the initial transmitting device to the target power device via the forwarding device is calculated. Establish a correspondence between the initial transmitting device, the forwarding device, and the quality of the third link in the target network device set.

[0070] In this embodiment, the first link quality is the communication link quality parameter between the initial sending device and the direct communication object (i.e., the direct sending device). This parameter is detected by the initial sending device through its own WiFi module and written into a preset field of the networking message when generating the networking message.

[0071] It should be noted that the direct sending device and the initial sending device can be the same device, for example, in Figure 2In this context, if the target power device is A1, and both the direct transmitting device and the initial transmitting device are A2 or both are A3, then the first link quality is the link quality from the initial transmitting device to itself (the direct transmitting device), which is the basic link quality parameter when the initial transmitting device sends out messages. However, if the direct transmitting device and the initial transmitting device are not the same device, for example, in... Figure 2 In this context, if the target power device is A2, the direct transmitting device is A1, and the initial transmitting device is A3, then the first link quality is the link quality from the initial transmitting device A3 to the direct transmitting device A1. This quality can be obtained by the initial transmitting device A3 through real-time detection of the communication status of the direct communication link and written into the preset field of the network message.

[0072] Link quality can be represented by indicators such as signal strength, transmission rate, and bit error rate, or by a score calculated from a combination of various indicators. This application does not limit the specific indicators used.

[0073] After the target power equipment completes the parsing of the network packets, it will extract the first link quality from the network packets according to the preset packet field parsing rules.

[0074] The second link quality is the quality parameter of the direct communication link between the target power equipment and the direct transmitting equipment, which can be obtained by the target power equipment by real-time detection of the communication status of the direct communication link.

[0075] In some embodiments, the formula can be used:

[0076] or

[0077] Calculate the quality of the second link between the target power equipment and the direct transmitting equipment; in, Indicates the quality of the second link. , , Indicates the weighting coefficient. Indicates signal strength. This indicates the maximum number of times the data can be forwarded. This indicates the number of times the data has been forwarded. This indicates the packet loss rate.

[0078] It should be noted that the signal strength, maximum number of supported data forwardings, number of data forwards, packet loss rate, etc. involved in the above formula can be dimensionless values ​​obtained after standardization (e.g., scaled to the 0-1 range or expanded to the 0-100 range). Therefore, the calculation results of the formula are used to characterize the relative quality of the link and do not correspond to specific physical dimensions.

[0079] The third link quality is the comprehensive quality parameter of the complete communication link from the initial transmitting device to the target power equipment via the relaying device. It can be obtained by co-calculating the first link quality and the second link quality. For example, when the link quality is represented by signal strength, the weighted average of the first and second link quality can be calculated as the third link quality; when represented by transmission rate, the minimum transmission rate of the first and second link quality can be taken as the third link quality; when represented by bit error rate, the superposition of the bit error rates of the first and second link quality can be taken as the third link quality.

[0080] In some embodiments, the formula can be used:

[0081] or

[0082] The quality of the third link between the initial transmitting device and the target power device is calculated. in, Indicates the quality of the third link. , Indicates the weighting coefficient. Indicates the quality of the first link. This indicates the quality of the second link.

[0083] After obtaining the third link quality, the target power equipment can record the third link quality into the target network equipment set and establish a unique correspondence with the recorded initial transmitting equipment and marked forwarding equipment, forming a structured data entry of "initial transmitting equipment-forwarding equipment-third link quality". This allows the target network equipment set to store the link quality data corresponding to the path in addition to recording the forwarding path between devices, thereby providing data basis for path selection and link fault switching in subsequent communication processes.

[0084] by Figure 2 Taking the star topology network shown as an example, and explaining from the perspective of A1 as the target power device, after A1 receives the networking message from A2, it parses it, adds A2 to its own network device set, and marks A2 as a forwarding device to A2; it obtains the link quality Q2 (first link quality) from the networking message, and obtains the link quality R from A1 to A2.21 (Second link quality), Q2, R 21 The new link quality Q is obtained by calculating the two values. 21 (Third link quality); link quality Q 21 Record the link quality from A1 to A2 via A2, and save it to the directory of A2 in the set of network devices.

[0085] As the network construction process progresses, the network equipment set for power equipment must include at least the following information: In the network device set of A1, A2 and A3 will be added, including directories for A2 and A3. In the directory of A2, A2 will be marked as a forwarding device of A2, and the quality Q of the third link from A2 to A1 will be recorded. 21 Mark A3 as a forwarding device in the A3 directory and record the quality Q of the third link from A3 to A1. 31 ; In the network device set of A2, A1 and A3 will be added, including directories for A1 and A3. In the directory of A1, A1 will be marked as a forwarding device of A1, and the quality Q of the third link from A1 to A2 will be recorded. 12 In the directory of A3, mark A1 as a forwarding device of A3, and record the quality Q of the third link from A3 to A2 via A1. 312 ; In the network device set of A3, add A1 and A2, including the directories of A1 and A2. In the directory of A1, mark A1 as a forwarding device of A1, and record the quality Q of the third link from A1 to A3. 13 In the directory of A2, mark A1 as a forwarding device of A2, and record the quality Q of the third link from A2 to A3 via A1. 213 .

[0086] In this embodiment, by extracting the link quality from the network packets, calculating the link quality between devices, and combining them to obtain the third link quality at both ends of the link, and establishing the association between the devices and the corresponding link quality in the network device set, the power system can select the communication path according to the link quality, further reducing communication latency and improving the stability of data transmission.

[0087] In some embodiments, the method further includes: Determine whether network packets need to be forwarded; If the network packet needs to be forwarded, the quality of the third link is written into the network packet to override the quality of the first link; and the device identifier of the directly sending device is written into the network packet, and the network packet is forwarded to the destination power device in the power system.

[0088] In this embodiment, it can be determined whether a network packet needs to be forwarded in any way. For example, it can detect whether the network packet carries a "forwarding complete" flag. In this method, the network packet generated by the initial sending device does not carry this flag by default. If the network packet received by the target power device does not carry this flag, it is determined that forwarding is required; if it does, it is determined that forwarding is not required. Alternatively, it can be determined whether there are other power devices besides the direct forwarding device within the communication coverage area of ​​the target power device. If so, it is determined that the network packet needs to be forwarded. It can also be determined according to a preset forwarding strategy. For example, if the forwarding strategy is that the network packet needs to be forwarded by default after being received, it is determined that forwarding is required. Alternatively, it can be determined whether the packet carries the device identifier of the destination power device. If it does, and the destination power device is not the target power device, it is determined that forwarding is required. Of course, other methods can also be used to determine whether a network packet needs to be forwarded, and this embodiment does not limit this method.

[0089] In this embodiment, if forwarding is determined to be necessary, the link quality in the network packet can be updated by writing the third link quality into the link quality field of the network packet, overwriting the original first link quality in the field, and using it as the new first link quality. Alternatively, the device identifier of the directly sending device can be written into a preset field of the network packet to inform the destination power device that the received network packet was forwarded from the target power device via a direct forwarding device.

[0090] by Figure 2 Taking the star topology network shown as an example, and explaining from the perspective of A1 as the target power device, after A1 receives the networking message from A2, it parses it, adds A2 to its own network device set, and marks A2 as a forwarding device to A2; it obtains the link quality Q2 from the networking message and obtains the link quality R from A1 to A2. 21 Q2, R 21 The new link quality Q is obtained by calculating the two values. 21 ; link quality Q 21 Let Q be the link quality from A1 to A2. If it is determined that a network packet needs to be forwarded, then the link quality Q is... 21 Fill in the message, overwrite the original link quality Q2, fill in the device identifier of A2 in the preset field, and send out the networking message.

[0091] When A3 receives the networking packet forwarded by A1 from A2: it parses the received networking packet, adds A2 to its own networking device set, and marks A1 as a forwarding device to A2; it then obtains the link quality Q from the networking packet. 21 Obtain the link quality R from A1 to A3 13 Q 21 R 13The new link quality Q is obtained by calculating the two values. 213 ; link quality Q 213 Save it to the A2 directory within the network device set; if it is determined that the network packet needs to be forwarded, set the link quality Q. 213 Fill it into the message to cover the original link quality Q. 21 Fill in the device identifier of A1 into the preset field and send out the networking message, and so on.

[0092] In this embodiment, by determining whether the networking message needs to be forwarded, when it is determined that forwarding is required, the calculated third link quality is written into the networking message to overwrite the original first link quality, and the device identifier of the directly sending device is written into the message and forwarded to the destination power equipment. This realizes the dynamic updating of information in the networking message, enabling the destination power equipment to accurately obtain the link quality information of the current transmission link and the forwarding device information, thereby improving the accuracy of network construction.

[0093] In some embodiments, the method further includes: If the target network device set of the target power equipment contains an initial transmitting device, and the direct transmitting device is inconsistent with the forwarding device in the target network device set that leads to the initial transmitting device, then search for the backup forwarding device set of the initial transmitting device in the target network device set. If there is no direct sending device in the backup forwarding device set, the direct sending device will be added to the backup forwarding device set.

[0094] In this embodiment, the backup forwarding device set is a sub-data set set for each initial transmitting device within the target network device set. It stores the device identifiers and corresponding link qualities of other available forwarding devices besides the initial transmitting device. Within the target network device set of the target power equipment, each initial transmitting device can have a corresponding backup forwarding device set in its directory. For example, in... Figure 2 In the network device set of power equipment A1, there are A2 and A3, with corresponding directories for A2 and A3. The directory for A2 stores the backup forwarding device set for A2, and the directory for A3 stores the backup forwarding device set for A3. It should be noted that when the initial sending device has no other forwarding devices besides the forwarding devices, i.e., there are no backup forwarding devices, the backup forwarding device set can be empty.

[0095] Among them, the forwarding device is the power device that is preferentially selected when the target power device communicates with the initial sending device, and the backup forwarding device is the power device that is selected as a backup when the forwarding device link fails or the quality degrades.

[0096] When the direct transmitting device and the forwarding device in the target network device set are inconsistent, it indicates that a new forwarding path exists that leads to the initial transmitting device. The target power device first locates the backup forwarding device set corresponding to the initial transmitting device from its own target network device set and searches whether the device identifier of the direct transmitting device already exists in the backup forwarding device set. If the search finds that the device identifier of the direct transmitting device does not exist in the backup forwarding device set, it indicates that the direct transmitting device is a new backup forwarding path. The device identifier of the direct transmitting device is added to the backup forwarding device set under the initial transmitting device directory as a backup forwarding device, and the fourth link quality from the initial transmitting device to the target power device is calculated, establishing the correspondence between the initial transmitting device, the backup forwarding device, and the fourth link quality. The calculation of the fourth link quality can refer to the calculation of the third link quality, which will not be elaborated in this embodiment.

[0097] In this embodiment, when an initial transmitting device already exists in the target network device set of the target power equipment, and the current direct transmitting device is inconsistent with the forwarding device to the initial transmitting device recorded in the set, the backup forwarding device set of the initial transmitting device is searched, and added if the current direct transmitting device does not exist in the set. This enriches the communication forwarding path between the initial transmitting device and the target power equipment, reduces communication interruption problems caused by single forwarding device failure or link anomaly, and enhances the redundancy backup capability and anti-interference ability of the Rigao power system network.

[0098] In some embodiments, the method further includes: When the direct sending device is the same as the forwarding device in the target network device set that leads to the initial sending device, update the quality of the third link.

[0099] In this embodiment, when the identifier of the direct sending device is consistent with that of the forwarding device in the target network device set that leads to the initial sending device, it indicates that the currently received network packet comes from the forwarding path. The target power device adopts the newly calculated third link quality to cover the third link quality corresponding to the initial sending device in its own target network device set, thus maintaining the dynamic update of the link quality.

[0100] In this embodiment, by updating the third link quality when the direct transmitting device is consistent with the forwarding device in the target network device set that leads to the initial transmitting device, the link quality information from the initial transmitting device to the target power device via the forwarding device can be dynamically updated, enabling the power system to select communication paths based on the new link quality, thereby further improving the stability of power system communication.

[0101] The following scenario example illustrates the wireless networking method for a power system according to an embodiment of this application. For example... Figure 4As shown, power equipment B1 receives the networking message sent by B2, parses the networking message, and determines that the direct sending device of the networking message is B2, and the initial sending device is B3.

[0102] Power device B1 searches its own network device set. If B3 is not in the network device set, it adds B3 to the set and marks B2 as B3's forwarding device. If B3 exists in the network device set and B2 is B3's forwarding device, it means that the direct sending device of the network packet is the same as B3's forwarding device, both being B2. Therefore, it calculates the third link quality from B3 to B2 via B1 and updates the third link quality in the network device set.

[0103] If B3 exists in the network device set, and the forwarding device of B3 is not B2, it means that the direct sending device of the network packet is inconsistent with the forwarding device of B3. Then, search for the backup forwarding device set under the B3 directory in the network device set. If there is no backup forwarding device in the backup forwarding device set, add the device identifier of B2 to the backup forwarding device set under the B3 directory, and establish the correspondence between the initial sending device (B3), the backup forwarding device (B2), and the fourth link quality.

[0104] If a backup forwarding device exists in the backup forwarding device set, and the device identifier of the backup forwarding device in the backup forwarding device set is inconsistent with the device identifier of B2, then the device identifier of B2 is added to the backup forwarding device set under the B3 directory, and the correspondence between the initial sending device (B3), the backup forwarding device (B2), and the fourth link quality is established.

[0105] If there is a backup forwarding device in the backup forwarding device set, and the device identifier of the backup forwarding device in the backup forwarding device set is the same as the device identifier of B2, then the fourth link quality calculated in this instance will be used to overwrite the original fourth link quality in the backup forwarding device set.

[0106] The following is an example Figure 3 Taking the mesh topology shown as an example, in this example, A1, A2, and A3 can communicate directly with each other, and A1, A2, and A3 can all be used as target power devices.

[0107] As the network construction process progresses, the network equipment set for power equipment must include at least the following information: In the network device set of A1, A2 and A3 will be added, including directories for A2 and A3. In the directory of A2, A2 will be marked as a forwarding device of A2, and the quality Q of the third link from A2 to A1 will be recorded. 21 The directory for A2 also includes a set of backup forwarding devices, with A3 as the backup forwarding device, and records the quality Q of the fourth link from A2 through A3 to A1.231 Mark A3 as a forwarding device in the A3 directory and record the quality Q of the third link from A3 to A1. 31 The A3 directory also includes a set of backup forwarding devices, with A2 as the backup forwarding device, and records the quality Q of the fourth link from A3 through A2 to A1. 321 ; In the network device set of A2, A1 and A3 will be added, including directories for A1 and A3. In the directory of A1, A1 will be marked as a forwarding device of A1, and the quality Q of the third link from A1 to A2 will be recorded. 12 The directory for A1 also includes a set of backup forwarding devices, with A3 as the backup forwarding device, and records the quality Q of the fourth link from A1 through A3 to A2. 132 Mark A3 as a forwarding device in the A3 directory, and record the third-link quality Q from A3 to A2. 32 The A3 directory also includes a set of backup forwarding devices, with A1 as the backup forwarding device, and records the quality Q of the fourth link from A3 through A1 to A2. 312 ; In the network device set of A3, A1 and A2 will be added, including directories for A1 and A2. In the directory of A1, A1 will be marked as a forwarding device of A1, and the quality Q of the third link from A1 to A3 will be recorded. 13 The directory of A1 also includes a set of backup forwarding devices, with A2 as the backup forwarding device, and records the quality Q of the fourth link from A1 through A2 to A3. 123 Mark A2 as a forwarding device in A2's directory and record the third-link quality Q from A2 to A3. 23 The A2 directory also includes a set of backup forwarding devices, with A1 as the backup forwarding device, and records the quality Q of the fourth link from A2 through A1 to A3. 213 .

[0108] In some embodiments, the method further includes: At target time intervals, check the status of each power device in the target network device set. If the forwarding device to the initial sending device is offline, select the backup forwarding device with the highest quality of the fourth link from the backup forwarding device set of the initial sending device to replace the forwarding device.

[0109] In this embodiment, the target power device can periodically check the communication status and link quality of each power device registered in its target network device set at target time intervals. The communication status includes online and offline status, which can be determined, for example, through heartbeat detection and message acknowledgment of the WiFi communication link. The link quality can include the third link quality related to the forwarding device and the fourth link quality related to the backup forwarding device. The fourth link quality is the link quality corresponding to the backup forwarding device of the initial sending device in the target network device set; that is, the link quality from the initial sending device to the target power device via the backup forwarding device. The calculation method can refer to the third link quality.

[0110] In this embodiment, the target time can be configured according to the communication requirements of the power system, such as 30 seconds, 1 minute, 5 minutes, etc., and this application embodiment does not limit this.

[0111] like Figure 5 As shown, when a forwarding device is detected to be offline, it indicates that data transmission cannot be achieved through the communication path via the forwarding device. The target power equipment can retrieve the set of backup forwarding devices corresponding to the initial sending device from the target network device set, filter out the backup forwarding devices that are online, sort them in descending order of fourth link quality, and select the backup forwarding device with the best fourth link quality to replace the forwarding device to the initial sending device. Specifically, the device identifier of the forwarding device to the initial sending device in the target network device set can be updated to the device identifier of the selected backup forwarding device; and the third link quality corresponding to the forwarding device can be updated to the fourth link quality corresponding to the backup forwarding device.

[0112] In this embodiment, by periodically checking the status of the network devices, offline faults of the forwarding devices leading to the initial transmitting device can be detected in a timely manner. After offline detection, the backup device with the highest link quality is selected from the set of backup forwarding devices for replacement, which can ensure the transmission performance of the communication link after the switch and improve the stability of communication between the initial transmitting device and the target power equipment.

[0113] In some embodiments, the method further includes: If the backup forwarding device set of the initial sending device is empty, then the forwarding devices and third link quality in the target network device set will be cleared.

[0114] In this embodiment, such as Figure 5As shown, if the search finds that the backup forwarding device set of the initial sending device is empty, or that all backup forwarding devices in the set are offline, it means that there are currently no available backup forwarding devices that can replace the forwarding device to communicate with the initial sending device. The target power equipment can remove the device identifier and corresponding third link quality of the forwarding device to the initial sending device from the target network device set, and clear the backup forwarding device set of the initial sending device to reduce the storage resources occupied by invalid device information.

[0115] In this embodiment, by clearing the forwarding devices and third link quality in the target network device set when the backup forwarding device set of the initial sending device is empty, invalid link records can be reduced, making the link information in the network device set available and improving the accuracy of power system communication path selection.

[0116] In some embodiments, the method further includes: The method also includes: At target time intervals, check the status of each power device in the target network device set. If the forwarding device leading to the initial sending device is online, clear the offline backup forwarding device from the backup forwarding device set. Identify the target backup forwarding device with the highest quality for the fourth link from the set of backup forwarding devices; If the quality of the fourth link of the target backup forwarding device is greater than that of the third link of the forwarding device, the target backup forwarding device will replace the forwarding device, and the quality of the fourth link will replace the quality of the third link.

[0117] In this embodiment, such as Figure 5 As shown, if a forwarding device is detected to be online, invalid information in the backup forwarding device set can be cleared. The target power equipment can check the communication status of each backup forwarding device in the backup forwarding device set one by one, and remove the device identifier and corresponding fourth link quality of the offline backup forwarding device from the backup forwarding device set.

[0118] After completing the offline device cleanup, the target power equipment sorts the remaining online backup forwarding devices in the backup forwarding device set according to the quality of the fourth link from high to low, and selects the backup forwarding device with the highest quality of the fourth link as the target backup forwarding device. If the quality of the fourth link of the target backup forwarding device is greater than the quality of the third link of the forwarding device, it means that the communication path quality corresponding to the backup forwarding device is better, triggering the replacement operation of the forwarding device, that is, replacing the forwarding device with the target backup forwarding device and replacing the third link quality with the fourth link quality.

[0119] In this embodiment, by periodically checking the status of the network devices, offline devices in the backup forwarding device set are promptly cleared when the forwarding device is online, ensuring that the device status in the backup forwarding device set is valid. The target backup device with the highest link quality is selected from the backup device set and replaced when the link quality is better than the current forwarding device. This can improve the transmission performance of the communication link after the switchover, thereby improving the communication efficiency between the initial sending device and the target power device.

[0120] The wireless networking method for power systems provided in this application can be applied to power systems of any structure, for example, it can be applied to power systems such as... Figure 2 The star topology network shown, such as Figure 3 The mesh topology shown is as follows: Figure 6 The linear topology network shown is as follows: Figure 7 The ring topology network shown is as follows: Figure 8 The tree topology network shown, such as Figure 9 The hybrid topology network shown can, of course, be applied to power systems with other structures, and this application does not limit this application to such applications. Figure 2 , Figure 3 , Figures 6-9 In the table, A1, A2, A3, An, A21, A22, A211, A312, A321, A322, A4, A5, and A6 respectively represent electrical equipment.

[0121] This application also provides a power system including at least two power devices capable of direct WiFi communication, the power devices being configured with a network device set; any power device in the power system is used to execute the above-described wireless networking method for the power system.

[0122] According to the power system of this application, by receiving and parsing network messages by the target power equipment, the direct transmitting device and the initial transmitting device can be identified, and the communication relationship between the devices can be clarified. When the initial transmitting device is not present in the target network device set of the target power equipment, the initial transmitting device is accurately added to the target network device set, and the direct transmitting device is marked as a forwarding device to the initial transmitting device. The communication forwarding path between devices is collected. It does not rely on a pre-set main route and hierarchical cascading structure, nor does it require data to be relayed through multiple upper-level devices. Based on the WiFi direct communication capability of the power equipment itself and the dynamic update of the network device set, direct communication and network construction between devices can be realized. There is no need to deploy additional complex network control equipment, which shortens the data transmission path, reduces the transmission delay caused by multi-hop forwarding, and improves the communication efficiency of the power system.

[0123] This application also provides a power device, including a WiFi module and a controller; The controller is used to execute the wireless networking method of the power system described above.

[0124] like Figure 10 As shown, this application embodiment also provides an electronic device 1000, including a processor 1001, a memory 1002, and a computer program stored in the memory 1002 and executable on the processor 1001. When the program is executed by the processor 301, it implements the various processes of the above-described wireless networking method embodiment for power systems and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0125] Electronic devices can be the aforementioned power equipment, or components within power equipment, such as integrated circuits or chips.

[0126] This application also provides a non-transitory computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of the above-described wireless networking method embodiment for power systems and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0127] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0128] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described wireless networking method for a power system.

[0129] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0130] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described wireless networking method embodiments for power systems and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0131] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0132] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0133] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0134] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

[0135] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0136] Although embodiments of this application have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of this application, the scope of which is defined by the claims and their equivalents.

Claims

1. A wireless networking method for a power system, characterized in that, The power system includes at least two power devices capable of direct WiFi communication, and the power devices are configured with a network device set; the method includes: The target power device receives and parses the networking message to determine the direct sending device and the initial sending device of the networking message; wherein, the target power device is any power device in the power system, and the direct sending device is a power device in the power system that can directly communicate with the target power device via WiFi; If the initial transmitting device is not present in the target network device set of the target power equipment, the initial transmitting device is added to the target network device set of the target power equipment, and the direct transmitting device is marked as a forwarding device to the initial transmitting device in the target network device set.

2. The method according to claim 1, characterized in that, The method further includes: Extract the first link quality from the network packets; Calculate the quality of the second link between the target power equipment and the direct transmitting equipment; Based on the first link quality and the second link quality, the third link quality from the initial transmitting device to the target power device via the forwarding device is calculated; Establish a correspondence between the initial transmitting device, the forwarding device, and the third link quality in the target network device set.

3. The method according to claim 2, characterized in that, According to the formula: or Calculate the quality of the second link between the target power equipment and the direct transmitting equipment; in, Indicates the quality of the second link. , , Indicates the weighting coefficient. Indicates signal strength. This indicates the maximum number of times the data can be forwarded. This indicates the number of times the data has been forwarded. This indicates the packet loss rate.

4. The method according to claim 2, characterized in that, According to the formula: or The quality of the third link between the initial transmitting device and the target power device is calculated. in, Indicates the quality of the third link. , Indicates the weighting coefficient. Indicates the quality of the first link. This indicates the quality of the second link.

5. The method according to claim 2, characterized in that, The method further includes: Determine whether the network packet needs to be forwarded; If the network packet needs to be forwarded, the quality of the third link is written into the network packet to override the quality of the first link; and the device identifier of the direct sending device is written into the network packet, and the network packet is forwarded to the destination power equipment in the power system.

6. The method according to any one of claims 1-5, characterized in that, The method further includes: If the initial transmitting device exists in the target network device set of the target power equipment, and the direct transmitting device is inconsistent with the forwarding device to the initial transmitting device in the target network device set, then search for the backup forwarding device set of the initial transmitting device in the target network device set. If the direct sending device is not present in the set of backup forwarding devices, the direct sending device is added to the set of backup forwarding devices.

7. The method according to claim 6, characterized in that, The method further includes: When the direct transmitting device is consistent with the forwarding device to the initial transmitting device in the target network device set, the quality of the third link is updated.

8. The method according to claim 6, characterized in that, The method further includes: If the direct transmitting device exists in the set of backup forwarding devices, update the quality of the fourth link between the initial transmitting device and the target power equipment via the backup forwarding devices in the set of backup forwarding devices.

9. The method according to claim 6, characterized in that, The method further includes: At target intervals, check the status of each power device in the target network device set. If the forwarding device to the initial sending device is offline, select the backup forwarding device with the highest fourth link quality from the backup forwarding device set of the initial sending device to replace the forwarding device.

10. The method according to claim 9, characterized in that, The method further includes: If the backup forwarding device set of the initial sending device is empty, then the forwarding device and the quality of the third link in the target networking device set will be cleared.

11. The method according to claim 6, characterized in that, The method further includes: At target intervals, check the status of each power device in the target network device set. If the forwarding device to the initial sending device is online, remove the offline backup forwarding device from the backup forwarding device set. The target backup forwarding device with the highest quality for the fourth link is determined from the set of backup forwarding devices; If the fourth link quality of the target backup forwarding device is greater than the third link quality of the forwarding device, the target backup forwarding device replaces the forwarding device, and the fourth link quality replaces the third link quality.

12. An electric power system, characterized in that, The system includes at least two power devices capable of direct WiFi communication, each power device being configured with a network device set; any power device in the power system is used to perform the method as described in claims 1-11.

13. An electrical device, characterized in that, Includes WiFi module and controller; The controller is configured to perform the method as described in any one of claims 1-11.

14. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method as described in any one of claims 1-11.

15. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-11.