An intelligent electric energy meter communication timeout exception handling method

Through the smart power meter communication method of real-time monitoring and adaptive double-layer dynamic timeout detection, the communication timeout problem of smart power meter in complex network environments is solved, accurate data evaluation and complete recovery are achieved, and data reliability and continuity are improved.

CN119766696BActive Publication Date: 2025-07-04STATE GRID ZHEJIANG ELECTRIC POWER CO MARKETING SERVICE CENT +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510266987.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-07
Publication Date
2025-07-04
Estimated Expiration
2045-03-07

AI Technical Summary

Technical Problem

The existing smart power meters have insufficient communication timeout response in complex network environments, frequent reconnection failures, and data continuity and integrity are difficult to guarantee, resulting in a decrease in data accuracy and reliability.

Method used

Real-time monitoring of the communication parameters of the power meter is adopted, and through adaptive dual-layer dynamic timeout detection and intelligent reconnection strategies, combined with data correction and compensation algorithms, link quality evaluation and data recovery capabilities are improved.

Benefits of technology

Accurately evaluate communication status in complex network environments, reduce misjudgment and response delays, ensure data integrity and continuity, and improve data credibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119766696B_ABST
    Figure CN119766696B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of data anomaly processing, and provides a method for processing communication timeout anomalies of intelligent electricity meters; the method includes the following steps: S1. By monitoring and collecting and analyzing the communication parameters of the electricity meter in real time, calculating a link quality evaluation value, performing adaptive double-layer dynamic timeout detection, obtaining a communication status signal and a timeout type, and obtaining a communication anomaly processing signal; S2. Obtain the communication anomaly processing signal, start an intelligent reconnection strategy, trigger a communication restoration signal, and when the communication restoration signal is triggered, perform data correction and compensation processing on the abnormal data generated by the real-time data stream of the electricity meter during communication interruption to obtain a corrected complete data stream. The present invention can accurately evaluate the communication status, improve the accuracy of timeout determination, and provide a comprehensive data compensation mechanism for intelligent electricity meters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data anomaly processing, and particularly relates to a method for processing communication timeout anomalies in full-performance detection of intelligent electricity meters. Background Art

[0002] In traditional communication systems, when electricity meters encounter situations such as unstable communication links, excessive network delays, or low signal quality, they often lack real-time monitoring and accurate assessment of the link status, resulting in the inability to detect communication anomalies in a timely manner, and thus unable to perform effective timeout responses. At the same time, traditional methods usually adopt fixed reconnection intervals and transmission parameters. When the network environment fluctuates frequently, frequent reconnection attempts are likely to cause waste of resources, and it is difficult to ensure the reconnection success rate when the network status is poor.

[0003] In addition, in terms of data processing after communication recovery in traditional electricity meter systems, it is often impossible to accurately compensate for the missing data during the communication interruption, resulting in damage to the continuity and integrity of electricity data. The lack of adaptability to link fluctuations and sudden anomalies makes electricity meters prone to problems such as data mutations, unstable links, and timeout misjudgments in complex network environments. These problems will affect reliability and data accuracy in large-scale remote management and real-time data monitoring applications of electricity meters, increasing operation costs and maintenance difficulties. There are technical problems such as communication timeout response, reconnection failure, data loss, and insufficient adaptability to link fluctuations in intelligent electricity meters under complex network environments. Summary of the Invention

[0004] The present invention aims to address the technical problems existing in the prior art, and provides a method for processing communication timeout anomalies of intelligent electricity meters that can accurately evaluate the communication status under different network states, reduce the risks of misjudgment and response delay, improve the accuracy of timeout determination, provide a comprehensive data compensation mechanism for intelligent electricity meters, and ensure the integrity of measurement data.

[0005] To achieve the above technical objectives, the present invention adopts the following technical solutions:

[0006] A method for processing communication timeout anomalies of intelligent electricity meters, comprising the following steps:

[0007] S1. Real-time monitor and collect and analyze the communication parameters of the electricity meter, calculate the link quality evaluation value, perform adaptive double-layer dynamic timeout detection based on the link quality evaluation value to obtain the communication status signal and timeout type, obtain the processing strategy based on the communication signal status and timeout type, and record the link quality evaluation value, communication signal status, timeout type, and processing strategy into the communication anomaly processing signal;

[0008] S2. Obtain the communication exception handling signal, start the intelligent reconnection strategy according to the communication exception handling signal, trigger the communication recovery signal, and when the communication recovery signal is triggered, perform data correction and compensation processing on the abnormal data generated by the real-time data stream of the electricity meter during communication interruption to obtain the corrected complete data stream.

[0009] Preferably, in step S1, the communication parameters of the electricity meter include communication delay, packet loss rate, signal strength, number of reconnection failures, basic reconnection interval time, default transmission power, electricity reading and timestamp of the electricity meter before interruption.

[0010] Preferably, in step S1, extract the communication delay, packet loss rate, and signal strength from the collected communication parameters of the electricity meter, and perform cumulative recursive calculation based on the current communication delay, packet loss rate, and signal strength to obtain the fluctuation feedback value of the link, forming the link state fluctuation feedback.

[0011] Preferably, in step S1, based on the link state fluctuation feedback, calculate the cumulative deviation value of the link, and further calculate the link quality evaluation value.

[0012] Preferably, in step S1, based on the link quality evaluation value, introduce an adaptive double-layer dynamic timeout detection algorithm to perform adaptive double-layer dynamic timeout detection.

[0013] Preferably, in step S1, based on the link quality evaluation value and adaptive double-layer dynamic timeout detection, further calculate the short-term mutation characteristics and cumulative fluctuation characteristics, analyze to obtain the communication status signal, determine the timeout type, and obtain the processing strategy.

[0014] Preferably, in step S2, extract the number of reconnection failures from the collected communication parameters of the electricity meter, introduce the intelligent reconnection strategy algorithm to start the intelligent reconnection strategy according to the processing strategy in the communication exception handling signal, and calculate the optimal reconnection interval time and reconnection transmission power according to the link quality evaluation value in the communication exception handling signal.

[0015] Preferably, in step S2, initiate a reconnection request according to the optimal reconnection interval time and reconnection transmission power. If the reconnection fails, record the number of failures and recalculate the optimal reconnection interval time and readjust the reconnection transmission power until the communication recovery signal is triggered.

[0016] Preferably, in step S2, when the communication recovery signal is triggered, extract the electricity reading and timestamp of the electricity meter before interruption from the collected communication parameters of the electricity meter, and introduce the adaptive data correction and dynamic trend compensation algorithm to perform data correction and compensation processing on the abnormal data generated by the real-time data stream of the electricity meter during communication interruption to obtain the corrected complete data stream.

[0017] Compared with the prior art, the beneficial effects produced by the present invention are:

[0018] (1) Through real-time monitoring and cumulative recursive calculation of the link status, the present invention forms an accurate link quality evaluation value. The link quality evaluation value is generated by using a non-linear combination of communication delay, packet loss rate, and signal strength, and can sensitively respond to short-term fluctuations and long-term trends of the link. This link quality evaluation method effectively enhances the adaptability to complex network environments, enabling accurate evaluation of communication status under different network conditions and reducing the risks of misjudgment and response delay;

[0019] (2) The present invention introduces an adaptive double-layer dynamic timeout detection algorithm. Through progressive timeout detection of the basic layer and the dynamic regulation layer, it is applicable not only to stable network environments but also can effectively improve the accuracy of timeout determination in communication links with large fluctuations;

[0020] (3) By introducing an adaptive data correction and dynamic trend compensation algorithm, the present invention performs data correction and compensation processing on abnormal data generated by the real-time data stream of the electricity meter during communication interruption, effectively solving the problem of data loss during communication interruption. By extracting the time distribution error factor and the data deviation error factor, calculating the comprehensive error correction value, it ensures the high accuracy and continuity of the data after communication recovery; and through trend deviation modeling with the comprehensive error correction value, calculating the dynamic data trend model, and introducing the cross-compensation coefficient, the data can be accurately compensated after recovery, preventing data mutation or abnormality. This correction method improves the credibility of the data, provides a comprehensive data compensation mechanism for the intelligent electricity meter, and ensures the integrity of the measurement data. Brief Description of the Drawings

[0021] Figure 1 It is a flowchart of a method for handling communication timeout anomalies of an intelligent electricity meter according to an embodiment of the present invention. Detailed Embodiments

[0022] In order to further elaborate on the technical means and effects adopted by the present invention to achieve the intended invention purpose, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which the present invention belongs.

[0024] Embodiment 1

[0025] Combined with Figure 1As shown in the figure, an embodiment of the present invention provides a method for handling communication timeout exceptions of an intelligent electricity meter, including the following steps:

[0026] S1. Monitor and collect communication parameters of the electricity meter in real time, calculate a link quality evaluation value, perform adaptive double-layer dynamic timeout detection based on the link quality evaluation value to obtain a communication status signal and a timeout type, obtain a processing strategy based on the communication signal status and the timeout type, and record the link quality evaluation value, communication signal status, timeout type, and processing strategy into a communication exception handling signal;

[0027] S2. Obtain the communication exception handling signal, start an intelligent reconnection strategy according to the communication exception handling signal to trigger a communication recovery signal. When the communication recovery signal is triggered, perform data correction and compensation processing on the abnormal data generated by the real-time data stream of the electricity meter during communication interruption to obtain a corrected complete data stream.

[0028] Embodiment 2

[0029] Combined with Figure 1 As shown in the figure, an embodiment of the present invention provides a method for handling communication timeout exceptions of an intelligent electricity meter, including the following steps:

[0030] S1. Monitor and collect communication parameters of the electricity meter in real time, calculate a link quality evaluation value, perform adaptive double-layer dynamic timeout detection based on the link quality evaluation value to obtain a communication status signal and a timeout type, obtain a processing strategy based on the communication signal status and the timeout type, and record the link quality evaluation value, communication signal status, timeout type, and processing strategy into a communication exception handling signal;

[0031] S2. Obtain the communication exception handling signal, start an intelligent reconnection strategy according to the communication exception handling signal to trigger a communication recovery signal. When the communication recovery signal is triggered, perform data correction and compensation processing on the abnormal data generated by the real-time data stream of the electricity meter during communication interruption to obtain a corrected complete data stream;

[0032] On this basis, in this embodiment, in step S1, the communication parameters of the electricity meter include communication delay, packet loss rate, signal strength, number of reconnection failures, basic reconnection interval time, default transmission power, electricity reading of the electricity meter before interruption, and timestamp.

[0033] Embodiment 3

[0034] Combined with Figure 1 As shown in the figure, an embodiment of the present invention provides a method for handling communication timeout exceptions of an intelligent electricity meter, including the following steps:

[0035] S1. Monitor and collect communication parameters of the electricity meter in real time, calculate the link quality evaluation value, perform adaptive double-layer dynamic timeout detection based on the link quality evaluation value to obtain the communication status signal and timeout type, obtain the processing strategy based on the communication signal status and timeout type, and record the link quality evaluation value, communication signal status, timeout type, and processing strategy into the communication anomaly handling signal;

[0036] S2. Obtain the communication anomaly handling signal, start the intelligent reconnection strategy according to the communication anomaly handling signal to trigger the communication recovery signal. After the communication recovery signal is triggered, perform data correction and compensation processing on the abnormal data generated by the real-time data stream of the electricity meter during the communication interruption to obtain the corrected complete data stream;

[0037] In step S1, the communication parameters of the electricity meter include communication delay, packet loss rate, signal strength, number of reconnection failures, basic reconnection interval time, default transmission power, electricity reading of the electricity meter before interruption, and timestamp;

[0038] On this basis, in this embodiment, the communication delay, packet loss rate, and signal strength are extracted from the collected communication parameters of the electricity meter, and cumulative recursive calculation is performed based on the current communication delay, packet loss rate, and signal strength to obtain the fluctuation feedback value of the link, forming the link state fluctuation feedback;

[0039] Specifically, the calculation formula of the fluctuation feedback value of the link is as follows:

[0040] ,

[0041] where, is the fluctuation feedback value of the link at the th iteration; is the fluctuation feedback value of the link at the th iteration, describing the fluctuation characteristics of the current link state, including the comprehensive reflection of the influence of multiple factors such as communication delay, packet loss rate, and signal strength; is the communication delay at the th iteration; is the packet loss rate at the th iteration; is the signal strength at the th iteration; is the non-linear feedback term, is a small value to prevent the denominator from being zero, used to increase the sensitivity of the fluctuation feedback, making it more sensitive to the increase in the link fluctuation amplitude; is the number of iterations, used to represent the current iteration stage of the calculation. When new data is input each time (usually at intervals of seconds or shorter), is incremented by 1, so that all variable values in the formula are based on the new link state; is the weight adjustment factor for communication delay, is the weight adjustment factor for packet loss rate is the weight adjustment factor for signal strength, is the weight adjustment factor for the non - linear feedback term, which is set according to the expert experience method and reflects the influence degree of each sub - item index on the link fluctuation feedback;

[0042] When is true, ,

[0043] Among them, is the link fluctuation feedback value at the first iteration, represents the communication delay before iteration, represents the packet loss rate before iteration, represents the signal strength before iteration;

[0044] The main purpose of the above formula is to reflect the non - linear influence of link delay, packet loss rate and signal strength on real - time communication quality through recursive fluctuation feedback, so as to generate the fluctuation feedback value of a sensitive link.

[0045] Embodiment 4

[0046] Combined with Figure 1 shown, the embodiment of the present invention provides an intelligent electric energy meter communication timeout exception handling method, including the following steps:

[0047] S1. Real - time monitor and collect and analyze the communication parameters of the electric energy meter, calculate the link quality evaluation value, perform adaptive double - layer dynamic timeout detection based on the link quality evaluation value to obtain the communication status signal and timeout type, obtain the processing strategy based on the communication signal status and timeout type, and record the link quality evaluation value, communication signal status, timeout type and processing strategy into the communication exception handling signal;

[0048] S2. Obtain the communication exception handling signal, start the intelligent re - connection strategy according to the communication exception handling signal to trigger the communication recovery signal. When the communication recovery signal is triggered, perform data correction and compensation processing on the abnormal data generated by the real - time data stream of the electric energy meter during communication interruption to obtain the corrected complete data stream;

[0049] In step S1, the communication parameters of the electric energy meter include communication delay, packet loss rate, signal strength, number of re - connection failures, basic re - connection interval time, default transmission power, electric energy reading before the electric energy meter interruption and time stamp;

[0050] Extract the communication delay, packet loss rate and signal strength from the collected communication parameters of the electric energy meter, and perform cumulative recursive calculation based on the current communication delay, packet loss rate and signal strength to obtain the link fluctuation feedback value and form the link state fluctuation feedback;

[0051] On this basis, in this embodiment, based on the link state fluctuation feedback, the cumulative deviation value of the link is calculated, and further the link quality evaluation value is calculated;

[0052] Specifically, based on the real-time fluctuation feedback iteration of the link state, the cumulative deviation value of the link is further calculated through the cumulative recurrence formula To capture the long-term change trend of the link fluctuation, the purpose of calculating the cumulative deviation value is to identify the long-term change and continuous fluctuation characteristics of the link quality. The calculation formula of the cumulative deviation value is as follows:

[0053] ,

[0054] where, is the cumulative deviation value at the -th iteration; is the cumulative deviation value at the -th iteration, representing the cumulative characteristics of the link fluctuation, calculating the fluctuation feedback of the current and all previous iteration cycles, and reflecting the long-term fluctuation trend of the link; and are the adjustment factors of the cumulative deviation, used to adjust the contributions of the feedback value and the fluctuation value to the cumulative deviation; The item normalizes the product of the signal strength and the packet loss rate, and divides it by the communication delay at the -th iteration and then introduces it as a feedback term into the cumulative deviation value to ensure that the cumulative value generated by each fluctuation feedback can reflect the long-term stability and instantaneous perturbation of the overall link. Through this cumulative deviation, the cumulative effect of the link fluctuation can be identified and used for subsequent adaptive double-layer dynamic timeout detection.

[0055] Based on the non-linear combination of and , the link quality evaluation value is calculated to generate the link quality evaluation result. The calculation formula of the link quality evaluation value is as follows:

[0056] ,

[0057] where, is the link quality evaluation value, used to determine whether the link is normal or timed out; , , , are the weight adjustment factors, set according to the expert experience method; is the factor for adjusting the link quality responsiveness, set according to the expert experience method, so that the quality evaluation result can be smoothly adjusted under different fluctuation environments; An item is used to smooth the impact of the cumulative deviation value on quality assessment, enabling it to dynamically respond to cumulative fluctuation feedback, so as to show a decreasing effect on quality assessment when the network fluctuates greatly;

[0058] The above formula calculates a complex link quality assessment value through non-linear and asymmetric feedback , in order to provide a sensitive and accurate input basis for the next timeout detection process.

[0059] Embodiment 5

[0060] Combined with Figure 1 As shown, the embodiment of the present invention provides an intelligent electric energy meter communication timeout exception handling method, including the following steps:

[0061] S1. Real-time monitor and collect and analyze the communication parameters of the electric energy meter, calculate the link quality assessment value, perform adaptive double-layer dynamic timeout detection based on the link quality assessment value to obtain the communication status signal and timeout type, and based on the communication signal status and timeout type, obtain the processing strategy, and enter the link quality assessment value, communication signal status, timeout type and processing strategy into the communication exception handling signal;

[0062] S2. Obtain the communication exception handling signal, start the intelligent reconnection strategy according to the communication exception handling signal to trigger the communication recovery signal. When the communication recovery signal is triggered, perform data correction and compensation processing on the abnormal data generated by the real-time data stream of the electric energy meter during communication interruption to obtain the corrected complete data stream;

[0063] In step S1, the communication parameters of the electric energy meter include communication delay, packet loss rate, signal strength, number of reconnection failures, basic reconnection interval time, default transmission power, electric energy reading before the electric energy meter is interrupted, and timestamp;

[0064] Extract the communication delay, packet loss rate and signal strength from the collected communication parameters of the electric energy meter, and perform cumulative recursive calculation based on the current communication delay, packet loss rate and signal strength to obtain the fluctuation feedback value of the link, and form the link state fluctuation feedback;

[0065] Based on the link state fluctuation feedback, calculate the cumulative deviation value of the link, and further calculate the link quality assessment value;

[0066] On this basis, in this embodiment, based on the link quality assessment value, an adaptive double-layer dynamic timeout detection algorithm is introduced to perform adaptive double-layer dynamic timeout detection; the adaptive double-layer dynamic timeout detection includes basic layer timeout detection and dynamic regulation layer timeout detection;

[0067] Specifically, after obtaining the link quality assessment value, enter the adaptive double-layer dynamic timeout determination process, introduce the adaptive double-layer dynamic timeout detection algorithm, and through the link quality assessment value Dynamically adjust the timeout threshold to ensure that the timeout threshold is increased during network fluctuations to adapt to real-time communication detection in complex environments. The double-layer dynamic timeout detection includes basic layer timeout detection and dynamic regulation layer timeout detection, with a hierarchical progression. The specific implementation process and formula are as follows:

[0068] First, set the fixed initial timeout threshold for basic layer timeout detection according to the expert experience method and make a preliminary judgment on the link status based on the fixed initial timeout threshold to quickly identify the timeout status. The detection formula is:

[0069] ,

[0070] In this formula, is used to adjust the influence of the link fluctuation feedback value on the fixed initial timeout threshold of the basic layer; is the adjustment rate for controlling the fixed initial timeout threshold, which is used to adjust the influence magnitude of the fluctuation feedback value on the fixed initial timeout threshold of the basic layer, enabling the effective adjustment of the dynamic fitness of the fixed initial timeout threshold when detecting the link status;

[0071] Under the above judgment formula, when is higher than the adjusted fixed initial timeout threshold, it is determined that the basic layer timeout detection is "timeout";

[0072] When the basic layer timeout detection is determined to be timeout, set the fluctuation feedback threshold according to the expert experience method, and compare the fluctuation feedback value with the fluctuation feedback threshold . If the fluctuation feedback value is greater than the fluctuation feedback threshold, further perform timeout determination through the dynamic adjustment layer timeout detection, and the dynamic adjustment layer will increase the timeout threshold according to the link feedback;

[0073] Set the dynamic timeout threshold for the dynamic regulation layer timeout detection according to the expert experience method, compare the dynamic timeout threshold with the link quality evaluation value, and judge the link status based on the dynamic timeout threshold to identify the timeout status of the dynamic regulation layer. The calculation formula for the dynamic timeout threshold is as follows:

[0074] ,

[0075] Among them, is the coefficient for controlling the adjustment amplitude of the dynamic timeout threshold. Through this coefficient, the adjustment amplitude of the dynamic timeout threshold of the dynamic regulation layer can better adapt to the current link fluctuation situation, thereby improving the tolerance when the network fluctuates greatly; is a smoothing control parameter for the dynamic timeout threshold, used for the non-linear adjustment of the dynamic timeout threshold of the dynamic regulation layer, controlling the smoothness of the relationship between the cumulative deviation and the fluctuation feedback, so as to smoothly adjust the dynamic timeout threshold when the link fluctuates greatly; For smoothing the cumulative deviation value and the fluctuation feedback value of the non-linear influence.

[0076] Through the above formula, the dynamic timeout threshold is adaptively adjusted according to the fluctuation feedback value and the cumulative deviation value, and the threshold tolerance can be improved when the link fluctuates greatly;

[0077] When exceeds , it is determined that the timeout detection of the dynamic regulation layer is "timeout".

[0078] Embodiment 6

[0079] Combined with Figure 1 shown, the embodiment of the present invention provides an intelligent electricity meter communication timeout exception handling method, including the following steps:

[0080] S1. Real-time monitor and collect and analyze the communication parameters of the electricity meter, calculate the link quality evaluation value, perform adaptive double-layer dynamic timeout detection based on the link quality evaluation value to obtain the communication status signal and the timeout type, and based on the communication signal status and the timeout type, obtain the processing strategy, and record the link quality evaluation value, the communication signal status, the timeout type and the processing strategy into the communication exception handling signal;

[0081] S2. Obtain the communication exception handling signal, start the intelligent reconnection strategy according to the communication exception handling signal to trigger the communication recovery signal. When the communication recovery signal is triggered, perform data correction and compensation processing on the abnormal data generated by the real-time data stream of the electricity meter during the communication interruption to obtain the corrected complete data stream;

[0082] In step S1, the communication parameters of the electricity meter include communication delay, packet loss rate, signal strength, number of reconnection failures, basic reconnection interval time, default transmission power, electricity reading of the electricity meter before interruption and timestamp;

[0083] Extract the communication delay, packet loss rate and signal strength from the collected communication parameters of the electricity meter, and perform cumulative recursive calculation based on the current communication delay, packet loss rate and signal strength to obtain the fluctuation feedback value of the link, and form the link state fluctuation feedback;

[0084] On the basis of the link state fluctuation feedback, calculate the cumulative deviation value of the link, and further calculate the link quality evaluation value;

[0085] Based on the link quality assessment value, an adaptive double-layer dynamic timeout detection algorithm is introduced to perform adaptive double-layer dynamic timeout detection. The adaptive double-layer dynamic timeout detection includes basic layer timeout detection and dynamic regulation layer timeout detection.

[0086] On this basis, in this embodiment, based on the link quality assessment value and the adaptive double-layer dynamic timeout detection, the short-term mutation feature and the cumulative fluctuation feature are further calculated, the communication status signal is analyzed, the timeout type is determined, and the processing strategy is obtained.

[0087] Specifically, the communication status signal includes normal, short-term timeout, and long-term timeout. The timeout type includes mild short-term timeout, moderate short-term timeout, severe short-term timeout, mild long-term timeout, moderate long-term timeout, and severe long-term timeout.

[0088] Based on the link quality and the double-layer timeout detection, the short-term mutation and the cumulative fluctuation feature are further analyzed, which has higher sensitivity and responsiveness to link anomalies.

[0089] For the capture of the short-term mutation feature, when the link state fluctuates violently, the short-term mutation feature is calculated to capture the mutation situation. The short-term mutation feature quantity defined at this time is as follows:

[0090] ,

[0091] where, is the short-term mutation feature quantity, representing the instantaneous anomaly amplitude; is the delay change rate, used to determine the mutation amplitude; is the change amplitude of the packet loss rate; is the influence factor for adjusting the influence of the packet loss rate change amplitude on the mutation.

[0092] The above formula realizes the high-sensitivity judgment of the mutation by calculating the delay change rate and the change amplitude of the packet loss rate to adapt to the instantaneous anomalies in the complex link state.

[0093] In particular, when , it is a mild short-term timeout, caused by slight network fluctuations and does not require immediate intervention; when , it is a moderate short-term timeout, indicating obvious sudden interference. In this case, the recording and monitoring frequency can be selected; when , it is a severe short-term timeout, indicating large fluctuations in the network, and temporary recovery measures may need to be taken according to the timeout frequency; where, , are the proportionality coefficients set according to the expert experience method;

[0094] For cumulative deviation aggregation and long-term timeout determination, based on the short-term mutation feature quantity, further judge the cumulative deviation aggregation feature of the link state to detect long-term timeout; if the cumulative deviation value exceeds the amplification factor of the long-term mutation trigger quantity, it is considered that the link state is in long-term timeout, and the determination formula is as follows:

[0095]

[0096] where, is the cumulative deviation value; is the amplification factor of the long-term mutation trigger quantity; is the proportionality coefficient for long-term timeout determination, which is set according to the expert experience method and is used to control the proportional relationship between the cumulative deviation value and the short-term mutation feature quantity;

[0097] When the cumulative deviation value is higher than the amplification factor of the long-term mutation trigger quantity, it is determined that the communication is in long-term timeout;

[0098] In particular, when , it is a mild long-term timeout, indicating that the communication state fluctuates unstably but has not caused serious impacts, and it can be observed temporarily to determine whether it is a persistent problem; when , it is a moderate long-term timeout, indicating that the communication link stability is poor, and it may be necessary to increase reconnection or adjust communication parameters; when , it is a severe long-term timeout, indicating that the link state cannot maintain communication normally, and an alarm should be triggered or high-level fault handling should be performed; where 、 are proportionality coefficients set according to the expert experience method.

[0099] Through the above process, the communication state signal (normal, short-term timeout, long-term timeout) and the timeout type are obtained; at the same time, based on the communication state signal and the timeout type, a processing strategy is obtained to get the communication anomaly processing signal, and the communication anomaly processing signal is the timeout type and the processing strategy,

[0100] Specifically, the processing strategy is formulated according to the expert experience method combined with the link quality assessment result, and based on the communication state signal (i.e., whether the link is normal, whether there is short-term or long-term timeout, etc.) and the timeout type (short-term timeout degree or long-term timeout degree). It involves determining the emergency measures to be taken, mainly including:

[0101] Reconnection strategy: For reconnection failure or timeout type, the system calculates the optimal reconnection interval time and reconnection transmission power through the adaptive reconnection strategy.

[0102] Temporary recovery strategy: If a short-term timeout occurs, that is, a short-term sudden fluctuation occurs, the system selects to temporarily record and monitor the frequency, or takes mild intervention measures, such as adjusting the acquisition frequency of the communication parameters of the electricity meter.

[0103] Fault handling: If it is determined as a long-time timeout, that is, when a serious communication problem occurs, the system will start a higher-level fault handling strategy, including high-level alarms, modifying network parameters, or performing equipment maintenance, etc.

[0104] Embodiment 7

[0105] Combined with Figure 1 As shown, the embodiment of the present invention provides an intelligent electricity meter communication timeout exception handling method, including the following steps:

[0106] S1. Real-time monitor and collect and analyze the communication parameters of the electricity meter, calculate the link quality evaluation value, perform adaptive double-layer dynamic timeout detection based on the link quality evaluation value to obtain the communication status signal and timeout type, and based on the communication signal status and timeout type, obtain the processing strategy, and enter the link quality evaluation value, communication signal status, timeout type, and processing strategy into the communication exception handling signal;

[0107] S2. Obtain the communication exception handling signal, start the intelligent reconnection strategy according to the communication exception handling signal, trigger the communication recovery signal, and when the communication recovery signal is triggered, perform data correction and compensation processing on the abnormal data generated by the real-time data stream of the electricity meter during the communication interruption to obtain the corrected complete data stream;

[0108] In step S1, the communication parameters of the electricity meter include communication delay, packet loss rate, signal strength, number of reconnection failures, basic reconnection interval time, default transmission power, electricity reading and timestamp of the electricity meter before interruption;

[0109] On this basis, in this embodiment, in step S2, extract the number of reconnection failures from the collected communication parameters of the electricity meter, introduce the intelligent reconnection strategy algorithm according to the processing strategy in the communication exception handling signal, and calculate the optimal reconnection interval time and reconnection transmission power according to the link quality evaluation value in the communication exception handling signal;

[0110] Further, according to the optimal reconnection interval time and reconnection transmission power, initiate a reconnection request. If the reconnection fails, record the number of failures and recalculate the optimal reconnection interval time and readjust the reconnection transmission power until the communication recovery signal is triggered;

[0111] The specific implementation process of the intelligent reconnection strategy algorithm is as follows:

[0112] When obtaining the communication exception handling signal, intelligently calculate the optimal reconnection interval time based on the current link quality evaluation value and the number of reconnection failures. The calculation formula for the optimal reconnection interval time is as follows:

[0113] ,

[0114] Among them, is the optimal reconnection interval time, representing the waiting reconnection interval time; is the basic reconnection interval time, which is the default reconnection interval time under normal conditions; is the reconnection interval time increment coefficient, which is set according to the expert experience method and is used to control the amplification ratio of the optimal reconnection interval time relative to the basic interval time; is the sensitivity parameter, which is set according to the expert experience method and is used to adjust the influence degree of the link quality evaluation value on the increase of the reconnection interval time; is the number of reconnection failures;

[0115] After calculating the optimal reconnection interval time, enter the reconnection parameter optimization stage; in order to improve the reconnection success rate, especially when the signal quality is low, the reconnection possibility is increased by dynamically adjusting the transmission power reconnection parameters, and its optimization formula is as follows:

[0116] ,

[0117] Among them, is the reconnection transmission power, representing the signal transmission intensity during the reconnection process; is the default transmission power, which is the standard power set under normal communication conditions; is the power adjustment gain coefficient, which is set according to the expert experience method and is used to increase the transmission power when the link quality is poor; is the power adjustment balance constant, which is set according to the expert experience method and is used to prevent the power adjustment from being too high when the link quality is relatively poor;

[0118] In the above formula, when the link quality is poor (that is, when the timeout type is mild short timeout, moderate short timeout, severe short timeout, mild long timeout, moderate long timeout, and severe long timeout), the transmission power will be appropriately increased to enhance the signal strength and improve the probability of communication recovery; when the link quality is good, the default power is maintained to avoid unnecessary power consumption;

[0119] After obtaining the optimal reconnection interval time and the reconnection transmission power , enter the reconnection control stage. In this stage, a reconnection request is initiated according to the calculated optimal reconnection interval time and reconnection transmission power. If the reconnection attempt is successful, a communication recovery signal will be triggered to start the data correction operation after communication recovery; if the reconnection attempt fails, the failure times will be recorded and the optimal reconnection interval time will be recalculated, and the power adjustment gain coefficient and power adjustment balance constant will be reset according to the expert experience method, and then the reconnection transmission power will be readjusted until the reconnection is successful, and then the communication recovery signal will be triggered.

[0120] Example 8

[0121] Combined Figure 1 As shown, the embodiment of the present invention provides an intelligent electric energy meter communication timeout exception handling method, including the following steps:

[0122] S1. Real-time monitor and collect and analyze the communication parameters of the electric energy meter, calculate the link quality evaluation value, perform adaptive double-layer dynamic timeout detection based on the link quality evaluation value to obtain the communication status signal and timeout type, and based on the communication signal status and timeout type, obtain the processing strategy, and record the link quality evaluation value, communication signal status, timeout type and processing strategy into the communication exception handling signal;

[0123] S2. Obtain the communication exception handling signal, start the intelligent reconnection strategy according to the communication exception handling signal to trigger the communication recovery signal. When the communication recovery signal is triggered, perform data correction and compensation processing on the abnormal data generated by the real-time data stream of the electric energy meter during communication interruption to obtain the corrected complete data stream;

[0124] In step S1, the communication parameters of the electric energy meter include communication delay, packet loss rate, signal strength, number of reconnection failures, basic reconnection interval time, default transmission power, electric energy reading and timestamp before the electric energy meter is interrupted;

[0125] In step S2, extract the number of reconnection failures from the collected communication parameters of the electric energy meter, introduce the intelligent reconnection strategy algorithm according to the processing strategy in the communication exception handling signal, and calculate the optimal reconnection interval time and reconnection transmission power according to the link quality evaluation value in the communication exception handling signal;

[0126] On this basis, in this embodiment, when the communication recovery signal is triggered, extract the electric energy reading and timestamp before the electric energy meter is interrupted from the collected communication parameters of the electric energy meter, and introduce the adaptive data correction and dynamic trend compensation algorithm to perform data correction and compensation processing on the abnormal data generated by the real-time data stream of the electric energy meter during communication interruption to obtain the corrected complete data stream;

[0127] Specifically, the adaptive data correction and dynamic trend compensation algorithm extracts various error factors from the electric energy reading and timestamp before the electric energy meter is interrupted. The error factors specifically include time distribution error factors and data deviation error factors to form a dynamic correction value; then, layer-by-layer compensation is performed on the data trend deviation based on the correction value; finally, the final corrected data stream is formed through cross-calculation to ensure the integrity and accuracy of the compensation. The specific implementation process is as follows:

[0128] To accurately compensate for data loss during communication interruption, it is first necessary to extract the error factors from the electricity readings and timestamps of the electricity meter before the interruption, and establish a comprehensive error correction value based on the error factors as the basis for subsequent trend correction;

[0129] Extract the electricity readings and timestamps of the electricity meter before the interruption, and calculate the time distribution error factor for each data point before the interruption of the electricity meter. The calculation formula is:

[0130] ,

[0131] where, is the time distribution error factor, quantifying the distribution characteristics in time; is the total number of data points before the interruption of the electricity meter; is the current timestamp; is the th data point among the data points before the interruption of the electricity meter; is the th data point's electricity reading value; is the th data point's electricity reading value; is the average electricity reading value of the data points before the interruption of the electricity meter;

[0132] The above formula comprehensively calculates through the characteristics of the data points before the interruption of the electricity meter in terms of the change of timestamp and electricity reading value, and obtains a quantified time distribution error factor.

[0133] Next, calculate the data deviation error factor. The calculation formula is:

[0134] ,

[0135] where, is the data deviation error factor, used to quantify the deviation characteristics of historical electricity values; is the th data point among the data points before the interruption of the electricity meter; is the th data point's electricity reading value; is the th data point's electricity reading value;

[0136] The above formula is used to capture the deviation characteristics of the electricity reading values before the interruption of the electricity meter and provide a measurement value of data deviation for subsequent trend compensation.

[0137] Using the time distribution error factor and the data deviation error factor, calculate the comprehensive error correction value , and its formula is:

[0138] ,

[0139] Among them, and are weight parameters, set according to the expert experience method, used to balance the weight coefficients of the two error factors, ensure that the influences of time distribution and data deviation are reasonably reflected in the final correction value, and are applicable to different communication anomaly situations;

[0140] Furthermore, based on the comprehensive error correction value , the data trend deviation is corrected to improve the accuracy of the correction process. Specifically, a dynamic trend model is used to perform hierarchical correction on the trend deviation of the data stream to obtain a trend compensation value. Based on the comprehensive error correction value of the time distribution error and the data deviation error, calculate the dynamic data trend model , and the calculation formula is as follows:

[0141] ,

[0142] Among them, is the dynamic data trend model, which captures the change trend of historical data; is the electrical energy reading value of the th data point before the power meter interruption; is the electrical energy reading value of the th data point before the power meter interruption; is the timestamp of the th data point before the power meter interruption;

[0143] The above formula uses logarithmic and sine functions to synthesize the trend characteristics of the data change before the power meter interruption, so as to achieve accurate modeling of the trend, which not only includes the change information in time, but also can reflect the fluctuation trend of the data in terms of value.

[0144] Use the above dynamic data trend model to further generate the dynamic trend deviation correction value ;

[0145] ,

[0146] The above formula adjusts the trend compensation value according to the error factor to ensure that the intensity of trend correction is increased when the data error is large, so that the data deviation can be compensated more accurately.

[0147] Furthermore, to ensure the integrity of the final corrected data stream, combine the comprehensive error correction value with the dynamic trend deviation correction value to obtain a cross-correction coefficient, and compensate the data stream through this coefficient to form a complete corrected data. Calculate the data cross-compensation coefficient , the calculation formula is as follows:

[0148] ,

[0149] The above formula combines the comprehensive error correction value and the dynamic trend deviation correction value, and uses cross - calculation to introduce the interaction of error and trend during data correction, so as to further improve the accuracy of correction.

[0150] Finally, using the data cross - compensation coefficient generate the corrected data value , and its calculation formula is:

[0151] ,

[0152] Among them, is the corrected data value, compensating for the missing part in the data stream; is the estimated value generated to fill the data missing after communication timeout, obtained through existing technologies, such as generating by combining historical data and trend characteristics;

[0153] The above formula is the result of comprehensive error correction and trend compensation, generating the finally corrected data value, performing multiple compensations on the missing data, enabling the data during communication interruption to be accurately corrected, and ensuring the continuity and integrity of the data.

[0154] The sequence of the invention embodiments is only for description and does not represent the superiority or inferiority of the embodiments. The processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0155] Each embodiment in this specification is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments.

[0156] The above embodiments are only used to illustrate the technical solutions of the present invention, not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of each embodiment of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for handling communication timeout anomalies of an intelligent electricity meter, characterized in that, It includes the following steps: S1. Monitor and collect communication parameters of the electricity meter in real time, calculate the link quality evaluation value, perform adaptive double-layer dynamic timeout detection based on the link quality evaluation value to obtain the communication status signal and timeout type, obtain the processing strategy based on the communication status signal and timeout type, and record the link quality evaluation value, communication status signal, timeout type, and processing strategy into the communication anomaly processing signal; In step S1, the adaptive double-layer dynamic timeout detection includes basic layer timeout detection and dynamic regulation layer timeout detection; The basic layer timeout detection is: set a fixed initial timeout threshold for the basic layer timeout detection, make a preliminary judgment according to the fixed initial timeout threshold and the link quality evaluation value. When the basic layer timeout detection determines timeout, further perform timeout determination through the dynamic regulation layer timeout detection; The dynamic regulation layer timeout detection is: calculate the dynamic timeout threshold based on the fixed initial timeout threshold as the dynamic timeout threshold for the dynamic regulation layer timeout detection, perform timeout judgment according to the dynamic timeout threshold and the link quality evaluation value. When the link quality evaluation value is greater than the dynamic timeout threshold, determine that the dynamic regulation layer timeout detection is timeout; The communication status signals include normal, short-term timeout, and long-term timeout, and the timeout types include mild short-term timeout, moderate short-term timeout, severe short-term timeout, mild long-term timeout, moderate long-term timeout, and severe long-term timeout; Performing adaptive double-layer dynamic timeout detection based on the link quality evaluation value is: using the link quality evaluation value for basic layer timeout detection and dynamic regulation layer timeout detection; when both the adaptive double-layer dynamic timeout detections determine timeout, judge the communication status signal and timeout type; The processing strategies include intelligent reconnection strategy, temporary recovery strategy, and fault handling. According to the communication status signal in the communication anomaly processing signal, judge whether to start the intelligent reconnection strategy. If it is necessary to start the intelligent reconnection strategy, execute step S2; S2. Obtain the communication anomaly processing signal, start the intelligent reconnection strategy according to the communication anomaly processing signal, trigger the communication recovery signal. When the communication recovery signal is triggered, perform data correction and compensation processing on the abnormal data generated by the real-time data stream of the electricity meter during the communication interruption to obtain the corrected complete data stream; The intelligent reconnection strategy is: when obtaining the communication anomaly processing signal, calculate the optimal reconnection interval time. After calculating the optimal reconnection interval time, calculate the reconnection transmission power; initiate a reconnection request according to the calculated optimal reconnection interval time and reconnection transmission power. If the reconnection attempt is successful, trigger the communication recovery signal to start the data correction operation after communication recovery; if the reconnection attempt fails, record the failure times and recalculate the optimal reconnection interval time, and readjust the reconnection transmission power according to the expert experience method until the reconnection is successful, and then trigger the communication recovery signal; Performing data correction and compensation processing on the abnormal data generated by the real-time data stream of the electricity meter during the communication interruption specifically is: introducing an adaptive data correction and dynamic trend compensation algorithm to perform data correction and compensation processing on the abnormal data generated by the real-time data stream of the electricity meter during the communication interruption; The adaptive data correction and dynamic trend compensation algorithm is as follows: extract multiple error factors from the electricity reading and timestamp before the power meter interruption, and calculate the comprehensive error correction value using the multiple error factors; Construct a dynamic data trend model based on the comprehensive error correction value, and the dynamic data trend model is used to capture the change trend of historical data; Calculate the dynamic trend deviation correction value according to the dynamic data trend model, and perform data correction and compensation processing on the abnormal data according to the comprehensive error correction value and the dynamic trend deviation correction value; The data correction and compensation processing for abnormal data is as follows: calculate the data cross-compensation coefficient based on the comprehensive error correction value and the dynamic trend deviation correction value, generate the corrected data value using the data cross-compensation coefficient, and compensate for the missing part in the data stream according to the corrected data value.

2. The intelligent electric energy meter communication timeout exception handling method according to claim 1, wherein, In step S1, the communication parameters of the power meter include communication delay, packet loss rate, signal strength, number of reconnection failures, basic reconnection interval time, default transmission power, electricity reading and timestamp before the power meter interruption.

3. The intelligent electric energy meter communication timeout exception handling method according to claim 2, characterized in that, In step S1, extract the communication delay, packet loss rate, and signal strength from the collected communication parameters of the power meter, and perform cumulative recursive calculation based on the current communication delay, packet loss rate, and signal strength to obtain the fluctuation feedback value of the link, forming the link state fluctuation feedback; The fluctuation feedback value of the link is used to describe the fluctuation characteristics of the current link state, and the fluctuation characteristics of the current link state include communication delay, packet loss rate, and signal strength; The calculation formula of the fluctuation feedback value of the link is as follows: , Among them, is the fluctuation feedback value of the link at the -th iteration; is the fluctuation feedback value of the link at the -th iteration; is the communication delay at the -th iteration; is the packet loss rate at the -th iteration; is the signal strength at the -th iteration; is the non-linear feedback term, is a small value to prevent the denominator from being zero; is the number of iterations, used to represent the iteration stage where the current calculation is located; When then , Among them, is the fluctuation feedback value of the link in the first iteration, represents the communication delay before iteration, represents the packet loss rate before iteration, represents the signal strength before iteration; is the weight adjustment factor for communication delay, is the weight adjustment factor for packet loss rate, is the weight adjustment factor for signal strength, is the weight adjustment factor for the non - linear feedback term.

4. The intelligent electric energy meter communication timeout exception handling method according to claim 3, characterized in that, In step S1, based on the link state fluctuation feedback, calculate the cumulative deviation value of the link and further calculate the link quality evaluation value; Based on the link state fluctuation feedback, the cumulative deviation value of the link is further calculated through a cumulative recurrence formula , and the calculation formula for the cumulative deviation value is as follows: , Among them, is the cumulative deviation value at the th iteration; is the cumulative deviation value at the th iteration; and are both adjustment factors for the cumulative deviation; Based on and , calculate the link quality evaluation value. The calculation formula of the link quality evaluation value is as follows: , Among them, is the link quality evaluation value, used to determine whether the link is normal or timed out; , , , are the weight adjustment factors; is the factor for adjusting the link quality responsiveness.

5. The intelligent electric energy meter communication timeout exception handling method according to claim 4, characterized in that In step S1, based on the link quality evaluation value, introduce the adaptive double-layer dynamic timeout detection algorithm to perform adaptive double-layer dynamic timeout detection; Introduce the adaptive double-layer dynamic timeout detection algorithm to perform adaptive double-layer dynamic timeout detection as follows: First, perform the basic layer timeout detection: Set the fixed initial timeout threshold for basic layer timeout detection according to the expert experience method , and based on the fixed initial timeout threshold make a preliminary judgment on the link status to identify the basic layer timeout status. The detection formula is: , Among them, used to adjust the influence of the fluctuation feedback value of the link on the fixed initial timeout threshold of the base layer; is to control the adjustment rate of the fixed initial timeout threshold; When the quality evaluation value of the link is greater than the adjusted fixed initial timeout threshold, it is determined that the base layer timeout detection is timed out; When the timeout detection at the basic layer is determined to be a timeout, set the fluctuation feedback threshold according to the expert experience method , and compare the fluctuation feedback value with the fluctuation feedback threshold . If the fluctuation feedback value is greater than the fluctuation feedback threshold, further perform timeout determination through the timeout detection of the dynamic regulation layer; Then, perform the dynamic regulation layer timeout detection: Set the dynamic timeout threshold for the dynamic regulation layer timeout detection according to the expert experience method , and compare the dynamic timeout threshold with the quality evaluation value of the link . When is greater than , it is determined that the dynamic regulation layer timeout detection times out; The calculation formula of the dynamic timeout threshold is as follows: , Among them, is the coefficient for controlling the adjustment range of the dynamic timeout threshold; is the smoothing control parameter of the dynamic timeout threshold; is used to smooth the cumulative deviation value and the fluctuation feedback value of the non-linear influence.

6. The intelligent electric energy meter communication timeout exception handling method according to claim 5, wherein, In step S1, based on the link quality evaluation value and the adaptive double-layer dynamic timeout detection, further calculate the short-term mutation characteristics and cumulative fluctuation characteristics, analyze to obtain the communication state signal, determine the timeout type, and obtain the processing strategy; The specific calculation process is as follows: Defined short-term mutation feature quantity , and the calculation formula is as follows: , Among them, is a short-time mutation feature quantity, representing the instantaneous abnormal amplitude; is the delay change rate, used to determine the mutation amplitude; is the change amplitude of the packet loss rate; is the influence factor for adjusting the influence of the change amplitude of the packet loss rate on the mutation; When the communication status signal is a short timeout, and the timeout type is a mild short timeout; When the communication status signal is a short timeout, and the timeout type is a medium short timeout; When the communication status signal is a short-time timeout, and the timeout type is a severe short-time timeout; where and are proportionality coefficients set according to the expert experience method If the cumulative deviation value is greater than the amplification factor of the long-term mutation trigger amount, the signal status signal is considered to be long-term timeout, and the judgment formula is as follows: Among them, is the cumulative deviation value; is the amplification factor of the long-term mutation trigger amount; is the proportionality coefficient for long-term timeout determination; When it is the mild long-time timeout type; When it is the medium long-time timeout When , the timeout type is severe long-time timeout; where , are proportionality coefficients set according to the expert experience method.

7. The intelligent electric energy meter communication timeout exception handling method according to claim 2, wherein In step S2, extract the number of reconnection failures from the collected communication parameters of the power meter, introduce the intelligent reconnection strategy algorithm to start the intelligent reconnection strategy according to the processing strategy in the communication anomaly processing signal, and calculate the optimal reconnection interval time and reconnection transmission power according to the link quality evaluation value in the communication anomaly processing signal; The specific implementation process of the intelligent reconnection strategy algorithm is as follows: When a communication exception handling signal is obtained, based on the current link quality assessment value and the number of reconnection failures, the optimal reconnection interval time is calculated intelligently. The calculation formula for the optimal reconnection interval time is as follows: , Among them, is the optimal reconnection interval time, representing the waiting reconnection interval time; is the basic reconnection interval time, which is the default reconnection interval time under normal conditions; is the reconnection interval time increment coefficient, set according to the expert experience method, and used to control the amplification ratio of the optimal reconnection interval time relative to the basic interval time; is the sensitivity parameter, set according to the expert experience method, and used to adjust the influence degree of the link quality evaluation value on the growth of the reconnection interval time; is the number of reconnection failures; After completing the calculation of the optimal reconnection interval time, perform the optimization of the reconnection transmission power, and the optimization formula is as follows: , Among them, is the reconnection transmission power, representing the signal transmission strength during the reconnection process; is the default transmission power, which is the standard power set under normal communication conditions; is the power adjustment gain coefficient, which is set according to the expert experience method and is used to increase the transmission power when the link quality is poor; is the power adjustment balance constant, which is set according to the expert experience method and is used to prevent the power adjustment from being too high when the link quality is relatively poor.

8. The intelligent electric energy meter communication timeout exception handling method according to claim 7, wherein In step S2, according to the optimal reconnection interval time and the reconnection transmission power, initiate a reconnection request. If the reconnection fails, record the failure times and recalculate the optimal reconnection interval time and readjust the reconnection transmission power until the communication recovery signal is triggered.

9. The intelligent electricity meter communication timeout exception handling method according to claim 8, characterized in that In step S2, after the communication recovery signal is triggered, the electricity reading and timestamp before the interruption of the electricity meter are extracted from the collected communication parameters of the electricity meter, and an adaptive data correction and dynamic trend compensation algorithm is introduced to perform data correction and compensation processing on the abnormal data generated by the real-time data stream of the electricity meter during the communication interruption, so as to obtain the corrected complete data stream; An adaptive data correction and dynamic trend compensation algorithm is introduced to perform data correction and compensation processing on the abnormal data generated by the real-time data stream of the electricity meter during the communication interruption. The specific process is as follows: Multiple error factors are extracted from the electricity reading and timestamp before the interruption of the electricity meter to form a comprehensive error correction value; the error factors specifically include a time distribution error factor and a data deviation error factor; The calculation formula for the time distribution error factor is: , Among them, is the time distribution error factor, quantifying the distribution characteristics in time; is the total number of data points before the power meter interruption; is the current timestamp; is the th timestamp of the th data point among the data points before the power meter interruption; is the electrical energy reading value of the th data point; is the electrical energy reading value of the th data point; is the average electrical energy reading value of the data points before the power meter interruption; The calculation formula for the data deviation error factor is: , Among them, is the data deviation error factor, which is used to quantify the deviation characteristics of historical power values; is the timestamp of the -th data point among the data points before the power meter interruption; is the power reading value of the -th data point; is the power reading value of the -th data point; Calculate the comprehensive error correction value using the time distribution error factor and the data deviation error factor , and its formula is: , Among them, and are weight parameters, set according to the expert experience method, and are used to balance the weight coefficients of the time distribution error factor and the data deviation error factor; Then, a dynamic data trend model is constructed based on the comprehensive error correction value to perform layer-by-layer compensation on the data trend deviation. The calculation formula is as follows: , Among them, is a dynamic data trend model that captures the changing trend of historical data; is the electrical energy reading value of the th data point before the interruption of the electricity meter; is the electrical energy reading value of the th data point before the interruption of the electricity meter; is the timestamp of the th data point before the interruption of the electricity meter; Further generate a dynamic trend deviation correction value using a dynamic data trend model , and the calculation formula is: , The comprehensive error correction value and the dynamic trend deviation correction value are cross-calculated to obtain a cross correction coefficient. The calculation formula is as follows: , Finally, using the data cross-compensation coefficient generate the corrected data value , and its calculation formula is: , Among them, is the corrected data value, compensating for the missing part in the data stream; is the estimated value generated to fill the data gap after communication timeout.

Citation Information

Patent Citations

  • Fault processing method and embedded system

    CN116820824A

  • Intelligent electric energy meter data acquisition and analysis system based on 5G network

    CN117792872A