A communication optimization method and system for water meter
Optimize the base station selection of IoT water meter through scoring and whitelisting mechanisms, avoid network congestion and faulty base stations, solve the problem of frequent re-internetization of water meters, improve communication efficiency and data transmission success rate, and extend battery life.
Patent Information
- Application Number
- CN202410888219.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2044-07-04
AI Technical Summary
The frequent reconnection of the Internet of Things water meter in the case of network congestion and base station failure leads to failure of data transmission, increased power consumption and reduced network access success rate. The existing communication module reselection mechanism cannot effectively avoid network congestion and delayed base stations.
By obtaining the base station encoding, frequency point, signal strength, signal-to-noise ratio and communication delay when each networking is successful, a whitelist of base stations is formed based on the scoring criteria, and priority is given to the base stations with superior signal strength, signal-to-noise ratio and communication delay. Update the whitelist to deal with changes in the network environment.
Improves the communication efficiency of water meter, reduces power consumption, ensures accurate data transmission to the central server, and enhances networking success rate and battery life.
Smart Images

Figure CN118433754B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wireless communication networks, and in particular to a communication optimization method and system for a water meter. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] IoT water meters that deploy wireless communication technology usually report data at set time intervals (for example, once a day). Due to the particularity of the installation location and operating environment, as well as the complexity of on-site base station deployment, the water meter does not always communicate wirelessly with the network. It usually connects to the network only when it needs to upload data. When the network connection fails, the water meter will automatically reconnect a certain number of times, that is, by sending a certain number of network requests to nearby base stations.
[0004] When there are many water meters in the same area, the more times the network is reconnected, the more serious the network congestion of the current base station will be, further reducing the success rate of water meters accessing the network in the entire area.
[0005] Secondly, each time the water meter reports data, it needs to execute the complete network search and network registration process, which prolongs the waiting time for the network, and increases the reporting time and battery power consumption.
[0006] When network congestion occurs and the base station core network sends a T3346 back-off timer, the water meter will be restricted from accessing the network for a period of time. The T3346 back-off timer is generally set to 5 to 30 minutes. In this case, even if the IoT water meter is restarted several times or the waiting time is extended, it will still be unable to access the network, thus wasting the battery power of the IoT water meter.
[0007] At the same time, there are often multiple base stations in an area that cover the water meter's communication network at the same time. Co-frequency interference is prone to occur between multiple base station networks, or a base station fails, causing the IoT water meter to be unable to attach to the network or fail to enter the core network, thereby causing the IoT water meter to fail to connect to the network.
[0008] The inventors found that network congestion causes IoT water meters to need to reconnect to the network multiple times before they can report data normally, and may even be unable to upload data within a certain period of time, resulting in data discard or loss of validity. Although the communication module on the water meter has a reselection mechanism, in actual applications, the judgment conditions of the communication module reselection mechanism are limited to the wireless network protocol layer and do not involve the business application layer. Moreover, reselection requires the water meter to be continuously activated for more than a certain value, such as at least 3 minutes, which increases the power consumption of the water meter. Multiple networking indirectly leads to an increase in the energy consumption of the water meter and reduces the service life of the water meter battery. Summary of the invention
[0009] In order to solve the technical problems existing in the above-mentioned background technology, the present invention provides a communication optimization method and system for a water meter. Each time the network is successfully connected, the network signal strength, signal-to-noise ratio, network search time and communication delay time are used as the basis for judgment to determine the base station code and frequency with the shortest network connection time, the shortest communication delay and the shortest time for the entire reporting data service, so as to form a base station white list. When connecting to the network subsequently, the water meter will give priority to connecting to the base stations in the white list, so that the water meter can avoid base stations with congested network, faulty base stations and base stations with long network delay as much as possible, thereby improving the communication efficiency of the water meter, reducing power consumption, and ensuring that the water meter can accurately transmit the monitored data to the central server.
[0010] In order to achieve the above object, the present invention adopts the following technical solution:
[0011] A first aspect of the present invention provides a communication optimization method for a water meter, comprising the following steps:
[0012] After the water meter is running and connected to the network successfully, the base station code, frequency, network signal strength, signal-to-noise ratio, network search time and communication delay at the time of successful connection are obtained and saved;
[0013] Each time the network is successfully connected, the score values corresponding to the network signal strength, signal-to-noise ratio, network search time and communication delay time of each group of base station codes and frequencies are determined based on the set scoring criteria, and the base station code whitelist is determined by sorting;
[0014] Each time you connect to the Internet, connect to the corresponding base station according to the sorting results in the base station code whitelist.
[0015] Further, the scoring criteria include:
[0016] If the search duration is longer than the first set value, score A is calculated; if it is not longer than the first set value, score A is calculated;
[0017] If the communication time is greater than the second set value, score B is calculated; if it is not greater than the second set value, score B is calculated;
[0018] If the signal strength is greater than the third set value, a score of C is given; if the signal strength is not greater than the third set value, a score of C is given;
[0019] If the signal-to-noise ratio is greater than the fourth set value, a score of D is given; if the signal-to-noise ratio is not greater than the fourth set value, a score of d is given;
[0020] The total score of the four parameters is X, and the lowest score is Y.
[0021] Furthermore, based on the set scoring criteria, the score values corresponding to the network signal strength, signal-to-noise ratio, network search time and communication delay time corresponding to each group of base station codes and frequencies are determined, and the base station code whitelist is determined by sorting, specifically: the score values corresponding to the network signal strength, signal-to-noise ratio, network search time and communication delay time are determined to obtain the accumulated total score, and the total score is sorted from large to small within the set range to obtain the corresponding base station code whitelist.
[0022] Furthermore, the total scores are sorted from large to small within the set interval to obtain the corresponding base station code whitelist, specifically: the total scores are sorted from large to small within the interval XY to obtain the base station code whitelist, and the base station ranked first in the whitelist is the optimal base station.
[0023] Furthermore, the order of weights is: network search time > communication time > signal strength > signal-to-noise ratio.
[0024] Furthermore, when the total scores are equal, the time taken to search the Internet is compared and sorted, and the one with the shorter search time is preferred;
[0025] If the network search time is equal, the communication time is compared and sorted, and the shorter time is preferred;
[0026] If the communication time is also equal, then compare the signal strength RSRP and sort them. The base station with a larger signal value is preferred.
[0027] If the signal strength RSRP is also equal, the signal-to-noise ratio values are compared and sorted, and the base station with a larger signal-to-noise ratio value is preferred.
[0028] Furthermore, if the scores corresponding to the network signal strength, signal-to-noise ratio, network search time and communication delay time are equal, the current network comparison result will be invalidated, and the optimal base station will be re-determined when the network is connected again in the next reporting cycle.
[0029] Furthermore, each time the network is connected, the corresponding base station is connected according to the sorting result in the base station code whitelist, specifically:
[0030] When connecting to the Internet, the base station ranked 1 in the whitelist is preferred. If the connection fails, the base station ranked 1 is removed from the whitelist, and the base station ranked 2 is selected when reconnecting to the Internet;
[0031] If it fails, remove the base station ranked 2 from the whitelist and select the base station ranked 3;
[0032] This process is repeated until all base station information in the whitelist is cleared and a full-frequency search is initiated;
[0033] If the full-frequency point search network still fails, the communication function of the water meter is closed.
[0034] A second aspect of the present invention provides a communication optimization system for a water meter, comprising:
[0035] The data acquisition module is configured to: after the water meter is running and connected to the network successfully, obtain and save the base station code, frequency, network signal strength, signal-to-noise ratio, network search time and communication delay when the network is successfully connected;
[0036] The whitelist module is configured to: determine the score values corresponding to the network signal strength, signal-to-noise ratio, network search time and communication delay time of each group of base station codes and frequencies based on the set scoring criteria each time the network is successfully connected, and determine the base station code whitelist by sorting;
[0037] The whitelist module is also configured to: connect to the corresponding base station according to the sorting result in the base station code whitelist each time the network is connected.
[0038] A third aspect of the present invention provides a program, which, when executed by a processor, implements the steps in the above-mentioned communication optimization method for a water meter.
[0039] A fourth aspect of the present invention provides a communication module, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in the above-mentioned communication optimization method for a water meter are implemented.
[0040] Compared with the prior art, one or more of the above technical solutions have the following beneficial effects:
[0041] 1. Every time the network is successfully connected, the network signal strength, signal-to-noise ratio, network search time and communication delay are used as the basis for judgment to determine the base station code and frequency with the shortest network connection time, the shortest communication delay and the shortest time for reporting data services, and form a base station whitelist. When connecting to the network later, the water meter will give priority to connecting to the base stations in the whitelist, so that the water meter can avoid base stations with congested networks, faulty base stations and base stations with long network delays as much as possible, improve the communication efficiency of the water meter, reduce power consumption, and ensure that the water meter can accurately transmit the monitored data to the central server.
[0042] 2. The base station whitelist will be dynamically updated using a scoring mechanism each time a water meter succeeds or fails to connect to the Internet, allowing the water meter to cope with complex and changing network environments.
[0043] 3. Different from the traditional communication module reselection mechanism, the focus is on judging the time it takes for the water meter to search the network and the communication delay time, followed by the network signal strength and signal-to-noise ratio, so as to improve the success rate of the water meter reporting data online. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0045] Figure 1 It is a flow chart of water meter communication provided by one or more embodiments of the present invention. DETAILED DESCRIPTION
[0046] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0047] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0048] NB water meter is a water meter that uses narrowband Internet of Things technology (NarrowBand). After the communication deployment is completed, it can regularly upload the monitored water usage data to the server through wireless communication.
[0049] PCI, Physical Cell Identifier, is an identification code used in base stations to distinguish wireless signals in different areas. When used in IoT water meters in urban communities, the PCI code represents the identification code of the community.
[0050] RSRP, Reference Signal Receiving Power, is one of the key parameters representing the strength of wireless signals.
[0051] Embodiment 1:
[0052] like Figure 1 As shown, a communication optimization method for a water meter includes the following steps:
[0053] After the water meter is running and connected to the network successfully, the base station code, frequency, network signal strength, signal-to-noise ratio, network search time and communication delay at the time of successful connection are obtained and saved;
[0054] Each time the network is successfully connected, the score values corresponding to the network signal strength, signal-to-noise ratio, network search time and communication delay time of each group of base station codes and frequencies are determined based on the set scoring criteria, and the base station code whitelist is determined by sorting;
[0055] Each time you connect to the Internet, connect to the corresponding base station according to the sorting results in the base station code whitelist.
[0056] In this embodiment, the NB water meter is taken as an example. Without changing the performance parameters of the base station and the NB water meter, the PCI code and the corresponding frequency EARFCN of the base station connected when the NB water meter is successfully connected to the network are recorded and analyzed. The NB water meter program algorithm analyzes and determines the base station code and frequency that can shorten the networking time of the NB water meter, shorten the communication delay, and shorten the time for the entire reporting data service. This allows the NB water meter to avoid base stations with congested networks, faulty base stations, and base stations with long network delays as much as possible, thereby improving the communication efficiency of the NB water meter, reducing the power consumption of the NB water meter, and ensuring that the NB water meter can transmit the reported data to the central server normally and accurately every day.
[0057] After the NB water meter is first operated and connected to the network successfully, the base station code PCI, frequency, network signal strength RSRP, signal-to-noise ratio, network search time and communication delay time of the successful connection are recorded. After recording the successful network access N times in succession, the recorded parameters are analyzed and sorted.
[0058] The base station codes and frequency numbers 1, 2, and 3 with high efficiency in network access for this NB water meter are listed as the base station code whitelist. Conversely, the base station codes with high failure rate and long usage time for NB water meter network access are removed from the whitelist.
[0059] After that, the optimal base station is selected when the NB water meter accesses the network. The optimal base station here is not necessarily the base station with the best network signal, but only the base station with the highest success rate of NB water meter access to the network and the shortest network search and communication time.
[0060] The base station code whitelist mentioned in the above process is dynamically adjusted during the long-term operation of the NB water meter to cope with changes in base stations and changes in the daily scheduled networking time of the NB water meter.
[0061] The conditions for determining the optimal base station include network signal strength RSRP, signal-to-noise ratio, network search time, and communication delay time. Based on the experience gained from the current operation of water meters, we have found differences in base stations when water meters are connected to the Internet. The base station with the shortest network search time is the optimal base station for this water meter. Even if the signal strength is lower, the success rate of the water meter connecting to the Internet is high enough.
[0062] Therefore, in this embodiment, the highest evaluation condition is the network search time, followed by the communication time, which reflects the network delay of the base station, followed by the signal strength, and finally the signal-to-noise ratio. In summary, the following scoring rules are used to implement the judgment, and the specific steps are:
[0063] If the search time is longer than 30 seconds, 3 points will be awarded; if it is shorter than 30 seconds, 4 points will be awarded.
[0064] If the communication time is longer than 5 seconds, 2 points will be awarded; if it is shorter than 5 seconds, 3 points will be awarded.
[0065] If the signal strength RSRP is greater than -90, 2 points are scored; if it is less than -90, 1 point is scored;
[0066] If the signal-to-noise ratio is greater than -3, 1 point is scored, and if it is less than -3, 0 point is scored;
[0067] The total of the four parameters is the final score, with the highest score being 10 points and the lowest score being 6 points. The base stations are ranked in order of 1 / 2 / 3 based on the total score.
[0068] When the total scores of N base stations are equal, the four parameters are ranked in descending order of weight. The order of weight is: network search time > communication time > signal strength RSRP > signal-to-noise ratio.
[0069] For example, when the total scores are equal, the time taken to search the Internet is compared and sorted, and the shorter the time is, the better;
[0070] If the network search time is equal, the communication time is compared and sorted, and the shorter time is preferred;
[0071] If the communication time is also equal, then compare the signal strength RSRP and sort them. The base station with the larger signal value is the best.
[0072] If the signal strength RSRP is also equal, the signal-to-noise ratio values are compared and sorted, and the base station with a larger signal-to-noise ratio value is preferred.
[0073] If all four parameters are equal, the current network comparison result will be invalidated; when the NB water meter is connected to the network again in the next reporting cycle, the optimal base station will be re-compared and calculated.
[0074] After several attempts to connect to the network, the best base station can be selected and ranked 1 / 2 / 3 according to the quality of the base stations. The best base station will be selected first when connecting to the network. When the network connection fails, the base station ranked 1 will be removed from the whitelist, and the base station ranked 2 will be selected when reconnecting to the network; if it fails, the base station ranked 2 will be removed from the whitelist, and the base station ranked 3 will be selected; if all three base stations fail to connect to the network, all base station information in the whitelist will be cleared and a full-frequency point search will be initiated. If the full-frequency point search still fails, the water meter communication function will be closed.
[0075] The above process is different from the cell reselection algorithm of the NB networking module itself. This algorithm focuses on judging based on the time it takes for the NB water meter to search the network and the communication delay time, followed by the network signal strength RSRP and signal-to-noise ratio, thereby improving the success rate of NB water meters reporting meter reading data online.
[0076] Embodiment 2:
[0077] A water meter communication optimization system for implementing the above method comprises:
[0078] The data acquisition module is configured to: after the water meter is running and connected to the network successfully, obtain and save the base station code, frequency, network signal strength, signal-to-noise ratio, network search time and communication delay when the network is successfully connected;
[0079] The whitelist module is configured to: determine the score values corresponding to the network signal strength, signal-to-noise ratio, network search time and communication delay time of each group of base station codes and frequencies based on the set scoring criteria each time the network is successfully connected, and determine the base station code whitelist by sorting;
[0080] The whitelist module is also configured to: connect to the corresponding base station according to the sorting result in the base station code whitelist each time the network is connected.
[0081] Every time the network is successfully connected, the network signal strength, signal-to-noise ratio, network search time and communication delay are used as the basis for judgment to determine the base station code and frequency with the shortest network connection time, the shortest communication delay and the shortest time for reporting data services, and form a base station whitelist. When connecting to the network later, the water meter will give priority to connecting to the base stations in the whitelist, so that the water meter can avoid base stations with congested networks, faulty base stations and base stations with long network delays as much as possible, thereby improving the communication efficiency of the water meter, reducing power consumption, and ensuring that the water meter can accurately transmit the monitored data to the central server.
[0082] Embodiment three:
[0083] This embodiment provides a computer program, which, when executed by a processor, implements the steps in the communication optimization method for a water meter as described in the first embodiment above.
[0084] Embodiment 4:
[0085] This embodiment provides a communication module, including a memory, a processor, and an embedded program stored in the memory and executable on the processor. When the processor executes the program, the steps in the communication optimization method for a water meter as described in the first embodiment are implemented.
[0086] The steps involved in the above embodiments 2 to 4 correspond to those in embodiment 1. For the specific implementation methods, please refer to the relevant description part of embodiment 1.
[0087] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A communication optimization method for a water meter, It is characterized in that The following steps are involved: After the water meter is running and connected to the network successfully, the base station code, frequency, network signal strength, signal-to-noise ratio, network search time and communication delay at the time of successful connection are obtained and saved; Each time the network is successfully connected, the score values corresponding to the network signal strength, signal-to-noise ratio, network search time and communication delay time of each group of base station codes and frequencies are determined based on the set scoring criteria, and the base station code whitelist is determined by sorting; Each time you connect to the Internet, connect to the corresponding base station according to the sorting results in the base station code whitelist; The scoring criteria are as follows: If the search duration is longer than the first set value, score A is calculated; if it is not longer than the first set value, score A is calculated; If the communication time is greater than the second set value, score B is calculated; if it is not greater than the second set value, score B is calculated; If the signal strength is greater than the third set value, a score of C is given; if the signal strength is not greater than the third set value, a score of C is given; If the signal-to-noise ratio is greater than the fourth set value, a score of D is given; if the signal-to-noise ratio is not greater than the fourth set value, a score of d is given; The corresponding scores of signal strength, signal-to-noise ratio, network search time and communication delay time are added together to form a total score, with the highest score being X and the lowest score being Y; The total scores are sorted from large to small within the set interval to obtain the corresponding base station code whitelist. The base station ranked first in the whitelist is the optimal base station. When the total scores of N base stations are equal, they are arranged in the order of set weights. The order of weights is: network search time > communication time > signal strength > signal-to-noise ratio; communication time reflects the network delay of the base station; When the total scores are equal, the search time is compared and sorted, and the shorter search time is preferred; If the network search time is equal, the communication time is compared and sorted, and the shorter time is preferred; If the communication time is also equal, then compare the signal strength RSRP and sort them. The base station with a larger signal value is preferred. If the signal strength RSRP is also equal, the signal-to-noise ratio values are compared and sorted, and the base station with a larger signal-to-noise ratio value is preferred; Each time you connect to the Internet, you connect to the corresponding base station according to the sorting results in the base station code whitelist, including: When connecting to the Internet, the base station ranked 1 in the whitelist is preferred. If the connection fails, the base station ranked 1 is removed from the whitelist, and the base station ranked 2 is selected when reconnecting to the Internet; If it still fails, remove the base station ranked 2 from the whitelist and select the base station ranked 3; This process continues in this way until the last base station in the whitelist is successfully connected to the network, or all base stations in the whitelist fail to connect to the network. The base station whitelist is dynamically updated using a scoring mechanism each time a water meter is successfully or unsuccessfully connected to the network.
2. A method for optimizing communication of a water meter as claimed in claim 1, It is characterized in that If the scores of network signal strength, signal-to-noise ratio, network search time and communication delay time are equal, the current network comparison result will be invalidated, and the optimal base station will be re-determined when the network is connected again in the next reporting cycle.
3. A communication optimization method for a water meter as claimed in claim 1, It is characterized in that Each time you connect to the Internet, connect to the corresponding base station according to the sorting results in the base station code whitelist, and also include: If all base stations in the whitelist fail to connect to the network, clear all base station information in the whitelist and initiate a full-frequency network search for a set time until the network is successfully connected; If the full-frequency point search network still fails, the communication function of the water meter is closed.
4. A system for implementing the communication optimization method of a water meter according to any one of claims 1 to 3, It is characterized in that include: The data acquisition module is configured to: after the water meter is running and connected to the network successfully, obtain and save the base station code, frequency, network signal strength, signal-to-noise ratio, network search time and communication delay when the network is successfully connected; The whitelist module is configured to: determine the score values corresponding to the network signal strength, signal-to-noise ratio, network search time and communication delay time of each group of base station codes and frequencies based on the set scoring criteria each time the network is successfully connected, and determine the base station code whitelist by sorting; The whitelist module is also configured to: connect to the corresponding base station according to the sorting result in the base station code whitelist each time the network is connected.
