A method for analyzing and detecting electromagnetic interference of communication wiring harness
By optimizing the electromagnetic interference analysis method for communication harness signals, and using engine speed signal data and Fourier transform, the probability of signal data being subject to electromagnetic interference is calculated, thus solving the problem of inaccurate electromagnetic interference analysis in existing technologies and achieving more accurate interference signal decomposition.
Patent Information
- Application Number
- CN202410883440.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-07-03
AI Technical Summary
In existing methods for analyzing electromagnetic interference in communication harness signals, the smoothing process using local mean polyline and local envelope polyline cannot accurately decompose the interference signal, resulting in inaccurate decomposition results.
By acquiring engine speed signal data, the signal data is decomposed into sine waves of different frequencies using Fourier transform and short-time Fourier transform. The probability of electromagnetic interference on the signal data is calculated. Combining the fitting slope and the numerical weights of the extreme value intervals, the smoothing methods of local mean piecewise linear curves and local envelope piecewise linear curves are optimized to decompose the electromagnetic interference signal.
It improves the accuracy of electromagnetic interference signal decomposition, better reflects the impact of electromagnetic interference on signal data, and obtains more accurate interference signals.
Smart Images

Figure CN118409139B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data signal transmission, and in particular to an electromagnetic interference analysis and detection method for a communication harness. Background Art
[0002] Communication harness refers to a group of cables, lines or wires inside a car or other device that are used to transmit various signals, data and power to connect different electronic devices, sensors and system components. With the improvement of the integration of vehicle electronic information, the risk of electromagnetic interference of signals transmitted by communication harnesses in cars also comes along, which can easily cause distortion of transmission signals. Therefore, the signals transmitted by the communication harnesses are analyzed to extract interference signals.
[0003] At present, the signal data transmitted by the communication line is decomposed by the LMD algorithm. When obtaining the interference signal, the local mean line and the local envelope line are first obtained, and the local mean function is obtained by smoothing the local mean line. The local envelope estimation function is obtained by smoothing the local envelope line, and then the interference signal is obtained by the local envelope estimation function and the local mean function. When the local envelope estimation function and the local mean function are obtained by smoothing, because the signal data transmitted by the communication line that is not affected by noise changes relatively uniformly, the numerical difference between the signal data affected by electromagnetic interference and the signal data not affected by electromagnetic interference in the local line is different from the numerical difference between the signal data affected by electromagnetic interference and the signal data not affected by electromagnetic interference in the signal data sequence, so that the local mean function and the local envelope estimation function obtained by sliding average of the local line cannot well represent the impact of electromagnetic interference on data fluctuations, resulting in inaccurate decomposed interference signals. Summary of the invention
[0004] The invention provides an electromagnetic interference analysis and detection method for a communication harness to solve the existing problems.
[0005] The electromagnetic interference analysis and detection method of a communication harness of the present invention adopts the following technical solution:
[0006] The present invention proposes a method for analyzing and detecting electromagnetic interference of a communication harness, the method comprising the following steps:
[0007] Acquire signal data of the engine speed to obtain a signal data sequence of the engine speed, wherein each signal data in the signal data sequence corresponds to a value and a time;
[0008] The signal data sequence is divided into multiple time series intervals, and a number of sine waves of different frequencies and the phase of each sine wave in each time series interval are obtained through Fourier transform; the possibility of the signal data in each time series interval being affected by electromagnetic interference is obtained through the phase and frequency of the sine wave in each time series interval, and then the possibility of each signal data being affected by electromagnetic interference is obtained;
[0009] Fitting the signal data in the signal data sequence to obtain the fitting slope of each signal data in the signal data sequence; obtaining a number of extreme value intervals in the signal data sequence according to the numerical changes of the signal data in the signal data sequence; obtaining the numerical weight of each signal data in each extreme value interval according to the difference between the numerical value of the signal data in each extreme value interval and the possibility of being electromagnetically interfered, and the fitting slope of the signal data in each extreme value interval;
[0010] Based on the numerical changes of signal data in the signal data sequence, the local mean broken line and the local envelope broken line are obtained, and the smoothing window of each data point on the local mean broken line and the local envelope broken line is obtained; according to the numerical value of the data point in the smoothing window of each data point and the numerical value and numerical weight of the signal data corresponding to the data point, the smoothing method of the data point on the local mean broken line and the local envelope broken line is obtained; the electromagnetic interference signal is obtained by the smoothing method of the data points on the local mean broken line and the local envelope broken line.
[0011] Furthermore, the signal data sequence is divided into a plurality of time series intervals, and a plurality of sine waves of different frequencies in each time series interval and the phase of each sine wave are obtained by Fourier transform, including the specific method of:
[0012] By presetting the window length to , decomposing the signal data sequence of the engine speed into a plurality of time series intervals, each of which contains a plurality of signal data;
[0013] Perform short-time Fourier transform on the signal data in each time series interval, decompose the signal data in each time series interval into several sine waves of different frequencies, and obtain the phase and frequency of each sine wave.
[0014] Furthermore, the possibility of electromagnetic interference to the signal data in each time series interval is obtained by the phase and frequency of the sine wave in each time series interval, and then the possibility of electromagnetic interference to each signal data is obtained, including the specific method of:
[0015] The phase information of each sine wave in each time interval is converted from an angle unit to a number in the interval [0, 1] to obtain the phase parameter of each sine wave. The specific calculation formula is as follows: ;
[0016] In the formula, Indicates In the time interval The phase parameter of a sine wave, Indicates In the time interval The phase of a sine wave;
[0017] According to the phase parameter and frequency of each sine wave in each time series interval, the possibility of the signal data in each time series interval being affected by electromagnetic interference is obtained, and then the possibility of each signal data being affected by electromagnetic interference is obtained.
[0018] Further, the possibility of the signal data in each time series interval being affected by electromagnetic interference is obtained according to the phase parameter and frequency of each sine wave in each time series interval, and then the possibility of each signal data being affected by electromagnetic interference is obtained, including the specific method of: ;
[0019] In the formula, Indicates The possibility that the signal data in a time interval is affected by electromagnetic interference, Indicates In the time interval The phase parameter of a sine wave, Indicates The number of sine waves contained in a time series interval, Indicates In the time interval The frequency of a sine wave, Indicates The mean of the phase parameters of all sine waves in a time interval, represents the hyperbolic tangent function, represents the normalization function;
[0020] The possibility of any signal data being affected by electromagnetic interference is assumed to be the possibility of the signal data within the time series interval where the signal data is located being affected by electromagnetic interference.
[0021] Furthermore, the signal data in the signal data sequence are fitted to obtain the fitting slope of each signal data in the signal data sequence, including the specific method of:
[0022] The signal data in the signal data sequence is mapped to a time-value coordinate system in which the horizontal axis is time and the vertical axis is value, and a number of data points in the time-value coordinate system are obtained. The data points in the time-value coordinate system are subjected to curve fitting by the least square method to obtain a fitting curve of the data points in the time-value coordinate system, and a fitting slope of each data point in the time-value coordinate system is obtained.
[0023] Let the fitting slope of each signal data be the fitting slope of the corresponding data point of each signal data on the fitting curve.
[0024] Furthermore, the method of obtaining several extreme value intervals in the signal data sequence according to the numerical changes of the signal data in the signal data sequence includes the following specific methods:
[0025] Through Newton's method, all extreme points in the signal data sequence are obtained, and the extreme point with the smallest time between two adjacent extreme points and all signal data between the two extreme points form an extreme interval;
[0026] The first The interval where the extreme value point is located is recorded as An extreme value interval.
[0027] Furthermore, the numerical weight of the signal data in each extreme value interval is obtained according to the difference between the numerical value of the signal data in each extreme value interval and the possibility of being subjected to electromagnetic interference, and the fitting slope of the signal data in each extreme value interval, including the specific method of: ;
[0028] In the formula, Indicates The numerical weight of the extreme value interval, Indicates The number of signal data contained in the extreme value interval, Indicates In the extreme value interval The possibility of electromagnetic interference on the signal data. Indicates In the extreme value interval The value of the signal data, Indicates The information entropy of the absolute value of the fitting slope of all signal data within the extreme value interval is is an exponential function with a natural constant as base;
[0029] Let the numerical weight of any signal data be the numerical weight of the extreme value interval where the signal data is located.
[0030] Further, the method of obtaining the local mean polyline and the local envelope polyline based on the numerical change of the signal data in the signal data sequence, and obtaining the smoothing window of each data point on the local mean polyline and the local envelope polyline includes the following specific methods:
[0031] According to the extreme points in the signal data sequence, the local mean polyline and the local envelope polyline are obtained; the number of data points contained in the preset smoothing window is , on the local mean line, with any data point as the center, we get the smoothing window of the data point on the local mean line; on the local envelope line, with any data point as the center, we get the smoothing window of the data point on the local envelope line.
[0032] Furthermore, the method for smoothing the data points on the local mean polyline and the local envelope polyline is obtained according to the value of the data point in the smoothing window of each data point and the value and value weight of the signal data corresponding to the data point, including the specific method as follows:
[0033] ;
[0034] In the formula, Indicates the local mean line The smoothing result of data points is Indicates the local mean line The number of data points contained in the smoothing window of data points, Indicates the local mean line The data points correspond to the numerical weight of the signal data. Indicates the local mean line The data points correspond to the value of the signal data. Indicates the local mean line The value of the data point;
[0035] The value of each data point on the local mean polyline is replaced by the value of each data point on the local envelope polyline, and the smoothing method of each data point on the local envelope polyline is obtained according to the smoothing method of each data point on the local mean polyline.
[0036] Furthermore, the electromagnetic interference signal is obtained by smoothing the data points on the local mean polyline and the local envelope polyline, and the specific method includes:
[0037] The local extreme value curve and the local envelope curve are smoothed by using a smoothing method to obtain the local mean function and the local envelope estimation function, and the engine speed signal is decomposed by the LMD algorithm.
[0038] The component signals obtained after one decomposition are a PF function component and a res signal, wherein the PF function component is the electromagnetic interference signal in the signal data.
[0039] The beneficial effects of the technical solution of the present invention are as follows: when decomposing the electromagnetic interference signal from the signal data of the engine speed, based on the characteristic that the engine speed changes slowly and continuously during the driving process of the automobile, the possibility of the signal data affected by electromagnetic interference is much greater than that of the signal data not affected by electromagnetic interference; based on the characteristic that the faster the engine speed, the greater the possibility of the signal data being affected by electromagnetic interference, the numerical weight of each signal data is obtained, which paves the way for obtaining the smoothing result of each data point on the local mean line and the local envelope line; when smoothing each data point on the local mean line and the local envelope line by the numerical value of each data point on the local mean line and the local envelope line and the numerical value of the signal data corresponding to each data point, not only the data of each data point on the local mean line but also the numerical value of each signal data are used. Since the numerical value of each signal data can better reflect the influence of electromagnetic interference on the data numerical value, the local mean function and the local envelope estimation function obtained according to the improved sliding average method can better represent the influence of electromagnetic interference on data fluctuation; the decomposed electromagnetic interference signal is more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0041] Figure 1 The present invention is a flowchart of the steps of a method for analyzing and detecting electromagnetic interference of a communication harness. DETAILED DESCRIPTION
[0042] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the electromagnetic interference analysis and detection method of a communication harness proposed by the present invention, its specific implementation method, structure, characteristics and effects are described in detail as follows in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0043] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0044] The specific scheme of the electromagnetic interference analysis and detection method of a communication harness provided by the present invention is described in detail below with reference to the accompanying drawings.
[0045] See also Figure 1 , which shows a flowchart of a method for analyzing and detecting electromagnetic interference of a communication harness provided by an embodiment of the present invention, the method comprising the following steps:
[0046] Step S001: Acquire signal data of engine speed to obtain a signal data sequence of engine speed.
[0047] The purpose of this embodiment is to analyze the electromagnetic interference to the signal transmitted by the communication harness, and the signal transmitted by the communication harness is ultimately transmitted to the vehicle background, so the signal data is obtained from the vehicle background.
[0048] Specifically, the signal data of the engine speed is obtained from the vehicle background to obtain a signal data sequence of the engine speed, wherein each signal data in the signal data sequence corresponds to a time and a value.
[0049] Step S002: Divide the signal data sequence into multiple time intervals, and obtain several sine waves of different frequencies and the phase of each sine wave in each time interval through Fourier transform; obtain the possibility of the signal data in each time interval being affected by electromagnetic interference through the phase and frequency of the sine wave in each time interval, and then obtain the possibility of each signal data being affected by electromagnetic interference.
[0050] It should be noted that when the car is driving, the engine speed changes continuously and relatively slowly, so that the signal data of the engine speed has a timing feature. When the signal data of the engine speed transmitted by the communication harness is subject to electromagnetic interference, the value of the signal data of the engine speed is greatly different from the signal data with similar time, so that the engine speed change does not have a continuous and slow timing feature in the local interval. Therefore, the signal data sequence of the engine speed is divided into multiple intervals, and according to the timing features of the signal data of the engine speed in each interval, the possibility of the signal data in each interval being subject to electromagnetic interference is obtained.
[0051] It should be further explained that when the signal data in each interval is decomposed into sine waves of different frequencies through short-time Fourier transform, the phase difference of the sine waves of different frequencies in each interval reflects the timing characteristics of the signal data in each interval. Therefore, according to the phase difference of the sine waves of different frequencies in each interval, the timing characteristics of the signal data in each interval are quantified, and then according to the timing characteristics of the signal data in each interval, the possibility of the signal data in each interval being affected by electromagnetic interference is calculated.
[0052] It should be further explained that when the engine speed changes greatly within a certain interval, the frequency of the sine wave decomposed from the signal data within the interval is relatively large. Moreover, when the engine speed changes faster, the operation of various sensors in the vehicle is more intensive; at this time, the signal data transmitted by the communication harness is more likely to be subject to electromagnetic interference. Moreover, according to the frequency of the sine waves of different frequencies in each interval, the possibility of electromagnetic interference of the signal data in each interval is calculated.
[0053] Specifically, by presetting the window length to , decompose the signal data sequence of the engine speed into several time series intervals. Each time series interval contains several signal data. The window length preset in this embodiment is , this is taken as an example for description, and other values may be set in other implementations. By performing short-time Fourier transform on the signal data in each time series interval, the signal data in each time series interval is decomposed into a number of sine waves of different frequencies, and the phase and frequency of each sine wave are obtained. The several sine waves of different frequencies decomposed from the signal data in each time series interval are recorded as the sine waves in each time series interval. Performing short-time Fourier transform on the signal data in each time series interval is a well-known technology and will not be described in detail in this embodiment.
[0054] Furthermore, based on the phase and frequency of each sine wave in each time interval, the possibility of the signal data in each time interval being affected by electromagnetic interference is obtained. The specific calculation formula is as follows:
[0055] ;
[0056] In the formula, Indicates In the time interval The phase parameter of a sine wave, Indicates In the time interval The phase of a sine wave, Indicates The possibility that the signal data in a time interval is affected by electromagnetic interference, Indicates The number of sine waves contained in a time series interval, Indicates In the time interval The frequency of a sine wave, Indicates The mean of the phase parameters of all sine waves in a time interval, represents the hyperbolic tangent function, Represents the softmax normalization function, the normalized object is the The frequencies of all sine waves in a time interval.
[0057] It should be noted that the purpose of the above formula 1 is to convert the phase information of the sine wave from the angle unit to a digital calculation in the interval [0, 1]; Indicates In the time interval The difference between the phase information of the first sine wave and the phase information of all sine waves in this time interval. The larger the value, the The less the time series characteristics of the signal data in a time series interval satisfy the characteristics of the signal data changing smoothly and continuously, that is, The greater the possibility that the signal data in a time series interval is affected by electromagnetic interference; It reflects the The size of the engine speed change in a time interval. The larger the value, the The greater the possibility of a large change in the engine speed in the first time interval, the greater the possibility of a large change in the engine speed in the first time interval. The greater the possibility that the signal data in a time series interval will be affected by electromagnetic interference.
[0058] The possibility of any signal data being affected by electromagnetic interference is assumed to be the possibility of the signal data within the time series interval where the signal data is located being affected by electromagnetic interference.
[0059] So far, the possibility of each signal data being affected by electromagnetic interference is obtained.
[0060] Step S003: Fit the signal data in the signal data sequence to obtain the fitting slope of each signal data in the signal data sequence; obtain several extreme value intervals in the signal data sequence according to the numerical changes of the signal data in the signal data sequence; obtain the numerical weight of each signal data in each extreme value interval according to the difference between the numerical value of the signal data in each extreme value interval and the possibility of being affected by electromagnetic interference, and the fitting slope of the signal data in each extreme value interval.
[0061] It should be noted that when the interference signal in the signal data of the engine speed is decomposed by the LMD decomposition algorithm: the local mean curve and the local envelope curve are smoothed to obtain the local mean function and the local envelope estimation function, and then the interference signal is obtained. Because the engine speed changes relatively slowly, the numerical difference between the signal data affected by electromagnetic interference and the signal data not affected by electromagnetic interference in the local mean curve or the local envelope curve is different from the numerical difference between the signal data affected by electromagnetic interference and the signal data not affected by electromagnetic interference in the signal data sequence, so that the local mean function and the local envelope estimation function obtained by the sliding average method cannot well represent the impact of electromagnetic interference on data fluctuations. Therefore, when the local mean function and the local envelope estimation function are obtained by smoothing, it is not only based on the value of each data point on the local mean curve and the local envelope curve, but also based on the value of each signal data.
[0062] It should be further explained that in the LMD decomposition algorithm, the local mean curve and the local envelope curve are obtained based on the extreme value points. Therefore, according to the numerical value of each signal data in the signal data sequence, multiple extreme value intervals in the signal data sequence are obtained, and then the numerical weight of each extreme value interval is obtained.
[0063] It should be further explained that, because the numerical difference between the signal data affected by electromagnetic interference and the signal data not affected by electromagnetic interference in the local mean curve or the local envelope curve is different from the numerical difference between the signal data affected by electromagnetic interference and the signal data not affected by electromagnetic interference in the signal data sequence, the numerical weight of each extreme value interval is calculated according to the degree of interference of the signal data in each extreme value interval.
[0064] It should be further explained that the engine speed changes continuously and relatively slowly, but when the communication harness is subject to electromagnetic interference, the engine speed changes do not meet the characteristics of continuous and relatively slow changes. Therefore, the numerical weight of each extreme value interval is calculated based on the numerical change of each signal data in each extreme value interval. The faster the engine speed, the more concentrated the detection of each sensor in the car, and the greater the possibility of electromagnetic interference. Therefore, the numerical weight of each extreme value interval is calculated based on the numerical value of each signal data in each extreme value interval and the possibility of each signal data being subject to electromagnetic interference.
[0065] Specifically, the signal data in the signal data sequence is mapped to a time-value coordinate system with the horizontal coordinate as time and the vertical coordinate as the value, and a number of data points in the time-value coordinate system are obtained. The data points in the time-value coordinate system are curve-fitted by the least squares method to obtain a fitting curve of the data points in the time-value coordinate system, and the fitting slope of each data point in the time-value coordinate system is obtained. Let the fitting slope of each signal data be the fitting slope of the corresponding data point of each signal data on the fitting curve, and obtain the fitting slope of each signal data. According to the fitting slope of each signal data, the information entropy of the absolute value of the fitting slope of the signal data in each extreme value interval is obtained. Among them, the method for obtaining information entropy is a well-known technology, which will not be repeated in this embodiment.
[0066] Furthermore, Newton's method is used to obtain all extreme value points in the signal data sequence, and the extreme value point with the smallest time between two adjacent extreme value points and all signal data between the two extreme value points form an extreme value interval. The interval where the extreme value point is located is recorded as extreme value intervals. Among them, the last extreme value point belongs to the extreme value interval closest to it. The information entropy of the absolute value of the fitting slope of the signal data in the extreme value interval, The value of each signal data in the extreme value interval and the possibility of electromagnetic interference are obtained. The numerical weight of the extreme value interval is calculated as follows: ;
[0067] In the formula, Indicates The numerical weight of the extreme value interval, Indicates The number of signal data contained in the extreme value interval, Indicates In the extreme value interval The possibility of electromagnetic interference on the signal data. Indicates In the extreme value interval The value of the signal data, Indicates The information entropy of the absolute value of the fitting slope of all signal data within the extreme value interval is is an exponential function with a natural constant as the base. Model to present inverse proportional relationship and normalization, As the input of the model, the implementer can set the inverse proportional function and normalization function according to the actual situation.
[0068] It should be noted that Indicates The information entropy of the absolute value of the fitting slope of the signal data in the extreme value interval is larger, reflecting the The signal data in the extreme value interval is less consistent with the characteristics of the engine speed changing smoothly and continuously, indicating that the The greater the degree of interference of the signal data in the extreme value interval, that is, The greater the numerical weight of the extreme value interval; The larger the value, the The greater the degree of interference of the signal data in the extreme value interval, that is, The greater the numerical weight of the extreme value interval.
[0069] Furthermore, the numerical weight of any signal data is assumed to be the numerical weight of the extreme value interval in which the signal data is located.
[0070] At this point, the numerical weight of each signal data is obtained.
[0071] Step S004: Based on the numerical changes of signal data in the signal data sequence, obtain the local mean line and the local envelope line, and obtain the smoothing window of each data point on the local mean line and the local envelope line; obtain the smoothing method of the data points on the local mean line and the local envelope line according to the numerical value of the data point in the smoothing window of each data point and the numerical value and numerical weight of the signal data corresponding to the data point; obtain the electromagnetic interference signal through the smoothing method of the data points on the local mean line and the local envelope line.
[0072] Specifically, according to the extreme value points in the signal data sequence, the local mean polyline and the local envelope polyline are obtained. The method for obtaining the local mean polyline and the local envelope polyline is a well-known technology and will not be described in detail in this embodiment. The number of data points contained in the preset smoothing window is , on the local mean polyline, take any data point as the center and get the smoothing window of the data point. If there are not enough data points around a data point on the local mean polyline The number of data points contained in the smoothing window preset in this embodiment is , this is used as an example for description, and other values can be set in other implementation modes.
[0073] Furthermore, a smoothing method for each data point on the local mean polyline is obtained through the value of each data point within the smoothing window of each data point on the local mean polyline, the value of the signal data corresponding to each data point and the value weight.
[0074] ;
[0075] In the formula, Indicates the local mean line The smoothing result of data points is Indicates the local mean line The number of data points contained in the smoothing window of data points, Indicates the local mean line The data points correspond to the numerical weight of the signal data. Indicates the local mean line The data points correspond to the value of the signal data. Indicates the local mean line The value of the data point.
[0076] What needs to be explained is that the influence of the numerical value of the data signal and the numerical value of the data point on the local mean line on the smoothing result is adjusted by the numerical weight. When the numerical weight of the data point corresponding to the local mean line is larger, the feature retention of the signal data is more in the smoothing calculation process, that is, the degree of retention of abnormal features in the signal after smoothing is more; otherwise, the greater the weight of the local envelope line or the local mean line in the averaging process, the more the line part is retained.
[0077] Furthermore, the value of each data point on the local mean polyline is replaced by the value of each data point on the local envelope polyline, and the smoothing method of each data point on the local envelope polyline is obtained according to the smoothing method of each data point on the local mean polyline.
[0078] At this point, the smoothing results of each data point on each local mean polyline and local envelope polyline are obtained.
[0079] Furthermore, the local extreme value curve and the local envelope curve are smoothed by a smoothing method to obtain the local mean function and the local envelope estimation function of the prominent abnormal area, and the engine speed signal is decomposed by the LMD algorithm. This process is a prior art and will not be described in detail here. The component signals obtained after one decomposition are a PF function component and a res signal.
[0080] It should be noted that, according to the LMD signal decomposition principle, the PF function component is the electromagnetic interference signal in the signal data. The present invention optimizes the signal decomposition process by combining the data characteristics of the communication harness signal, uses the decomposed res signal as the communication harness transmission signal, and outputs the PF function component as the electromagnetic interference signal in the signal, thereby realizing electromagnetic interference analysis and detection of the communication harness signal.
[0081] At this point, this embodiment is completed.
[0082] To sum up, in the embodiments of the present invention, the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for analyzing and detecting electromagnetic interference of a communication harness, characterized in that: The method comprises the following steps: Acquire signal data of the engine speed to obtain a signal data sequence of the engine speed, wherein each signal data in the signal data sequence corresponds to a value and a time; The signal data sequence is divided into multiple time series intervals, and a number of sine waves of different frequencies and the phase of each sine wave in each time series interval are obtained through Fourier transform; the possibility of the signal data in each time series interval being affected by electromagnetic interference is obtained through the phase and frequency of the sine wave in each time series interval, and then the possibility of each signal data being affected by electromagnetic interference is obtained; The method of obtaining the possibility of electromagnetic interference of signal data in each time series interval through the phase and frequency of the sine wave in each time series interval, and then obtaining the possibility of electromagnetic interference of each signal data, includes the following specific methods: The phase information of each sine wave in each time interval is converted from an angle unit to a number in the interval [0, 1] to obtain the phase parameter of each sine wave. The specific calculation formula is as follows: ; In the formula, Indicates In the time interval The phase parameter of a sine wave, Indicates In the time interval The phase of a sine wave; According to the phase parameter and frequency of each sine wave in each time series interval, the possibility of the signal data in each time series interval being affected by electromagnetic interference is obtained, and then the possibility of each signal data being affected by electromagnetic interference is obtained; The method of obtaining the possibility of electromagnetic interference to the signal data in each time series interval according to the phase parameter and frequency of each sine wave in each time series interval, and then obtaining the possibility of electromagnetic interference to each signal data, includes the following specific methods: ; In the formula, Indicates The possibility that the signal data in a time interval is affected by electromagnetic interference, Indicates In the time interval The phase parameter of a sine wave, Indicates The number of sine waves contained in a time series interval, Indicates In the time interval The frequency of a sine wave, Indicates The mean of the phase parameters of all sine waves in a time interval, represents the hyperbolic tangent function, represents the normalization function; Let the possibility of any signal data being subject to electromagnetic interference be the possibility of the signal data in the time series interval where the signal data is located being subject to electromagnetic interference; Fitting the signal data in the signal data sequence to obtain the fitting slope of each signal data in the signal data sequence; obtaining a number of extreme value intervals in the signal data sequence according to the numerical changes of the signal data in the signal data sequence; obtaining the numerical weight of each signal data in each extreme value interval according to the difference between the numerical value of the signal data in each extreme value interval and the possibility of being electromagnetically interfered, and the fitting slope of the signal data in each extreme value interval; Based on the numerical changes of signal data in the signal data sequence, the local mean broken line and the local envelope broken line are obtained to obtain a smoothing window of each data point on the local mean broken line and the local envelope broken line; according to the numerical value of each data point in the smoothing window and the numerical value and numerical weight of the signal data corresponding to the data point, a smoothing method of the data point on the local mean broken line and the local envelope broken line is obtained; the electromagnetic interference signal is obtained by the smoothing method of the data points on the local mean broken line and the local envelope broken line; The electromagnetic interference signal is obtained by smoothing the data points on the local mean polyline and the local envelope polyline, and the specific method includes: The local extreme value curve and the local envelope curve are smoothed by using a smoothing method to obtain the local mean function and the local envelope estimation function, and the engine speed signal is decomposed by the LMD algorithm. The component signals obtained after one decomposition are a PF function component and a res signal, wherein the PF function component is the electromagnetic interference signal in the signal data.
2. The electromagnetic interference analysis and detection method of a communication harness according to claim 1, characterized in that: The signal data sequence is divided into a plurality of time series intervals, and a plurality of sine waves of different frequencies and the phase of each sine wave in each time series interval are obtained by Fourier transform, including the specific method of: By presetting the window length to , decomposing the signal data sequence of the engine speed into a plurality of time series intervals, each of which contains a plurality of signal data; Perform short-time Fourier transform on the signal data in each time series interval, decompose the signal data in each time series interval into several sine waves of different frequencies, and obtain the phase and frequency of each sine wave.
3. The electromagnetic interference analysis and detection method of a communication harness according to claim 1, characterized in that: The signal data in the signal data sequence are fitted to obtain the fitting slope of each signal data in the signal data sequence, including the specific method of: The signal data in the signal data sequence is mapped to a time-value coordinate system in which the horizontal axis is time and the vertical axis is value, and a number of data points in the time-value coordinate system are obtained. The data points in the time-value coordinate system are subjected to curve fitting by the least square method to obtain a fitting curve of the data points in the time-value coordinate system, and a fitting slope of each data point in the time-value coordinate system is obtained. Let the fitting slope of each signal data be the fitting slope of the corresponding data point of each signal data on the fitting curve.
4. The electromagnetic interference analysis and detection method of a communication harness according to claim 1, characterized in that: The specific method of obtaining a plurality of extreme value intervals in the signal data sequence according to the numerical changes of the signal data in the signal data sequence includes: Through Newton's method, all extreme points in the signal data sequence are obtained, and the extreme point with the smallest time between two adjacent extreme points and all signal data between the two extreme points form an extreme interval; The first The interval where the extreme value point is located is recorded as An extreme value interval.
5. The electromagnetic interference analysis and detection method of a communication harness according to claim 4, characterized in that: The method of obtaining the numerical weight of the signal data in each extreme value interval according to the difference between the numerical value of the signal data in each extreme value interval and the possibility of being subjected to electromagnetic interference and the fitting slope of the signal data in each extreme value interval includes the following specific methods: ; In the formula, Indicates The numerical weight of the extreme value interval, Indicates The number of signal data contained in the extreme value interval, Indicates In the extreme value interval The possibility of electromagnetic interference on the signal data. Indicates In the extreme value interval The value of the signal data, Indicates The information entropy of the absolute value of the fitting slope of all signal data within the extreme value interval is is an exponential function with a natural constant as base; Let the numerical weight of any signal data be the numerical weight of the extreme value interval where the signal data is located.
6. The electromagnetic interference analysis and detection method of a communication harness according to claim 4, characterized in that: The method of obtaining the local mean polyline and the local envelope polyline based on the numerical change of the signal data in the signal data sequence, and obtaining the smoothing window of each data point on the local mean polyline and the local envelope polyline includes the following specific methods: According to the extreme points in the signal data sequence, the local mean polyline and the local envelope polyline are obtained; the number of data points contained in the preset smoothing window is , on the local mean line, with any data point as the center, we get the smoothing window of the data point on the local mean line; on the local envelope line, with any data point as the center, we get the smoothing window of the data point on the local envelope line.
7. The electromagnetic interference analysis and detection method of a communication harness according to claim 1, characterized in that:The method for smoothing the data points on the local mean polyline and the local envelope polyline according to the value of the data point in the smoothing window of each data point and the value and value weight of the signal data corresponding to the data point includes the following specific methods: ; In the formula, Indicates the local mean line The smoothing result of data points is Indicates the local mean line The number of data points contained in the smoothing window of data points, Indicates the local mean line The data points correspond to the numerical weight of the signal data. Indicates the local mean line The data points correspond to the value of the signal data. Indicates the local mean line The value of the data point; The value of each data point on the local mean polyline is replaced by the value of each data point on the local envelope polyline, and the smoothing method of each data point on the local envelope polyline is obtained according to the smoothing method of each data point on the local mean polyline.
