A sensor time domain data acquisition method, device, equipment and storage medium

Through the time domain data acquisition method, different sampling rates are used to distinguish non-stable and steady-state data, and data compression transmission and reception and restoration are performed, which solves the problem of excessive data volume at high sampling rates, improves monitoring capabilities and reduces data volume , realizes efficient processing of non-steady and steady-state data.

CN115277869BActive Publication Date: 2024-11-22WEICHAI HEAVY MACHINERY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210944378.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-06
Publication Date
2024-11-22
Estimated Expiration
2042-08-06

AI Technical Summary

Technical Problem

In long-term data acquisition, it is difficult to monitor data that is rapidly changing in a short time in high sampling rates, and the prior art cannot effectively reduce the transmission and storage of sensor data.

Method used

The time domain data acquisition method is adopted to distinguish non-steady state and steady state data by setting different sampling rates, perform data compression transmission and reception and restoration, and determine the data type by using statistical analysis and threshold judgment, and automatically switch the sampling rate to reduce the amount of data. .

Benefits of technology

It improves the monitoring capability of non-steady state operation, reduces the amount of data storage and transmission in stable operation, and ensures data accuracy and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115277869B_ABST
    Figure CN115277869B_ABST
Patent Text Reader

Abstract

A sensor time domain data acquisition method, device, equipment and storage medium, the method includes a data compression transmission method and a data receiving and restoring method; wherein the data compression transmission method includes: setting a first sampling rate f1 and a second sampling rate f2; obtaining measured data, or obtaining sample data; obtaining an average value; judging whether it is steady-state operation data; storing or transmitting the average value, or assigning a null value to the average value and storing or transmitting the measured data; the data receiving and restoring method includes: detecting whether the value of the average value is a null value; if the average value is a null value, directly outputting the measured data; if the average value has a value, generating new sample data according to the average value and a threshold value, so that the average value of the new sample data is the same as the received average value. The present invention can use a high sampling rate for data acquisition, improve the monitoring and acquisition capabilities of non-steady-state operation conditions, and reduce the amount of data storage and transmission for stable operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of sensor data transmission, and in particular to a sensor time domain data acquisition method, device, equipment and storage medium. Background Art

[0002] When using one or a group of sensors for long-term data collection, the data sampling rate cannot be set too high due to the limitations of communication capabilities and data storage space, which results in some short-term and rapidly changing data being unable to be monitored and collected due to insufficient sampling rate. For a long-term data collection system, the data is often stable for a long time, and occasionally there will be short-term data that changes rapidly.

[0003] Announcement number: CN111913446B, invention name: A fault detection method suitable for multi-sampling rate chemical processes, which provides a method for selecting different sampling rates for different sensors, considering the correlation between measurement variables at different sampling frequencies, and then processing the data to solve the fault detection problem. However, for some sensors that require high sampling rate collection, there is a problem of excessive data volume. Only the data volume of some sensors is reduced, which cannot meet the requirement of reducing the transmission data volume of all sensors.

[0004] Announcement number: CN111447284A, invention name: Dynamic data compression, communication and restoration method, device, terminal equipment and readable storage medium based on Fourier transform algorithm, which provides the use of Fourier transform algorithm to compress the data as a whole and then restore the data as a whole to solve the problem of remote transmission of a large amount of real-time dynamic data on site, but its algorithm has a large workload and cannot further reduce the amount of data transmitted, and has high requirements on the data processing capability of the equipment, making it difficult to ensure the accuracy of high sampling rate signals. Summary of the invention

[0005] In view of this, the technical problem to be solved by the present invention is: to provide a method, device, equipment and storage medium for sensor time domain data acquisition, which can use a high sampling rate for data acquisition, improve the monitoring and acquisition capabilities of non-steady-state operation conditions, and reduce the data storage and transmission volume of stable operation.

[0006] In order to solve the above technical problems, the technical solution of the present invention is:

[0007] In a first aspect, the present invention discloses a sensor time domain data acquisition method, including a data compression transmission method and a data receiving and restoring method; wherein the data compression transmission method includes the following steps:

[0008] S10, setting a first sampling rate f1 and a second sampling rate f2 for the sensor to be tested, wherein the first sampling rate f1 is for sampling non-steady-state data, and the second sampling rate f2 is for sampling steady-state data;

[0009] S11, collecting data from the sensor to be measured at a first sampling rate f1 to obtain measured data, and randomly collecting samples from the measured data at a duration of 1 / f2 to obtain sample data;

[0010] S12, performing statistical analysis on the sample data to obtain an average value;

[0011] S13, comparing the average value with the set threshold value to determine whether it is steady-state operation data;

[0012] S14. If it is determined to be steady-state operation data, the average value is stored or transmitted; if it is determined to be non-steady-state operation data, a null value is assigned to the average value and the measured data is stored or transmitted;

[0013] S15, repeating steps S11 to S14 until data collection is completed with the limited conditions;

[0014] The data receiving and restoring method comprises the following steps:

[0015] S20, receiving the transmitted data, and detecting whether the value of the average value is a null value;

[0016] S21. If the average value is a null value, the measured data is directly output;

[0017] S22. If the average value has a value, generate new sample data according to the average value and the threshold value, calculate the average value of the new sample data and compare it with the received average value, and if they are not equal, adjust the average value of the new sample data so that the average value of the new sample data is the same as the received average value;

[0018] S23, repeating steps S20 to S22 until data reception is terminated with the limited conditions;

[0019] S24. Output data.

[0020] Preferably, in step S12, statistical analysis is performed on the sample data, which also includes obtaining statistical characteristic values, and the statistical characteristic values ​​include maximum value, minimum value, and variance.

[0021] Preferably, in step S13, determining whether it is steady-state operation data includes the following method:

[0022] If |average value of sample data - average value of sample data in the previous period|>threshold, or if Max|average value of sample data - sample value|>threshold, or if ∑|average value of sample data - sample value|>threshold, then it is non-steady-state operation data;

[0023] When the statistical characteristic value includes variance, if the variance of the sample data is greater than the threshold, it is non-steady-state operation data.

[0024] Preferably, in step S22, in the process of generating new sample data according to the average value and the threshold value, the maximum value and the minimum value are added to limit the fluctuation range in the process of generating the sample data.

[0025] Preferably, in step S22, in the process of generating new sample data according to the average value and the threshold value, the variance is also added to achieve the consistency between the discrete degree of the sample data and the discrete degree of the steady-state operation data.

[0026] Preferably, in step S15, data collection is ended with limited conditions, including by limiting the data collection time, the number of data collection times and the data collection capacity.

[0027] Preferably, in step S23, data reception is terminated with limited conditions, including completing all direct outputs of measured data in sequence and completing restoration of new sample data in sequence.

[0028] In a second aspect, the present invention discloses a sensor time domain data acquisition device, comprising:

[0029] An assignment module, used for assigning a first sampling rate f1 to the non-steady-state data of the sensor, and assigning a second sampling rate f2 to the steady-state data of the sensor;

[0030] The data acquisition module is used to collect data from the sensor at a first sampling rate f1 to obtain measured data, and to randomly collect samples of the measured data at a duration of 1 / f2 to obtain sample data;

[0031] Statistical analysis module, used to obtain the average value;

[0032] The judgment output module is used to judge whether it is steady-state operation data according to the average value. If it is steady-state operation data, the average value is output; if it is non-steady-state operation data, a null value is assigned to the average value and then the measured data is output;

[0033] A receiving and detecting module, used for receiving the data transmitted by the judging and outputting module and detecting the value of the average value;

[0034] A sample data generation module is used to generate new sample data based on the average value, ensuring that the average value of the new sample data is the same as the received average value;

[0035] The data output module is used to output measured data or new sample data.

[0036] In a third aspect, the present invention discloses a computer device, comprising:

[0037] processor; and

[0038] A memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the sensor time domain data acquisition method as described in the first aspect are implemented.

[0039] In a fourth aspect, the present invention discloses a computer-readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the sensor time domain data acquisition method described in the first aspect are implemented.

[0040] After adopting the above technical solution, the beneficial effects of the present invention are:

[0041] In the present invention, a first sampling rate f1 and a second sampling rate f2 are set for the sensor to be tested, data is collected at the first sampling rate f1 to obtain measured data, samples are randomly collected at a duration of 1 / f2 to obtain sample data, and an average value is obtained by statistically analyzing the sample data. The average value is compared with the set threshold to determine whether it is steady-state operation data. If it is determined to be steady-state operation data, the average value is stored or transmitted; if it is determined to be non-steady-state operation data, a null value is assigned to the average value and the measured data is stored or transmitted. By analyzing the sample data based on the average value and determining whether the data to be transmitted is the average value or the measured data, the overall amount of data transmitted is reduced. At the same time, the sampling rate can be automatically switched according to the statistical characteristics of the collected data itself.

[0042] In summary, the present invention can use a high sampling rate for data acquisition, improve the monitoring and acquisition capabilities of non-steady-state operation conditions, and reduce the amount of data storage and transmission for stable operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0044] Figure 1 is an overall flow chart of the data compression transmission method provided by an embodiment of the present invention;

[0045] Figure 2 is a flow chart of a data compression transmission method provided by an embodiment of the present invention;

[0046] Figure 3 is an overall flow chart of a data receiving and restoring method provided by an embodiment of the present invention;

[0047] Figure 4 is a flow chart of a data receiving and restoring method provided by an embodiment of the present invention;

[0048] Figure 5 It is a structural schematic diagram of a sensor time domain data acquisition device provided by an embodiment of the present invention;

[0049] Figure 6 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

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

[0051] like Figures 1 to 4 As shown, the present invention discloses a sensor time domain data acquisition method, including a data compression transmission method and a data receiving and restoring method; wherein the data compression transmission method includes the following steps:

[0052] S10, setting a first sampling rate f1 and a second sampling rate f2 for the sensor to be tested, wherein the first sampling rate f1 is for sampling non-steady-state data, and the second sampling rate f2 is for sampling steady-state data;

[0053] S11, collecting data from the sensor to be measured at a first sampling rate f1 to obtain measured data, and randomly collecting samples from the measured data at a duration of 1 / f2 to obtain sample data;

[0054] S12, performing statistical analysis on the sample data to obtain an average value;

[0055] S13, comparing the average value with the set threshold value to determine whether it is steady-state operation data;

[0056] S14. If it is determined to be steady-state operation data, the average value is stored or transmitted; if it is determined to be non-steady-state operation data, a null value is assigned to the average value and the measured data is stored or transmitted;

[0057] S15, repeating steps S11 to S14 until data collection is completed with the limited conditions;

[0058] In step S14, for the data that has been judged and selected, including the average value or the data transmitted together with the actual data after assigning a blank value to the average value, after each comparison is completed, according to the comparison result, the average value or the actual data after assigning a blank value to the average value is selected to be stored or transmitted in sequence.

[0059] In the present invention, sampling rate refers to the number of samples extracted from a continuous signal and composed of a discrete signal per unit time; determining the steady-state operating condition refers to the operating state of the system's operating parameters (temperature, pressure, speed, position, torque, power, etc.) within a certain allowable toggle amplitude limit under relatively small external interference.

[0060] Preferably, in step S12, statistical analysis is performed on the sample data, which also includes obtaining statistical characteristic values, including maximum value, minimum value, and variance. For steady-state operation data, the staff can independently select the average value and statistical characteristic value to be transmitted to meet the input requirements of the subsequent data receiving and restoration method.

[0061] Preferably, in step S13, determining whether it is steady-state operation data includes the following method:

[0062] If |average value of sample data - average value of sample data in the previous period|>threshold, or if Max|average value of sample data - sample value|>threshold, or if ∑|average value of sample data - sample value|>threshold, then it is non-steady-state operation data;

[0063] When the statistical characteristic value includes variance, if the variance of the sample data is greater than the threshold, it is non-steady-state operation data.

[0064] Preferably, in step S15, data collection is ended with limited conditions, including by limiting the data collection time, the number of data collection times and the data collection capacity.

[0065] The following uses the first sampling rate f1 = 10Hz and the second sampling rate f2 = 0.1Hz to compress and transmit data for a sensor. Assume that conventional acquisition is performed at 1Hz, that is, one sample is collected per second, and a total of 10,000s are collected, of which the non-steady-state operation data accounts for 5%. The data types that need to be transmitted include average value, maximum value, minimum value and variance. This is illustrated by way of example:

[0066] In the traditional data transmission method, the amount of data to be transmitted is:

[0067] 10000s*1Hz=10000;

[0068] When data is transmitted using the data compression transmission method disclosed in the present invention, the amount of data to be transmitted is:

[0069] 10000s*5%*10Hz+10000s*(100-5)%*0.1Hz*4=8800.

[0070] From the above example, it can be seen that for measurement conditions in which non-steady-state conditions account for a relatively small proportion, not only can the test accuracy of non-steady-state conditions be improved, but also the accuracy of the average value and statistical characteristic values ​​of steady-state conditions can be guaranteed, and the amount of data transmission can be reduced. In the actual data transmission process, according to the type of data that needs to be restored and input for data restoration, you can choose to transmit the average value and the statistical characteristic values ​​containing only the maximum and minimum values, or choose to transmit the statistical characteristic values ​​containing the average value and only the variance, which can further reduce the amount of data transmission.

[0071] For the transmitted data, a data receiving and restoring method is performed, comprising the following steps:

[0072] S20, receiving the transmitted data, and detecting whether the value of the average value is a null value;

[0073] S21. If the average value is a null value, the measured data is directly output;

[0074] S22. If the average value has a value, generate new sample data according to the average value and the threshold value, calculate the average value of the new sample data and compare it with the received average value, and if they are not equal, adjust the average value of the new sample data so that the average value of the new sample data is the same as the received average value;

[0075] S23, repeating steps S20 to S22 until data reception is terminated with the limited conditions;

[0076] S24. Output data.

[0077] Preferably, in step S22, in the process of generating new sample data according to the average value and the threshold value, the maximum value and the minimum value are added to limit the fluctuation range in the process of generating the sample data.

[0078] Alternatively, in step S22, in the process of generating new sample data according to the average value and the threshold value, the variance is also added to achieve the consistency between the discrete degree of the sample data and the discrete degree of the steady-state operation data.

[0079] For the received data with an average value and statistical characteristic values ​​including maximum value, minimum value and variance, the normal distribution (random number) generation method is adopted to input the average value. If there is a maximum value, minimum value and variance, they are input at the same time. After the input is completed, new sample data is generated by normal distribution (random number), and the average value and statistical characteristic values ​​of the new sample data are compared with the received average value and statistical characteristic values ​​to achieve that the average value and statistical characteristic values ​​of the new sample data are the same as the received average value and statistical characteristic values, and the new sample data is restored and output.

[0080] The average value and statistical characteristic value of the new sample data after output are the same as the received average value and statistical characteristic value, which meets the requirements for operating condition analysis and judgment of steady-state operation data.

[0081] Preferably, in step S23, data reception is terminated with limited conditions, including completing all direct outputs of measured data in sequence and completing restoration of new sample data in sequence.

[0082] According to the data compression and transmission method of the present invention, the steady-state operation data can be statistically analyzed, and the average value and statistical characteristic values ​​can be stored or transmitted, which can reduce the storage and transmission amount of data. At the same time, according to the data reception and restoration method, the transmitted average value and statistical characteristic value can be restored. The average value and statistical characteristic value of the restored sample data are the same as the received average value and statistical characteristic value, which meets the requirements for analyzing and judging the steady-state operating conditions through steady-state operation data.

[0083] like Figure 5 As shown, the present invention discloses a sensor time domain data acquisition device, comprising:

[0084] The assignment module 31 is used to assign a first sampling rate f1 to the non-steady-state data of the sensor, and to assign a second sampling rate f2 to the steady-state data of the sensor;

[0085] The data acquisition module 32 is used to collect data from the sensor at a first sampling rate f1 to obtain measured data, and to randomly collect samples of the measured data at a duration of 1 / f2 to obtain sample data;

[0086] A statistical analysis module 33, used to obtain an average value;

[0087] The judgment output module 34 is used to judge whether it is steady-state operation data according to the average value, and if it is steady-state operation data, the average value is output; if it is non-steady-state operation data, a null value is assigned to the average value and then the measured data is output;

[0088] A receiving detection module 35, used for receiving data transmitted by the judgment output module 34 and detecting the value of the average value;

[0089] A sample data generating module 36, for generating new sample data according to the average value, and ensuring that the average value of the new sample data is the same as the received average value;

[0090] The data output module 37 is used to output measured data or new sample data.

[0091] The sensor time domain data acquisition device provided in the embodiment of the present invention can implement each process in the sensor time domain data acquisition method, and will not be described again here to avoid repetition.

[0092] like Figure 6 As shown, the present invention discloses a computer device, including a processor 41; and a memory 42, wherein the memory 42 stores a program or instruction that can be run on the processor 41;

[0093] The processor 41 is configured to call a program or instruction to execute each process in the sensor time domain data acquisition method, which will not be described again here to avoid repetition.

[0094] The present invention also discloses a computer-readable storage medium, which stores a program or instruction. When the program or instruction is executed by a processor, each process in the sensor time domain data acquisition method is implemented. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0095] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the division of the module is only a logical function division, and there may be other division methods in actual implementation, for example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. The mutual coupling, direct coupling, or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0096] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0097] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integrations. The available medium may be a read-only memory (ROM), or a random access memory (RAM), or a magnetic medium, such as a floppy disk, a hard disk, a tape, a magnetic disk, or an optical medium, such as a digital versatile disc (DVD), or a semiconductor medium, such as a solid state disk (SSD), etc.

[0098] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A sensor time domain data acquisition method, characterized in that: The invention comprises a data compression transmission method and a data receiving and restoring method; wherein the data compression transmission method comprises the following steps: S10, setting a first sampling rate f1 and a second sampling rate f2 for the sensor to be tested, wherein the first sampling rate f1 is for sampling non-steady-state operation data, and the second sampling rate f2 is for sampling steady-state operation data; S11, collecting data from the sensor to be measured at a first sampling rate f1 to obtain measured data, and randomly collecting samples from the measured data at a duration of 1 / f2 to obtain sample data; S12, performing statistical analysis on the sample data to obtain an average value; performing statistical analysis on the sample data also includes obtaining statistical characteristic values, wherein the statistical characteristic values ​​include a maximum value, a minimum value, and a variance; S13, comparing the average value with the set threshold value to determine whether it is steady-state operation data; S14. If it is determined to be steady-state operation data, the average value is stored or transmitted; if it is determined to be non-steady-state operation data, a null value is assigned to the average value and the measured data is stored or transmitted; S15, repeating steps S11 to S14 until data collection is completed with the limited conditions; The data receiving and restoring method comprises the following steps: S20, receiving the transmitted data, and detecting whether the value of the average value is a null value; S21. If the average value is a null value, the measured data is directly output; S22. If the average value has a value, generate new sample data according to the average value and the threshold value, calculate the average value of the new sample data and compare it with the received average value, and if they are not equal, adjust the average value of the new sample data so that the average value of the new sample data is the same as the received average value; In the process of generating new sample data according to the average value and the threshold value, the maximum value and the minimum value are added to limit the fluctuation range in the process of generating the sample data; And, in the process of generating new sample data according to the average value and the threshold value, the variance is also added to achieve the consistency between the discrete degree of the sample data and the discrete degree of the steady-state operation data; The method of generating random numbers using normal distribution is adopted to input the average value. If there is a maximum value, a minimum value and a variance, they are input at the same time. After the input is completed, new sample data is generated by the random numbers using normal distribution, and the average value and the statistical characteristic value of the new sample data are compared with the received average value and the statistical characteristic value to achieve that the average value and the statistical characteristic value of the new sample data are the same as the received average value and the statistical characteristic value, thereby completing the restoration of the new sample data; S23, repeating steps S20 to S22 until data reception is terminated with the limited conditions; In step S23, data reception is terminated according to the limited conditions, including completing all direct outputs of measured data in sequence and completing restoration of new sample data in sequence; S24. Output data.

2. The sensor time domain data acquisition method according to claim 1, characterized in that: In step S13, whether it is steady-state operation data is determined, including the following method: If |average value of sample data - average value of sample data in the previous period|>threshold value, it is non-steady-state operation data; When the statistical characteristic value includes variance, if the variance of the sample data is greater than the threshold, it is non-steady-state operation data.

3. The sensor time domain data acquisition method according to claim 1, characterized in that: In step S15, data collection is ended with limited conditions, including by limiting the data collection time, the number of data collection times and the data collection capacity.

4. A sensor time domain data acquisition device, used to implement the sensor time domain data acquisition method according to any one of claims 1 to 3; characterized in that: include: An assignment module, used for assigning a first sampling rate f1 to the non-steady-state operation data of the sensor, and assigning a second sampling rate f2 to the steady-state operation data of the sensor; The data acquisition module is used to collect data from the sensor at a first sampling rate f1 to obtain measured data, and to randomly collect samples of the measured data at a duration of 1 / f2 to obtain sample data; A statistical analysis module is used to obtain the average value after statistical analysis of sample data; The judgment output module is used to judge whether it is steady-state operation data according to the average value. If it is steady-state operation data, the average value is output; if it is non-steady-state operation data, a null value is assigned to the average value and then the measured data is output; A receiving and detecting module, used for receiving the data transmitted by the judging and outputting module and detecting the value of the average value; A sample data generation module is used to generate new sample data based on the average value, ensuring that the average value of the new sample data is the same as the received average value; The data output module is used to output measured data or new sample data.

5. A computer device, characterized in that: include: processor; and A memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the sensor time domain data acquisition method according to any one of claims 1 to 3 are implemented.

6. A computer-readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the sensor time domain data acquisition method according to any one of claims 1 to 3 are implemented.