Data acquisition method, device and system, readable storage medium and program product
Through the data acquisition system with multi-channel and multi-acquisition strategy, the problems of waste of acquisition channels and lag in the diagnosis of mechanical equipment fault signal are solved, and a single collector is realized to meet multiple needs, simplify on-site management, and ensure fault diagnosis Accuracy and real-time.
Patent Information
- Application Number
- CN202411103184.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-12-20
AI Technical Summary
In the diagnosis of mechanical equipment fault signal, installing multiple sensors at the same signal measurement point leads to waste of acquisition channels and confusion in field wiring, affecting the fault diagnosis results, and continuous data acquisition may lead to memory space tightness and algorithm processing lag.
Data acquisition system adopts multi-channel multi-acquisition strategy, through the communication between the collector and the industrial control machine, configure the acquisition channel and sensor types, acquire and transmit characteristic values to achieve fault diagnosis, simplify field equipment management, and update and bias through remote programs Voltage acquisition ensures data accuracy and real-time.
A single collector is realized to meet different acquisition needs, reduce the use of collectors, simplify on-site management, ensure that the fault diagnosis model receives accurate and real-time data, reduce economic losses and protect the safety of on-site operators.
Smart Images

Figure CN119166990A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of equipment fault diagnosis, and in particular to a data acquisition method, device, system, readable storage medium and program product. Background Art
[0002] In the fault signal diagnosis technology of mechanical equipment, the judgment of different faults may require comprehensive judgment of one or more different signals such as pressure, temperature, vibration, key phase, etc. However, installing multiple sensors at the same signal measurement point for collection will cause waste of collection channels and confusion of on-site wiring, affecting the fault diagnosis results. Summary of the invention
[0003] Based on this, it is necessary to provide a data collection method, device, system, readable storage medium and program product that can ensure the fault diagnosis results in response to the above technical problems.
[0004] In a first aspect, the present application provides a data collection method, which is applied to a collector, and the method comprises:
[0005] When the collector is powered on, the current main program is started, the current main program reads at least one locally stored collection strategy, and configures each collection channel of the collector according to the collection strategy to obtain collection data of each collection channel;
[0006] In response to establishing a communication connection with the industrial computer, the current main program transmits the acquisition strategy to the industrial computer to instruct the industrial computer to configure the acquisition strategy and / or send a data request to the collector based on the acquisition strategy;
[0007] In response to receiving the data request, the current main program transmits the corresponding collected data to the industrial computer; the collected data is used to instruct the industrial computer to obtain the fault diagnosis result based on the fault diagnosis model.
[0008] In one embodiment, before the step of transmitting the acquisition strategy to the industrial computer in response to establishing a communication connection with the industrial computer, the method further includes:
[0009] Receive the collection strategy transmitted by the industrial computer and store the collection strategy locally; the collection strategy includes channel configuration information and collection configuration information;
[0010] Among them, the channel configuration information includes at least one of the following parameters of the acquisition channel: open state, sensor type, measurement unit, sensitivity and sampling ratio; the acquisition configuration information includes at least one of the following parameters of the collector: network IP address, acquisition trigger threshold, acquisition interval, sampling duration, speed reference channel, speed ratio and speed calculation algorithm.
[0011] In one embodiment, the data request carries a time period; the current main program stores the acquired acquisition data of each acquisition channel into a circular queue;
[0012] In response to receiving the data request, the current main program transmits the corresponding collected data to the industrial computer, including:
[0013] The current main program determines the collected data whose collection time belongs to the time period from the circular queue and obtains the characteristic value of the collected data;
[0014] The current main program determines that when the characteristic value reaches the acquisition trigger threshold, the acquired data is transmitted to the industrial computer.
[0015] In one embodiment, the characteristic value includes a root mean square value of the collected data; and the current main program includes a main process running in the collector.
[0016] In one of the embodiments, the current main program determines that the measurement unit corresponds to the rotational speed, and then selects the rotational speed calculation channel corresponding to the sensor type to obtain the collected data; wherein different rotational speed calculation channels correspond to different rotational speed calculation algorithms, and the main program has different selection priorities for different rotational speed calculation channels.
[0017] In one of the embodiments, the sensor types include key phase sensors and vibration sensors; the rotation speed calculation channel corresponding to the key phase sensor has a higher selection priority than the rotation speed calculation channel corresponding to the vibration sensor.
[0018] In one embodiment, starting the current main program when the collector is powered on includes:
[0019] If it is detected that the startup directory of the current main program does not belong to the main directory, the data package of the current main program in the startup directory is copied to the main directory;
[0020] Exit the current main program and start the main program from the main directory.
[0021] In one embodiment, the method further comprises:
[0022] In response to receiving a data packet of a target main program, installing the target main program in a temporary directory; the target main program is a main program after the version is updated;
[0023] Exit the current main program and start the target main program from the temporary directory; the temporary directory does not belong to the main directory.
[0024] In one embodiment, the method further comprises:
[0025] If the startup of the current main program triggers a startup failure condition, the main program is started from the temporary directory; wherein the startup failure condition includes that the number of startup failures of starting the current main program from the main directory reaches a threshold number.
[0026] In one embodiment, the method further comprises:
[0027] The main program obtains the original signal of the sensor corresponding to the acquisition channel, and transmits the fault information to the industrial computer when it is determined that the sensor fails according to the original signal; wherein the original signal includes the bias voltage of the sensor.
[0028] In a second aspect, the present application also provides a data collection method, which is applied to an industrial computer, and the method includes:
[0029] Receive the collection strategy transmitted by the collector, configure the collection strategy and / or send a data request to the collector based on the collection strategy; the data request is used to instruct the collector to transmit the corresponding collection data to the industrial computer based on the current main program started at power-on; wherein the current main program reads at least one collection strategy stored locally, and configures each collection channel of the collector according to the collection strategy to obtain the collection data of each collection channel;
[0030] Receive collected data, and obtain fault diagnosis results based on the collected data and the fault diagnosis model.
[0031] In one embodiment, the method further comprises:
[0032] The collected data is transmitted to the fault diagnosis model in the form of a data file, so that the fault diagnosis model obtains a fault diagnosis result by processing the data file;
[0033] If there is a backlog of files in the processing of data files corresponding to the acquisition strategy by the fault diagnosis model, sending data requests is stopped.
[0034] In a third aspect, the present application further provides a data acquisition device, applied to a collector, comprising:
[0035] A program startup module is used to start the current main program when the collector is powered on, the current main program reads at least one locally stored acquisition strategy, and configures each acquisition channel of the collector according to the acquisition strategy to obtain acquisition data of each acquisition channel;
[0036] A strategy transmission module, for responding to establishing a communication connection with the industrial computer, the current main program transmits the acquisition strategy to the industrial computer to instruct the industrial computer to configure the acquisition strategy and / or send a data request to the collector based on the acquisition strategy;
[0037] The data transmission module is used for responding to receiving a data request, and the current main program transmits the corresponding collected data to the industrial computer; the collected data is used to instruct the industrial computer to obtain the fault diagnosis result based on the fault diagnosis model.
[0038] In a fourth aspect, the present application further provides a data acquisition device, applied to an industrial computer, comprising:
[0039] A data request module is used to receive the collection strategy transmitted by the collector, configure the collection strategy and / or send a data request to the collector based on the collection strategy; the data request is used to instruct the collector to transmit the corresponding collection data to the industrial computer based on the current main program started at power-on; wherein the current main program reads at least one collection strategy stored locally, and configures each collection channel of the collector according to the collection strategy to obtain the collection data of each collection channel;
[0040] The fault diagnosis module is used to receive the collected data and obtain the fault diagnosis result based on the fault diagnosis model according to the collected data.
[0041] In a fifth aspect, the present application also provides a multi-channel data acquisition system, the system includes an industrial computer, and a collector connected to the industrial computer, the collector having collection channels corresponding to a plurality of sensors, wherein:
[0042] The collector is used to execute the steps of the method of the first aspect above;
[0043] The industrial computer is used to execute the steps of the method of the second aspect above.
[0044] In one embodiment, the collector includes an acquisition chip for acquiring the original signal of the sensor; wherein the original signal includes the bias voltage of the sensor.
[0045] In a sixth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above-mentioned methods when the computer program is executed by a processor.
[0046] In a seventh aspect, the present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned methods when executed by a processor.
[0047] The above-mentioned data acquisition method, device, system, readable storage medium and program product, wherein the collector can start the current main program when powered on, the current main program reads at least one acquisition strategy stored locally, and configures each acquisition channel of the collector according to the acquisition strategy to obtain the acquisition data of each acquisition channel, and then in response to establishing a communication connection with the industrial computer, the current main program transmits the acquisition strategy to the industrial computer, and transmits the corresponding acquisition data to the industrial computer when receiving a data request, so that the industrial computer obtains the fault diagnosis result based on the fault diagnosis model. The present application realizes the function of meeting different acquisition requirements through a single collector through a multi-channel and multi-acquisition strategy data acquisition method, ensures that the fault diagnosis model can receive accurate and real-time data, reduces the use of collectors through multiple acquisition strategies, and simplifies the management of on-site acquisition equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0049] Figure 1 An application environment diagram of a data collection method in an embodiment;
[0050] Figure 2 A schematic diagram of a flow chart of a data collection method in one embodiment;
[0051] Figure 3 A schematic diagram of a flow chart of the steps of transmitting collected data to an industrial computer in one embodiment;
[0052] Figure 4 A schematic diagram of a main program startup process in one embodiment;
[0053] Figure 5 A schematic diagram of a flow chart of starting a main program in another embodiment;
[0054] Figure 6 A schematic diagram of a main program update process in one embodiment;
[0055] Figure 7 A schematic diagram of a specific process of updating a main program in one embodiment;
[0056] Figure 8 A schematic diagram of a flow chart of a data collection method in another embodiment;
[0057] Fig. 9 is a structural block diagram of a data acquisition device in one embodiment;
[0058] Fig.10 is a structural block diagram of a data acquisition device in another embodiment;
[0059] Fig.11 FIG. 4 is a diagram showing the internal structure of a collector in one embodiment. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application 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 application and are not used to limit the present application.
[0061] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0062] It can be understood that the terms "first", "second", etc. used in the present application can be used in this article to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from another element.
[0063] It can be understood that the “connection” in the following embodiments should be understood as “electrical connection”, “communication connection”, etc. if the connected circuits, modules, units, etc. have electrical signals or data transmission between each other.
[0064] It can be understood that “at least one” means one or more, “plurality” means two or more, and “at least a portion of an element” means a part or all of an element.
[0065] When used herein, the singular forms "a", "an", and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" and the like specify the presence of stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the relevant listed items.
[0066] During the operation of mechanical equipment such as plunger pumps, when parts are damaged, they are always accompanied by various changes in temperature, pressure, vibration, and speed signals. However, in traditional solutions, installing multiple sensors at the same signal measurement point for collection will cause waste of collection channels and confusion in on-site wiring. In addition, continuous data collection may not be processed in a timely manner, resulting in tight memory space and delayed algorithm processing.
[0067] Based on the above-mentioned traditional solutions, the present application provides a multi-channel, multi-collection strategy data acquisition system for the collection of fault characteristic signals of mechanical equipment, which can timely capture the changes in the above-mentioned signals, and use algorithms for analysis and processing to timely detect the occurrence of faults, thereby minimizing economic losses and protecting the safety of on-site workers.
[0068] It can be understood that the present application can be applied to fault diagnosis of mechanical equipment, wherein the mechanical equipment can have a plunger pump, but is of course not limited to a plunger pump. If other mechanical equipment has a similar structure, for example, there is also a structure that performs reciprocating motion, and the period of this reciprocating motion is in a fixed proportion to the rotational speed, then it can also be applied to the present application.
[0069] It should be noted that the beneficial effects brought about by the embodiments of the present application or the technical problems solved are not limited to this one, but may also include other implicit or related problems. For details, please refer to the description of the following embodiments.
[0070] The data collection method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. The collector communicates with the industrial computer via a wireless network, and the communication process may involve data, configuration information, command information, etc. Exemplarily, the collector may be connected to multiple sensors, for example, the collector has collection channels corresponding to the multiple sensors.
[0071] In some examples, the configuration software can be deployed on the industrial computer side (or on the PC side) to monitor the status of the collector and configure different collection strategies. Optionally, the configuration software can have configuration and collection functions. Exemplarily, the PC side can refer to various personal computers, laptops, etc. Further, the collection service can be deployed on the industrial computer side. When the industrial computer is started, the collection service can automatically run in the background, automatically search for the collector, and receive and process data. Optionally, the collection service can have the function of self-starting and collecting data at startup.
[0072] Furthermore, the collector can be a collection device, such as a data collection device developed based on ZYNQ; wherein, ZYNQ can be divided into a PS (Processing System) end and a PL (Progarmmable Logic) end; in the embodiment of the present application, the PL end can be connected to multiple AD (Analog-to-Digital) chips to collect analog signals, and the PS end can use a quad-core ARM chip equipped with a Linux system; the PS end and the PL end can exchange data through the AXI4 (Advanced eXtensibleInterface) transmission protocol. It can be understood that the above collector can also adopt other forms, not limited to the forms mentioned in the above embodiments, as long as it can achieve the function of completing the data collection for the sensor.
[0073] like Figure 1 As shown, the configuration software can send the configured collection strategy to the collector, which will parse and save it in the internal non-volatile memory (for example, forming a local configuration file). For example, when the collector is connected to the TCP (Transmission Control Protocol) server network established by the configuration software or the collection service, the collector can send the locally stored collection strategy. If the collection strategy is connected to the collection service, the collection service can "ask for data" from the collector according to the collection strategy, that is, request the collector to send data at regular intervals. If the collector is connected to the configuration software, the configuration of the specific collection strategy will be displayed in the interface, and the collection strategy in the collector can be configured.
[0074] In an exemplary embodiment, Figure 2 As shown, a data acquisition method is provided, which is applied to Figure 1 The collector in the example is used to illustrate, including the following steps 202 to 206. Among them:
[0075] Step 202, when the collector is powered on, the current main program is started, the current main program reads at least one locally stored collection strategy, and configures each collection channel of the collector according to the collection strategy to obtain collection data of each collection channel.
[0076] The collector can start the current main program when powered on; the current main program can refer to the current main program in the collector. Exemplarily, the current main program can include the main process running in the collector; alternatively, the main program can be the main process running in the collector for controlling network connection, data collection, and data storage.
[0077] Specifically, the current main program can read at least one acquisition strategy stored locally in the collector, and configure each acquisition channel of the collector according to the acquisition strategy to obtain the acquisition data of each acquisition channel. Among them, the locally stored acquisition strategy can be called a local acquisition strategy. After the collector is powered on, the current main program can read the local acquisition strategy, and configure all acquisition channels according to the acquisition strategy (for example, configure the sensor type of the acquisition channel), and then continuously collect data from all channels. Exemplarily, the acquired data can be analog data.
[0078] Exemplarily, at least one acquisition strategy stored locally in the collector may be issued by the industrial computer through configuration software, wherein the configuration software may add multiple acquisition strategies for one collector. Optionally, the collector may save the acquisition strategy in an internal non-volatile memory. It is understood that in the embodiments of the present application, the working state and working mode of the acquisition channel may be configured through the acquisition strategy, and the working mode and working state of the collector may also be configured to meet different acquisition requirements. In some examples, the acquisition strategy may correspond to a fault diagnosis model.
[0079] The embodiment of the present application can realize the function of a single collector meeting different collection requirements through data collection of multi-channel and multi-collection strategies. The use of collectors is reduced through the multi-collection strategy, and the management of on-site collection equipment is simplified.
[0080] Step 204, in response to establishing a communication connection with the industrial computer, the current main program transmits the acquisition strategy to the industrial computer to instruct the industrial computer to configure the acquisition strategy and / or send a data request to the collector based on the acquisition strategy.
[0081] Specifically, the current main program will not send the collected data of each collection channel immediately after obtaining it. Instead, after the collector and the industrial computer establish a communication connection, the industrial computer sends a data request to request the collector to send the data. When the collector receives the data request, it can further decide whether to send the collected data.
[0082] Exemplarily, the collector establishes a communication connection with the industrial computer, which may refer to the collector establishing a connection with the configuration software or collection service in the industrial computer through a wireless network, for example, the collector is connected to the TCP server network established by the configuration software or collection service. The collector may transmit the collection strategy to the industrial computer through the current main program, and then the industrial computer may configure the collection strategy and / or send a data request to the collector based on the collection strategy.
[0083] Regarding the configuration of the collection strategy by the industrial computer, if the collector is connected to the configuration software, the configuration software can display the configuration of the specific collection strategy in the interface, and then configure the collection strategy for the collector.
[0084] Regarding the industrial computer sending data requests to the collector based on the collection strategy, optionally, the data request can be sent by the configuration software or the collection service, that is, the configuration software and the collection service on the industrial computer side can both request data from the collector regularly and quantitatively according to the collection strategy. In practical applications, in order to prevent multiple copies of the same data from being collected, the collection service can be configured to have a higher priority in the collection function, and during data collection, if the configuration software updates the collection strategy, the collector notifies the collection service to update the collection strategy, and the collection service can continue to request data from the collector according to the new collection strategy. When the collector detects that the service has been connected, it can notify the configuration software that the service is online and block the configuration software's request for data (i.e., data request).
[0085] Step 206, in response to receiving the data request, the current main program transmits the corresponding collected data to the industrial computer; the collected data is used to instruct the industrial computer to obtain the fault diagnosis result based on the fault diagnosis model.
[0086] Specifically, when the collector receives a data request sent by the industrial computer, the current main program can transmit the collected data corresponding to the data request to the industrial computer, and then instruct the industrial computer to process the collected data based on the fault diagnosis model to obtain the fault diagnosis result.
[0087] The above data collection method reduces the use of collectors by means of multiple collection strategies, realizes the function of a single collector meeting different collection requirements by configuring software, collection services and collectors, and simplifies the management of on-site collection equipment.
[0088] In an exemplary embodiment, before step 204, the following steps may also be included:
[0089] Receive the collection strategy transmitted by the industrial computer and store the collection strategy locally; the collection strategy includes channel configuration information and collection configuration information;
[0090] Among them, the channel configuration information includes at least one of the following parameters of the acquisition channel: open state, sensor type, measurement unit, sensitivity and sampling ratio; the acquisition configuration information includes at least one of the following parameters of the collector: network IP (Internet Protocol Address) address, acquisition trigger threshold, acquisition interval, sampling duration, speed reference channel, speed ratio and speed calculation algorithm.
[0091] Specifically, the configuration software on the industrial computer sends the configured collection strategy to the collector, and the collector can store the collection strategy locally, for example, save it in an internal non-volatile memory after parsing.
[0092] Optionally, the acquisition strategy may include but is not limited to channel configuration information and acquisition configuration information; wherein the channel configuration information includes at least one of the following parameters of the acquisition channel: open state, sensor type, measurement unit, sensitivity and sampling ratio; in an embodiment of the present application, the channel configuration information can be used for channel configuration, and the channel configuration may include five configurations of the open state, sensor type, measurement unit, sensitivity and sampling ratio of each acquisition channel of the collector.
[0093] It can be understood that the channel open state can be used to select the channel where data needs to be saved; the sensor type is used to configure the sensor of the corresponding channel of the collector. When the command for the sensor type is sent to the collector, the relay can be used to switch the sensor; the measurement unit can be used to select the type of data to be saved. For example, acceleration can be selected as g or m / s. 2 、mm / s 2 , r / s, etc.; sensitivity can be used to convert voltage values into actual physical values; and taking the collector collecting at the highest frequency as an example, the data collection frequency can be adjusted by the sampling ratio.
[0094] Further, the acquisition configuration information may include at least one of the following parameters of the collector: network IP address, acquisition trigger threshold, acquisition interval, sampling duration, speed reference channel, speed ratio and speed calculation algorithm. Exemplarily, the acquisition configuration information may be used for acquisition configuration, wherein the acquisition configuration may include: configuring the network IP address, acquisition trigger threshold, acquisition interval and sampling duration of the collector, speed reference channel, speed ratio, and speed calculation algorithm. Among them, regarding the speed reference channel, there may be multiple transmission components between the speed measurement position and the actual speed position of the measuring point of interest in the mechanical equipment, that is, the speed of the speed measurement position is not the same as the speed of the measuring point position of interest, but there may be a ratio relationship, and there are multiple channels for measuring speed in the collector, so it is necessary to specify the speed source of the non-speed measurement channel. For example, channels 1 to 5 are all used to measure the speed, and there is a ratio relationship between the speed of channel 6 and channel 1, and then the speed reference channel of channel 6 is channel 1.
[0095] The embodiment of the present application can perform channel configuration and acquisition configuration for the collector through the acquisition strategy to realize data acquisition of multi-channel and multi-acquisition strategies; wherein, the data sending method of the collector can be configured through the configuration software, such as the acquisition cycle, data volume, acquisition channel, sensor type, trigger threshold and sampling ratio, etc., so as to meet the acquisition requirements of different fault diagnosis models.
[0096] In an exemplary embodiment, the data request carries a time period; the current main program stores the acquired acquisition data of each acquisition channel into a circular queue; Figure 3As shown, step 206 may include steps 302 to 306. Among them:
[0097] Step 302, the current main program determines the collected data whose collection time belongs to the time period from the circular queue, and obtains the characteristic value of the collected data;
[0098] Specifically, after the current main program completes the configuration of each acquisition channel according to the acquisition strategy, it can continue to collect data from all channels. The collected data will not be sent immediately, but all data will be stored in a circular queue and wait for the industrial computer (configuration software or acquisition service) to connect, and then request data for a certain time period through a data request (that is, the data request carries the time period).
[0099] Optionally, the current main program may store the sampling data of each acquisition channel into a circular queue in a RAM (Random Access Memory).
[0100] Further, in response to receiving a data request, the current main program can determine the collected data whose collection time belongs to the time period from the circular queue; if the collection interval in the collection strategy of a certain fault diagnosis model is T seconds, the collection time is t seconds, the maximum sampling frequency of the collector is Fs, the sampling ratio is P, and the collection strategy enables N channels (that is, N collection channels are in the open state), then every T seconds, the amount of data D that the collector can send is:
[0101]
[0102] After receiving the data request, the collector can cut out this part of data from the circular queue (ie, determine the collected data whose collection time belongs to the time period from the circular queue), and then obtain the data features of this part of data.
[0103] In the embodiment of the present application, the data feature can be characterized by a characteristic value. After obtaining the characteristic value, it can be determined whether the collected data should be sent according to the threshold trigger condition to avoid the situation where the continuously collected data cannot be processed in time. Among them, the threshold trigger condition can refer to whether the characteristic value reaches the collection trigger threshold.
[0104] Step 304: the current main program determines that the characteristic value reaches the collection trigger threshold, and then transmits the collected data to the industrial computer.
[0105] Specifically, when the characteristic value reaches the acquisition trigger threshold, the current main program can transmit the collected data to the industrial computer. Among them, the characteristic value reaching the acquisition trigger threshold can indicate that the threshold trigger condition is met. When the characteristic value reaches the acquisition trigger threshold, the collected data is sent to the industrial computer, which can avoid wasting bandwidth and pre-process the data, reduce the workload of the fault diagnosis model, and prevent the continuous collected data from being unable to be processed in time, resulting in a large amount of data backlog in the storage space. Furthermore, if the characteristic value does not reach the acquisition trigger threshold, it means that the threshold trigger condition is not met, and the collected data is not sent to the industrial computer.
[0106] In one embodiment, the characteristic value may include a root mean square value of the collected data;
[0107] Specifically, the embodiment of the present application can use the root mean square value as the characteristic data of the collected data. The above characteristic value can also be in other forms, not limited to the forms mentioned in the above embodiment, as long as it can achieve the function of completing the feature of the collected data.
[0108] In practical applications, when mechanical equipment is just started, the difference between its fault and normal vibration, speed, pressure and other characteristic values is small. The fault diagnosis model cannot accurately judge the fault condition of the equipment, and false warnings may occur. In addition, this stage is short, and it is necessary to avoid using the data of this stage as the basis for fault warning. In this regard, this application uses the acquisition trigger threshold as the threshold trigger condition, for example, by calculating the root mean square value of the corresponding channel to determine whether the data of the acquisition strategy should be sent by the collector to the industrial computer and used as the basis for fault warning. When the sensor is set to a key phase signal, the corresponding acquisition trigger threshold can be expressed as a speed. In the collector, if the corresponding channel is set to a key phase signal channel, the number of key phase pulses per unit time can be calculated to obtain the speed during acquisition.
[0109] In order to ensure that the industrial computer can receive accurate and real-time data, regarding the speed calculation, in an exemplary embodiment, the current main program determines that the measurement unit corresponds to the speed, and then selects the speed calculation channel corresponding to the sensor type to obtain the collected data; wherein, different speed calculation channels correspond to different speed calculation algorithms, and the main program has different selection priorities for different speed calculation channels.
[0110] Specifically, different speed calculation channels correspond to different speed calculation algorithms, and thus through multiple speed calculation channels, the present application embodiment can use multiple speed calculation methods to ensure accurate and real-time acquisition of speed data. Among them, the speed calculation channel can be obtained through acquisition strategy configuration.
[0111] When multiple speed measurement channels are set in the same acquisition strategy, the main program has different selection priorities for different speed calculation channels; among them, the selection priority of the speed calculation channel is related to the sensor type. When a high-priority sensor fails, the speed of the low-priority sensor will be used and participate in related calculations. Since the algorithms for different speed calculations are different, it is also necessary to determine the speed calculation algorithm used by each speed calculation channel.
[0112] Exemplarily, the selection priority of the speed calculation channel can be configured by pre-setting the priority of the sensor. Taking a mechanical device with a plunger pump as an example, the key phase sensor has the highest priority, followed by the vibration sensor installed on the plunger rod, and the sensor at the planetary gear bearing position has the lowest priority.
[0113] In an exemplary embodiment, the sensor types may include a key phase sensor and a vibration sensor; the rotation speed calculation channel corresponding to the key phase sensor has a higher selection priority than the rotation speed calculation channel corresponding to the vibration sensor.
[0114] Specifically, the sensor type may include but is not limited to a key phase sensor and a vibration sensor, wherein the rotation speed calculation channel corresponding to the key phase sensor has a higher selection priority than the rotation speed calculation channel corresponding to the vibration sensor.
[0115] It can be understood that when the key phase sensor fails, the signal amplitude is too small, resulting in the inability to extract the rising and falling edges. Therefore, the key phase sensor cannot be used to determine the speed at this time, but when the mechanical equipment is working, it cannot be shut down only because the key phase sensor is damaged. Based on this application, a vibration sensor can be used to replace the speed extraction method. When the vibration sensor is installed at a preset position, the actual speed of a large pump (such as a plunger pump) can be calculated based on the value of the vibration sensor. For example, a vibration sensor installed on the plunger rod will reciprocate with the plunger rod, and the speed can be determined by judging the extreme point of the vibration data; the vibration sensor installed at the planetary gear bearing position of the reduction box will vibrate as the gear meshes, and the speed can also be calculated by calculating the number of gear meshes and the speed ratio per unit time. Therefore, when the measurement unit of the channel is set to rpm (revolutions per minute), the data of the channel can be used for speed-related calculations and threshold judgments.
[0116] The present application uses a variety of speed calculation methods, so that even if the key phase sensor is damaged, the vibration sensor can be used to replace the speed calculation, thereby ensuring that the fault diagnosis model can receive accurate and real-time data, and reduces the use of collectors through multiple collection strategies, simplifying the management of on-site collection equipment.
[0117] The following example uses a collector developed based on ZYNQ, including a PS end and a PL end. The PL end is the FPGA (Field-Programmable Gate Array) part, which can connect multiple AD chips to collect analog signals. The PS end is equipped with a quad-core ARM chip of the Linux system. The PS end and the PL end interact with each other through the AXI4 transmission protocol. The basic process of starting the main program of the collector is specifically described as follows: Figure 4 As shown in the figure, after the PS is powered on and the Linux system is loaded, the Linux system will automatically start the main program of the collector. After the collector is powered on, the main program can read the local acquisition strategy and configure the sensor types of all acquisition channels according to the acquisition strategy, and then continue to collect data from all channels. The collected data will not be sent immediately, but all data will be stored in the circular queue in the RAM. After waiting for the configuration software or acquisition service connection, the industrial computer can obtain data for a certain period of time by sending commands (such as data request, such as start acquisition, end acquisition, etc.). Among them, related operations such as program update are also involved.
[0118] Regarding program update and other related operations, in one embodiment, as Figure 5 As shown, in step 202, when the collector is powered on, starting the current main program may include steps 502 to 504, wherein:
[0119] Step 502: If it is detected that the startup directory of the current main program does not belong to the main directory, the data packet of the current main program in the startup directory is copied to the main directory.
[0120] Specifically, if it is detected that the startup directory of the current main program does not belong to the main directory, initialization work can be performed, and the initialization work includes copying the data packet of the current main program in the startup directory to the main directory; illustratively, each time the program in the collector is started, the startup directory of the program can be checked. If the startup directory of the program is not in the main directory, the relevant data in the startup directory (such as the complete data packet) can be copied (copied) to the main directory, and then the program can be installed in the main directory.
[0121] Step 504, exit the current main program and start the main program from the main directory.
[0122] Specifically, when the data packet of the current main program in the startup directory is copied to the main directory, you can exit the current program (i.e. exit the current main program), and the operating system starts the program from the main directory to ensure the stability of the main program and complete the backup of the main program in time, so that in other unexpected situations such as poor network signal and power outage, the main program inside the collector can be restored to its previous state.
[0123] In one embodiment, if Figure 6 As shown, the method may further include steps 602 to 604, wherein:
[0124] Step 602, in response to receiving a data packet of a target main program, installing the target main program in a temporary directory; the target main program is a main program after the version is updated;
[0125] Specifically, when the collector receives a data packet of a target main program, it can install the target main program in a temporary directory, wherein the target main program is a main program after the version is updated, that is, the target main program is a main program of a new version.
[0126] Optionally, after receiving the data packet of the target main program, the data packet may be subjected to security verification to improve the security of the main program update.
[0127] Step 604, exit the current main program, and start the target main program from the temporary directory; wherein the temporary directory does not belong to the main directory.
[0128] Specifically, when the collector completes the installation of the target main program in the temporary directory, it can exit the current main program and then start the target main program from the temporary directory, wherein the temporary directory does not belong to the main directory. It can be understood that, in conjunction with the above steps 502 to 504, when the collector starts the target main program in the temporary directory (that is, the temporary directory is the startup directory of the target main program), since the temporary directory does not belong to the main directory, it is necessary to copy the data packet of the target main program in the temporary directory to the main directory, then exit the target main program, and start the target main program from the main directory.
[0129] As described above, the embodiment of the present application can complete the main program update function. Not only will the new version of the main program be installed in the main directory, but the new version of the main program will also have a backup in the temporary directory. In actual applications, the collector is often installed inside the device or in a relatively remote area. When the algorithm or logic in the main program needs to be updated in the collector, a large amount of manpower is required to update it on site. The present application proposes a main program remote update method, which not only ensures that even if the main program update task cannot be completed due to power outages, network outages, etc. during the program update process, it can also ensure the normal operation of the original main program, thereby solving the problem of a large amount of manpower required to burn on site due to program update failure.
[0130] In one embodiment, the method may further include:
[0131] If the startup of the current main program triggers a startup failure condition, the main program is started from the temporary directory; wherein the startup failure condition includes that the number of startup failures of starting the current main program from the main directory reaches a threshold number.
[0132] Specifically, after the collector is powered on, if the startup of the current main program triggers a startup failure condition, the main program can be started from the temporary directory. Exemplarily, the startup failure condition may include that the number of startup failures of starting the current main program from the main directory reaches a number threshold. The number threshold may be 3 times. It can be understood that the number of startup failures may be the number of failures to start the main program from the main directory, or the number of consecutive exits of the program.
[0133] In some examples, taking the temporary directory "temp / " as an example, after the collector is powered on, if the operating system fails to start the main program from the main directory three times in a row or the program exits three times in a row, the program can be started from the temporary directory "temp / " and the initialization work at the previous startup can be repeated. In this way, even if the program encounters other unexpected situations such as poor network signal or power failure during the update process, it can ensure that the program inside the collector can be restored to the previous state and execute the unfinished operations again.
[0134] The following is a specific example to illustrate this. Taking the temporary directory "temp / " as an example, after receiving the complete data packet of the new program, the collector can install the new program in the temporary directory "temp / ", and then the Linux system starts the new program and the original program exits. Every time the program is started, it will check the program's startup directory. If the program startup directory is not in the main directory, it will copy its own data packet to the main directory, and then pass the parameter "update" to the program in the main directory and start it, so that the new main program is installed in the main directory, and after the configuration software connection, the industrial computer is notified of the successful update operation according to the parameter "update".
[0135] Among them, Figure 7 As shown, the main program completes the reception of the new version of the main program, and can perform CRC32 (CyclicRedundancy Check) verification. If the verification passes, the new version of the main program is installed in the temporary directory temp / , and then the Linux system command background is used to execute 'start the program in the temp directory after a 2-second delay', and then exit the main program; when the main program in the temp directory, it can detect whether the program is started in the main directory. If so, it continues to execute related operations of the main program initialization; if not, the program in the temp directory is copied to the main directory, the current program is exited, and the operating system starts the program from the main directory.
[0136] The embodiment of the present application uses the above remote program update method to ensure that the main program inside the collector can be restored to its previous state in other unexpected situations such as poor network signal and power failure, thereby ensuring that the fault diagnosis algorithm can receive accurate and real-time data.
[0137] In one embodiment, the method may further include:
[0138] The main program obtains the original signal of the sensor corresponding to the acquisition channel, and transmits the fault information to the industrial computer when it is determined that the sensor fails according to the original signal; wherein the original signal includes the bias voltage of the sensor.
[0139] Specifically, the collector can obtain the original signal of the sensor, and then determine whether the sensor fails based on the original signal to avoid the fault diagnosis model from misjudging the device failure. Optionally, the original signal can include the bias voltage of the sensor.
[0140] When a sensor fails, if it is not discovered in time, "problem data" will be collected. If the data flows to the fault diagnosis model, it will cause the fault diagnosis model to misjudge the equipment failure. For example, the most direct manifestation of acceleration sensor failure is the output of a full-scale vibration sensor signal. The input circuit often blocks the DC signal or performs other filtering processing, which makes it impossible to directly judge whether the collected data is full-scale.
[0141] Taking the vibration sensor as an example, the embodiment of the present application ensures that the vibration sensor fault can be discovered in time by adding bias voltage collection. The main program can determine whether the sensor has a fault (for example, the original signal is input to the PS end). If a fault occurs, it is sent to the configuration software to notify relevant personnel to handle it in time.
[0142] The above data collection method realizes the function of a single collector meeting different collection requirements by configuring software, collection services and collectors. A single collector may refer to a single collector, and each collector may have multiple collection channels, and each collection channel may be connected to a sensor.
[0143] Specifically, the present application uses a remote program update method to ensure that the main program inside the collector can be restored to its previous state even in other unexpected situations such as poor network signals and power outages. By increasing the bias voltage acquisition, it is ensured that the vibration sensor fault can be discovered in time, and then through a variety of speed calculation methods, it can be ensured that even if the key phase sensor is damaged, the vibration sensor can be used to replace the speed calculation. The data sending method of the collector is configured in detail through the configuration software, such as the acquisition cycle, data volume, acquisition channel, sensor type, trigger threshold, sampling ratio, so as to meet the acquisition requirements of different fault diagnosis models. The present application ensures that the fault diagnosis algorithm can receive accurate and real-time data. The use of collectors is reduced and the management of on-site acquisition equipment is simplified through the use of multiple acquisition strategies.
[0144] In an exemplary embodiment, Figure 8 As shown, a data acquisition method is provided, which is applied to Figure 1 Taking the industrial computer in the example as an example, the method includes the following steps 702 to 704. Among them:
[0145] Step 702, receiving the collection strategy transmitted by the collector, configuring the collection strategy and / or sending a data request to the collector based on the collection strategy; the data request is used to instruct the collector to transmit the corresponding collection data to the industrial computer based on the current main program started at power-on; wherein the current main program reads at least one collection strategy stored locally, and configures each collection channel of the collector according to the collection strategy to obtain the collection data of each collection channel;
[0146] Step 704: receiving the collected data, and obtaining a fault diagnosis result based on the fault diagnosis model according to the collected data.
[0147] Specifically, the industrial computer can receive the collection strategy transmitted by the collector, configure the collection strategy and / or send a data request to the collector based on the collection strategy, so that the industrial computer can receive the collected data and obtain the fault diagnosis result based on the fault diagnosis model according to the collected data.
[0148] Among them, the industrial computer can be deployed with configuration software and acquisition services. For example, the configuration software can be used to monitor the connection status of the collector, display the main program version inside the collector, control the start and stop of acquisition, and remotely update the main program running in the collector; optionally, the configuration software can add multiple acquisition strategies to a collector, and a collection strategy can include two types of configuration information: collection configuration and channel configuration.
[0149] The collection service can be deployed on an industrial computer. When the industrial computer is started, the collection service can automatically run in the background, automatically search for the collector, and receive and process data.
[0150] It can be understood that the steps in the above-mentioned data collection method implemented from the perspective of the industrial computer are similar to the implementation scheme recorded in the above-mentioned data collection method implemented from the perspective of the collector. Therefore, the specific limitations of each step in the data collection method implemented from the perspective of the industrial computer can be found in the above limitations on the data collection method implemented from the perspective of the collector, and will not be repeated here.
[0151] In one embodiment, the method may further include:
[0152] The collected data is transmitted to the fault diagnosis model in the form of a data file, so that the fault diagnosis model obtains a fault diagnosis result by processing the data file;
[0153] If there is a backlog of files in the processing of data files corresponding to the acquisition strategy by the fault diagnosis model, sending data requests is stopped.
[0154] Specifically, the industrial computer can transmit the collected data to the fault diagnosis model in the form of data files, so that the fault diagnosis model obtains the fault diagnosis result by processing the data files.
[0155] Exemplarily, the collection service can pass data to the fault diagnosis model in the form of files. When it is detected that the data file backlog generated by a certain collection strategy has not been processed in time, the collection service can suspend the data request of the collection strategy until the data file is processed, and then continue to request data according to the established collection strategy. It should be noted that when the fault diagnosis model completes processing of the data, it will delete the file or move the file to another place. If it is determined that there is a file in the directory, it can be determined that there is a data file backlog.
[0156] As described above, the embodiment of the present application automatically collects data through the collection service, and can be paused in time when the data is backlogged, ensuring the real-time nature of the algorithm model processing data. The data sending method of the collector is configured in detail through the configuration software to meet the collection requirements of different fault diagnosis models. Through the above measures, the present application ensures that the fault diagnosis algorithm can receive accurate and real-time data. The use of collectors is reduced by means of multiple collection strategies, simplifying the management of on-site collection equipment.
[0157] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0158] Based on the same inventive concept, the embodiment of the present application also provides a data acquisition device for implementing the data acquisition method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more data acquisition device embodiments provided below can refer to the limitations on the data acquisition method above, and will not be repeated here.
[0159] In an exemplary embodiment, Fig. 9 As shown, a data acquisition device is provided, which is applied to a collector, comprising:
[0160] The program startup module 801 is used to start the current main program when the collector is powered on. The current main program reads at least one locally stored acquisition strategy and configures each acquisition channel of the collector according to the acquisition strategy to obtain acquisition data of each acquisition channel.
[0161] The strategy transmission module 802 is used for, in response to establishing a communication connection with the industrial computer, the current main program transmits the acquisition strategy to the industrial computer to instruct the industrial computer to configure the acquisition strategy and / or send a data request to the collector based on the acquisition strategy;
[0162] The data transmission module 803 is used for responding to receiving a data request, and the current main program transmits the corresponding collected data to the industrial computer; the collected data is used to instruct the industrial computer to obtain a fault diagnosis result based on the fault diagnosis model.
[0163] In one embodiment, the device further comprises:
[0164] The local storage module is used to receive the collection strategy transmitted by the industrial computer and store the collection strategy locally; the collection strategy includes channel configuration information and collection configuration information;
[0165] Among them, the channel configuration information includes at least one of the following parameters of the acquisition channel: open state, sensor type, measurement unit, sensitivity and sampling ratio; the acquisition configuration information includes at least one of the following parameters of the collector: network IP address, acquisition trigger threshold, acquisition interval, sampling duration, speed reference channel, speed ratio and speed calculation algorithm.
[0166] In one embodiment, the data request carries a time period; the current main program stores the acquired acquisition data of each acquisition channel into a circular queue; the data transmission module 803 includes:
[0167] The feature acquisition module is used for the current main program to determine the collected data whose collection time belongs to the time period from the circular queue and obtain the feature value of the collected data;
[0168] The transmission module is used to transmit the collected data to the industrial computer when the current main program determines that the characteristic value reaches the collection trigger threshold.
[0169] In one embodiment, the characteristic value includes a root mean square value of the collected data; and the current main program includes a main process running in the collector.
[0170] In one of the embodiments, the current main program determines that the measurement unit corresponds to the rotational speed, and then selects the rotational speed calculation channel corresponding to the sensor type to obtain the collected data; wherein different rotational speed calculation channels correspond to different rotational speed calculation algorithms, and the main program has different selection priorities for different rotational speed calculation channels.
[0171] In one of the embodiments, the sensor types include key phase sensors and vibration sensors; the rotation speed calculation channel corresponding to the key phase sensor has a higher selection priority than the rotation speed calculation channel corresponding to the vibration sensor.
[0172] In one embodiment, the program startup module 801 includes:
[0173] The copy module is used to copy the data packet of the current main program in the startup directory to the main directory if it is detected that the startup directory of the current main program does not belong to the main directory;
[0174] The first startup module is used to exit the current main program and start the main program from the main directory.
[0175] In one embodiment, the program startup module 801 further includes:
[0176] A temporary installation module, used for installing the target main program in a temporary directory in response to receiving a data packet of the target main program; the target main program is the main program after the version is updated;
[0177] The second startup module is used to exit the current main program and start the target main program from a temporary directory; wherein the temporary directory does not belong to the main directory.
[0178] In one embodiment, the program startup module 801 further includes:
[0179] The third startup module is used to start the main program from the temporary directory if the startup of the current main program triggers a startup failure condition; wherein the startup failure condition includes the number of startup failures of starting the current main program from the main directory reaching a threshold number.
[0180] In one embodiment, the device further comprises:
[0181] The sensor fault transmission module is used by the main program to obtain the original signal of the sensor corresponding to the acquisition channel, and transmit the fault information to the industrial computer when it is determined that the sensor has failed based on the original signal; wherein the original signal includes the bias voltage of the sensor.
[0182] In an exemplary embodiment, Fig.10 As shown, a data acquisition device is provided, which is applied to an industrial computer and includes:
[0183] The data request module 901 is used to receive the collection strategy transmitted by the collector, configure the collection strategy and / or send a data request to the collector based on the collection strategy; the data request is used to instruct the collector to transmit the corresponding collection data to the industrial computer based on the current main program started at power-on; wherein the current main program reads at least one collection strategy stored locally, and configures each collection channel of the collector according to the collection strategy to obtain the collection data of each collection channel;
[0184] The fault diagnosis module 902 is used to receive the collected data and obtain the fault diagnosis result based on the fault diagnosis model according to the collected data.
[0185] In one embodiment, the fault diagnosis module 902 is used to transmit the collected data to the fault diagnosis model in the form of a data file, so that the fault diagnosis model obtains a fault diagnosis result by processing the data file; wherein, if there is a file backlog in the processing of the data file corresponding to the collection strategy by the fault diagnosis model, the sending of data requests is stopped.
[0186] Each module in the above data acquisition device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0187] In an exemplary embodiment, the present application further provides a multi-channel data acquisition system, the system includes an industrial computer, and a collector connected to the industrial computer, the collector having collection channels corresponding to a plurality of sensors, wherein:
[0188] The collector is used to execute the steps of the data collection method implemented from the collector's perspective;
[0189] The industrial computer is used to execute the steps of the above-mentioned data collection method implemented from the perspective of the industrial computer.
[0190] In one embodiment, the collector includes an acquisition chip for acquiring the original signal of the sensor; wherein the original signal includes the bias voltage of the sensor.
[0191] Specifically, the collector may include an acquisition chip for acquiring the original signal of the sensor, and the acquisition chip may be used to acquire the original signal of the sensor, such as the bias voltage. The embodiment of the present application ensures that the vibration sensor failure can be discovered in time by increasing the bias voltage acquisition. Among them, the acquisition chip may be an analog signal acquisition chip, such as an 8-bit AD acquisition chip.
[0192] In the embodiment of the present application, for each signal quantity, a channel of a low sampling frequency and low resolution analog signal acquisition chip is added to collect the bias voltage of the sensor, such as Fig.11 As shown in the figure, the sensor signal is input to the 8-bit AD acquisition chip without any processing. Then it is input to the PS end, and the main program determines whether the sensor is faulty. If it is faulty, it is sent to the configuration software to notify relevant personnel to handle it in time.
[0193] Understandably, Fig.11 The DC isolation, AC filtering and 24-bit AD acquisition chip can be implemented by corresponding circuits, such as DC isolation circuits, filtering circuits, etc.; of course, other forms can also be used, not limited to the forms mentioned in the above embodiments, as long as they can achieve the corresponding functions.
[0194] The present application proposes a data acquisition system based on ZYNQ's multi-channel and multi-collection strategy. By configuring software, collection services and collectors, a single collector is realized to meet different collection requirements. Among them, the present application can ensure that the main program inside the collector can be restored to its previous state in other unexpected situations such as poor network signal and power failure through remote program update. By increasing the bias voltage acquisition, it can be ensured that the vibration sensor fault can be discovered in time, and through a variety of speed calculation methods, it can be ensured that even if the key phase sensor is damaged, the vibration sensor can be used to replace the speed calculation. The data is automatically collected through the collection service, and it can be paused in time when the data is backlogged, ensuring the real-time nature of the algorithm model processing data. The data sending method of the collector is configured in detail by configuring the software, such as the collection cycle, data volume, collection channel, sensor type, trigger threshold and sampling ratio, so as to meet the collection requirements of different fault diagnosis models. The whole system ensures that the fault diagnosis algorithm can receive accurate and real-time data. The use of collectors is reduced by multiple collection strategies, simplifying the management of on-site collection equipment.
[0195] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0196] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0197] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0198] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0199] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A data collection method, It is characterized in that Applied to a collector, the method comprises: When the collector is powered on, the current main program is started, the current main program reads at least one locally stored collection strategy, and configures each collection channel of the collector according to the collection strategy to obtain collection data of each collection channel; In response to establishing a communication connection with the industrial computer, the current main program transmits the acquisition strategy to the industrial computer to instruct the industrial computer to configure the acquisition strategy and / or send a data request to the collector based on the acquisition strategy; In response to receiving the data request, the current main program transmits the corresponding collected data to the industrial computer; the collected data is used to instruct the industrial computer to obtain a fault diagnosis result based on a fault diagnosis model.
2. The data collection method according to claim 1, It is characterized in that Before the step of transmitting the acquisition strategy to the industrial computer in response to establishing a communication connection with the industrial computer, the method further includes: Receiving the acquisition strategy transmitted by the industrial computer, and locally storing the acquisition strategy; the acquisition strategy includes channel configuration information and acquisition configuration information; Among them, the channel configuration information includes at least one of the following parameters of the acquisition channel: opening state, sensor type, measurement unit, sensitivity and sampling ratio; the acquisition configuration information includes at least one of the following parameters of the collector: network IP address, acquisition trigger threshold, acquisition interval, sampling duration, speed reference channel, speed ratio and speed calculation algorithm.
3. The data collection method according to claim 2, It is characterized in that The data request carries a time period; the current main program stores the acquired acquisition data of each acquisition channel into a circular queue; In response to receiving the data request, the current main program transmits the corresponding collected data to the industrial computer, including: The current main program determines the collected data whose collection time belongs to the time period from the circular queue, and obtains the characteristic value of the collected data; The current main program determines that the characteristic value reaches the acquisition trigger threshold, and then transmits the acquired data to the industrial computer.
4. The data collection method according to claim 3, It is characterized in that The characteristic value includes the root mean square value of the collected data; the current main program includes the main process running in the collector.
5. The data collection method according to claim 2, It is characterized in that The current main program determines that the measurement unit corresponds to the rotational speed, and then selects the rotational speed calculation channel corresponding to the sensor type to obtain the collected data; wherein, the rotational speed calculation algorithms corresponding to different rotational speed calculation channels are different, and the main program has different selection priorities for different rotational speed calculation channels.
6. The data collection method according to claim 5, It is characterized in that The sensor types include key phase sensors and vibration sensors; the rotation speed calculation channel corresponding to the key phase sensor has a higher selection priority than the rotation speed calculation channel corresponding to the vibration sensor.
7. The data collection method according to any one of claims 1 to 6, It is characterized in that When the collector is powered on, the current main program is started, including: If it is detected that the startup directory of the current main program does not belong to the main directory, the data packet of the current main program in the startup directory is copied to the main directory; Exit the current main program and start the main program from the main directory.
8. The data collection method according to claim 7, It is characterized in that The method further comprises: In response to receiving a data packet of a target main program, installing the target main program in a temporary directory; the target main program is a main program after the version is updated; Exit the current main program and start the target main program from the temporary directory; wherein the temporary directory does not belong to the main directory.
9. The data collection method according to claim 8, It is characterized in that The method further comprises: If the startup of the current main program triggers a startup failure condition, the main program is started from the temporary directory; wherein the startup failure condition includes that the number of startup failures to start the current main program from the main directory reaches a threshold number.
10. The data collection method according to claim 1, It is characterized in that The method further comprises: The main program acquires the original signal of the sensor corresponding to the acquisition channel, and transmits fault information to the industrial computer when it is determined that the sensor fails according to the original signal; wherein the original signal includes the bias voltage of the sensor.
11. A data collection method, It is characterized in that Applied to an industrial computer, the method comprises: Receive the collection strategy transmitted by the collector, configure the collection strategy and / or send a data request to the collector based on the collection strategy; the data request is used to instruct the collector to transmit the corresponding collection data to the industrial computer based on the current main program started at power-on; wherein the current main program reads at least one collection strategy stored locally, and configures each collection channel of the collector according to the collection strategy to obtain the collection data of each collection channel; The collected data is received, and a fault diagnosis result is obtained based on a fault diagnosis model according to the collected data.
12. The data collection method according to claim 11, It is characterized in that The method further comprises: Transmitting the collected data to the fault diagnosis model in the form of a data file, so that the fault diagnosis model obtains the fault diagnosis result by processing the data file; If there is a backlog of files in the processing of the data files corresponding to the acquisition strategy by the fault diagnosis model, sending the data request is stopped.
13. A data acquisition device, It is characterized in that Applied to a collector, the device comprises: A program startup module, used to start the current main program when the collector is powered on, the current main program reads at least one locally stored acquisition strategy, and configures each acquisition channel of the collector according to the acquisition strategy to obtain acquisition data of each acquisition channel; A strategy transmission module, configured to, in response to establishing a communication connection with an industrial computer, transmit the acquisition strategy to the industrial computer by the current main program to instruct the industrial computer to configure the acquisition strategy and / or send a data request to the collector based on the acquisition strategy; The data transmission module is used for transmitting the corresponding collected data to the industrial computer in response to receiving the data request; the collected data is used to instruct the industrial computer to obtain the fault diagnosis result based on the fault diagnosis model.
14. A data acquisition device, It is characterized in that Applied to industrial computers, the device comprises: A data request module is used to receive a collection strategy transmitted by a collector, configure the collection strategy and / or send a data request to the collector based on the collection strategy; the data request is used to instruct the collector to transmit the corresponding collection data to the industrial computer based on the current main program started at power-on; wherein the current main program reads at least one collection strategy stored locally, and configures each collection channel of the collector according to the collection strategy to obtain the collection data of each collection channel; The fault diagnosis module is used to receive the collected data and obtain a fault diagnosis result based on the fault diagnosis model according to the collected data.
15. A multi-channel data acquisition system, It is characterized in that The system includes an industrial computer and a collector connected to the industrial computer, wherein the collector has collection channels corresponding to a plurality of sensors respectively, wherein: The collector is used to perform the steps of any one of the methods of claims 1 to 10; The industrial computer is used to execute the steps of the method described in claim 11 or 12.
16. The multi-channel data acquisition system according to claim 15, It is characterized in that The collector includes an acquisition chip for acquiring the original signal of the sensor; wherein the original signal includes the bias voltage of the sensor.
17. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.
18. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.
Citation Information
Patent Citations
Equipment operation and maintenance method and device, electronic equipment and computer readable storage medium
CN112101596A
Intelligent monitoring, analyzing and evaluating method and system device for blade health degree of axial flow fan and application of intelligent monitoring, analyzing and evaluating method and system device
CN115111181A
Root file system-containing mirror image file obtaining method and starting method
CN115129421A
Operation and maintenance method and system
CN118175093A
Systems and methods for providing multiple isolated execution environments for securely accessing untrusted content
US20110154431A1
Cited By
Data collection method, apparatus and system, and readable storage medium and program product
WO2026037263A1
