Smart water meter data management method, device, preset terminal and storage medium

By detecting and selecting the strongest network, optimizing the data reporting period and format, and dispersing data reporting, the data transmission problem of smart water meters in a weak signal environment is solved, the reporting success rate and efficiency are improved, and the stability of data transmission is ensured.

CN118747948BActive Publication Date: 2025-01-07SHENZHEN KAILU INNOVATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410778400.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2025-01-07
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

The existing intelligent water meter data management methods in network environments with weak or unstable signals lead to a reduced success rate of data reporting, and it is impossible to choose a suitable communication method based on the real-time network environment.

Method used

By detecting the signal strength of the available network, selecting the strongest network for data transmission, and optimizing the data reporting period and format, dispersing the data to multiple sub-report cycles to avoid congestion, and determining the optimal reporting time based on the load value and number of reporting times.

Benefits of technology

It improves the reporting success rate and efficiency of smart water meter data in poor network environments, ensures the stability and accuracy of data transmission, avoids data congestion, and enhances the reliability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747948B_ABST
    Figure CN118747948B_ABST
Patent Text Reader

Abstract

The present application relates to the field of data processing technology, and in particular to a smart water meter data management method, device, preset terminal and storage medium. The present application detects the signal strength of each available network in the available network set between the preset terminal and the target smart water meter, selects a data transmission network from the available network set according to the signal strength of each available network, and determines the data reporting period of the target smart water meter, and further sends the network identifier, data reporting period and reporting instruction of the data transmission network to the target smart water meter, so that the target smart water meter obtains the smart water meter data, and returns the smart water meter data to the preset terminal through the data transmission network within the data reporting period, so that the preset terminal manages the smart water meter data, and ensures that the smart water meter selects the best network conditions when uploading data, thereby significantly improving the data reporting success rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a smart water meter data management method, device, preset terminal and storage medium. Background Art

[0002] Smart water meter is a new type of water meter that uses modern microelectronics technology, modern sensor technology, and smart IC card technology to measure water consumption and transmit water usage data and settle transactions, and it supports networking functions.

[0003] In the existing smart water meter data management method, the smart water meter usually reports the accumulated data to the preset terminal (such as a data center or server) through the default communication method (such as a fixed wireless frequency band or a wired connection) according to a preset fixed period. However, it is impossible to select a suitable communication method according to the real-time network environment, resulting in data transmission under weak or unstable signals, thereby reducing the success rate of data reporting. Summary of the invention

[0004] In view of the above, the present application provides a smart water meter data management method, device, preset terminal and storage medium to improve the data reporting success rate of the smart water meter when reporting the smart water meter data.

[0005] A first aspect of the present application provides a smart water meter data management method, the method comprising:

[0006] The preset terminal detects the signal strength of each available network in the available network set between the preset terminal and the target smart water meter, and the target smart water meter is any smart water meter in the smart water meter set to report water meter data;

[0007] The preset terminal selects a data transmission network from the available network set according to the signal strength of each available network;

[0008] The preset terminal determines the data reporting period of the target smart water meter;

[0009] The preset terminal sends the network identifier of the data transmission network, the data reporting period and the data reporting instruction to the target smart water meter, so that the target smart water meter obtains the smart water meter data, and returns the smart water meter data to the preset terminal through the data transmission network within the data reporting period;

[0010] The preset terminal manages the smart water meter data.

[0011] In an optional implementation manner, the preset terminal determines the data reporting period of the target smart water meter including:

[0012] The preset terminal obtains a load value and a reporting number in each reporting period of a plurality of sub-reporting periods within a preset reporting period, wherein the plurality of sub-reporting periods are obtained by dividing the preset reporting period according to time segments;

[0013] The preset terminal determines the data reporting period from the multiple sub-reporting periods according to the load value and the reporting number.

[0014] In an optional implementation manner, the preset terminal determines the data reporting period from the multiple sub-reporting periods according to the load value and the reporting number, including:

[0015] When the load value is greater than a preset load threshold, the preset terminal determines the number of periods of the first sub-reporting period corresponding to which the load value is greater than the preset load threshold;

[0016] When the number of cycles is 1, the preset terminal determines the sub-reporting cycle corresponding to the minimum load value as the data reporting cycle;

[0017] When the number of cycles is greater than 1, the preset terminal sorts the reporting times from small to large to obtain a sorting result;

[0018] The preset terminal determines the target reporting number corresponding to the number of cycles from the sorting result;

[0019] The preset terminal determines the sub-reporting period corresponding to the target reporting number as the data reporting period.

[0020] In an optional embodiment, the method further comprises:

[0021] The preset terminal obtains the water meter type corresponding to the target smart water meter;

[0022] The preset terminal determines the data reporting format of the smart water meter data according to the water meter type;

[0023] The preset terminal sends the data reporting format to the target smart water meter, so that the target smart water meter reports the smart water meter data based on the data reporting format.

[0024] In an optional implementation, the data reporting format includes a first packet header, a second packet header, a water meter number of the smart water meter, a water meter type of the smart water meter, a data length of the smart water meter data, an execution command of the smart water meter data, a first check code, the smart water meter data, a second check code and an end mark, wherein the first packet header occupies 1 byte, the second packet header occupies 1 byte, the water meter number of the smart water meter occupies 1 byte, the water meter type of the smart water meter occupies 1 byte, the data length of the smart water meter data occupies 2 bytes, the execution command of the smart water meter data occupies 2 bytes, the first check code occupies 1 byte, the smart water meter data occupies X bytes, the second check code occupies 2 bytes, and the end mark occupies 1 byte, wherein X is determined according to the actual data of the smart water meter data.

[0025] In an optional implementation, before the preset terminal sends the network identifier of the data transmission network, the data reporting cycle, and the data reporting instruction to the target smart water meter, the method further includes:

[0026] The preset terminal detects whether a data reporting request sent by the target smart water meter is received;

[0027] When the preset terminal receives the data reporting request, the preset terminal verifies whether the target smart water meter allows to actively report the smart water meter data;

[0028] When it is determined that the target smart water meter allows automatic reporting of the smart water meter data, the target smart water meter is controlled to return the smart water meter data to the preset terminal through the data transmission network within the data reporting period.

[0029] In an optional embodiment, the method further comprises:

[0030] The preset terminal detects whether the smart water meter data is received at a preset time, the time between the preset time and the time when the preset terminal sends the data reporting instruction is the preset time, and the setting of the preset time is associated with the data reporting period;

[0031] When the smart water meter data is not received within the preset time, the preset terminal closes the communication connection with the target smart water meter.

[0032] A second aspect of the present application provides a smart water meter data management device, the device comprising:

[0033] A detection module, configured to detect, by a preset terminal, the signal strength of each available network in the available network set between the preset terminal and a target smart water meter, wherein the target smart water meter is any smart water meter in the smart water meter set to report water meter data;

[0034] A selection module, configured for the preset terminal to select a data transmission network from the set of available networks according to the signal strength of each available network;

[0035] A determination module, used by the preset terminal to determine the data reporting period of the target smart water meter;

[0036] A reporting module, used for the preset terminal to send the network identifier of the data transmission network, the data reporting period and the data reporting instruction to the target smart water meter, so that the target smart water meter obtains the smart water meter data, and returns the smart water meter data to the preset terminal through the data transmission network within the data reporting period;

[0037] A management module is used for the preset terminal to manage the smart water meter data.

[0038] The third aspect of the present application provides a preset terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the smart water meter data management method when executing the computer program.

[0039] A fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above-mentioned smart water meter data management method when the computer program is executed by a processor.

[0040] In summary, the smart water meter data management method, device, preset terminal and storage medium provided by the present application, the preset terminal detects the available network set of the smart water meter in the current network environment, and evaluates the signal strength of each available network, and selects the network with the strongest signal as the target available network, which can ensure the stability and success rate of data transmission. Then the target smart water meter will report the smart water meter data to the preset terminal according to the selected target available network and the preset reporting cycle. By dispersing a large amount of smart water meter data into multiple sub-reporting cycles for reporting, data congestion can be avoided and the efficiency and stability of data transmission can be improved. At the same time, according to the optimal selection of data load value and reporting times, it can ensure that the data is transmitted in the best time period, further improving the data reporting success rate of the smart water meter when reporting the smart water meter data. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 is a flow chart of a smart water meter data management method shown in an embodiment of the present application;

[0042] Figure 2 It is a functional module diagram of a smart water meter data management device shown in an embodiment of the present application;

[0043] Figure 3 It is a schematic diagram of the structure of a preset terminal shown in an embodiment of the present application. DETAILED DESCRIPTION

[0044] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations comprising one or more of the listed items.

[0045] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0046] Reference Figure 1 As shown, it is a flow chart of a smart water meter data management method shown in an embodiment of the present application, and the smart water meter data management method includes the following steps.

[0047] S11, the preset terminal detects the signal strength of each available network in the available network set between the preset terminal and the target smart water meter.

[0048] The target smart water meter is any smart water meter in the set of smart water meters to report water meter data.

[0049] In some embodiments, when the smart water meter collects the smart water meter data related to it, the smart water meter stores the smart water meter data in a local database. When the preset terminal requires the smart water meter to report the collected smart water meter data to the preset terminal, the preset terminal needs to establish a communication connection with the smart water meter so that the preset terminal can receive the smart water meter data reported by the smart water meter. Therefore, the preset terminal needs to send a communication connection request to the smart water meter whose smart water meter data needs to be reported. Specifically, the preset terminal initiates a communication connection request to each smart water meter in the smart water meter set, and after establishing a communication connection with each smart water meter in the smart water meter set, each available network in the available network set between any smart water meter can be obtained. Further, the signal strength of each available network is detected to obtain the signal strength corresponding to each available network, so that the data transmission network can be selected from the available network set according to the signal strength of each available network, so that the smart water meter can report its smart water meter data according to the data transmission network.

[0050] In some embodiments, the preset terminal first scans all the smart water meters that need to report smart water meter data within its communication range to generate a smart water meter set. Before initiating a communication connection request, the preset terminal first obtains the water meter number corresponding to each smart water meter in the smart water meter set. Among them, the water meter number can be assigned before the smart water meter leaves the factory, or it can be customized by the preset terminal. For example, the water meter number of the first smart water meter is 0001, the water meter number of the second smart water meter is 0002, and so on. At the same time, the preset terminal can also obtain the status information of each smart water meter in the smart water meter set, and the status information may include power, communication protocol support, etc. After obtaining the water meter number and status information of each smart water meter, the preset terminal can set an adaptive connection strategy (preset connection strategy) according to the water meter number and status information. For example, if the power of the smart water meter is low, a low-power communication method is used first; if the network condition is not good, the number of retries (preset connection number threshold) is increased or the communication protocol is changed. Specifically, the preset connection strategy is to first send communication connection requests to the smart water meters in the smart water meter set in turn through polling according to the size of the water meter number. If the power is less than the preset power threshold (for example, 40%), the preset terminal uses a low-power communication method. If the network condition is not good (the signal strength is less than the preset signal strength threshold), the preset terminal can increase the number of connections with the smart water meter. Generally, the connection number threshold is set to 3 times. According to the network condition of the smart water meter, multiple connection number thresholds can be set. For example, a signal strength interval corresponds to a preset number threshold. If the power is less than the preset power threshold and the network condition is not good, the preset terminal simultaneously uses a low-power communication method and increases the preset connection number threshold.

[0051] It should be noted that the preset terminal device first sends a communication connection request to the smart water meter with the smallest water meter number in the smart water meter set. When the preset terminal successfully connects to the smart water meter with the smallest water meter number, the preset terminal sends a communication connection request to the smart water meter with the second smallest water meter number. When the preset terminal successfully connects to the smart water meter with the second smallest water meter number, the preset terminal device sends a communication connection request to the smart water meter with the third smallest water meter number, and so on. Or when the preset terminal is connected to the smart water meter with the smallest water meter number, when the number of connections has met the preset connection number threshold, the preset terminal still fails to connect to the smart water meter with the smallest water meter number, and the preset terminal sends a communication connection request to the smart water meter with the second smallest water meter number. When the number of connections has met the preset connection number threshold, the preset terminal still fails to connect to the smart water meter with the second smallest water meter number, and the preset terminal sends a communication connection request to the smart water meter with the third smallest water meter number, and so on.

[0052] Each time the preset terminal establishes a communication connection with the smart water meter, the preset terminal will record the connection result (connection success or connection failure) of each communication connection with the smart water meter. If the connection fails and the number of connections does not meet the preset link count threshold, the preset terminal will continue to send communication connection requests to the smart water meter until the connection is successful or the number of connections meets the preset connection count threshold.

[0053] Through the above optional implementation, the preset terminal intelligently detects the available network signal strength between the smart water meter and sets an adaptive connection strategy according to the status information of the smart water meter (such as power, network status), which effectively improves the stability and efficiency of the communication connection. At the same time, the polling mechanism and the limit on the number of connections ensure the priority and efficiency of the connection, reduce invalid connection attempts, not only reduce energy consumption, but also improve the success rate of data reporting, especially when the network condition is poor or the power of the smart water meter is low, through low-power communication mode and increase the number of connections, reliable data transmission is ensured.

[0054] S12: The preset terminal selects a data transmission network from the available network set according to the signal strength of each available network.

[0055] In some embodiments, after the preset terminal obtains the signal strength of each available network in the set of available networks between the target smart water meter and the preset terminal, the available network corresponding to the largest signal strength (strongest signal strength) is selected from the set of available networks, and is called the target available network. The target available network is used as the data transmission network for subsequent reporting of smart water meter data, so that the target smart water meter can read the collected smart water meter data from its local database, so that the target smart water meter uses the data transmission network to report the smart water meter data to the preset terminal.

[0056] S13, the preset terminal determines the data reporting period of the target smart water meter.

[0057] In some embodiments, the preset terminal can set a reporting period for the target smart water meter to report the smart water meter data, that is, a data reporting period. After determining the data transmission network used by the smart water meter to report its smart water meter data, the preset terminal can control the smart water meter to report the smart water meter data to the preset terminal according to the data transmission network and the data reporting period.

[0058] In an optional implementation manner, the preset terminal determines the data reporting period of the target smart water meter including:

[0059] The preset terminal obtains a load value and a reporting number in each reporting period of a plurality of sub-reporting periods within a preset reporting period, wherein the plurality of sub-reporting periods are obtained by dividing the preset reporting period according to time segments;

[0060] The preset terminal determines the data reporting period from the multiple sub-reporting periods according to the load value and the reporting number.

[0061] At the current moment, the target smart water meter not only needs to report the smart water meter data collected before the current moment to the preset terminal, but also needs to report the smart water meter data being collected at the current moment to the preset terminal. In some embodiments, the preset terminal can pre-set a reporting cycle so that the target smart water meter reports the smart water meter data to the preset terminal in the preset reporting cycle, that is, as long as the smart water meter completes the reporting of the smart water meter data in the preset reporting cycle, it does not matter which time period in the preset reporting cycle the reporting is performed. When the smart water meter reports the smart data in any time period in the preset reporting cycle, it is easy to cause data reporting congestion. Therefore, the preset terminal can divide the preset reporting cycle into multiple time segments (sub-reporting cycles), and obtain the load value of the smart water meter data that needs to be reported in each sub-reporting cycle, and the number of reports in each sub-reporting cycle, and determine the data reporting cycle of the smart water meter data from multiple sub-reporting cycles according to the load value and the number of reports. Specifically, after the smart water meter determines the preset reporting cycle in which the smart water meter data needs to be reported, and also determines that the smart water meter data needs to be reported in multiple sub-reporting cycles, the smart water meter still does not need to report the smart water meter data immediately, but only needs to report the smart water meter data within the preset reporting cycle. Therefore, the load value of the smart water meter data that needs to be reported in each sub-reporting cycle is inconsistent, and even causes all the smart water meter data to be reported in a certain sub-reporting cycle, resulting in data reporting congestion in the sub-reporting cycle. Therefore, the preset terminal needs to pre-set a load threshold value to determine whether the load value of the smart water meter data that needs to be reported in each sub-reporting cycle is greater than the preset load threshold value. When the load value is greater than the preset load threshold value, it means that there are too many smart water meter data that need to be reported in the sub-reporting cycle. The preset terminal can determine which sub-reporting cycles have load values ​​greater than the preset load threshold value and the corresponding number (number of cycles). When the number of cycles is 1, the preset terminal can sort the load values ​​of each sub-reporting cycle from small to large, determine the sub-reporting cycle corresponding to the minimum load value, and make the sub-reporting cycle corresponding to the minimum load value the target sub-reporting cycle, and determine the target sub-reporting cycle as the data reporting cycle. The preset terminal can control the smart water meter to report the part of the smart water meter data corresponding to the load value greater than the preset load threshold within the data reporting cycle. When the number of cycles is greater than 1, the preset terminal can obtain the number of reports corresponding to each sub-reporting cycle, and sort the number of reports from small to large, and determine the number of reports corresponding to the number of cycles from the obtained sorting results, that is, there are several number of cycles, and several reporting times are selected from the sorting results. Specifically, the first reporting times are selected from the sorting results in sequence. For example, if the number of cycles is 2, the first reporting times and the second reporting times are selected from the sorting results. The first reporting times refer to the minimum reporting times, and the second reporting times refer to the second smallest reporting times.It should be noted that the number of reports is calculated based on the cumulative number of historical reports. Each time the smart water meter data is reported within the sub-reporting cycle, the number of reports is +1. If the sub-reporting cycle is not used to report the smart water meter data within the current preset reporting cycle, the number of reports is -1.

[0062] When the number of cycles is 2, the load values ​​of the smart water meter data of the two sub-reporting cycles are compared, and the smart water meter data with large load in the load value is reported preferentially using the sub-reporting cycle corresponding to the minimum reporting number, that is, the sub-reporting cycle corresponding to the minimum reporting number is the data reporting cycle, and the minimum reporting number is increased by 1, and the minimum reporting number after the increase of 1 is compared with the second minimum reporting number. When the minimum reporting number is still less than or equal to the second minimum reporting number, the smart water meter continues to use the sub-reporting cycle corresponding to the minimum reporting number to report the smart water meter data with small load in the load value, that is, the sub-reporting cycle corresponding to the minimum reporting number is the data reporting cycle, and the minimum reporting number continues to increase by 1.

[0063] When the number of cycles is equal to 3, according to the same implementation as above, or when the minimum reporting number is greater than the second minimum reporting number, the smart water meter uses the sub-reporting cycle corresponding to the second minimum reporting number to report the smart water meter data of small loads in the load value, and increases the second minimum reporting number by 1.

[0064] And so on.

[0065] Through the above optional implementation, by subdividing the preset reporting cycle into multiple sub-reporting cycles, and determining the optimal data reporting cycle according to the load value and reporting times of each sub-cycle, the problem of data congestion in a single reporting cycle is effectively avoided, and by reasonably allocating reporting time and resources, the smart water meter data can be reported to the preset terminal more smoothly and efficiently. In addition, by comparing and selecting sub-reporting cycles with fewer reporting times to give priority to processing data with larger loads, the efficiency and success rate of data reporting are further improved.

[0066] S14, the preset terminal sends the network identifier of the data transmission network, the data reporting cycle and the data reporting instruction to the target smart water meter, so that the target smart water meter obtains the smart water meter data, and returns the smart water meter data to the preset terminal through the data transmission network within the data reporting cycle.

[0067] When the preset terminal is successfully connected to the smart water meter, the preset terminal can send a data reporting instruction to the successfully connected smart water meter, so that the successfully connected smart water meter can report its corresponding smart water meter data to the preset terminal according to the received data reporting instruction. According to the same embodiment as step S11, the preset terminal sends data reporting instructions to the successfully connected smart water meters in sequence according to the size of the water meter numbers. When the preset terminal receives the data reported by the smart water meter at the current moment, the preset terminal continues to send data reporting instructions to the next smart water meter, and so on, until the data reporting instructions are sent to the successfully connected smart water meters.

[0068] In some embodiments, when the target smart water meter receives a data reporting instruction sent by a preset terminal, the target smart water meter needs to report its corresponding smart water meter data to the preset terminal according to the data transmission network and the data reporting cycle.

[0069] During the data transmission process, the preset terminal cannot know when the smart water meter data of the smart water meter has been reported. Therefore, the preset terminal also needs to determine the data reporting format of the smart water meter in reporting the smart water meter data, and add a status notification mechanism (end character) in the data reporting format. Therefore, when the smart water meter reports the smart water meter data to the preset terminal according to the data reporting format, the preset terminal can determine whether the smart water meter data has been reported according to the end character in the data reporting format.

[0070] In an optional implementation, the preset terminal can obtain the water meter type of the target smart water meter, and determine the data reporting format of the smart water meter data based on the water meter type. Specifically, when the preset terminal obtains the water meter number of the target smart water meter, it can compare the water meter number with the preset information library, determine the water meter type corresponding to the water meter number from the preset information library, and query the data reporting format corresponding to the water meter type in the preset information library. Among them, the preset information library includes the correspondence between the water meter number and the water meter type, and the correspondence between the water meter type and the data reporting format. Therefore, the target smart water meter formats the collected smart water meter data based on the received data reporting format, and reports the smart water meter data according to its corresponding data reporting format.

[0071] The data reporting format includes a first header, a second header, a water meter number of the smart water meter, a water meter type of the smart water meter, a data length of the smart water meter data, an execution command of the smart water meter data, a first check code, the smart water meter data, a second check code and an end mark. In the embodiment of the present application, a double header mechanism is adopted to ensure that the identification of the data packet header will not be misjudged and can be effectively distinguished from other data. The first header and the second header each occupy 1 byte. For example, the first header can be 0xFF and the second header can be 0xFE. The water meter number of the smart water meter occupies 1 byte, the water meter type of the smart water meter occupies 1 byte, the data length of the smart water meter data occupies 2 bytes, and the execution command of the smart water meter data refers to the definition of the data type and reporting operation instruction carried by this data packet. The smart water meter data needs to be reported according to the execution command, and the execution command of the smart water meter data occupies 2 bytes. For example, the preset terminal queries whether the smart water meter has data to report, reports real-time smart water meter data, reports time period information, etc. The preset terminal can be customized and expanded. For example, 0x0400 is set to query whether the smart water meter has data to report, and 0x0401 is set to query whether the smart water meter reports real-time smart water meter data, etc. Among them, the check is a sum check, and the first check code is the water meter number of the smart water meter, the data length of the smart water meter data, and the sum check of the execution command of the smart water meter data. Smart water meter data refers to the data that needs to be reported. The type of data and the operation to be performed are specified by the execution command defined by the "execution command of smart water meter data" field. The smart water meter data occupies X bytes, and X is determined by the actual data of the smart water meter data. The second check code is the CRC16 checksum of the smart water meter data, and the end mark includes the upper 4 bits and the lower 4 bits, where the upper 4 bits mean "0-no subsequent data" or "1-subsequent data", and the lower 4 bits are 0xB, representing a fixed end.

[0072] In some embodiments, since the smart water meter data is reported according to the data reporting format, when receiving the smart water meter data reported by the target smart water meter, the preset terminal can unpack and verify to ensure the integrity and accuracy of the smart water meter data. Secondly, the preset terminal can determine whether the smart water meter data has been reported based on the end mark in the data reporting format. When the smart water meter finishes reporting the smart water meter data, the preset terminal can close the communication connection with the smart water meter to save resources of the preset terminal system.

[0073] In other embodiments, when the preset terminal sends the data reporting instruction to the target smart water meter, the data reporting instruction may be set as the first AT instruction. The first AT instruction may include an operation request and a water meter number of the smart water meter. The operation request is defined as the operation requested by the preset terminal, that is, the data reporting requirement (for example, data transmission network and data reporting cycle, etc.) of the smart water meter when reporting the smart water meter data, and the length is 1 byte. The water meter number of the smart water meter is an identifier used when the preset terminal sends the request online by the smart water meter, and the length is 2 bytes. When the target smart water meter receives the first AT instruction, the target smart water meter returns the corresponding smart water meter data according to the second AT instruction. The second AT instruction may include a response request, smart water meter data and the water meter number of the smart water meter. The response request refers to the operation requested after responding to the first AT instruction, and the length is 1 byte. The smart water meter data refers to the smart water meter data that the smart water meter needs to report, and the length is X bytes, and the value of X is determined by the actual data of the smart water meter data. The water meter number of the smart water meter refers to an identifier specified when a preset terminal sends a request to the smart water meter, and the length is 2 bytes.

[0074] S15, the preset terminal manages the smart water meter data.

[0075] After the preset terminal receives the smart water meter data reported by the target smart water meter, the preset terminal can verify the received smart water meter data to ensure that the data has not been tampered with or damaged during the transmission process. After the verification is correct, the preset terminal will store the received smart water meter data in its internal database or external storage system, and integrate and manage the smart water meter data. In some embodiments, when storing the smart water meter data, the preset terminal can classify it according to time and water meter number to facilitate subsequent data retrieval and analysis. When analyzing the smart water meter data, the preset terminal can parse the stored smart water meter data and convert it into a format that is easy to understand and analyze. The parsing process may include steps such as data format conversion, encrypted data decryption, and compressed data decompression. Further, the preset terminal can analyze the parsed smart water meter data, such as water consumption analysis, water consumption trend prediction, abnormal water consumption detection, etc., to obtain analysis results. The preset terminal can visualize the analysis results in the form of charts, reports, etc., and the visual interface can intuitively display water consumption, water consumption trends, abnormal water consumption points and other information, so that users can quickly understand the water consumption status.

[0076] Through the above optional implementation mode, the smart water meter data is comprehensively managed through the preset terminal, thereby achieving efficient collection, verification, storage, parsing and analysis of the data.

[0077] In an optional implementation, before the preset terminal sends the network identifier of the data transmission network, the data reporting cycle, and the data reporting instruction to the target smart water meter, the method further includes:

[0078] The preset terminal detects whether a data reporting request sent by the target smart water meter is received;

[0079] When the preset terminal receives the data reporting request, the preset terminal verifies whether the target smart water meter allows to actively report the smart water meter data;

[0080] When it is determined that the target smart water meter allows automatic reporting of the smart water meter data, the target smart water meter is controlled to return the smart water meter data to the preset terminal through the data transmission network within the data reporting period.

[0081] In some embodiments, the preset terminal can monitor the data reporting of the smart water meter in real time and record the diary information related to each smart water meter. In addition, the preset terminal can also start a monitoring service to receive data reporting requests from the smart water meter. When the smart water meter needs to report the smart water meter data, the smart water meter can send a data reporting request to the preset terminal. When the preset terminal receives the data reporting request, it detects whether the data reporting request carries the water meter number related to the smart water meter. The preset terminal can query the system database or permission configuration information according to the water meter number to verify whether the smart water meter has the authority to actively report the smart water meter data. If the verification is successful, it means that the smart water meter allows the smart water meter data to be actively reported, and then the next operation is executed to control the smart water meter to use the determined target available network to report the smart water meter data to the preset terminal according to the preset reporting cycle. If the verification fails, it means that the smart data does not allow the smart water meter data to be actively reported. The preset terminal can send a response instruction to the smart water meter to refuse to report, and the smart water meter is not allowed to perform the next operation.

[0082] It should be noted that the system database or permission configuration information clearly assigns permissions to each smart water meter, which determines whether the smart water meter can actively report smart water meter data.

[0083] Through the above optional implementation, by implementing strict permission verification and data reporting process, the preset terminal monitors and records logs in real time, which improves the transparency of terminal system operation. When requesting to report data, the smart water meter must be verified by the preset terminal to ensure that only authorized smart water meters can report data, thereby avoiding the risk of data leakage and illegal access, effectively ensuring the security and accuracy of smart water meter data reporting, and avoiding non-compliant smart water meters accessing the preset terminal to disrupt the normal operation of the preset terminal system, thereby improving the security and reliability of the entire preset terminal system.

[0084] In an optional embodiment, the method further comprises:

[0085] The preset terminal detects whether the smart water meter data is received at a preset time, the time between the preset time and the time when the preset terminal sends the data reporting instruction is the preset time, and the setting of the preset time is associated with the data reporting period;

[0086] When the smart water meter data is not received within the preset time, the preset terminal closes the communication connection with the target smart water meter.

[0087] In some embodiments, when the preset terminal sends a data reporting instruction to the target smart water meter, it is necessary to pre-set a time period (that is, a preset duration) to monitor the data reporting status of the smart water meter data of the target smart water meter, so as to determine whether the smart water meter data returned by the target smart water meter is received at a preset time after sending the data reporting instruction to the target smart water meter, that is, whether the smart water meter data is received within the preset duration. Specifically, the preset terminal can be configured with a timer to trigger the detection of data reception within a preset duration. After the preset terminal sends a data reporting instruction to the target smart water meter data, the smart water meter needs to report its corresponding smart water meter data to the preset terminal within the data reporting period. Therefore, the preset terminal sets the preset time based on the preset reporting period. If the preset terminal receives the smart water meter data at the preset time and before the preset time, it means that the data reporting is normal. If the preset terminal does not receive the smart water meter data reported by the target smart water meter at the preset time, that is, the preset terminal times out while waiting for data, the preset terminal can trigger the operation of closing the communication connection with the target smart water meter. Therefore, the preset terminal can send a connection closing instruction to the target smart water meter or close the communication connection with the target smart water meter by disconnecting the network connection.

[0088] Through the above optional implementation, by setting a clear time period, the data reporting of the smart water meter can be effectively monitored. When the smart water meter data is not received at the preset time, the preset terminal can respond quickly, and avoid resource waste and potential security risks by closing the communication connection, which not only improves the response speed and reliability of the preset terminal system, but also optimizes the utilization efficiency of the terminal system resources, ensuring the timeliness and accuracy of the smart water meter data reporting.

[0089] Reference Figure 2 , which is a functional module diagram of a smart water meter data management device shown in an embodiment of the present application.

[0090] In some embodiments, the smart water meter data management device 20 may include multiple functional modules composed of computer program segments. The computer programs of the various program segments of the smart water meter data management device 20 may be stored in a memory of a preset terminal and executed by at least one processor to perform smart water meter data reporting (see Figure 1 Description).

[0091] In this embodiment, the smart water meter data management device 20 can be divided into multiple functional modules according to the functions it performs. The functional modules may include: a detection module 201, a selection module 202, a determination module 203, a reporting module 204 and a management module 205. The module referred to in this application refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.

[0092] The detection module 201 is used for a preset terminal to detect the signal strength of each available network in the available network set between the preset terminal and a target smart water meter, and the target smart water meter is any smart water meter in the smart water meter set to report water meter data.

[0093] The selection module 202 is configured for the preset terminal to select a data transmission network from the available network set according to the signal strength of each available network.

[0094] The determination module 203 is used by the preset terminal to determine the data reporting period of the target smart water meter.

[0095] The reporting module 204 is used for the preset terminal to send the network identifier of the data transmission network, the data reporting cycle and the data reporting instruction to the target smart water meter, so that the target smart water meter obtains the smart water meter data and returns the smart water meter data to the preset terminal through the data transmission network within the data reporting cycle.

[0096] The management module 205 is used for the preset terminal to manage the smart water meter data.

[0097] The determination module 203 is specifically used for: the preset terminal obtains the load value and the number of reports in each reporting cycle of multiple sub-reporting cycles within the preset reporting cycle, and the multiple sub-reporting cycles are obtained by dividing the preset reporting cycle according to time segments; the preset terminal determines the data reporting cycle from the multiple sub-reporting cycles according to the load value and the number of reports.

[0098] The determination module 203 is also specifically used for: when the load value is greater than a preset load threshold, the preset terminal determines the number of cycles of the first sub-reporting cycle corresponding to the load value being greater than the preset load threshold; when the number of cycles is 1, the preset terminal determines the sub-reporting cycle corresponding to the minimum load value as the data reporting cycle; when the number of cycles is greater than 1, the preset terminal sorts the reporting times from small to large to obtain a sorting result; the preset terminal determines the target reporting times corresponding to the cycle number from the sorting result; the preset terminal determines the sub-reporting cycle corresponding to the target reporting times as the data reporting cycle.

[0099] The determination module 203 is also used for: the preset terminal obtaining the water meter type corresponding to the target smart water meter; the preset terminal determining the data reporting format of the smart water meter data according to the water meter type; the preset terminal sending the data reporting format to the target smart water meter, so that the target smart water meter reports the smart water meter data based on the data reporting format.

[0100] The detection module 201 is also used for: the preset terminal detects whether the data reporting request sent by the target smart water meter is received; when the preset terminal receives the data reporting request, the preset terminal verifies whether the target smart water meter is allowed to actively report the smart water meter data; when it is determined that the target smart water meter is allowed to automatically report the smart water meter data, the target smart water meter is controlled to return the smart water meter data to the preset terminal through the data transmission network within the data reporting period.

[0101] The detection module 201 is also used for: the preset terminal detects whether the smart water meter data is received at a preset time, the time length between the preset time and the time when the preset terminal sends the data reporting instruction is the preset time length, and the setting of the preset time length is associated with the data reporting cycle; when the smart water meter data is not received within the preset time, the preset terminal closes the communication connection with the target smart water meter.

[0102] It should be understood that the various variations and specific embodiments of the smart water meter data management method provided in the above embodiments are also applicable to the smart water meter data management device of this embodiment. Through the above detailed description of the smart water meter data management method, those skilled in the art can clearly know the implementation method of the smart water meter data management device in this embodiment. For the sake of brevity of the specification, it will not be described in detail here.

[0103] Reference Figure 3FIG. 1 is a schematic diagram of a structure of a preset terminal shown in an embodiment of the present application. In a preferred embodiment of the present application, the preset terminal 3 includes a memory 31 , at least one processor 32 and at least one communication bus 33 .

[0104] Those skilled in the art should understand that Figure 3 The structure of the preset terminal shown does not constitute a limitation of the embodiments of the present application, and can be either a bus structure or a star structure. The preset terminal 3 can also include more or less other hardware or software than shown in the figure, or a different component arrangement.

[0105] In some embodiments, the preset terminal 3 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits, programmable gate arrays, digital processors, and embedded devices. The preset terminal 3 may also include user equipment, which includes but is not limited to any electronic product that can interact with a user through a keyboard, mouse, remote control, touchpad, or voice control device, such as a personal computer, tablet computer, smart phone, etc.

[0106] It should be noted that the preset terminal 3 is only an example, and other existing or future electronic products that are suitable for the present application should also be included in the protection scope of the present application and included here by reference.

[0107] In some embodiments, the memory 31 stores a computer program, and when the computer program is executed by the at least one processor 32, all or part of the steps in the smart water meter data management method as described above are implemented. The memory 31 includes a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc memory, magnetic disk memory, magnetic tape memory, or any other computer-readable medium that can be used to carry or store data. Further, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of blockchain nodes, etc. The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0108] In some embodiments, the at least one processor 32 is the control core (ControlUnit) of the preset terminal 3, and uses various interfaces and lines to connect various components of the entire preset terminal 3, and executes various functions and processes data of the preset terminal 3 by running or executing programs or modules stored in the memory 31, and calling data stored in the memory 31. For example, when the at least one processor 32 executes the computer program stored in the memory, it implements all or part of the steps of the above-mentioned smart water meter data management method in the embodiment of the present application; or implements all or part of the functions of the smart water meter data management device. The at least one processor 32 can be composed of an integrated circuit, for example, it can be composed of a single packaged integrated circuit, or it can be composed of multiple integrated circuits with the same function or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips.

[0109] In some embodiments, the at least one communication bus 33 is configured to realize the connection and communication between the memory 31 and the at least one processor 32. Although not shown, the preset terminal 3 may also include a power supply (such as a battery) for powering each component. Preferably, the power supply may be logically connected to the at least one processor 32 through a power management device, so as to realize the functions of managing charging, discharging, and power consumption management through the power management device. The power supply may also include any components such as one or more DC or AC power supplies, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The preset terminal 3 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0110] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a preset terminal (which can be a personal computer, a preset terminal, or a network device, etc.) or a processor to execute part of the method described in each embodiment of the present application.

[0111] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0112] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0113] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.

Claims

1. A smart water meter data management method, characterized in that: The method comprises: The preset terminal detects the signal strength of each available network in the available network set between the preset terminal and the target smart water meter, and the target smart water meter is any smart water meter in the smart water meter set to report water meter data; The preset terminal selects a data transmission network from the set of available networks according to the signal strength of each available network; the preset terminal determines a data reporting period of the target smart water meter; The preset terminal sends the network identifier of the data transmission network, the data reporting period and the data reporting instruction to the target smart water meter, so that the target smart water meter obtains the smart water meter data, and returns the smart water meter data to the preset terminal through the data transmission network within the data reporting period; The preset terminal manages the smart water meter data; The preset terminal determines the data reporting period of the target smart water meter including: The preset terminal obtains a load value and a reporting number in each reporting period of a plurality of sub-reporting periods within a preset reporting period, wherein the plurality of sub-reporting periods are obtained by dividing the preset reporting period according to time segments; The preset terminal determines the data reporting period from the multiple sub-reporting periods according to the load value and the reporting number; The preset terminal determines the data reporting period from the multiple sub-reporting periods according to the load value and the reporting number, including: When the load value is greater than a preset load threshold, the preset terminal determines the number of periods of the first sub-reporting period corresponding to which the load value is greater than the preset load threshold; When the number of cycles is 1, the preset terminal determines the sub-reporting cycle corresponding to the minimum load value as the data reporting cycle; When the number of cycles is greater than 1, the preset terminal sorts the reporting times from small to large to obtain a sorting result; the preset terminal sequentially selects multiple target reporting times that are the same as the number of cycles from the sorting result in order from small to large; The preset terminal determines the sub-reporting period corresponding to each target reporting number among the multiple target reporting times as the data reporting period.

2. The smart water meter data management method according to claim 1, characterized in that: The method further comprises: The preset terminal obtains the water meter type corresponding to the target smart water meter; The preset terminal determines the data reporting format of the smart water meter data according to the water meter type; The preset terminal sends the data reporting format to the target smart water meter, so that the target smart water meter reports the smart water meter data based on the data reporting format.

3. The smart water meter data management method according to claim 2, characterized in that: The data reporting format includes a first packet header, a second packet header, a water meter number of the smart water meter, a water meter type of the smart water meter, a data length of the smart water meter data, an execution command of the smart water meter data, a first check code, the smart water meter data, a second check code and an end mark, wherein the first packet header occupies 1 byte, the second packet header occupies 1 byte, the water meter number of the smart water meter occupies 1 byte, the water meter type of the smart water meter occupies 1 byte, the data length of the smart water meter data occupies 2 bytes, the execution command of the smart water meter data occupies 2 bytes, the first check code occupies 1 byte, the smart water meter data occupies X bytes, the second check code occupies 2 bytes, and the end mark occupies 1 byte, wherein X is determined according to the actual data of the smart water meter data.

4. The smart water meter data management method according to claim 1, characterized in that: Before the preset terminal sends the network identifier of the data transmission network, the data reporting cycle and the data reporting instruction to the target smart water meter, the method further includes: The preset terminal detects whether a data reporting request sent by the target smart water meter is received; When the preset terminal receives the data reporting request, the preset terminal verifies whether the target smart water meter allows to actively report the smart water meter data; When it is determined that the target smart water meter allows automatic reporting of the smart water meter data, the target smart water meter is controlled to return the smart water meter data to the preset terminal through the data transmission network within the data reporting period.

5. The smart water meter data management method according to any one of claims 1 to 4, characterized in that: The method further comprises: The preset terminal detects whether the smart water meter data is received at a preset time, the time between the preset time and the time when the preset terminal sends the data reporting instruction is the preset time, and the setting of the preset time is associated with the data reporting cycle; When the smart water meter data is not received within the preset time, the preset terminal closes the communication connection with the target smart water meter.

6. A smart water meter data management device, characterized in that: The device comprises: A detection module, configured to detect, by a preset terminal, the signal strength of each available network in the available network set between the preset terminal and a target smart water meter, wherein the target smart water meter is any smart water meter in the smart water meter set to report water meter data; A selection module, configured for the preset terminal to select a data transmission network from the set of available networks according to the signal strength of each available network; A determination module, used by the preset terminal to determine the data reporting period of the target smart water meter; A reporting module, used for the preset terminal to send the network identifier of the data transmission network, the data reporting period and the data reporting instruction to the target smart water meter, so that the target smart water meter obtains the smart water meter data, and returns the smart water meter data to the preset terminal through the data transmission network within the data reporting period; A management module, used for the preset terminal to manage the smart water meter data; The determination module is specifically used for: the preset terminal to obtain the load value and the number of reports in each reporting period of multiple sub-reporting periods within the preset reporting period, where the multiple sub-reporting periods are obtained by dividing the preset reporting period according to time segments; the preset terminal determines the data reporting period from the multiple sub-reporting periods according to the load value and the number of reports; The determination module is also specifically used for: when the load value is greater than a preset load threshold, the preset terminal determines that the load value is greater than the number of cycles of the first sub-reporting cycle corresponding to the preset load threshold; when the number of cycles is 1, the preset terminal determines the sub-reporting cycle corresponding to the minimum load value as the data reporting cycle; when the number of cycles is greater than 1, the preset terminal sorts the reporting times from small to large to obtain a sorting result; the preset terminal selects multiple target reporting times that are the same as the number of cycles from the sorting result in order from small to large; the preset terminal determines the sub-reporting cycle corresponding to each target reporting time in the multiple target reporting times as the data reporting cycle.

7. A preset terminal, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the smart water meter data management method according to any one of claims 1 to 5 when executing the computer program.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the smart water meter data management method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Information reporting method and device, electronic equipment and storage medium

    CN111683012A

  • Internet of things water meter based on multi-channel communication and water meter management system

    CN213241463U