Dynamic acquisition awakening system and method for osmotic pressure terminal based on water level change
By dynamically collecting and waking up the system based on water level changes, and dynamically adjusting the sampling period and multiple communication methods, the problem of insufficient power in the reservoir dam safety monitoring terminal in weak light or rainy environments is solved, and real-time and accurate data collection and equipment endurance are achieved, making it suitable for a variety of harsh environments.
Patent Information
- Application Number
- CN202511301738.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-12
- Publication Date
- 2025-10-14
AI Technical Summary
Existing reservoir and dam safety monitoring terminal equipment cannot continue to operate when there is insufficient light or power in rainy environments, and cannot achieve two-way communication and dynamic data collection, resulting in non-real-time and inaccurate monitoring.
A dynamic acquisition wake-up system based on water level changes is adopted. Through a controller composed of MCU circuit, lithium battery, 4G communication module, LORA communication module, etc., combined with RTC alarm wake-up and external watchdog, the sampling period is dynamically adjusted, multiple communication modes and time-sharing power supply are supported, so that the device can maintain reliable communication and data acquisition in low power mode.
It improves the real-time and accuracy of reservoir and dam safety monitoring, extends the equipment's endurance in weak light or rainy environments, ensures the integrity and interactivity of data collection, and is suitable for a variety of harsh monitoring environments.
Smart Images

Figure CN120780368A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of reservoir dam safety monitoring, and in particular relates to a system and method for dynamically collecting and waking up an osmotic pressure terminal based on water level changes. Background Art
[0002] In recent years, reservoir and dam safety monitoring products have become increasingly diverse. Numerous companies have launched independently developed seepage pressure data acquisition devices. These connect to vibrating-wire piezometers to collect parameters such as the water level of the reservoir, enabling comprehensive dam safety monitoring. Currently, commercially available dam safety monitoring terminals typically only have fixed data acquisition cycles. Dam safety monitoring personnel adjust the data acquisition cycle based on experience gained from water level conditions, making the process cumbersome. Due to the complex and often variable conditions of reservoirs, dam safety monitoring equipment often relies on flexible solar power. However, these devices typically draw only tens of milliamperes of current in standby mode. In low-light conditions, such as those at gates or under the shade of trees, or during prolonged periods of rain and overcast weather, these devices can cease operation due to insufficient power. While some low-power terminal monitoring devices are available on the market, they only collect and upload data at set intervals and lack two-way communication, rendering them incapable of functions such as calling for measurements or retrieving historical data. Summary of the Invention
[0003] The purpose of the present invention is to provide a system and method for dynamically collecting and waking up an osmotic pressure terminal based on water level changes, so as to solve the problems raised in the above-mentioned background technology.
[0004] To achieve the above-mentioned purpose, the present invention provides the following technical solutions: a dynamic acquisition and wake-up system for an osmotic pressure terminal based on water level changes, comprising a controller and a lithium battery connected to the controller, wherein the controller is composed of an MCU circuit, a charging circuit, a power supply circuit, a power management circuit, a 4G communication module circuit, a LORA communication module circuit, an excitation circuit, a vibration pickup circuit, an acquisition channel circuit, an analog-to-digital conversion circuit, an RS485 communication circuit, and an external watchdog circuit: the MCU circuit has a data storage unit FLASH and a high-precision real-time clock RTC inside, and the FLASH is used to store historical vibration string data, temperature data, and Allocate storage for a water level data queue for analysis and processing; the RTC is responsible for waking up the MCU at a preset collection time point through an alarm interrupt while the MCU circuit is dormant; the MCU circuit is connected to a power supply circuit, a power management circuit, a 4G communication module circuit, a LORA communication module circuit, an excitation circuit, a vibration pickup circuit, an analog-to-digital conversion circuit, an RS485 communication circuit, and an external watchdog circuit; the excitation circuit, the vibration pickup circuit, and the analog-to-digital conversion circuit are connected to an collection channel circuit; the collection channel circuit is connected to several sensors; the power management circuit is also connected to a charging circuit; and the controller dynamically adjusts the sampling period according to the water level information.
[0005] Preferably, the controller compares the actual water level with a set water level threshold and dynamically adjusts the sampling period according to the comparison result.
[0006] Preferably, the controller compares the actual water level change rate with a set water level change rate threshold, and dynamically adjusts the sampling period according to the comparison result.
[0007] Preferably, the MCU circuit sets the controller sleep period to the RTC according to the decision result, and controls the power management unit to actively shut down the power supply of the excitation circuit, the vibration pickup circuit, the analog-to-digital conversion circuit, and the acquisition channel circuit. The 4G communication module and the LORA communication module enter the low power consumption mode, and the MCU turns off all peripherals and enters the sleep mode autonomously.
[0008] Preferably, the MCU sets the 4G module communication pin or the URC reporting indication pin level jump to wake up the MCU, and the URC reporting when the 4G module data service arrives, the communication pin or the URC reporting indication pin level jump wakes up the MCU; the LoRa module communication pin or the module working status indication pin level jump is set to wake up the MCU, and when the LoRa module receives wireless data, the communication pin or the status indication pin level jump wakes up the MCU.
[0009] Preferably, the external watchdog circuit is used to reset the controller to collect vibrating string sensor data when the controller operates abnormally, resulting in RTC interruption to wake up the MCU, or failure of the server or host computer to remotely wake up the MCU, thereby ensuring the integrity of the MCU's periodic data collection.
[0010] A method for dynamically collecting and waking up an osmotic pressure terminal based on water level changes comprises the following steps: 1) Obtain water level information; 2) Dynamically adjust the sampling period according to water level changes; 3) Dynamically adjust the sampling period according to the water level change rate.
[0011] Preferably, the specific steps of step 1) are: obtaining the current water level value h through a preset collection cycle i , the acquisition time t i And water level value h i It is stored in a "first-in, first-out" principle queue, which always records the time of the latest N collection sequences and the corresponding water level data.
[0012] Preferably, the specific steps of step 2) are: setting the water level warning threshold H a , warning water level threshold H w , corresponding to the terminal sampling period T s 、T a 、T w , N water level data h i-N+1 、h i-N+2 ...h i , if all are within the warning threshold H a Below, the acquisition period is set to T s ; If all are within the warning threshold H a Above, increase the acquisition period to T a ; If the water level threshold reaches the warning water level threshold H w , then increase the acquisition period to T w .
[0013] Preferably, the specific steps of step 3) are: Set the reservoir dam water level change slope level, rapid change slope K a , rapid change slope K w , corresponding to the terminal sampling period T s 、T a 、T w , the least square method is used to calculate the N groups of data in the queue (t i ,h i ) to perform linear fitting and fit the straight line equation: ; Slope k calculation formula: ; The global optimal slope k is obtained by minimizing the sum of squared errors. If k is less than the threshold K a, then set the sampling period to T s ; If k is greater than or equal to the threshold K a , then increase the sampling period to T a ; If k is greater than or equal to the threshold K w , then increase the sampling period to T w .
[0014] Technical effects and advantages of the present invention: By analyzing water level data and its rate of change in real time, dynamically adjusting the collection cycle, and accurately capturing the water level change process, the real-time and accuracy of monitoring can be improved; The device consumes an average current of only about 1mA in sleep mode. The 4G and LoRa modules support microampere-level standby, significantly extending the device's battery life in low-light or rainy environments. Supports RTC timed wake-up, remote communication wake-up (4G / LoRa), and external watchdog reset wake-up to ensure the reliability and integrity of data collection; Even in low-power mode, it can still receive remote commands and support functions such as test calls, parameter settings, and historical data queries, improving the interactivity and practicality of the device. Equipped with multiple communication modes (4G / LoRa / RS485), multiple sensor channels, and time-sharing power supply strategies, it is suitable for a variety of harsh monitoring environments such as reservoirs and dams; The collection cycle is dynamically updated and uploaded to the server for backup. An external watchdog ensures the long-term stable operation of the system and avoids data loss due to abnormal situations. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 This is a system diagram of the present invention; Figure 2 This is a flowchart of the system workflow of the present invention; Figure 3 This is the logic diagram of the dynamic acquisition wake-up mechanism of the present invention; Figure 4 This is a logic diagram for implementing remote wake-up in the present invention. DETAILED DESCRIPTION
[0016] The following is a further description of specific embodiments of the present invention in conjunction with the accompanying drawings. It should be noted that the description of these embodiments is intended to facilitate understanding of the present invention and does not constitute a limitation of the present invention. In addition, the technical features involved in the various embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
[0017] The present invention provides a reference as shown in FIG Figure 1A dynamic water level-based osmotic pressure terminal data acquisition and wake-up system is described. The terminal primarily consists of a housing, a controller, and a lithium battery. The housing includes a charging port, a communication antenna port, a sensor port, and a grounding copper stud. The controller primarily comprises an MCU, a charging circuit, a power supply circuit, a power management circuit, a 4G communication module circuit, a LoRa communication module circuit, an excitation circuit, a vibration pickup circuit, an acquisition channel circuit, an analog-to-digital conversion circuit, an RS485 communication circuit, and an external watchdog circuit. The controller is responsible for performing tasks such as data acquisition and storage, power management, communication, data analysis, and decision-making and control. The MCU includes a data storage unit (FLASH) and a high-precision real-time clock (RTC). The FLASH is used to store historical vibrating string data and temperature data, as well as a queue for storing water level data for data analysis and processing. The RTC is responsible for waking the MCU at a preset acquisition time when the MCU is dormant. The charging circuit is connected to an external DC power supply or solar photovoltaic panel as a power source to ensure continuous operation of the device outdoors. The power supply circuit provides power to each unit in the system, while the power management circuit controls the power supply circuit to provide time-sharing power to the analog-to-digital conversion circuit, the excitation circuit, the vibration pickup circuit, the acquisition channel circuit, and the RS485 circuit. The RS485 circuit, 4G communication module circuit, and LoRa communication module circuit serve as the controller's communication circuits, providing RS485 wired communication and 4G and LoRa wireless communication methods, ensuring the flexible use of terminal equipment in the complex environments of reservoirs and dams. The MCU circuit connects the power supply circuit, power management circuit, 4G communication module circuit, LoRa communication module circuit, excitation circuit, vibration pickup circuit, analog-to-digital conversion circuit, RS485 communication circuit, and external watchdog circuit. The excitation circuit, vibration pickup circuit, and analog-to-digital conversion circuit are connected to the acquisition channel circuit, which is connected to several sensors. The power management circuit is also connected to the charging circuit. The controller compares the actual water level and water level change rate with a set threshold and dynamically adjusts the sampling period based on the comparison result.
[0018] In order to reduce power consumption, the 4G communication module and the LORA communication module both have an ultra-low power consumption mode. The current in the low power consumption state belongs to the microampere level, and at this time the 4G module and the LORA module can still maintain two-way communication with the server or the upper computer, that is, the power requirements such as calling measurement, setting the collection time point, and retrieving the sensor duration data can still be met, avoiding the disadvantage that the device can only collect data and upload data at a fixed time under low power consumption. The multi-channel data acquisition circuit is connected with a single or multiple sensors, and the sensors share an analog-digital conversion circuit, an excitation circuit, and a vibration pickup circuit. When multiple sensors are collected, only simple channel switching through an analog switch is needed, avoiding the use of relays and other devices to increase the power consumption and instability of long-term use of the sensor data acquisition. The sensor analog value and the vibrating string value are collected in time, and the analog-digital conversion circuit, the excitation circuit, and the vibration pickup circuit also adopt a time-sharing power supply mode. When collecting the analog value of the sensor temperature, the power supply of the excitation circuit and the vibration pickup circuit is turned off, and when collecting the vibrating string value of the sensor, the power supply of the analog-digital conversion circuit is turned off, thereby reducing power loss.
[0019] Reference Figure 2The system workflow of the dynamic acquisition and wake-up of the seepage pressure terminal based on water level changes is as follows: the device is powered on, the controller MCU peripherals are initialized, the RS485 communication parameters, the fixed IP address of the 4G communication module link setting, and the communication parameters of the LORA communication module are configured. After the communication configuration is completed, sensor data acquisition will be carried out immediately. The sensor temperature analog value and the vibrating string frequency value are collected in time-sharing. The corresponding analog-to-digital conversion circuit, excitation circuit and vibration pickup circuit, and acquisition channel circuit are powered in time-sharing. After data acquisition is completed, the MCU internal FLASH is used for data storage. According to actual needs, RS485, 4G or LORA is used to upload the data to the server or host computer. The MCU calculates the collected data into water level values, combines the historical water level value analysis and decision-making in the queue, and obtains the acquisition period under the current water level state. The sampling period is uploaded to the server or host computer for backup through the 4G module or LORA module. After the above process is completed, the controller MCU enters the countdown. If no instructions are received from the server or host computer within 20 seconds, the 4G module is set to enter ultra-low power mode, the LoRa module is set to enter WOR receiving mode, the RTC timing collection time is updated, the external watchdog action time is set, and the 4G and LoRa pin level jump wake-up MCU function is set. Finally, the MCU turns off other peripherals and enters low-power sleep mode, and a complete working cycle ends. If the corresponding instruction is received within the countdown of 20 seconds, the relevant instruction will be executed. After the execution is completed, the countdown will be started again, and the above countdown process will be repeated. The controller is in a low-power sleep state. If an RTC alarm is generated to wake up the MCU, the MCU configures related peripherals and immediately performs data collection. After data collection is completed, the FLASH data is stored, RS485, 4G, and LORA communications are restored, and the data is uploaded to the server or host computer. Then, the above steps of water level change data analysis and dynamic decision collection cycle are repeated, the RTC timing sampling cycle is updated, and the above steps of the controller entering low-power mode are repeated; if a 4G or LORA module pin level jump occurs to remotely wake up the MCU, the MCU configures related peripherals, 4G and LORA configure corresponding working modes, issue a wake-up notification instruction, and enter the countdown process. The countdown process is as described above.
[0020] refer to Figure 3, dynamic collection wake-up mechanism logic, under the low-power standby condition of the device, the RTC wakes up the MCU according to the set sampling period, collects sensor data, and analyzes the water level changes in combination with historical water level data. According to the water level change or the water level change rate, the device sampling period is dynamically determined, and the sampling period is uploaded to the server or host computer for data backup; if the server or host computer still does not detect the uploaded data after a few minutes of the scheduled collection point, the MCU is remotely woken up through 4G or LORA communication for data call testing, and data analysis and sampling period decision are performed in the same way as above; if the host computer fails to wake up the MCU, the watchdog will reset the MCU at the set time point, and the controller will immediately collect data to ensure that the data cycle collection is complete. After the data collection is completed, data analysis and sampling period decision are performed in the same way as above.
[0021] refer to Figure 4, the terminal equipment controller remote wake-up logic, the device standby sets into low-power sleep mode, in order to still ensure that the device and server or host computer communication in this mode, increase remote wake-up MCU function, can set 4G module communication pin, state indication pin level jump pin wake-up MCU, also can set LORA module communication pin, state indication pin level jump wake-up MCU. Set 4G module communication pin as MCU wake-up pin, when the server issues wake-up instruction, 4G module receives URC report information, and communication pin will send data to MCU, and communication pin will produce high-low level jump and wake up MCU, and MCU wakes up and will restore relevant peripheral configuration, and 4G module exits ultra-low power mode, then sends wake-up notification to server, after receiving the wake-up notification, operator can issue service instruction to the device, and the device executes the instruction;4G module state indication pin is set as MCU wake-up pin, server can directly send service instruction, server issues instruction, 4G module receives URC report, and state indication pin produces high-low level jump and wakes up MCU several milliseconds or tens of milliseconds before communication pin, and MCU wakes up and immediately restores corresponding peripheral, when module communication pin sends data to MCU, MCU can receive service instruction completely, and executes corresponding instruction. LORA module communication pin is set as MCU wake-up pin, host computer issues wake-up instruction, after LORA module receives wireless data, communication pin will send data to MCU, and high-low level jump of communication pin can wake up MCU, and MCU wakes up and will restore relevant peripheral configuration, and LORA module enters WOR transmission mode, then sends wake-up notification to host computer, after receiving the wake-up notification, operator can issue service instruction to the device, and the device executes the instruction;LORA module working state indication pin is set as MCU wake-up pin, host computer can directly send service instruction, host computer issues instruction, LORA module receives unlimited data, and working state indication pin produces high-low level jump and wakes up MCU several milliseconds before communication pin, and MCU wakes up and immediately restores corresponding peripheral, when module communication pin sends data to MCU, MCU can receive service instruction completely, and executes corresponding instruction.
[0022] The application further provides a water level change-based seepage pressure terminal dynamic acquisition wake-up method, which comprises the following steps: 1) obtaining water level information; a current water level value h is obtained through a preset acquisition period i , the acquisition time t i and the water level value h i are stored in a "first-in first-out" principle queue, and the queue always records the time and corresponding water level data of the last N acquisition sequences.
[0023] 2) dynamically adjusting a sampling period according to a water level change. The specific steps are: water level setting warning water level threshold H a , warning water level threshold H w , corresponding to the terminal sampling period T s 、T a 、T w , N water level data h i-N+1 、h i-N+2 ...h i , if all are within the warning threshold H a Below, the acquisition period is set to T s ; If all are within the warning threshold H a Above, increase the acquisition period to T a ; If the water level threshold reaches the warning water level threshold H w , then increase the acquisition period to T w; 3) Dynamically adjust the sampling period according to the water level change rate; The specific steps are: set the reservoir dam water level change slope level, rapid change slope K a , rapid change slope K w , corresponding to the terminal sampling period T s 、T a 、T w , the least square method is used to calculate the N groups of data in the queue (t i ,h i ) to perform linear fitting and fit the straight line equation:
[0024] Slope k calculation formula:
[0025] in, Indicates the acquisition time t i The mean of Indicates the water level value h i The mean of; The global optimal slope k is obtained by minimizing the sum of squared errors. If k is less than the threshold K a , then set the sampling period to T s ; If k is greater than or equal to the threshold K a , then increase the sampling period to T a ; If k is greater than or equal to the threshold K w , then increase the sampling period to T w。
[0026] Although the embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and are not to be construed as limitations on the present invention. A person skilled in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.
Claims
1. A dynamic osmotic pressure terminal acquisition and wake-up system based on water level changes, comprising a controller and a lithium battery connected to the controller, characterized in that: The controller is composed of an MCU circuit, a charging circuit, a power supply circuit, a power management circuit, a 4G communication module circuit, a LORA communication module circuit, an excitation circuit, a vibration pickup circuit, an acquisition channel circuit, an analog-to-digital conversion circuit, an RS485 communication circuit, and an external watchdog circuit: the MCU circuit has a data storage unit FLASH and a high-precision real-time clock RTC inside, the FLASH is used to store historical vibration string data, temperature data, and allocate storage for a water level data queue for analysis and processing; the RTC is responsible for waking up the MCU at a preset acquisition time point during the MCU circuit's dormancy period through an alarm interrupt; the MCU circuit is connected to the power supply circuit, the power management circuit, the 4G communication module circuit, the LORA communication module circuit, the excitation circuit, the vibration pickup circuit, the analog-to-digital conversion circuit, the RS485 communication circuit, and an external watchdog circuit, the excitation circuit, the vibration pickup circuit, and the analog-to-digital conversion circuit are connected to the acquisition channel circuit, the acquisition channel circuit is connected to several sensors, the power management circuit is also connected to the charging circuit, and the controller dynamically adjusts the sampling period according to the water level information.
2. The system for dynamically collecting and waking up osmotic pressure terminals based on water level changes according to claim 1 is characterized in that: The controller compares the actual water level with a set water level threshold and dynamically adjusts the sampling period according to the comparison result.
3. The osmotic pressure terminal dynamic acquisition and awakening system based on water level changes according to claim 1 is characterized by: The controller compares the actual water level change rate with a set water level change rate threshold and dynamically adjusts the sampling period according to the comparison result.
4. The osmotic pressure terminal dynamic acquisition and awakening system based on water level changes according to claim 1 is characterized by: According to the decision result, the MCU circuit sets the controller sleep period to the RTC, and controls the power management unit to actively shut down the power supply of the excitation circuit, the vibration pickup circuit, the analog-to-digital conversion circuit, and the acquisition channel circuit. The 4G communication module and the LORA communication module enter the low power consumption mode, and the MCU turns off all peripherals and enters the sleep mode autonomously.
5. The osmotic pressure terminal dynamic acquisition and awakening system based on water level changes according to claim 1 is characterized by: The MCU sets the 4G module communication pin or the URC reporting indication pin level jump to wake up the MCU. When the 4G module data service arrives, the URC reporting, the communication pin or the URC reporting indication pin level jump wakes up the MCU; the LoRa module communication pin or the module working status indication pin level jump is set to wake up the MCU. When the LoRa module receives wireless data, the communication pin or the status indication pin level jump wakes up the MCU.
6. The osmotic pressure terminal dynamic acquisition and awakening system based on water level changes according to claim 1 is characterized by: The external watchdog circuit is used to reset the controller to collect vibrating string sensor data when the controller operates abnormally, causing the RTC interrupt to wake up the MCU, or the server or host computer fails to remotely wake up the MCU, thereby ensuring the integrity of the MCU's periodic collection data.
7. A method for dynamic acquisition and awakening of osmotic pressure terminal based on water level change, characterized in that: The following steps are involved: 1) Obtain water level information; 2) Dynamically adjust the sampling period according to water level changes; 3) Dynamically adjust the sampling period according to the water level change rate.
8. The method for dynamically collecting and waking up an osmotic pressure terminal based on water level changes according to claim 7, characterized in that: The specific steps of step 1) are: obtaining the current water level value h through a preset acquisition cycle i , the acquisition time t i And water level value h i Stored in a "first-in, first-out" queue, the queue always records the time of the latest N collection sequences and the corresponding water level data.
9. The method for dynamically collecting and waking up an osmotic pressure terminal based on water level changes according to claim 8, characterized in that: The specific steps of step 2) are: setting the water level warning threshold H a , warning water level threshold H w , corresponding to the terminal sampling period T s 、T a 、T w , N water level data h i-N+1 、h i-N+2 ……h i , if all are within the warning threshold H a Below, the acquisition period is set to T s ; If all are within the warning threshold H a Above, increase the acquisition period to T a ; If the water level threshold reaches the warning water level threshold H w , then increase the acquisition period to T w .
10. The method for dynamically collecting and waking up an osmotic pressure terminal based on water level changes according to claim 8, characterized in that: The specific steps of step 3) are: Set the reservoir dam water level change slope level, rapid change slope K a , rapid change slope K w , corresponding to the terminal sampling period T s 、T a 、T w , the least square method is used to calculate the N groups of data in the queue (t i ,h i ) to perform linear fitting and fit the straight line equation: ; Slope k calculation formula: ; in, Indicates the acquisition time t i The mean of Indicates the water level value h i The mean of The global optimal slope k is obtained by minimizing the sum of squared errors. If k is less than the threshold K a , then set the sampling period to T s ; If k is greater than or equal to the threshold K a , then increase the sampling period to T a ; If k is greater than or equal to the threshold K w , then increase the sampling period to T w .
Citation Information
Patent Citations
Urban drainage pipe network water level information monitoring system
CN101865716A
Low-power-consumption inspection well liquid level monitoring and alarming system based on STM32
CN111707332A
Dynamic monitoring system and method for unwatering process of super-large deep foundation pit
CN113756318A
Database monitoring processing method and system for reservoir, medium and electronic equipment
CN119004019A
Integrated vibrating wire type stressometer
CN222166366U
Cited By
Watchdog low-power-consumption control method, device and equipment
CN121957919A