Engine interruption prediction generation method, device and system and medium
By calculating the tooth coefficient and pulse-specific sequence of the camshaft, combining the edge interruption angle and rotation speed, the engine S0 and S1 interrupt tasks are predicted and generated, the interrupt task triggering problem caused by sparse camshaft signals is solved, and the accurate control of engine fuel injection and ignition is achieved.
Patent Information
- Application Number
- CN202311377770.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-23
- Publication Date
- 2025-04-25
AI Technical Summary
In the engine electronic control unit, the camshaft sensor signal is sparse, resulting in the S0, S1 interrupt task lacking the appropriate signal along the trigger, and the interrupt task needs to be generated through prediction to achieve accurate calculations of fuel injection timing and ignition timing.
By calculating the camshaft tooth coefficient, pulse-specific sequence and timestamp, the position time stamp of the engine's current rotation position is determined, and the interrupt time stamp is calculated based on the current edge interrupt angle, the angle, speed and dimension conversion coefficient of the interrupt to be predicted, and the interrupt time stamp is generated, and the interrupt task is generated using the timer interrupt.
Accurate prediction and generation of engine S0 and S1 interrupt tasks is achieved, ensuring accurate calculation of engine fuel injection timing and ignition timing, and improving engine control accuracy.
Smart Images

Figure CN119878388A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to an engine interruption prediction generation method, device, system and medium. Background Art
[0002] The engine electronic control unit (ECU) determines the rotational position of the engine by combining the electrical signals of the crankshaft and camshaft, thereby calculating the engine's fuel injection timing and ignition timing, and controls the injector and ignition coil to be driven at the corresponding timing.
[0003] Specifically, when the crankshaft sensor sends out signals normally without any faults, the engine electronic control unit uses the crankshaft with higher precision to perform signal frequency multiplication to determine the rotation position of the engine, and then provides it for fuel injection and ignition timing. The engine electronic control unit usually generates engine S0 and S1 interrupt tasks according to the rotation position of the engine at two fixed angles before the top dead center of each cylinder, and calculates the fuel injection timing and ignition timing in this task.
[0004] If the crankshaft sensor cannot provide a reliable signal due to poor signal release or disconnected wiring harness, the camshaft signal is needed to determine the engine's rotational position, generate engine S0, S1 interrupt tasks based on the rotational position, and calculate the engine's fuel injection timing and ignition timing.
[0005] Since the camshaft sensor signal edge is sparser than the crankshaft sensor signal, there is no exact signal edge to trigger these two interrupts corresponding to the S0 and S1 tasks. At this time, the S0 and S1 tasks need to be generated based on the prediction.
[0006] Therefore, how to accurately predict and generate the engine S0, S1 interruption tasks to achieve accurate calculation of the engine's fuel injection timing and ignition timing is a technical problem that needs to be solved in this field. Summary of the invention
[0007] In view of this, this summary of the invention is provided to introduce the concepts in a brief form, which will be described in detail in the detailed description section below. This summary of the invention is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to be used to limit the scope of the technical solution claimed for protection.
[0008] The purpose of the present application is to provide an engine interruption prediction generation method, device, system and medium, which can accurately predict and generate engine S0, S1 interruption tasks to achieve accurate calculation of the engine's fuel injection timing and ignition timing.
[0009] To achieve the above purpose, this application has the following technical solutions:
[0010] In a first aspect, an embodiment of the present application provides an engine outage prediction generation method, comprising:
[0011] The position timestamp of the current rotation position of the engine is calculated based on the camshaft tooth profile coefficient, the camshaft pulse specific sequence, the timestamps when the edges of the camshaft pulse signals arrive, and the current timestamp when the edge of the current camshaft pulse signal arrives;
[0012] Collect the current edge interruption angle when the current camshaft pulse signal arrives;
[0013] Calculate the interruption timestamp of the engine to be predicted and generated according to the current edge interruption angle, the angle of the engine to be predicted and generated interruption, the position timestamp, the current engine speed and the preset conversion coefficient of the engine speed and timestamp dimension;
[0014] According to the interrupt timestamp, the engine to-be-predicted-generated interrupt is generated by using a timer interrupt.
[0015] In a possible implementation, the interruption timestamp of the engine to be predicted to generate interruption is calculated according to the current edge interruption angle, the angle of the engine to be predicted to generate interruption, the position timestamp, the current engine speed and the preset conversion coefficient of the engine speed and timestamp dimension, and is specifically calculated by the following formula:
[0016]
[0017]
[0018] Among them, t S0 and t S1 is the interrupt timestamp of the engine to be predicted to generate an interrupt, t1 is the position timestamp, spd is the current engine speed, r1 is the conversion coefficient of the preset engine speed and timestamp dimension, x0 and x1 are the angles of the engine to be predicted to generate an interrupt, and y is the current edge interrupt angle.
[0019] In a possible implementation, the method further includes:
[0020] When the current timestamp is earlier than the preset timestamp, the engine interruption between the current timestamp and the last timestamp when the last camshaft pulse signal edge arrives is removed.
[0021] In a possible implementation, the method further includes:
[0022] When the current timestamp occurs for a preset time period, if the next timestamp when the next camshaft pulse signal edge arrives is not received, it is determined that the engine is stopped.
[0023] In a second aspect, an embodiment of the present application provides an engine outage prediction generation device, comprising:
[0024] A first calculation unit, for calculating a position timestamp of a current rotation position of the engine according to a camshaft tooth profile coefficient, a camshaft pulse specific sequence, respective timestamps when respective camshaft pulse signal edges arrive, and a current timestamp when a current camshaft pulse signal edge arrives;
[0025] A collection unit, used for collecting the current edge interruption angle when the current camshaft pulse signal arrives;
[0026] A second calculation unit is used to calculate the interruption timestamp of the engine to be predicted to generate an interruption according to the current edge interruption angle, the angle of the engine to be predicted to generate an interruption, the position timestamp, the current engine speed and a preset conversion coefficient between the engine speed and the timestamp dimension;
[0027] A generating unit is used to generate the engine to-be-predicted-generated interrupt by using a timer interrupt according to the interrupt timestamp.
[0028] In a possible implementation, the second calculation unit is specifically configured to calculate the interruption timestamp, which is specifically calculated by the following formula:
[0029]
[0030]
[0031] Among them, t S0 and t S1 is the interrupt timestamp of the engine to be predicted to generate an interrupt, t1 is the position timestamp, spd is the current engine speed, r1 is the conversion coefficient of the preset engine speed and timestamp dimension, x0 and x1 are the angles of the engine to be predicted to generate an interrupt, and y is the current edge interrupt angle.
[0032] In a possible implementation, the method further includes:
[0033] The removing unit is used to remove the engine interruption between the current timestamp and the last timestamp when the last camshaft pulse signal edge arrives when the current timestamp is earlier than the preset timestamp.
[0034] In a possible implementation, the method further includes:
[0035] The determination unit is used to determine that the engine is stopped if the next timestamp when the next camshaft pulse signal edge arrives is not received after the current timestamp occurs for a preset time period.
[0036] In a third aspect, an embodiment of the present application provides an engine outage prediction generation system, comprising:
[0037] Memory for storing computer programs;
[0038] A processor is used to implement the steps of the engine outage prediction generation method as described above when executing the computer program.
[0039] In a fourth aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, and when the computer program is processed and executed, the steps of the engine interruption prediction generation method as described above are implemented.
[0040] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0041] The embodiment of the present application provides a method, device, system and medium for predicting and generating an engine interruption, the method comprising: calculating the position timestamp of the current rotational position of the engine according to the camshaft tooth shape coefficient, the camshaft pulse specific sequence, the timestamps when the edges of the respective camshaft pulse signals arrive, and the current timestamp when the edges of the current camshaft pulse signals arrive; collecting the current edge interruption angle when the edges of the current camshaft pulse signals arrive; calculating the interruption timestamp of the engine interruption to be predicted and generated according to the current edge interruption angle, the angle of the engine interruption to be predicted and generated, the position timestamp, the current engine speed and the conversion coefficient of the engine speed and the timestamp dimension set in advance; generating the engine interruption to be predicted and generated according to the interruption timestamp using a timer interruption. The present application utilizes the characteristics of the camshaft to determine the current rotational position of the engine, so that the accurate prediction and generation of the engine interruption to be predicted and generated can be realized according to the current rotational position of the engine, so as to realize the accurate calculation of the fuel injection timing and ignition timing of the engine. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0043] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0044] Figure 1 A flow chart of an engine outage prediction generation method provided by an embodiment of the present application is shown;
[0045] Figure 2 A schematic diagram showing pulse signals and interruptions of an intake camshaft and an exhaust camshaft of a four-cylinder engine provided by an embodiment of the present application is shown;
[0046] Figure 3 A pulse schematic diagram corresponding to a camshaft pulse specific sequence provided in an embodiment of the present application is shown;
[0047] Figure 4 A schematic diagram of an engine outage prediction generation device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0048] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below with reference to the accompanying drawings.
[0049] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present application. Therefore, the present application is not limited to the specific embodiments disclosed below.
[0050] As described in the background art, the engine electronic control unit (ECU) determines the rotational position of the engine by combining the electrical signals of the crankshaft and the camshaft, thereby calculating the fuel injection timing and ignition timing of the engine, and controls the injector and the ignition coil to be driven at the corresponding timing.
[0051] Specifically, when the crankshaft sensor sends out signals normally without any faults, the engine electronic control unit uses the crankshaft with higher precision to perform signal frequency multiplication to determine the rotation position of the engine, and then provides it for fuel injection and ignition timing. The engine electronic control unit usually generates engine S0 and S1 interrupt tasks according to the rotation position of the engine at two fixed angles before the top dead center of each cylinder, and calculates the fuel injection timing and ignition timing in this task.
[0052] For example, see Figure 2As shown in the figure, it is a schematic diagram of the pulse signals and interrupts of the intake camshaft and exhaust camshaft of a four-cylinder engine provided by an embodiment of the present application. For example, for a four-cylinder engine such as Figure 1 shown in S0 and S1 in this example (in this example, a < b < 90° < c < d < 180° < e), the S0 task trigger point is always b° before top dead center, and the S1 task trigger point is always (90 + b)° before top dead center. The above functions only require triggering an interrupt at a certain edge (falling edge or rising edge) of the crankshaft, and scheduling the corresponding S0 and S1 tasks in the interrupt.
[0053] If the crankshaft sensor cannot provide a reliable signal due to poor signal disconnection or harness disconnection, etc., at this time, the signal of the camshaft needs to be used to determine the rotation position of the engine, generate the engine S0 and S1 interrupt tasks according to the rotation position, and calculate the fuel injection timing and ignition timing of the engine.
[0054] Since the signal edges of the camshaft sensor are sparser than those of the crankshaft sensor, for the tasks corresponding to S0 and S1, there is no exactly corresponding signal edge to trigger these two interrupts. At this time, the S0 and S1 tasks need to be generated according to prediction.
[0055] Therefore, how to accurately predict and generate the engine S0 and S1 interrupt tasks to achieve accurate calculation of the fuel injection timing and ignition timing of the engine is a technical problem to be solved in the art.
[0056] To solve the above technical problems, an embodiment of the present application provides an engine interrupt prediction and generation method, device, system and medium. The method includes: calculating the position timestamp of the current rotation position of the engine according to the camshaft tooth profile coefficient, the camshaft pulse specific sequence, the timestamps when each camshaft pulse signal edge arrives, and the current timestamp when the current camshaft pulse signal edge arrives; collecting the current edge interrupt angle when the current camshaft pulse signal edge arrives; calculating the interrupt timestamp of the engine to be predicted and generated according to the current edge interrupt angle, the angle of the engine interrupt to be predicted and generated, the position timestamp, the current engine speed, and the conversion coefficient of the pre-set engine speed and timestamp dimension; generating the engine interrupt to be predicted and generated by using the timer interrupt according to the interrupt timestamp. The present application uses the characteristics of the camshaft to determine the current rotation position of the engine, so as to accurately predict and generate the engine interrupt to be predicted and generated according to the current rotation position of the engine, so as to achieve accurate calculation of the fuel injection timing and ignition timing of the engine.
[0057] Exemplary Methods
[0058] See Figure 1 As shown in the figure, it is a flowchart of an engine interrupt prediction and generation method provided by an embodiment of the present application, including:
[0059] S101: Calculate the position timestamp of the current rotation position of the engine according to the camshaft tooth profile coefficient, the camshaft pulse specific sequence, the timestamps when the edges of the camshaft pulse signals arrive, and the current timestamp when the edge of the current camshaft pulse signal arrives.
[0060] In the examples of this application, see Figure 2 and Figure 3 As shown, Figure 3 A pulse schematic diagram corresponding to a camshaft pulse-specific sequence provided in an embodiment of the present application.
[0061] The camshaft provided in the embodiment of the present application may include an intake camshaft and an exhaust camshaft. Figure 2 and Figure 3 As shown, for example, for a four-cylinder engine (cylinder #1-cylinder #4), each cylinder has an intake valve and an exhaust valve. Then, the number of teeth on the crankshaft of the engine should be 58, and the number of teeth on the camshaft should be 8.
[0062] For a camshaft with 8 teeth, the camshaft sequence can be divided into two specific sequences, namely long-short-short-long and short-long-long-short. These two sequences are unique.
[0063] Taking BM0=0° (Benchmark) as the starting point of the engine, one cycle of the camshaft can include the top dead center compression (TDCC), the bottom dead center (BDC), the top dead center intake (TDCI), and multiple S0 and S1 interruptions, S0=0°, S0=180°, S0=360° and S0=540°, S1=90°, S1=270°, S1=450° and S1=630°. In addition, another benchmark point can be BM1=360°.
[0064] The engine rotational position can be determined according to formula 1.1 or 1.2, respectively, where r is the camshaft tooth profile coefficient, which can be adjusted according to different camshaft tooth profiles.
[0065] t2-t1>r×(t3-t2)
[0066] t2-t1>r×(t4-t3)
[0067] t5-t4>r×(t3-t2)
[0068] t5-t4>r×(t4-t3)
[0069] Formula 1.1
[0070] t7-t6>r×(t6-t5)
[0071] t8-t7>r×(t6-t5)
[0072] t7-t6>r×(t1-t8)
[0073] t7-t6>r×(t1-t8)
[0074] Formula 1.2
[0075] That is, in an embodiment of the present application, the current timestamp when the current camshaft pulse signal edge arrives can be obtained first, for example, when the current timestamp is t5, and then several camshaft pulse signal edges before the current camshaft pulse signal edge can be obtained, that is, each timestamp when each camshaft pulse signal edge arrives can be obtained, for example, t1 timestamp, t2 timestamp, t3 timestamp and t4 timestamp can be obtained.
[0076] If the size relationship between each timestamp and the current timestamp satisfies formula 1.1, it can be considered that the current rotational position of the engine is within the angle range of the camshaft pulse-specific sequence corresponding to long-short-short-long, and then combined with the current timestamp, the position timestamp of the current rotational position of the engine can be accurately obtained.
[0077] In addition, when searching and determining the engine rotation position, the intake and exhaust camshafts can be searched at the same time, and the specific sequence found first is used as the reference axis for the following steps. That is, in the embodiment of the present application, if the intake camshaft finds the camshaft pulse specific sequence first, the intake camshaft is used as the reference axis for the following steps; if the exhaust camshaft finds the camshaft pulse specific sequence first, the exhaust camshaft is used as the reference axis for the following steps.
[0078] The embodiment of the present application utilizes the characteristics of the camshaft to determine the current rotational position of the engine, so as to subsequently accurately predict and generate the engine's predicted generation interruption based on the engine's current rotational position, and realize accurate calculation of the engine's fuel injection timing and ignition timing.
[0079] S102: Collect the current edge interruption angle when the current camshaft pulse signal edge arrives.
[0080] In the embodiment of the present application, each edge interruption angle when each camshaft pulse signal arrives and the engine interruption angle to be predicted and generated can be collected as an interruption scheduling sequence, wherein each edge interruption angle includes the current edge interruption angle.
[0081] Specifically, the interruption scheduling sequence provided in the embodiment of the present application may include a camshaft edge interruption and S0, S1 interruptions, and the edge of the camshaft and the S0, S1 interruptions to be generated are connected to generate an interruption scheduling sequence starting from the engine 0° point.
[0082] For example, combining Figure 2 and Figure 3 As shown, taking the intake camshaft as an example, the angles of the generated interrupt scheduling sequence are [0°, (ca)°, 90°, c°, 180°, (c+d)°, 270°, (a+c+d)°, (2a+c+d)°, 360°, 450°, (2a+c+2d)°, (3a+c+2d)°, 540°, 630°, (3a+c+3d)°].
[0083] S103: Calculate the interruption timestamp of the engine to be predicted to be generated according to the current edge interruption angle, the angle of the engine to be predicted to be generated interruption, the position timestamp, the current engine speed and the preset conversion coefficient of the engine speed and timestamp dimension.
[0084] S104: generating the engine to-be-predicted generation interrupt using a timer interrupt according to the interrupt timestamp.
[0085] In the embodiment of the present application, in order to predict and generate the absolute time position of the upcoming S0 and S1, the interruption timestamp of the engine to be predicted and generated is obtained.
[0086] First, after the interrupt scheduling sequence is generated, the embodiment of the present application can use the engine electronic control unit to combine the latest camshaft edge angle, i.e., the current edge interruption angle, the angle of the engine to be predicted to generate the interruption, the position timestamp, the current engine speed and the preset conversion coefficient of the engine speed and timestamp dimension to calculate the interruption timestamp of the engine to be predicted to generate the interruption.
[0087] In a possible implementation, the embodiment of the present application provides a method for calculating the interruption timestamp of the engine to be predicted to generate an interruption based on the current edge interruption angle, the angle of the engine to be predicted to generate an interruption, the position timestamp, the current engine speed, and the preset conversion coefficient of the engine speed and the timestamp dimension. Specifically, the interruption timestamp of the engine to be predicted to generate an interruption can be calculated by the following formula:
[0088]
[0089]
[0090] Among them, t S0 and t S1is the interrupt timestamp of the engine to be predicted and generated, t1 is the position timestamp, spd is the current engine speed, r1 is the preset conversion coefficient between the engine speed and the timestamp dimension, x0 and x1 are the angles of the engine to be predicted and generated, and y is the current edge interrupt angle.
[0091] For example, taking the intake camshaft as an example, Figure 2 and Figure 3 As shown, when the position timestamp is t1, that is, the engine currently rotates to the position corresponding to the t1 timestamp, the upcoming S0 is 180°, S1 is 270°, then at this time x0 is 180°, x1 is 270°, and y is c. Then the above formulas 1.3 and 1.4 can be represented as:
[0092]
[0093]
[0094] Then, after calculating the timestamps of S0 and S1, the interrupt timestamp is obtained, and the S0 and S1 interrupts are generated by the timer interrupt, that is, the engine to be predicted to generate interrupts.
[0095] In a possible implementation, the method provided in the embodiment of the present application may further include:
[0096] When the current timestamp is earlier than the preset timestamp, the engine interruption between the current timestamp and the last timestamp when the last camshaft pulse signal edge arrives is removed.
[0097] That is, in the embodiment of the present application, under normal circumstances, interrupts should be scheduled in a fixed sequence, see Figure 2 and Figure 3 As shown, for example, after t4, S0 and S1 are sequentially scheduled for interruption. When the speed fluctuates or other situations occur, the interruption sequence may not be scheduled in order, and at this time, the t5 camshaft interruption may be scheduled before the S1 interruption.
[0098] For this situation where the camshaft edge interrupt is scheduled early, error correction can be performed through the following steps:
[0099] When it is found that the camshaft edge interrupt is scheduled early, that is, when the current timestamp is earlier than the preset timestamp, the interrupt scheduling sequence number can be corrected, the number of interrupts of S0 and S1 in the middle is recorded, the engine state is set to wait, and the engine interrupt between the current timestamp and the last timestamp when the last camshaft pulse signal edge arrives is ignored, that is, the engine interrupt between the current timestamp and the last timestamp when the last camshaft pulse signal edge arrives is removed. After removal, the interrupts of S0 and S1 are re-performed to realize the error correction processing of the early scheduling of the camshaft edge interrupt.
[0100] In a possible implementation, the method provided in the embodiment of the present application may further include:
[0101] When the current timestamp occurs for a preset time, if the next timestamp when the next camshaft pulse signal edge arrives is not received, it is determined that the engine is stalled.
[0102] That is, in the embodiment of the present application, each time the camshaft edge is interrupted, the engine electronic control unit can be used to set a fixed time to detect the camshaft electrical signal timeout, and the engine electronic control unit uses this timeout signal to detect whether the engine has stopped.
[0103] For example, see Figure 3 As shown, when the current timestamp is t4, it is assumed that the time required to rotate from the engine rotation position corresponding to the t4 timestamp according to the engine minimum speed to the next timestamp corresponding to the t5 timestamp is 3s, that is, the preset duration is 3s, but the camshaft pulse signal edge corresponding to the t5 timestamp is not received after 3s. The engine may have stopped normally, failed, etc., and it can be determined that the engine has stopped.
[0104] The embodiment of the present application uses a scheduling mechanism for interrupting a scheduling sequence and adds a method for correcting errors in the scheduling sequence, which is more robust.
[0105] The embodiment of the present application provides a method for predicting and generating an engine interruption, the method comprising: calculating the position timestamp of the current rotational position of the engine according to the camshaft tooth shape coefficient, the camshaft pulse specific sequence, the timestamps when the edges of the respective camshaft pulse signals arrive, and the current timestamp when the edges of the current camshaft pulse signals arrive; collecting the current edge interruption angle when the edges of the current camshaft pulse signals arrive; calculating the interruption timestamp of the engine interruption to be predicted and generated according to the current edge interruption angle, the angle of the engine interruption to be predicted and generated, the position timestamp, the current engine speed, and the conversion coefficient of the engine speed and the timestamp dimension set in advance; generating the engine interruption to be predicted and generated according to the interruption timestamp using a timer interrupt. The present application utilizes the characteristics of the camshaft to determine the current rotational position of the engine, so that the accurate prediction and generation of the engine interruption to be predicted and generated can be realized according to the current rotational position of the engine, so as to realize the accurate calculation of the fuel injection timing and ignition timing of the engine.
[0106] Exemplary Devices
[0107] See also Figure 4 FIG. 1 is a schematic diagram of an engine outage prediction generation device provided in an embodiment of the present application, comprising:
[0108] A first calculation unit 201 is used to calculate a position timestamp of a current rotation position of the engine according to a camshaft tooth profile coefficient, a camshaft pulse specific sequence, each time stamp when each camshaft pulse signal edge arrives, and a current time stamp when a current camshaft pulse signal edge arrives;
[0109] The acquisition unit 202 is used to acquire the current edge interruption angle when the current camshaft pulse signal arrives; the second calculation unit 203 is used to calculate the interruption timestamp of the engine to be predicted to generate interruption according to the current edge interruption angle, the angle of the engine to be predicted to generate interruption, the position timestamp, the current engine speed and the preset conversion coefficient of the engine speed and timestamp dimension;
[0110] The generating unit 204 is used to generate the engine to-be-predicted-generated interrupt by using a timer interrupt according to the interrupt timestamp.
[0111] In a possible implementation, the second calculation unit is specifically configured to calculate the interruption timestamp, which is specifically calculated by the following formula:
[0112]
[0113]
[0114] Among them, t S0 and t S1 is the interrupt timestamp of the engine to be predicted to generate an interrupt, t1 is the position timestamp, spd is the current engine speed, r1 is the conversion coefficient of the preset engine speed and timestamp dimension, x0 and x1 are the angles of the engine to be predicted to generate an interrupt, and y is the current edge interrupt angle.
[0115] In a possible implementation, the method further includes:
[0116] The removing unit is used to remove the engine interruption between the current timestamp and the last timestamp when the last camshaft pulse signal edge arrives when the current timestamp is earlier than the preset timestamp.
[0117] In a possible implementation, the method further includes:
[0118] The determination unit is used to determine that the engine is stopped if the next timestamp when the next camshaft pulse signal edge arrives is not received after the current timestamp occurs for a preset time period.
[0119] The embodiment of the present application provides an engine interruption prediction generation device, and the method applied to the device includes: calculating the position timestamp of the current rotation position of the engine according to the camshaft tooth shape coefficient, the camshaft pulse specific sequence, the timestamps when the edges of the individual camshaft pulse signals arrive, and the current timestamp when the edge of the current camshaft pulse signal arrives; collecting the current edge interruption angle when the current camshaft pulse signal arrives; calculating the interruption timestamp of the engine to be predicted and generated according to the current edge interruption angle, the angle of the engine to be predicted and generated interruption, the position timestamp, the current engine speed, and the conversion coefficient of the engine speed and the timestamp dimension set in advance; generating the engine to be predicted and generated interruption according to the interruption timestamp using a timer interrupt. The present application utilizes the characteristics of the camshaft to determine the current rotation position of the engine, so that the accurate prediction and generation of the engine to be predicted and generated interruption can be realized according to the current rotation position of the engine, so as to realize the accurate calculation of the fuel injection timing and ignition timing of the engine.
[0120] Based on the above embodiments, the present application embodiment provides an engine outage prediction generation system, including:
[0121] Memory for storing computer programs;
[0122] A processor is used to implement the steps of the above-mentioned engine outage prediction generation method when executing the computer program.
[0123] On the basis of the above-mentioned embodiment, the embodiment of the present application further provides a computer-readable medium, on which a computer program is stored, and when the computer program is processed and executed, the steps of the above-mentioned engine interruption prediction generation method are implemented.
[0124] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0125] The computer-readable medium may be included in the system; or may exist independently without being assembled into the system.
[0126] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart.
[0127] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0128] The above is only a preferred implementation of the present application. Although the present application has been disclosed as a preferred embodiment, it is not intended to limit the present application. Any technician familiar with the art can use the above disclosed methods and technical contents to make many possible changes and modifications to the technical solution of the present application without departing from the scope of the technical solution of the present application, or modify it into an equivalent embodiment of equivalent changes. Therefore, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application still falls within the scope of protection of the technical solution of the present application.
Claims
1. A method for generating engine outage predictions, characterized in that: include: The position timestamp of the current rotation position of the engine is calculated based on the camshaft tooth profile coefficient, the camshaft pulse specific sequence, the timestamps when the edges of the camshaft pulse signals arrive, and the current timestamp when the edge of the current camshaft pulse signal arrives; Collect the current edge interruption angle when the current camshaft pulse signal arrives; Calculate the interruption timestamp of the engine to be predicted and generated according to the current edge interruption angle, the angle of the engine to be predicted and generated interruption, the position timestamp, the current engine speed and the preset conversion coefficient of the engine speed and timestamp dimension; According to the interrupt timestamp, the engine to-be-predicted-generated interrupt is generated by using a timer interrupt.
2. The method according to claim 1, characterized in that The interruption timestamp of the engine to be predicted to generate interruption is calculated according to the current edge interruption angle, the angle of the engine to be predicted to generate interruption, the position timestamp, the current engine speed and the preset conversion coefficient of the engine speed and timestamp dimension, which is specifically calculated by the following formula: Among them, t S0 and t S1 is the interrupt timestamp of the engine to be predicted to generate an interrupt, t1 is the position timestamp, spd is the current engine speed, r1 is the conversion coefficient of the preset engine speed and timestamp dimension, x0 and x1 are the angles of the engine to be predicted to generate an interrupt, and y is the current edge interrupt angle.
3. The method according to claim 1, characterized in that Also includes: When the current timestamp is earlier than the preset timestamp, the engine interruption between the current timestamp and the last timestamp when the last camshaft pulse signal edge arrives is removed.
4. The method according to claim 1, characterized in that: Also includes: When the current timestamp occurs for a preset time period, if the next timestamp when the next camshaft pulse signal edge arrives is not received, it is determined that the engine is stopped.
5. An engine outage prediction generation device, characterized in that: include: A first calculation unit, for calculating a position timestamp of a current rotation position of the engine according to a camshaft tooth profile coefficient, a camshaft pulse specific sequence, respective timestamps when respective camshaft pulse signal edges arrive, and a current timestamp when a current camshaft pulse signal edge arrives; A collection unit, used for collecting the current edge interruption angle when the current camshaft pulse signal arrives; A second calculation unit is used to calculate the interruption timestamp of the engine to be predicted to generate an interruption according to the current edge interruption angle, the angle of the engine to be predicted to generate an interruption, the position timestamp, the current engine speed and a preset conversion coefficient between the engine speed and the timestamp dimension; A generating unit is used to generate the engine to-be-predicted-generated interrupt by using a timer interrupt according to the interrupt timestamp.
6. The device according to claim 5, characterized in that The second calculation unit is specifically used to calculate the interruption timestamp, which is specifically calculated by the following formula: Among them, t S0 and t S1 is the interrupt timestamp of the engine to be predicted to generate an interrupt, t1 is the position timestamp, spd is the current engine speed, r1 is the conversion coefficient of the preset engine speed and timestamp dimension, x0 and x1 are the angles of the engine to be predicted to generate an interrupt, and y is the current edge interrupt angle.
7. The device according to claim 5, characterized in that Also includes: The removing unit is used to remove the engine interruption between the current timestamp and the last timestamp when the last camshaft pulse signal edge arrives when the current timestamp is earlier than the preset timestamp.
8. The device according to claim 5, characterized in that Also includes: The determination unit is used to determine that the engine is stopped if the next timestamp when the next camshaft pulse signal edge arrives is not received after the current timestamp occurs for a preset time period.
9. An engine outage prediction generation system, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the engine outage prediction generation method as claimed in any one of claims 1 to 4 when executing the computer program.
10. A computer-readable medium, characterized in that The computer readable medium stores a computer program, and when the computer program is processed and executed, the steps of the engine outage prediction generation method according to any one of claims 1 to 4 are implemented.