Data synchronization method, system and terminal of Internet of Things platform and gas meter

By establishing a communication channel between the Internet of Things platform and the gas meter, receiving, decrypting and analyzing the gas meter data, and performing data synchronization settlement, the problem of inconsistency between the Internet of Things platform and the gas meter data is solved, real-time synchronization and abnormal reminders of data are achieved.

CN119906718APending Publication Date: 2025-04-29SHENZHEN SAIYITE INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411971584.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

Communication between the IoT platform and the gas meter is intermittent, resulting in inconsistent data between the IoT platform and the gas meter end, which may lead to data errors.

Method used

By establishing a communication channel with the gas meter, receiving and decrypting the data information of the gas meter, analyzing data abnormalities and generating alarm prompt information, receiving settlement instructions from the Internet of Things platform for data synchronization settlement, and generating and displaying the gas meter synchronization information.

Benefits of technology

Real-time synchronization of data between the Internet of Things platform and the gas meter end is achieved, errors caused by data inconsistency are avoided, and users are promptly reminded of abnormal situations such as gas leakage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119906718A_ABST
    Figure CN119906718A_ABST
Patent Text Reader

Abstract

The invention discloses a data synchronization method, system and terminal for an Internet of Things platform and a gas meter, and the method comprises the steps: building a communication channel with the gas meter, and receiving the encrypted data information of the current gas meter sent by the gas meter through the communication channel; the data information of the current gas meter is decrypted to obtain gas use data, the gas use data is analyzed, and if the analysis result is abnormal, alarm prompt information is generated; and receiving a settlement instruction and gas meter related data sent by the Internet of Things platform, performing synchronous settlement on the gas use data and the gas meter related data according to the settlement instruction to generate gas meter synchronization information, and sending alarm prompt information and the gas meter synchronization information to a display screen of the gas meter for display. According to the invention, the real-time synchronization of the data of the Internet of Things platform and the gas meter end is realized by establishing the gas meter communication channel, receiving and decrypting the data, analyzing the abnormity, generating the alarm, processing the settlement instruction and synchronously displaying the information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of gas meter data synchronization, and in particular to a method, system, terminal and computer-readable storage medium for synchronizing data between an Internet of Things platform and a gas meter. Background Art

[0002] At present, when the IoT platform and the IoT gas meter calculate the gas fee, the IoT platform activates billing, recharges, adjusts the unit price, and transmits the data from the IoT gas meter back to the platform, which triggers the IoT platform's cumulative gas consumption settlement operation. Since the gas meter is running in real time, the cumulative gas consumption continues to accumulate, and the communication between the IoT platform and the IoT gas meter is intermittent, which will lead to inconsistencies between the IoT platform and the gas meter data, and will inevitably lead to data errors.

[0003] Therefore, the prior art still needs to be improved and developed. Summary of the invention

[0004] The main purpose of the present invention is to provide a data synchronization method, system and computer-readable storage medium between an Internet of Things platform and a gas meter, aiming to solve the problem in the prior art that the communication between the Internet of Things platform and the Internet of Things gas meter is intermittent, which leads to inconsistent data between the Internet of Things platform and the gas meter.

[0005] To achieve the above object, the present invention provides a data synchronization method between an Internet of Things platform and a gas meter, and the data synchronization method between the Internet of Things platform and the gas meter comprises the following steps:

[0006] Establishing a communication channel with the gas meter, and receiving encrypted data information of the current gas meter sent by the gas meter through the communication channel;

[0007] Decrypting the data information of the current gas meter to obtain gas usage data, analyzing the gas usage data, and generating an alarm prompt message if the analysis result is abnormal;

[0008] Receive the settlement instruction and gas meter related data sent by the Internet of Things platform, synchronously settle the gas usage data and the gas meter related data according to the settlement instruction, generate gas meter synchronization information, and send the alarm prompt information and the gas meter synchronization information to the display screen of the gas meter for display.

[0009] Optionally, the establishing a communication channel with the gas meter and receiving encrypted data information of the current gas meter sent by the gas meter through the communication channel specifically includes:

[0010] Establishing a communication channel with a communication module on the gas meter based on a wireless communication protocol, wherein the communication module is pre-installed on the gas meter;

[0011] The gas meter receives encrypted data information of the current gas meter sent through the communication channel at every preset reporting time.

[0012] Optionally, the method for synchronizing data between the Internet of Things platform and the gas meter, wherein the decrypting the data information of the current gas meter to obtain the gas usage data and analyzing the gas usage data specifically includes:

[0013] Receiving a decryption instruction set sent by the Internet of Things, and decrypting the data information of the current gas meter according to the decryption instruction set to obtain gas usage data;

[0014] Obtaining gas usage data from the gas usage data, and analyzing the gas usage data;

[0015] If the gas usage for a period greater than the preset time is less than or equal to the preset minimum threshold, a slight gas leak analysis result is generated;

[0016] If the gas usage is greater than or equal to the preset maximum threshold for a period of time greater than the preset time, a large amount of gas leakage analysis results are generated.

[0017] Optionally, the method for synchronizing data between the Internet of Things platform and the gas meter, wherein if the analysis result is abnormal, generating an alarm prompt message, specifically includes:

[0018] If the analysis result is slight leakage or large leakage, then obtaining prompt information from a preset information prompt template library;

[0019] Corresponding alarm prompt information is generated according to the prompt information, and the alarm prompt information is used to remind the user to close the gas valve and open the window for ventilation.

[0020] Optionally, the data synchronization method between the Internet of Things platform and the gas meter, wherein the gas meter related data includes the last cumulative usage, the last cumulative gas usage amount and the cumulative total gas purchase amount; the gas usage data includes the current cumulative usage and the current gas usage amount;

[0021] The receiving of the settlement instruction and the gas meter related data sent by the Internet of Things platform, synchronously settling the gas usage data and the gas meter related data according to the settlement instruction, generating gas meter synchronization information, and sending the alarm prompt information and the gas meter synchronization information to the display screen of the gas meter for display, specifically includes:

[0022] Receive the settlement instructions and the last cumulative usage, the last cumulative gas usage amount and the cumulative total gas purchase amount sent by the IoT platform;

[0023] Calculating the difference between the current cumulative usage and the previous cumulative usage according to the settlement instruction to generate the current gas usage;

[0024] Calculate the last cumulative gas usage amount, the cumulative total gas purchase amount and the current gas usage amount according to the settlement instruction to obtain the current remaining amount;

[0025] The gas meter synchronization information is generated according to the gas consumption this time and the remaining amount this time, and the alarm prompt information and the gas meter synchronization information are sent to the display screen of the gas meter for display.

[0026] Optionally, the data synchronization method between the Internet of Things platform and the gas meter, wherein the last cumulative gas usage amount, the cumulative total gas purchase amount and the current gas usage amount are calculated according to the settlement instruction to obtain the current remaining amount, specifically including:

[0027] Calculate the difference between the last cumulative gas usage amount and the current cumulative usage amount according to the settlement instruction to generate the total cumulative gas usage amount;

[0028] The remaining amount is calculated based on the cumulative total amount of gas consumption and the cumulative total amount of gas purchases to obtain the remaining amount.

[0029] Optionally, the method for synchronizing data between the Internet of Things platform and the gas meter, wherein the gas meter synchronization information is generated according to the current gas consumption and the current remaining amount, and the alarm prompt information and the gas meter synchronization information are sent to the display screen of the gas meter for display, and then further includes:

[0030] According to the alarm prompt information, the preset colors are matched to generate a red major reminder, a yellow minor reminder and a green safety reminder corresponding to the alarm prompt information;

[0031] According to the red major reminder, yellow minor reminder and green safety reminder, the LED light is controlled to flash and alarm so that the user can read the information in time.

[0032] In addition, to achieve the above-mentioned purpose, the present invention further provides a gas GIS-based pipeline network inspection system, wherein the gas GIS-based pipeline network inspection system:

[0033] A gas data information acquisition module, used to establish a communication channel with the gas meter and receive encrypted data information of the current gas meter sent by the gas meter through the communication channel;

[0034] An alarm prompt information generating module is used to decrypt the data information of the current gas meter to obtain gas usage data, analyze the gas usage data, and generate an alarm prompt information if the analysis result is abnormal;

[0035] The gas meter data synchronization module is used to receive the settlement instructions and gas meter-related data sent by the Internet of Things platform, synchronize and settle the gas usage data and the gas meter-related data according to the settlement instructions, generate gas meter synchronization information, and send the alarm prompt information and the gas meter synchronization information to the display screen of the gas meter for display.

[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a gas GIS-based pipeline inspection program, and when the gas GIS-based pipeline inspection program is executed by the processor, the steps of the data synchronization method between the Internet of Things platform and the gas meter as described above are implemented.

[0037] The present invention establishes a communication channel with the gas meter, and receives the encrypted data information of the current gas meter sent by the gas meter through the communication channel; decrypts the data information of the current gas meter to obtain gas usage data, analyzes the gas usage data, and generates alarm prompt information if the analysis result is abnormal; receives the settlement instruction and gas meter-related data sent by the Internet of Things platform, performs synchronous settlement of the gas usage data and the gas meter-related data according to the settlement instruction, generates gas meter synchronization information, and sends the alarm prompt information and the gas meter synchronization information to the display screen of the gas meter for display. The present invention establishes a gas meter communication channel, receives and decrypts data, analyzes abnormalities to generate alarms, processes settlement instructions and synchronizes information display, and realizes real-time synchronization of data between the Internet of Things platform and the gas meter end. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 It is a flow chart of a preferred embodiment of the data synchronization method between the Internet of Things platform and the gas meter of the present invention;

[0039] Figure 2 It is a structural diagram of a preferred embodiment of the data synchronization system between the Internet of Things platform and the gas meter of the present invention;

[0040] Figure 3 It is a structural diagram of a preferred embodiment of the terminal of the present invention. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0042] In the prior art, the communication between the IoT platform and the IoT gas meter is intermittent, which will lead to inconsistent data between the IoT platform and the gas meter, and will inevitably lead to data errors. Therefore, a data synchronization method between the IoT platform and the gas meter is needed, which can establish a gas meter communication channel, receive and decrypt data, analyze anomalies to generate alarms, process settlement instructions and synchronize information display, so as to achieve real-time synchronization of data between the IoT platform and the gas meter.

[0043] The data synchronization method between the Internet of Things platform and the gas meter described in the preferred embodiment of the present invention is as follows: Figure 1 As shown, the data synchronization method between the Internet of Things platform and the gas meter includes the following steps:

[0044] Step S10: establishing a communication channel with the gas meter, and receiving encrypted data information of the current gas meter sent by the gas meter through the communication channel.

[0045] Specifically, a communication channel is established with the communication module on the gas meter based on the wireless communication protocol (a wireless remote communication module is pre-installed on the gas meter, such as an NB-Iot remote transmission module, and the gas meter forms an NB-Iot smart gas meter, and then the detection system establishes a communication channel with the communication module, so that the detection system can remotely receive the gas usage data of the gas meter through the communication channel). At present, the communication fee of the NB-Iot meter is already included in the factory, and no additional payment is required. Therefore, according to a user sending 3 messages per month (1 monthly fee, 1 balance information, 1 other message), 1 short message 0. Calculated at 1 yuan, a gas company with 1 million users can save 0.1*3*12*100=3.6 million yuan in SMS fees each year, wherein the communication module is pre-installed on the gas meter; the encrypted data information of the current gas meter is received and sent by the gas meter through the communication channel at preset reporting time. For example: in the process of the gas meter recording the gas usage data, a magnet device is provided on the mechanical wheel of the gas meter, and a corresponding Hall switch is installed under the mechanical wheel. When the mechanical wheel of the gas meter rotates one circle, the Hall switch will record once, so that the reading of the mechanical wheel of the gas meter can be converted into a digital signal.

[0046] Step S20: decrypt the data information of the current gas meter to obtain gas usage data, analyze the gas usage data, and generate an alarm prompt message if the analysis result is abnormal.

[0047] Specifically, a decryption instruction set sent by the Internet of Things is received, and the data information of the current gas meter is decrypted according to the decryption instruction set to obtain gas usage data; gas usage data in the gas usage data is obtained, and the gas usage data is analyzed; if there is a gas usage that is greater than a preset time and is less than or equal to a preset minimum threshold, an analysis result of a slight gas leak is generated (because when the gas is slightly leaking, the gas smell emitted is very faint, which is difficult for users to detect, and it is difficult for gas companies to check door to door, so in a preferred embodiment of the present application, the detection system will perform a corresponding slight gas leakage analysis on the gas usage data. By performing a slight gas leakage analysis on each gas usage data in the gas usage data, it can be concluded whether there is a slight gas leakage in the gas pipeline corresponding to the gas meter or in the user's home. If the gas is slightly leaked, the gas leakage analysis result can be obtained. If the analysis result of the gas data is a slight gas leak, an alarm will be generated and the next step of processing will be carried out according to the alarm); if the gas usage for more than the preset time is greater than or equal to the preset maximum threshold, an analysis result of a large gas leak will be generated (such as no gas use for a long time, no change in the reading for more than 15 days, a small flow rate for a long time, which is less than or equal to the current minimum range of the gas meter, and a large flow rate for a long time, which is greater than or equal to the current maximum range of the gas meter); if the analysis result is a slight gas leak and a large gas leak, prompt information will be obtained from the preset information prompt template library (different levels are represented by different lights, such as suspected gas leak: red; other warnings: yellow; general messages: green); corresponding alarm prompt information will be generated according to the prompt information, and the alarm prompt information is used to remind the user to close the gas valve and open the window for ventilation.

[0048] For example, the gas usage data contains 24 sets of gas usage data, each set of gas usage data represents the actual gas usage per hour. If the technician sets the preset number to 12 and the preset threshold to 0.025m 3 That is to say, when the specific values ​​of gas usage data of more than 12 groups in 24 groups of gas data are greater than 0 and less than or equal to 0.025m 3(That is to say, there are more than 12 hours in a day when gas is slightly used), then it can be determined that there is a slight gas leak in the gas pipeline corresponding to the gas meter, because ordinary users only use gas for a period of time every day, such as using a gas stove to cook or using a gas water heater to take a bath. During this period of time when gas is used, the actual gas usage will definitely be greater than the preset threshold, and in the remaining time when no gas is used, the actual gas usage should be 0. There will not be a situation where gas is used continuously for 24 hours and the actual gas usage is still very small. Therefore, it can be determined that there is a slight gas leak in the gas pipeline corresponding to the gas meter; it should be noted that the preset number is not set to 24 because it is necessary to exclude the normal use of gas by users. The specific value can also be set by technical personnel in the background of the detection system, and is not limited here.

[0049] Step S30, receiving the settlement instruction and gas meter related data sent by the Internet of Things platform, synchronously settling the gas usage data and the gas meter related data according to the settlement instruction, generating gas meter synchronization information, and sending the alarm prompt information and the gas meter synchronization information to the display screen of the gas meter for display.

[0050] Specifically, the gas meter related data includes the last cumulative usage, the last cumulative gas usage amount and the cumulative total gas purchase amount; the gas usage data includes the current cumulative usage and the current gas usage amount, and receives the settlement instruction and the last cumulative usage, the last cumulative gas usage amount and the cumulative total gas purchase amount sent by the Internet of Things platform; according to the settlement instruction, the difference between the current cumulative usage and the last cumulative usage is calculated to generate the current gas usage; according to the settlement instruction, the last cumulative gas usage amount, the cumulative total gas purchase amount and the current gas usage amount are calculated to obtain the current remaining amount (cumulative total gas usage amount = last cumulative gas usage amount + current gas usage amount, according to the cumulative total gas purchase amount and the cumulative total gas usage amount, calculate the current remaining amount: this remaining amount = cumulative total gas purchase amount - cumulative total gas usage amount Amount); Generate gas meter synchronization information according to the gas consumption this time and the remaining amount this time, and send the alarm prompt information and the gas meter synchronization information to the display screen of the gas meter for display (establish a network connection through NB-Iot, and send a message in Json format through the lwm2m protocol, such as {"Message":"The next security check date is December 31, 2024. Please make sure someone is at home by then."}, {"Message":"This meter reading is xxx, the last meter reading time is xxxxx, the last reading is xxx, the gas consumption this time is xxx, the amount is xxx yuan, and the current balance is xxx yuan."}, {"Message":"Dear user, there is a suspected gas leak in your gas meter. Please cut off the gas source immediately and open the doors and windows to keep ventilation."}).

[0051] Furthermore, according to the settlement instruction, the difference between the last cumulative gas usage amount and the current cumulative usage amount is calculated to generate the cumulative total gas usage amount; the remaining amount is calculated based on the cumulative total gas usage amount and the cumulative total gas purchase amount, and the preset color is matched according to the alarm prompt information to generate a red major reminder, a yellow minor reminder and a green safety reminder corresponding to the alarm prompt information; according to the red major reminder, the yellow minor reminder and the green safety reminder, the LED light is controlled to flash an alarm so that the user can read the information in time. Furthermore, after the gas meter receives the message from the system, it is displayed on the display screen, and the yellow LED is flashing according to the graded reminder to indicate that the gas meter has unread message reminders. To save power, the LCD screen of the gas meter is usually in the off state, and the screen display is lit by a short press of the read button of the gas meter. It will automatically go out 15 seconds after the user does not operate the read button. After the user presses the button to light up the screen to read all unread messages, the LED indicator light goes out.

[0052] Furthermore, if Figure 2 As shown, based on the data synchronization method between the Internet of Things platform and the gas meter, the present invention also provides a gas GIS-based pipeline inspection system, wherein the gas GIS-based pipeline inspection system includes:

[0053] The gas data information acquisition module 51 is used to establish a communication channel with the gas meter and receive the encrypted data information of the current gas meter sent by the gas meter through the communication channel;

[0054] The alarm prompt information generating module 52 is used to decrypt the data information of the current gas meter to obtain the gas usage data, analyze the gas usage data, and generate an alarm prompt information if the analysis result is abnormal;

[0055] The gas meter data synchronization module 53 is used to receive the settlement instructions and gas meter related data sent by the Internet of Things platform, synchronize and settle the gas usage data and the gas meter related data according to the settlement instructions, generate gas meter synchronization information, and send the alarm prompt information and the gas meter synchronization information to the display screen of the gas meter for display.

[0056] Furthermore, if Figure 3 As shown, based on the data synchronization method and system between the above-mentioned Internet of Things platform and the gas meter, the present invention also provides a terminal accordingly, and the terminal includes a processor 10, a memory 20 and a display 30. Figure 3 Only some components of the terminal are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0057] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal. In other embodiments, the memory 20 may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Furthermore, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed on the terminal, such as the program code of the installation terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, a pipeline inspection program 40 based on gas GIS is stored on the memory 20, and the pipeline inspection program 40 based on gas GIS can be executed by the processor 10, thereby realizing the data synchronization method between the Internet of Things platform and the gas meter in this application.

[0058] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing a data synchronization method between the Internet of Things platform and a gas meter.

[0059] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the terminal and to display a visual user interface. The components of the terminal communicate with each other via a system bus.

[0060] In one embodiment, when the processor 10 executes the gas GIS-based pipeline network inspection program 40 in the memory 20, the following steps are implemented:

[0061] Establishing a communication channel with the gas meter, and receiving encrypted data information of the current gas meter sent by the gas meter through the communication channel;

[0062] Decrypting the data information of the current gas meter to obtain gas usage data, analyzing the gas usage data, and generating an alarm prompt message if the analysis result is abnormal;

[0063] Receive the settlement instruction and gas meter related data sent by the Internet of Things platform, synchronously settle the gas usage data and the gas meter related data according to the settlement instruction, generate gas meter synchronization information, and send the alarm prompt information and the gas meter synchronization information to the display screen of the gas meter for display.

[0064] The step of establishing a communication channel with the gas meter and receiving encrypted data information of the current gas meter sent by the gas meter through the communication channel specifically includes:

[0065] Establishing a communication channel with a communication module on the gas meter based on a wireless communication protocol, wherein the communication module is pre-installed on the gas meter;

[0066] The gas meter receives encrypted data information of the current gas meter sent through the communication channel at every preset reporting time.

[0067] The decrypting of the data information of the current gas meter to obtain the gas usage data and analyzing the gas usage data specifically includes:

[0068] Receiving a decryption instruction set sent by the Internet of Things, and decrypting the data information of the current gas meter according to the decryption instruction set to obtain gas usage data;

[0069] Obtaining gas usage data from the gas usage data, and analyzing the gas usage data;

[0070] If the gas usage for a period greater than the preset time is less than or equal to the preset minimum threshold, a slight gas leak analysis result is generated;

[0071] If the gas usage is greater than or equal to the preset maximum threshold for a period of time greater than the preset time, a large amount of gas leakage analysis results are generated.

[0072] If the analysis result is abnormal, an alarm message is generated, specifically including:

[0073] If the analysis result is slight leakage or large leakage, then obtaining prompt information from a preset information prompt template library;

[0074] Corresponding alarm prompt information is generated according to the prompt information, and the alarm prompt information is used to remind the user to close the gas valve and open the window for ventilation.

[0075] The gas meter related data includes the last cumulative usage, the last cumulative gas usage amount and the cumulative total gas purchase amount; the gas usage data includes the current cumulative usage and the current gas usage amount;

[0076] The receiving of the settlement instruction and the gas meter related data sent by the Internet of Things platform, synchronously settling the gas usage data and the gas meter related data according to the settlement instruction, generating gas meter synchronization information, and sending the alarm prompt information and the gas meter synchronization information to the display screen of the gas meter for display, specifically includes:

[0077] Receive the settlement instructions and the last cumulative usage, the last cumulative gas usage amount and the cumulative total gas purchase amount sent by the IoT platform;

[0078] Calculating the difference between the current cumulative usage and the previous cumulative usage according to the settlement instruction to generate the current gas usage;

[0079] Calculate the last cumulative gas usage amount, the cumulative total gas purchase amount and the current gas usage amount according to the settlement instruction to obtain the current remaining amount;

[0080] The gas meter synchronization information is generated according to the gas consumption this time and the remaining amount this time, and the alarm prompt information and the gas meter synchronization information are sent to the display screen of the gas meter for display.

[0081] The calculation of the last cumulative gas usage amount, the cumulative total gas purchase amount and the current gas usage amount according to the settlement instruction to obtain the current remaining amount specifically includes:

[0082] Calculate the difference between the last cumulative gas usage amount and the current cumulative usage amount according to the settlement instruction to generate the cumulative total gas usage amount;

[0083] The remaining amount is calculated based on the cumulative total amount of gas consumption and the cumulative total amount of gas purchases to obtain the remaining amount.

[0084] The method further includes: generating gas meter synchronization information according to the current gas consumption and the current remaining amount, and sending the alarm prompt information and the gas meter synchronization information to the display screen of the gas meter for display; and then:

[0085] According to the alarm prompt information, the preset colors are matched to generate a red major reminder, a yellow minor reminder and a green safety reminder corresponding to the alarm prompt information;

[0086] According to the red major reminder, yellow minor reminder and green safety reminder, the LED light is controlled to flash and alarm so that the user can read the information in time.

[0087] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a gas GIS-based pipeline inspection program, and when the gas GIS-based pipeline inspection program is executed by a processor, the steps of the data synchronization method between the Internet of Things platform and the gas meter as described above are implemented.

[0088] In summary, the present invention provides a data synchronization method, system and computer-readable storage medium between an Internet of Things platform and a gas meter, the method comprising: establishing a communication channel with the gas meter, and receiving encrypted data information of the current gas meter sent by the gas meter through the communication channel; decrypting the data information of the current gas meter to obtain gas usage data, analyzing the gas usage data, and generating alarm prompt information if the analysis result is abnormal; receiving the settlement instruction and gas meter-related data sent by the Internet of Things platform, synchronously settling the gas usage data and the gas meter-related data according to the settlement instruction, generating gas meter synchronization information, and sending the alarm prompt information and the gas meter synchronization information to the display screen of the gas meter for display. The present invention establishes a gas meter communication channel, receives and decrypts data, analyzes abnormalities to generate alarms, processes settlement instructions and synchronizes information display, and realizes real-time data synchronization.

[0089] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or terminal system including the element.

[0090] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.

[0091] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.

Claims

1. A data synchronization method between an Internet of Things platform and a gas meter, characterized in that: The data synchronization method between the Internet of Things platform and the gas meter includes: Establishing a communication channel with the gas meter, and receiving encrypted data information of the current gas meter sent by the gas meter through the communication channel; Decrypting the data information of the current gas meter to obtain gas usage data, analyzing the gas usage data, and generating an alarm prompt message if the analysis result is abnormal; Receive the settlement instruction and gas meter related data sent by the Internet of Things platform, synchronously settle the gas usage data and the gas meter related data according to the settlement instruction, generate gas meter synchronization information, and send the alarm prompt information and the gas meter synchronization information to the display screen of the gas meter for display.

2. The data synchronization method between the Internet of Things platform and the gas meter according to claim 1, characterized in that: The step of establishing a communication channel with the gas meter and receiving encrypted data information of the current gas meter sent by the gas meter through the communication channel specifically includes: Establishing a communication channel with a communication module on the gas meter based on a wireless communication protocol, wherein the communication module is pre-installed on the gas meter; The gas meter receives encrypted data information of the current gas meter sent through the communication channel at every preset reporting time.

3. The data synchronization method between the Internet of Things platform and the gas meter according to claim 1, characterized in that: The decrypting the data information of the current gas meter to obtain the gas usage data and analyzing the gas usage data specifically includes: Receiving a decryption instruction set sent by the Internet of Things, and decrypting the data information of the current gas meter according to the decryption instruction set to obtain gas usage data; Obtaining gas usage data from the gas usage data, and analyzing the gas usage data; If the gas usage for a period greater than the preset time is less than or equal to the preset minimum threshold, a slight gas leak analysis result is generated; If the gas usage is greater than or equal to the preset maximum threshold for a period of time greater than the preset time, a large amount of gas leakage analysis results are generated.

4. The data synchronization method between the Internet of Things platform and the gas meter according to claim 3 is characterized in that: If the analysis result is abnormal, an alarm prompt message is generated, specifically including: If the analysis result is slight leakage or large leakage, then obtaining prompt information from a preset information prompt template library; Corresponding alarm prompt information is generated according to the prompt information, and the alarm prompt information is used to remind the user to close the gas valve and open the window for ventilation.

5. The data synchronization method between the Internet of Things platform and the gas meter according to claim 3 is characterized in that: The gas meter related data includes the last cumulative usage, the last cumulative gas usage amount and the cumulative total gas purchase amount; the gas usage data includes the current cumulative usage and the current gas usage amount; The receiving of the settlement instruction and the gas meter related data sent by the Internet of Things platform, synchronously settling the gas usage data and the gas meter related data according to the settlement instruction, generating gas meter synchronization information, and sending the alarm prompt information and the gas meter synchronization information to the display screen of the gas meter for display, specifically includes: Receive the settlement instructions and the last cumulative usage, the last cumulative gas usage amount and the cumulative total gas purchase amount sent by the IoT platform; Calculating the difference between the current cumulative usage and the previous cumulative usage according to the settlement instruction to generate the current gas usage; Calculate the last cumulative gas usage amount, the cumulative total gas purchase amount and the current gas usage amount according to the settlement instruction to obtain the current remaining amount; The gas meter synchronization information is generated according to the gas consumption this time and the remaining amount this time, and the alarm prompt information and the gas meter synchronization information are sent to the display screen of the gas meter for display.

6. The data synchronization method between the Internet of Things platform and the gas meter according to claim 5, characterized in that: The last cumulative gas usage amount, the cumulative total gas purchase amount and the current gas usage amount are calculated according to the settlement instruction to obtain the current remaining amount, specifically including: Calculate the difference between the last cumulative gas usage amount and the current cumulative usage amount according to the settlement instruction to generate the total cumulative gas usage amount; The remaining amount is calculated based on the cumulative total amount of gas consumption and the cumulative total amount of gas purchases to obtain the remaining amount.

7. The data synchronization method between the Internet of Things platform and the gas meter according to claim 5, characterized in that: The gas meter synchronization information is generated according to the gas consumption and the remaining amount, and the alarm prompt information and the gas meter synchronization information are sent to the display screen of the gas meter for display, and then it also includes: According to the alarm prompt information, the preset colors are matched to generate a red major reminder, a yellow minor reminder and a green safety reminder corresponding to the alarm prompt information; According to the red major reminder, yellow minor reminder and green safety reminder, the LED light is controlled to flash and alarm so that the user can read the information in time.

8. A gas GIS-based pipeline inspection system, characterized in that: The gas GIS-based pipeline network inspection system includes: A gas data information acquisition module, used to establish a communication channel with the gas meter and receive encrypted data information of the current gas meter sent by the gas meter through the communication channel; An alarm prompt information generating module is used to decrypt the data information of the current gas meter to obtain gas usage data, analyze the gas usage data, and generate an alarm prompt information if the analysis result is abnormal; The gas meter data synchronization module is used to receive the settlement instructions and gas meter-related data sent by the Internet of Things platform, synchronize and settle the gas usage data and the gas meter-related data according to the settlement instructions, generate gas meter synchronization information, and send the alarm prompt information and the gas meter synchronization information to the display screen of the gas meter for display.

9. A terminal, characterized in that: The terminal includes: a memory, a processor, and a data synchronization program between the Internet of Things platform and the gas meter stored in the memory and executable on the processor. When the data synchronization program between the Internet of Things platform and the gas meter is executed by the processor, the steps of the data synchronization method between the Internet of Things platform and the gas meter as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a data synchronization program between the Internet of Things platform and the gas meter. When the data synchronization program between the Internet of Things platform and the gas meter is executed by the processor, the steps of the data synchronization method between the Internet of Things platform and the gas meter as described in any one of claims 1-7 are implemented.