Data collection method and device
By receiving the real-time signal of the sensor in the data acquisition method and converting it into a voltage signal, judging the acquisition conditions and adjusting the sampling rate, the problems of large data volume and high noise in the prior art are solved, and the data volume and quality improvement are achieved.
Patent Information
- Application Number
- CN202011592074.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-29
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2040-12-29
AI Technical Summary
In the existing data acquisition methods, the amount of data collected is large, and the time point of triggering acquisition is not reasonable enough, resulting in the collected data containing a lot of noise, the algorithm analysis takes a long time, and it is difficult to filter and extract effective data.
By receiving the real-time signal of the sensor, converting it into a voltage signal, and according to the correspondence between the default signal value and the voltage intensity, we judge whether the start or stop acquisition conditions are met, and the sampling rate is adjusted to achieve efficient data acquisition and transmission.
It effectively reduces the amount of data collected, improves the quality of data, reduces noise signals, rationalizes the acquisition time point, and reduces server pressure and data traffic.
Smart Images

Figure CN114689932B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data acquisition, and in particular to a data acquisition method and device. Background Art
[0002] In the current industrial production, it is necessary to collect sensor signals at high speed for analysis and apply them to the production process to achieve real-time monitoring and fault diagnosis of the equipment working process, thereby improving production efficiency. For example, during the stamping process, the vibration sensor signal will be collected at high speed to analyze whether the stamping machine has any abnormality. If it is judged to be abnormal, the stamping production will be stopped immediately and the relevant personnel will be notified to handle it.
[0003] The current data acquisition methods have shortcomings such as large amount of collected data and unreasonable triggering acquisition time points, which cause the collected data to contain a lot of noise, making algorithm analysis more time-consuming and filtering and extracting valid data more difficult. For example, the existing data acquisition method triggers the acquisition through the rising or falling edge of the IO electrical signal, but the trigger time of this method is difficult to determine. If the time from triggering the acquisition to stopping the acquisition is too long, the amount of collected data will be large, the noise in the data will also be more, and the acquisition can only be triggered actively. On the other hand, if there are other reasons causing the signal abnormality, it is impossible to accurately judge and then trigger the acquisition through the IO electrical signal. Summary of the invention
[0004] In view of this, an object of the present invention is to provide a data collection method and device, which can reduce the amount of collected data.
[0005] An embodiment of the present invention provides a data acquisition method, which is executed in a data acquisition device, and the method includes: receiving a real-time signal from a sensor, and converting the real-time signal into a voltage signal according to a default correspondence between a signal value and a voltage strength; judging whether the voltage signal meets a condition for starting to trigger acquisition; when judging that the voltage signal meets the condition for starting to trigger acquisition, further judging whether it is in a data acquisition state, and when judging that it is not in a data acquisition state, adjusting the sampling rate to an acquisition sampling rate, starting to acquire data, and starting to transmit data to a server; when judging that the voltage signal does not meet the condition for starting to trigger acquisition, further judging whether the voltage signal meets the condition for stopping to trigger acquisition; when judging that the voltage signal meets the condition for stopping to trigger acquisition, further judging whether it is in a data acquisition state, and when judging that it is in a data acquisition state, adjusting the sampling rate to an analysis sampling rate, stopping to acquire data, and stopping to transmit data to the server.
[0006] An embodiment of the present invention further provides a data acquisition device, which includes a memory and a processor, wherein the memory is used to store at least one instruction, and the processor is used to implement the data acquisition method when executing the at least one instruction.
[0007] Compared with the prior art, the data collection method and device provided by the present invention can effectively reduce the amount of collected data. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1 Schematic diagram of an application environment of a data acquisition device according to an embodiment of the present invention.
[0009] Figure 2 FIG. 4 is a flow chart of a data collection method according to an embodiment of the present invention.
[0010] Figure 3 FIG. 4 is a schematic diagram of the structure of a data acquisition device according to an embodiment of the present invention.
[0011] Main component symbols
[0012] Data acquisition device 100 processor 102 Memory 104 sensor 110 server 120 step S202~S214
[0013] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0014] In order to facilitate the understanding and implementation of the present invention by those skilled in the art of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the present invention provides many applicable inventive concepts, which can be implemented in a variety of specific forms. Those skilled in the art of the present invention can use the details described in these embodiments or other embodiments and other available structural, logical and electrical changes to implement the invention without departing from the spirit and scope of the present invention.
[0015] The present invention specification provides different embodiments to illustrate the technical features of different implementations of the present invention. Among them, the configuration of each component in the embodiment is for illustrative purposes and is not intended to limit the present invention. And the partial repetition of the figure numbers in the embodiment is to simplify the description and does not mean the correlation between different embodiments. Among them, the same component numbers used in the drawings and the description represent the same or similar components. The drawings in this specification are simplified and are not drawn to exact proportions.
[0016] Furthermore, in describing some embodiments of the present invention, the specification describes the method and (or) program of the present invention in a specific order of steps. However, since the method and program are not necessarily implemented according to the specific order of steps described, they are not limited to the specific order of steps described. A person skilled in the art of the present invention will know that other orders are also possible implementation methods. Therefore, the specific order of steps described in the specification is not used to limit the scope of the patent application. Furthermore, the scope of the patent application for the method and (or) program of the present invention is not limited to the order of execution steps written therein, and a person skilled in the art of the present invention will understand that adjusting the order of execution steps does not deviate from the spirit and scope of the present invention.
[0017] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items. Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings.
[0018] See also Figure 1 , which is a schematic diagram of an application environment of a data acquisition device 100 according to an embodiment of the present invention. Figure 1 As shown, the data acquisition device 100 is interconnected and communicated with one or more sensors 110 and a server 120 respectively. In one embodiment, the sensor 110 includes a vibration sensor. One end of the sensor 110 is installed on the industrial equipment to be monitored, and the other end is connected to the BNC array interface of the data acquisition device 100 via a BNC line. In one embodiment, the data acquisition device 100 uploads the digital signal to the server 120 via an Ethernet interface. In this embodiment, the data acquisition device 100 collects real-time signals of one or more sensors 110 according to the configuration file, performs analog-to-digital conversion on the collected real-time signals to generate digital signals, caches the generated digital signals, and reads the cached digital signals after the collection is completed and sends them to the server 120. After collecting and analyzing the data, the server 120 can provide services such as real-time monitoring, alarm, and fault diagnosis.
[0019] In one embodiment, the server 120 further includes a host computer, wherein the host computer is a client of the server 120. A user can input a control instruction via the host computer and send it to the data acquisition device 100 through the server 120. The server 120 is also used to upload the operating status of the industrial equipment to the host computer, and the operating status of the industrial equipment is displayed to the user in a visual manner through the host computer, and the user can further input a control instruction according to the operating status of the industrial equipment.
[0020] In one embodiment, the control instruction also includes a configuration instruction. The data acquisition device 100 receives the configuration instruction transmitted by the server 120, and generates the configuration file according to the configuration instruction. In one embodiment, the configuration file may include a start time, an end time, a sampling period, and a sampling rate, and the data acquisition device 100 periodically collects the real-time signals of the one or more sensors 110 according to the configuration file.
[0021] See also Figure 2 , which is a flow chart of a data acquisition method in one embodiment of the present invention. In this embodiment, the data acquisition method can be applied to the data acquisition device 100. Figure 2 As shown, the data collection method specifically includes the following steps. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.
[0022] Step S202: When the data acquisition device 100 receives the real-time signal from the sensor, the real-time signal is converted into a voltage signal according to a default corresponding relationship between the signal value and the voltage intensity.
[0023] Specifically, when the sensor 110 is a vibration sensor, the data acquisition device 100 converts the received vibration signal into a voltage signal according to a default correspondence between vibration amplitude and voltage intensity.
[0024] Step S204, determining whether the voltage signal meets the conditions for starting to trigger acquisition. When it is determined that the voltage signal meets the conditions for starting to trigger acquisition, executing step S206; when it is determined that the voltage signal does not meet the conditions for starting to trigger acquisition, executing step S210.
[0025] In actual application scenarios, when the sensor 110 is a vibration sensor, the external impact will cause the vibration sensor signal amplitude to be much larger than normal; in the absence of external impact, the amplitude of the collected vibration sensor signal is basically a small change around 0 volts. Therefore, the signal in the normal range can be segmented through amplitude segmentation to reduce the amount of collected data, reduce the use of network resources, and also reduce the possibility of data loss.
[0026] In one embodiment, a voltage signal value greater than a signal threshold value may be used as a trigger acquisition start condition. In another embodiment, an average value of two consecutive voltage signal values greater than an average threshold value may be used as a trigger acquisition start condition, or an average value of two consecutive voltage signal values less than or equal to an average threshold value but a variance value greater than a variance threshold value may be used as a trigger acquisition start condition.
[0027] Step S206, judging whether the data acquisition device 100 is in the data acquisition state. When it is judged that the data acquisition device 100 is in the data acquisition state, returning to step S202, continuing data acquisition; when it is judged that the data acquisition device 100 is not in the data acquisition state, executing step S208. In one embodiment, when the sampling rate is equal to the acquisition sampling rate, it is judged that the data acquisition device 100 is in the data acquisition state; when the sampling rate is equal to the analysis sampling rate, it is judged that the data acquisition device 100 is not in the data acquisition state.
[0028] Step S208 , when it is determined that the data acquisition device 100 is not in the data acquisition state, the sampling rate is adjusted to the acquisition sampling rate, and data is started to be acquired and transmitted to the server 120 .
[0029] Step S210, determining whether the voltage signal meets the stop acquisition condition. When it is determined that the voltage signal meets the stop acquisition condition, executing step S212; when it is determined that the voltage signal does not meet the stop acquisition condition, returning to step S202 to continue data acquisition.
[0030] In one embodiment, the voltage signal value less than or equal to the signal threshold can be used as the stop trigger acquisition condition. In another embodiment, the average value of two consecutive voltage signal values less than or equal to the average threshold and the variance value less than or equal to the variance threshold can be used as the stop trigger acquisition condition.
[0031] Step S212, determining whether the data acquisition device 100 is in a data acquisition state. When it is determined that the data acquisition device 100 is in a data acquisition state, executing step S214; when it is determined that the data acquisition device 100 is not in a data acquisition state, returning to step S202, and continuing sampling. In one embodiment, when the sampling rate is equal to the acquisition sampling rate, it is determined that the data acquisition device 100 is in a data acquisition state.
[0032] Step S214 , when it is determined that the data acquisition device 100 is in the data acquisition state, the sampling rate is adjusted to the analysis sampling rate, and data acquisition is stopped and transmitted to the server 120 .
[0033] In this embodiment, the acquisition sampling rate is higher than the analysis sampling rate.
[0034] In this embodiment, the configuration file includes configuration parameters such as signal threshold, average threshold, variance threshold, acquisition sampling rate, and analysis sampling rate. Before the data acquisition device 100 starts to run, the server 120 (host computer) transmits the configuration parameters to the data acquisition device 100 via configuration instructions; the data acquisition device 100 receives the configuration instructions transmitted by the server 120 and generates the configuration file according to the configuration instructions. When the data acquisition device 100 is running, the program running in the server 120 (host computer) can dynamically adjust the configuration parameters and transmit them to the data acquisition device 100 to achieve better data acquisition effects.
[0035] In this embodiment, the initial sampling rate of the data acquisition device 100 is set to the analysis sampling rate.
[0036] See also Figure 3 , which is a schematic diagram of the structure of the data acquisition device 100 in one embodiment of the present invention. Figure 3 As shown, the data acquisition device 100 includes a processor 102 and a memory 104. The memory 104 is used to store a computer program that can be run on the processor 102. When the processor 102 executes the computer program, the steps of the above-mentioned various data acquisition method embodiments can be implemented, for example, Figure 2 Steps S202 to S214 are shown.
[0037] In one embodiment, the computer program may be divided into one or more modules / units, which are stored in the memory 104 and executed by the processor 102 to implement various embodiments of the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the data acquisition device 100.
[0038] Those skilled in the art should understand that Figure 3 The structure of the data acquisition device 100 shown does not constitute a limitation of the embodiment of the present invention. The data acquisition device 100 may include less or more other hardware or software than shown in the figure, or different component settings.
[0039] In one embodiment, the data acquisition device 100 includes but is not limited to a computer device such as a desktop, a mobile phone, a tablet computer or a server. It should be noted that the data acquisition device 100 is only an example, and other existing or future data acquisition devices that can be adapted to the present invention should also be included in the protection scope of the present invention.
[0040] In one embodiment, the processor 102 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0041] In one embodiment, the memory 104 may be an internal storage unit of the data acquisition device 100, such as a hard disk or memory of the data acquisition device 100. The memory 104 may also be an external storage device of the data acquisition device 100, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the data acquisition device 100. Further, the memory 104 may also include both an internal storage unit of the data acquisition device and an external storage device. The memory 104 is used to store the computer program and other programs and data required by the data acquisition device 100. The memory 104 may also be used to temporarily store data that has been output or is to be output.
[0042] Although not shown, the data acquisition device 100 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 102 through a power management device, so that the power management device can manage charging, discharging, and power consumption. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The data acquisition device 100 may also have input and output devices, network access devices, buses, etc., which will not be described in detail here.
[0043] In summary, the data collection method and device of the present invention collect less data, trigger the collection time point more reasonably, collect more effective data components and less noise signals. At the same time, it can avoid frequent data transmission to the server, reduce server pressure and save data traffic.
[0044] It is worth noting that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A data collection method, executed in a data collection device, characterized in that: The data acquisition device is respectively connected and communicated with a sensor and a server, the sensor includes a vibration sensor, one end of the sensor is installed on the industrial equipment to be monitored, and the other end of the sensor is connected to the data acquisition device via a BNC line, and the method includes: Receive the configuration instruction transmitted by the server, and generate a configuration file according to the configuration instruction, wherein the configuration file includes a start time, an end time, a sampling period, and a sampling rate, wherein the sampling rate includes an acquisition sampling rate and an analysis sampling rate, and the acquisition sampling rate is higher than the analysis sampling rate; periodically collecting real-time signals of the sensor according to the configuration file; Receive the real-time signal of the sensor, and convert the real-time signal into a voltage signal according to a default corresponding relationship between the signal value and the voltage intensity; Determining whether the voltage signal meets the conditions for starting triggering acquisition; When it is determined that the voltage signal meets the conditions for starting to trigger acquisition, further determining whether the data acquisition device is in a data acquisition state, and when it is determined that it is not in a data acquisition state, adjusting the sampling rate of the data acquisition device to the acquisition sampling rate, starting to acquire data, and starting to transmit data to the server; When it is determined that the voltage signal does not meet the start trigger acquisition condition, further determining whether the voltage signal meets the stop trigger acquisition condition; and, When it is determined that the voltage signal meets the stop trigger collection condition, it is further determined whether the data acquisition device is in the data acquisition state. When it is determined to be in the data acquisition state, the sampling rate of the data acquisition device is adjusted to the analysis sampling rate, and data collection and transmission to the server are stopped.
2. The data collection method according to claim 1, characterized in that: The server includes a host computer.
3. The data collection method according to claim 1, characterized in that: The step of determining whether the data acquisition device is in a data acquisition state also includes: When the sampling rate of the data acquisition device is equal to the acquisition sampling rate, it is determined that the data acquisition device is in a data acquisition state; as well as, When the sampling rate of the data acquisition device is equal to the analysis sampling rate, it is determined that the data acquisition device is not in a data acquisition state.
4. The data collection method according to claim 1, characterized in that: The trigger acquisition start condition includes that an average value of two consecutive voltage signal values is greater than an average threshold value and an average value of two consecutive voltage signal values is less than or equal to the average threshold value, and a variance value is greater than a variance threshold value.
5. The data collection method according to claim 1, characterized in that: The stop trigger acquisition condition includes: the average value of the voltage signal values for two consecutive times is less than or equal to the average threshold, and the variance value is less than or equal to the variance threshold.
6. The data collection method according to claim 1, characterized in that: The trigger acquisition start condition includes: the voltage signal value is greater than the signal threshold.
7. The data collection method according to claim 1, characterized in that: The stop trigger acquisition condition includes: the voltage signal value is less than or equal to the signal threshold.
8. A data acquisition device, characterized in that: The data acquisition device is respectively connected and communicated with a sensor and a server. The sensor includes a vibration sensor. One end of the sensor is installed on the industrial equipment to be monitored, and the other end of the sensor is connected to the data acquisition device via a BNC line. The data acquisition device includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the data acquisition method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Monitoring system and method of storage battery LVD value
CN101604851A
Method and system for network management data acquisition
CN103731283A
Data acquisition method and apparatus
CN106506249A