Electronic control unit ground deviation detection method and device and engine control system

By detecting and analyzing the internal ground potential voltage value between the ECU, the fault problem caused by the ground offset of the ECU in large engines is solved, and real-time, accurate detection and rapid resolution of the ground offset of the ECU is achieved.

CN120143778APending Publication Date: 2025-06-13WEICHAI POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510130155.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-05
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

In the multi-cylinder injection control of large engines, due to the large impedance of the connection wiring harness between the ECUs, the ground potential is offset, which causes synchronization and other faults.

Method used

By detecting the internal ground potential voltage value between two or more ECUs, the average voltage value within the preset time period is calculated, and whether the preset fluctuation conditions are met, to determine whether the ECU has ground offset.

Benefits of technology

Real-time and accurate detection of the ECU offset state is realized, problem solving efficiency is improved, and faults caused by ECU offset can be discovered and quickly resolved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120143778A_ABST
    Figure CN120143778A_ABST
Patent Text Reader

Abstract

The invention discloses an electronic control unit ground deviation detection method and device and an engine control system, and the method is applied to a generator control system comprising two or more electronic control units. The method comprises the following steps: detecting a ground potential voltage value between the internal ground of the first electronic control unit and the internal ground of the second electronic control unit; calculating a voltage average value based on the ground potential voltage value in the preset time period; and under the condition that the voltage average value is smaller than a preset voltage threshold value, when it is detected that the ground potential voltage value in a preset time period meets a preset fluctuation condition, it is determined that the electronic control unit of the generator control system has a ground offset phenomenon. According to the method and the device, the deviation phenomenon of the ECU can be accurately detected in real time, so that the problem solving efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of engine control, and particularly to a method and device for detecting the offset of an electronic control unit and an engine control system. Background Art

[0002] Currently, for some large generators that need to meet the injection of more than a dozen cylinders, usually two or more ECUs (Electronic Control Unit) are selected to jointly control the generator. However, due to reasons such as the large size of the model, the connecting wire harness between the two ECUs often has a large impedance. Therefore, the ECU often exhibits a ground offset phenomenon (also known as ground potential offset, which refers to the phenomenon that when multiple ECUs jointly control the engine, due to various reasons, the ground potential between different grounding nodes appears different), and then faults such as desynchronization (referring to the situation where the data, status, or operations that should originally be synchronized between two ECUs become inconsistent) occur on one side of the ECU. Therefore, there is an urgent need for a method and detection device that can detect the ground offset state of the ECU to timely discover the ground offset phenomenon when multiple ECUs are applied.

[0003] It should be noted that the above statements are only used to provide background technical information related to the present application, and do not necessarily constitute prior art. Summary of the Invention

[0004] In view of the above problems, the embodiments of the present application provide a method and device for detecting the offset of an electronic control unit and an engine control system, which can detect the ground offset phenomenon of the ECU in real time and accurately to improve the problem-solving efficiency.

[0005] In a first aspect, the embodiments of the present application provide a method for detecting the offset of an electronic control unit, which is applied to a generator control system including two or more electronic control units. The method includes:

[0006] Detect the ground potential voltage value between the internal ground of the first electronic control unit and the internal ground of the second electronic control unit;

[0007] Calculate the voltage average value based on the ground potential voltage value within a preset time period;

[0008] When the voltage average value is less than a preset voltage threshold and it is detected that the ground potential voltage value within the preset time period meets the preset fluctuation condition, it is determined that the electronic control unit of the generator control system has a ground offset phenomenon.

[0009] In some alternative embodiments, the electronic control units of the generator control system each include voltage-type analog quantity acquisition pins; detecting the ground potential voltage value between the internal ground of the first electronic control unit and the internal ground of the second electronic control unit includes:

[0010] Connect the internal ground of the first electronic control unit to the voltage-type analog quantity acquisition pin of the second electronic control unit;

[0011] Determine the voltage value acquired by the voltage-type analog quantity acquisition pin as the ground potential voltage value between the internal ground of the first electronic control unit and the internal ground of the second electronic control unit.

[0012] In some alternative embodiments, the detected ground potential voltage value within the preset time period conforms to the preset fluctuation condition, including:

[0013] Based on all the detected ground potential voltage values within the preset time period, determine whether the ground potential voltage value is greater than the preset voltage threshold and the target number of the ground potential voltage values greater than the preset voltage threshold;

[0014] In the case where the target number is greater than the preset value, determine that the detected ground potential voltage value within the preset time period conforms to the preset fluctuation condition.

[0015] In some alternative embodiments, based on all the detected ground potential voltage values within the preset time period, determining whether the ground potential voltage value is greater than the preset voltage threshold includes:

[0016] Convert the detected ground potential voltage value in the time domain to the ground potential spectrum in the frequency domain;

[0017] In the case where there is a narrowband spike with a frequency amplitude greater than the preset frequency threshold in the ground potential spectrum, determine that the ground potential voltage value at the corresponding moment is greater than the preset voltage threshold.

[0018] In some alternative embodiments, determining the target number of the ground potential voltage values greater than the preset voltage threshold includes:

[0019] Count the narrowband spikes;

[0020] Determine the number of the narrowband spikes within the preset time period as the target number.

[0021] In some alternative embodiments, the method further includes:

[0022] In the case where the average voltage is greater than the preset voltage threshold, determine that there is a ground offset phenomenon in the electronic control unit of the generator control system.

[0023] In a second aspect, an embodiment of the present application provides a ground offset detection device for an electronic control unit, which is applied to a generator control system including two or more electronic control units. The device includes:

[0024] A ground potential detection module for detecting the ground potential voltage value between the internal ground of the first electronic control unit and the internal ground of the second electronic control unit;

[0025] An average voltage calculation module for calculating the average voltage based on the ground potential voltage values within a preset time period;

[0026] A ground offset detection module for, when the average voltage is greater than a preset voltage threshold and the ground potential voltage values within the preset time period meet a preset fluctuation condition, determining that a ground offset phenomenon occurs in the electronic control unit of the generator control system.

[0027] In some optional embodiments, the ground offset detection module is specifically configured to:

[0028] Generate a corresponding ground potential spectrum in the frequency domain based on all the ground potential voltage values in the time domain detected within the preset time period;

[0029] Determine the number of narrowband spikes appearing in the ground potential spectrum within the preset time period; the narrowband spikes indicate that the frequency amplitude in the ground potential spectrum is greater than a preset frequency threshold;

[0030] When the number of narrowband spikes is greater than a preset value, determine that the ground potential voltage values meet the preset fluctuation condition.

[0031] In a third aspect, an embodiment of the present application provides an engine control system, including two or more electronic control units, and the ground offset detection device for the electronic control unit according to claim 7 or 8.

[0032] In some optional embodiments, each of the electronic control units includes a voltage-type analog quantity acquisition pin;

[0033] The internal ground of the first electronic control unit in the electronic control unit is connected to the voltage-type analog quantity acquisition pin of the second electronic control unit for detecting the ground potential voltage value between the internal ground of the first electronic control unit and the internal ground of the second electronic control unit.

[0034] In this application, the ground potential voltage value between the internal grounds of any two electronic control units can be detected within a preset time period, and the average voltage can be calculated. If the average voltage is less than the preset voltage threshold, when the ground potential voltage value within the preset time period meets the preset fluctuation condition, it can be determined that the electronic control unit of the generator control system has a ground shift phenomenon. In this way, whether the engine is started or not, as long as the ground potential voltage value between the internal grounds of two ECUs can be detected within a certain period of time, and then it can be determined whether the detected ground potential voltage value is greater than the preset voltage threshold and whether it meets the preset fluctuation condition, so as to determine whether the ECU of the generator control system has a ground shift phenomenon. Especially during the operation of the engine, online detection can be carried out, so that when the ECU is in a ground shift state, the problem can be discovered and solved in time.

[0035] The above description is only an overview of the technical solutions of the embodiments of this application. In order to be able to understand the technical means of this application more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features and advantages of the embodiments of this application more obvious and understandable, the following specifically illustrates the specific implementation manners of this application. Brief Description of the Drawings

[0036] By reading the following detailed description of the preferred embodiments, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only for the purpose of showing the preferred embodiments and are not considered to be a limitation of this application. And in all the drawings, the same reference numerals are used to represent the same components. In the drawings:

[0037] Figure 1 It is a schematic flow chart of a method for detecting the ground shift of an electronic control unit provided by some embodiments of this application;

[0038] Figure 2 It is a schematic flow chart of the specific step S3 in some embodiments of this application;

[0039] Figure 3 It is a schematic flow chart of the specific step S31 in some embodiments of this application;

[0040] Figure 4 It is a schematic flow chart of the specific method for detecting the ground shift of an electronic control unit provided by some embodiments of this application;

[0041] Figure 5 It is a schematic framework diagram of the device for detecting the ground shift of an electronic control unit provided by some embodiments of this application;

[0042] Figure 6 It is a schematic framework diagram of the engine control system provided by some embodiments of this application;

[0043] Figure 7 The figure shows a schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0044] Hereinafter, embodiments of the technical solution of the present application will be described in detail with reference to the accompanying drawings. The following embodiments are only used to illustrate the technical solution of the present application more clearly, and thus are only examples and cannot be used to limit the protection scope of the present application.

[0045] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which the embodiments of the present application belong; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit the embodiments of the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above accompanying drawings are intended to cover non-exclusive inclusion.

[0046] In the description of the embodiments of the present application, "a plurality of" means more than two, unless otherwise specifically defined.

[0047] Referring to "embodiments" herein means that a specific feature, structure or characteristic described in connection with the embodiments can be included in at least one embodiment of the present application. The phrase does not necessarily refer to the same embodiment at various positions in the specification, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.

[0048] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this article generally represents an "or" relationship between the associated objects before and after.

[0049] In the related art, for the ECU of the combined control of large generators, due to reasons such as the too large engine model, the connecting wire harness between two ECUs often has a large impedance. When the impedance of the connecting wire harness is large, a large voltage drop will be generated when the current passes through the wire harness, resulting in a difference in the signal reference ground potential between the two ECUs, and thus the ground offset phenomenon occurs.

[0050] For the above reasons, an offset detection method for an electronic control unit is proposed in an embodiment of the present application, which is applied to a generator control system including two or more electronic control units. In this method, the ground potential voltage value between the internal grounds of any two electronic control units can be detected within a preset time period, and the average voltage value can be calculated. If the average voltage value is less than a preset voltage threshold, and it is detected that the ground potential voltage value within the preset time period meets the preset fluctuation condition, it can be determined that the electronic control unit of the generator control system has a ground offset phenomenon. In this way, whether the engine is started or not, as long as the ground potential voltage value between the internal grounds of two ECUs can be detected within a period of time, and then it is determined whether the detected ground potential voltage value is greater than the preset voltage threshold and whether it meets the preset fluctuation condition, so as to determine whether the ECU of the generator control system has a ground offset phenomenon. In particular, during the operation of the engine, online detection can be carried out, so that when the ECU is in a ground offset state, the problem can be discovered and solved in time.

[0051] The following will combine the accompanying drawings to provide a detailed description of the offset detection method for the electronic control unit provided in the embodiment of the present application. Please refer to Figure 1 , Figure 1 which is a schematic flow chart of the offset detection method for the electronic control unit provided in the embodiment of the present application. As Figure 1 shown, the offset detection method for the electronic control unit may include the following steps:

[0052] Step S1, detecting the ground potential voltage value between the internal ground of the first electronic control unit and the internal ground of the second electronic control unit;

[0053] Step S2, calculating the average voltage value based on the ground potential voltage values within a preset time period;

[0054] Step S3, when the average voltage value is less than the preset voltage threshold and it is detected that the ground potential voltage value within the preset time period meets the preset fluctuation condition, it is determined that the electronic control unit of the generator control system has a ground offset phenomenon.

[0055] Among them, the first electronic control unit and the second electronic control unit are both any electronic control units of the generator control system. Here, they are only used to distinguish the two electronic control units, and there is no substantial difference between them. The preset voltage threshold can be actually set according to the voltage error allowed between the two ECUs in the engine control system. For example, it can be 0.5 volts, 1 volt, etc. The preset fluctuation condition can be understood as the fluctuation situation of the curve formed by all the ground potential voltage values. This curve can be a data fluctuation curve in the time domain or a data fluctuation curve in the frequency domain. This embodiment does not make specific limitations on this.

[0056] In this embodiment, when detecting the ground potential voltage value between the internal ground of the first electronic control unit and the internal ground of the second electronic control unit, not only the specific value of the ground potential voltage is recorded, but also the number of detected ground potential voltage values can be counted. Then, when calculating the average voltage, assuming the preset time period is t, the average voltage is obtained by adding up all the detected ground potential voltage values within the time period t and dividing by the total number of all ground potential voltage values.

[0057] If the above average voltage is less than the preset voltage threshold, it can be understood that the voltage difference fluctuation between the internal grounds of the two electronic control units is relatively small. It cannot be directly determined that there is a ground shift phenomenon in the electronic control unit of the generator control system, but this possibility cannot be completely excluded. It is necessary to further judge based on the fluctuation of all the detected ground potential voltage values within the preset time period, and when the ground potential voltage values within the preset time period meet the preset fluctuation conditions, it is determined that there is a ground shift phenomenon in the electronic control unit of the generator control system.

[0058] On the contrary, if the above average voltage is greater than the preset voltage threshold, it can be understood that the voltage difference fluctuation between the internal grounds of the two electronic control units is relatively large, that is, the ground potential voltage between different electronic control units of the generator control system exceeds the acceptable error range, and there is a ground shift phenomenon in the electronic control unit of the generator control system.

[0059] In some alternative embodiments, the electronic control units of the generator control system each include a voltage-type analog quantity acquisition pin, and the ground potential voltage value between the internal grounds of the two electronic control units can be detected through this voltage-type analog quantity acquisition pin.

[0060] Correspondingly, the above step S1, that is, the step of detecting the ground potential voltage value between the internal ground of the first electronic control unit and the internal ground of the second electronic control unit, may include the following processing: connecting the internal ground of the first electronic control unit to the voltage-type analog quantity acquisition pin of the second electronic control unit; determining the voltage value collected by the voltage-type analog quantity acquisition pin as the ground potential voltage value between the internal ground of the first electronic control unit and the internal ground of the second electronic control unit.

[0061] Among them, the voltage-type analog quantity acquisition pin is an interface for collecting voltage signals. These pins are usually connected to analog sensors to convert the voltage signals output by the sensors into digital signals for further processing and analysis.

[0062] In this embodiment, directly connecting the internal ground of the first electronic control unit to the voltage-type analog acquisition pin of the second electronic control unit can achieve online detection of the ground potential voltage value between the internal grounds of the first electronic control unit and the second electronic control unit, thereby enabling rapid and accurate positioning of the ground offset problem, narrowing the scope of fault troubleshooting, and reducing the fault troubleshooting time.

[0063] It can be understood that the above method of detecting the ground potential voltage value between the internal grounds of two electronic control units through the voltage-type analog acquisition pin is only one implementation manner of this embodiment, and this embodiment is not limited thereto. As long as the ground potential voltage value between the internal grounds of two electronic control units can be detected, for example, a voltage detection device can also be directly used to detect the internal ground voltages of the two electronic control units respectively, and the difference between the two detected internal ground voltages is the ground potential voltage value between the internal grounds of the two electronic control units.

[0064] In some other alternative embodiments, as Figure 2 shown, in the above step S3, the process of detecting that the ground potential voltage value within a preset time period meets the preset fluctuation condition may specifically include the following steps: Step S31, based on all the ground potential voltage values detected within the preset time period, determine whether the ground potential voltage value is greater than a preset voltage threshold, and the target number of ground potential voltage values greater than the preset voltage threshold; Step S32, when the target number is greater than a preset value, determine that the ground potential voltage values detected within the preset time period meet the preset fluctuation condition.

[0065] In this embodiment, the fluctuation condition of the ground potential voltage value can be judged by whether the ground potential voltage value detected within the preset time period is greater than the preset voltage threshold and the target number of ground potential voltage values greater than the preset voltage threshold. When the target number is greater than the preset value, it is determined that the ground potential voltage values detected within the preset time period meet the preset fluctuation condition. In this way, the fluctuation condition of the ground potential voltage value can be accurately judged, and whether there is a ground offset phenomenon in the ECU of the engine control system can be accurately judged through the fluctuation condition of the ground potential voltage value, so as to further quickly and accurately locate the ground offset problem.

[0066] Specifically, as Figure 3 shown, the above step of determining whether the ground potential voltage value is greater than the preset voltage threshold based on all the ground potential voltage values detected within the preset time period may include the following steps: Step S311, convert the detected ground potential voltage value in the time domain into the ground potential spectrum in the frequency domain; Step S312, when there is a narrowband spike with a frequency amplitude greater than the preset frequency threshold in the ground potential spectrum, determine that the ground potential voltage value at the corresponding moment is greater than the preset voltage threshold.

[0067] Among them, the time-domain data represents the waveform of the signal changing with time, that is, the change of the signal amplitude over time. Time-domain analysis focuses on the characteristics of the signal on the time axis, such as period, frequency, phase, etc. The frequency-domain data represents the distribution of the signal at different frequencies, that is, which frequency components the signal is composed of, as well as the amplitude and phase of each component. Frequency-domain analysis focuses on the characteristics of the signal on the frequency axis.

[0068] When performing the conversion from the time domain to the frequency domain, it is necessary to ensure that the sampling frequency is high enough to avoid aliasing, that is, high-frequency components are misinterpreted as low-frequency components. Specifically, the detected ground potential voltage value in the time domain can be converted into the ground potential spectrum in the frequency domain through Fourier transform. And when performing Fourier transform, a window function can be used to process the time-domain data to reduce spectral leakage and improve the accuracy of the frequency-domain data.

[0069] In this embodiment, the detected ground potential voltage value in the time domain is converted into the ground potential spectrum in the frequency domain. In the frequency domain, it can be clearly seen which frequency components the signal is composed of, as well as the amplitude and phase of each component, and instantaneous changes in the signal, such as mutations, spikes, oscillations, etc., can be identified. And by the appearance of narrowband spikes in the ground potential spectrum, it is judged that the ground potential voltage value at the corresponding moment is greater than the preset voltage threshold, so that the fluctuation of the ground potential voltage value can be judged more accurately and intuitively.

[0070] Furthermore, the step of determining the target number of ground potential voltage values greater than the preset voltage threshold may include the following processing: counting the narrowband spikes; determining the number of narrowband spikes within a preset time period as the target number. In this way, while counting the narrowband spikes, the number of times when the ground potential voltage value fluctuates greatly (i.e., the target number) can be determined, so that it can be quickly judged whether the ECU has a ground offset phenomenon.

[0071] In a specific embodiment, the method for detecting the ground offset of the electronic control unit can be implemented according to the specific process as shown in Figure 4 Specifically, as a dual-ECU joint control, the internal ground of the A-side ECU can be connected to the voltage-type analog acquisition pin of the B-side ECU. At this time, the voltage value within the continuous acquisition time t is collected through the voltage-type analog acquisition pin of the B-side ECU, and the average voltage Unt is calculated. Comparing it with the allowable voltage threshold specified by the system, if the threshold requirement is met, the subsequent detection is continued; if not, a ground offset fault is reported.

[0072] When the threshold is met, the system performs the next detection operation. Fourier transform is performed on each voltage value point collected within the time t to convert the time-domain data into frequency-domain data to judge the instantaneous change situation.

[0073] According to the obtained voltage value, if there is no severe fluctuation, the data obtained should approach 0 or show a broadband trend with extremely low values on the power spectrum or other forms of frequency spectrum. On the contrary, if there are severe fluctuations, one or several narrowband spikes of different magnitudes will appear on the frequency spectrum. Thus, each narrowband spike represents a severe fluctuation in the ground offset voltage. For this, the narrowband spikes in the frequency spectrum are counted as n, with each spike being counted once. If the number of narrowband spikes n within the time t exceeds the allowable number N, it means that the fluctuations during this period are relatively severe. In this case, a ground offset phenomenon is also considered to exist, and a fault is reported.

[0074] After the data within the time t is analyzed through time domain and frequency domain analysis, the ground offset detection of the current cycle can be ended. And according to the set conditions, the next cycle detection is carried out.

[0075] In summary, the ground offset detection method for the electronic control unit provided in this embodiment can detect the ground potential voltage value between the internal ground of the first electronic control unit and the internal ground of the second electronic control unit online or offline, and calculate the average voltage value of all the ground potential voltage values; if the average voltage value is less than the preset voltage threshold, and when the ground potential voltage value within the preset time period meets the preset fluctuation conditions, it can be determined that a ground offset phenomenon occurs in the electronic control unit of the generator control system. Thus, whether the engine is started or not, as long as the ground potential voltage value between the internal grounds of the two ECUs can be detected within a certain period of time, and then it is determined whether the detected ground potential voltage value is greater than the preset voltage threshold and whether it meets the preset fluctuation conditions, so as to determine whether a ground offset phenomenon occurs in the ECU of the generator control system. Especially during the operation of the engine, online detection can be carried out, so that when the ECU is in a ground offset state, the problem can be discovered and solved in a timely manner.

[0076] Based on the same concept as the above-mentioned ground offset detection method for the electronic control unit, the embodiment of the present application also provides a ground offset detection device for the electronic control unit, which is applied to a generator control system including two or more electronic control units and is used to implement the above-mentioned ground offset detection method, as Figure 5 shown, the device includes:

[0077] A ground potential detection module for detecting the ground potential voltage value between the internal ground of the first electronic control unit and the internal ground of the second electronic control unit;

[0078] An average voltage calculation module for calculating the average voltage value based on the ground potential voltage values within a preset time period;

[0079] A ground offset detection module is configured to determine that a ground offset phenomenon occurs in the electronic control unit of the generator control system when it detects that the ground potential voltage value within a preset time period meets the preset fluctuation condition under the condition that the average voltage is greater than the preset voltage threshold.

[0080] In some other alternative embodiments, the ground offset detection module may specifically be configured to: generate a corresponding ground potential spectrum in the frequency domain based on all the ground potential voltage values detected in the time domain within a preset time period; determine the number of narrowband spikes that appear in the ground potential spectrum within the preset time period; the narrowband spikes characterize that the frequency amplitude in the ground potential spectrum is greater than the preset frequency threshold; and determine that the ground potential voltage value meets the preset fluctuation condition when the number of narrowband spikes is greater than the preset value.

[0081] It can be understood that the ground offset detection device for the electronic control unit provided in this embodiment is used to execute the above-mentioned ground offset detection method for the electronic control unit. Therefore, it can at least achieve the beneficial effects that the above-mentioned ground offset detection method for the electronic control unit can achieve, and the various embodiments of the above-mentioned ground offset detection method for the electronic control unit are equally applicable to this ground offset detection device for the electronic control unit, which will not be elaborated here.

[0082] Based on the same concept as the above-mentioned ground offset detection method for the electronic control unit, an embodiment of the present application further provides an engine control system, as Figure 6 shown. The engine control system includes two or more electronic control units, and the above-mentioned ground offset detection device for the electronic control unit.

[0083] In some alternative embodiments, each electronic control unit may include a voltage-type analog quantity acquisition pin; the internal ground of the first electronic control unit in the electronic control unit is connected to the voltage-type analog quantity acquisition pin of the second electronic control unit for detecting the ground potential voltage value between the internal ground of the first electronic control unit and the internal ground of the second electronic control unit.

[0084] It can be understood that the engine control system provided in this embodiment includes a total control module for executing the above-mentioned ground offset detection method for the electronic control unit. Therefore, it can at least achieve the beneficial effects that the above-mentioned ground offset detection method for the electronic control unit can achieve, and the various embodiments of the above-mentioned ground offset detection method for the electronic control unit are equally applicable to this engine control system, which will not be elaborated here.

[0085] An embodiment of the present application further provides an electronic device to execute the above-mentioned ground offset detection method for the electronic control unit. Please refer to Figure 7 which shows a schematic diagram of an electronic device provided by some embodiments of the present application. As Figure 7As shown in the figure, the electronic device 7 includes: a processor 701, a memory 702, a bus 703, and a communication interface 704. The processor 701, the communication interface 704, and the memory 702 are connected through the bus 703. A computer program that can run on the processor 701 is stored in the memory 702. When the processor 701 runs the computer program, it executes the offset detection method of the electronic control unit provided in any of the foregoing embodiments of the present application.

[0086] Among them, the memory 702 may include a high-speed random access memory (RAM: Random Access Memory), and may also include a non-volatile memory, such as at least one disk memory. Through at least one communication interface 704 (which can be wired or wireless), a communication connection is realized between the device network element and at least one other network element, and the Internet, wide area network, local area network, metropolitan area network, etc. can be used.

[0087] The bus 703 may be an ISA bus, a PCI bus, an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. Among them, the memory 702 is used to store programs. After receiving an execution instruction, the processor 701 executes the program. The offset detection method of the electronic control unit disclosed in any of the foregoing embodiments of the present application can be applied to or implemented by the processor 701.

[0088] The processor 701 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit in the hardware of the processor 701 or by instructions in the form of software. The above-mentioned processor 701 may be a general-purpose processor, including a central processing unit (CPU for short), a network processor (NP for short), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory 702, and the processor 701 reads the information in the memory 702 and combines its hardware to complete the steps of the above method.

[0089] The electronic device provided by the embodiment of the present application and the method for detecting the offset of the electronic control unit provided by the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by it.

[0090] The embodiment of the present application also provides a computer-readable storage medium corresponding to the method for detecting the offset of the electronic control unit provided by the foregoing embodiment. A computer program (i.e., program product) is stored thereon. When the computer program is run by a processor, it will execute the method for detecting the offset of the electronic control unit provided by any of the foregoing embodiments.

[0091] It should be noted that the computer-readable storage medium may include, but is not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory, optical discs or other optical and magnetic storage media, etc., which will not be elaborated here one by one.

[0092] The computer-readable storage medium provided by the embodiment of the present application and the method for detecting the offset of the electronic control unit provided by the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.

[0093] The embodiment of the present application also provides a computer program product corresponding to the method for detecting the offset of the electronic control unit provided by the foregoing embodiment, including a computer program, and the computer program is executed by a processor to implement the above method for detecting the offset of the electronic control unit.

[0094] The computer program product provided by the embodiment of the present application and the method for detecting the offset of the electronic control unit provided by the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the method implemented when the computer program is executed by a processor.

[0095] It can be understood that the descriptions of the above embodiments tend to emphasize the differences between the embodiments. Their similarities or similarities can be referred to each other. For the sake of brevity, they will not be elaborated here.

[0096] Those skilled in the art can understand that in the above method of the specific embodiment. The writing order of each step does not mean a strict execution order and constitutes any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.

[0097] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application, and they should all be covered by the scope of the claims and the description of the present application. In particular, as long as there is no structural conflict, the technical features mentioned in each embodiment can be combined in any way. The present application is not limited to the specific embodiments disclosed in the text, but includes all technical solutions that fall within the scope of the claims.

Claims

1. A method for detecting an offset of an electronic control unit, characterized in that: Applied to a generator control system including two or more electronic control units, the method comprises: Detecting a ground potential voltage value between an internal ground of the first electronic control unit and an internal ground of the second electronic control unit; Calculating a voltage average value based on the ground potential voltage value within a preset time period; When the voltage average value is less than the preset voltage threshold, it is detected that the ground potential voltage value within the preset time period meets the preset fluctuation condition, and it is determined that the electronic control unit of the generator control system has a ground offset phenomenon.

2. The method according to claim 1, characterized in that The electronic control units of the generator control system all include voltage-type analog quantity acquisition pins; the detection of the ground potential voltage value between the internal ground of the first electronic control unit and the internal ground of the second electronic control unit includes: Connecting the internal ground of the first electronic control unit to the voltage type analog quantity acquisition pin of the second electronic control unit; The voltage value collected by the voltage-type analog quantity collection pin is determined as a ground potential voltage value between an internal ground of the first electronic control unit and an internal ground of the second electronic control unit.

3. The method according to claim 1, characterized in that The detecting that the ground potential voltage value within the preset time period meets a preset fluctuation condition includes: Based on all the ground potential voltage values ​​detected within the preset time period, determining whether the ground potential voltage value is greater than the preset voltage threshold, and a target number of the ground potential voltage values ​​greater than the preset voltage threshold; In a case where the target quantity is greater than a preset value, it is determined that the ground potential voltage value detected within the preset time period meets a preset fluctuation condition.

4. The method according to claim 3, characterized in that The determining whether the ground potential voltage value is greater than the preset voltage threshold based on all the ground potential voltage values ​​detected within the preset time period includes: Converting the detected ground potential voltage value in the time domain into a ground potential spectrum in the frequency domain; In the case where a narrowband peak with a frequency amplitude greater than a preset frequency threshold appears in the ground potential spectrum, it is determined that the ground potential voltage value at the corresponding moment is greater than the preset voltage threshold.

5. The method according to claim 4, characterized in that The determining a target number of the ground potential voltage values ​​greater than the preset voltage threshold comprises: counting the narrow-band peaks; The number of the narrowband peaks within the preset time period is determined as the target number.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: When the voltage average value is greater than the preset voltage threshold, it is determined that a ground offset phenomenon occurs in the electronic control unit of the generator control system.

7. An electronic control unit offset detection device, characterized in that: Applicable to a generator control system including two or more electronic control units, the device comprising: A ground potential detection module, used for detecting a ground potential voltage value between an internal ground of the first electronic control unit and an internal ground of the second electronic control unit; An average voltage calculation module, used to calculate a voltage average value based on the ground potential voltage value within a preset time period; The ground offset detection module is used to detect that the ground potential voltage value within the preset time period meets the preset fluctuation condition when the voltage average value is greater than the preset voltage threshold, and then determine that the electronic control unit of the generator control system has a ground offset phenomenon.

8. The electronic control unit displacement detection device according to claim 7, characterized in that: The ground offset detection module is specifically used for: Based on the ground potential voltage values ​​in all time domains detected within the preset time period, generating a corresponding ground potential spectrum in the frequency domain; Determining the number of narrowband peaks that appear in the ground potential spectrum within the preset time period; The narrowband peak indicates that the frequency amplitude in the ground potential spectrum is greater than a preset frequency threshold; When the number of narrowband peaks is greater than a preset value, it is determined that the ground potential voltage value meets a preset fluctuation condition.

9. An engine control system, characterized in that: The invention comprises two or more electronic control units and the deviation detection device of the electronic control unit according to claim 7 or 8.

10. The engine control system according to claim 9, characterized in that: Each of the electronic control units includes a voltage-type analog quantity acquisition pin; The internal ground of the first electronic control unit in the electronic control unit is connected to the voltage type analog quantity acquisition pin of the second electronic control unit for detecting the ground potential voltage value between the internal ground of the first electronic control unit and the internal ground of the second electronic control unit.