Valve monitoring data acquisition and storage method and system

By setting sensors and unique numbers on each valve and storing status data by valve numbers on the data storage server, the data chaos and slow retrieval speed caused by the storage of state data of multiple valves in industrial scenarios is solved, and clear status logs and efficient data retrieval is achieved.

CN120011365AInactive Publication Date: 2025-05-16GUOHUI INTELLIGENT TECH (JIANGSU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510115854.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-24
Publication Date
2025-05-16
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In industrial scenarios, the state data volume of multiple valves is large, and direct storage will lead to data confusion, making it difficult to form a clear state log, and affecting the speed of later data retrieval.

Method used

A sensor device is arranged inside each valve to obtain status data and assign a unique number to each valve. The status data of all valves is obtained every once in a while, and then formatted and sent to the data storage server. The server divides storage space for each valve, and creates a path mapping table, and stores status data according to valve number.

Benefits of technology

It realizes clear storage of state data of multiple valves, forms a complete state log, and improves data retrieval speed by converting it into a balanced binary tree structure and saves computing resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120011365A_ABST
    Figure CN120011365A_ABST
Patent Text Reader

Abstract

The invention discloses a valve monitoring data acquisition and storage method and system, and the method comprises the steps: arranging sensor devices in all valves, and setting valve numbers for all valves; state data of all the valves are obtained once every preset time, formatting processing is executed on the state data of all the valves, and then the state data are sent to a data storage server; the data storage server divides a storage space for each valve, and the storage spaces are used for storing state data of the valves; the data storage server establishes a path mapping table, wherein the mapping table is used for storing the one-to-one correspondence relationship between the valve number of each valve and the path index of the corresponding storage space of each valve; according to the path mapping table, the data storage server stores the state data, received each time, of all the valves into the storage space corresponding to each valve, clear and organized storage of the state data of the valves is achieved, the speed of later data retrieval is greatly increased, and computing resources are saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data acquisition, and in particular to a valve monitoring data acquisition and storage method and system. Background Art

[0002] With the continuous development of computer information technology, traditional industries are gradually becoming information-based and digitalized. Real-time collection and storage of status data of each valve is conducive to monitoring the working conditions of each valve at any time and forming a complete status log for later tracing and fault tracking.

[0003] However, in specific industrial scenarios, the number of valves is usually large, and the amount of valve status data is large. If the valve status data is directly stored, it will cause data confusion, which is not conducive to forming a complete and clear status log, and will also lead to slow data retrieval in the later stage. Summary of the invention

[0004] In view of the above-mentioned technical deficiencies, the purpose of the present invention is to provide a valve monitoring data acquisition and storage method and system, aiming to solve the problem that in specific industrial scenarios, the number of valves is usually large, and the amount of valve status data is large. If the valve status data is directly stored, data confusion will occur, which is not conducive to forming a complete and clear status log, and will also lead to slow data retrieval in the later stage.

[0005] In view of the above problems, the present application provides a valve monitoring data collection and storage method and system.

[0006] The first aspect disclosed in the present application provides a valve monitoring data collection and storage method, the method comprising: A sensor device is set inside all valves to obtain valve status data, and a valve number is set for all valves to uniquely identify each valve; The status data of all valves are obtained once at a preset time interval, and the status data of all valves are formatted and then sent to the data storage server; The data storage server allocates a storage space for each valve, and the storage space is used to store the status data of the valve; The data storage server establishes a path mapping table, which is used to store a one-to-one correspondence between the valve number of each valve and the path index of the storage space corresponding to each valve; According to the path mapping table, the data storage server stores the status data of all valves received each time into the storage space corresponding to each valve.

[0007] Preferably, a sensor device is arranged inside all valves, the sensor device is used to obtain the status data of the valve, and a valve number is set for all valves, the valve number is used to uniquely identify each valve, specifically including: A water pressure sensor, a water flow rate sensor, a water flow direction sensor, a water temperature sensor and a valve opening degree sensor are arranged inside all valves, respectively used to obtain valve status data, wherein the status data includes water pressure, water flow rate, water flow direction, water temperature and valve opening degree; A valve number is set for all valves, which is incremented sequentially from 0 and the increment is 1. The valve number of each valve is unique and is used to uniquely identify each valve.

[0008] Preferably, the state data of all valves are acquired once at a preset time interval, and the state data of all valves are formatted and then sent to the data storage server, specifically including: The status data of all valves are acquired once every preset time interval t, and the timestamp of the acquisition time is recorded; The status data of each valve is encapsulated in a key-value pair format, wherein for the status data of each valve, the key is the timestamp of the time when the status data is obtained, and the value is the status data of the valve; After all valve status data are packaged, they are sent to the data storage server.

[0009] Preferably, the data storage server allocates a storage space for each valve, and the storage space is used to store the status data of the valve, specifically including: The data storage server allocates a storage space that is initialized to empty for each valve. The storage space is used to store the valve status data. Each storage space is logically continuous and can be located through a path index with a constant time complexity of O(1).

[0010] Preferably, according to the path mapping table, the data storage server stores the status data of all valves received each time into the storage space corresponding to each valve, specifically including: Retrieve the path mapping table based on the valve number of each valve, obtain the path index of the storage space corresponding to each valve, and locate the storage space corresponding to each valve through the path index; The state data of all valves acquired each time are stored in the storage space corresponding to each valve respectively, wherein for the state data of each valve, the state data of the valve acquired each time are stored in the storage space corresponding to the valve in the form of a linear sequence; When the state data stored in the storage space corresponding to a single valve exceeds 80, the state data stored in the storage space corresponding to the valve in the form of a linear sequence is converted into a balanced binary tree, wherein the key in the state data is used as a comparison value for binary search in the balanced binary tree. When the newly acquired state data is stored in the storage space corresponding to the valve, the newly acquired state data is inserted into the balanced binary tree and adjusted to maintain the balance characteristics of the balanced binary tree.

[0011] The second aspect disclosed in the present application provides a valve monitoring data acquisition and storage system, the system is used for the above-mentioned valve monitoring data acquisition and storage method, the system comprises: A collection module, wherein the collection module is used to set a sensor device inside all valves, the sensor device is used to obtain valve status data, and set a valve number for all valves, the valve number is used to uniquely identify each valve; A packaging module, the packaging module is used to obtain the status data of all valves once every preset time interval, perform formatting processing on the status data of all valves, and then send it to the data storage server; A partition module, wherein the partition module is used for the data storage server to divide a storage space for each valve, and the storage space is used to store the status data of the valve; A mapping module, the mapping module is used for the data storage server to establish a path mapping table, the mapping table is used to store a one-to-one correspondence between the valve number of each valve and the path index of the storage space corresponding to each valve; The storage module is used for the data storage server to store the status data of all valves received each time into the storage space corresponding to each valve according to the path mapping table.

[0012] The third aspect disclosed in the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned valve monitoring data collection and storage method when executing the computer program.

[0013] The fourth aspect disclosed in the present application provides a computer-readable storage medium having a computer program stored thereon, and the computer program, when executed by a processor, implements the above-mentioned valve monitoring data acquisition and storage method.

[0014] The fifth aspect disclosed in the present application provides a computer program product, including a computer program or instructions, which implement the above-mentioned valve monitoring data acquisition and storage method when executed by a processor.

[0015] The beneficial effects of the present invention are: (1) In specific industrial scenarios, the valve status data with large amounts of data can be stored in a clear and organized manner, which is conducive to forming a complete and clear status log.

[0016] (2) When the state data increases to a certain extent, the state data is converted into a balanced binary tree data structure, which greatly increases the speed of subsequent data tracing and data retrieval and saves the consumption of computing resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 The present invention is an overall flow chart of a valve monitoring data collection and storage method.

[0019] Figure 2 This is an overall structural diagram of a valve monitoring data acquisition and storage system. DETAILED DESCRIPTION

[0020] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0021] like Figure 1 As shown, an embodiment of the present application provides a valve monitoring data collection and storage method, the method comprising: A sensor device is set inside all valves to obtain valve status data, and a valve number is set for all valves to uniquely identify each valve; The status data of all valves are obtained once at a preset time interval, and the status data of all valves are formatted and then sent to the data storage server; The data storage server allocates a storage space for each valve, and the storage space is used to store the status data of the valve; The data storage server establishes a path mapping table, which is used to store a one-to-one correspondence between the valve number of each valve and the path index of the storage space corresponding to each valve; According to the path mapping table, the data storage server stores the status data of all valves received each time into the storage space corresponding to each valve.

[0022] Furthermore, the sensor device is set inside all valves, the sensor device is used to obtain the status data of the valve, and a valve number is set for all valves, and the valve number is used to uniquely identify each valve, specifically including: A water pressure sensor, a water flow rate sensor, a water flow direction sensor, a water temperature sensor and a valve opening degree sensor are arranged inside all valves, respectively used to obtain valve status data, wherein the status data includes water pressure, water flow rate, water flow direction, water temperature and valve opening degree; A valve number is set for all valves, which is incremented sequentially from 0 and the increment is 1. The valve number of each valve is unique and is used to uniquely identify each valve.

[0023] Furthermore, the state data of all valves are acquired once at a preset time interval, and the state data of all valves are formatted and then sent to the data storage server, specifically including: The status data of all valves are acquired once every preset time interval t, and the timestamp of the acquisition time is recorded; The status data of each valve is encapsulated in a key-value pair format, wherein for the status data of each valve, the key is the timestamp of the time when the status data is obtained, and the value is the status data of the valve; After all valve status data are packaged, they are sent to the data storage server.

[0024] Furthermore, the data storage server allocates a storage space for each valve, and the storage space is used to store the status data of the valve, specifically including: The data storage server allocates a storage space that is initialized to empty for each valve. The storage space is used to store the valve status data. Each storage space is logically continuous and can be located through a path index with a constant time complexity of O(1).

[0025] Furthermore, according to the path mapping table, the data storage server stores the status data of all valves received each time into the storage space corresponding to each valve, specifically including: Retrieve the path mapping table based on the valve number of each valve, obtain the path index of the storage space corresponding to each valve, and locate the storage space corresponding to each valve through the path index; The state data of all valves acquired each time are stored in the storage space corresponding to each valve respectively, wherein for the state data of each valve, the state data of the valve acquired each time are stored in the storage space corresponding to the valve in the form of a linear sequence; When the state data stored in the storage space corresponding to a single valve exceeds 80, the state data stored in the storage space corresponding to the valve in the form of a linear sequence is converted into a balanced binary tree, wherein the key in the state data is used as a comparison value for binary search in the balanced binary tree. When the newly acquired state data is stored in the storage space corresponding to the valve, the newly acquired state data is inserted into the balanced binary tree and adjusted to maintain the balance characteristics of the balanced binary tree.

[0026] In summary, the valve monitoring data collection and storage method provided by the embodiment of the present application has the following technical effects: (1) A clear and organized storage method for valve status data with large amounts of data is implemented in specific industrial scenarios, which is conducive to forming a complete and clear status log.

[0027] (2) When the state data increases to a certain extent, the state data is converted into a balanced binary tree data structure, which greatly increases the speed of subsequent data tracing and data retrieval and saves the consumption of computing resources.

[0028] Based on the same inventive concept as the valve monitoring data collection and storage method in the aforementioned embodiment, Figure 2 As shown, the present application provides a valve monitoring data acquisition and storage system, the system comprising: A collection module, wherein the collection module is used to set a sensor device inside all valves, the sensor device is used to obtain valve status data, and set a valve number for all valves, the valve number is used to uniquely identify each valve; A packaging module, the packaging module is used to obtain the status data of all valves once every preset time interval, perform formatting processing on the status data of all valves, and then send it to the data storage server; A partition module, wherein the partition module is used for the data storage server to divide a storage space for each valve, and the storage space is used to store the status data of the valve; A mapping module, the mapping module is used for the data storage server to establish a path mapping table, the mapping table is used to store a one-to-one correspondence between the valve number of each valve and the path index of the storage space corresponding to each valve; The storage module is used for the data storage server to store the status data of all valves received each time into the storage space corresponding to each valve according to the path mapping table.

[0029] Through the above-mentioned detailed description of a valve monitoring data acquisition and storage method in this specification, technical personnel in this field can clearly understand a valve monitoring data acquisition and storage system in this embodiment. Since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0030] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements a valve monitoring data acquisition and storage method when executing the computer program.

[0031] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, a method for collecting and storing valve monitoring data is implemented.

[0032] In one embodiment, a computer program product is provided, including a computer program or instructions, and when the computer program or instructions are executed by a processor, a method for collecting and storing valve monitoring data is implemented.

[0033] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0034] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A valve monitoring data collection and storage method, characterized in that: The method comprises: A sensor device is set inside all valves to obtain valve status data, and a valve number is set for all valves to uniquely identify each valve; The status data of all valves are obtained once at a preset time interval, and the status data of all valves are formatted and then sent to the data storage server; The data storage server allocates a storage space for each valve, and the storage space is used to store the status data of the valve; The data storage server establishes a path mapping table, which is used to store a one-to-one correspondence between the valve number of each valve and the path index of the storage space corresponding to each valve; According to the path mapping table, the data storage server stores the status data of all valves received each time into the storage space corresponding to each valve.

2. A valve monitoring data collection and storage method as claimed in claim 1, characterized in that: The sensor device is arranged inside all valves, the sensor device is used to obtain the status data of the valve, and a valve number is set for all valves, the valve number is used to uniquely identify each valve, specifically including: A water pressure sensor, a water flow rate sensor, a water flow direction sensor, a water temperature sensor and a valve opening degree sensor are arranged inside all valves, respectively used to obtain valve status data, wherein the status data includes water pressure, water flow rate, water flow direction, water temperature and valve opening degree; A valve number is set for all valves, which is incremented sequentially from 0 and the increment is 1. The valve number of each valve is unique and is used to uniquely identify each valve.

3. A valve monitoring data collection and storage method as claimed in claim 2, characterized in that: The state data of all valves are acquired once at a preset time interval, and the state data of all valves are formatted and then sent to the data storage server, specifically including: The status data of all valves are acquired once every preset time interval t, and the timestamp of the acquisition time is recorded; The status data of each valve is encapsulated in a key-value pair format, wherein for the status data of each valve, the key is the timestamp of the time when the status data is obtained, and the value is the status data of the valve; After all valve status data are packaged, they are sent to the data storage server.

4. A valve monitoring data collection and storage method as claimed in claim 3, characterized in that: The data storage server allocates a storage space for each valve, and the storage space is used to store the status data of the valve, specifically including: The data storage server allocates a storage space that is initialized to empty for each valve. The storage space is used to store the valve status data. Each storage space is logically continuous and can be located through a path index with a constant time complexity of O(1).

5. A valve monitoring data collection and storage method as claimed in claim 4, characterized in that: According to the path mapping table, the data storage server stores the status data of all valves received each time into the storage space corresponding to each valve, specifically including: Retrieve the path mapping table based on the valve number of each valve, obtain the path index of the storage space corresponding to each valve, and locate the storage space corresponding to each valve through the path index; The state data of all valves acquired each time are stored in the storage space corresponding to each valve respectively, wherein for the state data of each valve, the state data of the valve acquired each time are stored in the storage space corresponding to the valve in the form of a linear sequence; When the state data stored in the storage space corresponding to a single valve exceeds 80, the state data stored in the storage space corresponding to the valve in the form of a linear sequence is converted into a balanced binary tree, wherein the key in the state data is used as a comparison value for binary search in the balanced binary tree. When the newly acquired state data is stored in the storage space corresponding to the valve, the newly acquired state data is inserted into the balanced binary tree and adjusted to maintain the balance characteristics of the balanced binary tree.

6. A valve monitoring data acquisition and storage system, the system comprising: A collection module, wherein the collection module is used to set a sensor device inside all valves, the sensor device is used to obtain valve status data, and set a valve number for all valves, the valve number is used to uniquely identify each valve; A packaging module, the packaging module is used to obtain the status data of all valves once every preset time interval, perform formatting processing on the status data of all valves, and then send it to the data storage server; A partition module, wherein the partition module is used for the data storage server to divide a storage space for each valve, and the storage space is used to store the status data of the valve; A mapping module, the mapping module is used for the data storage server to establish a path mapping table, the mapping table is used to store a one-to-one correspondence between the valve number of each valve and the path index of the storage space corresponding to each valve; The storage module is used for the data storage server to store the status data of all valves received each time into the storage space corresponding to each valve according to the path mapping table.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, a valve monitoring data acquisition and storage method according to any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, a valve monitoring data acquisition and storage method according to any one of claims 1 to 5 is implemented.

9. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, a valve monitoring data acquisition and storage method according to any one of claims 1 to 5 is implemented.