Industrial equipment data storage method, apparatus, device, and medium

By generating and caching sampling records through a sampling thread, and writing them in batches into an in-memory data table through a storage thread and then writing them to the hard disk using a columnar storage method, the problems of database complexity and resource waste in existing technologies are solved, and efficient and stable data storage for industrial equipment is achieved.

CN123178771APending Publication Date: 2026-11-27ADVANCED MATERIALS TECH & ENG INC +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611622168.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-20
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing industrial equipment data storage solutions suffer from problems such as complex database deployment, high maintenance costs, increased CPU and I/O load, wasted storage space due to redundant null values, and poor system stability, especially when adding new equipment, which affects system continuity and stability.

Method used

The sampling thread generates target sampling records and writes them to the sampling queue, while the storage thread writes them to the memory data table in batches in the form of a narrow table. During archiving, the data is written to the hard disk using a columnar storage method, decoupling the sampling and storage processes, reducing frequent I/O operations, and supporting high-frequency data storage.

Benefits of technology

It reduces system resource consumption and operation and maintenance costs, improves storage space utilization and system stability, enhances system scalability and maintainability, and supports flexible and efficient storage of multi-frequency data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178771A_ABST
    Figure CN123178771A_ABST
Patent Text Reader

Abstract

The application discloses an industrial equipment data storage method and device, equipment and medium, and relates to the field of semiconductor host computer software. The method comprises the following steps: for the equipment monitoring point, at the current time, when the current sampling time of the equipment monitoring point is reached, a target data acquisition method is called to acquire target equipment data, a target sampling time interval is calculated, a target sampling record is generated according to the target equipment name of the equipment monitoring point, the target sampling time interval and the target equipment data, and the next sampling time of the equipment monitoring point is updated; the target sampling record is written into a sampling queue; the target sampling record is taken out from the sampling queue in batches, and is written into a memory data table in batches; when the memory data table meets the archiving condition, a column storage mode is adopted, all target sampling records in the memory data table are used to generate a target archiving file, and the target archiving file is written into a hard disk storage file in a persistent manner. The technical scheme of the embodiment of the application improves the storage space utilization rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of semiconductor host computer software, and more particularly to a method, apparatus, device, and medium for storing data in industrial equipment. Background Technology

[0002] With the development of the Industrial Internet of Things (IIoT) and smart manufacturing, the demand for the collection, storage, and retrieval of industrial equipment monitoring data is increasing daily. Numerous equipment monitoring points generate large amounts of equipment data to support applications such as equipment status monitoring, historical trend analysis, and fault diagnosis.

[0003] Currently, industrial equipment data is primarily stored using relational databases and wide tables. The system periodically reads equipment data and inserts it into the database table; simultaneously, the data recording process generates a log index file. In the wide table structure, sampling timestamps are typically used as rows, with each device or variable as a column, recording the sampled values ​​at the corresponding time. The sampling period is usually uniformly set throughout the system to ensure a consistent table structure.

[0004] However, existing technical solutions have the following problems: First, database deployment is complex, requiring independent servers, database management systems, management tools, and backup systems, resulting in high overall maintenance costs; second, as the recording frequency increases, the log index refresh frequency also increases, leading to increased CPU (Central Processing Unit) and IO (Input / Output) loads; third, a large number of redundant null values ​​are generated in wide tables, wasting storage space; finally, when new devices are needed, the existing table structure usually needs to be changed, which may affect the continuity and stability of system operation. Summary of the Invention

[0005] This invention provides a method, apparatus, equipment, and medium for storing industrial equipment data, which reduces the overall maintenance cost of the system, alleviates system resource consumption, improves the utilization rate of storage space, and enhances the continuity and stability of system operation.

[0006] According to one aspect of the present invention, an industrial equipment data storage method is provided, the method comprising: A sampling thread is used to traverse all device monitoring points, and for each device monitoring point, the current time is compared with the current sampling time of the device monitoring point. When the current sampling time of the device monitoring point is reached at the current time, the target data acquisition method of the device monitoring point is called to acquire the target device data, calculate the difference between the current sampling timestamp and the previous sampling timestamp to obtain the target sampling time interval, and generate a target sampling record based on the target device name of the device monitoring point, the target sampling time interval and the target device data, and update the next sampling time of the device monitoring point. Write the target sampling record into the sampling queue; A storage thread is used to retrieve target sampling records in batches from the sampling queue and write them in batches into a memory data table in the form of a narrow table; Check whether the memory data table meets the archiving conditions; When the memory data table meets the archiving conditions, a columnar storage method is adopted, with the target device name, the target sampling time interval, and the target device data as column fields. Based on all the target sampling records in the memory data table, a target archive file is generated and persistently written to the hard disk storage file.

[0007] According to another aspect of the present invention, an industrial equipment data storage device is provided, the device comprising: The device monitoring point traversal module is used to traverse all device monitoring points using a sampling thread, and for each device monitoring point, compare the current time with the current sampling time of the device monitoring point. The device data acquisition module is used to call the target data acquisition method of the device monitoring point when the current sampling time of the device monitoring point is reached at the current time, acquire the target device data, calculate the difference between the current sampling timestamp and the previous sampling timestamp to obtain the target sampling time interval, generate a target sampling record according to the target device name of the device monitoring point, the target sampling time interval and the target device data, and update the next sampling time of the device monitoring point. The sampling queue writing module is used to write the target sampling record into the sampling queue; The in-memory data table batch write module is used to retrieve target sampling records in batches from the sampling queue using a storage thread, and write them in batches into the in-memory data table in the form of a narrow table; The archiving condition detection module is used to detect whether the memory data table meets the archiving conditions; The persistent storage module is used to generate a target archive file and persistently write it to a hard disk storage file when the memory data table meets the archiving conditions, using a columnar storage method, with the target device name, the target sampling time interval, and the target device data as column fields.

[0008] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the industrial equipment data storage method according to any embodiment of the present invention.

[0009] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions, the computer instructions being configured to cause a processor to execute and implement the industrial equipment data storage method according to any embodiment of the present invention.

[0010] The technical solution of this invention firstly writes the generated target sampling records into a sampling queue through a sampling thread, and then a separate storage thread retrieves them in batches from the sampling queue and writes them into a memory data table. This decouples the sampling process from the storage process, avoiding the frequent I / O overhead caused by directly operating the storage medium for each sampling. Simultaneously, the archiving operation writes the records from the memory data table to the hard disk storage file in batches, reducing the number of disk writes and the log index refresh frequency, thereby effectively reducing CPU and I / O load and improving the system's throughput and stability in high-frequency sampling scenarios. Secondly, when generating target sampling records, the actual time interval between the current sampling and the previous sampling is recorded, rather than relying on a uniform sampling period. The memory data table uses a narrow table format, with each record containing only the target device name, the target sampling time interval, and the target device data, fundamentally eliminating the need for a fixed sampling period. The traditional wide-table structure suffers from a large number of redundant null values ​​due to inconsistent sampling frequencies. This invention enables different monitoring points to independently trigger data collection according to their respective preset sampling time intervals, achieving unified storage of multi-frequency data and improving storage space utilization and data accuracy. Furthermore, the target archive file adopts a columnar storage method, persistently writing only the target device name, target sampling time interval, and target device data as fixed column fields to the disk storage file. This eliminates reliance on relational databases and their associated servers, management tools, and backup systems, simplifying the system deployment architecture and reducing hardware and maintenance costs. Moreover, since the storage structure no longer uses devices or variables as columns, adding new monitoring points only requires adding corresponding rows of data without modifying the existing table structure. This avoids system downtime or instability caused by table structure modifications, enhancing system scalability and maintainability. In summary, the technical solution of this invention reduces system resource consumption and maintenance complexity while achieving flexible, efficient, and scalable storage of multi-frequency industrial equipment data.

[0011] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0012] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0013] Figure 1 This is a flowchart of a first industrial equipment data storage method provided according to Embodiment 1 of the present invention; Figure 2 This is a flowchart of a second industrial equipment data storage method provided according to Embodiment 2 of the present invention; Figure 3 This is a flowchart of a third industrial equipment data storage method provided in Embodiment 2 of the present invention; Figure 4 This is a flowchart of a multi-frequency dynamic sampling method provided in Embodiment 2 of the present invention; Figure 5 This is a flowchart of a data reconstruction method provided in Embodiment 2 of the present invention; Figure 6 This is a schematic diagram of the structure of an industrial equipment data storage device according to Embodiment 3 of the present invention; Figure 7 This is a schematic diagram of the structure of an electronic device that implements the industrial equipment data storage method of this invention. Detailed Implementation

[0014] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0015] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0016] Example 1 Figure 1This is a flowchart illustrating an industrial equipment data storage method according to Embodiment 1 of the present invention. This embodiment of the invention is applicable to situations involving compressed storage of industrial equipment data. The method can be executed by an industrial equipment data storage device, which can be implemented in hardware and / or software and can be configured in an electronic device that performs industrial equipment data storage functions.

[0017] See Figure 1 The industrial equipment data storage method shown includes: S101. Using a sampling thread, traverse all device monitoring points and compare the current time with the sampling time of the device monitoring point for each device monitoring point.

[0018] The sampling thread is the thread that executes sampling scheduling and data acquisition tasks. Optionally, the sampling thread can run in real time or at a fixed pace. The sampling thread is used to traverse all device monitoring points. A device monitoring point is a data point in industrial equipment that needs to be collected and monitored. The device monitoring point is the basic unit for sampling scheduling and data acquisition.

[0019] The current time is the time indicated by the system clock when the sampling thread performs sampling and judgment on a certain device monitoring point during the traversal process. The current time T is used in conjunction with the sampling time t of this device monitoring point. n A comparison is made to determine whether the sampling time has been reached. The sampling time t for this instance... n This refers to the time point at which data acquisition should be triggered for the monitoring point of this device. The sampling time is used for sampling scheduling. After each data acquisition is completed for the monitoring point of this device, the next sampling time t is updated according to the sampling time interval of the monitoring point. n+1 .

[0020] Optionally, a sampling thread can be used to traverse all device monitoring points at a fixed period.

[0021] Optionally, a sampling thread can be used to traverse all device monitoring points in real time.

[0022] Specifically, for each device monitoring point, the current time T and the sampling time t of the device monitoring point are compared. n Compare them.

[0023] S102. When the current sampling time of the device monitoring point is reached at the current time, the target data acquisition method of the device monitoring point is called to obtain the target device data, calculate the difference between the current sampling timestamp and the previous sampling timestamp to obtain the target sampling time interval, and generate the target sampling record according to the target device name, target sampling time interval and target device data of the device monitoring point, and update the next sampling time of the device monitoring point.

[0024] The target data acquisition method is used to acquire target device data at device monitoring points. Optionally, a target data acquisition method can be pre-configured for a specific device monitoring point. Different device monitoring points can be configured with different target data acquisition methods based on device type and communication protocol. For example, the target data acquisition method includes methods, functions, or interfaces for reading the corresponding data of the device monitoring point from industrial equipment or data sources.

[0025] The target equipment data refers to the real-time data values ​​read during a single sampling process using a target data acquisition method corresponding to a specific monitoring point of the equipment. For example, the target equipment data may include process parameter values ​​such as the current temperature, current pressure, current flow rate, and current rotational speed of a certain sensor on the equipment. Optionally, the target equipment data may be business data obtained after processing according to data parsing rules.

[0026] This sampling timestamp T n This is the time point recorded by the system when data acquisition was performed on a specific monitoring point of a device. The sampling timestamp is T. n Used to identify the actual time when this sampling occurred. Sampling timestamp T n This is the subsequent calculation of the target sampling time interval. The foundation. Last sampling timestamp T n-1 This is the timestamp recorded during the most recent successful data acquisition for the same monitoring point prior to this sampling.

[0027] Target sampling time interval The timestamp T for this sampling n Compared with the last sampling timestamp T n-1 The difference between them. Due to factors such as the scheduling delay of the sampling thread and the device response time, the target sampling time interval... Possibly related to the preset sampling time interval Not entirely consistent. Target sampling time interval. This is used to characterize the actual time elapsed between two adjacent samples taken from a monitoring point of the device. Target sampling time interval. It can be recorded in the sampling log. Target sampling time interval. It is used as the actual sampling time interval in subsequent columnar storage.

[0028] The equipment name refers to the equipment to which the monitoring point belongs. The equipment name is used to distinguish different process equipment or equipment data collection points.

[0029] The target sampling record is the record generated after a single sampling is completed, based on the target device name at the monitoring point and the target sampling time interval calculated in this instance. And the target device data generated as a single data record. The target sampling record is used for subsequent batch writing to the memory table and archive storage.

[0030] Specifically, the sampling time t at which the device reaches the monitoring point at the current time T. n At that time, the target data acquisition method of the device monitoring point is called to obtain the target device data and calculate the sampling timestamp T. n and the last sampling timestamp T n-1 The difference between them yields the target sampling time interval. .

[0031] In this method, the last sampling timestamp is stored using an overwrite storage approach. This can be understood as the last sampling timestamp being stored in the variable corresponding to the data structure of each device monitoring point. Each time a device monitoring point is sampled, the variable value corresponding to the last sampling timestamp is overwritten. In comparison, the storage method and purpose of the last sampling timestamp and the target sampling time interval are different. Specifically, the target sampling time interval is stored separately for each sampling for subsequent queries. However, by overwriting the last sampling timestamp with each sampling, time-compressed storage is achieved, providing a basis for calculating the target sampling time interval.

[0032] Specifically, based on the target device name and target sampling time interval at the equipment monitoring point. Combine the target device data to generate a target sampling record.

[0033] Specifically, when performing the first sampling of the equipment monitoring point, the timestamp of the first sampling is recorded at the same time as the target sampling record, which serves as the data start time of the equipment monitoring point.

[0034] Specifically, the sampling timestamp T corresponding to the equipment monitoring point. n and preset sampling time interval Perform summation and update the next sampling time t of the device monitoring point. n+1 Among them, the preset sampling time interval The sampling time interval for pre-set equipment monitoring points.

[0035] In an optional embodiment of the present invention, updating the next sampling time of the device monitoring point includes: calculating the target sampling lag time between the current sampling timestamp and the current sampling time; comparing the target sampling lag time with a preset lag time threshold; when the target sampling lag time exceeds the preset lag time threshold, updating the next sampling time of the device monitoring point by adding a preset sampling time interval of the device monitoring point based on the current sampling time; when the target sampling lag time does not exceed the preset lag time threshold, updating the next sampling time of the device monitoring point by adding a preset sampling time interval of the device monitoring point based on the current sampling timestamp.

[0036] The target sampling lag time is for a specific monitoring point of a device, and the sampling timestamp T is used for this sampling. n Later than the originally scheduled sampling time t of the monitoring point of the device. n The duration of the sampling. Wherein, the timestamp T for this sampling... n Used to characterize the actual moment when data is acquired. The originally planned sampling time t for this operation. n This refers to the originally planned sampling time for the device monitoring point. The target sampling lag time is used to characterize the degree of deviation in the sampling time caused by factors such as scheduling delay and device response delay.

[0037] A preset lag duration threshold is used to determine whether sampling lag requires compensation. The preset lag duration threshold is a pre-defined lower limit for the sampling lag duration at which compensation is required. When the target sampling lag duration at a monitoring point exceeds this preset lag duration threshold, a lag compensation operation can be triggered. For example, the lag compensation operation may include adjusting the next sampling time t of the monitoring point. n+1 This could involve adjusting the update method or increasing the traversal priority of the device's monitoring points in the next sampling cycle. Optionally, the preset lag time threshold can be pre-configured and adjusted based on system real-time requirements, sampling cycle accuracy requirements, or device characteristics.

[0038] Specifically, calculate the timestamp T of this sampling. n The original sampling time t of the equipment monitoring point n The difference between the two values ​​yields the target sampling lag time. The target sampling lag time is then compared to a preset lag time threshold. If the target sampling lag time exceeds the preset lag time threshold, the sampling is stopped at the originally scheduled sampling time t. n Based on this, the preset sampling time interval of the equipment monitoring points is superimposed. Update the next sampling time t of the device monitoring point. n+1 If the target sampling lag time does not exceed the preset lag time threshold, the actual sampling timestamp T will be used. nBased on this, the preset sampling time interval of the equipment monitoring points is superimposed. Update the next sampling time t of the device monitoring point. n+1 .

[0039] During the scheduling of the sampling thread, the actual sampling time of the device monitoring points may be later than the originally scheduled sampling time t due to late traversal order, device response delay, or system load fluctuations. n This results in a sampling lag; if the current sampling timestamp T is used directly... n If a preset sampling time interval is superimposed on the baseline to update the next sampling time, then this lag will be fixed into the subsequent sampling plan of the monitoring point of the device, and will continue to accumulate in each subsequent sampling cycle, causing the deviation between the actual sampling time of the point and the preset time baseline to gradually increase, eventually leading to the overall drift of the sampling time series and affecting the accuracy of historical data reconstruction.

[0040] This scheme calculates the target sampling lag time and compares it with a preset lag time threshold. When the lag exceeds the threshold, the actual sampling time is no longer used as the reference; instead, the original sampling time t is used. n Based on the preset sampling time interval, To update the next sampling time t n+1 This approach ensures that subsequent sampling points at the monitored locations of the device return to the preset timeline, effectively preventing the cumulative transmission of lag errors and maintaining the long-term stability of the sampling timing at each location. Simultaneously, the update strategy of changing the next sampling time only when the sampling lag time exceeds a preset threshold avoids increasing the scheduling burden on sampling threads by frequently adjusting for minor lags, while also promptly correcting the time base when severe lags occur, balancing system efficiency and sampling timing accuracy. Furthermore, because the actual sampling time at each monitored location is kept as consistent as possible with the preset sampling plan, the calculated target sampling time interval is closer to the preset sampling time interval of the monitored location, improving the accuracy and reliability of the target time interval in the target sampling records, memory data tables, and subsequent target archive files, thereby enhancing the reliability of device status analysis and fault diagnosis.

[0041] S103. Write the target sampling record into the sampling queue.

[0042] The sampling queue is a data structure for temporarily caching target sampling records. For example, the sampling queue can be a first-in, first-out (FIFO) queue. Each target sampling record generated by the sampling thread is first written to the sampling queue, and then the storage thread retrieves the target sampling records from the sampling queue in batches. The sampling queue is used to decouple the sampling thread and the storage thread, smoothing out the processing speed difference between the two threads and avoiding blocking of sampling scheduling due to storage operations.

[0043] Specifically, the target sampling records are written into the sampling queue according to the time sequence in which they are generated.

[0044] S104. Using a storage thread, target sampling records are retrieved in batches from the sampling queue and written in batches to the memory data table in the form of a narrow table.

[0045] A storage thread is a thread that runs independently of the sampling thread. The storage thread is used to retrieve target sampling records in batches from the sampling queue and write them to an in-memory data table in a narrow table format. The storage thread can work in parallel with the sampling thread, improving the data writing efficiency of industrial equipment and reducing the impact on sampling timing.

[0046] Narrow table format is a data table organization method. Each row records only one data field value from a single device monitoring point in a single sampling, typically including columns such as target device name, target sampling time interval, and target device data. Unlike wide table format, narrow table format does not generate a large number of null values ​​due to some points having no data, and can flexibly support device monitoring points with different sampling frequencies.

[0047] The in-memory data table is a data table structure maintained in system memory. It is used to temporarily store sample records retrieved in batches from the sampling queue. The in-memory data table serves as a buffer before archiving to disk files. It organizes data in a narrow table format to facilitate subsequent batch archiving and columnar storage conversion.

[0048] Specifically, a storage thread is used to periodically access the sampling queue and retrieve multiple target sampling records in batches according to their enqueue order. The retrieved sampling records are then arranged in a narrow table format, and the arranged batch of data rows is written into an in-memory data table. Optionally, the number of sampling records retrieved in a single batch can be all or a portion of the sampling records in the sampling queue.

[0049] S105. Check whether the memory data table meets the archiving conditions.

[0050] The archiving condition is the trigger condition for writing the target sampled records in the memory data table to the hard disk storage file in batches. For example, the archiving condition can be a time interval condition, such as a preset time length since the last archiving; the archiving condition can also be a record quantity condition in the memory data table, such as the number of sampled records in the memory data table reaching a preset record quantity threshold; the archiving condition can also be a combination of the time interval condition and the record quantity condition in the memory data table.

[0051] Specifically, an archiving condition is used to check whether the in-memory data table meets the archiving criteria. If the in-memory data table meets the archiving criteria, the archiving operation is performed; otherwise, sampling and caching continue.

[0052] In an optional embodiment of the present invention, detecting whether the memory data table meets the archiving conditions includes: detecting whether the target memory occupancy rate of the memory data table reaches a preset memory occupancy rate threshold, and detecting whether the number of target sampling records in the memory data table reaches a preset record number threshold; correspondingly, when the memory data table meets the archiving conditions, a columnar storage method is adopted, using the target device name, target sampling time interval, and target device data as column fields, and generating a target archive file based on all target sampling records in the memory data table and persistently writing it to the hard disk storage file, including: when the target memory occupancy rate of the memory data table reaches the preset memory occupancy rate threshold, a columnar storage method is adopted, using the target device name, target sampling time interval, and target device data as column fields, and generating a target archive file based on all target sampling records in the memory data table and persistently writing it to the hard disk storage file; when the target memory occupancy rate of the memory data table does not reach the preset memory occupancy rate threshold, and the number of target sampling records in the memory data table reaches the preset record number threshold, a columnar storage method is adopted, using the target device name, target sampling time interval, and target device data as column fields, and generating a target archive file based on all target sampling records in the memory data table and persistently writing it to the hard disk storage file.

[0053] The target sample record count is the total number of target sample records cached but not yet archived in the in-memory data table. The target sample record count increases as the storage thread reads target sample records in batches from the sampling queue and writes them to the in-memory data table. The target sample record count is reset to zero after the archiving operation is complete.

[0054] The preset record quantity threshold is a pre-defined upper limit on the number of sampled records that trigger the archiving operation. This threshold is used to determine whether to trigger the archiving operation. When the number of target sampled records in the memory data table reaches or exceeds this preset threshold, the archiving conditions are considered met, and an archiving operation is triggered, writing all sampled records from the memory data table to the hard disk storage file in batches. Optionally, the preset record quantity threshold can be pre-configured and adjusted based on system memory capacity, write performance, and query timeliness requirements.

[0055] The target memory utilization rate is the ratio of the memory space occupied by cached sampling records in the memory data table or system memory to the available memory space. The target memory utilization rate is used to monitor memory usage and prevent memory overflow or system performance degradation due to excessive cached data. Optionally, the target memory utilization rate can be calculated separately for each memory data table or for the entire system memory.

[0056] The preset memory usage threshold is a pre-defined upper limit for memory usage that triggers the archiving operation. This threshold is used to determine whether the archiving operation needs to be triggered in advance. When the target memory usage reaches or exceeds the preset threshold, the archiving operation can be triggered even if other archiving conditions are not met (e.g., the number of sampled records has not reached the preset record number threshold). This writes the target sampled records from the memory data table to the hard disk storage file, freeing up memory space and ensuring stable system operation.

[0057] Specifically, it checks whether the number of target sampling records in the memory data table is greater than or equal to a preset record number threshold, and whether the target memory occupancy rate of the memory data table is greater than or equal to a preset memory occupancy rate threshold.

[0058] Specifically, when the target memory usage rate of the memory data table reaches the preset memory usage rate threshold, a columnar storage method is adopted, with the target device name, target sampling time interval, and target device data as column fields. Based on all target sampling records in the memory data table, a target archive file is generated and persistently written to the hard disk storage file.

[0059] Specifically, when the target memory utilization rate of the memory data table does not reach the preset memory utilization rate threshold, and the number of target sampling records in the memory data table reaches the preset record number threshold, a columnar storage method is adopted, with the target device name, target sampling time interval, and target device data as column fields. Based on all target sampling records in the memory data table, a target archive file is generated and persistently written to the hard disk storage file.

[0060] In industrial equipment data storage, if archiving is triggered only at fixed time periods, it is difficult to match the fluctuations in the data generation rate. That is, when the data surges, memory may be tight or even overflow before archiving. When the data volume is small, frequent small-batch writes to disk increase the I / O burden. If only the number of sampled records is used as the basis, although batch writing is possible, when the single record is large or there are many points, the memory usage may approach the limit before the number of records is reached, and there is still a memory safety risk.

[0061] This solution simultaneously detects the target memory usage rate and the target number of sampled records, and sets a memory usage rate threshold to prioritize archiving. When the target memory usage rate reaches the preset threshold, archiving is initiated immediately regardless of whether the number of records meets the threshold, thus prioritizing memory safety and preventing crashes or sampling interruptions due to excessive caching. When the target memory usage rate is within a safe range and the target number of sampled records reaches the preset record number threshold, the combination of these two conditions avoids system instability or inefficiency caused by a single condition, and achieves a dynamic balance between memory safety and write efficiency. Furthermore, the memory usage rate threshold can adapt to different hardware and load conditions, enhancing the system's adaptability in various industrial scenarios. In summary, this solution effectively improves archiving write efficiency and storage resource utilization while ensuring system stability and preventing memory overflow, making it suitable for reliable storage of large-scale and high-frequency industrial equipment data.

[0062] S106. When the memory data table meets the archiving conditions, a columnar storage method is adopted, with the target device name, target sampling time interval and target device data as column fields. Based on all target sampling records in the memory data table, a target archive file is generated and persistently written to the hard disk storage file.

[0063] The target archive file is a write file generated from the target sampling records in the memory data table when the archiving conditions are met. The target archive file is used to persistently store sampling data over a period of time. The target archive file can be organized in a columnar storage manner to facilitate quick querying and aggregation by device name. Optionally, the target archive file can be divided by time, device name, or data batch.

[0064] Columnar storage organizes and stores data by columns. In columnar storage, data within the same column is stored contiguously. For example, the target device name column, the target sampling time interval column, and the target device data column can be stored separately. Columnar storage facilitates batch reading, aggregation, and compression of a specific column, reduces the reading of irrelevant data, and improves query and analysis efficiency.

[0065] The column field is the name of the data field corresponding to each column. The column field is used to define the meaning of the data stored in each column. The column field is the basis for locating and retrieving the target column during a query. For example, in the target archive file, the target device name, the target sampling time interval, and the target device data can be used as column fields.

[0066] Disk storage files are used to persistently store archived sampling data. For example, a disk storage file is a file on a non-volatile storage medium. The disk storage file is organized in a columnar storage format. For example, a disk storage file may include a target device name column, a target sampling time interval column, and a target device data column.

[0067] Specifically, when the memory data table meets the archiving conditions, all target sampling records in the memory data table are read. The target device name is extracted from each target sampling record and arranged consecutively in record order to form a target device name column. The target sampling time interval is extracted from each target sampling record and arranged consecutively in record order to form a target sampling time interval column. The target device data is extracted from each target sampling record and arranged consecutively in record order to form a target device data column. A target archive file is created, and the target device name column, target sampling time interval column, and target device data column are written to the target archive file sequentially. The target archive file is then persistently written to a disk storage file.

[0068] Accordingly, after persistently writing the target archive file to the disk storage file, the target archive file is closed and the memory data table is cleared to free up memory space.

[0069] In an optional embodiment of the present invention, after adopting a columnar storage method, using the target device name, target sampling time interval, and target device data as column fields, generating a target archive file based on all target sampling records in the memory data table, and persistently writing it to the hard disk storage file, the method further includes: when a data query request is detected, aggregating all columnar storage data in the hard disk storage file according to the query device name included in the data query request to obtain a query sampling time interval list and a query device data list corresponding to the query device name; and reconstructing the historical time series based on the data start time, the query sampling time interval list, and the query device data list, and generating a historical trend curve.

[0070] A data query request is a request initiated by a user or upper-layer application to query historical device data for a specific device. A data query request is used to obtain historical device data for a specific device's monitoring point within a specified time range. A data query request may include the name of the device to be queried and the start time of the data. Optionally, the data query request may also include parameters such as the query end time and a limit on the number of sampling points.

[0071] The query device name refers to the name of the device for which historical device data needs to be retrieved in the data query request. During the query process, the query device name is used as the key field to filter out the historical device data corresponding to the query device name from all columnar storage data in the hard disk storage file.

[0072] The total columnar storage data refers to all sampled data stored in a columnar format within the hard disk storage file. For example, the total columnar storage data includes columns for the target device name, the target sampling time interval, and the target device data. During data querying, the column data corresponding to the queried device name is extracted from the total columnar storage data for subsequent time series reconstruction.

[0073] The query sampling time interval list is a list of all query sampling time intervals corresponding to the query device name, filtered from all columnar storage data. All query sampling time intervals in the list can be arranged in chronological order. The query sampling time interval is the difference between two adjacent sampling timestamps.

[0074] The query device data list is a list of all query device data corresponding to the query device name, filtered from all columnar storage data. All query device data in the list can be arranged in chronological order. Each query device data record in the query device data list corresponds one-to-one with a query sampling time interval in the query sampling time interval list. The query sampling time interval list and the query device data list are used to reconstruct historical time series.

[0075] The data start time is the starting point for reconstructing the historical time series. The data start time is also the starting point of the query time range. Alternatively, the data start time can be the sampling timestamp corresponding to the earliest sampling record of the queried device name in the hard disk storage file.

[0076] The historical time series is a time series reconstructed based on the data start time, the list of query sampling time intervals, and the list of query device data. The historical trend curve is a curve generated based on the query historical time series. The historical trend curve is used to visualize the changing trend of the query device data over time. The historical trend curve can be output to the user interface for device status analysis, fault diagnosis, or historical trend viewing.

[0077] Specifically, when a data query request is detected, all columnar stored data in the hard disk storage file is aggregated based on the query device name included in the data query request to obtain a list of query sampling time intervals and a list of query device data corresponding to the query device name.

[0078] Specifically, when reconstructing the historical time series, the starting time of the data is taken as the first time point. Each query sampling time interval in the query sampling time interval list is accumulated sequentially to obtain the timestamp corresponding to each data point. This timestamp is then combined with the corresponding query device data in the query device data list to form the query historical time series. A historical trend curve is generated with the timestamp corresponding to each data point as the horizontal axis and the query device data as the vertical axis.

[0079] Upon receiving a data query request, this solution directly reads the corresponding columnar storage data from the hard disk storage file based on the queried device name, eliminating the need to load or scan data from other devices. This reduces irrelevant data reads and disk I / O overhead during the query process, improving the response speed and efficiency of historical queries. Furthermore, using the data start time as a baseline, it sequentially accumulates each query sampling time interval in the query sampling time interval list to determine the timestamp of each data point, mapping it one-to-one with the data of each queried device in the query device data list. This reconstructs the query history time series without storing the absolute timestamp of each data point in the archive file; only the start time and each actual sampling time interval are needed to reconstruct the complete time series during the query. This effectively reduces the storage fields and data volume of the archive file while maintaining time accuracy. Finally, a query history trend curve is generated based on the reconstructed query history time series, allowing users to intuitively observe the changing trends of device data over time, providing a reliable basis for device operation status analysis, anomaly detection, and fault diagnosis. In summary, this solution improves query efficiency and reduces storage overhead while enhancing the accuracy of historical data recovery and visualization analysis capabilities.

[0080] In an optional embodiment of the present invention, the query sampling record includes a data quality identifier; the data quality identifier is used to indicate the validity of the query sampling record; accordingly, before aggregating all columnar storage data in the hard disk storage file according to the query device name included in the data query request to obtain the query sampling time interval list and the query device data list corresponding to the query device name, the method further includes: performing a validity check on the query sampling record according to the data quality identifier of the query sampling record; and filtering the query sampling record when it is invalid.

[0081] The query data quality identifier is used to characterize whether the query sample record is valid during the collection process. For example, the query data quality identifier indicates whether the data in the query sample record exceeds a reasonable range, or whether it has undergone interpolation or compensation processing. The query data quality identifier facilitates the filtering of invalid or abnormal data during subsequent storage, archiving, and historical queries. Optionally, the data quality identifier can be recorded together with the generated query sample record. For example, the query data quality identifier can include 0 and 1. 0 indicates an invalid query sample record; 1 indicates a valid query sample record.

[0082] Specifically, the validity of a query sample record is checked based on its query data quality identifier. If the query sample record is invalid, it is filtered out.

[0083] In the actual operation of industrial equipment, sampling data is often invalid or unreliable due to communication interruptions, equipment response timeouts, sensor failures, or values ​​exceeding limits. If these invalid sampling records are included in the aggregation and reconstruction of historical time series along with normal sampling records, it will directly introduce incorrect time intervals or data values, causing distortion of trend curves and thus misleading equipment condition assessment and fault diagnosis.

[0084] This solution clearly distinguishes the validity status of each sample record by writing a data quality identifier when generating the query sampling record, providing a reliable basis for subsequent data governance. Before aggregating the columnar storage data corresponding to the query device name according to the data query request, the query sampling records are first checked for validity based on the query data quality identifier, and invalid records are filtered out. This ensures that all data entering the query sampling time interval list and the query device data list are valid records. As a result, the reconstructed query historical time series no longer contains invalid data points, improving the reliability of the historical time series. Consequently, the final generated query historical trend curve can reflect the real change trend of device operation, thereby improving the accuracy and reliability of historical device data analysis. At the same time, the filtering operation is performed on demand during the query stage without modifying or deleting the archived original data. This preserves the complete data context for subsequent re-analysis under different quality strategies, and allows for flexible selection of whether to enable filtering according to actual application needs, balancing data integrity and analytical flexibility. Furthermore, since the filtering operation only targets the columnar data corresponding to the query device name, it does not increase the scanning and processing overhead of other irrelevant device data, effectively suppressing invalid data while ensuring query efficiency. In summary, this solution effectively eliminates the adverse effects of invalid sampled data on historical time series reconstruction and trend analysis without significantly increasing system complexity, thereby improving the overall reliability of the industrial equipment data storage and query system.

[0085] The technical solution of this invention firstly writes the generated target sampling records into a sampling queue through a sampling thread, and then a separate storage thread retrieves them in batches from the sampling queue and writes them into a memory data table. This decouples the sampling process from the storage process, avoiding the frequent I / O overhead caused by directly operating the storage medium for each sampling. Simultaneously, the archiving operation writes the records from the memory data table to the hard disk storage file in batches, reducing the number of disk writes and the log index refresh frequency, thereby effectively reducing CPU and I / O load and improving the system's throughput and stability in high-frequency sampling scenarios. Secondly, when generating target sampling records, the actual time interval between the current sampling and the previous sampling is recorded, rather than relying on a uniform sampling period. The memory data table uses a narrow table format, with each record containing only the target device name, the target sampling time interval, and the target device data, fundamentally eliminating the need for a fixed sampling period. The traditional wide-table structure suffers from a large number of redundant null values ​​due to inconsistent sampling frequencies. This invention enables different monitoring points to independently trigger data collection according to their respective preset sampling time intervals, achieving unified storage of multi-frequency data and improving storage space utilization and data accuracy. Furthermore, the target archive file adopts a columnar storage method, persistently writing only the target device name, target sampling time interval, and target device data as fixed column fields to the disk storage file. This eliminates reliance on relational databases and their associated servers, management tools, and backup systems, simplifying the system deployment architecture and reducing hardware and maintenance costs. Moreover, since the storage structure no longer uses devices or variables as columns, adding new monitoring points only requires adding corresponding rows of data without modifying the existing table structure. This avoids system downtime or instability caused by table structure modifications, enhancing system scalability and maintainability. In summary, the technical solution of this invention reduces system resource consumption and maintenance complexity while achieving flexible, efficient, and scalable storage of multi-frequency industrial equipment data.

[0086] Example 2 Figure 2 This is a flowchart illustrating an industrial equipment data storage method according to Embodiment 2 of the present invention. Based on the previous embodiments, this embodiment further adds the following steps before "using a sampling thread to traverse all equipment monitoring points": "obtaining the equipment sampling requirements corresponding to each industrial equipment; registering the point metadata for each equipment monitoring point according to the equipment sampling requirements; wherein the point metadata of the equipment monitoring point includes the target equipment name, preset sampling time interval, target data acquisition method, and next sampling time." This achieves flexible multi-frequency sampling, simplified scheduling, improved scalability and resource utilization, while laying the foundation for stable and efficient operation of the entire data acquisition, storage, and query process. It should be noted that parts not detailed in this embodiment can be found in the descriptions of other embodiments.

[0087] See Figure 2 The industrial equipment data storage method shown includes: S201. Obtain the equipment sampling requirements corresponding to each industrial device.

[0088] Industrial equipment refers to the monitored equipment within the semiconductor industry production environment. Industrial equipment is the data source corresponding to the monitoring points of the equipment.

[0089] Equipment sampling requirements are sampling needs specific to a particular industrial device. These requirements instruct the registration of metadata and the scheduling of sampling at the device monitoring points. Different industrial devices have different equipment sampling requirements for their monitoring points, which are configured separately when registering the point metadata. For example, equipment sampling requirements may include the target device name, a preset sampling time interval, the target data acquisition method, and the next sampling time.

[0090] Specifically, the system obtains the equipment sampling requirements corresponding to each industrial device that the user inputs in the user interface.

[0091] S202. Based on the equipment sampling requirements, register the point metadata for each monitoring point of the equipment.

[0092] Location metadata refers to the metadata of the monitored locations. Location metadata describes the basic attributes and sampling configuration of a single monitored location. Location metadata forms the basis for sampling thread scheduling, data acquisition, and record generation. For example, target location metadata includes the target device name, preset sampling time interval, target data acquisition method, and next sampling time.

[0093] Specifically, based on the target device name, preset sampling time interval, target data acquisition method, and next sampling time included in the device sampling requirements, the point metadata of each device monitoring point is registered.

[0094] In an optional embodiment of the present invention, after registering the point metadata of each device monitoring point according to the device sampling requirements, the method further includes: detecting the target device data change rate corresponding to each device monitoring point; shortening the preset sampling time interval of the device monitoring point when the target device data change rate exceeds a first preset change rate threshold; and extending the preset sampling time interval of the device monitoring point when the target device data change rate is lower than a second preset change rate threshold.

[0095] The target device data change rate is the degree or rate of change of the currently sampled target device data relative to the previously sampled target device data. For example, the target device data change rate can include the absolute value of the difference between two adjacent sampled data points, the amount of change per unit time, or the percentage change. The target device data change rate is used to measure the data fluctuation at the device monitoring point. It serves as the basis for determining whether the preset sampling time interval needs to be dynamically adjusted.

[0096] The first preset rate of change threshold is the upper limit of the rate of change of device data when a preset sampling time interval needs to be shortened. The first preset rate of change threshold is used to detect whether the data change of the target device is aggravated. When the rate of change of the target device data exceeds the first preset rate of change threshold, it indicates that the device status fluctuates greatly, which can trigger a shortening of the preset sampling time interval of the monitoring point of the device to increase the sampling density and reflect data changes more promptly.

[0097] The second preset rate of change threshold is a pre-defined lower limit for the rate of change of device data when a preset sampling time interval needs to be extended. This threshold is used to detect whether the data change of the target device is gradual. When the rate of change of the target device data is lower than the second preset rate of change threshold, it indicates that the device status is relatively stable, and extending the preset sampling time interval for the monitoring point of that device can be triggered to reduce the sampling frequency and decrease redundant data. The second preset rate of change threshold is less than or equal to the first preset rate of change threshold.

[0098] Specifically, the rate of change of the target device data corresponding to each monitoring point is compared with a first preset rate of change threshold and a second preset rate of change threshold. If the rate of change of the target device data exceeds the first preset rate of change threshold, the preset sampling time interval of the monitoring point is shortened. If the rate of change of the target device data is lower than the second preset rate of change threshold, the preset sampling time interval of the monitoring point is extended.

[0099] In the actual operation of industrial equipment, the changes in equipment data are often non-stationary, that is, they fluctuate drastically in some periods and remain relatively stable in others. The fixed sampling time interval set during registration is difficult to balance data capture integrity and resource utilization efficiency at the same time.

[0100] This solution automatically shortens the sampling interval when the target device data change rate exceeds a first preset change rate threshold. This allows for the capture of critical transient information during rapid data changes at a higher frequency, preventing the omission of important fluctuations or abnormal events due to excessively long sampling intervals, thereby improving the temporal resolution of the data and the accuracy of subsequent analysis. When the target device data change rate is below a second preset change rate threshold, the sampling interval is automatically extended. This reduces unnecessary frequent sampling during periods of stable data, thereby lowering the scheduling frequency of sampling threads, the write pressure on the sampling queue, the cache size of the memory data table, and the number of disk writes for subsequent archiving operations. Consequently, sampling resources can be allocated on demand based on the actual data changes at each device monitoring point, avoiding the large amount of redundant data and system resource waste caused by long-term fixed-frequency sampling at all device monitoring points. This allows the system to maintain low CPU and IO loads even in large-scale multi-device monitoring scenarios and effectively control the growth rate of storage space. In summary, this solution introduces a dynamic adjustment of the preset sampling interval based on the target device data change rate, ensuring complete capture of critical data while improving the efficiency of sampling resource utilization, system operating efficiency, and storage economy.

[0101] S203. Using a sampling thread, traverse all device monitoring points and compare the current time with the sampling time of the device monitoring point for each device monitoring point.

[0102] S204. When the current sampling time of the device monitoring point is reached at the current time, the target data acquisition method of the device monitoring point is called to obtain the target device data, calculate the difference between the current sampling timestamp and the previous sampling timestamp to obtain the target sampling time interval, and generate the target sampling record according to the target device name, target sampling time interval and target device data of the device monitoring point, and update the next sampling time of the device monitoring point.

[0103] S205. Write the target sampling record into the sampling queue.

[0104] S206. Using a storage thread, target sampling records are retrieved in batches from the sampling queue and written in batches to the memory data table in the form of a narrow table.

[0105] S207. Check whether the memory data table meets the archiving conditions.

[0106] S208. When the memory data table meets the archiving conditions, a columnar storage method is adopted, with the target device name, target sampling time interval and target device data as column fields. Based on all target sampling records in the memory data table, a target archive file is generated and persistently written to the hard disk storage file.

[0107] The technical solution of this invention pre-acquires the equipment sampling requirements of each industrial device and registers the target device name, preset sampling time interval, target data acquisition method, and next sampling time as point metadata. This allows different equipment monitoring points to set sampling frequencies as needed, avoiding the problems of low-frequency redundancy and high-frequency information insufficiency caused by the uniform sampling period in wide table solutions, and achieving unified and flexible scheduling of multi-frequency data. By recording the next sampling time in the point metadata, the scheduling logic of the sampling thread is simplified, the traversal and judgment efficiency is improved, and a single sampling thread can handle a large number of points. By pre-registering the preset sampling time interval and target data acquisition method, when adding or adjusting equipment monitoring points, only the point metadata needs to be modified, without changing the sampling thread or table structure, enhancing scalability and maintainability. By personalizing the point metadata, the actual number of samplings matches the requirements, reducing unnecessary collections and reducing the pressure on sampling threads, sampling queues, storage queues, and storage archiving, thus optimizing resource utilization efficiency. At the same time, based on the preset sampling time interval and next sampling time in the point metadata, the actual sampling interval can be accurately calculated, providing a reliable data foundation for narrow table storage and columnar archiving, and ensuring the accuracy of historical time series reconstruction. In summary, the technical solutions of the embodiments of the present invention not only achieve flexible sampling at multiple frequencies, simplified scheduling, and improved scalability and resource utilization, but also lay the foundation for the stable and efficient operation of the entire data acquisition, storage, and query process.

[0108] Figure 3 This is a flowchart of a data storage method for industrial equipment. Based on the above embodiments, Figure 3 This is a preferred embodiment of the present invention. See also: Figure 3 The industrial equipment data storage method shown includes: S301. Register the location metadata of the monitoring points of the equipment.

[0109] The metadata for each monitored device location includes the target device name, preset sampling interval, target data acquisition method, and next sampling time. For example, the target device name could be RF Power; the preset sampling interval could be 10ms; the target data acquisition method could be reading power sensor values; and the next sampling time at system startup could be 1000ms after system startup. Another example is the target device name could be Pressure; the preset sampling interval could be 50ms; the target data acquisition method could be reading pressure sensor values; and the next sampling time at system startup could be 1000ms after system startup.

[0110] Specifically, based on the equipment sampling requirements of industrial equipment, the point metadata of each equipment monitoring point is registered separately.

[0111] S302. Initialize the sampling plan for the equipment monitoring points using the point metadata of the monitoring points.

[0112] S303. A unified sampling thread is used to cyclically schedule the monitoring points of each device.

[0113] Specifically, a unified sampling thread is enabled, which traverses all registered device monitoring points at a fixed pace.

[0114] S304. For a single device monitoring point, check whether the current time has reached the sampling time; if not, execute S305; if yes, execute S306.

[0115] The target data acquisition method is invoked only when the current sampling time of the device's monitoring point arrives or exceeds the current time. This retrieves the target device data, generates a target sampling record, and updates the next sampling time. This allows for independent triggering of data collection at corresponding device monitoring points using different sampling frequencies, avoiding invalid timed writes.

[0116] Referring to the example above, at 1000ms, the monitoring points corresponding to the target device names RF Power and Pressure both meet the sampling conditions; thereafter, the monitoring point corresponding to the target device name RF Power will be triggered again at 1010ms, 1020ms, etc., while the monitoring point corresponding to the target device name Pressure will be triggered again at 1050ms, 1100ms, etc.

[0117] S305. Continue scanning the next device monitoring point and return to execute S304.

[0118] S306. Call the target data acquisition method to obtain target device data.

[0119] S307. For a single device monitoring point, calculate the difference between the current sampling timestamp and the previous sampling timestamp to obtain the target sampling time interval, and generate a target sampling record based on the target device name, target sampling time interval, and target device data of the device monitoring point.

[0120] When initial sampling is performed at a monitoring point of a device, the timestamp of the initial sampling is recorded simultaneously, serving as the data start time for that monitoring point. For each subsequent sampling, the absolute timestamp is not stored directly. Instead, the difference between the current sampling timestamp and the previous sampling timestamp is calculated to obtain the actual time interval, i.e., the target sampling time interval. Only this time increment, i.e., the target sampling time interval, is saved in the target sampling record. For the initial sampling record, its time increment can be defined as a preset sampling time interval or omitted.

[0121] For example, the target sampling time interval can be calculated using the following formula: ; In the formula, This is the target sampling time interval corresponding to this sampling. This is the timestamp for this sampling; This is the timestamp of the last sampling.

[0122] Referring to the example above, three consecutive samples of the monitoring point corresponding to the target device name RF Power could be "12:00:00.010", "12:00:00.020", and "12:00:00.030" in traditional absolute timestamps; while the time increment stored in this solution can be "-", "10", and "10". Here, "-" indicates omission.

[0123] S308. For a single device monitoring point, update the next sampling time based on the sum of the current sampling timestamp and the preset sampling time interval.

[0124] S309. Write the target sampling record into the sampling queue.

[0125] S310. Take out the target sampling records in batches from the sampling queue and write the target sampling records in batches into the memory data table.

[0126] The target sampling records for all device monitoring points are uniformly written into a single logical table (i.e., the target data table). The memory data table is a narrow table format. Each row in the memory data table contains only the device name (target device name, denoted as Name), the time increment (target sampling time interval, denoted as Elapsed), and the data value (target device data, denoted as Value). There is no need to create separate tables for each device monitoring point; for example, RF Power Table and Pressure Table are no longer required.

[0127] Referring to the example above, Table 1 shows a portion of the target sampling records in the memory data table. Wherein, RF Power is radio frequency power; RF Reflect is radio frequency reflected power; HV Voltage is high voltage; UPC Pressure is wafer back gas pressure controller pressure; and MFC1 Flow is mass flow controller No. 1 flow.

[0128] Each monitoring point has its own dedicated storage field. This can be understood as each monitoring point having the same data template. Each monitoring point's data template can reserve unused storage fields. The content of these unused fields can be set and adjusted later based on actual storage needs. For example, the data template might include fields such as Elapsed, Value, New Field 1, New Field 2, ... This solution only uses the Elapsed and Value fields. New Field 1, New Field 2, ... are reserved unused fields.

[0129] In this way, data from monitoring points of different devices can be stored together, reducing the number of tables and avoiding a large number of null values ​​in the wide table solution.

[0130] Each target sampling record collected by the sampling thread is first written to a concurrent queue (the sampling queue, denoted as the Concurrent Queue) to avoid direct disk operations. A separate storage thread retrieves multiple target sampling records in batches from the sampling queue and inserts them into an in-memory data table (denoted as the Memory Table). This decouples sampling from storage, reducing frequent disk I / O. For example, the storage thread can retrieve 100 target sampling records at a time and write them to the in-memory data table all at once, instead of writing them one by one.

[0131] S311. Check if the archiving conditions are met; if not, proceed to S312; if yes, proceed to S313.

[0132] The archiving conditions include time interval conditions or in-memory table record count conditions. For example, the time interval condition can be set to more than 2 seconds since the last archiving. The in-memory table record count condition can be set to the number of records in the in-memory data table exceeding a preset record count threshold N.

[0133] S312, Continue sampling and return to execute S304.

[0134] S313. Generate a target archive file based on all target sampling records in the memory data table and write it to the hard disk storage file.

[0135] Specifically, when the archiving conditions are met, all target sampling records in the memory data table are written to a disk storage file (denoted as a Parquet file) in columnar storage mode. This archiving operation generates an archive file from all target sampling records in the memory data table and persists it to the disk. After archiving, the memory data table is cleared, freeing up memory space.

[0136] S314. When a data query request is detected, read the hard disk storage file.

[0137] When querying historical device data, there is no need to import archived files into the database; instead, the data is read directly from the columnar storage file on the hard drive. This data query request only reads the columnar storage data corresponding to the queried device name, avoiding scanning irrelevant device data and improving query efficiency.

[0138] S315. Aggregate all columnar storage data in the hard disk storage file according to the name of the queried device to obtain a list of queried sampling time intervals and a list of queried device data.

[0139] After retrieving the columnar storage data corresponding to the queried device name, aggregate functions are used to group the data by the queried device name, generating a time increment list (i.e., a list of query sampling time intervals, denoted as Elapsed List) and a data value list (i.e., a list of queried device data, denoted as Value List).

[0140] Referring to the example above, if the device name being queried is RF Power, then the following formula can be used to query a list of sampling time intervals: ; In the formula, This is the query sampling time interval.

[0141] Referring to the example above, if the device name being queried is RF Power, then the following formula can be used to query the list of device data: ; In the formula, To query device data.

[0142] S316. Based on the list of query sampling time intervals and the list of query device data, reconstruct the historical time series and generate a historical trend curve.

[0143] Based on the data start time (e.g., 12:00:00.000) in the data query request and the above time increment list (i.e., the query sampling time interval list, denoted as Elapsed List), the absolute timestamps of each data point are accumulated sequentially, thereby reconstructing the complete historical time series and generating a historical trend curve.

[0144] in, Figure 4 This is a flowchart of a multi-frequency dynamic sampling method. See also... Figure 4 The multi-frequency dynamic sampling method shown includes: S401, Get the current time.

[0145] S402, Traverse the current sampling time of all device monitoring points.

[0146] S403. Check if the current time has reached the sampling time; if not, execute S404; if yes, execute S405.

[0147] S404. Continue scanning the next device monitoring point, then return to execute S403.

[0148] S405. Collect data from the target device.

[0149] S406. Calculate and record the target sampling time interval.

[0150] S407. Update the next sampling time based on the current sampling timestamp and the preset sampling time interval.

[0151] in, Figure 5 This is a flowchart of a data reconstruction method. See also... Figure 5 The data reconstruction methods shown include: S501, Read files stored on the hard disk.

[0152] S502, Group and aggregate by queried device name.

[0153] S503. Generate a list of query sampling time intervals.

[0154] S504. Generate a list of query device data.

[0155] S505, Get the data start time.

[0156] S506. Accumulate the query sampling time interval to obtain the timestamp corresponding to each data point.

[0157] S507, Restore historical time series.

[0158] S508, Generate historical trend curves.

[0159] This solution enables unified acquisition of multi-frequency industrial equipment data, time-incremental encoding, narrow table caching, columnar archiving, and efficient historical reconstruction. While ensuring query capabilities, it reduces storage redundancy and system load, and improves the flexibility and accuracy of querying and analysis.

[0160] Example 3 Figure 6 This is a schematic diagram of an industrial equipment data storage device provided in Embodiment 3 of the present invention. This embodiment of the invention is applicable to the compression and storage of industrial equipment data. The device can execute an industrial equipment data storage method and can be implemented in hardware and / or software. The device can be configured in an electronic device that carries the function of storing industrial equipment data.

[0161] See Figure 6The industrial equipment data storage device shown includes: an equipment monitoring point traversal module 601, an equipment data acquisition module 602, a sampling queue writing module 603, a memory data table batch writing module 604, an archiving condition detection module 605, and a persistent storage module 606. The equipment monitoring point traversal module 601 uses a sampling thread to traverse all equipment monitoring points and compares the current time with the sampling time of each monitoring point. The equipment data acquisition module 602, when the current time reaches the sampling time of the monitoring point, calls the target data acquisition method of the monitoring point to acquire the target equipment data, calculates the difference between the current sampling timestamp and the previous sampling timestamp to obtain the target sampling time interval, and generates a target sampling record based on the target equipment name, target sampling time interval, and target equipment data of the monitoring point, and updates the next sampling time of the monitoring point. The sampling time is specified in the following modules: a sampling queue writing module 603, used to write target sampling records into the sampling queue; a memory data table batch writing module 604, used to use a storage thread to retrieve target sampling records in batches from the sampling queue and write them in batches into the memory data table in a narrow table format; an archiving condition detection module 605, used to detect whether the memory data table meets the archiving conditions; and a persistent storage module 606, used to generate a target archive file and persistently write it to the hard disk storage file based on all target sampling records in the memory data table, using a columnar storage method when the memory data table meets the archiving conditions, with the target device name, target sampling time interval, and target device data as column fields.

[0162] The technical solution of this invention firstly writes the generated target sampling records into a sampling queue through a sampling thread, and then a separate storage thread retrieves them in batches from the sampling queue and writes them into a memory data table. This decouples the sampling process from the storage process, avoiding the frequent I / O overhead caused by directly operating the storage medium for each sampling. Simultaneously, the archiving operation writes the records from the memory data table to the hard disk storage file in batches, reducing the number of disk writes and the log index refresh frequency, thereby effectively reducing CPU and I / O load and improving the system's throughput and stability in high-frequency sampling scenarios. Secondly, when generating target sampling records, the actual time interval between the current sampling and the previous sampling is recorded, rather than relying on a uniform sampling period. The memory data table uses a narrow table format, with each record containing only the target device name, the target sampling time interval, and the target device data, fundamentally eliminating the need for a fixed sampling period. The traditional wide-table structure suffers from a large number of redundant null values ​​due to inconsistent sampling frequencies. This invention enables different monitoring points to independently trigger data collection according to their respective preset sampling time intervals, achieving unified storage of multi-frequency data and improving storage space utilization and data accuracy. Furthermore, the target archive file adopts a columnar storage method, persistently writing only the target device name, target sampling time interval, and target device data as fixed column fields to the disk storage file. This eliminates reliance on relational databases and their associated servers, management tools, and backup systems, simplifying the system deployment architecture and reducing hardware and maintenance costs. Moreover, since the storage structure no longer uses devices or variables as columns, adding new monitoring points only requires adding corresponding rows of data without modifying the existing table structure. This avoids system downtime or instability caused by table structure modifications, enhancing system scalability and maintainability. In summary, the technical solution of this invention reduces system resource consumption and maintenance complexity while achieving flexible, efficient, and scalable storage of multi-frequency industrial equipment data.

[0163] In an optional embodiment of the present invention, the device further includes: a device sampling requirement acquisition module, used to acquire the device sampling requirements corresponding to each industrial device before traversing all device monitoring points using a sampling thread; and a point metadata registration module, used to register the point metadata of each device monitoring point according to the device sampling requirements; wherein the point metadata of the device monitoring point includes the target device name, a preset sampling time interval, a target data acquisition method, and the next sampling time.

[0164] In an optional embodiment of the present invention, the device further includes: a device data change rate detection module, used to detect the target device data change rate corresponding to each device monitoring point after registering the point metadata of each device monitoring point according to the device sampling requirements; a preset sampling time interval shortening module, used to shorten the preset sampling time interval of the device monitoring point when the target device data change rate exceeds a first preset change rate threshold; and a preset sampling time interval extension module, used to extend the preset sampling time interval of the device monitoring point when the target device data change rate is lower than a second preset change rate threshold.

[0165] In an optional embodiment of the present invention, the device further includes: a columnar storage data aggregation module, used to aggregate all columnar storage data in the hard disk storage file after generating a target archive file based on all target sampling records in the memory data table and persistently writing it to the hard disk storage file, using the target device name, target sampling time interval, and target device data as column fields in a columnar storage method, and detecting a data query request; and a target historical trend curve generation module, used to reconstruct the historical time series based on the data start time, the query sampling time interval list, and the query device data list, and generate a historical trend curve.

[0166] In an optional embodiment of the present invention, the apparatus further includes: a sampling record validity detection module, configured to perform validity detection on the query sampling record based on the query data quality identifier of the query sampling record before aggregating all columnar storage data in the hard disk storage file according to the query device name included in the data query request to obtain the query sampling time interval list and the query device data list corresponding to the query device name; wherein the query sampling record includes a query data quality identifier; the query data quality identifier is used to indicate the validity of the query sampling record; and a sampling record filtering module, configured to filter the query sampling record when it is invalid.

[0167] In an optional embodiment of the present invention, the archiving condition detection module 605 includes: an archiving condition detection unit, used to detect whether the target memory occupancy rate of the memory data table reaches a preset memory occupancy rate threshold, and to detect whether the number of target sampling records in the memory data table reaches a preset record number threshold; correspondingly, the persistent storage module 606 includes: a first persistent storage unit, used to, when the target memory occupancy rate of the memory data table reaches the preset memory occupancy rate threshold, use a columnar storage method, with the target device name, target sampling time interval, and target device data as column fields, and generate a target archive file based on all target sampling records in the memory data table and persistently write it to a hard disk storage file; a second persistent storage unit, used to, when the target memory occupancy rate of the memory data table does not reach the preset memory occupancy rate threshold, and the number of target sampling records in the memory data table reaches the preset record number threshold, use a columnar storage method, with the target device name, target sampling time interval, and target device data as column fields, and generate a target archive file based on all target sampling records in the memory data table and persistently write it to a hard disk storage file.

[0168] In an optional embodiment of the present invention, the device data acquisition module 602 includes: a sampling lag duration calculation unit, used to calculate the target sampling lag duration between the current sampling timestamp and the current sampling time; a sampling lag duration comparison unit, used to compare the target sampling lag duration with a preset lag duration threshold; a first next sampling time update unit, used to update the next sampling time of the device monitoring point by adding a preset sampling time interval of the device monitoring point based on the current sampling time when the target sampling lag duration exceeds the preset lag duration threshold; and a second next sampling time update unit, used to update the next sampling time of the device monitoring point by adding a preset sampling time interval of the device monitoring point based on the current sampling timestamp when the target sampling lag duration does not exceed the preset lag duration threshold.

[0169] The industrial equipment data storage device provided in the embodiments of the present invention can execute the industrial equipment data storage method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.

[0170] The acquisition, storage, and application of data involved in the technical solutions of this invention comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0171] Example 4 Figure 7A schematic diagram of an electronic device 700 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0172] like Figure 7 As shown, the electronic device 700 includes at least one processor 701 and a memory, such as a read-only memory (ROM) 702 and a random access memory (RAM) 703, communicatively connected to the at least one processor 701. The memory stores computer programs executable by the at least one processor. The processor 701 can perform various appropriate actions and processes based on the computer program stored in the ROM 702 or loaded into the RAM 703 from storage unit 708. The RAM 703 can also store various programs and data required for the operation of the electronic device 700. The processor 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0173] Multiple components in electronic device 700 are connected to I / O interface 705, including: input unit 706, such as keyboard, mouse, etc.; output unit 707, such as various types of displays, speakers, etc.; storage unit 708, such as disk, optical disk, etc.; and communication unit 709, such as network card, modem, wireless transceiver, etc. Communication unit 709 allows electronic device 700 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0174] Processor 701 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 701 performs the various methods and processes described above, such as data storage methods for industrial equipment.

[0175] In some embodiments, the industrial equipment data storage method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 700 via ROM 702 and / or communication unit 709. When the computer program is loaded into RAM 703 and executed by processor 701, one or more steps of the industrial equipment data storage method described above may be performed. Alternatively, in other embodiments, processor 701 may be configured to execute the industrial equipment data storage method by any other suitable means (e.g., by means of firmware).

[0176] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include: implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0177] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0178] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0179] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0180] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0181] A computing system can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system. It addresses the shortcomings of traditional physical hosts and VPS (Virtual Private Server) services, such as high management difficulty and weak business scalability.

[0182] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0183] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for storing industrial equipment data, characterized in that, The method includes: A sampling thread is used to traverse all device monitoring points, and for each device monitoring point, the current time is compared with the current sampling time of the device monitoring point. When the current sampling time of the device monitoring point is reached at the current time, the target data acquisition method of the device monitoring point is called to acquire the target device data, calculate the difference between the current sampling timestamp and the previous sampling timestamp to obtain the target sampling time interval, and generate a target sampling record based on the target device name of the device monitoring point, the target sampling time interval and the target device data, and update the next sampling time of the device monitoring point. Write the target sampling record into the sampling queue; A storage thread is used to retrieve target sampling records in batches from the sampling queue and write them in batches into a memory data table in the form of a narrow table; Check whether the memory data table meets the archiving conditions; When the memory data table meets the archiving conditions, a columnar storage method is adopted, with the target device name, the target sampling time interval, and the target device data as column fields. Based on all the target sampling records in the memory data table, a target archive file is generated and persistently written to the hard disk storage file.

2. The industrial equipment data storage method according to claim 1, characterized in that, Before employing a sampling thread to traverse all device monitoring points, the following is also included: Obtain the equipment sampling requirements corresponding to each industrial device; According to the device sampling requirements, the point metadata of each device monitoring point is registered; wherein, the point metadata of the device monitoring point includes the target device name, the preset sampling time interval, the target data acquisition method, and the next sampling time.

3. The industrial equipment data storage method according to claim 2, characterized in that, After registering the location metadata for each monitoring point according to the device sampling requirements, the method further includes: Detect the rate of change of target device data corresponding to each of the aforementioned device monitoring points; When the rate of change of the target device data exceeds a first preset rate of change threshold, the preset sampling time interval of the device monitoring point is shortened; When the rate of change of the target device data is lower than the second preset rate of change threshold, the preset sampling time interval of the device monitoring point is extended.

4. The industrial equipment data storage method according to claim 1, characterized in that, After adopting a columnar storage method, using the target device name, the target sampling time interval, and the target device data as column fields, and generating a target archive file based on all the target sampling records in the memory data table and persistently writing it to the hard disk storage file, the method further includes: When a data query request is detected, all columnar storage data in the hard disk storage file is aggregated according to the query device name contained in the data query request to obtain a query sampling time interval list and a query device data list corresponding to the query device name. Based on the data start time, the list of query sampling time intervals, and the list of query device data, the historical time series is reconstructed, and a historical trend curve is generated.

5. The industrial equipment data storage method according to claim 4, characterized in that, Before aggregating all columnar storage data in the hard disk storage file according to the query device name included in the data query request to obtain the query sampling time interval list and the query device data list corresponding to the query device name, the method further includes: The validity of the query sampling records is checked based on the query data quality identifier of the query sampling records; wherein, the query sampling records include a query data quality identifier; the query data quality identifier is used to indicate the validity of the query sampling records; If the query sample record is invalid, the query sample record is filtered.

6. The industrial equipment data storage method according to claim 1, characterized in that, The step of detecting whether the memory data table meets the archiving conditions includes: Detect whether the target memory occupancy rate of the memory data table reaches a preset memory occupancy rate threshold, and detect whether the target sampling record number in the memory data table reaches a preset record number threshold; Accordingly, when the memory data table meets the archiving conditions, a columnar storage method is adopted, using the target device name, the target sampling time interval, and the target device data as column fields. Based on all the target sampling records in the memory data table, a target archive file is generated and persistently written to a hard disk storage file, including: When the target memory occupancy rate of the memory data table reaches the preset memory occupancy rate threshold, a columnar storage method is adopted, with the target device name, the target sampling time interval, and the target device data as column fields. Based on all the target sampling records in the memory data table, a target archive file is generated and persistently written to the hard disk storage file. When the target memory occupancy rate in the memory data table does not reach the preset memory occupancy rate threshold, and the number of target sampling records in the memory data table reaches the preset record number threshold, a columnar storage method is adopted, in which the target device name, the target sampling time interval, and the target device data are used as column fields. Based on all the target sampling records in the memory data table, a target archive file is generated and persistently written to the hard disk storage file.

7. The industrial equipment data storage method according to claim 1, characterized in that, The step of updating the next sampling time of the device monitoring point includes: Calculate the target sampling lag time between the current sampling timestamp and the current sampling time; The target sampling lag time is compared with a preset lag time threshold; When the target sampling lag time exceeds the preset lag time threshold, the next sampling time of the device monitoring point is updated by adding the preset sampling time interval of the device monitoring point to the current sampling time as a reference. When the target sampling lag time does not exceed the preset lag time threshold, the next sampling time of the device monitoring point is updated based on the current sampling timestamp and the preset sampling time interval of the device monitoring point is added.

8. An industrial equipment data storage device, characterized in that, The device includes: The device monitoring point traversal module is used to traverse all device monitoring points using a sampling thread, and for each device monitoring point, compare the current time with the current sampling time of the device monitoring point. The device data acquisition module is used to call the target data acquisition method of the device monitoring point when the current sampling time of the device monitoring point is reached at the current time, acquire the target device data, calculate the difference between the current sampling timestamp and the previous sampling timestamp to obtain the target sampling time interval, generate a target sampling record according to the target device name of the device monitoring point, the target sampling time interval and the target device data, and update the next sampling time of the device monitoring point. The sampling queue writing module is used to write the target sampling record into the sampling queue; The in-memory data table batch write module is used to retrieve target sampling records in batches from the sampling queue using a storage thread, and write them in batches into the in-memory data table in the form of a narrow table; The archiving condition detection module is used to detect whether the memory data table meets the archiving conditions; The persistent storage module is used to generate a target archive file and persistently write it to a hard disk storage file when the memory data table meets the archiving conditions, using a columnar storage method, with the target device name, the target sampling time interval, and the target device data as column fields.

9. An electronic device, characterized in that, The electronic device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the industrial equipment data storage method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that are used to cause a processor to execute the industrial equipment data storage method according to any one of claims 1-7.