Crankshaft position identification method and device, medium and engine management system
By calculating the rotation time of the convex teeth of the crankshaft signal wheel and setting multiple judgment conditions, the synchronization loss problem caused by the accelerated rotation of the crankshaft is solved, and accurate engine position identification and synchronization control are achieved.
Patent Information
- Application Number
- CN202411114667.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-11-08
Smart Images

Figure CN118911835A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of engine technology, and in particular to a crankshaft position identification method, device, medium and engine management system. Background Art
[0002] The most important thing for the EMS electronic fuel injection system is to identify the crankshaft position of the engine, that is, the engine synchronization, so as to control the fuel injection of the injector and the ignition of the spark plug. The commonly used crankshaft signal wheels on the market are 24-2, 36-2, and 60-2. For example, 24-2 means that the crankshaft signal wheel has 24 teeth, of which 2 teeth are missing, and the actual total number is 22 teeth. Whenever the crankshaft rotates to the missing tooth position, the voltage can be collected by different types of crankshaft sensors to obtain a voltage long tooth square wave signal. Therefore, the electronic fuel injection system can obtain the current angle position of the crankshaft rotation through the missing tooth. The same is true for 36-2 and 60-2. The timing of ignition and fuel injection will also affect engine synchronization. Due to the small space and the problem of machining accuracy of the convex teeth of the signal wheel, the crankshaft signal wheel of the motorcycle engine mostly uses 24-2 and 36-2 tooth signal wheels. Most motorcycle engines use single or twin cylinders. For a 24-2 gear twin cylinder engine, when the ignition time of the second cylinder is before the missing tooth occurs, the second cylinder's power stroke arrives and the crankshaft rotates faster, which can easily cause the missing tooth's rotation time to be too short, making it impossible to identify the engine synchronization and causing the engine to stall. In addition, under conditions such as rapid braking, misjudging the missing tooth position can also cause errors in the engine's position recognition. Summary of the invention
[0003] The invention discloses a crankshaft position identification method, device, medium and engine management system, which can realize crankshaft position identification.
[0004] In order to achieve the above object, on the one hand, a crankshaft position recognition method is provided, and the specific method is as follows:
[0005] Obtaining the convex tooth signal of the crankshaft signal wheel;
[0006] According to the convex tooth signal, calculate the rotation time of each convex tooth;
[0007] According to the rotation time of the convex tooth, the missing tooth position of the crankshaft signal wheel is determined.
[0008] Optionally, the crankshaft signal wheel has 24 teeth with 2 missing teeth, 36 teeth with 2 missing teeth, or 60 teeth with 2 missing teeth.
[0009] Furthermore, the convex tooth signal of the crankshaft signal wheel is obtained, and the specific method is as follows:
[0010] Acquire the electrical signal collected by the magnetoelectric sensor or the Hall sensor;
[0011] The collected electrical signal is processed into a square wave, which is the convex tooth signal.
[0012] Furthermore, the rotation time of each convex tooth is calculated as follows:
[0013] When the current falling edge interrupt of the electrical signal is generated, the corresponding moment is recorded as the first clock;
[0014] When the next falling edge interrupt of the electrical signal occurs, the corresponding moment is recorded as the second clock;
[0015] Subtracting the first clock from the second clock gives the current cam rotation time.
[0016] Furthermore, the missing tooth position of the crankshaft signal wheel is determined by the following method:
[0017] The convex tooth rotation times of the three most recent convex teeth are rolled and cached, which are the zeroth convex tooth rotation time, the first convex tooth rotation time, and the second convex tooth rotation time;
[0018] According to the time length relationship among the zeroth cam rotation time, the first cam rotation time and the second cam rotation time, initially determining whether the crankshaft signal wheel position corresponding to the first cam rotation time is a missing tooth position;
[0019] If the initial judgment is yes, and the number of normal teeth recorded in the previous rotation cycle is consistent with the number of teeth that the crankshaft signal wheel should have, the missing tooth judgment is successful, the crankshaft angle and angle clock are captured, and marked as the software reference point 0°; if the number of normal teeth recorded in the previous rotation cycle is inconsistent with the number of teeth that the crankshaft signal wheel should have, the ECU loses the engine position signal and shuts down the drive of all position management systems;
[0020] If the initial judgment is no, and the number of normal teeth recorded in the previous rotation cycle is greater than the number of teeth the crankshaft signal wheel should have, the ECU loses the engine position signal and shuts down the drive of all position management systems; if the number of normal teeth recorded in the previous rotation cycle is less than the number of teeth the crankshaft signal wheel should have, the normal tooth number count is increased by 1, and the next initial judgment result is continued to be waited for.
[0021] Further, when the following conditions are met, the crankshaft signal wheel position corresponding to the first convex tooth rotation time is initially determined to be a missing tooth position:
[0022] The first convex tooth rotation time is greater than the zeroth convex tooth rotation time and the second convex tooth rotation time;
[0023] The result of multiplying the quotient of the first convex tooth rotation time and the zeroth convex tooth time by the quotient of the first convex tooth rotation time and the second convex tooth time is greater than the first set value;
[0024] The quotient of the second convex tooth rotation time and the zeroth convex tooth time is greater than or equal to the second set value and less than or equal to the third set value.
[0025] To achieve the above object, on the other hand, a crankshaft position identification device is provided, comprising: a signal module, a calculation module and a judgment module;
[0026] The signal module obtains the convex tooth signal of the crankshaft signal wheel;
[0027] The calculation module calculates the rotation time of each convex tooth according to the convex tooth signal;
[0028] The judgment module judges the missing tooth position of the crankshaft signal wheel according to the rotation time of the convex tooth.
[0029] In order to achieve the above-mentioned purpose, on the other hand, a storage medium is provided, which stores a plurality of instructions, and a processor loads the instructions to execute the above-mentioned crankshaft position identification method.
[0030] In order to achieve the above-mentioned object, on the other hand, an engine management system is provided, comprising the above-mentioned crankshaft position identification device, and / or the above-mentioned storage medium.
[0031] Due to the adoption of the above technical solution, the present invention has the following technical effects:
[0032] 1. The present invention can solve the problem that the crankshaft rotates faster, which easily causes the rotation time of the missing teeth to be short and the engine synchronization cannot be identified.
[0033] 2. Solved the problem of loss of synchronization caused by engine position recognition when the ignition timing of the second cylinder of a twin-cylinder engine is before the missing tooth.
[0034] 3. Three judgment conditions are set. If the three judgment conditions are met at the same time, the risk of misjudging missing teeth when normal teeth are detected can be effectively avoided. At present, this function has been well implemented on the actual vehicle, the effect has reached the expected level, and the technical specifications are mature.
[0035] It should be noted that the terms "first", "second" and similar terms used in this article are only for describing the various components in the technical solution, and do not constitute a limitation of the technical solution, nor can they be understood as an indication or suggestion of the importance of the corresponding elements; elements with "first", "second" and similar terms indicate that the corresponding technical solution contains at least one of the element. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solution of the present invention and facilitate further understanding of the technical effects, technical features and purposes of the present invention, the present invention is described in detail below in conjunction with the accompanying drawings. The accompanying drawings constitute an essential part of the specification and are used together with the embodiments of the present invention to illustrate the technical solution of the present invention, but do not constitute a limitation to the present invention.
[0037] The same reference numerals in the accompanying drawings represent the same components, specifically:
[0038] Figure 1 This is a schematic diagram of the convex tooth rotation time buffer in Example 1.
[0039] Figure 2 This is a schematic diagram of the process of Example 1. DETAILED DESCRIPTION
[0040] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. Of course, the specific embodiments described below are only for explaining the technical solutions of the present invention, rather than for limiting the present invention. In addition, the parts described in the embodiments or the accompanying drawings are only examples of the relevant parts of the present invention, rather than the whole of the present invention.
[0041] Embodiment 1:
[0042] A method for identifying the crankshaft position, the engine is a two-cylinder engine, the crankshaft uses a 24-2 crankshaft signal wheel, such as Figure 2 As shown, the specific steps are as follows:
[0043] S1. Obtain the convex tooth signal of the crankshaft signal wheel, as follows:
[0044] S11, read the crankshaft tooth signal, use magnetoelectric or Hall sensor to collect the signal, process it into square wave through the driver chip and enter the ECU. The system sets an interrupt program execution at the falling edge of each square wave.
[0045] S2. Calculate the rotation time of each convex tooth according to the convex tooth signal. The specific steps are as follows:
[0046] S21, when the current falling edge interruption occurs, record the current system clock value as the first clock t1, when the next falling edge interruption occurs, record the current system clock value as the second clock t2, and use t2-t1=toothtime. Toothtime is the time width of the current convex tooth, that is, the current convex tooth rotation time.
[0047] S3. Determine the missing tooth position of the crankshaft signal wheel according to the convex tooth rotation time. The specific steps are as follows:
[0048] S31, cache the convex tooth rotation time, and calculate according to the method of step S21, such as Figure 1As shown. Continuously collect convex teeth, and store the convex tooth rotation time toothtime in the zeroth convex tooth rotation time toothtimebuff[0], the first convex tooth rotation time toothtimebuff[1], and the second convex tooth rotation time toothtimebuff[2] in sequence. When three tooth times are fully stored, the subsequent tooth times are stored in a rolling cache. First, store the time value of toothtimebuff[1] in toothtimebuff[0], store the time value of toothtimebuff[2] in toothtimebuff[1], and store the new toothtime in toothtimebuff[2]. At this point, the time width cache of the current three square waves is completed.
[0049] S31, based on the cached tooth protrusion time, complete the initial determination of whether there is a missing tooth, and the determination conditions include the following three conditions:
[0050] Condition 1: toothtimebuff[1] is greater than toothtimebuff[0] and toothtimebuff[1] is greater than toothtimebuff[2];
[0051] Condition 2: toothtimebuff[1] is greater than toothtimebuff[0], and ((toothtimebuff[1]÷toothtimebuff[0])x(toothtimebuff[1]÷toothtimebuff[2])) is greater than the first set value faktooth;
[0052] Condition 3: (toothtimebuff[2]÷toothtimebuff[0]) is greater than or equal to the second setting value faktoothmin, and less than or equal to the third setting value faktoothmax.
[0053] When the three conditions are met at the same time, the current three teeth can be considered to be the tooth before the missing tooth, the missing tooth + the tooth after the missing tooth, and the second tooth after the missing tooth. Jump to step S32; if one or more of the three conditions are not met, jump to S33.
[0054] S32, judging the rationality of the missing tooth position, reading the number of teeth toothctr, and judging whether it is currently equal to 22. If satisfied, jump to step S34; if not satisfied, jump to step S36.
[0055] S33, judging the rationality of the normal tooth position, reading toothctr, and judging whether the current value is less than 22. If satisfied, jump to step S35; if not satisfied, jump to step S36.
[0056] S34, the missing tooth is determined successfully, the angle is captured, the current angle clock of the system is obtained, and this moment is used as the software reference point 0°. At the same time, the tooth counter toothctr is assigned a value of 0.
[0057] S35. The normal tooth is judged successfully. Each tooth is 360°÷24=15°. When each new falling edge is collected, the angle is considered to be +15°, and the tooth counter toothctr is increased by 1.
[0058] S36, loss of synchronization, ECU loses the engine position signal and shuts down the drive of all position management systems.
[0059] Embodiment 2:
[0060] A crankshaft position recognition device comprises: a signal module, a calculation module and a judgment module;
[0061] The signal module obtains the convex tooth signal of the crankshaft signal wheel;
[0062] The calculation module calculates the rotation time of each convex tooth according to the convex tooth signal;
[0063] The judgment module judges the missing tooth position of the crankshaft signal wheel according to the rotation time of the convex tooth.
[0064] It should be noted that the above embodiments are only for more clearly illustrating the technical solutions of the present invention. Those skilled in the art will understand that the implementation methods of the present invention are not limited to the above contents, and obvious changes, replacements or substitutions based on the above contents do not exceed the scope of the technical solutions of the present invention; other implementation methods will also fall within the scope of the present invention without departing from the concept of the present invention.
Claims
1. A crankshaft position identification method, characterized in that: The specific method is as follows: Obtaining the convex tooth signal of the crankshaft signal wheel; According to the convex tooth signal, calculate the rotation time of each convex tooth; According to the rotation time of the convex tooth, the missing tooth position of the crankshaft signal wheel is determined.
2. The crankshaft position recognition method according to claim 1, characterized in that: The crankshaft signal wheel has 24 teeth with 2 missing teeth, 36 teeth with 2 missing teeth, or 60 teeth with 2 missing teeth.
3. The crankshaft position identification method according to claim 1, characterized in that: Get the convex tooth signal of the crankshaft signal wheel. The specific method is as follows: Acquire the electrical signal collected by the magnetoelectric sensor or the Hall sensor; The collected electrical signal is processed into a square wave, which is the convex tooth signal.
4. The crankshaft position recognition method according to claim 1, characterized in that: Calculate the rotation time of each convex tooth. The specific method is as follows: When the current falling edge interrupt of the electrical signal is generated, the corresponding moment is recorded as the first clock; When the next falling edge interrupt of the electrical signal occurs, the corresponding moment is recorded as the second clock; Subtracting the first clock from the second clock gives the current cam rotation time.
5. The crankshaft position recognition method according to claim 1, characterized in that: Determine the missing tooth position of the crankshaft signal wheel. The specific method is as follows: The convex tooth rotation times of the three most recent convex teeth are rolled and cached, which are the zeroth convex tooth rotation time, the first convex tooth rotation time, and the second convex tooth rotation time; According to the time length relationship among the zeroth cam rotation time, the first cam rotation time and the second cam rotation time, initially determining whether the crankshaft signal wheel position corresponding to the first cam rotation time is a missing tooth position; If the initial judgment is yes, and the number of normal teeth recorded in the previous rotation cycle is consistent with the number of teeth that the crankshaft signal wheel should have, the missing tooth judgment is successful, the crankshaft angle and angle clock are captured, and marked as the software reference point 0°; if the number of normal teeth recorded in the previous rotation cycle is inconsistent with the number of teeth that the crankshaft signal wheel should have, the ECU loses the engine position signal and shuts down the drive of all position management systems; If the initial judgment is no, and the number of normal teeth recorded in the previous rotation cycle is greater than the number of teeth the crankshaft signal wheel should have, the ECU loses the engine position signal and shuts down the drive of all position management systems; if the number of normal teeth recorded in the previous rotation cycle is less than the number of teeth the crankshaft signal wheel should have, the normal tooth number count is increased by 1, and the next initial judgment result is continued to be waited for.
6. The crankshaft position recognition method according to claim 5, characterized in that: When the following conditions are met, the crankshaft signal wheel position corresponding to the first cam rotation time is initially determined to be a missing tooth position: The first convex tooth rotation time is greater than the zeroth convex tooth rotation time and the second convex tooth rotation time; The result of multiplying the quotient of the first convex tooth rotation time and the zeroth convex tooth time by the quotient of the first convex tooth rotation time and the second convex tooth time is greater than the first set value; The quotient of the second convex tooth rotation time and the zeroth convex tooth time is greater than or equal to the second set value and less than or equal to the third set value.
7. A crankshaft position identification device, characterized in that: include: Signal module, calculation module and judgment module; The signal module obtains the convex tooth signal of the crankshaft signal wheel; The calculation module calculates the rotation time of each convex tooth according to the convex tooth signal; The judgment module judges the missing tooth position of the crankshaft signal wheel according to the rotation time of the convex tooth.
8. A storage medium, characterized in that: A plurality of instructions are stored, and a processor loads the instructions to execute the crankshaft position identification method according to any one of claims 1 to 6.
9. An engine management system, characterized in that: It comprises the crankshaft position identification device as claimed in claim 7, and / or the storage medium as claimed in claim 8.
