Communication link switching method and device, equipment and storage medium
By adopting a dynamic switching mechanism for multiple communication links in smart power scenarios, real-time monitoring and optimization of switching decisions based on the characteristics of the power scenario solve the problems of weak anti-interference of communication links, high switching delay and easy data loss, and achieve highly reliable data transmission.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-19
- Publication Date
- 2026-03-27
AI Technical Summary
Existing technologies have failed to effectively address the issues of weak anti-interference capabilities, high handover latency, and easy data loss in smart power scenarios, leading to a disconnect between handover decisions and power service needs, and affecting the reliability of service data.
By acquiring link quality correlation information of the current communication link and combining it with the characteristics of the power scenario, a switching decision is dynamically generated. A multi-communication link dynamic switching mechanism of PLC power line carrier communication link and WAPI wireless communication link is adopted to monitor link quality in real time and score it according to different scenarios by setting weight coefficients and parameter thresholds, thereby optimizing the switching decision.
It achieves millisecond-level switching and zero data loss communication assurance in complex power environments, meeting the high real-time and high security requirements of smart power, and improving the reliability and continuity of business data.
Smart Images

Figure CN121751283A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and in particular to a communication link switching method, apparatus, device, and storage medium. Background Technology
[0002] In the construction of smart power systems, PLC and WAPI are two core communication technologies. PLC relies on the existing power lines of the power system to achieve "power supply-communication integration," requiring no additional wiring and adapting to fixed power equipment such as ring main units and smart meters. WAPI features national-level security certification and a design resistant to strong electromagnetic interference, offering flexible wireless transmission and adapting to mobile or difficult-to-wire power equipment, such as distribution inspection terminals and sensors in new energy power plants.
[0003] However, the communication link requirements for power business data vary across different power scenarios. A single communication link suffers from weak interference resistance, high handover latency, and susceptibility to data loss. Existing technologies for communication link handover in smart power scenarios fail to consider the differences within these scenarios, leading to a disconnect between handover decisions and power business needs, thus impacting the reliability of business data. Summary of the Invention
[0004] This invention provides a communication link switching method, apparatus, device, and storage medium to solve the problem of poor communication link switching performance.
[0005] In a first aspect, the present invention provides a communication link switching method, comprising:
[0006] Obtain link quality correlation information for the current communication link and determine the current power scenario;
[0007] For the current power scenario, the link quality score under the current power scenario and the current communication link is determined based on the link quality association information. The method of determining the link quality score under the current power scenario and the current communication link based on the link quality association information is different under different current power scenarios.
[0008] The link quality score determines whether to switch the current communication link to an alternative communication link.
[0009] In a second aspect, the present invention provides a communication link switching device, comprising:
[0010] The information and scenario determination module is used to obtain the link quality correlation information of the current communication link and determine the current power scenario;
[0011] The link scoring module is used to determine the link quality score for the current power scenario and the current communication link based on the link quality association information. The method of determining the link quality score for the current power scenario and the current communication link based on the link quality association information is different for different current power scenarios.
[0012] The judgment module is used to determine whether to switch the current communication link to the alternative communication link based on the link quality score.
[0013] Thirdly, the present invention provides an electronic device comprising:
[0014] At least one processor;
[0015] and memory that is communicatively connected to at least one processor;
[0016] The memory stores a computer program that can be executed by at least one processor, which enables the at least one processor to perform the communication link switching method of the first aspect described above.
[0017] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a processor to execute the communication link switching method of the first aspect described above.
[0018] The communication link switching scheme provided by this invention constructs a mechanism for dynamic switching of multiple communication links. By combining real-time monitored link quality correlation information with the dynamic generation of switching decisions in smart power scenarios, it fully considers the differences in power scenarios. It not only solves the problems of weak anti-interference of single communication links, high switching delay and easy data loss, but also solves the problem of the disconnect between switching decisions and power business needs, thereby improving the reliability of business data.
[0019] It should be understood that the description in this section is not intended to identify key or essential features of the invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 This is a flowchart of a communication link switching method provided in Embodiment 1 of the present invention;
[0022] Figure 2 This is a flowchart of a communication link switching method provided in Embodiment 2 of the present invention;
[0023] Figure 3 This is a schematic diagram of the structure of a communication link switching device according to Embodiment 3 of the present invention;
[0024] Figure 4 This is a schematic diagram of the structure of an electronic device provided according to Embodiment 4 of the present invention. Detailed Implementation
[0025] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0026] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. In the description of this invention, unless otherwise stated, "a plurality of" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist; for example, A and / or B can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.
[0027] Example 1
[0028] Figure 1The flowchart of a communication link switching method provided in Embodiment 1 of the present invention is applicable to the situation of switching communication links in power scenarios. The method can be executed by a communication link switching device, which can be implemented in hardware and / or software. The communication link switching device can be configured in an electronic device, which can be composed of two or more physical entities or a single physical entity.
[0029] like Figure 1 As shown, the communication link switching method provided in Embodiment 1 of the present invention specifically includes the following steps:
[0030] S101. Obtain the link quality association information of the current communication link and determine the current power scenario.
[0031] In this embodiment, the link quality association information for different communication links can be different. Link quality association information can be understood as information related to the quality of the communication link. Power scenarios can include generation-side scenarios, user-side scenarios, and distribution-side scenarios, etc. Different power scenarios may have different requirements for communication links.
[0032] S102. For the current power scenario, determine the link quality score for the current power scenario and the current communication link based on the link quality association information. The method for determining the link quality score for the current power scenario and the current communication link based on the link quality association information is different for different current power scenarios.
[0033] In this embodiment, link quality scores for the current power scenario and the current communication link can be determined using link quality association information. For example, a preset calculation can be performed on the link quality association information to obtain the link quality score.
[0034] S103. Determine whether to switch the current communication link to a backup communication link based on the link quality score.
[0035] In this embodiment, if the link quality score meets the preset conditions, such as being less than the preset value or the distribution of the link quality score meets the preset distribution, the current communication link can be switched to the alternative communication link.
[0036] The technical solution of this invention constructs a mechanism for dynamic switching of multiple communication links. By combining real-time monitored link quality correlation information with the dynamic generation of switching decisions in smart power scenarios, it fully considers the differences in power scenarios. It not only solves the problems of weak anti-interference of single communication links, high switching delay and easy data loss, but also solves the problem of the disconnect between switching decisions and power business needs, thereby improving the reliability of business data.
[0037] Optionally, the communication link includes: a PLC power line carrier communication link and a WAPI wireless communication link; the link quality association information under the PLC power line carrier communication link includes signal-to-noise ratio, bit error rate, and carrier frequency stability; the link quality association information under the WAPI wireless communication link includes received signal strength indication, packet loss rate, and network latency.
[0038] Optionally, the power scenarios include at least: distribution network monitoring scenarios, new energy grid connection scenarios, and electricity consumption information collection scenarios.
[0039] Specifically, the power distribution network monitoring scenario includes data uploading from power distribution terminals and ring main units; the new energy grid connection scenario includes parameter transmission from photovoltaic inverters and wind power converters; and the electricity consumption information collection scenario includes data collection from smart meters and charging piles.
[0040] Optionally, determining the link quality score for the current power scenario and the current communication link based on the link quality association information includes: determining corresponding weight coefficients and parameter thresholds for the current power scenario and the current communication link, and processing the link quality association information using the weight coefficients and the parameter thresholds to obtain the link quality score for the current power scenario and the current communication link. The parameter thresholds are thresholds for parameters in the link quality association information. The weight coefficients and parameter thresholds differ for the same communication link in different power scenarios, and also differ for different communication links in the same power scenario.
[0041] Specifically, weighting coefficients and parameter thresholds can be pre-set for each communication link under each power scenario. Then, the corresponding weighting coefficients and parameter thresholds are determined for the current power scenario and the current communication link. These weighting coefficients and parameter thresholds are then used to perform pre-calculated operations on link quality correlation information, thereby obtaining a link quality score for the current power scenario and the current communication link.
[0042] Optionally, determining whether to switch the current communication link to a backup communication link based on the link quality score includes: if the current communication link transmits non-urgent data and the link quality score of the current communication link is less than a first preset value but greater than or equal to a second preset value, or if the current communication link transmits non-urgent data and the difference between the link quality score of the backup communication link and the link quality score of the current communication link is greater than or equal to a third preset value, then perform communication link preparation work; if the link quality score of the current communication link is less than the second preset value and the link quality score of the backup communication link is greater than or equal to the second preset value, or if the communication link preparation work is completed, the link quality score of the backup communication link is greater than or equal to the second preset value, and the current communication link transmits urgent data, then switch the current communication link to a backup communication link.
[0043] Specifically, the data transmitted through the current communication link can include both non-urgent and urgent data.
[0044] Example 2
[0045] Figure 2 This is a flowchart of a communication link switching method provided in Embodiment 2 of the present invention. The technical solution of the present invention is further optimized based on the above optional technical solutions, and gives a specific way to switch communication links in a power scenario.
[0046] Optionally, the step of determining corresponding weight coefficients and parameter thresholds for the current power scenario and the current communication link, and processing the link quality association information using the weight coefficients and parameter thresholds to obtain a link quality score under the current power scenario and the current communication link, includes: if the current power scenario is a distribution network monitoring scenario and the current communication link is a PLC power carrier communication link, then determining a first weight coefficient and a first parameter threshold, and determining the quotients of the signal-to-noise ratio, bit error rate, and carrier frequency stability in the link quality association information with their respective first parameter thresholds, and then obtaining the link quality score under the distribution network monitoring scenario and the PLC power carrier communication link by weighted summation using the first weight coefficient; if the current power scenario is a new energy grid connection scenario and the current communication link is a PLC power carrier communication link, then determining a second weight coefficient and a second parameter threshold, and determining the quotients of the signal-to-noise ratio, bit error rate, and carrier frequency stability in the link quality association information with their respective first parameter thresholds, and then obtaining the link quality score under the distribution network monitoring scenario and the PLC power carrier communication link by weighted summation using the first weight coefficient; if the current power scenario is a new energy grid connection scenario and the current communication link is a PLC power carrier communication link, then determining a second weight coefficient and a second parameter threshold, and determining the quotients of the signal-to-noise ratio, bit error rate, and carrier frequency stability in the link quality association information. The link quality score for the new energy grid-connected scenario and the PLC power carrier communication link is obtained by weighting and summing the quotients of the signal-to-noise ratio, bit error rate, and carrier frequency stability with their respective second threshold values, using the second weighting coefficient. If the current power scenario is an electricity consumption information collection scenario and the current communication link is a PLC power carrier communication link, then a third weighting coefficient and a third parameter threshold are determined, and the quotients of the signal-to-noise ratio, bit error rate, and carrier frequency stability in the link quality association information with their respective third threshold values are determined. Then, the link quality score for the electricity consumption information collection scenario and the PLC power carrier communication link is obtained by weighting and summing the quotients with the third weighting coefficient. Wherein, the first weighting coefficient is greater than the third weighting coefficient, the third weighting coefficient is greater than the second weighting coefficient, and the first parameter threshold, the second parameter threshold, and the third parameter threshold are all different from each other.
[0047] Optionally, the step of determining corresponding weight coefficients and parameter thresholds for the current power scenario and the current communication link, and processing the link quality association information using the weight coefficients and parameter thresholds to obtain a link quality score under the current power scenario and the current communication link, includes: if the current power scenario is a distribution network monitoring scenario and the current communication link is a WAPI wireless communication link, then determining a fourth weight coefficient and a fourth parameter threshold, and determining the quotients of the received signal strength indication, packet loss rate, and network delay in the link quality association information with their respective fourth parameter thresholds, and then obtaining the link quality score under the distribution network monitoring scenario and the WAPI wireless communication link by weighted summing of the quotients using the fourth weight coefficient; if the current power scenario is a new energy grid connection scenario and the current communication link is a WAPI wireless communication link, then determining a fifth weight coefficient and a fifth parameter threshold, and determining the quotients of the received signal strength indication, packet loss rate, and network delay in the link quality association information with their respective fourth parameter thresholds. The link quality score for the new energy grid-connected scenario and the WAPI wireless communication link is obtained by weighting and summing the quotients of the received signal strength indication, packet loss rate, and network delay with their respective fifth parameter thresholds, using the fifth weighting coefficient. If the current power scenario is an electricity consumption information collection scenario and the current communication link is a WAPI wireless communication link, then a sixth weighting coefficient and a sixth parameter threshold are determined, and the quotients of the received signal strength indication, packet loss rate, and network delay with their respective sixth parameter thresholds in the link quality association information are determined. The link quality score for the electricity consumption information collection scenario and the WAPI wireless communication link is then obtained by weighting and summing the quotients with the sixth weighting coefficient. Wherein, the fifth weighting coefficient is greater than the sixth weighting coefficient, the sixth weighting coefficient is greater than the fourth weighting coefficient, and the fourth parameter threshold, the fifth parameter threshold, and the sixth parameter threshold are all different.
[0048] like Figure 2 As shown in Embodiment 2 of the present invention, a communication link switching method specifically includes the following steps:
[0049] S201. Obtain the link quality association information of the current communication link and determine the current power scenario.
[0050] The system includes a PLC power line carrier communication link and a WAPI wireless communication link. The link quality associated information under the PLC power line carrier communication link includes signal-to-noise ratio, bit error rate, and carrier frequency stability. The link quality associated information under the WAPI wireless communication link includes received signal strength indication, packet loss rate, and network latency. The power scenarios include at least: distribution network monitoring scenario, new energy grid connection scenario, and electricity consumption information collection scenario.
[0051] S202. Determine whether the current communication link is a PLC power line carrier communication link. If yes, proceed to step S203; otherwise, proceed to step S204.
[0052] S203. If the current power scenario is a distribution network monitoring scenario and the current communication link is a PLC power line carrier communication link, then determine the first weighting coefficient and the first parameter threshold, and determine the quotient values of the signal-to-noise ratio, bit error rate, and carrier frequency stability in the link quality association information with their respective first parameter thresholds. Then, obtain the link quality score under the distribution network monitoring scenario and the PLC power line carrier communication link by weighted summing of the quotient values using the first weighting coefficient. If the current power scenario is a new energy grid connection scenario and the current communication link is a PLC power line carrier communication link, then determine the second weighting coefficient and the second parameter threshold, and determine the signal-to-noise ratio, bit error rate, and carrier frequency stability in the link quality association information. The link quality score for the new energy grid-connected scenario and the PLC power line carrier communication link is obtained by weighting and summing the quotients of the signal-to-noise ratio, bit error rate, and carrier frequency stability in the link quality association information with their respective third parameter thresholds, and then using the third weighting coefficient to weighted summation of the quotients. If the current power scenario is an electricity consumption information collection scenario and the current communication link is a PLC power line carrier communication link, then the third weighting coefficient and the third parameter threshold are determined, and the quotients of the signal-to-noise ratio, bit error rate, and carrier frequency stability in the link quality association information with their respective third parameter thresholds are determined. Then, the link quality score for the electricity consumption information collection scenario and the PLC power line carrier communication link is obtained by weighting and summing the quotients using the third weighting coefficient. Step S205 is executed.
[0053] Wherein, the first weight coefficient is greater than the third weight coefficient, the third weight coefficient is greater than the second weight coefficient, and the first parameter threshold, the second parameter threshold, and the third parameter threshold are all different from each other.
[0054] For example, the first weighting coefficient can be set to 0.9, and the first parameter thresholds include SNR (signal-to-noise ratio) ≥ 25dB and BER (bit error rate) ≤ The carrier frequency stability is ≤30ppm, the second weighting coefficient is 0.4, and the second parameter thresholds include SNR ≥20dB and BER ≤ Carrier frequency stability ≤ 50ppm, third weighting coefficient is 0.8, third parameter thresholds include SNR ≥ 22dB, BER ≤ Frequency stability ≤40ppm.
[0055] The method for determining the link quality score (PLC-PLQS) under the PLC power line carrier communication link is as follows:
[0056] PLC-PLQS=W1×[(Measured SNR / SNR threshold)×a+(1-Measured BER / BER threshold)×b+(1-Measured frequency stability / frequency stability threshold)×c]+(1-W1)×d
[0057] Where W1 is the weighting coefficient, and the measured SNR, measured BER, and measured frequency stability are the signal-to-noise ratio, bit error rate, and carrier frequency stability in the link quality correlation information, respectively. The SNR threshold, BER threshold, and frequency stability threshold are the upper and lower limits of the parameter thresholds, respectively. For example, in the PLC power carrier communication link of a distribution network monitoring scenario, the SNR threshold, BER threshold, and frequency stability threshold are 25, ... And 30. a, b, c, and d are the first preset coefficients, which can be set to 45, 40, 15, and 30 respectively. The link quality score of the PLC power line carrier communication link under different power scenarios can be determined by the above formula.
[0058] S204. If the current power scenario is a distribution network monitoring scenario and the current communication link is a WAPI wireless communication link, then determine the fourth weighting coefficient and the fourth parameter threshold, and determine the quotients of the received signal strength indication, packet loss rate, and network delay in the link quality association information with their respective fourth parameter thresholds. Then, obtain the link quality score under the distribution network monitoring scenario and the WAPI wireless communication link by weighted summing of the quotients using the fourth weighting coefficient; if the current power scenario is a new energy grid connection scenario and the current communication link is a WAPI wireless communication link, then determine the fifth weighting coefficient and the fifth parameter threshold, and determine the quotients of the received signal strength indication, packet loss rate, and network delay in the link quality association information with their respective fourth parameter thresholds. The link quality score for the new energy grid-connected scenario and the WAPI wireless communication link is obtained by weighting and summing the quotients of the packet loss rate and network latency with their respective fifth parameter thresholds, using the fifth weighting coefficient. If the current power scenario is an electricity consumption information collection scenario and the current communication link is a WAPI wireless communication link, then the sixth weighting coefficient and the sixth parameter threshold are determined, and the quotients of the received signal strength indication, packet loss rate, and network latency in the link quality association information with their respective sixth parameter thresholds are determined. Then, the link quality score for the electricity consumption information collection scenario and the WAPI wireless communication link is obtained by weighting and summing the quotients with the sixth weighting coefficient.
[0059] Wherein, the fifth weight coefficient is greater than the sixth weight coefficient, the sixth weight coefficient is greater than the fourth weight coefficient, and the fourth parameter threshold, the fifth parameter threshold, and the sixth parameter threshold are all different from each other.
[0060] For example, the fourth weighting coefficient can be set to 0.1, and the fourth parameter thresholds include RSSI (Received Signal Strength Indicator) ≥ -65dBm, packet loss rate ≤ 0.3%, and network latency ≤ 20ms; the fifth weighting coefficient can be set to 0.6, and the fifth parameter thresholds include RSSI ≥ -70dBm, packet loss rate ≤ 0.5%, and network latency ≤ 30ms; the sixth weighting coefficient can be set to 0.2, and the sixth parameter thresholds include RSSI ≥ -75dBm, packet loss rate ≤ 1%, and network latency ≤ 25ms.
[0061] The WAPI-PLQS link quality score under WAPI wireless communication links is determined as follows:
[0062] WAPI-PLQS = W2 × [(RSSI measured + 100) / (RSSI threshold + 100) × A + (1 - measured packet loss rate / packet loss rate threshold) × B + (1 - measured authentication delay / authentication delay threshold) × C] + (1 - W2) × D
[0063] Where W2 is the weighting coefficient, and the measured RSSI, packet loss rate, and authentication delay are the received signal strength indication, packet loss rate, and network delay in the link quality associated information, respectively. The RSSI threshold, packet loss rate threshold, and authentication delay threshold are the upper and lower limits of the parameter thresholds, respectively. For example, in the WAPI wireless communication link of the distribution network monitoring scenario, the RSSI threshold, packet loss rate threshold, and authentication delay threshold are -65, 0.3%, and 20, respectively. A, B, C, and D are the second preset coefficients, which can be set to 45, 40, 15, and 30, respectively. The first preset coefficient can be different from the second preset coefficient. The link quality score of the WAPI wireless communication link under different power scenarios can be determined by the above formula.
[0064] S205. If the current communication link is transmitting non-urgent data and the link quality score of the current communication link is less than the first preset value but greater than or equal to the second preset value, or if the current communication link is transmitting non-urgent data and the difference between the link quality score of the alternative communication link and the link quality score of the current communication link is greater than or equal to the third preset value, then perform communication link preparation work; if the link quality score of the current communication link is less than the second preset value and the link quality score of the alternative communication link is greater than or equal to the second preset value, or if the communication link preparation work is completed, the link quality score of the alternative communication link is greater than or equal to the second preset value, and the current communication link is transmitting urgent data, then switch the current communication link to the alternative communication link.
[0065] For example, the link quality score is out of 100. If the current communication link's PLQS (Link Quality Score) is ≥85 and the alternative communication link's PLQS <70, then the current communication link can be maintained.
[0066] If the current communication link transmits non-emergency data and the PLQS of the current communication link is ≥70 and <85, or if the current communication link transmits non-emergency data and the difference between the link quality score of the alternative communication link and the link quality score of the current communication link is ≥15 (the fault tolerance threshold is even lower in power scenarios), then the "pre-switching preparation" can be entered to perform communication link preparation work.
[0067] If the communication link preparation work is completed, it is necessary to continuously monitor for 2 cycles (e.g., 60ms in new energy scenarios). If the PLQS of the current communication link is consistently below 70 and the PLQS of the alternative communication link is consistently higher (to avoid accidental switching due to momentary electromagnetic interference), then the current communication link can be switched to the alternative communication link.
[0068] If the PLQS of the current communication link is less than 70 and the PLQS of the alternative communication link is greater than or equal to 70, or if the communication link preparation is completed, the PLQS of the alternative communication link is greater than or equal to 70, and the current communication link transmits emergency data, then the current communication link will be immediately switched to the alternative communication link. If it is determined that the current communication link will be switched to the alternative communication link, then the alternative communication link will be the target link. If the target link is a WAPI wireless communication link, then power-specific fast authentication can be initiated (reusing the session key pre-allocated by the power CA center, skipping the complete SM2 process), completing the connection with the dispatch platform within 80ms, and sending an IEC61850 test frame (10 bytes) to verify the channel, ensuring compatibility with real-time signals of the distribution network. If the switched current communication link is a PLC power line carrier communication link, then through the "power line fast handshake" function of the G3-PLC, reusing the carrier frequency and modulation method, the DLT645 protocol handshake with the ring main unit / inverter will be completed within 50ms, avoiding renegotiation of parameters.
[0069] A "connect first, disconnect later + service priority" strategy can be adopted: Emergency data (such as distribution network trip signals and new energy control instructions) is routed to the target link first. After confirming the reception of two consecutive frames of data (without packet loss), non-emergency data (such as historical electricity consumption data) is then routed. Once the target link has received three frames of emergency data or five frames of non-emergency data, the original link can be disconnected to avoid power data conflicts caused by parallel transmission of two links (such as repeated transmission of distribution network trip signals). During transmission, data can be fragmented according to power data type. Emergency data (≤100 bytes) is not fragmented, but appended with "Power Equipment ID + Service Type Code + CRC32". Non-emergency data (>100 bytes) is fragmented into 1KB segments, each fragment appended with "Session Identifier + Fragment Sequence Number + Power Security Code" (pre-assigned by the dispatch platform). After the switchover, the target link can match cached data using "Power Equipment ID + Session Identifier". If emergency data is lost, it will be retransmitted immediately. For non-emergency data, only incomplete segments (such as segments 12-15 of a photovoltaic curve) will be retransmitted; complete data retransmission is not required. The PLC power line carrier communication link can use SM4 encryption (the key is synchronized with the power dispatch platform and updated every 20 seconds, complying with Level 3 power protection standards). The WAPI wireless communication link uses SM2 power CA authentication + SM4 encryption to ensure that power consumption information and grid connection parameters are not leaked before and after the switchover. If the target link fails to establish (e.g., due to a WAPI gateway failure), it can be retried twice immediately. If the retry fails, a power-level alarm will be triggered (e.g., sending a DLT645 fault frame to the dispatch platform and an on-site audible and visual alarm), and the original link (if available) will continue to transmit emergency data. If both the current communication link and the backup communication link fail (PLQS < 70), data can be cached to a dedicated power SD card. Once either link recovers, emergency data will be retransmitted first, followed by non-emergency data.
[0070] The advantages of this setup are that, combined with dedicated power data fragmentation and retransmission and national cryptographic security mechanisms, it achieves communication assurance of "millisecond-level switching, zero data loss, and secure compliance." This solution can achieve a switching latency of ≤150ms, a data packet loss rate of ≤0.2%, and compatibility with power protocols such as DLT645 / IEC61850. It realizes "pre-built links + power-grade fast switching," controlling the switching latency within 150ms, meeting the needs of distribution network fault handling and real-time control of new energy sources. Furthermore, it integrates dedicated power data fragmentation and retransmission with national cryptographic security mechanisms to ensure that small-capacity real-time data is not lost and large-capacity historical data is transmitted completely during the switching process, while also meeting the requirements of the third-level power protection standard.
[0071] The communication link switching method provided in this invention is adapted to the strong electromagnetic environment of smart power, monitors the power quality parameters of the PLC and WAPI link in real time, and generates dynamic switching decisions by combining the priority weights of distribution network, new energy and power consumption acquisition scenarios. It matches the power business needs, accurately identifies link quality, avoids "false switching" or "delayed switching", and ensures the continuous transmission of key data such as distribution network load data, new energy grid connection parameters and power consumption information. It is especially suitable for complex power environments such as strong electromagnetic interference in substations, signal obstruction in remote transformer areas and harmonic interference in new energy stations. It meets the stringent requirements of smart power for data transmission of "high real-time performance, high security and high continuity" and can meet the 24 / 7 uninterrupted monitoring needs of smart power.
[0072] Example 3
[0073] Figure 3 This is a schematic diagram of a communication link switching device provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes: an information and scene determination module 301, a link scoring module 302, and a judgment module 303, wherein:
[0074] The information and scenario determination module is used to obtain the link quality correlation information of the current communication link and determine the current power scenario;
[0075] The link scoring module is used to determine the link quality score for the current power scenario and the current communication link based on the link quality association information. The method of determining the link quality score for the current power scenario and the current communication link based on the link quality association information is different for different current power scenarios.
[0076] The judgment module is used to determine whether to switch the current communication link to the alternative communication link based on the link quality score.
[0077] The communication link switching device provided in this embodiment of the invention constructs a mechanism for dynamic switching of multiple communication links. By combining the link quality correlation information monitored in real time with the dynamic generation of switching decisions in smart power scenarios, it fully considers the differences in power scenarios. It not only solves the problems of weak anti-interference of single communication links, high switching delay and easy data loss, but also solves the problem of the disconnect between switching decisions and power business needs, thereby improving the reliability of business data.
[0078] Optionally, the communication link includes: a PLC power line carrier communication link and a WAPI wireless communication link; the link quality association information under the PLC power line carrier communication link includes signal-to-noise ratio, bit error rate, and carrier frequency stability; the link quality association information under the WAPI wireless communication link includes received signal strength indication, packet loss rate, and network latency.
[0079] Optionally, the power scenarios include at least: distribution network monitoring scenarios, new energy grid connection scenarios, and electricity consumption information collection scenarios.
[0080] Optionally, the link scoring module is specifically used to determine the corresponding weight coefficients and parameter thresholds for the current power scenario and the current communication link, and to process the link quality association information using the weight coefficients and the parameter thresholds to obtain the link quality score under the current power scenario and the current communication link. The parameter thresholds are the thresholds of the parameters in the link quality association information. The weight coefficients and parameter thresholds are different for the same communication link under different power scenarios, and the weight coefficients and parameter thresholds are also different for different communication links under the same power scenario.
[0081] Furthermore, the step of determining corresponding weighting coefficients and parameter thresholds for the current power scenario and the current communication link, and processing the link quality association information using the weighting coefficients and parameter thresholds to obtain a link quality score for the current power scenario and the current communication link, includes: if the current power scenario is a distribution network monitoring scenario and the current communication link is a PLC power line carrier communication link, then determining a first weighting coefficient and a first parameter threshold, and determining the quotients of the signal-to-noise ratio, bit error rate, and carrier frequency stability in the link quality association information with their respective first parameter thresholds, and then obtaining the link quality score for the distribution network monitoring scenario and the PLC power line carrier communication link by weighted summing of the quotients using the first weighting coefficient; if the current power scenario is a new energy grid connection scenario and the current communication link is a PLC power line carrier communication link, then determining a second weighting coefficient and a second parameter threshold, and determining the link quality association information. The link quality score for the new energy grid-connected scenario and the PLC power carrier communication link is obtained by weighting and summing the quotients of the signal-to-noise ratio, bit error rate, and carrier frequency stability in the link quality association information with their respective second numerical thresholds. If the current power scenario is an electricity consumption information collection scenario and the current communication link is a PLC power carrier communication link, then a third weighting coefficient and a third parameter threshold are determined, and the quotients of the signal-to-noise ratio, bit error rate, and carrier frequency stability in the link quality association information with their respective third numerical thresholds are determined. Then, the link quality score for the electricity consumption information collection scenario and the PLC power carrier communication link is obtained by weighting and summing the quotients with the third weighting coefficient. Wherein, the first weighting coefficient is greater than the third weighting coefficient, the third weighting coefficient is greater than the second weighting coefficient, and the first parameter threshold, the second parameter threshold, and the third parameter threshold are all different from each other.
[0082] Furthermore, the step of determining corresponding weight coefficients and parameter thresholds for the current power scenario and the current communication link, and processing the link quality association information using the weight coefficients and parameter thresholds to obtain a link quality score under the current power scenario and the current communication link, includes: if the current power scenario is a distribution network monitoring scenario and the current communication link is a WAPI wireless communication link, then determining a fourth weight coefficient and a fourth parameter threshold, and determining the quotients of the received signal strength indication, packet loss rate, and network delay in the link quality association information with their respective fourth parameter thresholds, and then obtaining the link quality score under the distribution network monitoring scenario and the WAPI wireless communication link by weighted summing of the quotients using the fourth weight coefficient; if the current power scenario is a new energy grid connection scenario and the current communication link is a WAPI wireless communication link, then determining a fifth weight coefficient and a fifth parameter threshold, and determining the quotients of the received signal strength indication, packet loss rate, and network delay in the link quality association information with their respective fourth parameter thresholds. The link quality score for the new energy grid-connected scenario and the WAPI wireless communication link is obtained by weighting and summing the quotients of the received signal strength indication, packet loss rate, and network delay with their respective fifth parameter thresholds, using the fifth weighting coefficient. If the current power scenario is an electricity consumption information collection scenario and the current communication link is a WAPI wireless communication link, then a sixth weighting coefficient and a sixth parameter threshold are determined, and the quotients of the received signal strength indication, packet loss rate, and network delay with their respective sixth parameter thresholds in the link quality association information are determined. Then, the link quality score for the electricity consumption information collection scenario and the WAPI wireless communication link is obtained by weighting and summing the quotients with the sixth weighting coefficient. Wherein, the fifth weighting coefficient is greater than the sixth weighting coefficient, the sixth weighting coefficient is greater than the fourth weighting coefficient, and the fourth parameter threshold, the fifth parameter threshold, and the sixth parameter threshold are all different.
[0083] Optionally, the judgment module includes:
[0084] The preparation unit is used to perform communication link preparation work if the current communication link transmits non-urgent data and the link quality score of the current communication link is less than a first preset value but greater than or equal to a second preset value, or if the current communication link transmits non-urgent data and the difference between the link quality score of the alternative communication link and the link quality score of the current communication link is greater than or equal to a third preset value.
[0085] The switching unit is used to switch the current communication link to the alternative communication link if the link quality score of the current communication link is less than the second preset value and the link quality score of the alternative communication link is greater than or equal to the second preset value, or if the communication link preparation work is completed, the link quality score of the alternative communication link is greater than or equal to the second preset value and the current communication link is transmitting emergency data.
[0086] The communication link switching device provided in the embodiments of the present invention can execute the communication link switching method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.
[0087] Example 4
[0088] Figure 4 A schematic diagram of an electronic device 40 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0089] like Figure 4 As shown, the electronic device 40 includes at least one processor 41 and a memory, such as a read-only memory (ROM) 42 or a random access memory (RAM) 43, communicatively connected to the at least one processor 41. The memory stores computer programs executable by the at least one processor. The processor 41 can perform various appropriate actions and processes based on the computer program stored in the ROM 42 or loaded from storage unit 48 into the RAM 43. The RAM 43 may also store various programs and data required for the operation of the electronic device 40. The processor 41, ROM 42, and RAM 43 are interconnected via a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.
[0090] Multiple components in electronic device 40 are connected to I / O interface 45, including: input unit 46, such as keyboard, mouse, etc.; output unit 47, such as various types of monitors, speakers, etc.; storage unit 48, such as disk, optical disk, etc.; and communication unit 49, such as network card, modem, wireless transceiver, etc. Communication unit 49 allows electronic device 40 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0091] Processor 41 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 41 performs the various methods and processes described above, such as communication link switching methods.
[0092] In some embodiments, the communication link switching method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 40 via ROM 42 and / or communication unit 49. When the computer program is loaded into RAM 43 and executed by processor 41, one or more steps of the communication link switching method described above may be performed. Alternatively, in other embodiments, processor 41 may be configured to perform the communication link switching method by any other suitable means (e.g., by means of firmware).
[0093] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoC) systems, complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0094] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0095] The computer equipment provided above can be used to execute the communication link switching method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
[0096] Example 5
[0097] In the context of this invention, the computer-readable storage medium may be a tangible medium, and the computer-executable instructions, when executed by a computer processor, are used to perform a communication link switching method, the method comprising:
[0098] Obtain link quality correlation information for the current communication link and determine the current power scenario;
[0099] For the current power scenario, the link quality score under the current power scenario and the current communication link is determined based on the link quality association information. The method of determining the link quality score under the current power scenario and the current communication link based on the link quality association information is different under different current power scenarios.
[0100] The link quality score determines whether to switch the current communication link to an alternative communication link.
[0101] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by, or in conjunction with, an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0102] The computer equipment provided above can be used to execute the communication link switching method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
[0103] It is worth noting that in the embodiments of the communication link switching device described above, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the scope of protection of the present invention.
[0104] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.
Claims
1. A communication link switching method, characterized in that, include: Obtain link quality correlation information for the current communication link and determine the current power scenario; For the current power scenario, the link quality score under the current power scenario and the current communication link is determined based on the link quality association information. The method of determining the link quality score under the current power scenario and the current communication link based on the link quality association information is different under different current power scenarios. The link quality score determines whether to switch the current communication link to an alternative communication link.
2. The method according to claim 1, characterized in that, The communication links include: a PLC power line carrier communication link and a WAPI wireless communication link; the link quality correlation information under the PLC power line carrier communication link includes signal-to-noise ratio, bit error rate, and carrier frequency stability; the link quality correlation information under the WAPI wireless communication link includes received signal strength indication, packet loss rate, and network latency.
3. The method according to claim 1, characterized in that, The power scenarios include at least: distribution network monitoring scenarios, new energy grid connection scenarios, and electricity consumption information collection scenarios.
4. The method according to any one of claims 1-3, characterized in that, The step of determining the link quality score for the current power scenario and the current communication link based on the link quality association information includes: For the current power scenario and the current communication link, corresponding weight coefficients and parameter thresholds are determined, and the link quality association information is processed using the weight coefficients and parameter thresholds to obtain the link quality score under the current power scenario and the current communication link. The parameter thresholds are the thresholds of the parameters in the link quality association information. The weight coefficients and parameter thresholds are different under the same communication link in different power scenarios, and the weight coefficients and parameter thresholds are also different under different communication links in the same power scenario.
5. The method according to claim 4, characterized in that, The process of determining corresponding weight coefficients and parameter thresholds for the current power scenario and the current communication link, and processing the link quality correlation information using the weight coefficients and parameter thresholds to obtain a link quality score under the current power scenario and the current communication link, includes: If the current power scenario is a distribution network monitoring scenario and the current communication link is a PLC power carrier communication link, then the first weighting coefficient and the first parameter threshold are determined, and the quotient of the signal-to-noise ratio, bit error rate and carrier frequency stability in the link quality association information with the corresponding first parameter threshold is determined. Then, the link quality score under the distribution network monitoring scenario and the PLC power carrier communication link is obtained by weighted summation of the quotient using the first weighting coefficient. If the current power scenario is a new energy grid connection scenario and the current communication link is a PLC power carrier communication link, then the second weighting coefficient and the second parameter threshold are determined, and the quotient of the signal-to-noise ratio, bit error rate and carrier frequency stability in the link quality association information and the corresponding second parameter threshold are determined. Then, the link quality score under the new energy grid connection scenario and the PLC power carrier communication link is obtained by weighted summation of the quotient using the second weighting coefficient. If the current power scenario is an electricity consumption information collection scenario and the current communication link is a PLC power line carrier communication link, then the third weighting coefficient and the third parameter threshold are determined, and the quotient of the signal-to-noise ratio, bit error rate and carrier frequency stability in the link quality association information and the corresponding third parameter threshold is determined. Then, the link quality score under the electricity consumption information collection scenario and the PLC power line carrier communication link is obtained by weighted summation of the quotient using the third weighting coefficient. Wherein, the first weight coefficient is greater than the third weight coefficient, the third weight coefficient is greater than the second weight coefficient, and the first parameter threshold, the second parameter threshold, and the third parameter threshold are all different from each other.
6. The method according to claim 4, characterized in that, The process of determining corresponding weight coefficients and parameter thresholds for the current power scenario and the current communication link, and processing the link quality correlation information using the weight coefficients and parameter thresholds to obtain a link quality score under the current power scenario and the current communication link, includes: If the current power scenario is a distribution network monitoring scenario and the current communication link is a WAPI wireless communication link, then the fourth weighting coefficient and the fourth parameter threshold are determined, and the quotient of the received signal strength indication, packet loss rate and network delay in the link quality association information with the corresponding fourth parameter threshold is determined. Then, the link quality score under the distribution network monitoring scenario and the WAPI wireless communication link is obtained by weighted summation of the quotient using the fourth weighting coefficient. If the current power scenario is a new energy grid connection scenario and the current communication link is a WAPI wireless communication link, then the fifth weight coefficient and the fifth parameter threshold are determined, and the quotient of the received signal strength indication, packet loss rate and network delay in the link quality association information with the corresponding fifth parameter threshold is determined. Then, the link quality score under the new energy grid connection scenario and the WAPI wireless communication link is obtained by weighted summation of the quotient using the fifth weight coefficient. If the current power scenario is an electricity consumption information collection scenario and the current communication link is a WAPI wireless communication link, then the sixth weight coefficient and the sixth parameter threshold are determined, and the quotient of the received signal strength indication, packet loss rate and network delay in the link quality association information with the corresponding sixth parameter threshold is determined. Then, the link quality score under the electricity consumption information collection scenario and the WAPI wireless communication link is obtained by weighted summation of the quotients using the sixth weight coefficient. Wherein, the fifth weight coefficient is greater than the sixth weight coefficient, the sixth weight coefficient is greater than the fourth weight coefficient, and the fourth parameter threshold, the fifth parameter threshold, and the sixth parameter threshold are all different from each other.
7. The method according to claim 1, characterized in that, The step of determining whether to switch the current communication link to a backup communication link based on the link quality score includes: If the current communication link is transmitting non-urgent data and the link quality score of the current communication link is less than the first preset value but greater than or equal to the second preset value, or if the current communication link is transmitting non-urgent data and the difference between the link quality score of the alternative communication link and the link quality score of the current communication link is greater than or equal to the third preset value, then communication link preparation work is performed. If the link quality score of the current communication link is less than the second preset value and the link quality score of the alternative communication link is greater than or equal to the second preset value, or if the communication link preparation work is completed, the link quality score of the alternative communication link is greater than or equal to the second preset value, and the current communication link is transmitting emergency data, then the current communication link will be switched to the alternative communication link.
8. A communication link switching device, characterized in that, include: The information and scenario determination module is used to obtain the link quality correlation information of the current communication link and determine the current power scenario; The link scoring module is used to determine the link quality score for the current power scenario and the current communication link based on the link quality association information. The method of determining the link quality score for the current power scenario and the current communication link based on the link quality association information is different for different current power scenarios. The judgment module is used to determine whether to switch the current communication link to the alternative communication link based on the link quality score.
9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the communication link switching method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the communication link switching method according to any one of claims 1-7.