Water meter data layered packet transmission method and system

By using a hierarchical data set structure and a dynamic tag mapping mechanism, the limitations of the single function and scalability of water meter communication protocols have been solved, enabling unified communication and flexible data transmission for low-power devices, and adapting to various network environments.

CN121098954BActive Publication Date: 2026-03-27JINAN RICHNES ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-09-12
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

Existing water meter communication protocols are limited in function, applicable only to specific types of water meters, and are highly complex. They are unsuitable for low-power devices and lack a unified data expansion mechanism, resulting in low transmission efficiency and high power consumption.

Method used

It adopts a hierarchical data set structure and dynamic tag mapping mechanism, and encodes water meter data through TV tag encoding and hierarchical encoding. The transmission parameters are adjusted according to the network type and situation, supporting unified communication and zero-programming expansion of heterogeneous water meter devices.

Benefits of technology

It enables unified communication for low-power devices, reduces the number of communication sessions, supports dynamic expansion of new data types without modifying program code, adapts to various network environments, and improves transmission efficiency and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121098954B_ABST
    Figure CN121098954B_ABST
Patent Text Reader

Abstract

The application provides a water meter data layered group package transmission method and system, obtains water meter data at different time points, combines water meter data at the same time into a data set, forms a plurality of data sets; adopts TV label coding, label ID adopts a layered coding mode to code data, forms a data packet according to a pre-configured label mapping table and different bits representing data categories and specific labels; adjusts transmission parameters of the data packet according to network types and network conditions, and transmits data according to the adjusted transmission parameters. The application realizes unified communication and zero-programming expansion of heterogeneous water meter devices through an innovative layered data set structure and a dynamic label mapping mechanism.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the technical field of Internet of Things communication, and particularly relates to a water meter data layered packet transmission method and system. BACKGROUND

[0002] The statements in this section merely provide background information related to the application and do not necessarily constitute prior art.

[0003] A wireless remote water meter system is an intelligent management system based on wireless communication technology. The core functions include automatic meter reading, remote monitoring, water data transmission, device self-checking, support for custom metering period and real-time monitoring of water consumption on mobile terminals, generally using LoRa, NB-IoT and other wireless communication technologies, installation without wiring, and wide use scenarios.

[0004] However, the existing water meter communication protocol has some problems, for example, some protocols have single functions and are only suitable for specific types of water meters, and some protocols have high complexity and are not suitable for low-power devices.

[0005] In addition, the existing protocol lacks a unified data expansion mechanism, and new data types need to modify the protocol stack, which is low in transmission efficiency and high in power consumption in NB-IoT and other low-power networks. SUMMARY

[0006] In order to solve the above problems, the application provides a water meter data layered packet transmission method and system, which realizes unified communication and zero programming expansion of heterogeneous water meter devices through an innovative layered data collection structure and dynamic tag mapping mechanism.

[0007] According to some embodiments, the application adopts the following technical scheme:

[0008] A water meter data layered packet transmission method, comprising the following steps:

[0009] Obtain water meter data at different time points, combine water meter data at the same time into a data collection, and form a plurality of data collections;

[0010] Using TV tag encoding, the tag ID is encoded in a layered manner, and the data is encoded, according to a pre-configured tag mapping table, using different bits to represent data categories and specific tags to form a data packet;

[0011] According to the network type and network condition, the transmission parameters of the data packet are adjusted, and the data is transmitted according to the adjusted transmission parameters.

[0012] As an optional implementation, the water meter data includes several of metering data, state data, basic information and control instruction data.

[0013] As a further implementation, the basic information includes acquisition time, water meter address, device signal and software version, the metering data includes cumulative flow, instantaneous flow and temperature, the control instruction data includes different control instruction types, and the status data includes battery voltage, signal strength, whether fault and fault code.

[0014] As an alternative implementation, the process of combining water meter data at the same time into a data set includes, according to the content of the water meter data, arranging according to the data type and the corresponding data value, cutting according to the data length corresponding to the label ID, forming a data set, and adding a vector for indicating the length of the corresponding set.

[0015] As an alternative implementation, the process of forming multiple data sets includes: sequentially arranging and combining each data set according to the order of each time point.

[0016] As an alternative implementation, the TV label code is used, the label ID uses a hierarchical coding manner, and the process of coding data includes: using eight-bit data to represent the data label, the first four bits are category code, and the last four bits are label code, the category code is used to represent the data category, and the label code is used to represent the specific content.

[0017] As an alternative implementation, it further includes the following steps: in response to a new label addition instruction of water quality detection, acquiring a configured new label, updating the label mapping table, and forming a new data set structure.

[0018] As an alternative implementation, the process of adjusting the transmission parameters of the data packet according to the network type and network condition includes: in the corresponding network type, acquiring the bandwidth, selecting the optimal transmission strategy according to the bandwidth condition, adjusting the data packet size and the retransmission mechanism, and specifically:

[0019] If it is a NB-IoT network, a data compression and fragmentation transmission mechanism is used, and if the packet length of the data packet is greater than a set byte, the data packet is compressed;

[0020] If it is a TCP / UDP network, a batch transmission and acknowledgement retransmission mechanism is used, and data compression is not used;

[0021] If it is an operator platform network, a platform protocol is used to convert and encapsulate the data format.

[0022] A water meter data hierarchical packet transmission system, comprising:

[0023] A data packet module is configured to acquire water meter data at different time points, combine water meter data at the same time into a data set, and form multiple data sets.

[0024] The data coding module is configured to encode data by using TV tag coding, encode the tag ID by using hierarchical coding, form a data packet according to a pre-configured tag mapping table, and use different bits to represent data categories and specific tags.

[0025] The network parameter adjustment module is configured to adjust transmission parameters of the data packet according to network types and network conditions, and perform data transmission according to the adjusted transmission parameters.

[0026] An electronic device includes a memory and a processor, and computer instructions stored in the memory and running on the processor, when the computer instructions are run by the processor, the steps in the above method are completed.

[0027] Compared with the prior art, the beneficial effects of the present application are:

[0028] The present application adopts a data packet hierarchical collection structure, transmits complete data of multiple time points at a time, effectively reduces the number of communications, and reduces the number of communications by more than 60% after verification, and the data of each time point is stored separately, and damage to a single collection does not affect the data of other time points.

[0029] The present application adopts hierarchical coding of category code and tag code, predefines tag categories, supports batch processing of similar tags, and supports dynamic loading of new tags at runtime by pre-constructing a tag-parsing rule mapping table.

[0030] The present application supports dynamic expansion, updates the local tag mapping table by configuring a new tag, and can realize the addition of a new data type by packeting according to the new tag format during data transmission without modifying the program code, and the new tag does not affect the parsing of existing tags, and different devices can be configured with different tag sets.

[0031] The present application adopts a unified application layer protocol, adapts to different network transmission layers, automatically adjusts transmission parameters according to network characteristics, supports seamless switching between two modes of transparent transmission and direct transmission, realizes dynamic adjustment of data packet size and retransmission, can support multiple network environments, realizes flexible deployment, and the same device can adapt to different network environments.

[0032] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the following preferred embodiments are described in detail below, and the accompanying drawings are used for explanation. BRIEF DESCRIPTION OF DRAWINGS

[0033] The drawings accompanying the specification of the present application form part of the present application and are used to provide a further understanding of the present application, the schematic embodiments of the present application and the description thereof are used to explain the present application, and do not constitute an improper limitation on the present application.

[0034] Figure 1 is a method flowchart of an embodiment;

[0035] Figure 2 Figure 1 is a schematic diagram of a hierarchical data set structure according to an embodiment;

[0036] Figure 3 Figure 2 is a schematic diagram of a multi-network environment adaptive transmission architecture according to an embodiment. DETAILED DESCRIPTION

[0037] The application will be further described below in conjunction with the accompanying drawings and embodiments.

[0038] It should be noted that the following detailed description is exemplary in nature and is intended to provide further description of the application. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.

[0039] It is to be understood that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments in accordance with the present application. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and / or "comprising," when used in this specification, specify the presence of stated features, steps, operations, elements, components, and / or groups thereof, but do not preclude the presence or addition of one or more other features, steps, operations, elements, components, and / or groups thereof.

[0040] The embodiments in the application and the features in the embodiments can be combined with each other without conflict.

[0041] Embodiment one

[0042] A water meter data hierarchical grouping and packaging transmission method, as shown in Figure 1, comprises the following steps: Figure 1

[0043] Obtain water meter data at different time points, combine water meter data at the same time into a data set, and form a plurality of data sets;

[0044] Use TV tag encoding, use hierarchical encoding for tag ID, encode data, use different bits to represent data categories and specific tags according to a pre-configured tag mapping table, and form a data packet;

[0045] Adjust the transmission parameters of the data packet according to the network type and network condition, and perform data transmission according to the adjusted transmission parameters.

[0046] In the embodiment, the water meter data includes several of metering data, state data, basic information and control instruction data. The basic information includes acquisition time, water meter address, device signal and software version, the metering data includes cumulative flow, instantaneous flow and temperature, the control instruction data includes different control instruction types, and the state data includes battery voltage, signal strength, whether fault and fault code. ​

[0047] The process of combining water meter data at the same time into a data set includes arranging according to the content of the water meter data, according to the data type and the corresponding data value, according to the data length corresponding to the label ID, forming a data set, and adding a vector for indicating the length of the corresponding set.

[0048] The process of forming multiple data sets includes sequentially arranging and combining each data set according to the order of each time point.

[0049] Specifically, multiple data (readings, states, signal strengths, etc.) at the same time point are organized into a data set Cᵢ, and data at different time points form different sets, realizing data layering in the time dimension, each set is independently coded, and supporting integrity recovery after partial data loss.

[0050] As shown in Figure 2 , the internal structure of the data set Cᵢ is T1+V1+T2+V2+... +T n +V n .

[0051] Among them, T i represents the label ID, and V i represents the corresponding data value.

[0052] The formed layered data set structure is: data field = L0C0+L1C1+... +L n C n , where L i represents the length of the i-th set, and C i represents the i-th data set.

[0053] The coding includes basic information class (0x0X-0x1X), metering data class (0x2X-0x8X), control instruction class (0x9X-0xAX), state information class (0xBX-0xCX), and other classes (0xDX-0xEX).

[0054] As shown in Figure 2 , the lengths L0 and Lm can be different, the structures of C and Cm sets can be different, T0 to Tn must be different, and similarly T0' to Tn' must be different, where Tn and Tn' can be different, and n and n' can be different. Therefore, the data group package is more flexible and variable, and can adapt to different format data set requirements.

[0055] Specific label classification coding table:

[0056] 0x0X-0x1X: Basic information class (1D=table address, 1E=device model, 1F=software version);

[0057] 0x2X-0x8X: Measurement data class (20=accumulated flow, 21=instantaneous flow, 22=temperature);

[0058] 0x9X-0xAX: Control command class (9A=valve control, 9B=parameter setting);

[0059] 0xBX-0xCX: Status information class (B1=battery voltage, B2=signal strength, B3=fault code);

[0060] 0xDX-0xEX: Other class (D1=picture data, D2=audio data, D3=video data).

[0061] Specifically, as shown in Table 1.

[0062] Table 1 Label mapping table

[0063]

[0064] Further comprising the following steps: in response to the water quality detection addition instruction, obtaining the configured new label, updating the label mapping table, and forming a new data set structure.

[0065] For example, it is necessary to add water quality monitoring function, and increase pH value and turbidity data.

[0066] The expansion process is that the upper computer configures a new label:

[0067] 0x43: pH value, data type=float, unit=pH;

[0068] 0x44: turbidity, data type=int, unit=NTU;

[0069] The device updates the label mapping table, and the new data set structure:

[0070] C0: 38 time value+20 flow value+43 pH value+44 turbidity value+61 state value.

[0071] The upper computer parses data according to the new label mapping table, and realizes zero programming expansion.

[0072] In the dynamic label expansion process, the method of defining label ID-> defining label description-> defining data type (int, double, BCD, custom) is adopted.

[0073] In this embodiment, as shown in Figure 3 According to the network type and network condition, the process of adjusting the transmission parameters of the data packet includes: in the corresponding network type, obtaining the bandwidth, selecting the optimal transmission strategy according to the bandwidth condition, adjusting the data packet size and retransmission mechanism, and specifically:

[0074] If it is an NB-IoT network, data compression and fragmentation transmission mechanism is adopted, if the packet length of the data packet is greater than the set byte, the data packet is compressed;

[0075] If it is a TCP / UDP network, batch transmission and acknowledgement retransmission mechanism is adopted, and data compression is not adopted;

[0076] If it is an operator platform network, platform protocol is adopted to convert and encapsulate the data format.

[0077] Specifically, for an NB-IoT network, the data packet size is ≤512 bytes; the transmission mode is a combination of compression and fragmentation, and the retransmission mechanism adopts simplified ACK.

[0078] For a TCP network, the data packet size is ≤1024 bytes, the transmission mode adopts batch transmission, and the retransmission mechanism adopts complete TCP retransmission.

[0079] If it is an operator platform, the data packet size is limited according to the platform, the transmission mode is transparent encapsulation, and the retransmission mechanism is the platform processing mode.

[0080] The device end (water meter) selects a suitable transceiver mechanism according to its own network (communication has determined which network to use) and the size of the data packet to be sent.

[0081] Embodiment two

[0082] A water meter data layered packet transmission system, comprising:

[0083] A data packet module, configured to obtain water meter data at different time points, combine water meter data at the same time into a data set, and form a plurality of data sets;

[0084] A data encoding module, configured to encode data by adopting TV tag encoding, encode the tag ID in a layered manner, and form a data packet according to a pre-configured tag mapping table, and use different bits to represent data categories and specific tags.

[0085] A network parameter adjustment module, configured to adjust transmission parameters of the data packet according to a network type and a network condition, and perform data transmission according to the adjusted transmission parameters.

[0086] Embodiment three

[0087] An electronic device, comprising a memory and a processor, and computer instructions stored in the memory and running on the processor, when the computer instructions are run by the processor, the steps in the method provided in embodiment one are completed.

[0088] Those skilled in the art will appreciate that embodiments of the present application can be readily used as software, hardware, or a combination of software and hardware. In a software embodiment, various software modules in accordance with embodiments of the present application are stored in a memory such as a computer program product (e.g., a disk storage) and executed by a computer processor. As such, various computer program products code, when executed, enable the computer to function as a special purpose computer programmed to carry out the steps described herein. The software modules, when executed, enable the computer to provide various example embodiments of the present application as discussed herein. CD - ROM

[0089] The present application is described in reference to the drawings using a flowchart and / or a block diagram of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each block of the flowchart and / or block diagram, and combinations of blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart and / or block diagram block or blocks. Figure 1 one or more functions specified by one or more blocks Figure 1 one or more functions specified by one or more blocks

[0090] These computer program instructions can also be stored in a computer- readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart and / or block diagram block or blocks. Figure 1 one or more functions specified by one or more blocks Figure 1 one or more functions specified by one or more blocks

[0091] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart and / or block diagram block or blocks. Figure 1 one or more functions specified by one or more blocks Figure 1 one or more functions specified by one or more blocks

[0092] The foregoing is merely illustrative of the principles of this application and various modifications can be made by persons skilled in the art without departing from the scope and nature of the teachings herein. For example, while the application has been described in the context of particular embodiments and implementations, it should be appreciated that equivalent alterations and modifications in addition to those specifically recited can be made by one of ordinary skill in the art, having the benefit of this disclosure, without departing from the spirit and scope of the present application.​

Claims

1. A water meter data hierarchical packet transmission method, characterized in that, The method comprises the following steps: Obtaining water meter data at different time points, combining water meter data at the same time into a data set, and forming a plurality of data sets; The process of combining water meter data at the same time into a data set comprises arranging according to data types and corresponding data values according to the content of the water meter data, intercepting according to the data length corresponding to the label ID, forming a data set, and adding a vector for representing the length of the corresponding set; Using TV label coding, the label ID adopts a hierarchical coding mode to code the data, and according to a pre-configured label mapping table, different bits are used to represent data categories and specific labels to form a data packet; According to the network type and network condition, the transmission parameters of the data packet are adjusted, and data transmission is performed according to the adjusted transmission parameters.

2. The water meter data hierarchical grouping and packet transmission method of claim 1, wherein, The water meter data comprises several of metering data, state data, basic information and control instruction data.

3. The water meter data hierarchical packet assembly transmission method of claim 2, wherein, The basic information comprises acquisition time, water meter address, device signal and software version, the metering data comprises cumulative flow, instantaneous flow and temperature, the control instruction data comprises different control instruction types, and the state data comprises battery voltage, signal strength, whether a fault and a fault code.

4. The water meter data layered packet transmission method of claim 1, wherein the step of transmitting the layered packet data is characterized by, The process of forming a plurality of data sets comprises sequentially arranging and combining each data set in the order of each time point.

5. The method of claim 1, wherein the method further comprises: transmitting the data packet to the data packet processing server. The process of using TV label coding and coding the data in a hierarchical coding mode comprises using eight-bit data to represent data labels, wherein the first four bits are category codes and the last four bits are label codes, the category codes are used to represent data categories, and the label codes are used to represent specific contents. ​ 6. The water meter data hierarchical packet transmission method of claim 5, wherein, The method further comprises the following steps: In response to a water quality detection addition instruction, a new label is obtained, a label mapping table is updated, and a new data set structure is formed.

7. The water meter data hierarchical packet transmission method as described in claim 1, characterized in that, The process of adjusting the transmission parameters of the data packet according to the network type and network condition comprises the following steps: If it is an NB-IoT network, a data compression and fragmentation transmission mechanism is adopted, and if the packet length of the data packet is greater than a set byte, the data packet is compressed; If it is a TCP / UDP network, a batch transmission and acknowledgement retransmission mechanism is adopted, and data compression is not adopted; If it is an operator platform network, a platform protocol is adopted to convert and encapsulate the data format.

8. A water meter data hierarchical packet assembly transmission system characterized by, The method comprises the following steps: A data packet combination module is configured to obtain water meter data at different time points, combine water meter data at the same time into a data set, and form a plurality of data sets; The process of combining water meter data at the same time into a data set comprises arranging according to data types and corresponding data values according to the content of the water meter data, intercepting according to the data length corresponding to the label ID, forming a data set, and adding a vector for representing the length of the corresponding set; A data coding module is configured to use TV label coding, the label ID adopts a hierarchical coding mode to code the data, and according to a pre-configured label mapping table, different bits are used to represent data categories and specific labels to form a data packet; The network parameter adjustment module is configured to adjust the transmission parameter of the data packet according to the network type and the network condition, and perform data transmission according to the adjusted transmission parameter.

9. An electronic device, characterized by comprising: The computer program product comprises a memory and a processor, and computer instructions stored in the memory and run on the processor, and when the computer instructions are run by the processor, the steps in the method in any one of claims 1-7 are completed.

Citation Information

Patent Citations

  • Meter data collection and aggregation equipment, method and system and memory medium

    CN108924093A

  • Data transmission method and system for online electronic tag

    CN109982297A