Engine knock voltage correction method and device and electronic equipment

By establishing a reference and a detection window in the engine, the correction factor is calculated to correct the actual measured value of the knock voltage, which solves the problem of low detection accuracy caused by the difference in the installation position of the engine knock sensor, and improves the accuracy of knock detection and engine control performance.

CN118914952APending Publication Date: 2024-11-08WEICHAI POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411032191.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-11-08

Smart Images

  • Figure CN118914952A_ABST
    Figure CN118914952A_ABST
Patent Text Reader

Abstract

The invention discloses an engine knock voltage correction method and device and electronic equipment. The method comprises the steps that at least two reference detection windows and at least one occurrence detection window are established; acquiring a reference voltage sampling value of the knock voltage detection element in a non-knock stage based on the reference detection window, and calculating a knock voltage reference value according to the reference voltage sampling value; based on the occurrence detection window, obtaining a detonation voltage measured value of the detonation voltage detection element in a detonation high-occurrence stage; the engine is controlled to operate in a preset working condition, and a reference voltage calibration value of the detonation voltage detection element in the non-detonation stage is obtained; and calculating a correction factor according to the reference voltage sampling value and the reference voltage calibration value, and correcting the knocking voltage measured value. According to the method, the multiple windows are established in different combustion stages of the engine, the knocking voltage is corrected in combination with the window sampling value and the calibration value of the knocking voltage, the error between the knocking voltage detection value and the true value is reduced, and the knocking detection accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of engine detection, and in particular to an engine knock voltage correction method, device and electronic equipment. Background Art

[0002] Knock is an abnormal combustion phenomenon that occurs in the engine cylinder. Engine knock voltage detection is a technical means of detecting knock through the voltage detection value of the knock sensor.

[0003] Knock sensors are usually installed in different positions of the engine or cylinder. When knock occurs, it generates a small voltage peak. The greater the vibration of the knock, the greater the voltage peak generated by the knock sensor. There are the following problems: the installation position of the knock sensor in different engines is different, resulting in an error between the detection value of the knock sensor and the true value, affecting the knock detection accuracy. Summary of the invention

[0004] The present invention provides an engine knock voltage correction method, device and electronic equipment to solve the problem of low knock detection accuracy caused by differences in the installation positions of existing knock sensors, thereby improving the accuracy of knock detection.

[0005] According to one aspect of the present invention, a method for correcting engine knock voltage is provided, wherein the engine is provided with a knock voltage detection element, comprising: establishing at least two reference detection windows and at least one occurrence detection window; wherein the reference detection window is in a non-knock stage; and the occurrence detection window is in a knock-prone stage; obtaining a reference voltage sampling value of the knock voltage detection element in the non-knock stage based on the reference detection window, and calculating a knock voltage reference value based on the reference voltage sampling value; wherein the reference voltage sampling value corresponds one-to-one to the reference detection window; obtaining a knock voltage measured value of the knock voltage detection element in the knock-prone stage based on the occurrence detection window; establishing a preset operating condition based on a preset knock intensity, controlling the engine to operate in the preset operating condition, and obtaining a reference voltage calibration value of the knock voltage detection element in the non-knock stage; calculating a correction factor based on the reference voltage sampling value and the reference voltage calibration value, and correcting the knock voltage measured value based on the correction factor.

[0006] Optionally, the preset operating condition includes: a first preset operating condition and a second preset operating condition; wherein, the preset knock intensity of the first preset operating condition is different from that of the second preset operating condition; establishing the preset operating condition based on the preset knock intensity, controlling the engine to operate in the preset operating condition, and obtaining the reference voltage calibration value of the knock voltage detection element in the non-knock stage, includes: based on the first preset operating condition, obtaining the first reference voltage calibration value of the knock voltage detection element in the non-knock stage; and, based on the second preset operating condition, obtaining the second reference voltage calibration value of the knock voltage detection element in the non-knock stage.

[0007] Optionally, the correction factor is calculated based on the reference voltage sampling value and the reference voltage calibration value, and the knock voltage measured value is corrected based on the correction factor, including: calculating the correction factor based on the ratio of the first reference voltage calibration value to the reference voltage sampling value; correcting the knock voltage measured value based on the correction factor to obtain a knock voltage correction value; and verifying the knock voltage correction value based on the second reference voltage calibration value.

[0008] Optionally, verifying the knock voltage correction value according to the second reference voltage calibration value includes: obtaining deviation data between the second reference voltage calibration value and the knock voltage correction value; and determining that the knock voltage correction value verification has passed when the deviation data is less than or equal to preset fault tolerance data.

[0009] Optionally, the engine knock voltage correction method also includes: when the knock voltage correction value verification fails, reassigning the preset knock intensities of the first preset operating condition and the second preset operating condition, and performing the next correction on the knock voltage measured value based on the reassigned operating condition.

[0010] Optionally, acquiring a reference voltage sampling value of the knock voltage detection element in the non-knock stage based on the reference detection window, and calculating a knock voltage reference value according to the reference voltage sampling value, comprises: calculating the knock voltage reference value according to an average value of at least two of the reference voltage sampling values.

[0011] Optionally, the establishing of at least two reference detection windows and at least one occurrence detection window includes: acquiring combustion analysis data of the engine, and determining a first window starting point and a first window length of the reference detection window, and a second window starting point and a second window length of the occurrence detection window according to the combustion analysis data; wherein, the first window starting point and the first window length at least satisfy that the reference detection window is located before the piston reaches the top dead center position; and the second window starting point and the second window length at least satisfy that the occurrence detection window is located after the piston reaches the top dead center position.

[0012] Optionally, before establishing at least two reference detection windows and at least one occurrence detection window, the method further comprises: performing synchronization detection on the engine, and performing combustion analysis on the engine when the engine reaches synchronization.

[0013] According to another aspect of the present invention, there is provided an engine knock voltage correction device for executing the above-mentioned engine knock voltage correction method, the device comprising: a data window creation module, for establishing at least two reference detection windows and at least one occurrence detection window; wherein the reference detection window is in a non-knock stage; and the occurrence detection window is in a knock high-incidence stage; a first data acquisition module, for acquiring a reference voltage sampling value of the knock voltage detection element in the non-knock stage based on the reference detection window, and calculating a knock voltage reference value according to the reference voltage sampling value; wherein the reference voltage sampling value corresponds to the reference detection window one by one; a second data acquisition module, for acquiring a knock voltage measured value of the knock voltage detection element in the knock high-incidence stage based on the occurrence detection window; a third data acquisition module, for establishing a preset operating condition based on a preset knock intensity, controlling the engine to operate in the preset operating condition, and acquiring a reference voltage calibration value of the knock voltage detection element in the non-knock stage; and a correction module, for calculating a correction factor according to the reference voltage sampling value and the reference voltage calibration value, and correcting the knock voltage measured value according to the correction factor.

[0014] According to another aspect of the present invention, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the above-mentioned engine knock voltage correction method.

[0015] The technical solution of the embodiment of the present invention is to establish at least two reference detection windows in the non-knock stage of the engine and at least one occurrence detection window in the knock high-incidence stage; obtain the knock voltage measured value of the knock voltage detection element in the knock high-incidence stage based on the occurrence detection window; obtain the reference voltage sampling value of the knock voltage detection element in the non-knock stage based on the reference detection window to calculate the knock voltage reference value; establish a preset operating condition based on the preset knock intensity, control the engine to operate in the preset operating condition, and obtain the reference voltage calibration value of the knock voltage detection element in the non-knock stage, calculate the correction factor according to the reference voltage sampling value and the reference voltage calibration value, and correct the knock voltage measured value according to the correction factor, thereby solving the problem of low knock detection accuracy caused by the difference in the installation position of the existing knock sensor, reducing the error between the knock voltage detection value and the true value, improving the accuracy of knock detection, reducing the incidence of knock misjudgment, and improving engine detection and control performance.

[0016] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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 creative work.

[0018] Figure 1 A flow chart of a method for correcting engine knock voltage provided in Embodiment 1 of the present invention;

[0019] Figure 2 A flow chart of another engine knock voltage correction method provided in the first embodiment of the present invention;

[0020] Figure 3 A flowchart of another engine knock voltage correction method provided in the first embodiment of the present invention;

[0021] Figure 4 A flowchart of another engine knock voltage correction method provided in the first embodiment of the present invention;

[0022] Figure 5 A schematic diagram of the structure of an engine knock voltage correction device provided in Embodiment 2 of the present invention;

[0023] Figure 6 It is a structural schematic diagram of an electronic device for implementing the engine knock voltage correction method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] Embodiment 1

[0027] Figure 1 A flow chart of an engine knock voltage correction method provided in Embodiment 1 of the present invention. This embodiment is applicable to application scenarios in which knock detection is performed on engines of different models using knock voltage detection elements. The method can be executed by an engine knock voltage correction device. The engine knock voltage correction device can be implemented in the form of hardware and / or software. The engine knock voltage correction device can be configured in an engine control system or other electronic equipment.

[0028] In this embodiment, the engine may be a single-cylinder engine or a multi-cylinder engine, such as a two-cylinder, three-cylinder, four-cylinder, six-cylinder, eight-cylinder or twelve-cylinder engine. The present application does not limit the arrangement structure of the cylinders of the engine.

[0029] like Figure 1 As shown, the engine knock voltage correction method of the present application, the engine is provided with a knock voltage detection element, including:

[0030] S1: Establish at least two reference detection windows and at least one occurrence detection window.

[0031] Among them, the reference detection window is in the non-knock stage; the occurrence detection window is in the high-incidence stage of knock. In this embodiment, the non-knock stage occurs before the piston of the engine reaches the top dead center position, and the high-incidence stage of knock occurs after the piston of the engine reaches the top dead center position. In other words, the reference detection window and the occurrence detection window of the present application can be established based on the top dead center position detection.

[0032] Optionally, establishing at least two reference detection windows and at least one occurrence detection window includes: acquiring combustion analysis data of the engine, and determining the first window starting point and the first window length of the reference detection window, and the second window starting point and the second window length of the occurrence detection window according to the combustion analysis data. The first window starting point and the first window length at least satisfy that the reference detection window is located before the piston reaches the top dead center position; the second window starting point and the second window length at least satisfy that the occurrence detection window is located after the piston reaches the top dead center position. Typically, the combustion analysis data includes, but is not limited to, cylinder pressure and knock voltage.

[0033] Exemplarily, n is defined as the window number of the benchmark detection window, ct is the cylinder number of each cylinder of the engine, and the benchmark detection windows include: knk_[1][ct], knk_[2][ct]...knk_[n][ct]..., wherein knk_[1][ct] represents the first benchmark detection window of the ct-th cylinder; knk_[2][ct] represents the second benchmark detection window of the ct-th cylinder, ..., and so on.

[0034] S2: obtaining a reference voltage sampling value of the knock voltage detection element in the non-knock phase based on the reference detection window, and calculating the knock voltage reference value according to the reference voltage sampling value.

[0035] The reference voltage sampling value corresponds to the reference detection window one by one. Exemplarily, n is defined to represent the window number of the reference detection window, ct represents the cylinder number of each cylinder of the engine, and the reference voltage sampling value includes: knks_bas[1][ct], knks_bas[2][ct]...knks_bas[n][ct], wherein knks_bas[1][ct] represents the knock voltage reference value sampled by the first reference detection window knk_[1][ct] of the ct-th cylinder; knks_bas[2][ct] represents the knock voltage reference value sampled by the second reference detection window knk_[2][ct] of the ct-th cylinder, and so on.

[0036] Optionally, obtaining a reference voltage sampling value of a knock voltage detection element in a non-knock phase based on a reference detection window, and calculating a knock voltage reference value based on the reference voltage sampling value, includes: calculating the knock voltage reference value based on an average value of at least two reference voltage sampling values. Exemplarily, n is defined to represent the window number of the reference detection window, ct represents the cylinder number of each cylinder of the engine, U_knks[ct] represents the knock voltage reference value of the ct-th cylinder, and taking the reference voltage sampling values ​​including: knks_bas[1][ct], knks_bas[2][ct]...knks_bas[n][ct] as an example, the knock voltage reference value U_knks[ct]=(knks_bas[1][ct]+...knks_bas[n][ct]) / n.

[0037] S3: obtaining the actual knock voltage measurement value of the knock voltage detection element in the knock high occurrence stage based on the occurrence detection window.

[0038] Exemplarily, the occurrence detection window is defined as knkoccur_[ct], ct represents the cylinder number of each cylinder of the engine, and knkso[ct] represents the actual measured value of the knock voltage of the knock voltage detection element sampled in the occurrence detection window.

[0039] In this embodiment, the knock voltage measured value in the knock-prone stage may include: the knock voltage measured value collected by the knock voltage detection element when knock occurs and the knock voltage measured value collected by the knock voltage detection element when knock does not occur.

[0040] S4: Establishing a preset operating condition based on a preset knock intensity, controlling the engine to operate under the preset operating condition, and obtaining a reference voltage calibration value of the knock voltage detection element in a non-knock stage.

[0041] The reference voltage calibration value is a detection value of the knock voltage detection element obtained through a large amount of calibration data when the engine is running in a preset operating condition with a preset knock intensity.

[0042] In this embodiment, the preset knock intensity is equal to the ratio between the corrected knock voltage measured value (ie, the knock voltage correction value described below) and the reference voltage sampling value.

[0043] Optionally, the preset operating condition includes: a first preset operating condition and a second preset operating condition; wherein the preset knock intensities of the first preset operating condition and the second preset operating condition are different. Specifically, the preset knock intensity can be established based on the knock voltage calibration of different combustion stages. For example, the preset knock intensity corresponding to the first preset operating condition can be set equal to 0.5; and the preset knock intensity corresponding to the second preset operating condition can be set equal to 1.

[0044] Optionally, a preset operating condition is established based on a preset knock intensity, the engine is controlled to operate in the preset operating condition, and a reference voltage calibration value of the knock voltage detection element in the non-knock stage is obtained, including: based on the first preset operating condition, obtaining a first reference voltage calibration value U_re1[ct] of the knock voltage detection element in the non-knock stage, wherein ct represents the cylinder number of each cylinder of the engine; and based on the second preset operating condition, obtaining a second reference voltage calibration value U_re2[ct] of the knock voltage detection element in the non-knock stage, wherein ct represents the cylinder number of each cylinder of the engine.

[0045] S5: Calculate a correction factor according to the reference voltage sampling value and the reference voltage calibration value, and correct the knock voltage measured value according to the correction factor.

[0046] Specifically, by performing combustion analysis on the engine, it is identified whether the engine piston reaches the top dead center position, and a reference detection window and an occurrence detection window are established according to the top dead center position. For example, at least two reference detection windows are established in the stage before the engine piston reaches the top dead center position (defined as the non-knock stage), and at least one occurrence detection window is established in the stage after the piston reaches the top dead center position (defined as the high-incidence stage of knock); based on the occurrence detection window, the actual measured value of the knock voltage of the knock voltage detection element in the high-incidence stage of knock is obtained; based on the reference detection window, the reference voltage sampling value of the knock voltage detection element in the non-knock stage is obtained to calculate the knock voltage reference value; based on the preset knock intensity, a preset working condition is established, the engine is controlled to operate in the preset working condition, and the reference voltage calibration value of the knock voltage detection element in the non-knock stage is obtained, the correction factor is calculated according to the reference voltage sampling value and the reference voltage calibration value, and the actual measured value of the knock voltage is corrected according to the correction factor. By establishing multiple windows in different combustion stages of the engine and correcting the knock voltage based on the window sampling value and calibration value of the knock voltage, the problem of low knock detection accuracy caused by differences in the installation positions of existing knock sensors is solved. The error between the knock voltage detection value and the true value can be reduced, the accuracy of knock detection can be improved, the occurrence rate of knock misjudgment can be reduced, and the engine detection and control performance can be improved.

[0047] Figure 2 This is a flow chart of another engine knock voltage correction method provided in the first embodiment of the present invention, which exemplarily shows a specific implementation method of correcting the knock voltage measured value based on two reference voltage calibration values. Figure 2 As shown, the engine knock voltage correction method of the present application includes the following steps:

[0048] S201: Establish at least two reference detection windows and at least one occurrence detection window.

[0049] S202: Acquire a reference voltage sampling value of a knock voltage detection element in a non-knock phase based on a reference detection window, and calculate a knock voltage reference value according to the reference voltage sampling value.

[0050] S203: Acquire a knock voltage actual measurement value of a knock voltage detection element in a knock high-incidence stage based on the occurrence detection window.

[0051] S204: Based on the first preset operating condition, obtain a first reference voltage calibration value of the knock voltage detection element in the non-knock stage, and based on the second preset operating condition, obtain a second reference voltage calibration value of the knock voltage detection element in the non-knock stage.

[0052] S205: Calculate a correction factor according to a ratio of the first reference voltage calibration value to the reference voltage sampling value.

[0053] S206: Correcting the knock voltage measured value according to the correction factor to obtain a knock voltage correction value.

[0054] S207: Verify the knock voltage correction value according to the second reference voltage calibration value.

[0055] Exemplarily, the preset knock intensity of the first preset working condition is defined to be equal to a, and the preset knock intensity of the first preset working condition is equal to b, wherein the first preset working condition and the second preset working condition correspond to the preset knock intensity lower limit value and the preset knock intensity upper limit value when knock occurs, respectively. Preferably, a can be set to be equal to 0.5, and b can be set to be equal to 1. When the preset knock intensity is equal to a, the correction factor k is calculated based on the first preset working condition by selecting the first reference voltage calibration value U_re1[ct], and the correction factor k=U_re1[ct] / U_knks[ct], and the knock voltage measured value knkso[ct] is corrected. At this time, the knock voltage correction value is equal to k*knkso[ct]. Then the preset knock intensity is set to b, the second reference voltage calibration value U_re2[ct] is selected based on the second preset working condition, and the knock voltage correction value k*knkso[ct] is verified based on the second reference voltage calibration value U_re2[ct]. If the verification is passed, it is considered that the correction is successful, otherwise the correction is continued until the correction is successful.

[0056] It should be noted that those skilled in the art may adjust the number of preset operating conditions and the corresponding values ​​of preset knock intensities according to calibration experience or actual needs, and there is no limitation on the number of preset operating conditions and the values ​​of preset knock intensities.

[0057] Optionally, the knock voltage correction value is verified according to the second reference voltage calibration value U_re2[ct], including: obtaining the deviation data between the second reference voltage calibration value U_re2[ct] and the knock voltage correction value k*knkso[ct]; when the deviation data is less than or equal to the preset fault tolerance data, it is determined that the knock voltage correction value verification is passed; when the deviation data is greater than the preset fault tolerance data, it is determined that the knock voltage correction value verification is not passed. In this embodiment, the preset fault tolerance data can be a voltage deviation threshold (including but not limited to a voltage deviation upper limit threshold and a voltage deviation lower limit threshold) or a voltage deviation rate threshold established based on empirical data or calibration data. In this embodiment, the deviation data can be based on the ratio of the knock voltage correction value to the second reference voltage calibration value, or the deviation rate of the knock voltage correction value relative to the second reference voltage calibration value.

[0058] Exemplarily, taking the deviation data as the ratio of the knock voltage correction value k*knkso[ct] to the second reference voltage calibration value U_re2[ct], and the preset fault tolerance data as the voltage deviation rate threshold (for example, [50%, 150%]) as an example, when the ratio of the knock voltage correction value k*knkso[ct] to the second reference voltage calibration value U_re2[ct] is greater than or equal to 50%, and less than or equal to 150%, it is determined that the knock voltage correction value verification has passed; when the ratio of the knock voltage correction value to the second reference voltage calibration value is less than 50%, or greater than 150%, it is determined that the knock voltage correction value verification has failed.

[0059] In some embodiments, the verified knock voltage correction value may be marked as knks for subsequent knock detection.

[0060] Figure 3 This is a flow chart of another engine knock voltage correction method provided in the first embodiment of the present invention, which exemplarily shows another specific implementation method of correcting the knock voltage measured value based on two reference voltage calibration values. Figure 3 As shown, the engine knock voltage correction method of the present application specifically includes the following steps:

[0061] S301: Establish at least two reference detection windows and at least one occurrence detection window.

[0062] S302: Acquire a reference voltage sampling value of a knock voltage detection element in a non-knock phase based on a reference detection window, and calculate a knock voltage reference value according to the reference voltage sampling value.

[0063] S303: Acquire a knock voltage actual measurement value of a knock voltage detection element in a knock high occurrence stage based on the occurrence detection window.

[0064] S304: Based on the first preset operating condition, obtain a first reference voltage calibration value of the knock voltage detection element in the non-knock stage, and based on the second preset operating condition, obtain a second reference voltage calibration value of the knock voltage detection element in the non-knock stage.

[0065] S305: Calculate a correction factor according to a ratio of the first reference voltage calibration value to the reference voltage sampling value.

[0066] S306: Correcting the knock voltage measured value according to the correction factor to obtain a knock voltage correction value.

[0067] S307: Verify the knock voltage correction value according to the second reference voltage calibration value.

[0068] S308: Determine whether the knock voltage correction value has passed verification.

[0069] If the knock voltage correction value verification fails, step S309 is executed; if the knock voltage correction value verification passes, step S310 is executed.

[0070] S309: reassigning the preset knock intensities of the first preset operating condition and the second preset operating condition, and performing a next correction on the knock voltage measured value based on the reassigned operating conditions.

[0071] S310: Identify whether knocking occurs based on the knock voltage correction value.

[0072] Optionally, identifying whether knock occurs based on the knock voltage correction value includes: calculating the real-time knock intensity according to the ratio of the knock voltage correction value to the knock voltage reference value, and determining that the engine knock occurs when the real-time knock intensity is greater than a preset knock intensity threshold.

[0073] Figure 4 This is a flow chart of another engine knock voltage correction method provided in the first embodiment of the present invention, which exemplarily shows a specific implementation method of starting knock voltage correction after engine synchronization. Figure 4 As shown, the engine knock voltage correction method of the present application specifically includes the following steps:

[0074] S401: Perform synchronization detection on the engine, and perform combustion analysis on the engine when the engine reaches synchronization.

[0075] The engine reaching synchronization means that the piston position of the engine reaches the top dead center position.

[0076] S402: Establish at least two reference detection windows and at least one occurrence detection window based on combustion analysis data of the engine.

[0077] S403: Acquire a reference voltage sampling value of the knock voltage detection element in the non-knock phase based on the reference detection window, and calculate a knock voltage reference value according to the reference voltage sampling value.

[0078] S404: Acquire a knock voltage actual measurement value of a knock voltage detection element in a knock high-incidence stage based on the occurrence detection window.

[0079] S405: Establishing a preset operating condition based on a preset knock intensity, controlling the engine to operate in the preset operating condition, and obtaining a reference voltage calibration value of the knock voltage detection element in a non-knock stage.

[0080] S406: Calculate a correction factor according to the reference voltage sampling value and the reference voltage calibration value, and correct the knock voltage measured value according to the correction factor.

[0081] In some embodiments, the engine can be synchronously detected based on the detection data of the crankshaft position sensor and / or camshaft position sensor of the engine. Specifically, the crankshaft position sensor is used to detect the crankshaft speed, and the camshaft position sensor is used to detect the camshaft position. The engine controller measures the position of the crankshaft and the camshaft according to the detection data of the crankshaft position sensor and the camshaft position sensor, and then realizes synchronous detection according to the position and number of teeth of the crankshaft and the camshaft. In other embodiments, a synchronization status flag can be set to identify whether the engine has reached synchronization based on the synchronization status flag of the engine. For example, when the value of the synchronization status flag is equal to one, it is determined that the engine has reached synchronization; when the value of the synchronization status flag is equal to zero, it is determined that the engine has not reached synchronization. By setting the data collection and knock voltage correction strategy to start after the engine is synchronized, it is avoided that the unstable data before synchronization affects the sampling value, the knock voltage correction accuracy can be improved, and the occurrence rate of knock misjudgment can be reduced.

[0082] Embodiment 2

[0083] According to another aspect of the present invention, there is provided an engine knock voltage correction device, which can execute the engine knock voltage correction method provided in the above embodiment and has corresponding functional modules and beneficial effects for executing the method.

[0084] Figure 5 This is a schematic diagram of the structure of an engine knock voltage correction device provided by the second embodiment of the present invention. Figure 5 As shown, the engine knock voltage correction device of the present application includes: a data window creation module 101, a first data acquisition module 102, a second data acquisition module 103, a third data acquisition module 104 and a correction module 105.

[0085] Among them, the data window creation module 101 is used to establish at least two reference detection windows and at least one occurrence detection window; wherein the reference detection window is in the non-knock stage; the occurrence detection window is in the knock-prone stage; the first data acquisition module 102 is used to obtain the reference voltage sampling value of the knock voltage detection element in the non-knock stage based on the reference detection window, and calculate the knock voltage reference value according to the reference voltage sampling value; wherein the reference voltage sampling value corresponds to the reference detection window one by one; the second data acquisition module 103 is used to obtain the knock voltage measured value of the knock voltage detection element in the knock-prone stage based on the occurrence detection window; the third data acquisition module 104 is used to establish a preset operating condition based on a preset knock intensity, control the engine to operate in the preset operating condition, and obtain the reference voltage calibration value of the knock voltage detection element in the non-knock stage; the correction module 105 is used to calculate the correction factor according to the reference voltage sampling value and the reference voltage calibration value, and correct the knock voltage measured value according to the correction factor.

[0086] Optionally, the preset operating conditions include: a first preset operating condition and a second preset operating condition; wherein the preset knock intensities of the first preset operating condition and the second preset operating condition are different.

[0087] Optionally, the third data acquisition module 104 of the present application is configured to: obtain a first reference voltage calibration value of the knock voltage detection element in the non-knock stage based on a first preset operating condition; and obtain a second reference voltage calibration value of the knock voltage detection element in the non-knock stage based on a second preset operating condition.

[0088] Optionally, the correction module 105 of the present application is configured to: calculate a correction factor based on the ratio of the first reference voltage calibration value to the reference voltage sampling value; correct the actual knock voltage value according to the correction factor to obtain a knock voltage correction value; and verify the knock voltage correction value according to the second reference voltage calibration value.

[0089] Optionally, the correction module 105 of the present application is further configured to: obtain deviation data between the second reference voltage calibration value and the knock voltage correction value; and determine that the knock voltage correction value verification has passed when the deviation data is less than or equal to preset fault tolerance data.

[0090] Optionally, the correction module 105 of the present application is also configured to: when the knock voltage correction value verification fails, reassign the preset knock intensities of the first preset operating condition and the second preset operating condition, and perform the next correction on the knock voltage measured value based on the reassigned operating condition.

[0091] Optionally, the first data acquisition module 102 of the present application is configured to calculate the knock voltage reference value according to an average value of at least two reference voltage sampling values.

[0092] Optionally, the data window creation module 101 of the present application is configured to: obtain the combustion analysis data of the engine, and determine the first window starting point and the first window length of the benchmark detection window, and the second window starting point and the second window length of the occurrence detection window according to the combustion analysis data; wherein the first window starting point and the first window length at least satisfy that the benchmark detection window is located before the piston reaches the top dead center position; and the second window starting point and the second window length at least satisfy that the occurrence detection window is located after the piston reaches the top dead center position.

[0093] Optionally, the engine knock voltage correction device of the present application further includes: a synchronization detection module, which is used to perform synchronization detection on the engine and perform combustion analysis on the engine when the engine reaches synchronization.

[0094] Embodiment 3

[0095] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the above-mentioned engine knock voltage correction method, and has the corresponding beneficial effects of executing the method, and the same parts will not be repeated here.

[0096] Figure 6 A schematic diagram of the structure of an electronic device for implementing the engine knock voltage correction method of an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0097] like Figure 6As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0098] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0099] The processor 11 may be a variety of general and / or dedicated processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as an engine knock voltage correction method.

[0100] In some embodiments, the engine knock voltage correction method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the engine knock voltage correction method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the above-described engine knock voltage correction method in any other appropriate manner (e.g., by means of firmware).

[0101] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0102] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0103] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0104] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0105] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0106] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0107] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0108] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for correcting knock voltage of an engine, wherein the engine is provided with a knock voltage detection element, characterized in that: include: Establishing at least two reference detection windows and at least one occurrence detection window; wherein the reference detection window is in a non-knock stage; and the occurrence detection window is in a knock-prone stage; Acquiring a reference voltage sampling value of the knock voltage detection element in the non-knock stage based on the reference detection window, and calculating a knock voltage reference value according to the reference voltage sampling value; wherein the reference voltage sampling value corresponds to the reference detection window one by one; Acquiring a knock voltage actual measurement value of the knock voltage detection element in the knock high occurrence stage based on the occurrence detection window; Establishing a preset operating condition based on a preset knock intensity, controlling the engine to operate in the preset operating condition, and obtaining a reference voltage calibration value of the knock voltage detection element in the non-knock stage; A correction factor is calculated according to the reference voltage sampling value and the reference voltage calibration value, and the knock voltage actual measurement value is corrected according to the correction factor.

2. The engine knock voltage correction method according to claim 1, characterized in that: The preset operating conditions include: a first preset operating condition and a second preset operating condition; wherein the preset knock intensities of the first preset operating condition and the second preset operating condition are different; The method of establishing a preset operating condition based on a preset knock intensity, controlling the engine to operate in the preset operating condition, and obtaining a reference voltage calibration value of the knock voltage detection element in the non-knock stage includes: Based on the first preset operating condition, obtaining a first reference voltage calibration value of the knock voltage detection element in the non-knock stage; and, Based on the second preset operating condition, a second reference voltage calibration value of the knock voltage detection element in the non-knock stage is obtained.

3. The engine knock voltage correction method according to claim 2, characterized in that: The calculating of the correction factor according to the reference voltage sampling value and the reference voltage calibration value, and correcting the knock voltage measured value according to the correction factor, includes: Calculating the correction factor according to the ratio of the first reference voltage calibration value to the reference voltage sampling value; Correcting the knock voltage measured value according to the correction factor to obtain a knock voltage correction value; The knock voltage correction value is verified according to the second reference voltage calibration value.

4. The engine knock voltage correction method according to claim 3, characterized in that: The verifying the knock voltage correction value according to the second reference voltage calibration value includes: Acquiring deviation data between the second reference voltage calibration value and the knock voltage correction value; When the deviation data is less than or equal to the preset fault tolerance data, it is determined that the knock voltage correction value verification has passed.

5. The engine knock voltage correction method according to claim 3, characterized in that: Also includes: When the knock voltage correction value verification fails, the preset knock intensities of the first preset operating condition and the second preset operating condition are reassigned, and the next correction of the knock voltage measured value is performed based on the reassigned operating conditions.

6. The engine knock voltage correction method according to claim 1, characterized in that: The step of acquiring a reference voltage sampling value of the knock voltage detection element in the non-knock stage based on the reference detection window, and calculating a knock voltage reference value according to the reference voltage sampling value, comprises: The knock voltage reference value is calculated according to an average value of at least two of the reference voltage sampling values.

7. The engine knock voltage correction method according to claim 1, characterized in that: The establishing of at least two reference detection windows and at least one occurrence detection window comprises: Acquire combustion analysis data of the engine, and determine a first window starting point and a first window length of the reference detection window, and a second window starting point and a second window length of the occurrence detection window according to the combustion analysis data; The first window starting point and the first window length at least satisfy that the reference detection window is located before the piston reaches the top dead center position; the second window starting point and the second window length at least satisfy that the occurrence detection window is located after the piston reaches the top dead center position.

8. The engine knock voltage correction method according to any one of claims 1 to 7, characterized in that: Before establishing at least two reference detection windows and at least one occurrence detection window, the method further includes: A synchronization detection is performed on the engine, and when the engine reaches synchronization, a combustion analysis is performed on the engine.

9. An engine knock voltage correction device, the engine being provided with a knock voltage detection element, characterized in that: The device is used to execute the engine knock voltage correction method according to any one of claims 1 to 8, comprising: A data window creation module, used to establish at least two reference detection windows and at least one occurrence detection window; wherein the reference detection window is in a non-knock stage; and the occurrence detection window is in a knock-prone stage; a first data acquisition module, configured to acquire a reference voltage sampling value of the knock voltage detection element in the non-knock stage based on the reference detection window, and calculate a knock voltage reference value according to the reference voltage sampling value; wherein the reference voltage sampling value corresponds to the reference detection window one by one; A second data acquisition module, configured to acquire a knock voltage actual measurement value of the knock voltage detection element in the knock high occurrence stage based on the occurrence detection window; a third data acquisition module, configured to establish a preset operating condition based on a preset knock intensity, control the engine to operate in the preset operating condition, and acquire a reference voltage calibration value of the knock voltage detection element in the non-knock stage; The correction module is used to calculate a correction factor according to the reference voltage sampling value and the reference voltage calibration value, and to correct the knock voltage measured value according to the correction factor.

10. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the engine knock voltage correction method according to any one of claims 1 to 8.