A fuel vehicle electronic controller communication method and system
Through time series decomposition and spectrum analysis, combined with outlier detection algorithm, the potential difference glitch highlight consistency index is constructed, which solves the problem that the data transmission of the electronic controller in the fuel vehicle is susceptible to interference, and improves the accuracy of communication error detection and data transmission. reliability.
Patent Information
- Application Number
- CN202410335801.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-22
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-03-22
AI Technical Summary
The data transmission of the electronic controller in the fuel vehicle is easily interfered by external electromagnetic, common mode and mechanical vibration, resulting in a reduction in signal quality. Existing methods are sensitive to voltage threshold settings, making it difficult to ensure the reliability of data transmission.
The timing decomposition algorithm is used to split the CAN bus signal into high timing and low timing data sequences. Through differential periodic component sequence, spectrum analysis and outlier detection algorithm, a potential difference glitch highlighting consistency index is constructed to improve the accuracy of communication error detection. and data transmission reliability.
By analyzing the periodic jump characteristics and frequency domain characteristics of message waveform data, the accuracy of electronic controller communication is improved, the defect of the existing method being sensitive to voltage thresholds is compensated, and the reliability of data transmission is enhanced.
Smart Images

Figure CN118174982B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of digital information transmission, and in particular to a communication method and system for an electronic controller of a fuel vehicle. Background Art
[0002] An electronic controller is an electronic device used to manage and control systems such as automobiles, home appliances, and industrial equipment. It is usually composed of a microprocessor or microcontroller, sensors, actuators, interface circuits, and software to monitor system status and process input signals. In the field of fuel vehicles, electronic controllers play a vital role by monitoring the data provided by various sensors in real time and executing corresponding control actions according to preset logic and algorithms to control and manage the operation of various devices and systems.
[0003] The data transmission of electronic controllers in fuel vehicles is usually implemented through the CAN (Controller Area Network) communication protocol, which is specially designed for efficient real-time communication between electronic control units. However, when the data in the fuel vehicle is transmitted in the CAN bus, it is easily interfered by external electromagnetic, common mode and mechanical vibration factors, resulting in reduced signal quality and easy transmission errors. In order to identify error frames in data transmission, the existing method collects CAN signals in the form of voltage, analyzes the waveform of high-speed CAN messages, and interrupts the transmission of CAN data if the detected voltage is lower than the set voltage threshold. Although the existing method can solve the problem of transmission of some abnormal data, it has the defect of being more sensitive to the voltage threshold setting, and it is still difficult to ensure the reliability of data transmission. Summary of the invention
[0004] In order to solve the above technical problems, the purpose of the present invention is to provide a fuel vehicle electronic controller communication method and system, the technical solutions adopted are as follows:
[0005] In a first aspect, an embodiment of the present invention provides a method for communicating with an electronic controller of a fuel vehicle, the method comprising the following steps:
[0006] Collect the signals on the high-speed line and low-speed line of the CAN bus during the data transmission of the electronic controller of the fuel vehicle; use the collected signal data on the high-speed line and the low-speed line as the high-time series data sequence and the low-time series data sequence respectively; use the time series decomposition algorithm to split the high-time series data sequence into a high-trend component sequence and a high-period component sequence; use the same method to obtain the low-period component sequence of the low-time series data sequence; subtract each element in the high-period component sequence from the corresponding position element in the low-period component sequence to obtain the differential period component sequence; divide all sequences into each period and each sub-period;
[0007] According to the data distribution of the high trend component sequence in each sub-period, the warping coefficient of the high trend component sequence in each sub-period is obtained; the average jump amount of the high period component sequence in each sub-period is obtained by combining the distribution characteristics of the data of each sub-period in the high period component sequence and the warping coefficient of the high trend component sequence in each sub-period; the message period synchronization jump coefficient of the high time series data sequence in each sub-period is obtained by combining the average jump amount of the high period component sequence in each sub-period and the discrete degree of the differential period component sequence; the frequency fluctuation coefficient of the differential period component sequence in each period is obtained according to the spectrum distribution of the differential period component sequence;
[0008] The frequency fluctuation coefficient of each period and the message period synchronization jump coefficient of the high time series data sequence in each sub-period are combined to obtain the potential difference burr mutation index of the high time series data sequence in each period; the same method is used to obtain the potential difference burr mutation index of the low time series data sequence in each period; the signal acquisition process is divided into time periods at equal intervals; the potential difference burr highlight consistency index of each time period is obtained according to the difference in the potential difference burr mutation index of adjacent periods; the potential difference burr highlight consistency index and the outlier detection algorithm are combined to complete the communication of the fuel vehicle electronic controller.
[0009] Preferably, the step of dividing all sequences into periods and sub-periods includes:
[0010] Calculate the absolute value of the difference between the previous element and the next element of each element in the differential periodic component sequence. If the absolute value of the difference is greater than a preset threshold, take the element as a jump discontinuity point, take each jump discontinuity point as a segmentation point in the differential periodic component sequence, and divide the differential periodic component sequence into various periods. Take the corresponding elements of the jump discontinuity points in the high periodic component sequence and the low periodic component sequence as segmentation points, and divide the high periodic component sequence and the low periodic component sequence into various periods.
[0011] The high time series data sequence and the low time series data sequence are divided into periods by using the elements corresponding to the division points in the high period component sequence in the high time series data sequence as the division points in the high time series data sequence, and the elements corresponding to the division points in the low period component sequence in the low time series data sequence as the division points in the low time series data sequence. The high trend component sequence is divided into periods by using the elements corresponding to the division points in the high time series data sequence in the high trend component sequence as the division points of the high trend component sequence. The periods of all sequences are equally spaced into sub-periods.
[0012] Preferably, obtaining the warping coefficient of the high trend component sequence in each sub-period according to the data distribution of the high trend component sequence in each sub-period includes:
[0013] Calculate the difference between the maximum data value and the minimum data value of the high trend component sequence in each sub-period, count the number of elements contained between the maximum data value and the minimum data value, and use the ratio of the difference to the number as the warping coefficient of the high trend component sequence in each sub-period.
[0014] Preferably, the average jump amount of the high-period component sequence in each sub-period is obtained by combining the distribution characteristics of each sub-period data in the high-period component sequence and the warping coefficient of the high-trend component sequence in each sub-period, and the expression is:
[0015]
[0016] Where fh is the average jump variable of the high-period component sequence in the βth sub-period, N shβ is the number of elements in the βth subperiod of the high-period component sequence, Sh β is the element sequence of the βth sub-period of the high-period component sequence, max() is the maximum value function, Sh β (i) is the i-th element of the element sequence of the β-th sub-period of the high-period component sequence, ph represents the warping coefficient of the high-trend component sequence in the β-th sub-period, i is the serial number value of the element sequence of the β-th sub-period of the high-period component sequence, maxf is the maximum serial number value of the element sequence of the β-th sub-period of the high-period component sequence, and τ is a parameter adjustment coefficient preset to be greater than zero.
[0017] Preferably, the message period synchronization jump coefficient of the high time series data sequence in each sub-period includes:
[0018] Calculate the variance of all elements of the differential periodic component sequence in the β-th sub-period, and use the product of the variance and the average jump amount of the high-period component sequence in the β-th sub-period as the message period synchronization jump coefficient of the high-time series data sequence in the β-th sub-period, where β is the serial number value of the sub-period.
[0019] Preferably, obtaining the frequency fluctuation coefficient of the differential periodic component sequence in each period according to the frequency spectrum distribution of the differential periodic component sequence includes:
[0020] Perform discrete Fourier transform on all elements of each period of the differential periodic component sequence to obtain the frequencies of each period of the differential periodic component sequence in the frequency domain and the amplitude values corresponding to the frequencies. The expression of the frequency fluctuation coefficient of the differential periodic component sequence in each period is:
[0021]
[0022] In the formula, G γis the frequency fluctuation coefficient of the differential periodic component sequence in the γth period, M is the number of frequencies contained in the γth period of the differential periodic component sequence in the frequency domain, ran(j) is the jth frequency value of the γth period of the differential periodic component sequence in the frequency domain, sum is the sum of all frequencies of the γth period of the differential periodic component sequence in the frequency domain, j is the ordinal value of the frequency of the γth period of the differential periodic component sequence in the frequency domain, and log2() is a logarithmic function with base 2.
[0023] Preferably, the potential difference burr mutation index of the high time series data sequence in each cycle includes:
[0024] Calculate the sum of the message period synchronization jump coefficients of all sub-periods of the high-time series data sequence in each period, calculate the product of the sum and the preset first weight coefficient, calculate the product of the frequency fluctuation coefficient of the differential periodic component sequence in each period and the preset second weight coefficient, and use the sum of the two products as the potential difference glitch mutation index of the high-time series data sequence in each period.
[0025] Preferably, the potential difference burr mutation index of adjacent periods is used to obtain the potential difference burr prominence consistency index of each time period, and the expression is:
[0026]
[0027] Where Y q N is the potential difference spur highlight consistency index in the qth time period, γ is the number of cycles contained in the qth time period, exp is an exponential function with a natural constant as the base, H(δ γ+1 ) is the potential difference burr mutation index of the γ+1th cycle in the qth time period of the high time series data sequence, H(δ γ ) is the potential difference burr mutation index of the γth cycle in the qth time period of the high time series data sequence, L(δ γ+1 ) is the potential difference burr mutation index of the γ+1th cycle in the qth time period of the low time series data sequence, L(δ γ ) is the potential difference glitch mutation index of the γth cycle of the low time series data sequence in the qth time period, and τ is the adjustment parameter coefficient preset to be greater than zero.
[0028] Preferably, the method of combining the potential difference burr highlight consistency index and the outlier detection algorithm to complete the communication of the fuel vehicle electronic controller includes:
[0029] The potential difference burr highlight consistency index of all time periods of the fuel vehicle electronic controller is used as the input of the outlier detection algorithm, and the output is the outlier factor of each potential difference burr highlight consistency index. The data transmitted in the time period corresponding to the potential difference burr highlight consistency index with an outlier factor greater than a preset threshold is taken as abnormal data, and the abnormal data is retransmitted.
[0030] In a second aspect, an embodiment of the present invention further provides a fuel vehicle electronic controller communication system, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of any one of the above methods when executing the computer program.
[0031] The present invention has at least the following beneficial effects:
[0032] The present invention analyzes the periodic jump characteristics of message waveform data, uses the TBATS model to separate the periodic components of the transmission signal, divides the data of a single period interval into sub-periods, and constructs the message period synchronization jump coefficient of each sub-period, which reflects the abnormal degree of the periodic component of the transmission data in each sub-period and the distortion degree of the transmission data; then uses discrete Fourier transform to analyze the burr state in the message waveform data from the frequency domain, and constructs the potential difference burr prominence index, which reflects the interference degree of the transmission data communication caused by electromagnetic and other factors; on this basis, through the change consistency characteristics of the transmission data on the CANH and CANL lines, the potential difference burr prominence consistency index is constructed, and the LOF algorithm is combined to perform outlier detection on the potential difference burr prominence consistency index, thereby improving the accuracy of the electronic controller communication error detection, making up for the defect of the existing method being sensitive to the voltage threshold, and improving the reliability of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are 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.
[0034] Figure 1 A flowchart of a fuel vehicle electronic controller communication method provided by one embodiment of the present invention;
[0035] Figure 2 Get flow chart for electronic controller communication indicators. DETAILED DESCRIPTION
[0036] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of a fuel vehicle electronic controller communication method and system proposed by the present invention, its specific implementation, structure, features and effects, in conjunction 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.
[0037] 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.
[0038] The following is a detailed description of a fuel vehicle electronic controller communication method and system provided by the present invention in conjunction with the accompanying drawings.
[0039] See also Figure 1 , which shows a flow chart of a method for communicating with an electronic controller of a fuel vehicle provided by an embodiment of the present invention, the method comprising the following steps:
[0040] Step S001, collecting the CAN bus signal of the tire pressure monitoring system of the fuel vehicle during data transmission.
[0041] For fuel vehicles, in order to improve the anti-interference ability of the electronic controller during communication and effectively suppress external electromagnetic interference, the CAN bus uses differential signals for data transmission. CANL (CAN Low) and CANH (CAN High) are two differential signal lines. The voltage difference between the differential signal lines is used to transmit data to determine the logical state of the transmission. This embodiment analyzes and diagnoses the communication quality of the electronic controller by monitoring CANL and CANH data.
[0042] First, an oscilloscope with a differential probe is used to collect the message waveform data when the electronic controller communicates. The differential probe can simultaneously measure the CANL and CANH signals in the CAN bus and their voltage difference. The differential probe is connected to the CANH line and the CANL line respectively, and the ground port of the oscilloscope is connected to the common ground point of the fuel vehicle through the ground wire.
[0043] When the fuel car is started, the electronic controller enters the working state, and the tire pressure monitoring system of the car begins to collect various data such as tire pressure, and transmits it to the electronic controller through the CAN bus for communication. The differential probe oscilloscope collects voltage data every 5ms. At this point, the timing data sequence of the two differential signal lines CANL and CANH is obtained, and recorded as high timing data sequence H and low timing data sequence L respectively. L and H are both recorded as message waveform data.
[0044] Step S002, divide the period interval based on the jump discontinuity characteristics of the message waveform data, construct the message period synchronization jump coefficient of each sub-period, analyze the data frequency domain characteristics through discrete Fourier transform, construct the potential difference burr highlight index of each period, and construct the potential difference burr highlight consistency index of each time period based on the consistency principle of data changes on the CANH and CANL lines.
[0045] Specifically, the present embodiment first obtains each data sequence, divides all sequences into each period and each sub-period, obtains the warpage coefficient of the high trend component sequence in each sub-period, obtains the average jump amount of the high period component sequence in each sub-period, combines the average jump amount and the warpage coefficient to obtain the message period synchronization jump coefficient of the high time series data sequence in each sub-period, obtains the frequency fluctuation coefficient of the differential period component sequence in each period, obtains the potential difference burr highlight consistency index of each time period according to the potential difference burr mutation index of the high time series data sequence and the low time series data sequence in each period, and the electronic controller communication index acquisition flow chart is as follows: Figure 2 The construction process of the potential difference burr highlight consistency index in each time period is as follows:
[0046] On the CAN bus, the signal is in the form of voltage. The CAN signal is represented by the potential difference between the CANH and CANL lines, which is divided into two types: dominant level and recessive level. The dominant level is defined as logic 0, and the recessive level is logic 1. During the signal transmission process, the CAN controller converts the signal transmitted by the CPU into a logic level. After the CAN transceiver receives the logic level, it converts it into a differential level and outputs it to the CAN bus.
[0047] Thus, the present embodiment analyzes the collected low time series data sequence L and high time series data sequence H to determine whether the message waveform data is abnormal. According to the periodic switching of the message waveform between the implicit and explicit states, the TBATS model is used to capture and analyze the periodic characteristics. Taking the CANH differential signal line as an example, the time period length is set to 1s. The input of the TBATS model is the high time series data sequence H in each time period, and the output is the trend component sequence, periodic component sequence and residual component sequence obtained by decomposition, which are respectively recorded as the high trend component sequence Th, the high period component sequence Sh and the high residual component sequence DH. The TBATS model is an existing well-known technology, and the present embodiment will not be described in detail here. For the low time series data sequence L, the same method is used for decomposition to obtain the low trend component sequence Tl, the low period component sequence Sl and the low residual component sequence Dl.
[0048] First, if the signal transceiver in the electronic controller is damaged or does not work properly, it will directly affect the amplitude of the message waveform, resulting in bus reflection or signal distortion during communication. Therefore, the amplitude of the message waveform is analyzed in combination with the periodic component to see if there is an abnormality. Obtain the differential periodic component sequence, specifically by subtracting the elements in the same position in the low periodic component sequence from each element in the high periodic component sequence to obtain a differential periodic component sequence, denoted as bs. For each element value in the differential periodic component sequence, calculate the absolute value of the difference between the previous element and the next element of each element, and set the element with an absolute value of the difference greater than θ as a jump discontinuity point. In this embodiment, θ=0.5. The implementer can set it according to the actual situation. This embodiment does not limit this. The jump discontinuity point is used as the segmentation point in the differential periodic component sequence, so as to divide the differential periodic component sequence into each period. According to the jump discontinuity point, the jump discontinuity point is set as the segmentation point in the differential periodic component sequence. The corresponding elements in the high-period component sequence and the low-period component sequence are obtained at the discontinuity points, thereby obtaining the corresponding elements in the high time series data sequence and the low time series data sequence. The corresponding elements in the high trend component sequence are obtained according to the corresponding elements in the high time series data sequence. Each corresponding element is used as a segmentation point in the sequence to divide the high time series data sequence, the low time series data sequence, the high-period component sequence, the low-period component sequence, and the high trend component sequence into periods. Each period of all sequences is equally divided into 10 sub-periods. The number of sub-period divisions can be set by the implementer according to actual conditions, and this embodiment does not impose any restrictions on this.
[0049] Taking the high-time data sequence as an example, the message cycle synchronization jump coefficient in each sub-cycle is calculated, and the expression is:
[0050] F β =fh×σ(bs β )
[0051]
[0052]
[0053] In the formula, F β is the message period synchronization jump coefficient of the high-time data sequence in the β-th sub-period, fh is the average jump amount of the high-period component sequence in the β-th sub-period, bs β are all elements of the difference periodic component sequence in the βth subperiod, σ() is the variance function, N shβ is the number of elements in the βth subperiod of the high-period component sequence, Sh β is the element sequence of the βth sub-period of the high-period component sequence, max() is the maximum value function, Sh β(i) is the i-th element of the element sequence of the β-th sub-period of the high-period component sequence, ph represents the warping coefficient of the high-trend component sequence in the β-th sub-period, i is the sequence number value of the element sequence of the β-th sub-period of the high-period component sequence, maxf is the maximum sequence number of the element sequence of the β-th sub-period of the high-period component sequence, τ is a parameter adjustment coefficient preset to be greater than zero to avoid the denominator being zero. In this embodiment, τ=1, and the implementer can set it according to the actual situation. This embodiment does not limit this. min() is the minimum value function, Th β are all elements of the high trend component sequence in the βth sub-period, maxt is the serial number of the maximum value of the element in the βth sub-period of the high trend component sequence, and mint is the serial number of the minimum value of the element in the βth sub-period of the high trend component sequence.
[0054] If the data element of the high-period component sequence in the βth sub-period is abnormal, the calculated max(Sh β )-Sh β The larger the value of (i), and the smaller the value of |i-maxf|, the smaller the time interval between element anomalies may be, and the larger the average jump variable fh of the βth sub-period is. The larger the range of the trend component within the sub-period, that is, max(Th β )-min(Th β ) is larger, and the smaller the maxt-mint is, the larger the warping coefficient ph is. The larger the variance value of the differential periodic component sequence in the βth sub-period, the larger the data jump value between CANL and CANH in the same time period. The larger the message period synchronization jump coefficient is, the higher the data abnormality of the CAN message waveform during communication is, and the more likely data distortion will occur.
[0055] The same calculation method is used for the low-time data sequence L to obtain the message period synchronization jump coefficient of the low-time data sequence in the βth sub-period, which is recorded as V β .
[0056] Furthermore, due to the complexity of the communication system in fuel vehicles, in addition to the failure of the signal transceiver of the tire pressure system, the engine, ignition system and other high-voltage equipment are prone to electromagnetic interference to the communication line, resulting in a decrease in the quality of the communication signal or loss, which in turn causes glitches and noise in the CAN message waveform. In order to better quantify the glitches of the message waveform data, the discrete Fourier transform DFT is used to convert the differential periodic component sequence from the time domain to the frequency domain, and the frequency domain data of the differential periodic component sequence is analyzed. DFT is an existing well-known technology, and the specific process will not be repeated. Taking H as an example, the potential difference glitch prominence index is constructed, and the expression is:
[0057]
[0058]
[0059] In the formula, G γ is the frequency fluctuation coefficient of the differential periodic component sequence in the γth period, M is the number of frequencies contained in the γth period of the differential periodic component sequence in the frequency domain, ran(j) is the jth frequency value of the γth period of the differential periodic component sequence in the frequency domain, sum is the sum of all frequencies of the γth period of the differential periodic component sequence in the frequency domain, j is the serial number value of the frequency of the γth period of the differential periodic component sequence in the frequency domain, log2() is the logarithmic function with base 2, H(δ γ ) is the potential difference burr mutation index of the high timing data sequence in the γth cycle, F β is the message period synchronization jump coefficient of the high-time data sequence in the βth sub-period, N γ is the number of sub-periods included in the γth period, ω1 is the preset first weight coefficient, ω2 is the preset second weight coefficient, in this implementation, ω1=0.3, ω2=0.7, the implementer can set it according to the actual situation, and this embodiment does not limit this.
[0060] When the ran(j) value is higher, it means that the frequency value in the frequency domain is higher. When the proportion of high-frequency values is larger, that is, the ran(j) / sum is larger, it means that the high-frequency components in the differential periodic component sequence are more obvious, which makes the frequency fluctuation coefficient larger, indicating that there are more glitches in the signal. Finally, the higher the potential difference glitch prominence index calculated, the greater the degree of electromagnetic interference to the communication of the electronic controller in the fuel vehicle.
[0061] The potential difference burr prominence index of the low time series data sequence L in each period is obtained by using the same calculation method as the potential difference burr mutation index of the high time series data sequence in each period.
[0062] Since the data on the two differential signal lines should maintain a certain degree of symmetry, if the changes are inconsistent, it may cause frame errors during data transmission. Therefore, by analyzing the difference in the potential difference glitch prominence index calculated on the CANH line and the CANL line, the potential difference glitch prominence consistency index is constructed, and the expression is:
[0063]
[0064] Where Y q N is the potential difference spur highlight consistency index in the qth time period, γ is the number of cycles contained in the qth time period, exp is an exponential function with a natural constant as the base, H(δ γ+1 ) is the potential difference burr mutation index of the γ+1th cycle in the qth time period of the high time series data sequence, H(δ γ) is the potential difference burr mutation index of the γth cycle in the qth time period of the high time series data sequence, L(δ γ+1 ) is the potential difference burr mutation index of the γ+1th cycle in the qth time period of the low time series data sequence, L(δ γ ) is the potential difference glitch mutation index of the γth cycle of the low time series data sequence in the qth time period, and τ is the adjustment parameter coefficient preset to be greater than zero.
[0065] If the potential difference burr highlight index calculated on the two differential signal lines is larger and the fluctuation state is inconsistent, the calculated H(δ γ )-L(δ γ ) value is larger, and the data on a single differential signal line is more stable, H(δ γ+1 )-H(δ γ ) or L(δ γ+1 )-L(δ γ ) is smaller, the final potential difference burr highlight consistency index is smaller, which means that the transmission signal generation in the CAN bus is more inconsistent during data transmission, and the possibility of communication errors is greater.
[0066] Step S003, combining the potential difference burr highlight consistency index and the outlier detection algorithm to complete the communication of the fuel vehicle electronic controller.
[0067] In order to ensure the stability and accuracy of data transmission, the message waveform data within 30s before the current time point is obtained, and the potential difference burr highlight consistency index of each time period within 30s is calculated. This embodiment uses the LOF algorithm for outlier detection. The input of the algorithm is the potential difference burr highlight consistency index of each time period within the 30s time length, and the output is the outlier factor corresponding to each potential difference burr highlight consistency index. If there is an outlier factor of the potential difference burr highlight consistency index greater than ε, ε=2 in this embodiment, the implementer can set it according to the actual situation, and this embodiment does not limit this, which means that there is an error in data transmission in the time period corresponding to the potential difference burr highlight consistency index, and the data in the corresponding time period is retransmitted in the CAN bus to complete the normal communication of the fuel vehicle electronic controller. The LOF algorithm is an existing well-known technology, and the specific process will not be repeated.
[0068] Based on the same inventive concept as the above method, an embodiment of the present invention also provides a fuel vehicle electronic controller communication system, including a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the steps of any one of the above-mentioned fuel vehicle electronic controller communication methods are implemented.
[0069] In summary, the embodiment of the present invention improves the accuracy of electronic controller communication error detection by using the LOF algorithm to detect outliers in the potential difference burr highlight consistency index, compensates for the defect of the existing method that is sensitive to the voltage threshold, and improves the reliability of data transmission.
[0070] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The above is a description of a specific embodiment of this specification. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0071] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0072] 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 fuel vehicle electronic controller communication method, characterized in that: The method comprises the following steps: Collect the signals on the high-speed line and low-speed line of the CAN bus during the data transmission of the electronic controller of the fuel vehicle; use the collected signal data on the high-speed line and the low-speed line as the high-time series data sequence and the low-time series data sequence respectively; use the time series decomposition algorithm to split the high-time series data sequence into a high-trend component sequence and a high-period component sequence; use the same method to obtain the low-period component sequence of the low-time series data sequence; subtract each element in the high-period component sequence from the corresponding position element in the low-period component sequence to obtain the differential period component sequence; divide all sequences into each period and each sub-period; According to the data distribution of the high trend component sequence in each sub-period, the warping coefficient of the high trend component sequence in each sub-period is obtained; the average jump amount of the high period component sequence in each sub-period is obtained by combining the distribution characteristics of the data of each sub-period in the high period component sequence and the warping coefficient of the high trend component sequence in each sub-period; the message period synchronization jump coefficient of the high time series data sequence in each sub-period is obtained by combining the average jump amount of the high period component sequence in each sub-period and the discrete degree of the differential period component sequence; the frequency fluctuation coefficient of the differential period component sequence in each period is obtained according to the spectrum distribution of the differential period component sequence; The frequency fluctuation coefficient of each cycle and the message period synchronization jump coefficient of the high time series data sequence in each sub-cycle are combined to obtain the potential difference burr mutation index of the high time series data sequence in each cycle; the same method is used to obtain the potential difference burr mutation index of the low time series data sequence in each cycle; the process of collecting signals is divided into time periods at equal intervals; the potential difference burr prominence consistency index of each time period is obtained according to the difference in the potential difference burr mutation index of adjacent cycles; the potential difference burr prominence consistency index and the outlier detection algorithm are combined to complete the communication of the fuel vehicle electronic controller; The method of obtaining the warpage coefficient of the high trend component sequence in each sub-period according to the data distribution of the high trend component sequence in each sub-period includes: Calculate the difference between the maximum value and the minimum value of the data of the high trend component sequence in each sub-period, count the number of elements between the maximum value and the minimum value, and use the ratio of the difference to the number as the warping coefficient of the high trend component sequence in each sub-period; The message period synchronization jump coefficient of the high time series data sequence in each sub-period includes: Calculate the difference periodic component sequence at The variance of all elements of the sub-period is divided into the variance and the high-period component sequence in The product of the average jump amount of the sub-periods is used as the high-time data sequence in the first The message period synchronization jump coefficient of sub-periods, where: is the serial number value of the sub-period; The frequency fluctuation coefficient of the differential periodic component sequence in each period is obtained according to the frequency spectrum distribution of the differential periodic component sequence, including: Perform discrete Fourier transform on all elements of each period of the differential periodic component sequence to obtain the frequencies of each period of the differential periodic component sequence in the frequency domain and the amplitude values corresponding to the frequencies. The expression of the frequency fluctuation coefficient of the differential periodic component sequence in each period is: ; In the formula, is the difference periodic component sequence in the The frequency fluctuation coefficient of the cycle, is the first The number of frequencies contained in a period in the frequency domain, is the first The jth frequency value of a cycle in the frequency domain, is the first The sum of all frequencies in the frequency domain for a period, is the first The serial number value of the frequency of a cycle in the frequency domain, is a logarithmic function with base 2; The potential difference glitch mutation index of the high timing data sequence in each cycle includes: Calculate the sum of the message period synchronization jump coefficients of all sub-periods of the high time series data sequence in each period, calculate the product of the sum and the preset first weight coefficient, calculate the product of the frequency fluctuation coefficient of the differential period component sequence in each period and the preset second weight coefficient, and use the sum of the two products as the potential difference burr mutation index of the high time series data sequence in each period; The potential difference burr mutation index of adjacent periods is used to obtain the potential difference burr prominence consistency index of each time period, and the expression is: ; In the formula, is the potential difference burr highlight consistency index in the qth time period, is the number of cycles contained in the qth time period, is an exponential function with a natural constant as base, is the high time series data sequence in the qth time period The potential difference glitch mutation index of the cycle, is the high time series data sequence in the qth time period The potential difference glitch mutation index of the cycle, is the low time series data sequence in the qth time period The potential difference glitch mutation index of the cycle, is the low time series data sequence in the qth time period The potential difference glitch mutation index of the cycle, is a parameter adjustment coefficient preset to be greater than zero; The method of combining the potential difference burr highlight consistency index and the outlier detection algorithm to complete the communication of the fuel vehicle electronic controller includes: The potential difference burr highlight consistency index of all time periods of the fuel vehicle electronic controller is used as the input of the outlier detection algorithm, and the output is the outlier factor of each potential difference burr highlight consistency index. The data transmitted in the time period corresponding to the potential difference burr highlight consistency index with an outlier factor greater than a preset threshold is taken as abnormal data, and the abnormal data is retransmitted.
2. A fuel vehicle electronic controller communication method according to claim 1, characterized in that: The method of dividing all sequences into periods and sub-periods includes: Calculate the absolute value of the difference between the previous element and the next element of each element in the differential periodic component sequence. If the absolute value of the difference is greater than a preset threshold, take the element as a jump discontinuity point, take each jump discontinuity point as a segmentation point in the differential periodic component sequence, and divide the differential periodic component sequence into various periods. Take the corresponding elements of the jump discontinuity points in the high periodic component sequence and the low periodic component sequence as segmentation points, and divide the high periodic component sequence and the low periodic component sequence into various periods. The high time series data sequence and the low time series data sequence are divided into periods by using the elements corresponding to the division points in the high period component sequence in the high time series data sequence as the division points in the high time series data sequence, and the elements corresponding to the division points in the low period component sequence in the low time series data sequence as the division points in the low time series data sequence. The high trend component sequence is divided into periods by using the elements corresponding to the division points in the high time series data sequence in the high trend component sequence as the division points of the high trend component sequence. The periods of all sequences are equally spaced into sub-periods.
3. A fuel vehicle electronic controller communication method according to claim 1, characterized in that: The average jump amount of the high-period component sequence in each sub-period is obtained by combining the distribution characteristics of the data of each sub-period in the high-period component sequence and the warping coefficient of the high-trend component sequence in each sub-period, and the expression is: ; In the formula, For the high period component sequence, The average jump variable of the sub-period is is the first The number of elements in a subperiod, is the first The sequence of elements of a subperiod, To obtain the maximum value function, is the first The first element of the sequence of subperiods elements, Indicates that the high trend component sequence is The warping coefficient of the sub-period is is the first The serial number value of the element sequence of the sub-period, is the first The maximum value of the sequence number of elements in a sub-period, The preset parameter coefficient is greater than zero.
4. A fuel vehicle electronic controller communication system, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.
