Engine rotation speed signal processing method, processing device, and storage medium

By setting an initial signal threshold during engine startup and automatically adjusting the signal threshold based on peak values, the problem of inaccurate recognition caused by speed signal fluctuations during engine startup is solved, ensuring the accuracy of signal recognition.

CN118686704BActive Publication Date: 2025-11-18WEICHAI POWER CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410748155.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2025-11-18
Estimated Expiration
2044-06-11

AI Technical Summary

Technical Problem

During engine start-up, the speed fluctuates wildly, leading to inaccurate speed signal recognition, missing or extra teeth errors, and failure to start the engine successfully. The uneven or poorly designed gear sprocket can cause interference signals from the magnetoelectric sensor, affecting the speed signal recognition.

Method used

The system acquires the initial speed signal when the electronic control unit is powered on, performs a first filtering process, sets a first signal threshold, and generates a square wave signal. It then determines a second signal threshold based on the peak value of the initial speed signal, performs a second filtering process, and automatically adjusts the threshold according to different speed conditions to achieve signal recognition.

Benefits of technology

It achieves accurate identification of engine speed signals, solves the technical problems existing in the prior art, improves the accuracy of signal identification, and solves the problem of inaccurate signal identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118686704B_ABST
    Figure CN118686704B_ABST
Patent Text Reader

Abstract

The application provides an engine speed signal processing method, a processing device and a storage medium. The method comprises the following steps: determining whether an electronic control unit is powered on; obtaining a speed signal of an engine to obtain an initial speed signal in the case that the electronic control unit is powered on; performing first filtering processing on the initial speed signal according to a first signal threshold to obtain a first target speed signal, and sending the first target speed signal to the electronic control unit; determining whether the electronic control unit receives the first target speed signal; determining a second signal threshold according to at least a peak value of the initial speed signal in the case that the electronic control unit receives the first target speed signal; and performing second filtering processing on the initial speed signal according to the second signal threshold to obtain a second target speed signal. The method solves the problem of inaccurate engine speed signal identification in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of engines, and more specifically, to a method for processing engine speed signals, an apparatus for processing engine speed signals, a computer-readable storage medium, and a computer program product. Background Technology

[0002] In existing technologies, there are two problems with engine speed signal recognition:

[0003] Problem 1: During engine start-up, the engine speed fluctuates wildly, and the crankshaft signal voltage amplitude fluctuates wildly. When the voltage is high, the threshold will be raised, which will cause the high threshold to fail to recognize the normal signal when the speed drops, resulting in missing tooth errors, loss of synchronization, and failure to start the engine.

[0004] Question 2: If the surface of the gear disk is not smooth and has protrusions other than normal teeth, or if the gear disk design is unreasonable, it will cause abnormal magnetic flux of the magnetoelectric sensor. At high speed, it will form an interference signal that looks like a normal signal. After being identified as a normal speed signal, multiple tooth errors will occur, resulting in loss of synchronization.

[0005] Therefore, there is an urgent need for a method to solve the problem of inaccurate engine speed signal recognition in existing technologies. Summary of the Invention

[0006] The main objective of this application is to provide a method for processing engine speed signals, a device for processing engine speed signals, a computer-readable storage medium, and a computer program product, so as to at least solve the problem of inaccurate engine speed signal identification in the prior art.

[0007] According to one aspect of this application, a method for processing an engine speed signal is provided, comprising: determining whether an electronic control unit (ECU) is powered on; if the ECU is powered on, acquiring an engine speed signal to obtain an initial speed signal; acquiring a first signal threshold, and performing a first filtering process on the initial speed signal according to the first signal threshold to obtain a first target speed signal, and sending the first target speed signal to the ECU, wherein the first signal threshold is a preset filtering threshold for the first filtering process, and the first target speed signal is a square wave signal; determining whether the ECU receives the first target speed signal; if the ECU receives the first target speed signal, determining a second signal threshold at least based on the peak value of the initial speed signal, wherein the second signal threshold is greater than or equal to the first signal threshold; performing a second filtering process on the initial speed signal according to the second signal threshold to obtain a second target speed signal, wherein the second target speed signal is a square wave signal.

[0008] Optionally, the initial rotational speed signal is subjected to a first filtering process based on the first signal threshold to obtain a first target rotational speed signal, including: determining whether the initial rotational speed signal corresponding to each time moment is greater than the first signal threshold; if the initial rotational speed signal is greater than the first signal threshold, outputting a first high-level signal corresponding to the time moment; if the initial rotational speed signal is less than or equal to the first signal threshold, outputting a first low-level signal corresponding to the time moment; the first high-level signal or the first low-level signal corresponding to each time moment forms the first target rotational speed signal.

[0009] Optionally, determining a second signal threshold based at least on the peak value of the initial speed signal includes: determining whether the engine is in a synchronized state; if the engine is not in the synchronized state, determining the signal threshold corresponding to the peak value of the initial speed signal as the second signal threshold based on the mapping relationship between the peak value of the speed signal and the signal threshold and the peak value of the initial speed signal, wherein the mapping relationship is used to characterize the positive correlation between the peak value of the speed signal and the signal threshold; if the engine is in the synchronized state, determining a third signal threshold based on the magnitude of the peak value of the initial speed signal, and determining the maximum value of the third signal threshold and the fourth signal threshold as the second signal threshold, wherein the fourth signal threshold is a pre-set filtering threshold for filtering processing when the engine is in the synchronized state, and the fourth signal threshold is greater than the first signal threshold.

[0010] Optionally, the engine includes at least a crankshaft and a camshaft. Determining whether the engine is in the synchronization state includes: obtaining the rotation angle of a first characteristic tooth of the crankshaft to obtain a first rotation angle, wherein the first characteristic tooth is one of a plurality of gears on the crankshaft whose shape is different from the other gears; obtaining the rotation angle of a second characteristic tooth of the camshaft to obtain a second rotation angle, wherein the second characteristic tooth is one of a plurality of gears on the camshaft whose shape is different from the other gears; determining whether the first rotation angle and the second rotation angle are the same; if the first rotation angle and the second rotation angle are the same, determining that the engine is in the synchronization state; if the rotation angle of the first characteristic tooth and the rotation angle of the second characteristic tooth are different, determining that the engine is not in the synchronization state.

[0011] Optionally, when the engine is not in the synchronized state, determining the signal threshold corresponding to the peak value of the initial speed signal as the second signal threshold based on the mapping relationship between the peak value of the speed signal and the signal threshold, and the peak value of the initial speed signal, includes: determining whether the peak value of the initial speed signal is less than a first peak threshold; if the peak value of the initial speed signal is less than the first peak threshold, determining the first signal threshold as the second signal threshold; if the peak value of the initial speed signal is greater than or equal to the first peak threshold, determining whether the peak value of the initial speed signal is less than a second peak threshold; if the peak value of the initial speed signal is less than the second peak threshold, determining a first predetermined value as the second signal threshold, wherein the second peak threshold is greater than the first peak threshold, and the first predetermined value is a pre-set value that is greater than the first signal threshold and less than the fourth signal threshold; when the peak value of the initial speed signal is less than the first peak threshold, determining the second signal threshold as the second signal threshold, wherein the second peak threshold is greater than the first peak threshold, and the first predetermined value is a pre-set value that is greater than the first signal threshold and less than the fourth signal threshold; when the peak value of the initial speed signal is less than the first peak threshold, determining the second signal threshold as the second signal threshold, and ... If the value is greater than or equal to the second peak threshold, determine whether the peak value of the initial speed signal is less than the third peak threshold. If the peak value of the initial speed signal is less than the third peak threshold, determine the fourth signal threshold as the second signal threshold, wherein the third peak threshold is greater than the second peak threshold. If the peak value of the initial speed signal is greater than or equal to the third peak threshold, determine whether the peak value of the initial speed signal is less than the fourth peak threshold. If the peak value of the initial speed signal is less than the fourth peak threshold, determine a second predetermined value as the second signal threshold, wherein the fourth peak threshold is greater than the third peak threshold, and the second predetermined value is a pre-set value greater than the fourth signal threshold. If the peak value of the initial speed signal is greater than or equal to the fourth peak threshold, determine a third predetermined value as the second signal threshold, wherein the third predetermined value is a pre-set value greater than the second predetermined value.

[0012] Optionally, when the engine is in the synchronized state, determining a third signal threshold based on the peak value of the initial speed signal includes: determining whether the peak value of the initial speed signal is less than a first peak threshold; if the peak value of the initial speed signal is less than the first peak threshold, determining the first signal threshold as the third signal threshold; if the peak value of the initial speed signal is greater than or equal to the first peak threshold, determining whether the peak value of the initial speed signal is less than a second peak threshold; if the peak value of the initial speed signal is less than the second peak threshold, determining a first predetermined value as the third signal threshold, wherein the second peak threshold is greater than the first peak threshold, and the first predetermined value is a pre-set value that is greater than the first signal threshold and less than the fourth signal threshold; if the peak value of the initial speed signal is greater than or equal to the second peak threshold, determining... If the peak value of the initial speed signal is less than a third peak threshold, then if the peak value of the initial speed signal is less than the third peak threshold, a fourth signal threshold is determined as the third signal threshold, wherein the third peak threshold is greater than the second peak threshold. If the peak value of the initial speed signal is greater than or equal to the third peak threshold, then if the peak value of the initial speed signal is less than the fourth peak threshold, then a second predetermined value is determined as the third signal threshold, wherein the fourth peak threshold is greater than the third peak threshold, and the second predetermined value is a pre-set value greater than the fourth signal threshold. If the peak value of the initial speed signal is greater than or equal to the fourth peak threshold, then a third predetermined value is determined as the third signal threshold, wherein the third predetermined value is a pre-set value greater than the second predetermined value.

[0013] Optionally, the initial rotational speed signal is subjected to a second filtering process based on the second signal threshold to obtain a second target rotational speed signal, including: determining whether the initial rotational speed signal at each time point is greater than the second signal threshold; if the initial rotational speed signal is greater than the second signal threshold, outputting a second high-level signal at the time point; if the initial rotational speed signal is less than or equal to the second signal threshold, outputting a second low-level signal at the time point; the second high-level signal or the second low-level signal at each time point forms the second target rotational speed signal.

[0014] According to another aspect of this application, an engine speed signal processing apparatus is provided, comprising: a determining unit, configured to determine whether an electronic control unit (ECU) is powered on, and when the ECU is powered on, acquiring an engine speed signal to obtain an initial speed signal; a first processing unit, configured to acquire a first signal threshold, and perform a first filtering process on the initial speed signal according to the first signal threshold to obtain a first target speed signal, and send the first target speed signal to the ECU, wherein the first signal threshold is a preset filtering threshold for the first filtering process, and the first target speed signal is a square wave signal; determining whether the ECU receives the first target speed signal, and when the ECU receives the first target speed signal, determining a second signal threshold at least based on the peak value of the initial speed signal, wherein the second signal threshold is greater than or equal to the first signal threshold; and performing a second filtering process on the initial speed signal according to the second signal threshold to obtain a second target speed signal, wherein the second target speed signal is a square wave signal.

[0015] According to another aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform any of the methods described.

[0016] According to another aspect of this application, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the steps of any of the methods described.

[0017] According to the technical solution of this application, in the method for processing engine speed signals, firstly, it is determined whether the electronic control unit is powered on. If the electronic control unit is powered on, the engine speed signal is acquired to obtain an initial speed signal. Then, according to a first signal threshold, the initial speed signal is subjected to a first filtering process to obtain a first target speed signal, and the first target speed signal is sent to the electronic control unit. Next, it is determined whether the electronic control unit receives the first target speed signal. If the electronic control unit receives the first target speed signal, a second signal threshold is determined based at least on the peak value of the initial speed signal. Finally, according to the second signal threshold, the initial speed signal is subjected to a second filtering process to obtain a second target speed signal. During the initial startup phase after engine power-on, the engine speed fluctuates wildly, and the crankshaft signal voltage amplitude fluctuates wildly, leading to inaccurate speed signal recognition. In this phase, setting a small initial signal threshold for filtering can effectively handle the low-speed signal at startup, improving the accuracy of speed signal recognition. When the electronic control unit receives the initial target speed signal, it may generate an interference signal resembling a normal signal. If this interference signal is mistaken for a normal speed signal, it will also cause inaccurate speed signal recognition. In this phase, the peak value of the speed signal is used to determine the corresponding signal threshold, automatically adjusting the threshold to avoid the problem of signal misidentification or non-identification caused by fluctuating signal voltage. Therefore, the above method employs different signal recognition schemes for different speed conditions, accurately identifying valid signals and eliminating interference from invalid signals, thus improving the accuracy of signal recognition and solving the technical problem of inaccurate engine speed signal recognition in existing technologies. Attached Figure Description

[0018] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:

[0019] Figure 1 A hardware structure block diagram of a mobile terminal for performing an engine speed signal processing method according to an embodiment of this application is shown.

[0020] Figure 2 A schematic flowchart of a method for processing engine speed signals according to an embodiment of this application is shown.

[0021] Figure 3 A flowchart illustrating the process of obtaining a first target rotational speed signal according to an embodiment of this application is shown.

[0022] Figure 4 A flowchart illustrating the determination of a second signal threshold according to an embodiment of this application is shown;

[0023] Figure 5 A hardware circuit diagram is shown for determining a second signal threshold based on the peak value of an initial rotational speed signal according to an embodiment of this application;

[0024] Figure 6 A structural block diagram of an engine speed signal processing device according to an embodiment of this application is shown.

[0025] The above figures include the following reference numerals:

[0026] 102. Processor; 104. Memory; 106. Transmission device; 108. Input / output device. Detailed Implementation

[0027] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0028] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0029] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0030] As described in the background section, the engine speed signal recognition in the prior art is inaccurate. To solve the above problem, embodiments of this application provide a method for processing engine speed signals, an apparatus for processing engine speed signals, a computer-readable storage medium, and a computer program product.

[0031] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0032] The methods and embodiments provided in this application can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for processing an engine speed signal according to an embodiment of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0033] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the engine speed signal processing method in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or send data via a network. Specific examples of the aforementioned networks may include wireless networks provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0034] This embodiment provides a method for processing engine speed signals that runs on a mobile terminal, computer terminal, or similar computing device. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0035] Figure 2 This is a flowchart of a method for processing engine speed signals according to an embodiment of this application. Figure 2 As shown, the method includes the following steps:

[0036] Step S201: Determine whether the electronic control unit is powered on. If the electronic control unit is powered on, acquire the engine speed signal to obtain the initial speed signal.

[0037] Specifically, the following methods can be used to determine if the Electronic Control Unit (ECU) is powered on: By connecting to the vehicle's OBD-II interface, tools can be used to read the ECU's status and parameters, including whether the ECU is powered on. Alternatively, the power supply system or the ECU's grounding status can be checked to determine if the ECU is powered on.

[0038] Step S202: Obtain a first signal threshold, and perform a first filtering process on the initial speed signal according to the first signal threshold to obtain a first target speed signal, and send the first target speed signal to the electronic control unit, wherein the first signal threshold is a preset filtering threshold for the first filtering process, and the first target speed signal is a square wave signal;

[0039] Specifically, the initial rotational speed signal mentioned above is generally a chaotic non-square wave signal. The first filtering process can be implemented using a limiting filter, Schmitt trigger, digital filter, low-pass filter, high-pass filter, band-pass filter, or active filter to convert the non-square wave signal into a square wave signal. The first signal threshold can be manually set through the Serial Peripheral Interface register.

[0040] Step S203: Determine whether the electronic control unit receives the first target speed signal. If the electronic control unit receives the first target speed signal, determine a second signal threshold based at least on the peak value of the initial speed signal, wherein the second signal threshold is greater than or equal to the first signal threshold.

[0041] Specifically, when the electronic control unit receives the first target speed signal, it indicates that the engine has entered high-speed mode, creating an interference signal that resembles a normal signal and is easily mistaken for a normal speed signal. Therefore, a different processing scheme is adopted than that used during the initial startup phase when the ECU is powered on. By determining the corresponding signal threshold based on the peak value of the speed signal, the threshold is automatically adjusted to avoid signal voltage fluctuations. Setting a fixed threshold would lead to signal misidentification or non-identification.

[0042] Step S204: Perform a second filtering process on the initial rotational speed signal according to the second signal threshold to obtain a second target rotational speed signal, wherein the second target rotational speed signal is a square wave signal.

[0043] Specifically, the second filtering process described above can be implemented using limiting filters, Schmitt triggers, digital filters, low-pass filters, high-pass filters, band-pass filters, active filters, etc., to convert the non-square wave signal into a square wave signal. The first and second target speed signals can be used to monitor engine performance or faults, ensuring it operates within a safe and efficient range. In ignition-type engines, the first and second target speed signals can also be used to determine the optimal ignition timing to improve fuel efficiency and reduce emissions. In fuel injection systems, the speed signal helps control the timing and amount of fuel injection to adapt to different engine operating conditions.

[0044] In this embodiment, the method for processing engine speed signals firstly determines whether the electronic control unit (ECU) is powered on. If the ECU is powered on, the engine speed signal is acquired to obtain an initial speed signal. Then, based on a first signal threshold, the initial speed signal is subjected to a first filtering process to obtain a first target speed signal, which is then sent to the ECU. Next, it is determined whether the ECU receives the first target speed signal. If the ECU receives the first target speed signal, a second signal threshold is determined based at least on the peak value of the initial speed signal. Finally, based on the second signal threshold, the initial speed signal is subjected to a second filtering process to obtain a second target speed signal. During the initial startup phase after engine power-on, the engine speed fluctuates wildly, and the crankshaft signal voltage amplitude fluctuates wildly, leading to inaccurate speed signal recognition. In this phase, setting a small initial signal threshold for filtering can effectively handle the low-speed signal at startup, improving the accuracy of speed signal recognition. When the electronic control unit receives the initial target speed signal, it may generate an interference signal resembling a normal signal. If this interference signal is mistaken for a normal speed signal, it will also cause inaccurate speed signal recognition. In this phase, the peak value of the speed signal is used to determine the corresponding signal threshold, automatically adjusting the threshold to avoid the problem of signal misidentification or non-identification caused by fluctuating signal voltage. Therefore, the above method employs different signal recognition schemes for different speed conditions, accurately identifying valid signals and eliminating interference from invalid signals, thus improving the accuracy of signal recognition and solving the technical problem of inaccurate engine speed signal recognition in existing technologies.

[0045] In the specific implementation process, such as Figure 3 As shown, step S202 can be implemented through the following steps: Step S2021, determining whether the initial rotational speed signal at each time point is greater than the first signal threshold; if the initial rotational speed signal is greater than the first signal threshold, outputting a first high-level signal at the time point; Step S2022, if the initial rotational speed signal is less than or equal to the first signal threshold, outputting a first low-level signal at the time point; Step S2023, the first high-level signal or the first low-level signal at each time point forms the first target rotational speed signal. This method can further utilize the first filtering process to quickly form the first target rotational speed signal.

[0046] Specifically, the first filtering process described above can limit the voltage value of the input signal within a specific range. This first filtering process can be implemented using a limiting filter, which has a relatively simple circuit design, requiring only a few passive components (such as resistors and capacitors) and / or one or more diodes. Furthermore, the first filtering process can quickly respond to changes in the input signal, limiting the signal to the set range with almost no delay; it can also remove noise exceeding a set threshold, reduce overshoot and undershoot in the signal, thereby improving signal stability.

[0047] To further determine the precise threshold for the aforementioned second signal, such as Figure 4 As shown, step S203 of this application can be implemented through the following steps: Step S2031, determine whether the engine is in a synchronized state. If the engine is not in the synchronized state, determine the signal threshold corresponding to the peak value of the initial speed signal as the second signal threshold based on the mapping relationship between the peak value of the speed signal and the signal threshold and the peak value of the initial speed signal. The mapping relationship is used to characterize the positive correlation between the peak value of the speed signal and the signal threshold. Step S2032, if the engine is in the synchronized state, determine the third signal threshold based on the peak value of the initial speed signal, and determine the maximum value of the third signal threshold and the fourth signal threshold as the second signal threshold. The fourth signal threshold is a preset filtering threshold for filtering when the engine is in the synchronized state, and the fourth signal threshold is greater than the first signal threshold.

[0048] Specifically, when the engine is in the aforementioned synchronized state, it indicates that the engine speed has reached a high speed. The maximum value between the third and fourth signal thresholds is taken as the actual execution threshold. Even small-amplitude interference signals at high speeds will be effectively filtered out. Therefore, the accuracy of determining the second target engine speed signal can be further improved.

[0049] The aforementioned engine includes at least a crankshaft and a camshaft. Step S2031 can be implemented in other ways, for example: Step S20311, obtaining the rotation angle of the first characteristic tooth of the crankshaft to obtain a first rotation angle, wherein the first characteristic tooth is one of the multiple gears of the crankshaft whose shape is different from the other gears; Step S20312, obtaining the rotation angle of the second characteristic tooth of the camshaft to obtain a second rotation angle, wherein the second characteristic tooth is one of the multiple gears of the camshaft whose shape is different from the other gears; Step S20313, determining whether the first rotation angle and the second rotation angle are the same; if the first rotation angle and the second rotation angle are the same, determining that the engine is in the aforementioned synchronized state; Step S20314, if the rotation angles of the first characteristic tooth and the second characteristic tooth are different, determining that the engine is not in the aforementioned synchronized state. This method can further quickly determine whether the engine is in the synchronized state.

[0050] Specifically, the first rotation angle and the second rotation angle can be monitored by setting a crankshaft position sensor at the crankshaft and a camshaft position sensor at the camshaft. The sensors then provide real-time data to the engine control unit.

[0051] In some embodiments, step S2031 can be further implemented by the following steps: Step S20315, determining whether the peak value of the initial speed signal is less than a first peak threshold; if the peak value of the initial speed signal is less than the first peak threshold, determining the first signal threshold as the second signal threshold; Step S20316, if the peak value of the initial speed signal is greater than or equal to the first peak threshold, determining whether the peak value of the initial speed signal is less than the second peak threshold; if the peak value of the initial speed signal is less than the second peak threshold, determining a first predetermined value as the second signal threshold, wherein the second peak threshold is greater than the first peak threshold, and the first predetermined value is a pre-set value that is greater than the first signal threshold and less than the fourth signal threshold; Step S20317, if the peak value of the initial speed signal is greater than or equal to the second peak threshold, determining the initial speed signal... Step S20318: If the peak value of the initial speed signal is less than or equal to the third peak threshold, determine if the peak value of the initial speed signal is less than the fourth peak threshold. If the peak value of the initial speed signal is less than the fourth peak threshold, determine a second predetermined value as the second signal threshold. The fourth peak threshold is greater than the third peak threshold, and the second predetermined value is a pre-set value greater than the fourth signal threshold. Step S20319: If the peak value of the initial speed signal is greater than or equal to the fourth peak threshold, determine a third predetermined value as the second signal threshold. The third predetermined value is a pre-set value greater than the second predetermined value. This method can further quickly determine the second signal threshold.

[0052] Specifically, the mapping relationship between the peak value of the initial rotational speed signal and the second signal threshold is shown in Table 1. The first peak threshold is VPeak1, the second peak threshold is VPeak2, the third peak threshold is VPeak3, and the fourth peak threshold is VPeak4. VPeak1 can be 0.53–3V, VPeak2 can be 4–5V, VPeak3 can be 6–7V, and VPeak4 can be 8–10V. The first signal threshold VTH1 can be 100–150mV, the first predetermined value VTH2 can be 200–250mV, the fourth signal threshold VTH3 can be 350–450mV, the second predetermined value VTH4 can be 1000–1100mV, and the third predetermined value VTH5 can be 1550–1650mV. This can be achieved through... Figure 5The circuit structure shown achieves the adaptive second signal threshold.

[0053] Table 1

[0054] Peak range of initial speed signal Second signal threshold Less than VPeak1 VTH1 VPeak1-VPeak2 VTH2 VPeak2-VPeak3 VTH3 VPeak3-VPeak4 VTH4 Greater than VPeak4 VTH5

[0055] Step S2032 above can be implemented through the following steps: Step S20321, determine whether the peak value of the initial speed signal is less than a first peak threshold; if the peak value of the initial speed signal is less than the first peak threshold, determine the first signal threshold as the third signal threshold; Step S20322, if the peak value of the initial speed signal is greater than or equal to the first peak threshold, determine whether the peak value of the initial speed signal is less than a second peak threshold; if the peak value of the initial speed signal is less than the second peak threshold, determine a first predetermined value as the third signal threshold, wherein the second peak threshold is greater than the first peak threshold, and the first predetermined value is a pre-set value that is greater than the first signal threshold and less than the fourth signal threshold; Step S20323, if the peak value of the initial speed signal is greater than or equal to the second peak threshold, determine the peak value of the initial speed signal... If the peak value of the initial speed signal is less than the third peak threshold, then if the peak value is less than the third peak threshold, then the fourth signal threshold is determined as the third signal threshold, wherein the third peak threshold is greater than the second peak threshold; Step S20324: If the peak value of the initial speed signal is greater than or equal to the third peak threshold, then if the peak value is less than the fourth peak threshold, then a second predetermined value is determined as the third signal threshold, wherein the fourth peak threshold is greater than the third peak threshold, and the second predetermined value is a pre-set value greater than the fourth signal threshold; Step S20325: If the peak value of the initial speed signal is greater than or equal to the fourth peak threshold, then a third predetermined value is determined as the third signal threshold, wherein the third predetermined value is a pre-set value greater than the second predetermined value. This method can further quickly determine the third signal threshold.

[0056] Specifically, the mapping relationship between the peak value of the initial rotational speed signal and the third signal threshold is shown in Table 2. The first peak threshold is VPeak1, the second peak threshold is VPeak2, the third peak threshold is VPeak3, and the fourth peak threshold is VPeak4. The first signal threshold VTH1 can be 100-150mV, the first predetermined value VTH2 can be 200-250mV, the fourth signal threshold VTH3 can be 350-450mV, the second predetermined value VTH4 can be 1000-1100mV, and the third predetermined value VTH5 can be 1550-1650mV.

[0057] Table 2

[0058] Peak range of initial speed signal Third signal threshold Less than VPeak1 VTH1 VPeak1-VPeak2 VTH2 VPeak2-VPeak3 VTH3 VPeak3-VPeak4 VTH4 Greater than VPeak4 VTH5

[0059] Step S204 above can be implemented through the following steps: Step S2041, determine whether the initial rotational speed signal corresponding to each time moment is greater than the second signal threshold; if the initial rotational speed signal is greater than the second signal threshold, output the second high-level signal corresponding to the time moment; Step S2042, if the initial rotational speed signal is less than or equal to the second signal threshold, output the second low-level signal corresponding to the time moment; Step S2043, the second high-level signal or the second low-level signal corresponding to each time moment forms the second target rotational speed signal. This method can further utilize the second filtering process described above to quickly form the second target rotational speed signal.

[0060] Specifically, the second filtering process described above can limit the voltage value of the input signal within a specific range. This second filtering process can be implemented using a limiting filter, which has a relatively simple circuit design, requiring only a few passive components (such as resistors and capacitors) and / or one or more diodes. Furthermore, the second filtering process can respond quickly to changes in the input signal, limiting the signal to the set range with almost no delay; it can also remove noise exceeding a set threshold, reduce overshoot and undershoot in the signal, thereby improving signal stability.

[0061] To enable those skilled in the art to better understand the technical solution of this application, the implementation process of the engine speed signal processing method of this application will be described in detail below with reference to specific embodiments.

[0062] This embodiment relates to a specific method for processing engine speed signals, including the following steps:

[0063] Step S1: After the ECU is powered on, configure the threshold mode to the minimum threshold VTH1 so that it can process the low speed signal when the engine is just started in time.

[0064] Step S2: Once the rotational speed is detected, the threshold mode is configured to fully adaptive threshold mode. The threshold is automatically adjusted by identifying the peak of the rotational speed signal to avoid the signal voltage fluctuating. Setting a fixed threshold will lead to misidentification or failure to identify the signal.

[0065] Step S3: After the engine is synchronized and the speed reaches a high speed, the threshold mode is configured to the restricted adaptive threshold mode. The minimum identification threshold is manually set to VTH3. At the same time, the threshold is automatically adjusted by identifying the peak of the speed signal. The larger threshold between the two is taken as the actual threshold. In this way, small-amplitude interference signals at high speeds will be effectively filtered out.

[0066] This application also provides an engine speed signal processing device. It should be noted that the engine speed signal processing device of this application can be used to execute the engine speed signal processing method provided in this application. This device is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0067] The following describes the engine speed signal processing device provided in the embodiments of this application.

[0068] Figure 6 This is a schematic diagram of an engine speed signal processing device according to an embodiment of this application. Figure 6 As shown, the device includes:

[0069] The acquisition unit 10 is used to determine whether the electronic control unit is powered on. When the electronic control unit is powered on, it acquires the engine speed signal to obtain the initial speed signal.

[0070] Specifically, the following methods can be used to determine if the Electronic Control Unit (ECU) is powered on: By connecting to the vehicle's OBD-II interface, tools can be used to read the ECU's status and parameters, including whether the ECU is powered on. Alternatively, the power supply system or the ECU's grounding status can be checked to determine if the ECU is powered on.

[0071] The first processing unit 20 is configured to acquire a first signal threshold, and perform a first filtering process on the initial speed signal according to the first signal threshold to obtain a first target speed signal, and send the first target speed signal to the electronic control unit, wherein the first signal threshold is a preset filtering threshold for the first filtering process, and the first target speed signal is a square wave signal;

[0072] Specifically, the initial rotational speed signal mentioned above is generally a chaotic non-square wave signal. The first filtering process can be implemented using a limiting filter, Schmitt trigger, digital filter, low-pass filter, high-pass filter, band-pass filter, or active filter to convert the non-square wave signal into a square wave signal. The first signal threshold can be manually set through the Serial Peripheral Interface register.

[0073] The determining unit 30 is used to determine whether the electronic control unit receives the first target speed signal. If the electronic control unit receives the first target speed signal, it determines a second signal threshold based at least on the peak value of the initial speed signal, wherein the second signal threshold is greater than or equal to the first signal threshold.

[0074] Specifically, when the electronic control unit receives the first target speed signal, it indicates that the engine has entered high-speed mode, creating an interference signal that resembles a normal signal and is easily mistaken for a normal speed signal. Therefore, a different processing scheme is adopted than that used during the initial startup phase when the ECU is powered on. By determining the corresponding signal threshold based on the peak value of the speed signal, the threshold is automatically adjusted to avoid signal voltage fluctuations. Setting a fixed threshold would lead to signal misidentification or non-identification.

[0075] The second processing unit 40 is used to perform a second filtering process on the initial rotation speed signal according to the second signal threshold to obtain a second target rotation speed signal, wherein the second target rotation speed signal is a square wave signal.

[0076] Specifically, the second filtering process described above can be implemented using limiting filters, Schmitt triggers, digital filters, low-pass filters, high-pass filters, band-pass filters, active filters, etc., to convert the non-square wave signal into a square wave signal. The first and second target speed signals can be used to monitor engine performance or faults, ensuring it operates within a safe and efficient range. In ignition-type engines, the first and second target speed signals can also be used to determine the optimal ignition timing to improve fuel efficiency and reduce emissions. In fuel injection systems, the speed signal helps control the timing and amount of fuel injection to adapt to different engine operating conditions.

[0077] In this embodiment, in the engine speed signal processing device, the acquisition unit determines whether the electronic control unit (ECU) is powered on. If the ECU is powered on, it acquires the engine speed signal to obtain an initial speed signal. The first processing unit performs a first filtering process on the initial speed signal according to a first signal threshold to obtain a first target speed signal and sends the first target speed signal to the ECU. The second processing unit determines whether the ECU receives the first target speed signal. If the ECU receives the first target speed signal, it determines a second signal threshold based at least on the peak value of the initial speed signal. The determination unit performs a second filtering process on the initial speed signal according to the second signal threshold to obtain a second target speed signal. During the initial startup phase after engine power-on, the engine speed fluctuates wildly, and the crankshaft signal voltage amplitude fluctuates wildly, leading to inaccurate speed signal recognition. In this phase, setting a small initial signal threshold for filtering can effectively process the low-speed signal at startup, improving the accuracy of speed signal recognition. When the electronic control unit receives the first target speed signal, it generates an interference signal resembling a normal signal. If this interference signal is mistaken for a normal speed signal, it will also cause inaccurate speed signal recognition. In this phase, the peak value of the speed signal is used to determine the corresponding signal threshold, automatically adjusting the threshold to avoid the problem of signal misidentification or non-identification caused by fluctuating signal voltage. Therefore, the above device employs different signal recognition schemes based on different engine speed conditions, accurately identifying valid signals and eliminating interference from invalid signals, thus improving signal recognition accuracy and solving the technical problem of inaccurate engine speed signal recognition in existing technologies.

[0078] In its specific implementation, the first processing unit includes a first output module, a second output module, and a first forming module. The first output module determines whether the initial rotational speed signal at each time point is greater than a first signal threshold. If the initial rotational speed signal is greater than the first signal threshold, it outputs a first high-level signal at that time point. The second output module outputs a first low-level signal at that time point if the initial rotational speed signal is less than or equal to the first signal threshold. The first forming module forms the first target rotational speed signal from the first high-level signal or the first low-level signal at each time point. This device can further rapidly form the first target rotational speed signal through the first filtering process described above.

[0079] Specifically, the first filtering process described above can limit the voltage value of the input signal within a specific range. This first filtering process can be implemented using a limiting filter, which has a relatively simple circuit design, requiring only a few passive components (such as resistors and capacitors) and / or one or more diodes. Furthermore, the first filtering process can quickly respond to changes in the input signal, limiting the signal to the set range with almost no delay; it can also remove noise exceeding a set threshold, reduce overshoot and undershoot in the signal, thereby improving signal stability.

[0080] To further determine the precise second signal threshold, the determining unit includes a first determining module and a second determining module. The first determining module is used to determine whether the engine is in a synchronized state. If the engine is not in a synchronized state, it determines the signal threshold corresponding to the peak value of the initial speed signal as the second signal threshold based on the mapping relationship between the peak value of the speed signal and the signal threshold, and the peak value of the initial speed signal. The mapping relationship is used to characterize the positive correlation between the peak value of the speed signal and the signal threshold. The second determining module is used to determine a third signal threshold based on the peak value of the initial speed signal when the engine is in a synchronized state, and determines the maximum value of the third signal threshold and the fourth signal threshold as the second signal threshold. The fourth signal threshold is a pre-set filtering threshold for filtering when the engine is in a synchronized state, and the fourth signal threshold is greater than the first signal threshold.

[0081] Specifically, when the engine is in the aforementioned synchronized state, it indicates that the engine speed has reached a high speed. The maximum value between the third and fourth signal thresholds is taken as the actual execution threshold. Even small-amplitude interference signals at high speeds will be effectively filtered out. Therefore, the accuracy of determining the second target engine speed signal can be further improved.

[0082] The aforementioned engine includes at least a crankshaft and a camshaft. The first determining module includes a first acquiring submodule, a second acquiring submodule, a first determining submodule, and a second determining submodule. The first acquiring submodule acquires the rotation angle of a first characteristic tooth of the crankshaft, obtaining a first rotation angle. The first characteristic tooth is one of a plurality of gears on the crankshaft, and its shape is different from the other gears. The second acquiring submodule acquires the rotation angle of a second characteristic tooth of the camshaft, obtaining a second rotation angle. The second characteristic tooth is one of a plurality of gears on the camshaft, and its shape is different from the other gears. The first determining submodule determines whether the first rotation angle and the second rotation angle are the same. If the first rotation angle and the second rotation angle are the same, the engine is determined to be in the synchronized state. The second determining submodule determines that the engine is not in the synchronized state if the rotation angles of the first characteristic tooth and the second characteristic tooth are different. This device can further quickly determine whether the engine is in a synchronized state.

[0083] Specifically, the first rotation angle and the second rotation angle can be monitored by setting a crankshaft position sensor at the crankshaft and a camshaft position sensor at the camshaft. The sensors then provide real-time data to the engine control unit.

[0084] In some embodiments, the first determining module includes a third determining submodule, a fourth determining submodule, a fifth determining submodule, a sixth determining submodule, and a seventh determining submodule. The third determining submodule is used to determine whether the peak value of the initial speed signal is less than a first peak value threshold. If the peak value of the initial speed signal is less than the first peak value threshold, the third determining submodule determines the first signal threshold as the second signal threshold. The fourth determining submodule is used to determine whether the peak value of the initial speed signal is less than the second peak value threshold if the peak value of the initial speed signal is greater than or equal to the first peak value threshold. If the peak value of the initial speed signal is less than the second peak value threshold, the fourth determining submodule determines whether the peak value of the initial speed signal is less than the second peak value threshold. If the peak value of the initial speed signal is less than the second peak value threshold, the fourth determining submodule determines a first predetermined value as the second signal threshold threshold, wherein the second peak value threshold is greater than the first peak value threshold, and the first predetermined value is a pre-set value greater than the first signal threshold threshold and less than the fourth signal threshold threshold. The fifth determining submodule is used to determine whether the peak value of the initial speed signal is greater than or equal to the second peak value threshold threshold. In the case of a threshold value, the device determines whether the peak value of the initial speed signal is less than a third peak value threshold. If the peak value of the initial speed signal is less than the third peak value threshold, the device determines the fourth signal threshold as the second signal threshold, wherein the third peak value threshold is greater than the second peak value threshold. The sixth determining submodule is used to determine whether the peak value of the initial speed signal is less than a fourth peak value threshold if the peak value of the initial speed signal is greater than or equal to the third peak value threshold. If the peak value of the initial speed signal is less than the fourth peak value threshold, the device determines a second predetermined value as the second signal threshold, wherein the fourth peak value threshold is greater than the third peak value threshold, and the second predetermined value is a pre-set value greater than the fourth signal threshold threshold. The seventh determining submodule is used to determine a third predetermined value as the second signal threshold if the peak value of the initial speed signal is greater than or equal to the fourth peak value threshold, wherein the third predetermined value is a pre-set value greater than the second predetermined value threshold. This device can further quickly determine the second signal threshold.

[0085] Specifically, the mapping relationship between the peak value of the initial rotational speed signal and the second signal threshold is shown in Table 1. The first peak threshold is VPeak1, the second peak threshold is VPeak2, the third peak threshold is VPeak3, and the fourth peak threshold is VPeak4. VPeak1 can be 0.53–3V, VPeak2 can be 4–5V, VPeak3 can be 6–7V, and VPeak4 can be 8–10V. The first signal threshold VTH1 can be 100–150mV, the first predetermined value VTH2 can be 200–250mV, the fourth signal threshold VTH3 can be 350–450mV, the second predetermined value VTH4 can be 1000–1100mV, and the third predetermined value VTH5 can be 1550–1650mV. This can be achieved through... Figure 5 The circuit structure shown achieves the adaptive second signal threshold.

[0086] The aforementioned second determining module includes an eighth determining submodule, a ninth determining submodule, a tenth determining submodule, an eleventh determining submodule, and a twelfth determining submodule. The eighth determining submodule is used to determine whether the peak value of the initial speed signal is less than a first peak threshold. If the peak value of the initial speed signal is less than the first peak threshold, the eighth determining submodule determines whether the peak value of the initial speed signal is less than a first peak threshold. If the peak value of the initial speed signal is less than the first peak threshold, the ninth determining submodule is used to determine whether the peak value of the initial speed signal is less than a second peak threshold. If the peak value of the initial speed signal is less than the second peak threshold, the ninth determining submodule determines ... In the following scenario, the device determines whether the peak value of the initial speed signal is less than a third peak threshold. If the peak value of the initial speed signal is less than the third peak threshold, the device determines the fourth signal threshold as the third signal threshold, wherein the third peak threshold is greater than the second peak threshold. The eleventh determining submodule is configured to determine whether the peak value of the initial speed signal is less than the fourth peak threshold if the peak value of the initial speed signal is greater than or equal to the third peak threshold. If the peak value of the initial speed signal is less than the fourth peak threshold, the device determines a second predetermined value as the third signal threshold, wherein the fourth peak threshold is greater than the third peak threshold, and the second predetermined value is a pre-set value greater than the fourth signal threshold. The twelfth determining submodule is configured to determine a third predetermined value as the third signal threshold if the peak value of the initial speed signal is greater than or equal to the fourth peak threshold, wherein the third predetermined value is a pre-set value greater than the second predetermined value. This device can further quickly determine the third signal threshold.

[0087] Specifically, the mapping relationship between the peak value of the initial rotational speed signal and the third signal threshold is shown in Table 2. The first peak threshold is VPeak1, the second peak threshold is VPeak2, the third peak threshold is VPeak3, and the fourth peak threshold is VPeak4. The first signal threshold VTH1 can be 100-150mV, the first predetermined value VTH2 can be 200-250mV, the fourth signal threshold VTH3 can be 350-450mV, the second predetermined value VTH4 can be 1000-1100mV, and the third predetermined value VTH5 can be 1550-1650mV.

[0088] The second processing unit includes a third output module, a fourth output module, and a second forming module. The third output module determines whether the initial rotational speed signal at each time point is greater than the second signal threshold. If the initial rotational speed signal is greater than the second signal threshold, it outputs a second high-level signal at that time point. The fourth output module outputs a second low-level signal at that time point if the initial rotational speed signal is less than or equal to the second signal threshold. The second forming module forms the second target rotational speed signal from the second high-level signal or the second low-level signal at each time point. This device can further rapidly form the second target rotational speed signal through the second filtering process described above.

[0089] Specifically, the second filtering process described above can limit the voltage value of the input signal within a specific range. This second filtering process can be implemented using a limiting filter, which has a relatively simple circuit design, requiring only a few passive components (such as resistors and capacitors) and / or one or more diodes. Furthermore, the second filtering process can respond quickly to changes in the input signal, limiting the signal to the set range with almost no delay; it can also remove noise exceeding a set threshold, reduce overshoot and undershoot in the signal, thereby improving signal stability.

[0090] The aforementioned engine speed signal processing device includes a processor and a memory. The acquisition unit, first processing unit, determination unit, and second processing unit are all stored as program units in the memory. The processor executes these program units stored in the memory to achieve the corresponding functions. All of the above modules are located in the same processor; alternatively, the modules may be located in different processors in any combination.

[0091] The processor contains a kernel, which retrieves the corresponding program unit from memory. One or more kernels can be configured, and the engine speed signal is processed by adjusting the kernel parameters.

[0092] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0093] This invention provides a computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device containing the computer-readable storage medium to perform the processing method for the engine speed signal.

[0094] Specifically, the processing methods for engine speed signals include:

[0095] Step S201: Determine whether the electronic control unit is powered on. If the electronic control unit is powered on, acquire the engine speed signal to obtain the initial speed signal.

[0096] Specifically, the following methods can be used to determine if the Electronic Control Unit (ECU) is powered on: By connecting to the vehicle's OBD-II interface, tools can be used to read the ECU's status and parameters, including whether the ECU is powered on. Alternatively, the power supply system or the ECU's grounding status can be checked to determine if the ECU is powered on.

[0097] Step S202: Obtain a first signal threshold, and perform a first filtering process on the initial speed signal according to the first signal threshold to obtain a first target speed signal, and send the first target speed signal to the electronic control unit, wherein the first signal threshold is a preset filtering threshold for the first filtering process, and the first target speed signal is a square wave signal;

[0098] Specifically, the initial rotational speed signal mentioned above is generally a chaotic non-square wave signal. The first filtering process can be implemented using a limiting filter, Schmitt trigger, digital filter, low-pass filter, high-pass filter, band-pass filter, or active filter to convert the non-square wave signal into a square wave signal. The first signal threshold can be manually set through the Serial Peripheral Interface register.

[0099] Step S203: Determine whether the electronic control unit receives the first target speed signal. If the electronic control unit receives the first target speed signal, determine a second signal threshold based at least on the peak value of the initial speed signal, wherein the second signal threshold is greater than or equal to the first signal threshold.

[0100] Specifically, when the electronic control unit receives the first target speed signal, it indicates that the engine has entered high-speed mode, creating an interference signal that resembles a normal signal and is easily mistaken for a normal speed signal. Therefore, a different processing scheme is adopted than that used during the initial startup phase when the ECU is powered on. By determining the corresponding signal threshold based on the peak value of the speed signal, the threshold is automatically adjusted to avoid signal voltage fluctuations. Setting a fixed threshold would lead to signal misidentification or non-identification.

[0101] Step S204: Perform a second filtering process on the initial rotational speed signal according to the second signal threshold to obtain a second target rotational speed signal, wherein the second target rotational speed signal is a square wave signal.

[0102] Specifically, the second filtering process described above can be implemented using limiting filters, Schmitt triggers, digital filters, low-pass filters, high-pass filters, band-pass filters, active filters, etc., to convert the non-square wave signal into a square wave signal. The first and second target speed signals can be used to monitor engine performance or faults, ensuring it operates within a safe and efficient range. In ignition-type engines, the first and second target speed signals can also be used to determine the optimal ignition timing to improve fuel efficiency and reduce emissions. In fuel injection systems, the speed signal helps control the timing and amount of fuel injection to adapt to different engine operating conditions.

[0103] This invention provides a processor for running a program, wherein the program executes the processing method for the engine speed signal.

[0104] This invention provides a device including a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs at least the following steps:

[0105] Step S201: Determine whether the electronic control unit is powered on. If the electronic control unit is powered on, acquire the engine speed signal to obtain the initial speed signal.

[0106] Step S202: Obtain a first signal threshold, and perform a first filtering process on the initial speed signal according to the first signal threshold to obtain a first target speed signal, and send the first target speed signal to the electronic control unit, wherein the first signal threshold is a preset filtering threshold for the first filtering process, and the first target speed signal is a square wave signal;

[0107] Step S203: Determine whether the electronic control unit receives the first target speed signal. If the electronic control unit receives the first target speed signal, determine a second signal threshold based at least on the peak value of the initial speed signal, wherein the second signal threshold is greater than or equal to the first signal threshold.

[0108] Step S204: Perform a second filtering process on the initial rotational speed signal according to the second signal threshold to obtain a second target rotational speed signal, wherein the second target rotational speed signal is a square wave signal.

[0109] The devices mentioned in this article can be servers, PCs, tablets, mobile phones, etc.

[0110] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having at least the following method steps:

[0111] Step S201: Determine whether the electronic control unit is powered on. If the electronic control unit is powered on, acquire the engine speed signal to obtain the initial speed signal.

[0112] Step S202: Obtain a first signal threshold, and perform a first filtering process on the initial speed signal according to the first signal threshold to obtain a first target speed signal, and send the first target speed signal to the electronic control unit, wherein the first signal threshold is a preset filtering threshold for the first filtering process, and the first target speed signal is a square wave signal;

[0113] Step S203: Determine whether the electronic control unit receives the first target speed signal. If the electronic control unit receives the first target speed signal, determine a second signal threshold based at least on the peak value of the initial speed signal, wherein the second signal threshold is greater than or equal to the first signal threshold.

[0114] Step S204: Perform a second filtering process on the initial rotational speed signal according to the second signal threshold to obtain a second target rotational speed signal, wherein the second target rotational speed signal is a square wave signal.

[0115] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.

[0116] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0117] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0118] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0119] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0120] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0121] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0122] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are 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 or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0123] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0124] As can be seen from the above description, the embodiments of this application achieve the following technical effects:

[0125] 1) The engine speed signal processing method of this application firstly determines whether the electronic control unit is powered on. If the electronic control unit is powered on, the engine speed signal is acquired to obtain an initial speed signal. Then, the initial speed signal is subjected to a first filtering process according to a first signal threshold to obtain a first target speed signal, and the first target speed signal is sent to the electronic control unit. Next, it is determined whether the electronic control unit receives the first target speed signal. If the electronic control unit receives the first target speed signal, a second signal threshold is determined at least according to the peak value of the initial speed signal. Finally, the initial speed signal is subjected to a second filtering process according to the second signal threshold to obtain a second target speed signal. During the initial startup phase after engine power-on, the engine speed fluctuates wildly, and the crankshaft signal voltage amplitude fluctuates wildly, leading to inaccurate speed signal recognition. In this phase, setting a small initial signal threshold for filtering can effectively handle the low-speed signal at startup, improving the accuracy of speed signal recognition. When the electronic control unit receives the initial target speed signal, it may generate an interference signal resembling a normal signal. If this interference signal is mistaken for a normal speed signal, it will also cause inaccurate speed signal recognition. In this phase, the peak value of the speed signal is used to determine the corresponding signal threshold, automatically adjusting the threshold to avoid the problem of signal misidentification or non-identification caused by fluctuating signal voltage. Therefore, the above method employs different signal recognition schemes for different speed conditions, accurately identifying valid signals and eliminating interference from invalid signals, thus improving the accuracy of signal recognition and solving the technical problem of inaccurate engine speed signal recognition in existing technologies.

[0126] 2) The engine speed signal processing device of this application includes an acquisition unit that determines whether the electronic control unit is powered on, and if the electronic control unit is powered on, acquires the engine speed signal to obtain an initial speed signal; a first processing unit performs a first filtering process on the initial speed signal according to a first signal threshold to obtain a first target speed signal, and sends the first target speed signal to the electronic control unit; a second processing unit determines whether the electronic control unit receives the first target speed signal, and if the electronic control unit receives the first target speed signal, determines a second signal threshold based at least on the peak value of the initial speed signal; and a determination unit performs a second filtering process on the initial speed signal according to the second signal threshold to obtain a second target speed signal. During the initial startup phase after engine power-on, the engine speed fluctuates wildly, and the crankshaft signal voltage amplitude fluctuates wildly, leading to inaccurate speed signal recognition. In this phase, setting a small initial signal threshold for filtering can effectively process the low-speed signal at startup, improving the accuracy of speed signal recognition. When the electronic control unit receives the first target speed signal, it generates an interference signal resembling a normal signal. If this interference signal is mistaken for a normal speed signal, it will also cause inaccurate speed signal recognition. In this phase, the peak value of the speed signal is used to determine the corresponding signal threshold, automatically adjusting the threshold to avoid the problem of signal misidentification or non-identification caused by fluctuating signal voltage. Therefore, the above device employs different signal recognition schemes based on different engine speed conditions, accurately identifying valid signals and eliminating interference from invalid signals, thus improving signal recognition accuracy and solving the technical problem of inaccurate engine speed signal recognition in existing technologies.

[0127] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for processing engine speed signals, characterized in that, include: Determine whether the electronic control unit is powered on. If the electronic control unit is powered on, acquire the engine speed signal to obtain the initial speed signal. A first signal threshold is obtained, and the initial speed signal is subjected to a first filtering process based on the first signal threshold to obtain a first target speed signal, and the first target speed signal is sent to the electronic control unit, wherein the first signal threshold is a preset filtering threshold for the first filtering process, and the first target speed signal is a square wave signal; Determine whether the electronic control unit receives the first target speed signal. If the electronic control unit receives the first target speed signal, determine a second signal threshold based at least on the peak value of the initial speed signal, wherein the second signal threshold is greater than or equal to the first signal threshold. The initial rotational speed signal is subjected to a second filtering process based on the second signal threshold to obtain a second target rotational speed signal, wherein the second target rotational speed signal is a square wave signal. Determining a second signal threshold based at least on the peak value of the initial rotational speed signal includes: Determine whether the engine is in a synchronized state. If the engine is not in the synchronized state, determine the signal threshold corresponding to the peak value of the initial speed signal as the second signal threshold based on the mapping relationship between the peak value of the speed signal and the signal threshold and the peak value of the initial speed signal. The mapping relationship is used to characterize the positive correlation between the peak value of the speed signal and the signal threshold. When the engine is in the synchronized state, a third signal threshold is determined based on the peak value of the initial speed signal, and the maximum value of the third signal threshold and the fourth signal threshold is determined as the second signal threshold. The fourth signal threshold is a pre-set filtering threshold for filtering processing when the engine is in the synchronized state, and the fourth signal threshold is greater than the first signal threshold.

2. The method according to claim 1, characterized in that, Based on the first signal threshold, the initial rotational speed signal is subjected to a first filtering process to obtain a first target rotational speed signal, including: Determine whether the initial rotational speed signal at each time point is greater than the first signal threshold. If the initial rotational speed signal is greater than the first signal threshold, output the first high-level signal at that time point. If the initial rotational speed signal is less than or equal to the first signal threshold, output the first low-level signal corresponding to the time. The first high-level signal or the first low-level signal corresponding to each time moment forms the first target rotation speed signal.

3. The method according to claim 1, characterized in that, The engine includes at least a crankshaft and a camshaft. Determining whether the engine is in the synchronized state includes: The rotation angle of the first characteristic tooth of the crankshaft is obtained to obtain the first rotation angle. The first characteristic tooth is one of the multiple gears of the crankshaft, and the shape of the gear is different from that of the other gears. Obtain the rotation angle of the second characteristic tooth of the camshaft to obtain the second rotation angle. The second characteristic tooth is one of the multiple gears of the camshaft, and its shape is different from that of the other gears. Determine whether the first rotation angle and the second rotation angle are the same; if the first rotation angle and the second rotation angle are the same, determine that the engine is in the synchronization state. If the rotation angles of the first characteristic tooth and the second characteristic tooth are not the same, it is determined that the engine is not in the synchronized state.

4. The method according to claim 1, characterized in that, When the engine is not in the synchronized state, based on the mapping relationship between the peak value of the speed signal and the signal threshold, and the peak value of the initial speed signal, the signal threshold corresponding to the peak value of the initial speed signal is determined as the second signal threshold, including: Determine whether the peak value of the initial speed signal is less than a first peak value threshold. If the peak value of the initial speed signal is less than the first peak value threshold, determine the first signal threshold as the second signal threshold. If the peak value of the initial speed signal is greater than or equal to the first peak value threshold, it is determined whether the peak value of the initial speed signal is less than the second peak value threshold. If the peak value of the initial speed signal is less than the second peak value threshold, a first predetermined value is determined to be the second signal threshold, wherein the second peak value threshold is greater than the first peak value threshold, and the first predetermined value is a value that is pre-set to be greater than the first signal threshold threshold and less than the fourth signal threshold threshold. If the peak value of the initial speed signal is greater than or equal to the second peak value threshold, it is determined whether the peak value of the initial speed signal is less than the third peak value threshold. If the peak value of the initial speed signal is less than the third peak value threshold, the fourth signal threshold is determined to be the second signal threshold, wherein the third peak value threshold is greater than the second peak value threshold. If the peak value of the initial speed signal is greater than or equal to the third peak threshold, it is determined whether the peak value of the initial speed signal is less than the fourth peak threshold. If the peak value of the initial speed signal is less than the fourth peak threshold, a second predetermined value is determined to be the second signal threshold, wherein the fourth peak threshold is greater than the third peak threshold, and the second predetermined value is a pre-set value greater than the fourth signal threshold. If the peak value of the initial rotational speed signal is greater than or equal to the fourth peak value threshold, a third predetermined value is determined to be the second signal threshold, wherein the third predetermined value is a pre-set value greater than the second predetermined value.

5. The method according to claim 1, characterized in that, When the engine is in the synchronized state, a third signal threshold is determined based on the peak value of the initial speed signal, including: Determine whether the peak value of the initial speed signal is less than a first peak value threshold. If the peak value of the initial speed signal is less than the first peak value threshold, determine the first signal threshold as the third signal threshold. If the peak value of the initial speed signal is greater than or equal to the first peak value threshold, it is determined whether the peak value of the initial speed signal is less than the second peak value threshold. If the peak value of the initial speed signal is less than the second peak value threshold, a first predetermined value is determined to be the third signal threshold, wherein the second peak value threshold is greater than the first peak value threshold, and the first predetermined value is a value that is preset to be greater than the first signal threshold threshold and less than the fourth signal threshold threshold. If the peak value of the initial speed signal is greater than or equal to the second peak value threshold, it is determined whether the peak value of the initial speed signal is less than the third peak value threshold. If the peak value of the initial speed signal is less than the third peak value threshold, the fourth signal threshold is determined to be the third signal threshold, wherein the third peak value threshold is greater than the second peak value threshold. If the peak value of the initial speed signal is greater than or equal to the third peak threshold, it is determined whether the peak value of the initial speed signal is less than the fourth peak threshold. If the peak value of the initial speed signal is less than the fourth peak threshold, a second predetermined value is determined to be the third signal threshold, wherein the fourth peak threshold is greater than the third peak threshold, and the second predetermined value is a pre-set value greater than the fourth signal threshold. If the peak value of the initial rotational speed signal is greater than or equal to the fourth peak value threshold, a third predetermined value is determined to be the third signal threshold, wherein the third predetermined value is a pre-set value that is greater than the second predetermined value.

6. The method according to claim 1, characterized in that, The initial rotational speed signal is subjected to a second filtering process based on the second signal threshold to obtain a second target rotational speed signal, including: Determine whether the initial rotational speed signal at each time point is greater than the second signal threshold. If the initial rotational speed signal is greater than the second signal threshold, output the second high-level signal at that time point. If the initial rotational speed signal is less than or equal to the second signal threshold, output the second low-level signal corresponding to the time. The second high-level signal or the second low-level signal corresponding to each time moment forms the second target rotation speed signal.

7. A processing device for engine speed signals, characterized in that, include: The acquisition unit is used to determine whether the electronic control unit is powered on, and when the electronic control unit is powered on, acquires the engine speed signal to obtain the initial speed signal; A first processing unit is configured to acquire a first signal threshold, and perform a first filtering process on the initial speed signal according to the first signal threshold to obtain a first target speed signal, and send the first target speed signal to the electronic control unit, wherein the first signal threshold is a preset filtering threshold for the first filtering process, and the first target speed signal is a square wave signal; A determining unit is configured to determine whether the electronic control unit receives the first target speed signal, and if the electronic control unit receives the first target speed signal, to determine a second signal threshold based at least on the peak value of the initial speed signal, wherein the second signal threshold is greater than or equal to the first signal threshold; The second processing unit is configured to perform a second filtering process on the initial rotational speed signal according to the second signal threshold to obtain a second target rotational speed signal, wherein the second target rotational speed signal is a square wave signal. The determining unit includes a first determining module and a second determining module. The first determining module is used to determine whether the engine is in a synchronized state. If the engine is not in the synchronized state, it determines the signal threshold corresponding to the peak value of the initial speed signal as the second signal threshold based on the mapping relationship between the peak value of the speed signal and the signal threshold, and the peak value of the initial speed signal. The mapping relationship is used to characterize the positive correlation between the peak value of the speed signal and the signal threshold. The second determining module is used to determine a third signal threshold based on the peak value of the initial speed signal when the engine is in the synchronized state, and determines the maximum value of the third signal threshold and the fourth signal threshold as the second signal threshold. The fourth signal threshold is a preset filtering threshold for filtering when the engine is in the synchronized state, and the fourth signal threshold is greater than the first signal threshold.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform the method according to any one of claims 1 to 6.

9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Engine rotating speed signal identification method, device and equipment and storage medium

    CN115856344A

  • Pilotless automobile device and pilotless automobile system

    CN218966851U