CN117729221A - Ultrasonic water meter data synchronization method, internet of things system and device - Google Patents

Ultrasonic water meter data synchronization method, internet of things system and device Download PDF

Info

Publication number
CN117729221A
CN117729221A CN202410180946.4A CN202410180946A CN117729221A CN 117729221 A CN117729221 A CN 117729221A CN 202410180946 A CN202410180946 A CN 202410180946A CN 117729221 A CN117729221 A CN 117729221A
Authority
CN
China
Prior art keywords
data
synchronization
data synchronization
time
target terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202410180946.4A
Other languages
Chinese (zh)
Other versions
CN117729221B (en
Inventor
邵泽华
李勇
王峰
周莙焱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Qinchuan IoT Technology Co Ltd
Original Assignee
Chengdu Qinchuan IoT Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Qinchuan IoT Technology Co Ltd filed Critical Chengdu Qinchuan IoT Technology Co Ltd
Priority to CN202410180946.4A priority Critical patent/CN117729221B/en
Publication of CN117729221A publication Critical patent/CN117729221A/en
Application granted granted Critical
Publication of CN117729221B publication Critical patent/CN117729221B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application discloses a data synchronization method of an ultrasonic water meter, an Internet of things system and a device, wherein after first information is received, whether data synchronization is needed is judged according to the type of the first information, when the data synchronization is needed, first data, a first target terminal and first data synchronization parameters which need to be synchronized are obtained according to the first information, whether the first data synchronization is real-time synchronization is judged according to the first data synchronization parameters, and if the first data synchronization is real-time synchronization, the first data synchronization is immediately carried out with the first target terminal; if the synchronization is not real-time synchronization, determining the latest synchronization time as a first limiting time according to the first data synchronization parameter, and selecting proper time within the range of the first limiting time to perform first data synchronization. The method at least solves the problem that the conventional intelligent water meter Internet of things system generally adopts a method of periodic data synchronization or real-time data synchronization, and is not beneficial to managing the communication load of the whole Internet of things system.

Description

Ultrasonic water meter data synchronization method, internet of things system and device
Technical Field
The application relates to the technical field of the internet of things, in particular to an ultrasonic water meter data synchronization method, an internet of things system and an ultrasonic water meter data synchronization device.
Background
The internet of things is an important component of a new generation of information technology and is also an important development stage of an 'informatization' age. The Internet of things is currently widely considered to be the Internet with connected things, and is an upgrade of Internet development. It comprises two layers of meaning: firstly, the core and the foundation of the Internet of things are still the Internet, and the Internet is an extended and expanded network based on the Internet; secondly, the user side extends and expands to any article to article, and information exchange and communication are carried out, namely, the article information is carried out.
Water is the most important living element in life of people, and is not boiled every moment. Currently, intelligent water meters in the market are gradually replacing traditional water meters. Intelligent water meters are meters that can automatically record and monitor household and commercial water usage. It has many advantages such as prepaid function, one-card function, display synchronization function, prompt alarm function, data uploading function, valve self-maintenance function, water storage preventing function, water drip preventing function, etc.
In the intelligent water meter internet of things system, a plurality of data and instructions to be synchronized exist between a management platform and a water meter terminal, the data sizes of different data and instructions are different, the real-time requirements are also different, and the conventional intelligent water meter internet of things system generally adopts a periodic data synchronization or real-time data synchronization method, so that the management of the communication load of the whole internet of things system is not facilitated.
Disclosure of Invention
The invention provides an ultrasonic water meter data synchronization method, an Internet of things system and a device, which at least solve the problem that the conventional intelligent water meter Internet of things system generally adopts a periodic data synchronization or real-time data synchronization method, and is not beneficial to managing the communication load of the whole Internet of things system.
The invention provides a data synchronization method of an ultrasonic water meter, which comprises the following steps:
acquiring first information;
judging whether data synchronization is needed or not according to the first information;
when data synchronization is needed, according to the first information, obtaining first data for performing first data synchronization, a first target terminal and a first data synchronization parameter;
judging whether the first data synchronization is real-time synchronization or not according to the first data synchronization parameters;
when the first data synchronization is real-time synchronization;
according to the first target terminal, a synchronization request of first data synchronization is sent to the first target terminal;
when the first data synchronization is not real-time synchronization;
obtaining a first limiting time according to the first data synchronization parameter;
according to the first limiting time and the first data, obtaining a first time for performing first data synchronization;
and sending a synchronization request for first data synchronization to the first target terminal according to the first time and the first target terminal.
Optionally, the step of acquiring the first information includes:
acquiring first information sent by an ultrasonic water meter terminal;
or, acquiring first information sent by the user terminal;
or, acquiring the first information sent by the management platform.
Optionally, the step of acquiring the first information includes:
at least one of first information sent by an ultrasonic water meter terminal, first information sent by a user terminal and first information sent by a management platform is obtained.
Optionally, the step of sending, according to the first target terminal, a synchronization request for first data synchronization to the first target terminal includes:
judging the synchronization direction of the first data synchronization according to the first data;
when the synchronization direction of the first data synchronization is to synchronize the first data to the first target terminal, sending a synchronization request for synchronizing the first data and the first data to the first target terminal according to the first target terminal;
when the synchronization direction of the first data synchronization is that the first data is synchronized from the first target terminal, a first data request is sent to the first target terminal according to the first target terminal;
and receiving first data sent by the first target terminal in response to the first data request, and storing the first data into a local database.
Optionally, the step of obtaining a first time for performing first data synchronization according to the first limiting time and the first data includes:
determining the data size of the first data according to the first data;
when the data size of the first data exceeds a first threshold value;
and selecting the time with the minimum communication pressure with the first target terminal as the first time within the range of the first limiting time.
Optionally, the step of selecting, as the first time, a time with the minimum communication pressure with the first target terminal within the range of the first limiting time includes:
according to the first data, calculating a first duration required by the first data synchronization;
obtaining a first duration window according to the first duration;
according to the first duration window, a first window with the smallest communication data volume with the first target terminal is obtained by using a sliding window algorithm in the range of the first limiting time;
and obtaining the first time according to the first window.
Optionally, the step of obtaining the first time limit according to the first data synchronization parameter includes:
obtaining a first deadline according to the first data synchronization time parameter;
according to the first data, calculating a first duration required by the first data synchronization;
and obtaining a first limiting time according to the first cut-off time and the first duration.
Optionally, in the first target terminal, when the number of the ultrasonic water meter terminals is not less than 2, the first data synchronization is performed with the first target terminal through broadcasting.
In still another aspect, an ultrasonic water meter data synchronization internet of things system comprises a user platform, a service platform, a management platform, a sensing network platform and an object platform which are sequentially connected in a communication mode, wherein the object platform comprises at least one ultrasonic water meter terminal;
the sensor network platform is configured to:
acquiring first information;
judging whether data synchronization is needed or not according to the first information;
when data synchronization is needed, according to the first information, obtaining first data for performing first data synchronization, a first target terminal and a first data synchronization parameter;
judging whether the first data synchronization is real-time synchronization or not according to the first data synchronization parameters;
when the first data synchronization is real-time synchronization;
according to the first target terminal, a synchronization request of first data synchronization is sent to the first target terminal;
when the first data synchronization is not real-time synchronization;
obtaining a first limiting time according to the first data synchronization parameter;
according to the first limiting time and the first data, obtaining a first time for performing first data synchronization;
according to the first time and the first target terminal, a synchronization request for first data synchronization is sent to the first target terminal;
the ultrasonic water meter terminal is configured to:
responding to a first data synchronization request sent by a sensing network platform, and performing first data synchronization with the sensing network platform;
the user platform and the management platform are configured to:
sending first information to a sensing network platform;
the service platform is configured to:
and establishing connection between the user platform and the management platform.
Optionally, the first information includes at least one of fee information, device information, and valve control information.
In yet another aspect, a computer device includes a memory having a computer program stored therein and a processor executing the computer program to implement any of the methods described above.
In yet another aspect, a computer readable storage medium includes a memory having a computer program stored therein and a processor executing the computer program to implement any of the methods described above.
Compared with the prior art, the invention has the following advantages and beneficial effects:
the invention relates to a data synchronization method of an ultrasonic water meter, an Internet of things system and a device, which are characterized in that after first information is received, whether data synchronization is needed is judged according to the type of the first information, when the data synchronization is needed, first data, a first target terminal and first data synchronization parameters which are needed to be synchronized are obtained according to the first information, whether the first data synchronization is real-time synchronization is judged according to the first data synchronization parameters, and if the first data synchronization is real-time synchronization, the first data synchronization is immediately carried out with the first target terminal; if the synchronization is not real-time synchronization, determining the latest synchronization time as a first limiting time according to the first data synchronization parameter, and selecting proper time within the range of the first limiting time to perform first data synchronization. By adopting the method, according to different data and different data quantity of instructions and different real-time requirements, different data synchronization schemes are adopted, when the data synchronization brings larger communication pressure to the Internet of things, the time with the minimum communication pressure is selected for data synchronization within the limit time, so that the network load is conveniently and uniformly adjusted. Compared with the real-time data synchronization, if multiple groups of data are needed to be synchronized at the same time and the data volume is large, network blocking is extremely easy to cause, by adopting the scheme, a part of data which does not need to be synchronized in real time is selected to be synchronized in proper time, the condition of network blocking is avoided, and compared with the periodic data synchronization, the scheme has the advantages that the strategy of data synchronization is more flexible and the expansibility is stronger, and at least the problem that the communication load of the whole internet of things system is not beneficial to management due to the fact that the conventional intelligent water meter internet of things system generally adopts the periodic data synchronization or the real-time data synchronization method is solved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following description will make brief description of the drawings used in the description of the embodiments or the prior art. Like elements or portions are generally identified by like reference numerals throughout the several figures. In the drawings, elements or portions thereof are not necessarily drawn to scale.
FIG. 1 is a schematic flow chart of a method for synchronizing data of an ultrasonic water meter;
fig. 2 is a schematic diagram of a framework of the internet of things referred to in the present application.
The realization, functional characteristics and advantages of the present application will be further described with reference to the embodiments, referring to the attached drawings.
Detailed Description
In order that those skilled in the art will better understand the present disclosure, a clear and complete description of the technical solutions of the embodiments of the present disclosure will be provided below in conjunction with the accompanying drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are only some embodiments of the present disclosure, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without inventive effort, based on the embodiments in this disclosure, shall fall within the scope of the present disclosure.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
The ultrasonic water meter data synchronization method shown in fig. 1 is executed by a sensor network platform and comprises the following steps:
s1, acquiring first information;
the sensor network platform receives first information sent from outside, wherein the first information can be at least one of cost information, equipment information and valve control information;
the fee information may include information related to fee such as charging information, balance information, price adjustment information, etc.;
the device information may include information related to operation of the device, such as remaining power information, device abnormality information, etc.;
the valve control information may include information for operating the valve, such as valve opening and closing information, valve timing opening and closing information, and the like.
Optionally, the step of acquiring the first information includes:
acquiring first information sent by an ultrasonic water meter terminal;
or, acquiring first information sent by the user terminal;
or, acquiring the first information sent by the management platform.
Optionally, the step of acquiring the first information includes:
at least one of first information sent by an ultrasonic water meter terminal, first information sent by a user terminal and first information sent by a management platform is obtained.
Specifically, the sensor network platform can acquire the first information sent by the ultrasonic water meter terminal, the user terminal or the management platform, and the types of the first information sent by the terminals or the platforms can be the same or different, for example, the ultrasonic water meter terminal locally charges, when the user defaults, the ultrasonic water meter terminal sends defaulting information to the sensor network platform, if the ultrasonic water meter terminal does not locally charge, but charges at the management platform, the defaulting information is sent to the sensor network platform by the management platform.
S2, judging whether data synchronization is needed or not according to the first information;
and the sensing network platform judges whether data synchronization is needed or not according to the received first information, if the received first information is valve opening, the sensing network platform only needs to send a valve opening instruction to the ultrasonic water meter terminal, and if the received first information is valve closing in XX time, the sensing network platform needs to perform data synchronization with the ultrasonic water meter terminal, wherein the synchronization content comprises calibration of XX time and current time.
When data synchronization is needed;
s3, according to the first information, obtaining first data for carrying out first data synchronization, a first target terminal and a first data synchronization parameter;
and the sensor network platform determines first data, a first target terminal and first data synchronization parameters which need to be subjected to first data synchronization according to the first information.
Optionally, the first data may be balance data, flow data, water price data, threshold data, time data, device firmware update data, etc.;
the first target terminal may be a specific ultrasonic water meter terminal that needs to perform first data synchronization, or may be a type of ultrasonic water meter terminal that needs to perform first data synchronization and has the same characteristics, such as an ultrasonic water meter terminal in a certain area, or an ultrasonic water meter terminal in a certain user class;
optionally, when the number of the ultrasonic water meter terminals in the first target terminal is not less than 2, first data synchronization is performed between the first target terminal and the ultrasonic water meter terminal through broadcasting, specifically, broadcasting is performed on the ultrasonic water meter terminal meeting the condition through a multicast mode, and the broadcasting content can be a data synchronization request or a data synchronization request and first data needing synchronization.
Specifically, according to the first information, the method for obtaining the first data for synchronizing the first data includes that a mapping between the first information and the first data is established in the sensor network platform in advance, and if the first information is arrearage information, the corresponding first data is balance data and flow data; when the first information is the price adjustment information, the corresponding first data is water price data; when the first information is threshold value setting information, the corresponding first data is threshold value data;
specifically, according to the first information, the method for obtaining the first target terminal may be that the first information designates the first target terminal, or that the first information ultrasonic water meter terminal is sent as the first target terminal, or that the ultrasonic water meter terminal matched with the user terminal sending the first information is sent as the first target terminal.
Specifically, according to the first information, the method for obtaining the first data synchronization parameter may be that the first information specifies the first data synchronization parameter, such as real synchronization or synchronization in XX time; the first data synchronization parameters can also be preset in advance according to the type of the first data, for example, the water price data is preset to complete synchronization within 30 days, the equipment firmware update data is preset to complete synchronization within 7 days, and the like.
S4, judging whether the first data synchronization is real-time synchronization or not according to the first data synchronization parameters;
and the sensor network platform judges whether the first data synchronization is real-time synchronization or not according to the first data synchronization parameter.
When the first data synchronization is real-time synchronization;
s5, according to the first target terminal, a synchronization request of first data synchronization is sent to the first target terminal;
optionally, the step of sending, according to the first target terminal, a synchronization request for first data synchronization to the first target terminal includes:
judging the synchronization direction of the first data synchronization according to the first data;
when the synchronization direction of the first data synchronization is to synchronize the first data to the first target terminal, according to the first target terminal, sending a synchronization request of the first data and the first data synchronization to the first target terminal;
when the synchronization direction of the first data synchronization is that the first data is synchronized from the first target terminal, sending a first data request to the first target terminal according to the first target terminal;
and receiving first data sent by the first target terminal in response to the first data request, and storing the first data in a local database.
The first data synchronization may be that the sensing network platform sends the first data to the first target terminal, or that the sensing network platform synchronizes the first data from the first target terminal; the first data may be specific data, such as device firmware update data, or may be some kind of data, such as water price data, and when the first data is some kind of data, the sensor network platform or the first target terminal reads the locally stored or received first data to perform first data synchronization.
When the first data synchronization is not real-time synchronization;
s6, obtaining a first limiting time according to the first data synchronization parameter;
optionally, the step of obtaining the first limiting time according to the first data synchronization parameter includes:
obtaining a first deadline according to the first data synchronization time parameter;
according to the first data, calculating a first time length required by the first data synchronization;
and obtaining the first limiting time according to the first cut-off time and the first duration.
Because the data synchronization needs time, if the data amount of the first data is larger, the time needed by the data synchronization is longer, so that the first time length needed by the first data synchronization needs to be fully considered when the first limit time is calculated, the first time length can be obtained according to the time needed by the first data synchronization under the standard working condition of the internet of things system, a certain redundancy can be added on the basis of the time, and the latest time for starting the first synchronization can be obtained as the first limit time through the first deadline and the first time length.
S7, obtaining first time for synchronizing the first data according to the first limiting time and the first data;
and the sensing network platform obtains first time for carrying out first data synchronization according to the first limiting time and the first data, wherein the first time is the time with minimum communication pressure with the first target terminal in the first limiting time range.
Optionally, the step of obtaining the first time for performing the first data synchronization according to the first limiting time and the first data includes:
determining the data size of the first data according to the first data;
when the data size of the first data exceeds a first threshold value;
and selecting the time with the minimum communication pressure with the first target terminal as the first time within the range of the first limiting time.
When the data size of the first data exceeds the first threshold, it means that the first data synchronization has a great influence on the internet of things communication network, so that the time with the minimum communication pressure with the first target terminal needs to be selected as the first time to relieve the communication pressure.
When the data size of the first data is smaller, namely the data size of the first data does not exceed the first threshold value, the first data can be synchronized in real time, and the influence of the small-flow first data on the load of the communication network of the Internet of things is smaller;
when the data size of the first data is smaller, that is, the data size of the first data does not exceed the first threshold, the load of the internet of things communication network can be evaluated, and when the load of the internet of things communication network is smaller than the second threshold, the first data are synchronized.
The first threshold may be a fixed value or a product of a fixed value and an unused bandwidth ratio in the internet of things communication network.
Optionally, the step of selecting, as the first time, a time at which the communication pressure with the first target terminal is minimum within the range of the first limit time, includes:
according to the first data, calculating a first time length required by the first data synchronization;
obtaining a first duration window according to the first duration;
according to the first duration window, a first window with the smallest communication data volume with the first target terminal is obtained by using a sliding window algorithm in the range of the first limiting time;
according to the first window, a first time is obtained.
Specifically, the sliding window algorithm is a common method for solving the problem of continuous subarrays, and the basic principle is to maintain a window with a fixed size, perform some operations (such as summation, counting, etc.) on the numbers in the window, and then move the starting position or the ending position of the window until the whole array is traversed.
Specifically, sliding window algorithms typically include the following steps:
initializing the width of the window;
calculating values of elements in the window;
moving a starting position or an ending position of the window;
repeating the steps until the exit condition is met.
In the scheme, the first duration of the width of the window is calculated, the value of an element in the window is calculated to be the sum of the communication data quantity with the first target terminal in the time period, the exit condition is that the starting position or the ending position of the window exceeds the first limiting time, and the aim is to obtain the window with the minimum sum of the communication data quantity of the first target terminal.
The first time can be quickly determined to be the starting time of the first window through a sliding window algorithm, and in order to avoid the occurrence of extreme conditions, the used bandwidth proportion in the internet of things communication network in the first window can be limited to be lower than a third threshold value, such as 90%.
And S8, according to the first time and the first target terminal, sending a synchronization request of first data synchronization to the first target terminal.
Example 2
As shown in fig. 2, an ultrasonic water meter data synchronization internet of things system comprises a user platform, a service platform, a management platform, a sensor network platform and an object platform which are sequentially connected in a communication manner, wherein the object platform comprises at least one ultrasonic water meter terminal;
the sensor network platform is configured to:
acquiring first information;
judging whether data synchronization is needed or not according to the first information;
when data synchronization is needed, acquiring first data for performing first data synchronization, a first target terminal and first data synchronization parameters according to first information;
judging whether the first data synchronization is real-time synchronization or not according to the first data synchronization parameters;
when the first data synchronization is real-time synchronization;
according to the first target terminal, a synchronization request of first data synchronization is sent to the first target terminal;
when the first data synchronization is not real-time synchronization;
obtaining a first limiting time according to the first data synchronization parameter;
obtaining a first time for performing first data synchronization according to the first limiting time and the first data;
according to the first time and the first target terminal, a synchronization request for first data synchronization is sent to the first target terminal;
the ultrasonic water meter terminal is configured to:
responding to a first data synchronization request sent by the sensing network platform, and performing first data synchronization with the sensing network platform;
the user platform and the management platform are configured to:
sending first information to a sensing network platform;
the service platform is configured to:
and establishing connection between the user platform and the management platform.
Optionally, the first information includes at least one of fee information, device information, and valve control information.
Specifically, the Internet of things system comprises an object platform, a sensing network platform, a management platform and a user platform which are connected through a network. The object platform consists of a plurality of ultrasonic water meter terminals, and the user platform consists of a plurality of user terminals;
the ultrasonic water meter in the object platform is configured to perform the functions of the ultrasonic water meter terminal in any one of the methods described above;
the sensing network platform is configured to execute the functions of the sensing network platform in any one of the methods;
the management platform is configured to perform the functions of the management platform in any of the methods described above; optionally, the management platform comprises a device management sub-platform and a user center, wherein the device management sub-platform is configured to perform device running state monitoring management, metering data monitoring management, device parameter management and life cycle management; the data center comprises a data interaction module and a database;
the user terminal in the user platform is configured to perform the functions of the user terminal in any of the methods described above; alternatively, the user terminals may be classified into general user terminals, government user terminals, and supervisory user terminals according to user objects;
further, the object platform, the sensor network platform and the user platform are communicated by adopting the following method: the object platform and the sensing network platform and the management platform are communicated by adopting an NB-IOT protocol or an LORA protocol, the sensing network platform, the management platform and the user platform are communicated by adopting the Internet, the user platform and the object platform are communicated by adopting low-power consumption Bluetooth, and the user terminal can be bound with the ultrasonic water meter terminal in the user platform and the management platform by scanning a two-dimensional code or other methods on the ultrasonic water meter terminal.
Example 3
The present embodiment provides a computer apparatus including a memory and a processor, the memory storing a computer program, the processor executing the computer program to implement any of the methods described above.
Example 4
The present embodiment provides a computer-readable storage medium, on which a computer program is stored, and a processor executes the computer program to implement any one of the methods described above.
In some embodiments, the computer readable storage medium may be FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; but may be a variety of devices including one or any combination of the above memories. The computer may be a variety of computing devices including smart terminals and servers.
In the foregoing embodiments of the present disclosure, the descriptions of the various embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technical content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of units may be a logic function division, and there may be another division manner in actual implementation, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable non-volatile storage medium. Based on such understanding, the technical solution of the present disclosure may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a non-volatile storage medium, including several instructions to cause a computer apparatus (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the methods of the various embodiments of the present disclosure. And the aforementioned nonvolatile storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present disclosure and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present disclosure and are intended to be comprehended within the scope of the present disclosure.

Claims (10)

1. An ultrasonic water meter data synchronization method is characterized by comprising the following steps:
acquiring first information;
judging whether data synchronization is needed or not according to the first information;
when data synchronization is needed, according to the first information, obtaining first data for performing first data synchronization, a first target terminal and a first data synchronization parameter;
judging whether the first data synchronization is real-time synchronization or not according to the first data synchronization parameters;
when the first data synchronization is real-time synchronization:
according to the first target terminal, a synchronization request of first data synchronization is sent to the first target terminal;
when the first data sync is not a real-time sync:
obtaining a first limiting time according to the first data synchronization parameter;
according to the first limiting time and the first data, obtaining a first time for performing first data synchronization;
and sending a synchronization request for first data synchronization to the first target terminal according to the first time and the first target terminal.
2. The method of claim 1, wherein the step of obtaining the first information comprises:
at least one of first information sent by an ultrasonic water meter terminal, first information sent by a user terminal and first information sent by a management platform is obtained.
3. The ultrasonic water meter data synchronization method of claim 1, wherein the step of transmitting a synchronization request for first data synchronization to the first target terminal according to the first target terminal comprises:
judging the synchronization direction of the first data synchronization according to the first data;
when the synchronization direction of the first data synchronization is to synchronize the first data to the first target terminal, sending a synchronization request for synchronizing the first data and the first data to the first target terminal according to the first target terminal;
when the synchronization direction of the first data synchronization is that the first data is synchronized from the first target terminal, a first data request is sent to the first target terminal according to the first target terminal;
and receiving first data sent by the first target terminal in response to the first data request, and storing the first data into a local database.
4. The method of claim 1, wherein the step of obtaining a first time for first data synchronization based on the first time limit and the first data comprises:
determining the data size of the first data according to the first data;
when the data size of the first data exceeds a first threshold value;
and selecting the time with the minimum communication pressure with the first target terminal as the first time within the range of the first limiting time.
5. The method of claim 4, wherein the step of selecting, as the first time, a time at which the communication pressure with the first target terminal is the smallest within the range of the first limit time, comprises:
according to the first data, calculating a first duration required by the first data synchronization;
obtaining a first duration window according to the first duration;
according to the first duration window, a first window with the smallest communication data volume with the first target terminal is obtained by using a sliding window algorithm in the range of the first limiting time;
and obtaining the first time according to the first window.
6. The method of claim 1, wherein the step of obtaining a first time limit according to the first data synchronization parameter comprises:
obtaining a first deadline according to the first data synchronization time parameter;
according to the first data, calculating a first duration required by the first data synchronization;
and obtaining a first limiting time according to the first cut-off time and the first duration.
7. The method for synchronizing data of an ultrasonic water meter according to claim 1, wherein said first data synchronization is performed with said first target terminal by broadcasting when the number of ultrasonic water meter terminals is not less than 2.
8. The system is characterized by comprising a user platform, a service platform, a management platform, a sensing network platform and an object platform which are sequentially connected in a communication mode, wherein the object platform comprises at least one ultrasonic water meter terminal;
the sensor network platform is configured to:
acquiring first information;
judging whether data synchronization is needed or not according to the first information;
when data synchronization is needed, according to the first information, obtaining first data for performing first data synchronization, a first target terminal and a first data synchronization parameter;
judging whether the first data synchronization is real-time synchronization or not according to the first data synchronization parameters;
when the first data synchronization is real-time synchronization;
according to the first target terminal, a synchronization request of first data synchronization is sent to the first target terminal;
when the first data synchronization is not real-time synchronization;
obtaining a first limiting time according to the first data synchronization parameter;
according to the first limiting time and the first data, obtaining a first time for performing first data synchronization;
according to the first time and the first target terminal, a synchronization request for first data synchronization is sent to the first target terminal;
the ultrasonic water meter terminal is configured to:
responding to a first data synchronization request sent by a sensing network platform, and performing first data synchronization with the sensing network platform;
the user platform and the management platform are configured to:
sending first information to a sensing network platform;
the service platform is configured to:
and establishing connection between the user platform and the management platform.
9. The ultrasonic meter data synchronization internet of things system of claim 8, wherein the first information includes at least one of cost information, equipment information, and valve control information.
10. A computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor executing the computer program to implement the method of any of claims 1-7.
CN202410180946.4A 2024-02-18 2024-02-18 Ultrasonic water meter data synchronization method, internet of things system and device Active CN117729221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410180946.4A CN117729221B (en) 2024-02-18 2024-02-18 Ultrasonic water meter data synchronization method, internet of things system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410180946.4A CN117729221B (en) 2024-02-18 2024-02-18 Ultrasonic water meter data synchronization method, internet of things system and device

Publications (2)

Publication Number Publication Date
CN117729221A true CN117729221A (en) 2024-03-19
CN117729221B CN117729221B (en) 2024-04-19

Family

ID=90211118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410180946.4A Active CN117729221B (en) 2024-02-18 2024-02-18 Ultrasonic water meter data synchronization method, internet of things system and device

Country Status (1)

Country Link
CN (1) CN117729221B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729480A (en) * 2014-01-29 2014-04-16 重庆邮电大学 Method for rapidly finding and scheduling multiple ready tasks of multi-kernel real-time operating system
CN104697592A (en) * 2015-03-18 2015-06-10 安徽水联水务科技有限公司 Method for synchronously measuring ultrasonic wave flow
US20160315757A1 (en) * 2015-04-21 2016-10-27 U.S.A. As Represented By The Administrator Of The National Aeronautics And Space Administration Self-Stabilizing Distributed Symmetric-Fault Tolerant Synchronization Protocol
CN106657251A (en) * 2016-10-25 2017-05-10 广东欧珀移动通信有限公司 Data synchronizing method and apparatus
CN110913426A (en) * 2019-12-27 2020-03-24 树蛙信息科技(南京)有限公司 Passenger flow big data signaling acquisition point information automatic detection synchronization method
US20200220746A1 (en) * 2017-08-28 2020-07-09 Luminati Networks Ltd. System and Method for Improving Content Fetching by Selecting Tunnel Devices
US20210356279A1 (en) * 2018-07-08 2021-11-18 Nng Software Developing And Commercial Llc. A Method and Apparatus for Optimal Navigation to Multiple Locations
CN114996737A (en) * 2022-06-14 2022-09-02 阿里巴巴(中国)有限公司 Data processing method, device and storage medium
CN115001772A (en) * 2022-05-26 2022-09-02 深圳市恺恩科技有限公司 Power transmission line Internet of things gateway control method, control system and computer readable storage medium
CN116565966A (en) * 2023-06-29 2023-08-08 国能青海黄河玛尔挡水电开发有限公司 Intelligent hydraulic power generation double microcomputer automatic synchronous control system
CN117373170A (en) * 2023-12-08 2024-01-09 成都秦川物联网科技股份有限公司 Ultrasonic metering instrument residual gas charge management method and system based on Internet of things

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729480A (en) * 2014-01-29 2014-04-16 重庆邮电大学 Method for rapidly finding and scheduling multiple ready tasks of multi-kernel real-time operating system
CN104697592A (en) * 2015-03-18 2015-06-10 安徽水联水务科技有限公司 Method for synchronously measuring ultrasonic wave flow
US20160315757A1 (en) * 2015-04-21 2016-10-27 U.S.A. As Represented By The Administrator Of The National Aeronautics And Space Administration Self-Stabilizing Distributed Symmetric-Fault Tolerant Synchronization Protocol
CN106657251A (en) * 2016-10-25 2017-05-10 广东欧珀移动通信有限公司 Data synchronizing method and apparatus
US20200220746A1 (en) * 2017-08-28 2020-07-09 Luminati Networks Ltd. System and Method for Improving Content Fetching by Selecting Tunnel Devices
US20210356279A1 (en) * 2018-07-08 2021-11-18 Nng Software Developing And Commercial Llc. A Method and Apparatus for Optimal Navigation to Multiple Locations
CN110913426A (en) * 2019-12-27 2020-03-24 树蛙信息科技(南京)有限公司 Passenger flow big data signaling acquisition point information automatic detection synchronization method
CN115001772A (en) * 2022-05-26 2022-09-02 深圳市恺恩科技有限公司 Power transmission line Internet of things gateway control method, control system and computer readable storage medium
CN114996737A (en) * 2022-06-14 2022-09-02 阿里巴巴(中国)有限公司 Data processing method, device and storage medium
CN116565966A (en) * 2023-06-29 2023-08-08 国能青海黄河玛尔挡水电开发有限公司 Intelligent hydraulic power generation double microcomputer automatic synchronous control system
CN117373170A (en) * 2023-12-08 2024-01-09 成都秦川物联网科技股份有限公司 Ultrasonic metering instrument residual gas charge management method and system based on Internet of things

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
R.C. HANSDAN: "《Improving the Energy Efficiency of a Clock Synchronization Protocal for WSNs Using a TDMA-Based MAC Protocol》", 《IEEE》, 31 December 2015 (2015-12-31) *
万莹 等: "《连续数据保护中的滑动窗口技术的优化》", 《计算机与现代化》, 31 December 2012 (2012-12-31) *
贺兴 等: "sss", 《供电用》, 31 October 2019 (2019-10-31) *

Also Published As

Publication number Publication date
CN117729221B (en) 2024-04-19

Similar Documents

Publication Publication Date Title
TWI770749B (en) Inspection method and device
CN108989463B (en) Data processing method and device
CN110445824B (en) NB-IoT data reporting method, device, system and computer readable storage medium
CN117729221B (en) Ultrasonic water meter data synchronization method, internet of things system and device
CN110768869B (en) Household charging method and device for multi-split system and computer equipment
CN117373170A (en) Ultrasonic metering instrument residual gas charge management method and system based on Internet of things
CN115600767A (en) Material monitoring method and device, computer equipment and readable storage medium
CN103546514A (en) Method and system for processing delay-transmitted log data
CN112488745A (en) Intelligent charge control management method, device, equipment and storage medium
CN114449373B (en) Intelligent water service system based on wireless transmission of Internet of things
CN114782899A (en) Image processing method and device and electronic equipment
CN109858638B (en) Method and device for constructing equipment energy efficiency curve, readable medium and electronic equipment
CN111192123A (en) Account checking system based on hybrid cloud computing platform and account checking method thereof
CN110363980A (en) LoRa acquisition device and its acquisition method based on TDMA and Contiki
CN117170873A (en) Resource pool management method and system based on artificial intelligence
CN100495980C (en) A method for collecting performance statistics data
CN115869448A (en) Automatic supply system of disinfection robot and control method thereof
CN109373510A (en) Air cleaning facility control method, device, computer equipment and readable storage medium storing program for executing
CN113079063A (en) Offline judgment method, system and device for charging device and computer storage medium
CN110969481B (en) Product data prediction method, device, computer equipment and storage medium
CN112766791A (en) Energy/resource consumption assessment method, readable storage medium and intelligent food machine
CN103973539B (en) The method for running automated system
CN117692087A (en) Intelligent gas-based detector clock synchronization method, internet of things system and device
CN112085599A (en) Method, device, storage medium and computing device for processing block chain transaction input
CN113566391A (en) Air conditioner operation control method and device and air conditioner system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant