Intelligent water meter operation method and system based on dual-mode communication and multi-stage valve control
The smart water meter system, which utilizes dual-mode communication and multi-stage valve control, solves the problems of data loss and untimely commands when the LoRaWAN network is unavailable. It enables timely data reporting and valve control of the smart water meter when the LoRaWAN network is unavailable, thus extending battery life.
Patent Information
- Application Number
- CN202611520041.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-29
- Publication Date
- 2026-11-24
AI Technical Summary
Existing smart water meters lack backup communication methods when LoRaWAN networks are not available or connected to the network, leading to problems such as data loss, delayed recharge, and untimely valve opening commands.
The smart water meter operation method adopts dual-mode communication and multi-level valve control. It uses the WMBus communication unit as a supplementary meter reading method. When the LoRaWAN network is unavailable, it switches to a hybrid mode of WMBus and LoRaWAN Class A, and switches to LoRaWAN Class B mode when the network is available. Combined with 60-second reception cycle scheduling and multi-level tiered valve control, it realizes timely data reporting and intelligent valve control by intermittently detecting battery balance through load current.
It effectively avoids data loss when the network is not covered or not connected, solves the problem of timely recharge and valve opening commands, and extends the service life of lithium-ion batteries through graded valve control and battery health detection.
Smart Images

Figure CN123164348A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart meter and Internet of Things communication technology, specifically to a smart water meter operation method and system based on dual-mode communication and multi-level valve control. Background Technology
[0002] As the terminal metering device of a smart water system, smart water meters are typically powered by a single lithium-ion battery and are required to have a service life of 6 to 10 years.
[0003] In existing technologies, most smart water meters adopt the LoRaWAN Class A mode, reporting data at intervals of 6 to 8 hours. This makes it impossible to promptly push recharge confirmation and valve opening commands to users, resulting in users facing prolonged periods without water even after recharging. Furthermore, in situations where the LoRaWAN network is not available or the meter is not connected to the network, existing water meters lack backup communication methods, leading to data loss. Summary of the Invention
[0004] To address the shortcomings of existing technologies, this application proposes a smart water meter operation method and system based on dual-mode communication and multi-level valve control. When the LoRaWAN network is unavailable, the WMBus communication unit is activated as a supplementary meter reading method, avoiding data loss when the network is not covered or not connected. By using LoRaWAN Class B mode and 60-second reception cycle scheduling, minute-level downlink data delay is achieved, solving the problems of untimely recharge and valve opening command issuance.
[0005] The following is the technical solution of the present invention: a smart water meter operation method based on dual-mode communication and multi-stage valve control, including the following steps:
[0006] S1. Detect the LoRaWAN network status and switch the communication mode. When the network is unavailable, it works in a hybrid mode of WMBus and LoRaWAN Class A and disables the meter prepaid function. When the network is available, it switches to LoRaWAN Class B mode and enables the meter prepaid function.
[0007] S2. Multi-stage valve control based on the remaining flow at the water meter, including the first stage reminder, the second stage valve can be manually opened, and the third stage valve is completely closed.
[0008] S3. Schedule a low-power receiving window, open the receiving window in a 60-second cycle, and adjust the window duration between 40 and 170 milliseconds according to the communication quality;
[0009] S4. Intermittently inject 10 mA load current to detect battery capacity and estimate battery health status based on voltage under load;
[0010] S5 receives the recharge instruction and opens the valve after the zero point. In abnormal situations, the reporting frequency is increased to once every 2 hours.
[0011] As a preferred embodiment of the present invention, S1 includes the following steps:
[0012] S101. LoRaWAN signal strength is collected at 60-second intervals;
[0013] S102. Determine network availability based on RSSI value and network handshake result. When the RSSI value is greater than -110dBm for 3 consecutive times and the network handshake is successful, the network is considered available.
[0014] S103. Calculate the network availability score. When the network availability score is greater than or equal to 0.7, switch to LoRaWAN Class B mode and enable the prepaid function.
[0015] When the network availability score is less than 0.4, switch to WMBus and LoRaWAN Class A hybrid mode and disable the prepaid function;
[0016] S104. In WMBus mode, data is sent at a 1-minute interval. In Class A mode, network access is attempted once a day.
[0017] As a preferred embodiment of the present invention, in S103, the network availability score calculation expression is as follows:
[0018]
[0019]
[0020] In the above formula, Score network availability. These are the weighting coefficients. To normalize the signal strength, To improve delivery success rate, This is for time delay jitter.
[0021] As a preferred embodiment of the present invention, in S2, the multi-stage stepped valve control includes:
[0022] When the remaining flow rate is 5 cubic meters in the first tier, the system will notify the user and send a text message to the user.
[0023] In the second stage, when the remaining flow rate is 0 cubic meters, the valve will be closed, but manual opening of the valve is allowed.
[0024] In the third stage, with a remaining flow rate of -1.0 cubic meters, the valve is completely shut off, and the reporting frequency is increased.
[0025] As a preferred embodiment of the present invention, the first-tier threshold is dynamically adjusted based on the user's average daily water consumption, as expressed below:
[0026]
[0027] In the above formula, The first threshold is the dynamic threshold. Based on the first-tier threshold, To adjust the coefficient, This represents the user's average daily water consumption. For reference, the average daily water consumption.
[0028] As a preferred embodiment of the present invention, in S4, the battery health state estimation expression is as follows:
[0029]
[0030] In the above formula, For battery health status, The voltage under a 10 mA load. This is the discharge cutoff voltage. This is the lifetime starting voltage.
[0031] In a preferred embodiment of the present invention, in step S5, the valve opening timing is after the zero-crossing point, and the waiting time from the current time to the next zero-crossing point is calculated, as shown in the following expression:
[0032]
[0033] In the above formula, This is the waiting time until the next midnight. For the zero-point period, This is the current timestamp.
[0034] As a preferred embodiment of the present invention, in S5, after an abnormal state occurs, the reporting frequency is increased from once every 6 to 8 hours to once every 2 hours.
[0035] The smart water meter operation system based on dual-mode communication and multi-stage valve control includes:
[0036] The dual-mode communication adaptive switching module is used to detect the LoRaWAN network status and switch the communication mode accordingly.
[0037] A multi-stage tiered valve control module is used for multi-stage tiered valve control based on the remaining flow at the water meter end, and is connected to a dual-mode communication adaptive switching module;
[0038] The low-power receive scheduling module is used to schedule the low-power receive window and connects to the dual-mode communication adaptive switching module.
[0039] The battery remaining load detection module is used to intermittently inject a 10 mA load current to detect the remaining battery capacity.
[0040] The recharge zero-crossing valve opening module is used to receive recharge instructions and open the valve after crossing the zero point, and is connected to the multi-stage stepped valve control module;
[0041] The abnormal reporting frequency adjustment module is used to increase the reporting frequency under abnormal conditions. It connects to the dual-mode communication adaptive switching module, the multi-level stepped valve control module, and the battery remaining load detection module.
[0042] The beneficial effects of this invention are:
[0043] 1. In this invention, the WMBus communication unit is enabled as a supplementary meter reading method when the LoRaWAN network is unavailable, thus avoiding the problem of data loss when the network is not covered or not connected to the network;
[0044] 2. In this invention, by using LoRaWAN Class B mode and a 60-second receive cycle scheduling, minute-level downlink data latency is achieved, which solves the problem of untimely recharge arrival and valve opening command issuance;
[0045] 3. In this invention, through the hierarchical management of remaining flow warning, manual valve opening, and complete valve closing, a 10 mA load current is intermittently injected to detect the remaining battery capacity, reflecting the voltage change characteristics at the end of the lithium-ion battery discharge. Attached Figure Description
[0046] Figure 1 This is a schematic diagram of the system of the present invention;
[0047] Figure 2 This is a schematic diagram of the dual-mode communication adaptive switching module of the present invention;
[0048] Figure 3 This is a schematic diagram of the multi-stage stepped valve control module of the present invention.
[0049] Figure 4 This is a schematic diagram of the low-power receiver scheduling module of the system of the present invention;
[0050] Figure 5 This is a schematic diagram of the battery remaining load detection module of the system of the present invention;
[0051] Figure 6 This is a schematic diagram of the zero-crossing valve opening module of the system of the present invention.
[0052] Figure 7 This is a schematic diagram of the anomaly reporting frequency adjustment module of the present invention.
[0053] Figure 8 This is a flowchart of the method of the present invention;
[0054] Figure 9 This is a time window diagram of the LoRaWAN communication reception process in the method of the present invention;
[0055] In the diagram: 1. Dual-mode communication adaptive switching module; 101. Network status detection unit; 1011. RSSI sampling subunit; 1012. Network access status determination subunit; 102. Communication mode decision unit; 103. LoRaWAN communication unit; 1031. Class A mode subunit; 1032. Class B-mode subunit; 104. WMBus communication unit; 2. Multi-level stepped valve control module; 201. Step threshold determination unit; 2011. Threshold dynamic adjustment subunit; 202. Valve drive unit; 203. Step reminder unit; 204. Valve status feedback unit; 3. Low-power receiving and scheduling module; 301. Receiving window configuration unit; 302. Time slot synchronization unit; 303. Receiving power consumption calculation unit; 4. Battery remaining load detection module; 401. Load current injection unit; 402. Voltage sampling unit; 403. Remaining capacity estimation unit; 5. Recharge zero-crossing valve opening module; 501. Recharge instruction receiving unit; 502. Zero-crossing detection unit; 503. Valve opening execution unit; 6. Abnormal reporting frequency adjustment module; 601. Abnormal status determination unit; 602. Reporting frequency adjustment unit; 603. Data reporting unit. Detailed Implementation
[0056] To make the technical problems solved by the present invention, the technical solutions adopted, and the technical effects achieved clearer, the technical solutions of the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0057] Example 1
[0058] like Figures 1 to 7 As shown, the smart water meter operation system based on dual-mode communication and multi-stage valve control includes:
[0059] Dual-mode communication adaptive switching module 1 is used to detect the LoRaWAN network status and adaptively switch the communication mode.
[0060] Multi-stage tiered valve control module 2 is used for multi-stage tiered valve control based on the remaining flow at the water meter end, and is connected to dual-mode communication adaptive switching module 1;
[0061] Low-power reception scheduling module 3 is used to schedule the low-power reception window and is connected to dual-mode communication adaptive switching module 1.
[0062] Battery remaining load detection module 4 is used to intermittently inject 10mA load current to detect battery remaining capacity;
[0063] The zero-crossing valve opening module 5 is used to receive the recharge command and open the valve after crossing the zero point, and is connected to the multi-stage stepped valve control module 2.
[0064] The abnormal reporting frequency adjustment module 6 is used to increase the reporting frequency under abnormal conditions. It is connected to the dual-mode communication adaptive switching module 1, the multi-level stepped valve control module 2, and the battery remaining load detection module 4.
[0065] The output of the dual-mode communication adaptive switching module 1 is connected to the input of the multi-level stepped valve control module 2. The output of the multi-level stepped valve control module 2 is connected to the input of the abnormal reporting frequency adjustment module 6. The output of the low-power receiving scheduling module 3 is connected to the input of the dual-mode communication adaptive switching module 1. The output of the battery remaining load detection module 4 is connected to the input of the abnormal reporting frequency adjustment module 6. The output of the recharge zero-crossing valve opening module 5 is connected to the input of the multi-level stepped valve control module 2. The output of the abnormal reporting frequency adjustment module 6 is connected to the input of the dual-mode communication adaptive switching module 1.
[0066] In this embodiment, the dual-mode communication adaptive switching module 1 is used to detect the LoRaWAN network status and adaptively switch the communication mode. The dual-mode communication adaptive switching module 1 includes a network status detection unit 101, a communication mode decision unit 102, a LoRaWAN communication unit 103, and a WMBus communication unit 104. The network status detection unit 101 includes an RSSI sampling subunit 1011 and a network access status determination subunit 1012. The LoRaWAN communication unit 103 includes a Class A mode subunit 1031 and a Class B mode subunit 1032. The output of the RSSI sampling subunit 1011 is connected to the input of the network access status determination subunit 1012. The output of the network access status determination subunit 1012 is connected to the input of the communication mode decision unit 102. The output of the communication mode decision unit 102 is connected to the inputs of the Class A mode subunit 1031, the Class B mode subunit 1032, and the WMBus communication unit 104, respectively.
[0067] RSSI sampling subunit 1011 is used to acquire the received signal strength indication value through the LoRaWAN RF chip. The acquisition result is output after median filtering. The median filtering window has 5 sampling points to filter out transient interference.
[0068] The network access status determination subunit 1012 is used to determine whether the LoRaWAN network is available based on the output of the RSSI sampling subunit 1011 and the network access handshake result. The network is considered available when the RSSI value is greater than -110dBm for 3 consecutive times and the network access handshake is successful.
[0069] Communication mode decision unit 102 is used to select a communication mode based on network availability score. The network availability score calculation expression is as follows:
[0070]
[0071]
[0072] In the above formula, Score network availability. These are the weighting coefficients. To normalize the signal strength, To improve delivery success rate, This is for time delay jitter.
[0073] when When the value is greater than or equal to 0.7, the communication mode decision unit 102 outputs a Class B mode switching instruction to the Class B mode subunit 1032 and enables the prepaid function; when When the value is less than 0.4, the communication mode decision unit 102 outputs a WMBus and Class A mixed mode switching instruction to the WMBus communication unit 104 and the Class A mode subunit 1031 and disables the prepaid function.
[0074] Class A mode subunit 1031 is used to report data in LoRaWAN Class A mode at a period of 6 to 8 hours, and to open two receiving windows to receive downlink data after reporting.
[0075] Class B mode subunit 1032 is used to receive downlink data in LoRaWAN Class B mode by opening a receive window at a 60-second cycle, thereby achieving a downlink latency of minutes.
[0076] The WMBus communication unit 104 is used to send meter reading data in WMBus mode at a 1-minute cycle as a supplementary meter reading method when the LoRaWAN network is unavailable, with an average power consumption of about 20 microamps.
[0077] In this embodiment, the multi-stage tiered valve control module 2 is used for multi-stage tiered valve control based on the remaining flow at the water meter. The multi-stage tiered valve control module 2 includes a tiered threshold determination unit 201, a valve drive unit 202, a tiered reminder unit 203, and a valve status feedback unit 204. The tiered threshold determination unit 201 includes a threshold dynamic adjustment subunit 2011. The output of the threshold dynamic adjustment subunit 2011 is connected to the input of the tiered threshold determination unit 201. The output of the tiered threshold determination unit 201 is connected to the inputs of the valve drive unit 202 and the tiered reminder unit 203, respectively. The output of the valve drive unit 202 is connected to the input of the valve status feedback unit 204, and the output of the valve status feedback unit 204 is connected to the input of the abnormal reporting frequency adjustment module 6.
[0078] The threshold dynamic adjustment subunit 2011 is used to dynamically adjust the tiered threshold based on the user's average daily water consumption. The dynamic adjustment expression is as follows:
[0079]
[0080] In the above formula, The first threshold is the dynamic threshold. Based on the first-tier threshold, To adjust the coefficient, This represents the user's average daily water consumption. This is for reference to the average daily water consumption. In this embodiment, It is 5 cubic meters. It is 0.2.
[0081] The tiered threshold determination unit 201 is used to determine the tier of the current remaining flow based on the dynamically adjusted threshold. When the remaining flow equals When the remaining flow is equal to 0 cubic meters, it is determined to be the first step; when the remaining flow is equal to 0 cubic meters, it is determined to be the second step; and when the remaining flow is equal to -1 cubic meter, it is determined to be the third step.
[0082] The valve drive unit 202 is used to drive the motor to perform valve closing or opening actions. The drive current is 50 mA, and the H-bridge drive circuit is used to control the forward and reverse rotation of the motor.
[0083] The step reminder unit 203 is used to notify the system and send a text message to the user when the user is on the first step.
[0084] The valve status feedback unit 204 is used to provide feedback on the current status of the valve through a Hall sensor and send the status information to the abnormal reporting frequency adjustment module 6.
[0085] In this embodiment, the low-power reception scheduling module 3 is used to schedule the low-power reception window. The low-power reception scheduling module 3 includes a reception window configuration unit 301, a time slot synchronization unit 302, and a reception power consumption calculation unit 303. The output terminal of the time slot synchronization unit 302 is connected to the input terminal of the reception window configuration unit 301, the output terminal of the reception window configuration unit 301 is connected to the input terminal of the dual-mode communication adaptive switching module 1, and the output terminal of the reception power consumption calculation unit 303 is connected to the input terminal of the reception window configuration unit 301.
[0086] The time slot synchronization unit 302 is used to achieve time slot synchronization through the beacon frame sent by the LoRaWAN gateway. The beacon frame period is 128 seconds.
[0087] The receive window configuration unit 301 is used to open the receive window according to a 60-second cycle. The window duration is adjusted between 40 and 170 milliseconds according to the communication quality. When the RSSI value is greater than -90dBm, the window duration is configured to be 40 milliseconds. When the RSSI value is less than -105dBm, the window duration is configured to be 170 milliseconds.
[0088] The receiving power consumption calculation unit 303 is used to calculate the average power consumption and feed it back to the receiving window configuration unit 301. The average power consumption calculation expression is as follows:
[0089]
[0090] In the above formula, This represents the average power consumption. To receive current, For the duration of the receiving window, For transmitting current, For launch duration, The number of launches within a cycle. For dormant current, The period is [period]. In this embodiment, 6000 microamps 80,000 microamps It takes 1.6 seconds. It is 2 microamps. It lasts 60 seconds. If the power consumption exceeds 20 microamps, the receiving power consumption calculation unit 303 notifies the receiving window configuration unit 301 to shorten the window duration or reduce the transmission frequency.
[0091] In this embodiment, the battery remaining load detection module 4 is used to intermittently inject a 10 mA load current to detect the battery remaining capacity. The battery remaining load detection module 4 includes a load current injection unit 401, a voltage sampling unit 402, and a remaining capacity estimation unit 403. The output terminal of the load current injection unit 401 is connected to the input terminal of the voltage sampling unit 402, the output terminal of the voltage sampling unit 402 is connected to the input terminal of the remaining capacity estimation unit 403, and the output terminal of the remaining capacity estimation unit 403 is connected to the input terminal of the abnormal reporting frequency adjustment module 6.
[0092] The load current injection unit 401 is used to intermittently discharge the battery with a load current of 10 mA through a precision resistor. The discharge duration is 500 milliseconds, the detection interval is 24 hours, and the resistance of the precision resistor is 360 ohms.
[0093] The voltage sampling unit 402 is used to acquire the battery voltage at a sampling rate of 1 kHz during load current injection, acquire 500 samples and take the average value, and uses a 12-bit analog-to-digital converter.
[0094] The margin estimation unit 403 is used to estimate the battery health status based on the voltage under load. It estimates the battery health status based on the ratio of the voltage under a 10 mA load to the discharge cutoff voltage and the lifetime start voltage. The battery health status estimation expression is as follows:
[0095]
[0096] In the above formula, For battery health status, The voltage under a 10 mA load. This is the discharge cutoff voltage. This is the lifetime initiation voltage. In this embodiment, It is 2 volts. It is 3.6 volts. When When the battery level is below 20%, the remaining power estimation unit 403 outputs a low battery alarm to the abnormal reporting frequency adjustment module 6.
[0097] In this embodiment, the recharge zero-crossing valve opening module 5 is used to receive recharge commands and open the valve after the zero-crossing point. The recharge zero-crossing valve opening module 5 includes a recharge command receiving unit 501, a zero-crossing detection unit 502, and a valve opening execution unit 503. The output terminal of the recharge command receiving unit 501 is connected to the input terminal of the zero-crossing detection unit 502, the output terminal of the zero-crossing detection unit 502 is connected to the input terminal of the valve opening execution unit 503, and the output terminal of the valve opening execution unit 503 is connected to the input terminal of the multi-stage stepped valve control module 2.
[0098] The recharge instruction receiving unit 501 is used to receive recharge instructions issued by the system through the LoRaWAN downlink channel. The instructions include the recharge amount and the target table number and are encrypted using AES-128.
[0099] The zero-crossing detection unit 502 is used to detect whether the current time has crossed zero. The waiting time calculation expression is as follows:
[0100]
[0101] In the above formula, This is the waiting time until the next midnight. For the zero-point period, This is the current timestamp. In this embodiment, It lasts for 86,400 seconds.
[0102] The valve opening actuator 503 is used to drive the multi-stage stepped valve control module 2 to perform valve opening action after the zero crossing point, and the valve opening drive current is 50 mA.
[0103] In this embodiment, the anomaly reporting frequency adjustment module 6 is used to increase the reporting frequency under abnormal conditions. The anomaly reporting frequency adjustment module 6 includes an abnormal state determination unit 601, a reporting frequency adjustment unit 602, and a data reporting unit 603. The output terminal of the abnormal state determination unit 601 is connected to the input terminal of the reporting frequency adjustment unit 602, the output terminal of the reporting frequency adjustment unit 602 is connected to the input terminal of the data reporting unit 603, and the output terminal of the data reporting unit 603 is connected to the input terminal of the dual-mode communication adaptive switching module 1.
[0104] The abnormal state determination unit 601 is used to determine whether the valve is in an abnormal state based on the output of the valve state feedback unit 204 and the margin estimation unit 403. The abnormal states include the third-stage complete valve closure and the low battery alarm.
[0105] The reporting frequency adjustment unit 602 is used to increase the reporting frequency from once every 6 to 8 hours to once every 2 hours in abnormal conditions.
[0106] The data reporting unit 603 is used to send abnormal status data and reporting data to the system through the dual-mode communication adaptive switching module 1. The data format adopts JSON encoding, and the fields include table number, remaining flow, battery voltage, valve status and reporting timestamp.
[0107] Example 2
[0108] like Figure 8 and Figure 9 As shown, the operation method of a smart water meter based on dual-mode communication and multi-stage valve control includes the following steps:
[0109] S1. Detect the LoRaWAN network status and switch the communication mode. When the network is unavailable, it works in a hybrid mode of WMBus and LoRaWAN Class A and disables the meter prepaid function. When the network is available, it switches to LoRaWAN Class B mode and enables the meter prepaid function.
[0110] S2. Multi-stage valve control based on the remaining flow at the water meter, including the first stage reminder, the second stage valve can be manually opened, and the third stage valve is completely closed.
[0111] S3. Schedule a low-power receiving window, open the receiving window in a 60-second cycle, and adjust the window duration between 40 and 170 milliseconds according to the communication quality.
[0112] S4. Intermittently inject 10 mA load current to detect battery capacity and estimate battery health status based on voltage under load;
[0113] S5 receives the recharge instruction and opens the valve after the zero point. In abnormal situations, the reporting frequency is increased to once every 2 hours.
[0114] In step S1, the LoRaWAN network status is detected and the communication mode is switched. When the network is unavailable, it operates in a hybrid mode of WMBus and LoRaWAN Class A and the meter prepaid function is disabled. When the network is available, it switches to LoRaWAN Class B mode and the meter prepaid function is enabled. This includes the following steps:
[0115] S101 and RSSI sampling subunit 1011 collect LoRaWAN signal strength at 60-second intervals, with each sampling lasting 100 milliseconds. After median filtering, the signal strength is output to network access status determination subunit 1012.
[0116] S102, Network access status determination subunit 1012 determines network availability based on RSSI value and network access handshake result. When the RSSI value is greater than -110dBm for 3 consecutive times and the network access handshake is successful, the network is determined to be available.
[0117] S103, the communication mode decision unit 102 calculates the network availability score. When the network availability score is greater than or equal to 0.7, it switches to the Class B mode subunit 1032 and enables the prepaid function. When the network availability score is less than 0.4, it switches to the WMBus communication unit 104 and the Class A mode subunit 1031 and disables the prepaid function.
[0118] S104. In WMBus mode, WMBus communication unit 104 sends data at a 1-minute cycle. In Class A mode, Class A mode subunit 1031 attempts to join the network once a day.
[0119] In step S2, multi-stage tiered valve control is performed based on the remaining flow at the water meter, including the first stage of alert, the second stage of manual valve opening, and the third stage of complete valve closure, comprising the following steps:
[0120] S201, Threshold dynamic adjustment subunit 2011 dynamically adjusts the first-tier threshold according to the user's average daily water consumption;
[0121] S202, Step threshold determination unit 201 is based on dynamic threshold determination step;
[0122] When the remaining traffic equals the dynamic first-tier threshold, it is determined to be the first tier. The tier reminder unit 203 notifies the system and the system sends an SMS notification to the user.
[0123] When the remaining flow rate is equal to 0 cubic meters, it is determined to be the second stage, and the valve drive unit 202 performs the valve closing action, which can be manually opened;
[0124] When the remaining flow rate is equal to -1.0 cubic meters, it is determined to be the third step. The valve drive unit 202 completely closes the valve, and the valve status feedback unit 204 notifies the abnormal reporting frequency adjustment module 6.
[0125] In step S3, a low-power receive window is scheduled, which is opened at a 60-second cycle. The window duration is adjusted between 40 and 170 milliseconds depending on the communication quality. This includes the following steps:
[0126] S301 and time slot synchronization unit 302 perform time slot synchronization through beacon frames sent by the LoRaWAN gateway. The beacon frame period is 128 seconds.
[0127] S302, The receiving window configuration unit 301 opens the receiving window according to a 60-second cycle, and the window duration is dynamically adjusted between 40 and 170 milliseconds based on the RSSI value;
[0128] S303, the receiving power consumption calculation unit 303 calculates the average power consumption. When the average power consumption exceeds 20 microamps, the window duration is shortened or the transmission frequency is reduced.
[0129] In step S4, a 10 mA load current is intermittently injected to detect the remaining battery capacity, and the battery health status is estimated based on the voltage under load. This includes the following steps:
[0130] S401, the load current injection unit 401 intermittently discharges the battery with a load current of 10 mA through a precision resistor, the discharge lasts for 500 milliseconds, and the interval is 24 hours.
[0131] S402, voltage sampling unit 402 collects battery voltage at a sampling rate of 1 kHz and takes the average value of 500 samples;
[0132] S403 and the margin estimation unit 403 calculate the battery health status and output a low battery alarm when the battery health status is below 20%.
[0133] In step S5, a recharge instruction is received and the valve is opened after the zero point. In abnormal situations, the reporting frequency is increased to once every 2 hours, including the following steps:
[0134] S501, the recharge instruction receiving unit 501 receives the recharge instruction through the LoRaWAN downlink channel;
[0135] S502, the zero-crossing detection unit 502 calculates the waiting time, and the valve opening execution unit 503 drives the multi-stage stepped valve control module 2 to perform the valve opening action after the zero-crossing point.
[0136] S503, Abnormal state determination unit 601 determines abnormal state based on the output of valve state feedback unit 204 and margin estimation unit 403;
[0137] S604. The reporting frequency adjustment unit 602 increases the reporting frequency from once every 6 to 8 hours to once every 2 hours in abnormal conditions;
[0138] The data reporting unit 603 sends abnormal status data to the system through the dual-mode communication adaptive switching module 1.
[0139] This invention enables the WMBus communication unit as a supplementary meter reading method when the LoRaWAN network is unavailable, avoiding data loss when the network is not covered or not connected; by using LoRaWAN Class B mode and 60-second reception cycle scheduling, it achieves minute-level downlink data delay, solving the problem of untimely recharge arrival and valve opening command issuance; through hierarchical management of remaining flow warning, manual valve opening, and complete valve closing, it intermittently injects 10mA load current to detect battery remaining capacity, reflecting the voltage mutation characteristics at the end of lithium-ion battery discharge.
[0140] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Clearly, those skilled in the art can make various alterations and variations to the invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of equivalents of the invention, the invention is also intended to include these modifications and variations.
Claims
1. A smart water meter operation method based on dual-mode communication and multi-stage valve control, characterized in that, Includes the following steps: S1. Detect the LoRaWAN network status and switch the communication mode. When the network is unavailable, it works in a mixed mode of WMBus and LoRaWAN Class A and disables the meter prepaid function. When the network is available, it switches to LoRaWAN Class B mode and enables the meter prepaid function. S2. Multi-stage valve control based on the remaining flow at the water meter, including the first stage reminder, the second stage valve can be manually opened, and the third stage valve is completely closed. S3. Schedule a low-power receiving window, open the receiving window in a 60-second cycle, and adjust the window duration between 40 and 170 milliseconds according to the communication quality; S4. Intermittently inject 10 mA load current to detect battery capacity and estimate battery health status based on voltage under load; S5 receives the recharge instruction and opens the valve after the zero point. In abnormal situations, the reporting frequency is increased to once every 2 hours.
2. The smart water meter operation method based on dual-mode communication and multi-stage valve control according to claim 1, characterized in that, S1 includes the following steps: S101. LoRaWAN signal strength is collected at 60-second intervals; S102. Determine network availability based on RSSI value and network handshake result. When the RSSI value is greater than -110dBm for 3 consecutive times and the network handshake is successful, the network is considered available. S103. Calculate the network availability score. When the network availability score is greater than or equal to 0.7, switch to LoRaWAN Class B mode and enable the prepaid function. When the network availability score is less than 0.4, switch to WMBus and LoRaWAN Class A hybrid mode and disable the prepaid function; S104. In WMBus mode, data is sent at a 1-minute interval. In Class A mode, network access is attempted once a day.
3. The smart water meter operation method based on dual-mode communication and multi-stage valve control according to claim 2, characterized in that, In S103, the expression for calculating network availability score is as follows: In the above formula, Score network availability. These are the weighting coefficients. To normalize the signal strength, To improve delivery success rate, This is for time delay jitter.
4. The smart water meter operation method based on dual-mode communication and multi-stage valve control according to claim 1, characterized in that, In S2, multi-stage stepped valve control includes: When the remaining flow rate is 5 cubic meters in the first tier, the system will notify the user and send a text message to the user. In the second stage, when the remaining flow rate is 0 cubic meters, the valve will be closed, but manual opening of the valve is allowed. In the third stage, with a remaining flow rate of -1.0 cubic meters, the valve is completely shut off, and the reporting frequency is increased.
5. The smart water meter operation method based on dual-mode communication and multi-stage valve control according to claim 4, characterized in that, The first-tier threshold is dynamically adjusted based on the user's average daily water consumption, as shown in the following expression: In the above formula, The first threshold is the dynamic threshold. Based on the first-tier threshold, To adjust the coefficient, This represents the user's average daily water consumption. For reference, the average daily water consumption.
6. The smart water meter operation method based on dual-mode communication and multi-stage valve control according to claim 1, characterized in that, In S4, the battery health status estimation expression is as follows: In the above formula, For battery health status, The voltage under a 10 mA load. This is the discharge cutoff voltage. This is the lifetime starting voltage.
7. The smart water meter operation method based on dual-mode communication and multi-stage valve control according to claim 1, characterized in that, In S5, the valve opening timing is after the zero-crossing point. The waiting time from the current time to the next zero-crossing point is calculated using the following expression: In the above formula, This is the waiting time until the next midnight. For the zero-point period, This is the current timestamp.
8. The smart water meter operation method based on dual-mode communication and multi-stage valve control according to claim 1, characterized in that, In S5, after an abnormal state occurs, the reporting frequency will be increased from once every 6 to 8 hours to once every 2 hours.
9. A smart water meter operating system based on dual-mode communication and multi-stage valve control, characterized in that, include: The dual-mode communication adaptive switching module is used to detect the LoRaWAN network status and switch the communication mode accordingly. A multi-stage tiered valve control module is used for multi-stage tiered valve control based on the remaining flow at the water meter end, and is connected to a dual-mode communication adaptive switching module; The low-power receive scheduling module is used to schedule the low-power receive window and connects to the dual-mode communication adaptive switching module. The battery remaining load detection module is used to intermittently inject a 10 mA load current to detect the remaining battery capacity. The recharge zero-crossing valve opening module is used to receive recharge instructions and open the valve after crossing the zero point, and is connected to the multi-stage stepped valve control module; The abnormal reporting frequency adjustment module is used to increase the reporting frequency under abnormal conditions. It connects to the dual-mode communication adaptive switching module, the multi-level stepped valve control module, and the battery remaining load detection module.
