Bidirectional verification system for transmission data of remote water meter and server
By adopting a two-way verification mechanism between the remote water meter and the server, the accuracy of data is ensured before and after transmission, the security and stability problems in data transmission are solved, and the reliable data transmission is achieved.
Patent Information
- Application Number
- CN202420886069.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-26
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2034-04-26
AI Technical Summary
In data transmission between remote water meter and server, the prior art is difficult to ensure the security and authenticity of data, and there are problems of data missed and unstable transmission.
The two-way verification mechanism is adopted, and the CRC verification data is calculated and saved through the MCU controller. The 4G communication module is used to send data in TCP and re-check it on the server side to ensure that the data is correct before and after transmission.
It realizes data security and authenticity transmission, avoids data missed, and improves link stability and transmission success rate.
Smart Images

Figure CN222234887U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the field of data transmission, in particular to a two-way verification system for remote water meter and server transmission data. Background Art
[0002] The rapid development of the global 4G network enables its IoT devices to quickly access the Internet. Water meters with remote transmission functions are used by water companies in trade settlement tables to replace manual on-site meter reading, greatly improving meter reading efficiency. The table used for trade settlement is the key to whether the data can be transmitted to the background server efficiently, safely and without distortion. At the remote water meter end, a verification mechanism has been adopted according to the characteristics of the metering data to save the data to the onboard Flash. When it needs to be sent, the data is retrieved and a secondary verification is performed through the address index information to ensure that the data is correct. Then, according to the message format agreed with the background server, the data is packaged and sent to the background server through the onboard 4G module. After receiving the data, the server will also verify the data according to the agreed mechanism, and will store the data in the database only after the verification is correct. The link between the 4G module and the server adopts the TCP communication mechanism, which has the characteristics of stable and reliable data transmission. Summary of the invention
[0003] The utility model provides a two-way verification system for remote water meter and server data transmission. The data transmission link adopts TCP mechanism to ensure the reliability and stability of the link. After receiving the data, the server re-verifies the data and stores it in the database, and sends a response message to the device in time. Through such a two-way verification and interactive mechanism system, verification is performed before sending and re-verification is performed after receiving, ensuring that the metering data is safely and authentically transmitted to the background server.
[0004] In order to achieve the above purpose, the technical solution of the utility model is as follows:
[0005] A two-way verification system for remote water meter and server transmission data, comprising an MCU controller, a storage module, a 4G communication module, a power supply system, and a background server, and is characterized by:
[0006] The MCU controller periodically reads the metering data of the metering module through the M-BUS bus;
[0007] The MCU controller calculates the CRC check data corresponding to the flow parameter data, and stores the flow parameter data and its CRC check data in the storage module at the same time;
[0008] The MCU controller will regularly send traffic parameter data to the backend server through the 4G communication module;
[0009] The 4G communication module is connected to the backend server via TCP;
[0010] The backend server verifies the received datagram;
[0011] The power supply system provides working voltage to the above functional modules;
[0012] The beneficial effects of the utility model are as follows:
[0013] (1) The utility model provides a two-way verification system for data transmitted between a remote water meter and a server to ensure the security and authenticity of the data.
[0014] (2) The utility model provides a two-way verification system for data transmitted by a remote water meter and a server, and a two-way interactive mechanism ensures that the remote water meter will not miss measurement data.
[0015] (3) The utility model provides a bidirectional verification system for data transmission between a remote water meter and a server. The TCP mode can improve the stability of the link and the success rate of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Attached Figure 1 This is a system block diagram of a two-way verification system for remote water meter and server transmission data of the utility model.
[0017] Attached Figure 2 The utility model is a data transmission interaction mechanism block diagram of a two-way verification system for remote water meter and server data transmission. DETAILED DESCRIPTION
[0018] The technical solution of the utility model is briefly described below in conjunction with the accompanying drawings and specific implementation methods.
[0019] As attached Figure 1 Shown: A two-way verification system for remote water meter and server transmission data, including an MCU controller, a storage module, a 4G communication module, a power supply system, and a background server.
[0020] The MCU controller periodically reads the metering data of the metering module through the M-BUS bus;
[0021] The MCU controller calculates the CRC check data corresponding to the flow parameters (such as instantaneous flow, pressure, forward accumulation, reverse accumulation, alarm information, power and other data), and saves the flow parameter data and its CRC check data in the storage module at the same time;
[0022] The MCU controller will regularly send traffic parameter data to the backend server through the 4G communication module;
[0023] The 4G module is connected to the backend server via TCP;
[0024] The backend server will also verify the datagram according to the interaction mechanism and verification mechanism agreed with the system, and will save it into the database only after the data part is verified to be correct.
[0025] The power supply module provides working voltage to the above functional modules.
[0026] As attached Figure 1 As shown: the MCU controller will regularly send instantaneous flow, forward accumulation, reverse accumulation, pressure and other data to the background server through the 4G communication module. The 4G communication module has been connected to the background server in TCP mode. First, the MCU controller, as the control core of the remote water meter, regularly sends instructions to read the metering data of the metering module. After receiving the data from the metering module, we extract the data we need, such as accumulation, instantaneous flow, pressure, alarm, power and other data according to Figure 1 The metering data + check data in the data are stored in Flash. The message format agreed upon by the remote water meter and the server is AT+DATA=CSQ as the beginning of the message. The metering data and check data to be sent are spliced after CSQ. According to the set time interval for sending data, the MCU controller regularly reads the data stored in Flash into the cache, reads the metering data from the cache and calculates the check value and the check byte for comparison. If they are equal, the data verification has passed. If the verification fails, the data is discarded. After the verification passes, the data is spliced after CSQ, and then the complete data packet is sent to the module's sending cache, and then the 4G communication module is notified to send these data to the server via TCP.
[0027] As attached Figure 2 As shown: the data interaction mechanism agreed between the device and the background server, when the device sends a message to the background server, the background server first calculates the metering data bytes and compares the check bytes after receiving the data, and sends a response frame to the device only after the check is passed. If the check fails, the data message is written into a file as a basis for troubleshooting later, and a response message is sent to the device in a timely manner after the check is passed. The data transmission system realized by the two-way check and interaction mechanism of the present invention improves the security of data transmission and the authenticity of data.
Claims
1. A two-way verification system for remote water meter and server transmission data, comprising an MCU controller, a storage module, a 4G communication module, a power supply system, and a background server, characterized in that: The MCU controller periodically reads the metering data of the metering module through the M-BUS bus; The MCU controller calculates the CRC check data corresponding to the flow parameter data, and stores the flow parameter data and its CRC check data in the storage module at the same time; The MCU controller will regularly send traffic parameter data to the backend server through the 4G communication module; The 4G communication module is connected to the backend server via TCP; The backend server verifies the received datagram; The power supply system provides working voltage to the above modules.
