Gas meter production environment data acquisition method and system

By building database partitions and data stacks, the problem of data format and accuracy differences in data acquisition in gas instrument production environment is solved, efficient storage and rapid call are achieved, and data acquisition and processing efficiency is improved.

CN118964348AActive Publication Date: 2024-11-15ANHUI HONGLING SMART INSTRUMENT TECHNOLOGY CO LTD

Patent Information

Application Number
CN202410955950.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-11-15
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

During the production process of gas instruments, due to different suppliers of sensor equipment, data format, sampling rate and accuracy are different, which complicates data fusion and analysis, affects the accuracy of data acquisition and call, and requires a method to summarize and quickly call Production environment data from different sources.

Method used

By building a database partition, recording the access time and frequency of environmental data, using the preset access frequency-heat comparison table to transfer the data to the corresponding partition, and building a data stack, optimizing the storage and call links, and determining the entry threshold and life of the partition. Cycles, realize fast call and efficient storage of data.

Benefits of technology

The use of storage resources is optimized, and the repeated entry and storage errors of environmental data are avoided, data collection efficiency and reliability are improved, call delay is reduced, and environmental data processing efficiency is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118964348A_ABST
    Figure CN118964348A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of data acquisition, and particularly relates to a gas meter production environment data acquisition method and system, and the method comprises the steps: collecting environment data of a production field, the environment data at least comprising temperature, humidity, cleanliness and the like, carrying out the remarking, segmenting a pre-constructed database into a plurality of subareas, and storing the subareas in a database database; the subareas at least comprise a hot area, a warm area and a cold area, and an entry threshold value of the subareas is defined; and recording the access time of the environment data, counting the access times, calculating the access frequency of the environment data, comparing the heat of the environment data based on a preset access frequency-heat comparison table, and entering a threshold value according to the heat sum. By rearranging the data stacks and positioning the real-time blocks, the environment data between different platforms can be quickly called, the calling speed is high, the accuracy rate is high, meanwhile, the collection process of the environment data can be monitored, and the processing efficiency of the environment data is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data acquisition, and in particular to a method and system for acquiring production environment data of a gas meter. Background Art

[0002] During the production process of gas meters, electromagnetic interference sources should be reduced as much as possible and the environmental temperature and humidity should be stably controlled. The existence of these particularities means that the importance of the environment cannot be underestimated. A good production environment is not only related to production safety, but also directly affects product quality and production efficiency. By monitoring environmental parameters such as temperature and humidity, safety hazards can be discovered in a timely manner; in addition, a good production environment can also improve employees' work enthusiasm, enhance the corporate image, and contribute to the long-term development of the company.

[0003] At the production site, various sensors such as temperature, humidity, and pressure sensors are deployed, and data acquisition equipment is used to collect environmental data in real time and transmit it to the data center or cloud platform for storage and management. In addition, data analysis tools are used to conduct in-depth analysis and processing of the collected data to mine potential information, thereby optimizing production parameters and providing safety protection for production equipment. It can be seen that it is extremely important to monitor the environmental data at the production site.

[0004] However, in actual production, due to the different suppliers of sensor equipment, this brings a series of problems, such as different data formats, sampling rates and accuracy differences. These factors will complicate data fusion and affect the accuracy of data collection, analysis and call; therefore, "how to aggregate production environment data from different sources and quickly call them" is the technical problem that the present invention needs to solve. Summary of the invention

[0005] The purpose of the present invention is to provide a method and system for collecting data of a gas meter production environment, so as to solve the problems raised in the above-mentioned background technology.

[0006] To achieve the above object, the present invention provides the following technical solutions:

[0007] A first aspect of the present invention provides a method for collecting production environment data of a gas meter, the method comprising:

[0008] Collect environmental data of the production site, which includes at least temperature, humidity, cleanliness, etc., and make notes. Divide the pre-built database into several partitions, which include at least hot zone, warm zone, and cold zone, and define the entry threshold of the partition;

[0009] Record the access time of the environment data, count the number of accesses, calculate the access frequency of the environment data, and compare the heat of the environment data based on a preset access frequency-heat comparison table, and transfer the environment data to the partition according to the heat and entry threshold;

[0010] Defining blocks using the environmental data in each partition, inserting heat labels into the blocks, sorting the blocks in descending order of heat, and creating a data stack according to the sorting result;

[0011] The immediate number blocks in the partition are located, the immediate number blocks are pushed into the data stack, the data stack is rearranged, and the number blocks at the bottom of the data stack are popped out into the partition, and a data call link between the partition and the data stack is constructed.

[0012] Furthermore, the environmental data of the production site is collected and annotated, and the pre-built database is divided into several partitions. The step of defining the entry threshold of the partitions includes:

[0013] Tracing back the source of the environmental data, determining a standardized description language, the description language including: high risk, low risk and unstable, defining the risk level of the source, and using the risk level to classify the environmental data;

[0014] Build a data migration strategy between partitions.

[0015] Furthermore, the steps of recording the access time of the environmental data, counting the number of accesses, and calculating the access frequency of the environmental data include:

[0016] Defining a matching item in the environmental data, and calculating an adjustment value of the matching item using a preset frequency adjustment formula;

[0017] The preset frequency adjustment formula is:

[0018] E t =αN t +(1-α)E t-1 ;

[0019] Where t is time, E t is the adjustment value at time t, α is the smoothing coefficient (0<α≤1), N t is the number of visits to the matching item within time t;

[0020] The access frequency is modified using the calculated adjustment value.

[0021] Furthermore, the step of comparing the heat of the environment data based on the preset access frequency-heat comparison table, and transferring the environment data to different partitions according to the heat and the entry threshold includes:

[0022] Divide the corrected access frequency into several levels and determine the popularity of different levels;

[0023] Determine the correspondence between different levels and popularity, and build a visit frequency-popularity comparison table;

[0024] Determine the entry threshold of each partition, and judge whether the heat of the environment data meets the entry threshold. If yes, classify the environment data into the partition; if not, continue to traverse other partitions.

[0025] Furthermore, the step of constructing blocks using the environmental data in each partition, inserting heat labels into the blocks, sorting the blocks in descending order of heat, and creating a data stack according to the sorting result includes:

[0026] With the access time as the horizontal axis and the environmental data as the vertical axis, a change trend graph of the environmental data is constructed, and a stability index of the environmental data is obtained;

[0027] An elastic management mechanism is introduced into the data stack, and the length of the data stack is determined by using the stability index and the elastic management mechanism.

[0028] Further, the steps of locating the immediate number block in the partition, pushing the immediate number block into the data stack, rearranging the data stack, and popping the number block at the bottom of the data stack into the partition, and constructing a data call link between the partition and the data stack include:

[0029] The data block at the bottom of the data stack is defined as a gradually cooling data block. When the gradually cooling data block is popped into the partition, the environment data in the gradually cooling data block is exported, the gradually cooling data block is initialized, and the gradually cooling data block is redefined as a standby data block.

[0030] The real-time value of the environmental data is determined and classified into the spare data block to generate the immediate data block.

[0031] Furthermore, the method further comprises:

[0032] Determine the life cycle of the partition, and migrate the environment data in the partition according to a preset migration order;

[0033] Determine the priority of the data call link and create a priority matching strategy, wherein the matching strategy at least includes: assigning the highest priority to the data stack of the hot zone;

[0034] Receive the user's data collection request, traverse the target data through the data call link, generate feedback, and push the feedback to the user.

[0035] A second aspect of the present invention provides a gas meter production environment data acquisition system, the system comprising:

[0036] A definition module is used to collect environmental data of the production site, the environmental data includes at least temperature, humidity and cleanliness, etc., and make notes, divide the pre-built database into several partitions, the partitions include at least hot zone, warm zone and cold zone, and define the entry threshold of the partitions;

[0037] A transfer module is used to record the access time of the environment data, count the number of accesses, calculate the access frequency of the environment data, and compare the heat of the environment data based on a preset access frequency-heat comparison table, and transfer the environment data to different partitions according to the heat and entry threshold;

[0038] A creation module, used to define blocks using the environment data in each partition, insert heat labels into the blocks, sort the blocks in descending order of heat, and create a data stack according to the sorting result;

[0039] The pop-up module is used to locate the immediate number block in the partition, push the immediate number block into the data stack, rearrange the data stack, and pop the number block at the bottom of the data stack into the partition to build a data call link between the partition and the data stack.

[0040] Furthermore, the definition module includes:

[0041] A remark unit, used to trace back the source of the environmental data, determine a standardized description language, the description language includes: high risk, low risk and unstable, define the risk level of the source, and use the risk level to classify the environmental data;

[0042] A construction unit is used to construct a data transfer strategy between partitions.

[0043] Furthermore, the transfer module includes:

[0044] A calculation unit is used to define a matching item in the environmental data and calculate an adjustment value of the matching item using a preset frequency adjustment formula, wherein the preset frequency adjustment formula is: t =αN t +(1-α)E t-1 , where t is time, E t is the adjustment value at time t, α is the smoothing coefficient (0<α≤1), N t is the number of visits to the matching item within time t;

[0045] a correction unit, configured to correct the access frequency using the calculated adjustment value;

[0046] A division unit, used to divide the corrected access frequency into several levels and determine the heat of different levels;

[0047] A construction unit is used to determine the correspondence between different levels and popularity, and to construct an access frequency-popularity comparison table;

[0048] The judgment unit is used to determine the entry threshold of each partition, and judge whether the heat of the environmental data meets the entry threshold. If yes, the environmental data is classified into the partition; if not, other partitions are traversed continuously.

[0049] Compared with the prior art, the present invention has the following beneficial effects:

[0050] 1. By building partitions, the use of storage resources can be optimized, and frequently accessed data can be stored on high-performance media, while less frequently accessed data can be stored on lower-cost media. This also enables environmental data between different platforms to communicate with each other, avoiding repeated entry and storage of environmental data and reducing the possibility of errors. By calculating the access frequency of environmental data, the popularity of environmental data can be determined and the environmental data can be better partitioned. By building blocks and data stacks, the collected environmental data can be quickly called to improve data collection efficiency. By rearranging the data stack and locating instant blocks, environmental data between different platforms can be quickly called. At the same time, the collection process of environmental data can also be monitored to ensure the processing efficiency of environmental data.

[0051] 2. By migrating environmental data, storage resources are further optimized, greatly improving the efficiency of calling environmental data. By determining priorities and matching strategies, the data stack in the hot zone can be given the highest priority, effectively reducing the delay in calling environmental data and improving the efficiency and reliability of data collection. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention.

[0053] Figure 1 A flowchart of a method for collecting data of a gas meter production environment provided by an embodiment of the present invention;

[0054] Figure 2 A first sub-flow chart of the method for collecting data of a gas meter production environment provided by an embodiment of the present invention;

[0055] Figure 3 A second sub-flow chart of the method for collecting data of a gas meter production environment provided by an embodiment of the present invention;

[0056] Figure 4 A third sub-flow chart of the method for collecting data of a gas meter production environment provided by an embodiment of the present invention;

[0057] Figure 5 A fourth sub-flow chart of the method for collecting data of a gas meter production environment provided by an embodiment of the present invention;

[0058] Figure 6 A block diagram of the gas meter production environment data acquisition system provided by an embodiment of the present invention;

[0059] Figure 7 A block diagram of the components of the definition module in the gas meter production environment data acquisition system provided by an embodiment of the present invention;

[0060] Figure 8 A block diagram of the composition of a transfer module in a gas meter production environment data acquisition system provided by an embodiment of the present invention;

[0061] Fig. 9 A block diagram of the composition of a creation module in a gas meter production environment data acquisition system provided in an embodiment of the present invention;

[0062] Fig.10 A block diagram of the composition of a pop-up module in a gas meter production environment data acquisition system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0063] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0064] In Example 1, Figure 1 The implementation process of the gas meter production environment data collection method provided by the embodiment of the present invention is shown, and is described in detail below:

[0065] S100: Collect environmental data of the production site, the environmental data including at least temperature, humidity, cleanliness, etc., and make notes, divide the pre-built database into several partitions, the partitions including at least hot zone, warm zone and cold zone, and define the entry threshold of the partition.

[0066] Use data acquisition equipment, external sensors and built-in sensors of production equipment at the production site to collect environmental data at the production site, including temperature, humidity, cleanliness (PM2.5), volatile organic compounds and various gas concentrations, electromagnetic interference sources, etc., and make notes on the environmental data. The notes are to determine the type of environmental data collected to avoid useless data. Build a database for storing environmental data, divide the database into multiple partitions, and determine hot zones, warm zones and cold zones in the partitions. At the same time, determine the entry threshold of each partition. Only when the heat meets the entry threshold will the environmental data be classified into the corresponding partition.

[0067] For example, if the temperature in the collected environmental data is 15°C and it is known that temperature is important to the production process, the temperature can be transferred to the hot zone for storage. Environmental data such as humidity and cleanliness have less impact on production and can be stored in the warm zone or cold zone.

[0068] Frequently accessed environmental data is stored in the hot zone, which is built on high-performance media (such as fixed hard disks), while the environmental data in the warm zone or cold zone is less frequently accessed, and is built on low-performance media (mechanical hard disks).

[0069] S200: Record the access time of the environmental data, count the number of accesses, calculate the access frequency of the environmental data, and compare the heat of the environmental data based on a preset access frequency-heat comparison table, and transfer the environmental data to the partition according to the heat and entry threshold.

[0070] Record the access time and number of accesses to the environmental data. This step can also be determined by querying the access log. Divide the number of accesses by the preset time length to determine the access frequency of the environmental data. Query the access frequency-heat comparison table to find out the heat corresponding to the environmental data. The higher the heat, the higher the access frequency. The access frequency-heat comparison table should be established in advance by the staff. The advantage of creating an access frequency-heat comparison table is that it can standardize the access frequency and avoid data with large deviations. When the heat meets the entry threshold, the corresponding environmental data will be classified into the partition.

[0071] S300: constructing blocks using the environmental data in each partition, inserting heat labels into the blocks, sorting the blocks in descending order of heat, and creating a data stack according to the sorting result.

[0072] The environmental data in the partition is used to build a block. The block is the smallest unit for storing and recording environmental data in the partition. At the same time, the heat corresponding to the environmental data is inserted into the block as a label, and the blocks are sorted to create a data stack. The sorted blocks are transferred to the data stack. The data stack is a commonly used data structure, that is, it has a fixed length, and it can also store temporary data and call it quickly.

[0073] S400: Locate the immediate number block in the partition, push the immediate number block into the data stack, rearrange the data stack, and pop the number block at the bottom of the data stack into the partition, and build a data call link between the partition and the data stack.

[0074] After the real-time environmental data is collected, the access frequency is updated, the real-time environmental data is classified into the corresponding partition, and the real-time environmental data is used to create an instant number block in the partition. The instant number block is pushed into the data stack, and the number blocks and instant number blocks in the data stack are reordered. If the instant number block is at the bottom of the data stack, it means that the real-time environmental data is used less frequently. At this time, the instant number block is pushed out of the data stack and popped into the partition for storage; a data call link between the partition and the data stack is constructed. When certain environmental data needs to be used, the data stack is traversed first to quickly locate the required number block, thereby determining the environmental data.

[0075] In Example 2, Figure 2 The implementation process of the method for collecting production environment data of a gas meter provided by an embodiment of the present invention is shown. The following is a description of the steps for collecting the environmental data of the production site and making notes. The pre-built database is divided into several partitions, and the steps for defining the entry criteria of the partitions are described in detail as follows:

[0076] S101: trace back the source of the environmental data, determine a standardized description language, the description language includes: high risk, low risk and unstable, define the risk level of the source, and use the risk level to classify the environmental data.

[0077] The source of environmental data can be environmental data collection equipment or built-in sensors of production equipment. By analyzing environmental data and using annotated description languages, the operating status of production equipment can be determined, the risk level of production equipment can be defined, and the risk level can be integrated into the environmental data.

[0078] For example, when the environmental noise collected at the production site is 90dB, according to the pre-established judgment rules, noise exceeding 70dB is defined as abnormal noise. At this time, the production equipment can be defined as high-risk and the production equipment can be graded. The specific disposal method after classification is not limited, which can be pushing the equipment parameters of the production equipment to the preset terminal or launching an emergency plan.

[0079] S102: Establish a data transfer strategy between partitions.

[0080] Determine the data transfer strategy for environmental data between partitions. Continuing with the above-mentioned environmental noise as an example, a certain production equipment is in good operating condition and has been running stably for a long time. The noise in the environmental data can be classified as a cold zone; however, when the production equipment is damaged and requires special attention after repair, the environmental data corresponding to the production equipment can be transferred to the hot zone for storage.

[0081] In Example 3, Figure 3 The implementation process of the gas meter production environment data collection method provided by the embodiment of the present invention is shown. The steps of recording the access time of the environment data, counting the number of accesses, and calculating the access frequency of the environment data are described in detail as follows:

[0082] S201: Define a matching item in the environmental data, and calculate an adjustment value of the matching item using a preset frequency adjustment formula, wherein the preset frequency adjustment formula is: t =αN t +(1-α)E t-1 , where t is time, E t is the adjustment value at time t, α is the smoothing coefficient (0<α≤1), N t is the number of visits to the matching item within time t.

[0083] Define matching items in the environmental data. Continuing with the above noise as an example, according to common sense, when noise is generated, it may cause changes in the temperature and output of production equipment. The temperature and output here are the matching items of noise. At this time, the matching items can be used to adjust the access frequency of environmental data, thereby increasing the popularity of environmental data, so as to increase the calling rate of environmental data during equipment maintenance, exception handling, etc.; the smoothing coefficient is pre-determined by the staff. If the collection frequency of the collection equipment is in minutes, for example, t is the 34th minute, then t-1 is the 33rd minute.

[0084] S202: Correct the access frequency using the calculated adjustment value.

[0085] The purpose of using the adjustment value to modify the access frequency is mainly to increase the popularity of the environment data so as to increase the call rate of the required environment data.

[0086] In Example 4, Figure 3 The implementation process of the gas meter production environment data collection method provided by the embodiment of the present invention is shown. The steps of comparing the heat of the environment data based on the preset access frequency-heat comparison table, and transferring the environment data to different partitions according to the heat and entry threshold are described in detail as follows:

[0087] S203: Divide the corrected access frequency into several levels, and determine the heat of different levels.

[0088] Divide the access frequency into several levels and determine the popularity of each level.

[0089] S204: Determine the correspondence between different levels and popularity, and construct an access frequency-popularity comparison table.

[0090] By establishing a corresponding relationship between different levels of access frequency and popularity, an access frequency-heat comparison table can be created. The access frequency-heat comparison table should include access frequency items and heat items.

[0091] S205: Determine an entry threshold for each partition, and judge whether the heat of the environment data meets the entry threshold. If yes, classify the environment data into the partition; if not, continue to traverse other partitions.

[0092] Determine the entry threshold of each partition's heat. Only when the entry threshold is met can the environmental data be classified into the corresponding threshold. If it is not met, it is necessary to continue to compare the entry threshold of the next partition.

[0093] In Example 5, Figure 4 The implementation process of the gas meter production environment data collection method provided by an embodiment of the present invention is shown. The following is a detailed description of the steps of using the environmental data in each partition to build a number of blocks, inserting labels about heat into the number of blocks, sorting the number of blocks in descending order of the heat, and creating a data stack according to the sorting results, as follows:

[0094] S301: Using the access time as the horizontal axis and the environmental data as the vertical axis, construct a change trend graph of the environmental data and obtain a stability index of the environmental data.

[0095] By constructing a change trend graph, the changes in environmental data can be displayed intuitively.

[0096] S302: Introducing an elastic management mechanism into the data stack, and determining the length of the data stack by using the stability index and the elastic management mechanism.

[0097] If the trend chart is relatively flat, shorten the length of the data stack, because there is no need to quickly call too much environmental data. If the trend chart fluctuates greatly, increase the length of the data stack, because multiple types of environmental data need to be summarized in order to make more comprehensive improvements to the entire production process.

[0098] The process of shortening and increasing the data stack needs to be based on a flexible management mechanism. The flexible management mechanism is about under what circumstances to shorten and increase the length of the data, which also needs to be formulated in advance by the staff.

[0099] In Example 6, Figure 5 The gas meter production environment data collection method and system implementation process provided by the embodiment of the present invention are shown. The steps of locating the instant data block in the partition, pushing the instant data block into the data stack, rearranging the data stack, and popping the data block at the bottom of the data stack into the partition, and building a data call link between the partition and the data stack are described in detail as follows:

[0100] S401: defining a block at the bottom of the data stack as a gradually cooling block, and when the gradually cooling block is popped into a partition, exporting environmental data in the gradually cooling block, initializing the gradually cooling block, and redefining it as a spare block.

[0101] The block at the bottom of the data stack is defined as a gradually cooling block. When the gradually cooling block is popped into the partition, the environment data in the block is exported, and the initialized gradually cooling block is redefined as a spare block.

[0102] S402: Determine the real-time value of the environmental data, and classify the real-time value into a spare number block to generate an instant number block.

[0103] Determine the real-time value in the real-time environmental data, transfer the real-time value to the partition, and then transfer the real-time value to the spare block. At this time, redefine the spare block as an instant block, thereby completing the reciprocating circulation of the blocks and ensuring the processing efficiency of the environmental data.

[0104] In Example 7, different from Example 1, in this embodiment of the present invention, the method further includes:

[0105] Determine the life cycle of the partition, and migrate the environment data in the partition according to a preset migration order;

[0106] Determine the priority of the data call link and create a priority matching strategy, wherein the matching strategy at least includes: assigning the highest priority to the data stack in the hot zone;

[0107] Receive the user's data collection request, traverse the target data through the data call link, generate feedback, and push the feedback to the user.

[0108] Determine the life cycle of the partition. The life cycle is the storage period of the environment data. When certain environment data is stored in the hot zone and has not been called for a period of time, the environment data should be migrated to the warm zone or cold zone.

[0109] When making data calls, determine the priority of the data call link. The data stack in the hot zone should be set with the highest priority, and other data in the hot zone or the data stack in the warm zone should be set with a higher priority, and so on. The specific priority setting rules should be determined according to actual production and storage resources. When receiving the user's data collection request, the data call link is used to traverse the partition with a higher priority first, and the target data is traversed in the partition, and the target data is pushed to the user.

[0110] Figure 6 The following is a structural block diagram of a gas meter production environment data collection system according to an embodiment of the present invention. The gas meter production environment data collection system 1 includes:

[0111] Definition module 11, used to collect environmental data of the production site, the environmental data at least including: temperature, humidity and cleanliness, etc., and make notes, divide the pre-built database into several partitions, the partitions at least including: hot zone, warm zone and cold zone, and define the entry criteria of the partitions;

[0112] The transfer module 12 is used to record the access time of the environment data, count the number of accesses, calculate the access frequency of the environment data, and compare the heat of the environment data based on a preset access frequency-heat comparison table, and transfer the environment data to different partitions according to the heat and the entry threshold;

[0113] A creation module 13 is used to define blocks using the environmental data in each partition, insert heat labels into the blocks, sort the blocks in descending order of heat, and create a data stack according to the sorting result;

[0114] The pop-up module 14 is used to locate the immediate number block in the partition, push the immediate number block into the data stack, rearrange the data stack, and pop the number block at the bottom of the data stack into the partition to build a data call link between the partition and the data stack.

[0115] Figure 7 The structure diagram of the gas meter production environment data acquisition system provided by the embodiment of the present invention is shown, and the definition module 11 includes:

[0116] The remark unit 111 is used to trace back the source of the environmental data, determine a standardized description language, and the description language includes: high risk, low risk and unstable, define the risk level of the source, and use the risk level to classify the environmental data;

[0117] The building unit 112 is used to build a data migration strategy between partitions.

[0118] Figure 8 The structure diagram of the gas meter production environment data acquisition system provided by the embodiment of the present invention is shown, and the transfer module 12 includes:

[0119] The calculation unit 121 is used to define a matching item in the environmental data and calculate an adjustment value of the matching item using a preset frequency adjustment formula. The preset frequency adjustment formula is: t =αN t +(1-α)E t-1 , where t is time, E t is the adjustment value at time t, α is the smoothing coefficient (0<α≤1), N t is the number of visits to the matching item within time t;

[0120] A correction unit 122 is used to correct the access frequency using the calculated adjustment value.

[0121] A division unit 123, used to divide the corrected access frequency into several levels and determine the heat of different levels;

[0122] A construction unit 124, used to determine the correspondence between different levels and popularity, and to construct an access frequency-popularity comparison table;

[0123] The judgment unit 125 is used to determine the entry threshold of each partition, and judge whether the heat of the environmental data meets the entry threshold. If yes, the environmental data is classified into the partition; if not, other partitions are traversed continuously.

[0124] Fig. 9 The structure diagram of the gas meter production environment data acquisition system provided by the embodiment of the present invention is shown, and the creation module 13 includes:

[0125] A graph forming unit 131 is used to construct a change trend graph of the environmental data with the access time as the horizontal coordinate and the environmental data as the vertical coordinate, and obtain a stability index of the environmental data;

[0126] The introduction unit 132 is used to introduce the elastic management mechanism into the data stack and determine the length of the data stack by using the stability index and the elastic management mechanism.

[0127] Fig.10 The structure diagram of the gas meter production environment data acquisition system provided by the embodiment of the present invention is shown, and the pop-up module 14 includes:

[0128] The initialization unit 141 is used to define the data block at the bottom of the data stack as a gradually cooling data block, and after the gradually cooling data block is popped out to the partition, export the environment data in the gradually cooling data block, initialize the gradually cooling data block, and redefine it as a spare data block;

[0129] The generating unit 142 is used to determine the real-time value of the environmental data, and classify the real-time value into the spare data block to generate the immediate data block.

[0130] The definition module 11 is mainly used to complete step S100, the transfer module 12 is mainly used to complete step S200, the creation module 13 is mainly used to complete step S300, and the pop-up module 14 is mainly used to complete step S400;

[0131] The remark unit 111 is mainly used to complete step S101, and the construction unit 112 is mainly used to complete step S102;

[0132] The calculation unit 121 is mainly used to complete step S201, the correction unit 122 is mainly used to complete step S202, the division unit 123 is mainly used to complete step S203, the construction unit 124 is mainly used to complete step S204, and the judgment unit 125 is mainly used to complete step S205;

[0133] The composition unit 131 is mainly used to complete step S301, and the introduction unit 132 is mainly used to complete step S302;

[0134] The initialization unit 141 is mainly used to complete step S401, and the generation unit 142 is mainly used to complete step S402.

[0135] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for collecting data of a gas meter production environment, characterized in that: The method comprises: Collect environmental data of the production site, which includes at least temperature, humidity, cleanliness, etc., and make notes, divide the pre-built database into several partitions, which include at least hot zone, warm zone and cold zone, and define the entry threshold of each partition; Record the access time of the environment data, count the number of accesses, calculate the access frequency of the environment data, and compare the heat of the environment data based on a preset access frequency-heat comparison table, and transfer the environment data to the partition according to the heat and entry threshold; Using the environmental data in each partition to construct blocks, inserting heat labels into the blocks, sorting the blocks in descending order of heat, and creating a data stack according to the sorting result; The immediate number blocks in the partition are located, the immediate number blocks are pushed into the data stack, the data stack is rearranged, and the number blocks at the bottom of the data stack are popped out into the partition, and a data call link between the partition and the data stack is constructed.

2. The method for collecting gas meter production environment data according to claim 1, characterized in that: The step of collecting environmental data of the production site and making notes, dividing the pre-built database into several partitions, and defining the entry threshold of the partitions includes: Tracing back the source of the environmental data, determining a standardized description language, the description language including: high risk, low risk and unstable, defining the risk level of the source, and using the risk level to classify the environmental data; A data migration strategy between the partitions is determined.

3. The method for collecting gas meter production environment data according to claim 2, characterized in that: The steps of recording the access time of the environment data, counting the number of accesses, and calculating the access frequency of the environment data include: Defining a matching item in the environmental data, and calculating an adjustment value of the matching item using a preset frequency adjustment formula; The preset frequency adjustment formula is: E t =αN t +(1-a)E t-1 ; Where t is time, E t is the adjustment value at time t, α is the smoothing coefficient (0<α≤1), N t is the number of visits to the matching item within time t; The access frequency is modified using the calculated adjustment value.

4. The method for collecting gas meter production environment data according to claim 3, characterized in that: The step of comparing the heat of the environment data based on the preset access frequency-heat comparison table, and transferring the environment data to different partitions according to the heat and the entry threshold comprises: Divide the corrected access frequency into several levels and determine the popularity of different levels; Determine the correspondence between different levels and popularity, and build a visit frequency-popularity comparison table; Determine the entry threshold of each partition, and judge whether the heat of the environment data meets the entry threshold. If yes, classify the environment data into the partition; if not, continue to traverse other partitions.

5. The method for collecting gas meter production environment data according to claim 1, characterized in that: The steps of constructing blocks using the environmental data in each partition, inserting heat labels into the blocks, sorting the blocks in descending order of heat, and creating a data stack according to the sorting result include: With the access time as the horizontal axis and the environmental data as the vertical axis, a change trend graph of the environmental data is constructed, and a stability index of the environmental data is obtained; An elastic management mechanism is introduced into the data stack, and the length of the data stack is determined by using the stability index and the elastic management mechanism.

6. The method for collecting gas meter production environment data according to claim 5, characterized in that: The steps of locating the immediate number block in the partition, pushing the immediate number block into the data stack, rearranging the data stack, and popping the number block at the bottom of the data stack into the partition, and building a data call link between the partition and the data stack include: The data block at the bottom of the data stack is defined as a gradually cooling data block. When the gradually cooling data block is popped into the partition, the environment data in the gradually cooling data block is exported, the gradually cooling data block is initialized, and the gradually cooling data block is redefined as a standby data block. The real-time value of the environmental data is determined and classified into the spare data block to generate the immediate data block.

7. The method for collecting gas meter production environment data according to claim 6, characterized in that: The method further comprises: Determine the life cycle of the partition, and migrate the environment data in the partition according to a preset migration order; Determine the priority of the data call link and create a priority matching strategy, wherein the matching strategy at least includes: assigning the highest priority to the data stack in the hot zone; Receive the user's data collection request, traverse the target data through the data call link, generate feedback, and push the feedback to the user.

8. A gas meter production environment data acquisition system, characterized in that: The system comprises: A definition module is used to collect environmental data of the production site, the environmental data includes at least temperature, humidity and cleanliness, etc., and make notes, divide the pre-built database into several partitions, the partitions include at least hot zone, warm zone and cold zone, and define the entry threshold of the partitions; A transfer module is used to record the access time of the environment data, count the number of accesses, calculate the access frequency of the environment data, and compare the heat of the environment data based on a preset access frequency-heat comparison table, and transfer the environment data to the partition according to the heat and the entry threshold; A creation module, used to define blocks using the environment data in each partition, insert heat labels into the blocks, sort the blocks in descending order of heat, and create a data stack according to the sorting result; The pop-up module is used to locate the immediate number block in the partition, push the immediate number block into the data stack, rearrange the data stack, and pop the number block at the bottom of the data stack into the partition to build a data call link between the partition and the data stack.

9. The gas meter production environment data acquisition system according to claim 8, characterized in that: The definition module includes: A remark unit, used to trace back the source of the environmental data, determine a standardized description language, the description language includes: high risk, low risk and unstable, define the risk level of the source, and use the risk level to classify the environmental data; A construction unit is used to construct a data transfer strategy between partitions.

10. The gas meter production environment data acquisition system according to claim 9, characterized in that: The transfer module comprises: A calculation unit is used to define a matching item in the environmental data and calculate an adjustment value of the matching item using a preset frequency adjustment formula, wherein the preset frequency adjustment formula is: t =αN t +(1-α)E t-1 , where t is time, E t is the adjustment value at time t, α is the smoothing coefficient (0<α≤1), N t is the number of visits to the matching item within time t; a correction unit, configured to correct the access frequency using the calculated adjustment value; A division unit, used to divide the corrected access frequency into several levels and determine the heat of different levels; A construction unit is used to determine the correspondence between different levels and popularity, and to construct an access frequency-popularity comparison table; The judgment unit is used to determine the entry threshold of each partition, and judge whether the heat of the environmental data meets the entry threshold. If yes, the environmental data is classified into the partition; if not, other partitions are traversed continuously.

Citation Information

Patent Citations

  • Hybrid main storage architecture based efficient dynamic page scheduling method

    CN107193646A

  • Method and device for optimizing range query in key value storage system based on key value separation

    CN116910314A

  • Data processing method and device, equipment and storage medium

    CN117609345A

  • Heterogeneous storage-oriented cold and hot data management method and system

    CN118093596A

  • Production line safety supervision system and method for wine raw material processing workshop

    CN118226795A

Cited By

  • Big data acquisition method and system

    CN119788705A