A solenoid valve drive current detection method, system, device and medium

By automatically acquiring and analyzing current data segments, combined with filtering and inflection point detection algorithms, the problem of low efficiency and accuracy in current detection of explosion-proof solenoid valves is solved, and efficient and high-precision current detection is achieved.

CN115508601BActive Publication Date: 2024-09-24成都天地直方发动机有限公司 +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211050616.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-29
Publication Date
2024-09-24
Estimated Expiration
2042-08-29

AI Technical Summary

Technical Problem

Existing current detection methods for explosion-proof solenoid valves have low detection efficiency and low detection accuracy. They rely on manual testing, are complex to operate and contain errors.

Method used

Using an automated method, the current value is obtained through preset time intervals, divided into multiple current data segments, and the target rise time and continuous current detection value are determined. Combined with filtering processing and inflection point detection algorithms, automated analysis of the current waveform is realized.

Benefits of technology

The efficiency and accuracy of current detection are improved, automatic, efficient, and high-precision solenoid valve drive current detection is realized, human intervention is reduced, and detection capabilities are enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115508601B
    Figure CN115508601B
Patent Text Reader

Abstract

The present invention discloses a solenoid valve driving current detection method, system, equipment and medium, which relates to the field of current detection technology. The method includes: obtaining multiple current values ​​for the solenoid valve at preset time intervals; dividing the multiple current values ​​into multiple current data segments, each of which contains multiple current values; determining a target rise time and a continuous current detection value according to each current data segment, wherein the continuous current detection value includes a continuous current value, a continuous current duration and a continuous current drop time. The present invention automatically obtains the current value for the solenoid valve, divides the obtained current value into multiple current data segments, and determines the target rise time and the continuous current detection value according to each current data segment to determine whether the current of the solenoid valve meets the requirements, thereby solving the problems of complicated operation, low detection efficiency and low detection accuracy in detecting the current waveform by manual visual inspection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of current detection, and in particular to a method, system, equipment and medium for detecting driving current of an electromagnetic valve. Background Art

[0002] Solenoid valves are industrial equipment controlled by electromagnetics. They are basic automation components used to control fluids and are actuators. According to their functional classification, solenoid valves are divided into gas solenoid valves, liquid solenoid valves, micro solenoid valves, DC solenoid valves, explosion-proof solenoid valves, etc. Among them, explosion-proof solenoid valves are all parts of the equipment that may ignite explosive gas mixtures enclosed in a shell. The shell can withstand the internal explosion of the flammable mixture that penetrates into the shell through any joint surface or structural gap of the shell without damage, and will not cause the ignition of the external explosive environment formed by one or more gases or vapors. All parts that may generate sparks, arcs and dangerous temperatures are placed in a flameproof shell, which separates the internal space of the equipment from the surrounding environment.

[0003] Among the explosion-proof solenoid valves, the explosion-proof fuel injection solenoid valve is used in conjunction with the fuel injector to accurately control the injection time, injection amount, injection times, etc. of the diesel engine's fuel, thereby adjusting the speed and power of the diesel engine; the explosion-proof urea nozzle solenoid valve is used in conjunction with the urea nozzle to accurately control the injection of urea solution. Urea solution is an important catalyst in the harmless treatment of exhaust gas using the selective catalytic reduction method. Urea solution is used to reduce nitrogen oxides into nitrogen, thereby reducing the pollution of exhaust gas to the environment.

[0004] There are two main forms of current waveforms of explosion-proof solenoid valves. One includes three stages: current rise, continuous current and current drop, and the other includes five stages: current rise, peak current, first current drop, continuous current and second current drop. The existing current detection method of explosion-proof solenoid valves is relatively backward and is in the manual testing stage. The general method of manual testing is: open the solenoid valve, use a current clamp to collect the solenoid valve driving current, output the collected data to the oscilloscope display, and the operator visually measures the waveform, and finally saves the waveform. Manual detection of the current of explosion-proof solenoid valves has the problems of complicated operation, low detection efficiency, frequent human intervention and low detection accuracy. Summary of the invention

[0005] The technical problem to be solved by the present invention is that the current detection method of the existing explosion-proof solenoid valve has low detection efficiency and low detection accuracy. To solve the technical problem, the present invention provides a solenoid valve driving current detection method, system, device and medium.

[0006] The technical solution of the present invention to solve the above technical problems is as follows:

[0007] A method for detecting a solenoid valve driving current, comprising:

[0008] Step S1, obtaining a plurality of current values ​​for the solenoid valve at preset time intervals;

[0009] Step S2, dividing the multiple current values ​​into multiple current data segments, each current data segment contains multiple current values;

[0010] Step S3, determining a target rise time and a continuous current detection value according to each of the current data segments, wherein the continuous current detection value includes a continuous current value, a continuous current duration, and a continuous current fall time.

[0011] The beneficial effects of the present invention are as follows: by automatically acquiring the current value for the solenoid valve, the acquired current value is divided into multiple current data segments, and the target rise time and continuous current detection value are determined according to each current data segment to judge whether the current of the solenoid valve meets the requirements. This solves the problems of complicated operation, low detection efficiency and low detection accuracy in detecting the current waveform by manual visual inspection, and realizes automatic, efficient and high-precision detection of the driving current.

[0012] Based on the above technical solution, the present invention can also be improved as follows.

[0013] Furthermore, the method further comprises:

[0014] According to each of the current data segments, a peak current detection value is determined, and the peak current detection value includes a peak current value, a peak current duration, and a peak current drop time.

[0015] The beneficial effect of adopting the above further solution is: by detecting the peak current detection value, the current detection including the peak current and the continuous current is realized, thereby improving the current detection capability of the method.

[0016] Furthermore, before the above step S2, the following steps are also included:

[0017] Performing filtering on each of the current values ​​to obtain a target current value corresponding to each of the current values;

[0018] The above step S2 comprises:

[0019] The multiple target current values ​​are divided into multiple current data segments, each of which contains multiple target current values.

[0020] The beneficial effect of adopting the above further solution is that by filtering the original current data, the accidental interference pulses can be avoided from affecting the current detection, thereby improving the accuracy of the current detection.

[0021] Furthermore, the filtering process is performed on each current value to obtain a target current value corresponding to each current value, specifically including:

[0022] For the obtained multiple current values, group the multiple current values ​​according to a preset grouping threshold N to obtain multiple groups of current data sequences; wherein each group of the current data sequence includes N current values;

[0023] For each current data sequence, remove the maximum current value and the minimum current value from the N current values ​​included in the current data sequence to obtain N-2 intermediate current values, and calculate the average value of the N-2 intermediate current values;

[0024] For each of the current data sequences, the average value is used as the target current value corresponding to the current data sequence; wherein N>2.

[0025] The beneficial effect of adopting the above further solution is: using the median average filtering algorithm to filter the original current data can effectively eliminate the influence of accidental interference pulses and facilitate the detection of the current.

[0026] Further, if each of the current values ​​includes a continuous current, the method further includes:

[0027] Determine the continuous current detection value according to the current data segment to which the continuous current belongs;

[0028] In the above step S2, the plurality of current values ​​are divided into a plurality of current data segments, including:

[0029] For each of the current values, if the current value is greater than a preset first lower threshold value and less than a preset first upper threshold value, determining a current inflection point according to the current value;

[0030] Obtaining a collection time point of each current value;

[0031] Dividing the plurality of current values ​​into a plurality of current data segments according to the collection time points of the current values ​​corresponding to the respective current inflection points;

[0032] The above method further includes:

[0033] For each of the current values, if the current value is not greater than the first lower threshold or not less than the first upper threshold, it is determined that the current value is not a current inflection point.

[0034] The beneficial effect of adopting the above further scheme is: for a current waveform that contains continuous current but does not contain peak current, by comparing the current data with a preset first lower threshold and a first upper threshold, the amount of data required to determine the inflection point using a subsequent inflection point detection algorithm can be reduced, the running time of the inflection point detection algorithm can be reduced, and the calculation accuracy of the inflection point detection algorithm and the detection efficiency of this method can be improved.

[0035] Further, if each of the current values ​​includes a continuous current and a peak current, the method further includes:

[0036] Determine the continuous current detection value according to the current data segment to which the continuous current belongs, and determine the peak current detection value according to the current data segment to which the peak current belongs;

[0037] In the above step S2, the plurality of current values ​​are divided into a plurality of current data segments, including:

[0038] For each of the current values, if the current value is greater than a preset first lower threshold value and less than a preset first upper threshold value, the current value is used as a first detection value, and a current inflection point is determined according to the first detection value;

[0039] For each of the current values, if the current value is greater than the first upper threshold, determining whether the current value is greater than a preset second lower threshold and less than a preset second upper threshold;

[0040] If the current value is greater than the second lower threshold value and less than the second upper threshold value, taking the current value as a second detection value, and determining a current inflection point according to the second detection value;

[0041] Obtaining a collection time point of each current value;

[0042] Dividing the plurality of current values ​​into a plurality of current data segments according to the collection time points of the current values ​​corresponding to the respective current inflection points;

[0043] or,

[0044] For each of the current values, if the current value is greater than the second lower threshold value and less than the second upper threshold value, the current value is used as a first detection value, and a current inflection point is determined according to the first detection value;

[0045] For each of the current values, if the current value is not greater than the second lower threshold, determining whether the current value is greater than the first lower threshold and less than the first upper threshold;

[0046] If the current value is greater than the first lower threshold value and less than the first upper threshold value, taking the current value as a second detection value, and determining a current inflection point according to the second detection value;

[0047] Obtaining a collection time point of each current value;

[0048] Dividing the plurality of current values ​​into a plurality of current data segments according to the collection time points of the current values ​​corresponding to the respective current inflection points;

[0049] Wherein, the second lower threshold is greater than the first upper threshold;

[0050] The method further includes:

[0051] For each of the current values, if the current value is not greater than the first lower threshold or not less than the second upper threshold, it is determined that the current value is not a current inflection point.

[0052] The beneficial effect of adopting the above further scheme is: for a current waveform that contains both continuous current and peak current, by comparing the current data with a preset first lower threshold, a first upper threshold, a second lower threshold and a second upper threshold, the amount of data required to determine the inflection point using a subsequent inflection point detection algorithm can be reduced, the running time of the inflection point detection algorithm can be reduced, and the calculation accuracy of the inflection point detection algorithm and the detection efficiency of the present method can be improved.

[0053] Further, the above-mentioned determining the current inflection point according to the current value includes:

[0054] Performing differentiation processing on the current value to obtain a differential value corresponding to the current value;

[0055] A two-dimensional coordinate system is established with time as the horizontal axis and the value of the differential value as the vertical axis;

[0056] Drawing a line graph in the two-dimensional coordinate system according to the acquisition time point of each current value and the differential value corresponding to each current value;

[0057] According to the preset inflection point threshold I diff The broken line in the broken line graph is divided into a plurality of broken line segments, each of which corresponds to a numerical range and a slope; wherein the endpoints of the numerical range are 0 and I diff , or 0 and -I diff , the slope is positive or negative;

[0058] For the numerical interval, the endpoints are 0 and I diff and the broken line segment has a negative slope, and a peak inflection point is determined according to the current value corresponding to the differential value in the broken line segment;

[0059] The endpoints of the numerical interval are 0 and -I diff and the zigzag line segment has a positive slope, and a valley inflection point is determined according to the current value corresponding to the differential value in the zigzag line segment;

[0060] The current inflection point includes the peak inflection point and the valley inflection point.

[0061] The beneficial effect of adopting the above further scheme is: using the inflection point detection algorithm to determine the inflection point in the current data can further clarify the characteristics of the current waveform data, providing a basis for subsequent analysis of the target rise time, continuous current detection value and peak current detection value.

[0062] In order to solve the above technical problems, the present invention also provides a solenoid valve driving current detection system, comprising:

[0063] A data acquisition module, used for acquiring a plurality of current values ​​for the solenoid valve at preset time intervals;

[0064] A first data processing module, configured to divide the plurality of current values ​​into a plurality of current data segments, each of the current data segments comprising a plurality of the current values;

[0065] The second data processing module is used to determine the target rise time and the continuous current detection value according to each of the current data segments, and the continuous current detection value includes the continuous current value, the continuous current duration and the continuous current fall time.

[0066] To solve the above technical problems, the present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements a solenoid valve drive current detection method as described above when executing the computer program.

[0067] In order to solve the above technical problems, the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the solenoid valve drive current detection method as described above is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 Schematic diagram of the process of the present invention;

[0069] Figure 2 Schematic diagram of the current waveform of the explosion-proof fuel injection solenoid valve in the present invention Figure 1 ;

[0070] Figure 3 Schematic diagram of the current waveform of the explosion-proof fuel injection solenoid valve in the present invention Figure 2 ;

[0071] Figure 4 It is a structural schematic diagram of the system in the present invention;

[0072] Figure 5 It is a schematic diagram of the structure of the electronic device in the present invention. DETAILED DESCRIPTION

[0073] The principles and features of the present invention are described below. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.

[0074] Embodiment 1

[0075] In order to solve the technical problems existing in the prior art, this embodiment provides a solenoid valve driving current detection method, such as Figure 1 As shown, the method includes:

[0076] Step S1, obtaining a plurality of current values ​​for the solenoid valve at preset time intervals;

[0077] Step S2, dividing the multiple current values ​​into multiple current data segments, each current data segment contains multiple current values;

[0078] Step S3, determining a target rise time and a continuous current detection value according to each of the current data segments, wherein the continuous current detection value includes a continuous current value, a continuous current duration, and a continuous current fall time.

[0079] Among them, the target rise time refers to the duration between the time point when the current value of the solenoid valve starts to be obtained and the time point when the continuous current starts, the continuous current detection value refers to the parameter corresponding to the continuous and uninterrupted current in the current data segment to which the continuous current belongs, the continuous current numerical value refers to the multiple instantaneous current values ​​corresponding to the continuous and uninterrupted current in the current data segment to which the continuous current belongs, the continuous current duration time refers to the duration corresponding to the continuous and uninterrupted current in the current data segment to which the continuous current belongs, and the continuous current fall time refers to the duration between the time point when the continuous current ends and the time point when the solenoid valve is stopped from being obtained.

[0080] If each of the current values ​​includes a continuous current, it indicates that the acquired multiple current values ​​include a current value greater than a preset first lower threshold and less than a preset first upper threshold, and the first lower threshold is less than the first upper threshold.

[0081] If each of the current values ​​includes a continuous current, the method further comprises:

[0082] Determine the continuous current detection value according to the current data segment to which the continuous current belongs;

[0083] In the above step S2, the plurality of current values ​​are divided into a plurality of current data segments, including:

[0084] For each of the current values, if the current value is greater than the first lower threshold and less than the first upper threshold, determining a current inflection point according to the current value;

[0085] Obtaining a collection time point of each current value;

[0086] Dividing the plurality of current values ​​into a plurality of current data segments according to the collection time points of the current values ​​corresponding to the respective current inflection points;

[0087] The method further includes:

[0088] For each of the current values, if the current value is not greater than the first lower threshold or not less than the first upper threshold, it is determined that the current value is not a current inflection point.

[0089] Wherein, the above-mentioned determining the current inflection point according to the current value includes:

[0090] Performing differentiation processing on the current value to obtain a differential value corresponding to the current value;

[0091] A two-dimensional coordinate system is established with time as the horizontal axis and the value of the differential value as the vertical axis;

[0092] Drawing a line graph in the two-dimensional coordinate system according to the acquisition time point of each current value and the differential value corresponding to each current value;

[0093] According to the preset inflection point threshold I diff The broken line in the broken line graph is divided into a plurality of broken line segments, each of which corresponds to a numerical range and a slope; wherein the endpoints of the numerical range are 0 and I diff , or 0 and -I diff , the slope is positive or negative;

[0094] For the numerical interval, the endpoints are 0 and I diff and the broken line segment has a negative slope, and a peak inflection point is determined according to the current value corresponding to the differential value in the broken line segment;

[0095] The endpoints of the numerical interval are 0 and -I diff and the zigzag line segment has a positive slope, and a valley inflection point is determined according to the current value corresponding to the differential value in the zigzag line segment;

[0096] The current inflection point includes the peak inflection point and the valley inflection point.

[0097] Among them, the method for determining the peak inflection point can be based on the order of collecting the current values, and the current value corresponding to the first differential value in the broken line segment can be used as the peak inflection point. It can also be based on the differential values ​​in the broken line segment, and the current value corresponding to the middle value of each differential value can be selected as the peak inflection point. When the differential value does not exist in the broken line segment, the current value corresponding to the adjacent differential value of the broken line segment can also be used as the peak inflection point. The method for determining the valley inflection point is similar to the method for determining the peak inflection point, and the similarities are not repeated here. In this embodiment, for the endpoints of the numerical interval are 0 and I diff and the slope of the broken line segment is negative, the current value corresponding to the first differential value in the broken line segment is taken as the peak inflection point; for the endpoints of the numerical interval are 0 and -I diff For the broken line segment with a positive slope, the current value corresponding to the first differential value in the broken line segment is taken as the peak inflection point.

[0098] Taking the current waveform of the explosion-proof fuel injection solenoid valve as an example, the current value is obtained at a preset time interval ΔT. The current value obtained for the i-th time is A[i], where i is a variable, indicating the acquisition sequence number corresponding to the current value. The time point corresponding to the i-th current value is T[i]. The calculation formula of T[i] is: T[i] = ΔT×i. Figure 2 After differentiating the current value in the current waveform, a peak inflection point P2 and a valley inflection point P3 are determined. Figure 2 middle, I c Indicates the current value range corresponding to the continuous current, I cmin Represents the first lower threshold, I cmax Indicates the first upper threshold.

[0099] The current waveform formed by the acquired current value is divided into three current data segments: current rise, continuous current and current drop. P1 is the current value acquisition trigger point, the peak inflection point P2 is the end point of the current rise stage and the starting point of the continuous current stage, the valley inflection point P3 is the end point of the continuous current stage and the starting point of the current drop stage, and P4 is the current value acquisition end point; the time point corresponding to the peak inflection point P2 is T[a] and the corresponding current value is A[a], the time point corresponding to the valley inflection point P3 is T[b] and the corresponding current value is A[b], the time point corresponding to the acquisition end point P4 is T[c], P1 to P2 is the current rise stage, P2 to P3 is the continuous current stage, and P3 to P4 is the current drop stage.

[0100] The duration of the current rising phase is T1 = ΔT × T[a];

[0101] The duration of the continuous current phase is T2 = ΔT × (T[b]-T[a]);

[0102] Average current during continuous current phase

[0103] The duration of the current falling phase T3 = ΔT × (T[c]-T[b]);

[0104] The target rising time is the duration T1 used in the current rising stage, the continuous current value is the average current I1 in the continuous current stage, the continuous current duration is the duration T2 used in the continuous current stage, and the continuous current falling time is the duration T3 used in the current falling stage.

[0105] Embodiment 2

[0106] On the basis of the above embodiment 1, the above step S3 further includes:

[0107] According to each of the current data segments, a peak current detection value is determined, and the peak current detection value includes a peak current value, a peak current duration, and a peak current drop time.

[0108] Among them, the peak current detection value refers to the parameter corresponding to the continuous and uninterrupted current in the current data segment to which the peak current belongs, the peak current numerical value refers to the multiple instantaneous current values ​​corresponding to the continuous and uninterrupted current in the current data segment to which the peak current belongs, the peak current duration time refers to the duration corresponding to the continuous and uninterrupted current in the current data segment to which the peak current belongs, and the peak current drop time refers to the duration between the time point when the peak current ends and the time point when the solenoid valve stops being acquired.

[0109] Among them, if each of the current values ​​includes a continuous current and a peak current, it indicates that the multiple current values ​​obtained include a current value greater than a preset first lower threshold and less than a preset first upper threshold, and also include a current value greater than a preset second lower threshold and less than a preset second upper threshold, the first lower threshold is less than the first upper threshold, the second lower threshold is less than the second upper threshold, and the second lower threshold is greater than the first upper threshold.

[0110] If each of the current values ​​includes a continuous current and a peak current, the method further includes:

[0111] The continuous current detection value is determined according to the current data segment to which the continuous current belongs, and the peak current detection value is determined according to the current data segment to which the peak current belongs.

[0112] In the above step S2, the plurality of current values ​​are divided into a plurality of current data segments, including:

[0113] For each of the current values, if the current value is greater than the first lower threshold value and less than the first upper threshold value, the current value is used as a first detection value, and a current inflection point is determined according to the first detection value;

[0114] For each of the current values, if the current value is greater than the first upper threshold, determining whether the current value is greater than the second lower threshold and less than the second upper threshold;

[0115] If the current value is greater than the second lower threshold value and less than the second upper threshold value, taking the current value as a second detection value, and determining a current inflection point according to the second detection value;

[0116] Obtaining a collection time point of each current value;

[0117] Dividing the plurality of current values ​​into a plurality of current data segments according to the collection time points of the current values ​​corresponding to the respective current inflection points;

[0118] or,

[0119] For each of the current values, if the current value is greater than the second lower threshold value and less than the second upper threshold value, the current value is used as a first detection value, and a current inflection point is determined according to the first detection value;

[0120] For each of the current values, if the current value is not greater than the second lower threshold, determining whether the current value is greater than the first lower threshold and less than the first upper threshold;

[0121] If the current value is greater than the first lower threshold value and less than the first upper threshold value, taking the current value as a second detection value, and determining a current inflection point according to the second detection value;

[0122] Obtaining a collection time point of each current value;

[0123] Dividing the plurality of current values ​​into a plurality of current data segments according to the collection time points of the current values ​​corresponding to the respective current inflection points;

[0124] The method further includes:

[0125] For each of the current values, if the current value is not greater than the first lower threshold or not less than the second upper threshold, it is determined that the current value is not a current inflection point.

[0126] The method of determining the current inflection point according to the first detection value and the method of determining the current inflection point according to the second detection value are similar to the method of determining the current inflection point according to the current value, and similarities are not repeated here.

[0127] Taking the current waveform of the explosion-proof fuel injection solenoid valve as an example, the current value is obtained at a preset time interval ΔT. The current value obtained for the jth time is B[j], where j is a variable, indicating the acquisition sequence number corresponding to the current value. The time point corresponding to the jth current value is T[j]. The calculation formula of T[j] is: T[j] = ΔT × j. Figure 3 After differentiating the current value in the current waveform, two peak inflection points (P2 and P4) and two valley inflection points (P3 and P5) are determined. Figure 3 middle, I c Indicates the current value range corresponding to the continuous current, I cmin Represents the first lower threshold, I cmax Represents the first upper threshold, I p Indicates the current value range corresponding to the peak current, I cmin Represents the second lower threshold, I cmax Indicates the second upper threshold.

[0128] The current waveform formed by the acquired current value is divided into five current data segments: current rise, peak current, first current drop, continuous current, and second current drop. P1 is the current value acquisition trigger point, the peak inflection point P2 is the end point of the current rise phase and the starting point of the peak current phase, the valley inflection point P3 is the end point of the peak current phase and the starting point of the first current drop phase, the peak inflection point P4 is the end point of the first current drop phase and the starting point of the continuous current phase, the valley inflection point P5 is the end point of the continuous current phase and the starting point of the second current drop, and P6 is the end point of the current value acquisition; the peak inflection point P2 corresponds to The time point is T[a], and the corresponding current value is B[a]; the time point corresponding to the valley inflection point P3 is T[b], and the corresponding current value is B[b]; the time point corresponding to the peak inflection point P4 is T[c], and the corresponding current value is B[c]; the time point corresponding to the valley inflection point P5 is T[d], and the corresponding current value is B[d]; the time point corresponding to the acquisition end point P6 is T[e]; P1 to P2 is the current rising stage, P2 to P3 is the peak current stage, P3 to P4 is the first current falling stage, P4 to P5 is the continuous current stage, and P5 to P6 is the second current falling stage.

[0129] The duration of the current rising phase is T1' = ΔT × T[a];

[0130] The duration of the peak current phase T2' = ΔT × (T[b] - T[a]);

[0131] Average current during peak current phase

[0132] The duration of the first current drop phase T3'=ΔT×(T[c]-T[b]);

[0133] The duration of the continuous current phase is T4' = ΔT × (T[d] - T[c]);

[0134] Average current during continuous current phase

[0135] The duration of the second current drop phase T5'=ΔT×(T[e]-T[d]);

[0136] The target rise time is the duration T1' used in the current rise stage, the peak current value is the average current I1' in the peak current stage, the peak current duration is the duration T2' used in the peak current stage, the peak current drop time is the duration T3' used in the first current drop stage, the continuous current value is the average current I2' in the continuous current stage, the continuous current duration is the duration T4' used in the continuous current stage, and the continuous current drop time is the duration T5' used in the second current drop stage.

[0137] Embodiment 3

[0138] On the basis of the above embodiment 1 or 2, further, before the above step S2, it also includes:

[0139] Performing filtering on each of the current values ​​to obtain a target current value corresponding to each of the current values;

[0140] The above step S2 comprises:

[0141] The multiple target current values ​​are divided into multiple current data segments, each of which contains multiple target current values.

[0142] The filtering process for each current value to obtain a target current value corresponding to each current value specifically includes:

[0143] For the obtained multiple current values, group the multiple current values ​​according to a preset grouping threshold N to obtain multiple groups of current data sequences; wherein each group of the current data sequence includes N current values;

[0144] For each current data sequence, remove the maximum current value and the minimum current value from the N current values ​​included in the current data sequence to obtain N-2 intermediate current values, and calculate the average value of the N-2 intermediate current values;

[0145] For each of the current data sequences, the average value is used as the target current value corresponding to the current data sequence; wherein N>2.

[0146] Embodiment 4

[0147] Based on the same principle as the electromagnetic valve driving current detection method in the above-mentioned embodiment 1, this embodiment provides an electromagnetic valve driving current detection system, such as Figure 4 As shown, including:

[0148] A data acquisition module, used for acquiring a plurality of current values ​​for the solenoid valve at preset time intervals;

[0149] A first data processing module, configured to divide the plurality of current values ​​into a plurality of current data segments, each of the current data segments comprising a plurality of the current values;

[0150] The second data processing module is used to determine the target rise time and the continuous current detection value according to each of the current data segments, and the continuous current detection value includes the continuous current value, the continuous current duration and the continuous current fall time.

[0151] The system also includes:

[0152] The third data processing module is used to determine a peak current detection value according to each of the current data segments, wherein the peak current detection value includes a peak current value, a peak current duration, and a peak current drop time.

[0153] Wherein, the first data processing module is also used for:

[0154] Performing filtering on each of the current values ​​to obtain a target current value corresponding to each of the current values;

[0155] The first data processing module is specifically used for:

[0156] The multiple target current values ​​are divided into multiple current data segments, each of which contains multiple target current values.

[0157] Wherein, when the first data processing module performs filtering processing on each of the current values ​​to obtain the target current value corresponding to each of the current values, it is specifically used to:

[0158] For the obtained multiple current values, group the multiple current values ​​according to a preset grouping threshold N to obtain multiple groups of current data sequences; wherein each group of the current data sequence includes N current values;

[0159] For each current data sequence, remove the maximum current value and the minimum current value from the N current values ​​included in the current data sequence to obtain N-2 intermediate current values, and calculate the average value of the N-2 intermediate current values;

[0160] For each of the current data sequences, the average value is used as the target current value corresponding to the current data sequence; wherein N>2.

[0161] Wherein, if each of the current values ​​includes a continuous current, the system further comprises:

[0162] A first continuous current detection value determination module, configured to determine the continuous current detection value according to the current data segment to which the continuous current belongs;

[0163] When the first data processing module divides the multiple current values ​​into multiple current data segments, it is specifically used to:

[0164] For each of the current values, if the current value is greater than a preset first lower threshold value and less than a preset first upper threshold value, determining a current inflection point according to the current value;

[0165] Obtaining a collection time point of each current value;

[0166] Dividing the plurality of current values ​​into a plurality of current data segments according to the collection time points of the current values ​​corresponding to the respective current inflection points;

[0167] The system also includes:

[0168] The current inflection point determination module determines, for each current value, that if the current value is not greater than the first lower threshold or not less than the first upper threshold, that the current value is not a current inflection point.

[0169] Wherein, when determining the current inflection point according to the current value, the first data processing module is specifically used to:

[0170] Performing differentiation processing on the current value to obtain a differential value corresponding to the current value;

[0171] A two-dimensional coordinate system is established with time as the horizontal axis and the value of the differential value as the vertical axis;

[0172] Drawing a line graph in the two-dimensional coordinate system according to the acquisition time point of each current value and the differential value corresponding to each current value;

[0173] According to the preset inflection point threshold I diff The broken line in the broken line graph is divided into a plurality of broken line segments, each of which corresponds to a numerical range and a slope; wherein the endpoints of the numerical range are 0 and I diff , or 0 and -I diff , the slope is positive or negative;

[0174] For the numerical interval, the endpoints are 0 and I diff and the broken line segment has a negative slope, and a peak inflection point is determined according to the current value corresponding to the differential value in the broken line segment;

[0175] The endpoints of the numerical interval are 0 and -I diff and the zigzag line segment has a positive slope, and a valley inflection point is determined according to the current value corresponding to the differential value in the zigzag line segment;

[0176] The current inflection point includes the peak inflection point and the valley inflection point.

[0177] Wherein, if each of the current values ​​includes a continuous current and a peak current, the system further includes:

[0178] a second continuous current detection value determination module, configured to determine the continuous current detection value according to the current data segment to which the continuous current belongs, and to determine the peak current detection value according to the current data segment to which the peak current belongs;

[0179] When the first data processing module divides the multiple current values ​​into multiple current data segments, it is specifically used to:

[0180] For each of the current values, if the current value is greater than a preset first lower threshold value and less than a preset first upper threshold value, the current value is used as a first detection value, and a current inflection point is determined according to the first detection value;

[0181] For each of the current values, if the current value is greater than the first upper threshold, determining whether the current value is greater than a preset second lower threshold and less than a preset second upper threshold;

[0182] If the current value is greater than the second lower threshold value and less than the second upper threshold value, taking the current value as a second detection value, and determining a current inflection point according to the second detection value;

[0183] Obtaining a collection time point of each current value;

[0184] Dividing the plurality of current values ​​into a plurality of current data segments according to the collection time points of the current values ​​corresponding to the respective current inflection points;

[0185] or,

[0186] For each of the current values, if the current value is greater than the second lower threshold value and less than the second upper threshold value, the current value is used as a first detection value, and a current inflection point is determined according to the first detection value;

[0187] For each of the current values, if the current value is not greater than the second lower threshold, determining whether the current value is greater than the first lower threshold and less than the first upper threshold;

[0188] If the current value is greater than the first lower threshold value and less than the first upper threshold value, taking the current value as a second detection value, and determining a current inflection point according to the second detection value;

[0189] Obtaining a collection time point of each current value;

[0190] Dividing the plurality of current values ​​into a plurality of current data segments according to the collection time points of the current values ​​corresponding to the respective current inflection points;

[0191] Wherein, the second lower threshold is greater than the first upper threshold;

[0192] The system also includes:

[0193] The inflection point determination module is used to determine, for each current value, if the current value is not greater than the first lower threshold or not less than the second upper threshold, that the current value is not a current inflection point.

[0194] In this embodiment, the data acquisition module includes a current conversion circuit, a trigger circuit, an acquisition circuit and a communication circuit connected in sequence, the current conversion circuit is respectively connected to the trigger circuit, the acquisition circuit and the solenoid valve; the first data processing module and the second data processing module realize their functions through a microcontroller unit (MCU for short), the trigger circuit and the acquisition circuit are connected to the MCU through the communication circuit, the MCU is connected to a host computer for communication, the host computer is used to display the preset acquisition parameters and the preset detection parameters, and compare and display the target rise time, the continuous current detection value, the peak current detection value and the target rise time, continuous current detection value and peak current detection value determined according to the standard waveform, wherein the target rise time, continuous current detection value and peak current detection value determined according to the standard waveform are set by the method of the present invention or manually, and the detection parameters include the target rise time, the continuous current value, the peak current value, the inflection point threshold, the first upper threshold, the first lower threshold, the second upper threshold and the second lower threshold. In this embodiment, the current conversion circuit adopts LESR 25-NP*8, and the MCU adopts Aurix TC234.

[0195] by Figure 3 Taking the current waveform shown in the figure as an example, the current detection implemented by this system includes:

[0196] The current conversion circuit converts the current signal into a voltage signal, and the trigger circuit outputs an acquisition signal for starting to acquire current data. After receiving the trigger signal, the MCU acquires data according to preset acquisition parameters through the acquisition circuit, and transmits the data to the host computer through the communication circuit, wherein the preset acquisition parameters include trigger voltage, number of sampling points, sampling frequency, and number of pre-trigger points. The MCU segments the current value acquired according to the acquired current value to obtain multiple current data segments, and then determines the target rise time, continuous current detection value, and peak current detection value according to each current data segment.

[0197] It should be noted that in the data acquisition module, the trigger circuit outputs a collection signal to start acquiring current data only when the solenoid valve voltage reaches the trigger voltage. Figure 2 and Figure 3 In the figure, P1 is the ideal current value collection trigger point, and the actual current value collection trigger point is located in the current rising stage. However, since there are still some current values ​​in the trigger circuit before the solenoid valve voltage reaches the trigger voltage (that is, the actual current value collection trigger point), the current value of the trigger circuit before the solenoid valve voltage reaches the trigger voltage is compensated in the form of pre-trigger points to ensure the integrity of the data. The pre-trigger points represent the number of times the trigger circuit collects current values ​​before the solenoid valve voltage reaches the trigger voltage.

[0198] Embodiment 5

[0199] In order to solve the technical problems existing in the prior art, this embodiment provides an electronic device, such as Figure 5 As shown, it includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, a solenoid valve driving current detection method as described in any one of embodiments one to three is implemented.

[0200] Embodiment 6

[0201] In order to solve the technical problems existing in the prior art, this embodiment provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, a solenoid valve drive current detection method as described in any one of embodiments one to three is implemented.

[0202] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A method for detecting a solenoid valve driving current, It is characterized in that include: Step S1, obtaining a plurality of current values ​​for the solenoid valve at preset time intervals; Step S2, dividing the multiple current values ​​into multiple current data segments, each current data segment contains multiple current values; Step S3, determining a target rise time and a continuous current detection value according to each of the current data segments, wherein the continuous current detection value includes a continuous current value, a continuous current duration, and a continuous current fall time; It also includes: determining a peak current detection value according to each of the current data segments, wherein the peak current detection value includes a peak current value, a peak current duration, and a peak current drop time; If each of the current values ​​includes a continuous current and a peak current, the method further includes: Determine the continuous current detection value according to the current data segment to which the continuous current belongs, and determine the peak current detection value according to the current data segment to which the peak current belongs; In the step S2, the plurality of current values ​​are divided into a plurality of current data segments, including: For each of the current values, if the current value is greater than a preset first lower threshold value and less than a preset first upper threshold value, the current value is used as a first detection value, and a current inflection point is determined according to the first detection value; For each of the current values, if the current value is greater than the first upper threshold, determining whether the current value is greater than a preset second lower threshold and less than a preset second upper threshold; If the current value is greater than the second lower threshold value and less than the second upper threshold value, taking the current value as a second detection value, and determining a current inflection point according to the second detection value; Obtaining a collection time point of each current value; Dividing the plurality of current values ​​into a plurality of current data segments according to the collection time points of the current values ​​corresponding to the respective current inflection points; Or, for each current value, if the current value is greater than the second lower threshold value and less than the second upper threshold value, the current value is used as a first detection value, and a current inflection point is determined according to the first detection value; For each of the current values, if the current value is not greater than the second lower threshold, determining whether the current value is greater than the first lower threshold and less than the first upper threshold; If the current value is greater than the first lower threshold value and less than the first upper threshold value, taking the current value as a second detection value, and determining a current inflection point according to the second detection value; Obtaining a collection time point of each current value; Dividing the plurality of current values ​​into a plurality of current data segments according to the collection time points of the current values ​​corresponding to the respective current inflection points; Wherein, the second lower threshold is greater than the first upper threshold; The method further comprises: For each of the current values, if the current value is not greater than the first lower threshold or not less than the second upper threshold, it is determined that the current value is not a current inflection point.

2. A solenoid valve driving current detection method according to claim 1, It is characterized in that Before step S2, the method further includes: Performing filtering on each of the current values ​​to obtain a target current value corresponding to each of the current values; The step S2 comprises: The multiple target current values ​​are divided into multiple current data segments, each of which contains multiple target current values.

3. A solenoid valve driving current detection method according to claim 2, It is characterized in that The filtering process for each current value to obtain a target current value corresponding to each current value specifically includes: For the obtained multiple current values, group the multiple current values ​​according to a preset grouping threshold N to obtain multiple groups of current data sequences; wherein each group of the current data sequence includes N current values; For each current data sequence, remove the maximum current value and the minimum current value from the N current values ​​included in the current data sequence to obtain N-2 intermediate current values, and calculate the average value of the N-2 intermediate current values; For each of the current data sequences, the average value is used as the target current value corresponding to the current data sequence; wherein N>2.

4. A solenoid valve driving current detection method according to claim 1, It is characterized in that If each of the current values ​​includes a continuous current, the method further comprises: Determine the continuous current detection value according to the current data segment to which the continuous current belongs; In the step S2, the plurality of current values ​​are divided into a plurality of current data segments, including: For each of the current values, if the current value is greater than a preset first lower threshold value and less than a preset first upper threshold value, determining a current inflection point according to the current value; Obtaining a collection time point of each current value; Dividing the plurality of current values ​​into a plurality of current data segments according to the collection time points of the current values ​​corresponding to the respective current inflection points; The method further comprises: For each of the current values, if the current value is not greater than the first lower threshold or not less than the first upper threshold, it is determined that the current value is not a current inflection point.

5. A solenoid valve driving current detection method according to claim 4, It is characterized in that The determining the current inflection point according to the current value comprises: Performing differentiation processing on the current value to obtain a differential value corresponding to the current value; A two-dimensional coordinate system is established with time as the horizontal axis and the value of the differential value as the vertical axis; Drawing a line graph in the two-dimensional coordinate system according to the acquisition time point of each current value and the differential value corresponding to each current value; According to the preset inflection point threshold I diff The broken line in the broken line graph is divided into a plurality of broken line segments, each of which corresponds to a numerical range and a slope; wherein the endpoints of the numerical range are 0 and I diff , or 0 and -I diff , the slope is positive or negative; For the numerical interval, the endpoints are 0 and I diff and the broken line segment has a negative slope, and a peak inflection point is determined according to the current value corresponding to the differential value in the broken line segment; The endpoints of the numerical interval are 0 and -I diff and the fold line segment has a positive slope, and a valley inflection point is determined according to the current value corresponding to the differential value in the fold line segment; The current inflection point includes the peak inflection point and the valley inflection point.

6. A solenoid valve drive current detection system, It is characterized in that include: A data acquisition module, used for acquiring a plurality of current values ​​for the solenoid valve at preset time intervals; A first data processing module, configured to divide the plurality of current values ​​into a plurality of current data segments, each of the current data segments comprising a plurality of the current values; A second data processing module is used to determine a target rise time and a continuous current detection value according to each of the current data segments, wherein the continuous current detection value includes a continuous current value, a continuous current duration, and a continuous current fall time; The system also includes: A third data processing module, used to determine a peak current detection value according to each of the current data segments, wherein the peak current detection value includes a peak current value, a peak current duration, and a peak current drop time; Wherein, if each of the current values ​​includes a continuous current and a peak current, the system further includes: a second continuous current detection value determination module, configured to determine the continuous current detection value according to the current data segment to which the continuous current belongs, and to determine the peak current detection value according to the current data segment to which the peak current belongs; When the first data processing module divides the multiple current values ​​into multiple current data segments, it is specifically used to: For each of the current values, if the current value is greater than a preset first lower threshold value and less than a preset first upper threshold value, the current value is used as a first detection value, and a current inflection point is determined according to the first detection value; For each of the current values, if the current value is greater than the first upper threshold, determining whether the current value is greater than a preset second lower threshold and less than a preset second upper threshold; If the current value is greater than the second lower threshold value and less than the second upper threshold value, taking the current value as a second detection value, and determining a current inflection point according to the second detection value; Obtaining a collection time point of each current value; Dividing the plurality of current values ​​into a plurality of current data segments according to the collection time points of the current values ​​corresponding to the respective current inflection points; Or, for each current value, if the current value is greater than the second lower threshold value and less than the second upper threshold value, the current value is used as a first detection value, and a current inflection point is determined according to the first detection value; For each of the current values, if the current value is not greater than the second lower threshold, determining whether the current value is greater than the first lower threshold and less than the first upper threshold; If the current value is greater than the first lower threshold value and less than the first upper threshold value, taking the current value as a second detection value, and determining a current inflection point according to the second detection value; Obtaining a collection time point of each current value; Dividing the plurality of current values ​​into a plurality of current data segments according to the collection time points of the current values ​​corresponding to the respective current inflection points; Wherein, the second lower threshold is greater than the first upper threshold; The system also includes: The inflection point determination module is used to determine, for each current value, if the current value is not greater than the first lower threshold or not less than the second upper threshold, that the current value is not a current inflection point.

7. An electronic device, It is characterized in that The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, a solenoid valve driving current detection method as claimed in any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, a solenoid valve driving current detection method according to any one of claims 1 to 7 is implemented.