A low-power-consumption RTU terminal wake-up determination method
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SUZHOU YUYING MICROELECTRONICS TECH CO LTD
- Filing Date
- 2026-04-10
- Publication Date
- 2026-06-19
AI Technical Summary
In existing technologies for wake-up determination of low-power RTU terminals, when the target sensor is not continuously powered, the output fluctuations in the initial power-on phase affect the wake-up determination results, leading to both false positives and false negatives, making it difficult to balance determination sensitivity and stability.
A two-round power-on acquisition method is adopted. Through power-on reproduction identification and reproduction rejection, combined with deviation identification of preset stable reference values, the change part to be judged is formed and the wake-up judgment result is determined.
It improves the accuracy and stability of wake-up determination, reduces false wake-ups and missed judgments, enhances the ability to identify real changes, and reduces the interference of output fluctuations in the initial stage of power-on.
Smart Images

Figure CN122248513A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of Internet of Things (IoT) terminal control technology, and more specifically, to a method for determining the wake-up of a low-power RTU terminal. Background Technology
[0002] Low-power RTU terminals are typically deployed in long-term, distributed scenarios such as water conservancy monitoring, environmental monitoring, agricultural monitoring, energy equipment monitoring, and industrial status data acquisition. Since these terminals mostly rely on batteries, storage batteries, or solar power, existing technologies typically keep the processor, acquisition module, and external sensors in a low-power state most of the time to reduce overall energy consumption. They only enter the working state at preset times or when preset conditions are met to complete data acquisition, status judgment, and subsequent processing. Regarding state switching under low-power operation, existing technologies typically employ periodic sleep / wake-up, sensor data change detection, threshold triggering, or module-level power supply control to balance power consumption control with basic monitoring requirements.
[0003] For example, existing technical document CN218387929U discloses an RTU device and a communication base station, which controls the periodic sleep and wake-up of the device through a sleep / wake-up module, and controls whether the power supply of other modules is turned on by a processor to reduce the overall power consumption under backup power supply conditions. This solution can achieve low-power operation of the RTU device to a certain extent, but its focus is mainly on the switching of device operating states and module power supply management. It does not provide corresponding processing for the impact of the output fluctuation of the target sensor in the initial stage of power-on under non-continuous power supply conditions on the wake-up determination result.
[0004] For example, existing technical document CN111031595B discloses a wireless sleep control system and method. This system acquires control parameters, generates sleep trigger information and wake-up trigger information, and further determines whether sleep or wake-up conditions are met based on the control parameters and sensor monitoring data, thereby controlling the battery-powered wireless sensor to enter sleep or wake-up state. This solution can achieve device state control to a certain extent by combining monitoring data and control conditions, but its processing logic mainly revolves around whether sleep and wake-up conditions are met, and state switching is still primarily based on current monitoring data or condition judgment results. When the target sensor uses a non-continuous power supply and there are significant output fluctuations in the initial power-on phase, the existing solution is prone to making the wake-up determination result susceptible to such output fluctuations.
[0005] For example, existing technical document CN103412633B discloses a method and apparatus for controlling a terminal to enter sleep or wake-up mode. This method acquires the working data of a sensor module in real time or at set intervals, and controls the terminal to enter sleep or working mode based on whether the working data changes within a preset time. This approach demonstrates that controlling the terminal state switching based on changes in sensor data is one of the feasible processing methods in this field. However, the processing focus of this type of solution is mainly on whether the sensor data changes. When the target sensor uses a non-continuous power supply method, and the initial power-on phase is accompanied by phenomena such as startup drift, short-term surge, or slow decline, judging solely based on whether the sampling result changes or whether the preset conditions are met after the change can easily misjudge unstable output changes caused by the power-on process as real changes in the measured object, thus triggering unnecessary wake-up operations.
[0006] In practical applications of low-power RTU terminals, target sensors are typically not continuously powered, but rather powered on only during each judgment. For some target sensors, it is difficult to immediately enter a stable output state shortly after power-on, and their initial sampling results usually include start-up drift, instantaneous fluctuations, or declines caused by the power-on process itself. If change judgment, condition judgment, or threshold comparison is still based directly on the sampling results after a single power-on, the wake-up judgment result is easily interfered with by the output fluctuations in the initial power-on phase. To reduce the probability of false judgment, existing technologies usually use methods such as increasing a fixed threshold, extending a fixed waiting time, or reducing the judgment sensitivity to avoid this. However, these methods also weaken the terminal's ability to respond to real changes, making it difficult to identify small but meaningful change signals in a timely manner. Therefore, in low-power judgment scenarios, the impact of initial power-on output fluctuations on wake-up judgment has not yet been effectively resolved.
[0007] Furthermore, existing technologies typically use pre-set reference values or fixed thresholds as the basis for judgment when comparing current sampling results with historical states. Fixed reference values or thresholds are often inadequate for output state changes between different judgment periods, easily leading to normal fluctuations being misjudged as abnormal changes, or the threshold being set too high, preventing genuine changes from entering the judgment range in a timely manner, thus increasing the risk of missed detections. Therefore, existing technologies are not only susceptible to output fluctuations in the initial power-on phase, but also struggle to simultaneously ensure judgment sensitivity and stability in subsequent comparison phases, further exacerbating the problem of both false wake-ups and missed detections. Thus, in low-power RTU terminal judgment scenarios where the target sensor is not continuously powered, existing wake-up judgment methods are easily affected by both output fluctuations in the initial power-on phase and output state changes between different judgment periods, making it difficult to simultaneously suppress false wake-ups and identify genuine changes.
[0008] To mitigate the impact of sensor output fluctuations during the initial power-on phase on wake-up determination and to improve the accuracy of wake-up determination under low-power operating conditions, this invention provides a wake-up determination method for a low-power RTU terminal. Summary of the Invention
[0009] To overcome the aforementioned deficiencies of the prior art and achieve the above objectives, the present invention provides the following technical solution: a low-power RTU terminal wake-up determination method, comprising:
[0010] Within a preset judgment window, the target sensor is controlled to perform the first round of power-on acquisition to obtain the first target value sequence; after the first round of power-on acquisition is completed, the target sensor is controlled to power off, and then the second round of power-on acquisition is performed to obtain the second target value sequence.
[0011] Based on the first target value sequence and the second target value sequence, power-on reproduction identification is performed to obtain the power-on reproduction segment;
[0012] Based on the power-on reproduction segment, the second target value sequence is subjected to reproduction elimination processing to obtain the change part to be judged;
[0013] Based on the variable part to be judged and the preset stable reference value, deviation identification is performed to obtain the target deviation part;
[0014] The wake-up determination result is determined based on the target deviation portion, and the wake-up determination result is output. When the target deviation portion exists, the wake-up determination result is wake-up; when the target deviation portion does not exist, the wake-up determination result is to remain in sleep mode.
[0015] Furthermore, the first round of power-on data acquisition and the second round of power-on data acquisition are performed at the same preset sampling interval, and the same number of target values are collected respectively; the target values in the first target value sequence and the second target value sequence correspond one-to-one with the corresponding sampling positions.
[0016] Furthermore, the method for obtaining the power-on reproduction segment includes:
[0017] Calculate the difference between each two adjacent first target values in the first target value sequence to obtain the first change difference sequence, and determine the first change direction sequence based on the sign of each first change difference in the first change difference sequence;
[0018] Calculate the difference between each two adjacent second target values in the second target value sequence to obtain the second change difference sequence, and determine the second change direction sequence based on the sign of each second change difference in the second change difference sequence;
[0019] Based on the first and second change direction sequences, the second target value sequence is screened for directional consistency to obtain candidate recurrence segments;
[0020] Calculate the absolute value of the difference between the first target value and the second target value at the corresponding sampling position within the candidate reproduction segment to obtain the reproduction difference sequence;
[0021] Based on the reproduction difference sequence and the preset starting sampling interval, candidate reproduction segments are screened to obtain the power-on reproduction segment.
[0022] Furthermore, methods for obtaining candidate recurring segments include:
[0023] The first change direction sequence and the second change direction sequence are compared sequentially item by item.
[0024] When the comparison results of multiple consecutive positions are consistent, and the number of such multiple positions is not less than a preset minimum number, the candidate recurrence segment is determined according to the corresponding range of the multiple consecutive positions in the second target value sequence.
[0025] Furthermore, methods for screening candidate recurring segments include:
[0026] Each recurrence difference in the recurrence difference sequence is compared with a preset recurrence difference threshold;
[0027] When there is a first recurrence difference in the recurrence difference sequence that is greater than the preset recurrence difference threshold, the position corresponding to the recurrence difference is determined as the truncation position, and the candidate recurrence segment is retained at the truncation position to obtain the truncated candidate recurrence segment.
[0028] When there is no reproduction difference greater than the preset reproduction difference threshold in the reproduction difference sequence, the candidate reproduction segment is determined as the truncated candidate reproduction segment;
[0029] Based on the preset starting sampling interval, the candidate truncated reproduction segments are filtered by location, and the segments located within the preset starting sampling interval are retained to obtain the power-on reproduction segments.
[0030] Furthermore, methods for obtaining the variable portion to be determined include:
[0031] Remove the power-on recurrence segment from the second target value sequence;
[0032] The remaining second target values after removing the power-on reproduction section are arranged in the sampling order to form the initial change part to be judged;
[0033] Count the number of target values in the initial undetermined change portion;
[0034] When the number of target values is less than the preset minimum threshold, the target sensor is controlled to continue collecting data within the remaining time of the preset judgment window to obtain supplementary target values. The supplementary target values are then added to the initial part to be judged according to the sampling order to obtain the part to be judged.
[0035] When the number of target values is not less than the preset minimum number threshold, the initial part to be judged is determined as the part to be judged.
[0036] Furthermore, the preset stable reference value is a dynamically updated value, and the method for determining the dynamically updated value includes:
[0037] Multiple historical target values were continuously collected before the target sensor entered sleep mode.
[0038] Remove the maximum and minimum values from the historical target values;
[0039] The current stable reference value is obtained by averaging the historical target values after removing the maximum and minimum values.
[0040] The current stable reference value is used as the preset stable reference value for deviation identification in this wake-up determination.
[0041] Furthermore, methods for obtaining the deviation from the target include:
[0042] Calculate the difference between each target value in the variable part to be judged and the preset stable reference value to obtain the deviation difference sequence;
[0043] Determine the deviation direction sequence based on the sign of each deviation difference in the deviation difference sequence;
[0044] Determine the deviation magnitude sequence based on the absolute value of each deviation difference in the deviation difference sequence;
[0045] Based on the deviation direction sequence and deviation magnitude sequence, the deviation of the part to be judged is filtered to obtain the target deviation part.
[0046] Furthermore, methods for deviation screening of the change to be judged include:
[0047] Perform directional consistency identification on sequences that deviate from the correct direction;
[0048] When the deviation directions of multiple consecutive positions are consistent, and the number of such multiple positions is not less than a preset number of deviations, candidate deviation segments are determined based on the corresponding range of the multiple consecutive positions in the part to be judged for change.
[0049] Compare the deviation magnitudes corresponding to the candidate deviation segments in the deviation magnitude sequence with the preset minimum deviation threshold.
[0050] When the deviation magnitudes corresponding to each candidate deviation segment are not less than the preset minimum deviation threshold, the candidate deviation segment is determined as the target deviation portion.
[0051] Furthermore, the preset minimum deviation threshold is a threshold dynamically updated based on a stable reference value; the method for determining the minimum deviation threshold includes:
[0052] Read multiple historical target values collected when a preset stable reference value is determined;
[0053] Calculate the absolute value of the difference between each historical target value and the stable reference value to obtain the historical deviation magnitude sequence;
[0054] The preset minimum deviation threshold is determined based on the maximum value in the historical deviation magnitude sequence.
[0055] Compared with the prior art, the technical effects and advantages of the low-power RTU terminal wake-up determination method of the present invention are as follows:
[0056] This invention solves the problem in the prior art where, in scenarios where the target sensor is not continuously powered, the result of a single power-on sampling directly participates in the wake-up determination, leading to a mixture of initial power-on output fluctuations and actual changes, and subsequent determination criteria being easily affected by fluctuations. This is achieved by performing two rounds of power-on sampling on the target sensor within a preset determination window, and by performing power-on reproduction identification, reproduction elimination, and deviation identification based on a preset stable reference value, according to the first and second target value sequences.
[0057] By controlling the target sensor to perform the first and second rounds of power-on data acquisition within a preset judgment window, and obtaining the power-on reproduction segment based on the results of the two rounds of power-on data acquisition, it is possible to separate the inherent responses of the target sensor, such as start-up drift, short-term surge, or slow fall, that repeatedly occur in the early stage under repeated power-on conditions, from the subsequent judgment objects of interest. This reduces the risk of misjudgment caused by directly using the results of a single power-on sampling for wake-up judgment in the prior art.
[0058] By performing a recurrence elimination process on the second target value sequence based on the power-on recurrence stage, the change part to be judged is obtained. This allows the subsequent judgment object to be transformed from the complete power-on response to the remaining response after excluding the repeated response in the initial power-on stage. This reduces the situation where the output fluctuation in the initial power-on stage continues to enter the subsequent comparison stage, and improves the clarity of the subsequent judgment object.
[0059] By performing deviation identification based on the change to be judged and a preset stable reference value, the target deviation part is obtained. The remaining response after removing the repeated response in the initial power-on stage can be compared with the reference benchmark in the stable state. This makes the subsequent judgment no longer rely solely on the original sampling result after a single power-on, thereby reducing the judgment bias caused by directly judging based on a single sampling result in the prior art and enhancing the reliability of recognizing real changes.
[0060] By determining the wake-up decision based on the target deviation, and outputting wake-up when the target deviation exists and maintaining sleep when the target deviation does not exist, the terminal state switching can be based on the effective deviation after preprocessing, thereby reducing unnecessary wake-up operations and helping to maintain the ability to respond to real changes while suppressing false wake-ups.
[0061] In summary, this invention does not merely perform conventional comparisons of single-power-on sampling results. Instead, it constructs a continuous processing chain around wake-up determination in scenarios where the target sensor is not continuously powered. This chain consists of two rounds of power-on sampling, power-on recurrence identification, recurrence rejection, stable reference value comparison, and deviation identification. This allows the results of the preceding processing to be continuously passed as inputs for subsequent processing. This improves upon the problems in existing technologies where output fluctuations in the initial power-on stage easily interfere with the determination, and where it is difficult to simultaneously address false wake-ups and missed detections. It is more conducive to the stable generation of wake-up determination results in low-power RTU terminal application scenarios. Attached Figure Description
[0062] Figure 1 This is a flowchart of a low-power RTU terminal wake-up determination method according to an embodiment of the present invention;
[0063] Figure 2 This is a flowchart illustrating the power-on reproduction identification process according to an embodiment of the present invention;
[0064] Figure 3 This is a flowchart illustrating the process of reproducibility elimination and determination of the variable parts to be judged in an embodiment of the present invention.
[0065] Figure 4 This is a flowchart illustrating the dynamic determination and deviation identification process of stable reference values and minimum deviation thresholds in an embodiment of the present invention. Detailed Implementation
[0066] The technical solutions of the embodiments of the present invention will be described in detail, clearly, and completely below with reference to the accompanying drawings. It should be particularly noted that the specific embodiments described below are only for better illustrating and explaining the technical solutions of the present invention, and are intended to enable those skilled in the art to better understand and implement the present invention, and should not be construed as limiting the scope of protection of the present invention. Without departing from the spirit and substance of the present invention, those skilled in the art can modify, adjust, or make equivalent substitutions based on the content disclosed in the present invention, and these should all be considered within the scope of protection of the present invention.
[0067] Example 1:
[0068] Please see Figure 1 As shown, this embodiment provides a low-power RTU terminal wake-up determination method, including:
[0069] Step S1: Within the preset judgment window, control the target sensor to perform the first round of power-on acquisition to obtain the first target value sequence; after the first round of power-on acquisition is completed, control the target sensor to power off and then perform the second round of power-on acquisition to obtain the second target value sequence.
[0070] In practice, the low-power RTU terminal pre-stores judgment period parameters and the correspondence between monitored quantities and sensors, and periodically initiates wake-up judgments based on the judgment period parameters. The judgment period parameters are used to limit the time interval between two adjacent wake-up judgments. The correspondence between monitored quantities and sensors is used to determine the target sensor based on the monitored quantity corresponding to the current wake-up judgment when multiple sensors are connected to the monitoring site. Before initiating the current wake-up judgment, the low-power RTU terminal first determines the target sensor from multiple sensors based on the monitored quantity corresponding to the current wake-up judgment, thus ensuring that the acquisition object corresponding to the current wake-up judgment remains unique.
[0071] Between two consecutive wake-up determinations, the low-power RTU terminal maintains low-power operation, and the target sensor remains powered off. Low-power operation corresponds to the low-energy working state during the non-determination phase, during which the target sensor does not output sampled values. When the periodic trigger time corresponding to the determination period parameter is reached, the low-power RTU terminal initiates the current wake-up determination and defines the continuous processing period used to complete the current wake-up determination as the preset determination window. The preset determination window is set based on the duration of the first round of power-on acquisition, the duration of power-off processing, the duration of the second round of power-on acquisition, and the duration required for subsequent determination processing, thereby ensuring that the acquisition processing and determination processing involved in the current wake-up determination are completed within the same continuous time period. After both the first and second rounds of power-on acquisition are limited to the preset determination window, the first target value sequence and the second target value sequence correspond to two power-on responses of the same monitored object within a short period of time. The repeated start-up drift, short-term surge, and slow fall in the initial stage of power-on of the target sensor thus have a basis for repeatable comparison, thereby reducing the possibility of misjudging the power-on changes as real changes in the monitored object.
[0072] Within the preset judgment window, the low-power RTU terminal first controls the target sensor to perform the first round of power-on data acquisition. This first round of power-on data acquisition is used to obtain the continuous response of the target sensor after its first power-on. The low-power RTU terminal continuously reads multiple sample values according to a preset sampling interval and arranges them in the order of sampling to form a first target value sequence. The preset sampling interval is used to limit the sampling time interval between two adjacent sample values, and the number of continuous sampling points is used to limit the number of sample values read in one power-on acquisition. The preset sampling interval is set based on the response change rate of the target sensor after power-on; when the response change is rapid, the preset sampling interval is smaller; when the response change is slow, the preset sampling interval is larger. The number of continuous sampling points is set based on the length of the response interval that the target sensor needs to cover after a single power-on, ensuring that one power-on acquisition covers at least the initial response interval and the subsequent change interval.
[0073] After the first round of power-on data acquisition, the low-power RTU terminal controls the target sensor to power off. This power-off process disrupts the continuous power supply between the first and second power-on responses, ensuring the target sensor is unpowered before the second round of data acquisition. After the power-off process, the low-power RTU terminal controls the target sensor to perform the second round of power-on data acquisition. This second round of acquisition is used to obtain the continuous response of the target sensor after the second power-on. The low-power RTU terminal reads multiple sample values according to the same preset sampling interval and the same number of continuous sampling points as in the first round of acquisition, and arranges them in the order of sampling to form a second target value sequence. Once the first and second target value sequences are formed, the continuous responses obtained from the two rounds of power-on acquisition serve as the input for subsequent power-on reproduction and identification.
[0074] In this process, the first and second rounds of power-on data acquisition are performed at the same preset sampling interval, and the same number of target values are collected respectively. The target values in the first and second target value sequences correspond one-to-one with their respective sampling positions. For ease of implementation, the preset judgment window can be cumulatively set based on the duration of the first round of power-on data acquisition, the duration of the power-off processing, the duration of the second round of power-on data acquisition, and the time required for subsequent judgment processing. For example, if the duration of the first round of power-on data acquisition is 120 milliseconds, the duration of the power-off processing is 200 milliseconds, the duration of the second round of power-on data acquisition is 120 milliseconds, and the reserved time for subsequent judgment processing is 360 milliseconds, then the preset judgment window is set to 800 milliseconds. Using this setting, both rounds of power-on data acquisition, as well as subsequent reproduction identification, reproduction rejection, deviation identification, and result output, can all be completed within the same continuous window, avoiding the judgment spanning multiple discrete time periods.
[0075] The target sensor can be a level sensor, pressure sensor, flow sensor, temperature sensor, gas sensor, or current transmitter. The low-power RTU terminal can read the target sensor output through an analog acquisition interface, a digital acquisition interface, or a serial acquisition interface. The determination period parameter can be a fixed period parameter or a period parameter set separately for different monitored quantities. When only one sensor is connected to the monitoring site, the low-power RTU terminal directly identifies that sensor as the target sensor; when multiple sensors are connected to the monitoring site, the low-power RTU terminal selects the target sensor based on the monitored quantity corresponding to the current wake-up determination and performs two rounds of power-on data acquisition only for the target sensor.
[0076] For ease of understanding, exemplary data for step S1 is provided. Assume the low-power RTU terminal performs a wake-up determination corresponding to the liquid level monitoring quantity, and the liquid level sensor is identified as the target sensor; the determination period parameter is 30 seconds, the preset sampling interval is 0.5 seconds, and the number of consecutive sampling points is 6. Upon reaching the periodic trigger time, the low-power RTU terminal initiates the current wake-up determination and determines a preset determination window. Within the preset determination window, the low-power RTU terminal first controls the liquid level sensor to perform the first round of power-on acquisition, continuously obtaining 6 sampled values: 5.36, 5.24, 5.14, 5.08, 5.04, and 5.02, forming the first target value sequence. After the first round of power-on acquisition ends, the low-power RTU terminal controls the liquid level sensor to power off, and then performs the second round of power-on acquisition, continuously obtaining 6 sampled values: 5.34, 5.23, 5.13, 5.58, 5.67, and 5.70, forming the second target value sequence.
[0077] Step S2: Based on the first target value sequence and the second target value sequence, perform power-on reproduction identification to obtain the power-on reproduction segment.
[0078] Please see Figure 2 As shown, in specific implementation, the low-power RTU terminal uses the first target value sequence and the second target value sequence as input to perform power-on reproduction identification. The low-power RTU terminal first calculates the difference between each two adjacent first target values in the first target value sequence to obtain the first change difference sequence; then, based on the sign of each first change difference in the first change difference sequence, it determines the first change direction sequence. When the first change difference is greater than 0, the first change direction at the corresponding position is determined to be upward; when the first change difference is less than 0, the first change direction at the corresponding position is determined to be downward; when the first change difference is equal to 0, the first change direction at the corresponding position is determined to be stable.
[0079] After obtaining the first change difference sequence and the first change direction sequence, the low-power RTU terminal calculates the difference between each two adjacent second target values in the second target value sequence to obtain the second change difference sequence. Then, based on the sign of each second change difference in the second change difference sequence, the second change direction sequence is determined. When the second change difference is greater than 0, the second change direction at the corresponding position is determined to be upward; when the second change difference is less than 0, the second change direction at the corresponding position is determined to be downward; when the second change difference is equal to 0, the second change direction at the corresponding position is determined to be stable.
[0080] After the first and second change direction sequences are formed, the low-power RTU terminal performs directional consistency screening on the second target value sequence based on the first and second change direction sequences to obtain candidate reproducible segments. During directional consistency screening, the low-power RTU terminal compares the first and second change direction sequences sequentially. When the comparison results of multiple consecutive positions are consistent, and the number of consecutive positions is not less than a preset minimum number, the candidate reproducible segment is determined based on the corresponding range of these consecutive positions in the second target value sequence. Here, each position in the change direction sequence corresponds to a set of changes between adjacent sampled values. Therefore, when the comparison results of k consecutive positions are consistent, it indicates that the second target value sequence consists of k+1 consecutive sampling positions, from the sampled value corresponding to the starting position of the consecutive consistency to the next sampled value after the kth consistency position, forming a continuous sampling range with consistent direction. The low-power RTU terminal then determines this continuous sampling range as a candidate reproducible segment. The preset minimum number is set based on the number of positions that maintain consistent direction during the initial stage when the target sensor is repeatedly powered on under conditions of no real change. During setup, the target sensor undergoes multiple repeated power-on data acquisitions. The distribution of the number of positions maintaining consistent orientation in each acquisition is statistically analyzed, and the minimum number of consecutive positions that can cover most of the repeated power-on samples is determined as the preset minimum number. After the candidate reproducibility segment is formed, the changing intervals that repeatedly occur during the repeated power-on process have been screened out at the orientation level.
[0081] After a candidate reproduction segment is formed, the low-power RTU terminal calculates the absolute value of the difference between the first target value and the second target value at the corresponding sampling position within the candidate reproduction segment, obtaining a reproduction difference sequence. Each reproduction difference in the reproduction difference sequence corresponds one-to-one with a sampling position in the candidate reproduction segment. After the reproduction difference sequence is formed, the low-power RTU terminal compares each reproduction difference in the reproduction difference sequence with a preset reproduction difference threshold. When there is a first reproduction difference in the reproduction difference sequence that is greater than the preset reproduction difference threshold, the sampling position corresponding to that reproduction difference is determined as a truncation position, and only the sampling portion of the candidate reproduction segment before the truncation position is retained, resulting in a truncated candidate reproduction segment. The sampling value corresponding to the truncation position and the sampling values after it are no longer retained. When there is no reproduction difference in the reproduction difference sequence that is greater than the preset reproduction difference threshold, the candidate reproduction segment is determined as a truncated candidate reproduction segment. The low-power RTU terminal then filters the truncated candidate reproduction segments according to the preset starting sampling interval, and retains the segments located within the preset starting sampling interval to obtain the power-on reproduction segment.
[0082] The preset reproducibility difference threshold is set based on the distribution of the absolute value of the difference between the corresponding sampling positions in two rounds of power-on acquisition under conditions of no real change in the target sensor, and the upper bound of the reproducibility difference in the normal repeated power-on samples is taken as the preset reproducibility difference threshold. The preset starting sampling interval is set based on the range of the initial sampling positions where the main changes of the target sensor occur during power-on, and the range of the initial positions where the changes of the sensor occur concentratedly in the repeated power-on samples is determined as the preset starting sampling interval. After being jointly filtered by the first change direction sequence, the second change direction sequence, the reproducibility difference sequence, and the preset starting sampling interval, the response changes that occur repeatedly in the two rounds of power-on and are located in the initial stage of power-on are identified separately, and the sampling range of the repeated power-on response in the second target value sequence is thus clearly defined. The corresponding sampling part of the power-on reproducibility segment in the second target value sequence is used as the basis for subsequent reproducibility rejection processing.
[0083] For ease of understanding, the exemplary data from step S1 will continue to be used to illustrate step S2. The first target value sequence is 5.36, 5.24, 5.14, 5.08, 5.04, 5.02, and the second target value sequence is 5.34, 5.23, 5.13, 5.58, 5.67, 5.70. The low-power RTU terminal calculates the difference between two adjacent first target values in the first target value sequence, obtaining a first change difference sequence of -0.12, -0.10, -0.06, -0.04, -0.02; based on the sign of each first change difference in the first change difference sequence, the first change direction sequence is decreased, decreased, decreased, decreased, decreased. The low-power RTU terminal calculates the difference between two adjacent second target values in the second target value sequence, obtaining a second change difference sequence of -0.11, -0.10, 0.45, 0.09, and 0.03. Based on the sign of each second change difference in the second change difference sequence, the second change direction sequence is obtained as decreasing, decreasing, increasing, increasing, and increasing. Assuming a preset minimum quantity of 2, the comparison results of the first two positions are consistent. Since two consecutive consistent positions in the direction sequence correspond to three consecutive sampling positions in the second target value sequence, the low-power RTU terminal obtains a candidate reproduction segment based on the corresponding range of the first two positions in the second target value sequence, corresponding to the first to third sampling positions in the second target value sequence. The low-power RTU terminal continues to calculate the absolute value of the difference between the first target value and the second target value at the corresponding sampling positions within the candidate reproduction segment, obtaining a reproduction difference sequence of 0.02, 0.01, and 0.01. Assuming a preset reproduction difference threshold of 0.05, all reproduction differences in the reproduction difference sequence will not exceed the preset reproduction difference threshold, and the candidate reproduction segment will remain unchanged. Assuming a preset starting sampling interval covers the first to third sampling positions, the candidate reproduction segment will be located within the preset starting sampling interval, and the low-power RTU terminal will obtain the power-on reproduction segment accordingly. The corresponding sampling values of the power-on reproduction segment in the second target value sequence are 5.34, 5.23, and 5.13.
[0084] Step S3: Based on the power-on reproduction segment, perform reproduction elimination processing on the second target value sequence to obtain the change part to be judged.
[0085] Please see Figure 3 As shown, in specific implementation, the low-power RTU terminal uses the power-on reproduction segment and the second target value sequence as input to perform reproduction rejection processing. After the power-on reproduction segment is formed, the low-power RTU terminal first rejects the power-on reproduction segment in the second target value sequence. During rejection, the low-power RTU terminal removes the sampled values located within the corresponding sampling position range of the power-on reproduction segment in the second target value sequence from the subsequent judgment objects according to the corresponding sampling position range of the power-on reproduction segment, and only retains the second target value not covered by the power-on reproduction segment.
[0086] After the power-on reproduction phase is removed, the low-power RTU terminal uses the remaining second target values to form an initial variable portion to be judged, arranged according to the sampling order. Once the initial variable portion is formed, the low-power RTU terminal counts the number of target values in the initial variable portion and compares this number with a preset minimum threshold. The preset minimum threshold limits the minimum number of target values required for subsequent deviation identification. This preset minimum threshold is set based on the number of consecutive sampled values required for subsequent deviation identification, and is at least as high as the preset deviation number to ensure that the variable portion to be judged has a sufficient number of consecutive target values when entering deviation identification. When the number of target values is less than the preset minimum threshold, the low-power RTU terminal controls the target sensor to continue collecting data within the remaining time of the preset judgment window to obtain supplementary target values. These supplementary target values are then added to the initial variable portion to be judged according to the sampling order, forming the variable portion to be judged. When the number of target values is not less than the preset minimum threshold, the low-power RTU terminal determines the initial variable portion to be judged as the variable portion to be judged. After the sampling portion corresponding to the power-on reproduction section is removed, the subsequent object involved in the judgment changes from the complete response collected in the second round of power-on to the remaining response after excluding repeated power-on responses. This reduces the interference of repeated power-on responses from the target sensor on subsequent deviation identification. Once the variable to be judged is formed, subsequent deviation identification is carried out using the variable to be judged and a preset stable reference value as input.
[0087] In one implementation, when the number of target values is less than a preset minimum threshold, the low-power RTU terminal continuously supplements the sampling within the remaining time of the preset judgment window until the preset minimum threshold is reached or the preset judgment window ends. When the preset minimum threshold is reached after supplementary sampling, the supplemented continuous target values are identified as the change portion to be judged. When the cumulative number of target values is still less than the preset minimum threshold at the end of the preset judgment window, the obtained target values are still identified as the change portion to be judged according to the sampling order. However, since the number of continuous target values in this change portion to be judged is insufficient, a candidate deviation segment that meets the preset deviation quantity requirement cannot be formed in the subsequent deviation identification, and the final judgment result is that there is no target deviation portion. After adopting this processing method, the processing chain remains complete when the supplementary sampling is insufficient, and there is no problem of no end in the current judgment period.
[0088] For ease of understanding, the exemplary data from steps S1 and S2 will continue to be used to illustrate step S3. The second target value sequence is 5.34, 5.23, 5.13, 5.58, 5.67, and 5.70. The corresponding sampled values of the power-on reproduction segment obtained in step S2 in the second target value sequence are 5.34, 5.23, and 5.13. The low-power RTU terminal removes 5.34, 5.23, and 5.13 from the second target value sequence, retaining the remaining sampled values 5.58, 5.67, and 5.70, and forms the initial change portion to be judged according to the sampling order. Assuming the preset minimum quantity threshold is 3, the number of target values in the initial change portion to be judged is 3, which is not less than the preset minimum quantity threshold. The low-power RTU terminal determines 5.58, 5.67, and 5.70 as the change portion to be judged. If the number of target values in the initial undetermined change portion is less than the preset minimum threshold, the low-power RTU terminal continues to control the target sensor to collect supplementary target values and adds the supplementary target values to the initial undetermined change portion according to the sampling order; if the cumulative number of target values still does not reach the preset minimum threshold at the end of the preset determination window, the obtained continuous target values are retained for subsequent deviation identification. Since the number is insufficient to form a candidate deviation segment that meets the continuous number requirement, the target deviation portion will not be obtained in this determination.
[0089] Step S4: Based on the change to be judged and the preset stable reference value, deviation identification is performed to obtain the target deviation.
[0090] Please see Figure 4 As shown, in specific implementation, the low-power RTU terminal performs deviation identification using the change to be determined and a preset stable reference value as input. The preset stable reference value is a dynamically updated value. During dynamic updating, the low-power RTU terminal continuously collects multiple historical target values before the target sensor enters sleep mode. The maximum and minimum values of the historical target values are removed, and then the historical target values after removing the maximum and minimum values are averaged to obtain the current stable reference value, which is then used as the preset stable reference value. The preset stable reference value is dynamically determined by the historical target values collected before the target sensor enters sleep mode, thus ensuring that the reference baseline used for subsequent comparisons remains consistent with the current stable state.
[0091] The preset minimum deviation threshold is a threshold dynamically updated based on a stable reference value. The low-power RTU terminal reads multiple historical target values collected when the preset stable reference value was determined, calculates the absolute value of the difference between each historical target value and the stable reference value, and obtains a historical deviation magnitude sequence. Then, based on the maximum value in the historical deviation magnitude sequence, the preset minimum deviation threshold is determined. Thus, the preset stable reference value is used to characterize the reference baseline under the current stable state, and the preset minimum deviation threshold is used to characterize the upper limit of normal fluctuations allowed around this reference baseline. Although both are determined by the same batch of historical target values, the former is used to determine the comparison benchmark, and the latter is used to determine the deviation magnitude boundary.
[0092] After the preset stable reference value and preset minimum deviation threshold are determined, the low-power RTU terminal calculates the difference between each target value in the variable part to be judged and the preset stable reference value, and obtains the deviation difference sequence. After the deviation difference sequence is formed, the low-power RTU terminal determines the deviation direction sequence according to the sign of each deviation difference in the deviation difference sequence; and determines the deviation magnitude sequence according to the absolute value of each deviation difference in the deviation difference sequence.
[0093] After the deviation direction sequence and deviation magnitude sequence are formed, the low-power RTU terminal performs deviation screening on the part to be judged based on the deviation direction sequence and deviation magnitude sequence. During screening, the low-power RTU terminal first identifies the direction consistency of the deviation direction sequence. When the deviation directions of multiple consecutive positions are consistent, and the number of such consecutive positions is not less than a preset deviation number, candidate deviation segments are determined according to the corresponding range of such consecutive positions in the part to be judged. Since each position in the deviation direction sequence corresponds to a target value deviation relative to the stable reference value, at least a preset deviation number of consecutive same-direction deviation positions must appear in the part to be judged in order to form a candidate deviation segment. The preset deviation number is set based on the number of historical positions of consecutive same-direction fluctuations in the stable operation phase, and is used to limit the minimum number of consecutive positions required to form a candidate deviation segment. After the candidate deviation segment is formed, the low-power RTU terminal compares each deviation magnitude in the deviation magnitude sequence corresponding to the candidate deviation segment with a preset minimum deviation threshold. When each deviation magnitude corresponding to the candidate deviation segment is not less than the preset minimum deviation threshold, the candidate deviation segment is determined as the target deviation part. Under the combined constraints of continuity and amplitude conditions, instantaneous jitter at a single sampling position and continuous changes within the normal fluctuation range will not directly enter the target deviation portion. Once the target deviation portion is formed, the subsequent wake-up determination result output is based on whether the target deviation portion exists.
[0094] For ease of understanding, the exemplary data from steps S1 and S3 will continue to be used to illustrate step S4. Assume that the target sensor continuously collected 12 historical target values before entering sleep mode, namely 4.96, 4.98, 4.99, 5.00, 5.00, 5.00, 5.00, 5.01, 5.01, 5.00, 5.01, and 5.04. The low-power RTU terminal first removes the maximum value of 5.04 and the minimum value of 4.96, then averages the remaining 10 historical target values (4.98, 4.99, 5.00, 5.00, 5.00, 5.00, 5.01, 5.01, 5.00, and 5.01) to obtain the current stable reference value of 5.00, and uses 5.00 as the preset stable reference value. The low-power RTU terminal continues to read the 12 historical target values collected when determining the preset stable reference value, and calculates the absolute value of the difference between each historical target value and the stable reference value of 5.00, resulting in a historical deviation amplitude sequence of 0.04, 0.02, 0.01, 0.00, 0.00, 0.00, 0.00, 0.01, 0.01, 0.00, 0.01, 0.04. Based on the maximum value of 0.04 in the historical deviation amplitude sequence, the low-power RTU terminal determines a preset minimum deviation threshold of 0.04. Assuming the change values to be judged obtained in step S3 are 5.58, 5.67, and 5.70, the low-power RTU terminal calculates the difference between each target value in the change value to be judged and the preset stable reference value of 5.00, obtaining a deviation difference sequence of 0.58, 0.67, and 0.70. Based on the sign of each deviation difference in the deviation difference sequence, the deviation direction sequence is obtained as rising, rising, rising. Based on the absolute value of each deviation difference in the deviation difference sequence, the deviation amplitude sequence is obtained as 0.58, 0.67, and 0.70. Assuming the preset deviation quantity is 2, the deviation direction of multiple consecutive positions in the deviation direction sequence remains consistent, forming a candidate deviation segment. Since the deviation amplitudes corresponding to each candidate deviation segment (0.58, 0.67, and 0.70) are not less than the preset minimum deviation threshold of 0.04, the low-power RTU terminal determines this candidate deviation segment as the target deviation portion.
[0095] Step S5: Determine the wake-up determination result based on the target deviation portion and output the wake-up determination result. When the target deviation portion exists, the wake-up determination result is wake-up; when the target deviation portion does not exist, the wake-up determination result is to maintain sleep.
[0096] In specific implementation, the low-power RTU terminal uses the target deviation portion obtained in step S4 as the judgment input and determines the wake-up judgment result based on whether the target deviation portion exists. When the target deviation portion exists, the low-power RTU terminal determines the current wake-up judgment result as wake-up; when the target deviation portion does not exist, the low-power RTU terminal determines the current wake-up judgment result as maintaining sleep. After the wake-up judgment result is determined, the low-power RTU terminal performs corresponding processing according to the wake-up judgment result. When the wake-up judgment result is wake-up, the low-power RTU terminal ends low-power operation and performs subsequent acquisition, reporting, alarm, or control processing; when the wake-up judgment result is maintain sleep, the low-power RTU terminal continues to maintain low-power operation after the preset judgment window ends. The existence of the target deviation portion is directly related to whether the low-power RTU terminal ends low-power operation. The current wake-up judgment result is no longer directly determined based on the original response obtained from the second round of power-on acquisition, but is based on the processing chain that has been identified in the power-on reproduction section, eliminated in the reproduction sampling section, and formed by the target deviation portion. The repetitive response, stable baseline fluctuations, and short-term local disturbances in the initial power-on phase of the target sensor have all been weakened in the previous processing. Therefore, the current wake-up determination result directly depends on whether there is still a valid deviation after excluding the repetitive power-on response.
[0097] For ease of understanding, the exemplary data from steps S1 to S4 will continue to be used to illustrate step S5. In step S4, the consecutive sampling portions corresponding to 5.58, 5.67, and 5.70 have been identified as the target deviation portions. Therefore, the low-power RTU terminal determines the current wake-up determination result as wake-up and terminates low-power operation. If the target deviation portion is not obtained in step S4, the low-power RTU terminal determines the current wake-up determination result as maintaining sleep mode and continues low-power operation after the preset determination window ends. For the case where the supplementary sampling in step S3 still falls short of the preset minimum threshold, since subsequent deviation identification cannot form candidate deviation segments that meet the preset deviation quantity requirement, it is also classified as a case where the target deviation portion is not obtained, and the low-power RTU terminal determines the current wake-up determination result as maintaining sleep mode.
[0098] In conclusion, the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A low-power RTU terminal wake-up determination method, characterized in that, include: Within the preset judgment window, the target sensor is controlled to perform the first round of power-on acquisition to obtain the first target value sequence; After the first round of power-on data acquisition is completed, the target sensor is powered off, and then the second round of power-on data acquisition is performed to obtain the second target value sequence. Based on the first target value sequence and the second target value sequence, power-on reproduction identification is performed to obtain the power-on reproduction segment; Based on the power-on reproduction segment, the second target value sequence is subjected to reproduction elimination processing to obtain the change part to be judged; Based on the variable part to be judged and the preset stable reference value, deviation identification is performed to obtain the target deviation part; The wake-up determination result is determined based on the target deviation portion, and the wake-up determination result is output. When the target deviation portion exists, the wake-up determination result is wake-up. If the target deviation portion does not exist, the wake-up decision is to maintain sleep.
2. The low-power RTU terminal wake-up determination method according to claim 1, characterized in that, The first round of power-on data acquisition and the second round of power-on data acquisition are performed at the same preset sampling interval, and the same number of target values are collected respectively; the target values in the first target value sequence and the second target value sequence correspond one-to-one with the corresponding sampling positions.
3. The low-power RTU terminal wake-up determination method of claim 2, wherein Methods for obtaining the power-on reproduction segment include: Calculate the difference between each two adjacent first target values in the first target value sequence to obtain the first change difference sequence, and determine the first change direction sequence based on the sign of each first change difference in the first change difference sequence; Calculate the difference between each two adjacent second target values in the second target value sequence to obtain the second change difference sequence, and determine the second change direction sequence based on the sign of each second change difference in the second change difference sequence; Based on the first and second change direction sequences, the second target value sequence is screened for directional consistency to obtain candidate recurrence segments; Calculate the absolute value of the difference between the first target value and the second target value at the corresponding sampling position within the candidate reproduction segment to obtain the reproduction difference sequence; Based on the reproduction difference sequence and the preset starting sampling interval, candidate reproduction segments are screened to obtain the power-on reproduction segment.
4. The low-power RTU terminal wake-up determination method of claim 3, wherein, Methods for obtaining candidate recurring segments include: The first change direction sequence and the second change direction sequence are compared sequentially item by item. When the comparison results of multiple consecutive positions are consistent, and the number of such multiple positions is not less than a preset minimum number, the candidate recurrence segment is determined according to the corresponding range of the multiple consecutive positions in the second target value sequence.
5. The low-power RTU terminal wake-up determination method of claim 3, wherein, Methods for screening candidate recurrence segments include: Each recurrence difference in the recurrence difference sequence is compared with a preset recurrence difference threshold; When there is a first recurrence difference in the recurrence difference sequence that is greater than the preset recurrence difference threshold, the position corresponding to the recurrence difference is determined as the truncation position, and the candidate recurrence segment is retained at the truncation position to obtain the truncated candidate recurrence segment. When there is no reproduction difference greater than the preset reproduction difference threshold in the reproduction difference sequence, the candidate reproduction segment is determined as the truncated candidate reproduction segment; Based on the preset starting sampling interval, the candidate truncated reproduction segments are filtered by location, and the segments located within the preset starting sampling interval are retained to obtain the power-on reproduction segments.
6. The low-power RTU terminal wake-up determination method of claim 1, wherein Methods for obtaining the variable portion to be determined include: Remove the power-on recurrence segment from the second target value sequence; The remaining second target values after removing the power-on reproduction section are arranged in the sampling order to form the initial change part to be judged; Count the number of target values in the initial undetermined change portion; When the number of target values is less than the preset minimum threshold, the target sensor is controlled to continue collecting data within the remaining time of the preset judgment window to obtain supplementary target values. The supplementary target values are then added to the initial part to be judged according to the sampling order to obtain the part to be judged. When the number of target values is not less than the preset minimum number threshold, the initial part to be judged is determined as the part to be judged.
7. The low-power RTU terminal wake-up determination method of claim 1, wherein The preset stable reference value is the dynamically updated value, and the method for determining the dynamically updated value includes: Multiple historical target values were continuously collected before the target sensor entered sleep mode. Remove the maximum and minimum values from the historical target values; The current stable reference value is obtained by averaging the historical target values after removing the maximum and minimum values. The current stable reference value is used as the preset stable reference value for deviation identification in this wake-up determination.
8. The low-power RTU terminal wake-up determination method of claim 1, wherein Methods for obtaining the deviation from the target include: Calculate the difference between each target value in the variable part to be judged and the preset stable reference value to obtain the deviation difference sequence; Determine the deviation direction sequence based on the sign of each deviation difference in the deviation difference sequence; Determine the deviation magnitude sequence based on the absolute value of each deviation difference in the deviation difference sequence; Based on the deviation direction sequence and deviation magnitude sequence, the deviation of the part to be judged is filtered to obtain the target deviation part.
9. The low-power RTU terminal wake-up determination method of claim 8, wherein, Methods for deviation screening of the change to be judged include: Perform directional consistency identification on sequences that deviate from the correct direction; When the deviation directions of multiple consecutive positions are consistent, and the number of such multiple positions is not less than the preset number of deviations, candidate deviation segments are determined according to the corresponding range of the multiple consecutive positions in the part to be judged for change. Compare the deviation magnitudes corresponding to the candidate deviation segments in the deviation magnitude sequence with the preset minimum deviation threshold. When the deviation magnitudes corresponding to each candidate deviation segment are not less than the preset minimum deviation threshold, the candidate deviation segment is determined as the target deviation portion.
10. The low-power RTU terminal wake-up determination method of claim 9, wherein, The preset minimum deviation threshold is a threshold obtained by dynamically updating a stable reference value. The method for determining the minimum deviation threshold includes: Read multiple historical target values collected when a preset stable reference value is determined; Calculate the absolute value of the difference between each historical target value and the stable reference value to obtain the historical deviation magnitude sequence; The preset minimum deviation threshold is determined based on the maximum value in the historical deviation magnitude sequence.