CN111255566A - System and method for acquiring rotating speed signal of magnetoelectric double-trigger electronic injection engine - Google Patents
System and method for acquiring rotating speed signal of magnetoelectric double-trigger electronic injection engine Download PDFInfo
- Publication number
- CN111255566A CN111255566A CN202010370069.9A CN202010370069A CN111255566A CN 111255566 A CN111255566 A CN 111255566A CN 202010370069 A CN202010370069 A CN 202010370069A CN 111255566 A CN111255566 A CN 111255566A
- Authority
- CN
- China
- Prior art keywords
- trigger
- signal
- main
- tooth
- rotating speed
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000002347 injection Methods 0.000 title claims abstract description 19
- 239000007924 injection Substances 0.000 title claims abstract description 19
- 238000012795 verification Methods 0.000 claims abstract description 82
- 230000007246 mechanism Effects 0.000 claims abstract description 9
- 230000006698 induction Effects 0.000 claims description 53
- 230000002159 abnormal effect Effects 0.000 claims description 22
- 230000009191 jumping Effects 0.000 claims description 16
- 238000003745 diagnosis Methods 0.000 claims description 11
- 101150008094 per1 gene Proteins 0.000 claims description 10
- 101150074181 PER2 gene Proteins 0.000 claims description 8
- 238000001914 filtration Methods 0.000 claims description 8
- 206010044048 Tooth missing Diseases 0.000 claims description 6
- 239000000446 fuel Substances 0.000 claims description 5
- 238000004148 unit process Methods 0.000 claims description 5
- 230000005684 electric field Effects 0.000 claims description 3
- 230000001960 triggered effect Effects 0.000 claims description 3
- 238000003491 array Methods 0.000 claims description 2
- 230000001976 improved effect Effects 0.000 abstract description 9
- 238000010586 diagram Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 230000008030 elimination Effects 0.000 description 2
- 238000003379 elimination reaction Methods 0.000 description 2
- 230000001939 inductive effect Effects 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 108010076504 Protein Sorting Signals Proteins 0.000 description 1
- 101100460203 Schizosaccharomyces pombe (strain 972 / ATCC 24843) new2 gene Proteins 0.000 description 1
- 230000003213 activating effect Effects 0.000 description 1
- 230000004907 flux Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
Images
Classifications
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F02—COMBUSTION ENGINES; HOT-GAS OR COMBUSTION-PRODUCT ENGINE PLANTS
- F02B—INTERNAL-COMBUSTION PISTON ENGINES; COMBUSTION ENGINES IN GENERAL
- F02B77/00—Component parts, details or accessories, not otherwise provided for
- F02B77/08—Safety, indicating, or supervising devices
Landscapes
- Engineering & Computer Science (AREA)
- Chemical & Material Sciences (AREA)
- Combustion & Propulsion (AREA)
- Mechanical Engineering (AREA)
- General Engineering & Computer Science (AREA)
- Combined Controls Of Internal Combustion Engines (AREA)
Abstract
The invention discloses a system and a method for acquiring a rotating speed signal of a magnetoelectric double-trigger electronic injection engine, wherein the system comprises an electric control unit and a signal acquisition mechanism, the signal acquisition mechanism adopts a double trigger structure, two triggers are used for acquiring the rotating speed signal of the engine at intervals and transmitting the rotating speed signal to the electric control unit, the electric control unit automatically judges whether two triggers have faults or not, when one trigger has the faults, the electric control unit automatically reads the other trigger, and the two triggers are mutually backup, so that the reliability of the system is improved. Through mutual verification of the two paths of trigger signals, the anti-interference performance of the rotating speed signals of the electronic control unit can be greatly improved, and the stability of an electronic injection system is further improved.
Description
Technical Field
The invention relates to an engine electronic fuel injection technology, in particular to a system and a method for acquiring a rotating speed signal of a magnetoelectric double-trigger electronic fuel injection engine.
Background
The engine speed is one of important parameters for measuring the working condition of the engine and is a basic parameter for electronic fuel injection calibration. The rotational speed signal is slightly disturbed to cause unstable operation of the engine.
In the field of automation, a trigger carries important work of signal acquisition, and the engine trigger is used for detecting the rotating speed of a crankshaft of an engine and generating an electric signal to be output to an electric control unit. The existing engine rotating speed signal acquisition system adopts a single trigger to acquire the rotating speed of an engine, and when the trigger is in short circuit or is in open circuit, the engine is directly flamed out, so that the performance of the engine is seriously influenced and great potential safety hazard is brought. Meanwhile, the signal of the magnetoelectric trigger is a magnetoelectric signal, which is very easy to be interfered and causes various faults such as unstable rotating speed, flameout and the like of the engine; the existing engine rotating speed signal acquisition system removes an engine interference signal by filtering a maximum or minimum rotating speed signal within a certain time, and the processing method causes that much interference signals can not be filtered, seriously influences the accuracy of the rotating speed of an engine, causes the disturbance of oil injection and ignition of the engine and seriously influences the performance of the engine.
Disclosure of Invention
The purpose of the invention is as follows: the invention aims to provide a rotating speed signal acquisition system of a magnetoelectric double-trigger electronic injection engine, which has high reliability, strong anti-interference capability and stable performance.
The invention also aims to provide an acquisition method based on the magnetoelectric double-trigger electronic injection engine rotating speed signal acquisition system.
The technical scheme is as follows: the invention relates to an engine speed signal acquisition system, which comprises: the engine comprises an electric control unit and a signal acquisition mechanism, wherein the signal acquisition mechanism comprises a crankshaft connecting rod, a mounting bracket, an induction disc, a main trigger and a verification trigger, the crankshaft connecting rod and the mounting bracket are mounted on an engine body, the induction disc is mounted on the crankshaft connecting rod and rotates along with the crankshaft connecting rod, the main trigger and the verification trigger are mounted on the mounting bracket, the central lines of mandrels of the main trigger and the verification trigger and the central line of a convex tooth of the induction disc are on the same plane, and a gap is reserved between the mandrel and the convex tooth; the main trigger and the check trigger are used for acquiring an engine rotating speed signal at intervals and transmitting the rotating speed signal to the electric control unit, and the electric control unit processes the rotating speed signal;
the electric control unit is internally provided with a single chip microcomputer, a double-path rotating speed signal processing chip, a first filter circuit and a second filter circuit, wherein a rotating speed signal output by the main trigger is input to the double-path rotating speed signal processing chip after being filtered by the first filter circuit, and the double-path rotating speed signal processing chip converts the signal into a first square wave signal and outputs the first square wave signal to the single chip microcomputer; the rotation speed signal output by the calibration trigger is subjected to filtering processing by a second filter circuit and then input to a double-path rotation speed signal processing chip, and the double-path rotation speed signal processing chip converts the signal into a second square wave signal and then outputs the second square wave signal to the single chip microcomputer for processing; when the main trigger or the check trigger breaks down, the single chip microcomputer is automatically switched into a single trigger operation mode, and the electric control unit can be ensured to correctly identify the rotating speed of the engine.
The invention relates to a method for acquiring an engine rotating speed signal, which comprises the following steps:
s1, the induction disc rotates along with the crankshaft connecting rod, when the convex teeth on the induction disc pass through the main trigger and the verification trigger, the main trigger and the verification trigger can respectively generate a sine wave signal, and the main trigger and the verification trigger send the respective sine wave signals to the electric control unit according to the time sequence;
s2, a first filter circuit and a second filter circuit of the electric control unit respectively filter sine wave signals output by the main trigger and the check trigger, and a double-path rotating speed signal processing chip respectively converts the two paths of filtered sine wave signals into a first square wave signal and a second square wave signal and outputs the first square wave signal and the second square wave signal to a single chip microcomputer in the electric control unit;
s3, triggering an interrupt program of a first capture timer in a single chip microcomputer by a sine wave signal output by a main trigger corresponding to the falling edge of a first square wave signal, finishing acquisition of time required by the rotation of an induction disc from a previous tooth to a current tooth by the interrupt program, judging whether a verification trigger has a fault, if the fault is judged, switching to a single main trigger operation mode, and simultaneously judging whether a signal acquired by the main trigger is an interference signal, if the signal is the interference signal, filtering; the sine wave signal output by the check trigger triggers an interrupt program of a second capture timer in the single chip microcomputer corresponding to the falling edge of the second square wave signal, the interrupt program finishes the acquisition of the time required by the induction disc to rotate from the previous tooth to the current tooth, judges whether the main trigger has a fault or not, and switches to a single check trigger operation mode when the main trigger is judged to have the fault; the interrupt program judges whether the sine wave signal output by the main trigger is an interference signal at the same time, and filters the found interference signal;
and S4, calculating the engine speed.
Further, in step S1, the main trigger and the verification trigger are mounted on the mounting bracket and fixed, the sensing disc rotates along with the crankshaft connecting rod, when the convex teeth on the sensing disc pass through the main trigger or the verification trigger, the gap between the spindle inside the main trigger or the verification trigger and the convex teeth on the sensing disc becomes smaller, and the magnetic field inside the coil inside the main trigger or the verification trigger is changed, and the changed magnetic field induces a changed electric field in the trigger coil, thereby generating a sine wave signal; after a first square wave signal generated by the sine wave signal of the main trigger is captured and processed by the first capture timer, a second square wave signal generated by the sine wave signal of the verification trigger enters the second capture timer.
Further, in step S3, under the condition that neither the main trigger nor the verification trigger corresponds to the missing tooth of the sensing disc, the square wave signals corresponding to the sine wave signals of the two triggers alternately enter the electronic control unit; when the main trigger or the checking trigger rotates to the position where the induction disc lacks teeth, the square wave signals corresponding to the sine wave signals of the two triggers do not alternately enter the electric control unit, but are changed into square wave signals corresponding to the sine wave signals of the triggers which do not correspond to the lacking teeth and continuously enter the electric control unit.
When the main trigger or the check trigger has a short circuit or open circuit fault, the fault trigger cannot generate a normal trigger signal, the corresponding interrupt cannot capture the falling edge of the square wave signal corresponding to the sine wave signal generated by the fault trigger, so that the trigger signal received by the electric control unit is changed from the trigger signal which alternately appears in two-way interrupt into a continuous signal generated by the one-way trigger, and when the electric control unit receives 5 continuous signals from the same trigger, the other trigger is judged to have a fault.
Further, in step S3, when the Er value of the signal check flag generated in the single chip microcomputer does not match the Er value in the interrupt program under normal conditions, that is, the trigger signal received by the single chip microcomputer has incorrect tooth sequence, the signal with the wrong tooth sequence is determined as an interference signal and removed (even if the error signal is a continuous non-interference signal generated by a fault generated by another trigger, 5 normal signals are discarded, that is, 1/12 cycles of the electric control unit do not acquire the rotation speed signal, and the time of 1/12 cycles is used to complete the fault determination of the corresponding trigger).
Under the condition that the two trigger signals are not missing teeth, if the ratio of T1 and ST1 corresponding to the main trigger and the verification trigger and shown in FIG. 5 is not in a set range, the signals are filtered as interference normal signals.
Further, the step S3 is a procedure for determining the fault and the interference in the first capturing timer interrupt procedure, specifically:
s311, under the condition that the main trigger corresponds to a non-missing tooth, judging whether a fault flag bit Per2 of the check trigger is equal to 1, wherein the fact that the check trigger is in fault is represented by the fact that the flag bit Per2 of the check trigger is equal to 1, the program automatically jumps to a single operation mode of the main trigger, and the fault diagnosis of the check trigger and the elimination of interference signals according to a tooth sequence are not carried out any more; when Per2 equals to 0, starting the signal interference judgment of the main trigger and the fault diagnosis of the check trigger;
s312, setting 0 to a flag K2 of the continuous signal of the check trigger, wherein the flag is used for judging whether the continuous signal received by the single chip microcomputer is the continuous signal from the check trigger in the interrupt program of the check trigger. When K2=0 is read in the verification trigger interrupt program, the last signal entering the single chip microcomputer is a main trigger signal and is not a continuous signal from the verification trigger;
s313, checking a flag bit Er = Er + 1; the initial value of Er is 60, 1 is added in the main trigger, 1 is subtracted in the verification trigger, if the signal entering the single chip microcomputer is a normal staggered signal, the median value of Er in the main trigger is 61, and the median value in the verification trigger is 60;
s314, judging whether the Er value is in the following three conditions: er =61, i =6, Er =62, i =7 and Er =63, if the tooth sequence is normal, the currently acquired T1 value is written into the rotation speed calculation array SP (i), and the tooth number counter i = i + 1; if not, processing as an interference signal, not adding 1 to the tooth number counter i, and not writing the T1 value into the rotating speed calculation arrays SP (i) and T0;
and S315, judging whether the flag bit K of the continuous signal of the main trigger is equal to 1 (K assigns 1 in the main trigger and assigns 0 in the check trigger), if K =0, indicating that the previous signal received by the single chip microcomputer comes from the check trigger, judging that the check trigger has no fault, directly assigning 1 to K, assigning 61 to Er, and after assigning 0 to an abnormal continuous signal counter Kn of the main trigger, jumping out and interrupting and returning to the main program. If K =1, it shows that the previous signal received by the single chip is from the main trigger, and the main trigger adds 1 to the abnormal continuous signal counter Kn;
and S316, judging whether the abnormal continuous signal counter Kn of the main trigger is equal to 5, if Kn =5, indicating that the single chip microcomputer receives 5 abnormal continuous signals from the main trigger, judging that the verification trigger has no signal output, marking the verification trigger as a fault trigger, setting a fault bit 'Per 2' of the verification trigger to be 1, jumping out of the interrupt, and returning to the main program.
Further, the step S3 is a step of determining a fault and interference in the second capture timer interrupt routine, specifically:
s321, judging whether the fault flag bit Per1 of the main trigger is equal to 1, wherein the fact that the main trigger has a fault is judged, automatically jumping to a single operation mode of a check trigger by a program, and not judging the fault diagnosis and the interference signal of the main trigger; when Per1 equals to 0, starting the main trigger signal interference judgment and the main trigger fault diagnosis;
s322, checking a mark bit Er = Er-1;
s323, it is determined whether or not the tooth number counter i is equal to or greater than 58, and if it is greater than 58, it is said that the main flip-flop starts to correspond to the missing tooth, so that the counting function of the 59 and 60 teeth and the interval time calculation of both teeth are carried out by the check flip-flop, and 1 is added to the tooth number counter i, sp (i) = ST1, ST0= ST 1. If i is less than 58, jumping to step S324;
s324, judging whether the Er value is in the following three conditions: er =60, i =59 and Er =59, i =60 and Er = 58;
if the Er value is normal, continuously judging whether i is one of 5, 6, 59 and 60, if so, judging whether a trigger is in a tooth missing state, directly jumping out of the trigger for diagnosis without performing fault diagnosis and signal interference judgment of a main trigger, and returning to a main program; if i is not one of 5, 6, 59 and 60, judging the interference signal of the main trigger by using SP (i)/ST (1) of 0.9 ≦ SP (i) ≦ 1.1; normal signals are met with inequality conditions, and interference signals are not met with the inequality conditions; if the interference signal is detected, setting a rotating speed calculating unit SP (i) acquired by the main trigger to be 0, and backing 1 the tooth number counter, so that the interference signal is not counted into the normal tooth number; if the signal is not an interference signal, exiting the interruption and returning to the main program;
if the Er value is abnormal, executing the step S325;
s325, judging whether the continuous signal flag bit K2 of the verification trigger is equal to 1, if K2=0, indicating that the previous signal received by the single chip microcomputer is from the main trigger, so that the main trigger is judged to be faultless, directly assigning 1 to K2, assigning 60 to Er, and jumping out of the interrupt after the abnormal continuous signal counter K2n of the verification trigger is assigned 0, and returning to the main program; if K2=1, it indicates that the previous signal received by the single chip microcomputer also comes from the verification trigger, and the abnormal continuous signal counter K2n of the verification trigger adds 1;
and S326, judging whether the abnormal continuous signal counter K2n of the verification trigger is equal to 5 or not, if K2n =5, indicating that the single chip microcomputer receives 5 abnormal continuous signals from the verification trigger, judging that the main trigger has no signal output, marking the main trigger as a fault trigger, setting a fault position 'Per 1' of the verification trigger to be 1, jumping out of the fault, and returning to the main program.
Further, the method for calculating the engine speed in step S4 includes: two capturing timers of the single chip microcomputer have a common clock signal, when the falling edge of a first square wave signal corresponding to a main trigger arrives, the first capturing timer is triggered to interrupt, the first capturing timer records the time number NEW of the clock signal when the signal arrives, and the time number OLD of the clock signal of the last signal recorded in the storage unit is subtracted to obtain the time number OLD of the induction disc from the rotation of the previous tooth to the rotation of the previous toothThe time length T1= NEW-OLD of the tooth, the included angle between two adjacent teeth is a °, a =6 ° when the tooth is not missing, and a =18 ° when the tooth is missing, so that the corresponding engine speed is:;
the engine speed is calculated in a main program, wherein SP (i) and [ i = 1-60 ], when i is an integral multiple of 10, the former 10 adjacent SP (i) values are selected, the SP (i) value which is 0 is removed, the maximum value and the minimum value are removed, finally, the average value of the rest SP (i) values is obtained, the average value is substituted into T1 in the formula, A is 6, the engine speed is obtained, the induction disc rotates for one circle, and the main program calculates the engine speed for 10 times.
Has the advantages that: compared with the prior art, the system adopts a double trigger structure, two trigger signals automatically judge whether the two triggers have faults or not, when one trigger has faults, the electric control unit automatically reads the other trigger signal, and the two triggers are mutually backup, so that the reliability of the system is improved. Through mutual verification of the two paths of trigger signals, the anti-interference performance of the rotating speed signals of the electronic control unit can be greatly improved, and the stability of an electronic injection system is further improved.
Drawings
FIG. 1 is a schematic view of a signal acquisition mechanism of the present invention;
FIG. 2 is a schematic cross-sectional view of a flip-flop;
FIG. 3 is a schematic view of the main trigger and the verification trigger and the sensing disk mounting location;
FIG. 4 is a schematic diagram of the electronic control unit trigger signal processing circuit;
FIG. 5 is a timing diagram of trigger signal waveforms;
FIG. 6 is a flow chart of a signal acquisition method of the present invention;
FIG. 7 is a flow chart of a master flip-flop signal processing routine;
fig. 8 is a flowchart of a check flip-flop signal processing routine.
Detailed Description
The invention is described in detail below with reference to the figures and specific embodiments.
According to the double trigger system, the electric control unit automatically judges whether the two triggers have faults or not, when one trigger has faults, the electric control unit automatically reads the other signal, and the two signals are mutually backup, so that the reliability of the system is improved. Through mutual verification of the two paths of trigger signals, the anti-interference performance of the rotating speed signal of the electric control unit can be greatly improved, and the working stability of the engine is further improved.
The invention relates to an engine rotating speed signal acquisition system, which comprises an electric control unit and a signal acquisition mechanism, wherein the signal acquisition mechanism comprises a crankshaft connecting rod 1, a mounting bracket 2, an induction disc 3, a verification trigger 4 and a main trigger 5, the crankshaft connecting rod and the mounting bracket are mounted on an engine body, the induction disc is mounted on the crankshaft connecting rod and rotates along with the crankshaft connecting rod, the main trigger and the verification trigger are mounted on the mounting bracket, the central lines of mandrels of the main trigger and the verification trigger and the central line of a convex tooth of the induction disc are on the same plane, and a certain gap is kept between the mandrels of the main trigger and the verification trigger and the convex tooth; the main trigger and the check trigger are used for acquiring an engine rotating speed signal at intervals and transmitting the rotating speed signal to the electric control unit, and the electric control unit processes the rotating speed signal; the included angle between the two mandrels of the main trigger and the verification trigger is an included angle of 6 teeth and a tooth width, the main trigger and the verification trigger are used for collecting rotating speed signals of the engine at intervals and transmitting the rotating speed signals to the electric control unit, and the electric control unit processes the rotating speed signals.
The electric control unit comprises a single chip microcomputer, a two-way rotating speed signal processing chip, a first filter circuit and a second filter circuit, wherein a rotating speed signal output by the main trigger is filtered by the first filter circuit and then input to the two-way rotating speed signal processing chip, and the two-way rotating speed signal processing chip converts the signal into a first square wave signal and then outputs the first square wave signal to the single chip microcomputer; the rotation speed signal output by the calibration trigger is subjected to filtering processing by a second filter circuit and then input to a double-path rotation speed signal processing chip, and the double-path rotation speed signal processing chip converts the signal into a second square wave signal and then outputs the second square wave signal to the single chip microcomputer for processing; when the main trigger or the check trigger breaks down, the single chip microcomputer automatically enters a single trigger operation mode, and the electric control unit can be ensured to correctly identify the rotating speed of the engine.
As shown in fig. 1 and 2, the induction disc 3 is mounted on the crankshaft connecting rod 1 and rotates together with the crankshaft connecting rod, and the main trigger 5 and the verification trigger 4 are respectively mounted on the engine mounting bracket 2 through two screws 6. When the teeth on the inductive disk pass the trigger, the gap between the spindle 4-3 and the teeth on the inductive disk is caused to decrease, and the magnetic field in the coil 4-2 is changed, and the changing magnetic field induces a changing electric field in the coil 4-2, thereby generating a sine wave signal, in the figure, 4-1 is a rectangular permanent magnet.
As shown in fig. 3, the induction disc is a 60 minus 2 gear ring (60 uniform teeth, two of which are removed to form 58 uniform teeth and two tooth profiles with missing teeth) and is assembled on a flywheel of a magneto through interference fit, a gap of 0.5-0.8 mm is kept between a convex tooth on the induction disc and mandrels of a main trigger and a verification trigger, the induction disc rotates along with a crankshaft connecting rod, and when the convex tooth passes through the mandrels of the main trigger or the verification trigger, magnetic flux inside a trigger coil changes, so that a sine wave signal is induced on the trigger.
The installation requirements of the main flip-flop and the verification flip-flop are as shown in fig. 3: when the central line of the mandrel of the main trigger is aligned with the central line of the convex teeth of the induction disc, the central line of the mandrel of the checking trigger lags behind the corresponding convex teeth by one tooth width, because the two triggers are respectively connected with the two capturing timers of the single chip microcomputer, the single chip microcomputer can only process one signal of the capturing timer at the same moment, and in order to ensure that the two capturing timers can normally work, the signals of the two triggers have a chronological order. The design ensures that the signal of the check flip-flop enters the second capture timer after the signal of the main flip-flop is captured and processed by the first capture timer.
As shown in FIG. 4, VR1+, VR 1-are engine speed signals output by the main trigger, and VR2+, VR 2-are engine speed signals output by the check trigger. After receiving the rotation speed signals of the main trigger and the verification trigger, the electronic control unit carries out processing by using a circuit shown in figure 4. In the figure, C1, C2, R2, R3, R4, R5 and R6 form a filter circuit of the output signal (VR 1) of the main trigger; c4, C5, R7, R8, R9, R10 and R11 form a filter circuit for verifying the output signal (VR 2) of the trigger; c3 is the filter capacitance of +5V power supply. The MAX9926 converts sine wave signals of VR1 and VR2 into corresponding square wave signals and outputs the square wave signals to a single chip microcomputer in the electronic control unit.
Triggering an interrupt program of a first capture timer in a single chip microcomputer by a falling edge of a first square wave signal corresponding to VR1, wherein the interrupt program finishes the work of checking trigger fault judgment, interference signal elimination, interval time acquisition between a current convex tooth and a previous convex tooth, tooth missing judgment, tooth sequence counting, calculation of an array SP (i) of the rotating speed of an engine and assignment and the like; the falling edge of a second square wave signal corresponding to VR2 triggers an interrupt program of a second capture timer in the single chip microcomputer, and the interrupt program finishes fault judgment and removal of a rotating speed interference signal of the main trigger; when the main trigger breaks down, the work of collecting the interval time between the current convex tooth and the previous convex tooth, judging the missing tooth, counting the tooth sequence, calculating the array of the engine rotating speed SP (i), assigning and the like is completed.
The invention relates to an engine rotating speed signal acquisition method, which comprises the following steps:
s1, the induction disc rotates along with the crankshaft connecting rod, when the convex teeth on the induction disc pass through the main trigger and the verification trigger, the main trigger and the verification trigger can respectively generate a sine wave signal, and the main trigger and the verification trigger send the respective sine wave signals to the electric control unit according to the time sequence;
after a first square wave signal generated by the sine wave signal of the main trigger is captured and processed by the first capture timer, a second square wave signal generated by the sine wave signal of the verification trigger enters the second capture timer.
S2, the first filter circuit and the second filter circuit of the electric control unit respectively filter the sine wave signals output by the main trigger and the check trigger, and the two-way rotating speed signal processing chip respectively converts the two-way filtered sine wave signals into a first square wave signal and a second square wave signal and outputs the first square wave signal and the second square wave signal to the single chip microcomputer in the electric control unit.
S3, triggering an interrupt program of a first capture timer in a single chip microcomputer by a sine wave signal output by a main trigger corresponding to the falling edge of a first square wave signal, finishing acquisition of the time required by the rotation of an induction disc from a previous tooth to a current tooth by the interrupt program, judging whether a verification trigger has a fault, if the fault is judged, switching to a single main trigger operation mode, and simultaneously judging whether the acquired signal is an interference signal, if the signal is the interference signal, filtering; the sine wave signal output by the check trigger triggers an interrupt program of a second capture timer in the single chip microcomputer corresponding to the falling edge of the second square wave signal, the interrupt program finishes the acquisition of the time required by the induction disc to rotate from the previous tooth to the current tooth, judges whether the main trigger has a fault or not, and switches to a single check trigger operation mode when the fault is judged; the interrupt program judges whether the sine wave signal output by the main trigger is an interference signal at the same time, and filters the found interference signal.
Under the condition that the main trigger and the verification trigger do not correspond to the missing teeth of the induction disc, square wave signals corresponding to sine wave signals of the two triggers alternately enter the electric control unit; when the main trigger or the checking trigger rotates to the position where the induction disc lacks teeth, the square wave signals corresponding to the sine wave signals of the two triggers do not alternately enter the electric control unit, but are changed into square wave signals corresponding to the sine wave signals of the triggers which do not correspond to the lacking teeth and continuously enter the electric control unit.
When the main trigger or the check trigger has a short circuit or open circuit fault, the fault trigger cannot generate a normal trigger signal, the corresponding interrupt cannot capture the falling edge of the square wave signal corresponding to the sine wave signal generated by the fault trigger, so that the trigger signal received by the electric control unit is changed from the trigger signal which alternately appears in two-way interrupt into a continuous signal generated by the one-way trigger, and when the electric control unit receives 5 continuous signals from the same trigger, the other trigger is judged to have a fault.
When the signal check flag bit Er value generated in the single chip microcomputer is not accordant with the Er value in the interrupt program under the normal condition, namely the trigger signal received by the single chip microcomputer has no tooth sequence, the signal with the wrong tooth sequence is judged as an interference signal to be removed (even if the error signal is a continuous non-interference signal generated by the fault of the other trigger, 5 normal signals are abandoned, namely 1/12 circles of the electric control unit do not carry out the rotation speed signal acquisition, and the 1/12 circles of time are utilized to complete the fault judgment of the corresponding trigger).
In the case that neither trigger signal is missing, if the ratio of T1 and ST1 shown in fig. 5 is not within the set range, the signal is filtered as an interference normal signal.
And S4, calculating the engine speed.
Example of the principle of engine speed calculation (taking signal 5-1 of the master trigger in fig. 5 as an example):
two capturing timers of the single chip microcomputer have a common clock signal, when a falling edge of a first square wave signal 5-1 of a main trigger 5 arrives, interruption of the first capturing timer is triggered, the first capturing timer records a clock signal time number NEW when the signal arrives, a time length T1= NEW-OLD of the induction disc rotating from a previous tooth to the tooth can be obtained by subtracting the clock signal time number OLD (corresponding to 5-0 teeth in fig. 5) of the previous signal recorded in a storage unit, an included angle between two adjacent teeth is A degrees (A =6 degrees when the induction disc is not missing, A =18 degrees when the induction disc is missing), and an included angle between 5-1 teeth and 5-0 teeth is 18 degrees, so that the corresponding engine speed (unit: r/min) is:;
the engine speed calculation is performed in the main routine. And SP (i), (i = 1-60), when i =10 integral multiples, selecting the former 10 adjacent SP (i) values, removing the SP (i) value which is 0 (when the signal is judged to be the interference signal, the interrupt program sets the SP (i) value to be 0), removing a maximum value and a minimum value (signal filtering), finally obtaining the average value of the rest SP (i), substituting the average value into the T1 of the above expression, and obtaining 6 by A, thereby obtaining the rotating speed of the engine. The induction disc rotates for one circle, and the main program calculates the engine speed for 10 times.
The main functions of the main trigger interrupt program and the check trigger interrupt program are shown in table 1 and table 2:
TABLE 1 Main trigger interrupt program (first Capture timer interrupt program) function Table
Table 2 checking trigger interrupt program (second capture timer interrupt program) function table
The signal checking flag bit Er assignment principle is as follows:
as can be seen from the schematic diagram of the trigger signal waveform timing shown in fig. 5, when none of the two flip-flops corresponds to a missing tooth, the first square wave signal and the second square wave signal corresponding to the two flip-flops enter the electronic control unit in an interlaced manner (the trigger signal sequence received by the electronic control unit is: 5-1 of the first square wave signal → 4-1 of the second square wave signal → 5-2 of the first square wave signal → 4-2 of the second square wave signal → 5-3 of the first square wave signal → 4-3 of the second square wave signal →.. times.). By utilizing the characteristic, a trigger signal verification flag bit Er is designed, when a 5-1 signal interrupted by a first capture timer arrives, the initial value of the Er is set to be 61, for a subsequent signal, 1 is added to the Er when the signal is captured in the main trigger once, 1 is subtracted from the Er when the signal is captured in the auxiliary trigger once, when the first capture timer is interrupted and teeth are judged to be missing, the Er is reset to be 61, and when the second capture timer is interrupted and teeth are judged to be missing, the Er is reset to be 60. As shown in the following table, when there is no missing tooth, Er =61 in the interrupt program corresponding to the main flip-flop, Er =60 in the interrupt program corresponding to the verification flip-flop, and when the induction disc rotates to the 5 th, 6 th, 59 th and 60 th teeth, the two signals do not alternately enter the electronic control unit any more, so that Er continuous +1 of the 6 th and 7 th teeth in the first capture timer interrupt becomes 62 and 63, and Er continuous-1 of the 59 th and 60 th teeth in the second capture timer interrupt becomes 59 and 58. The Er values corresponding to the teeth of the induction disc rotating 1 turn under normal conditions are shown in Table 3.
TABLE 3 Er value table corresponding to each tooth of induction disk rotating 1 turn under normal condition
And (3) fault judgment principle:
when the trigger has faults such as short circuit or open circuit, the fault trigger cannot generate normal trigger signals, and the corresponding interruption cannot capture the falling edge of the pulse signal generated by the fault sensor, so that the trigger signals received by the electric control unit are changed from the trigger signals alternately sent by the two triggers into continuous signals generated by the one-way trigger, and the value of the trigger signal check mark Er can be continuously increased. When the electronic control unit receives 5 continuous signals from the same trigger, the electronic control unit sets the fault flag Per1 (Per 2) of the other trigger to 1.
The interference judging method has two methods:
(a) if the Er value generated in the single chip does not match the correct value in table 3, the trigger signal is determined to be a disturbance signal and eliminated (even if the error signal is a continuous non-disturbance signal generated by the fault of another trigger, 5 such normal signals are discarded, and the time period of these five continuous signals is used to complete the fault determination of the corresponding trigger).
(b) As can be seen from the schematic diagram of the trigger signal waveform in fig. 5, in the case of no missing tooth, the tooth interval between the tooth corresponding to the main trigger and the tooth corresponding to the verification trigger is only one tooth width, so the speeds of the two teeth are substantially the same, and if the ratio of T1 to ST1 corresponding to the two teeth is not within the range of 1 ± 10%, the two teeth are rejected as the interference normal signal. Through mutual verification of the two paths of signals, the electronic control unit can filter out a large part of interference signals. When the gear sequence i is determined to be an integral multiple of 10, the main routine calculates the engine speed. The specific signal processing program flow is shown in fig. 6, fig. 7 and fig. 8.
Fig. 6 is an illustration of the overall process of the electronic control unit processing the speed signal.
After the electric control unit is powered on, the single chip microcomputer is initialized, after all variables are initialized, the normal electronic injection control program is started to run, and when the engine runsWhen the trigger is started, the induction disc induces a trigger signal in the main trigger, and the falling edge of the first square wave signal processed by the electric control unit activates the interrupt program of the first capture timer to process the rotating speed signal of the main trigger. And after the processing is finished, exiting the interruption, returning to the main program, later verifying the trigger to generate a trigger signal, and activating the interruption program of the second capture timer by the falling edge of the second square wave signal processed by the electric control unit to process the rotation speed signal of the verification trigger. And after the processing is finished, exiting the interruption and returning to the main program. When the main program judges that the tooth sequence i is integral multiple of 10, the front 10 adjacent SP (i) values are selected, the SP (i) value which is 0 is removed, then a maximum value and a minimum value are removed (signal filtering), finally the average value of the rest SP (i) values is obtained, and the average value is substituted into a formulaT1, A in (r/min) is taken as 6, and the engine speed is determined. The induction disc rotates for one circle, and the main program calculates the engine speed for 10 times.
FIG. 7 is a first capture timer interrupt routine flow diagram, namely a master flip-flop signal processing routine flow diagram; the specific working steps are as follows (hereinafter, (1), (2), and (3).. the like. indicate the program step codes shown in fig. 7):
(2) when the engine starts, any tooth of the induction disc activates the main trigger to output a first sine wave signal, and the falling edge of the corresponding first sine wave signal triggers an interrupt program of a first capture timer in the single chip microcomputer; (3) the interrupt program captures a corresponding interrupt time NEW (the initial value of the OLD is initialized in the main program); (4) calculating the interval time T1 between the front and the rear teeth by the formula T1= NEW-OLD; (5) writing 'OLD' into NEW at the current interrupt time, and calculating corresponding two-tooth interval time T1 for the next tooth; (6) judging whether the RUN is equal to 0 or not; if RUN =0 indicates that the engine starts to start, the electronic control unit executes the step (7) to capture a first trigger signal, sets the start flag position RUN to 1, quits the interruption, and judges the missing teeth after waiting for the arrival of the next tooth; if RUN ≠ 0, then step (8) is executed to judge whether the missing tooth flag LOST _ FIRST is equal to 1 (the electronic control unit processes the rotating speed signals, starting from the FIRST missing tooth of the induction disc, and defining the tooth sequence of the FIRST missing tooth as i = 1); if the FIRST missing tooth flag LOST _ FIRST ≠ 1, it indicates that the electronic control unit does not detect missing tooth, and executes step (9) to judge missing tooth according to the formula T1>2 × T0 (as shown in FIG. 5, the time for rotating missing tooth is more than twice of the previous tooth); if T1 is not more than 2T 0, the rotation time T1 of the current tooth is executed to write T0, the step (10) is returned to (1) to interrupt waiting, the tooth missing judgment is carried out again after waiting for the next tooth, and the process is repeatedly circulated until the tooth T1 is more than 2T 0; when T1>2 × T0 indicates that the FIRST missing tooth determination is successful, step (11) is executed to set the FIRST missing tooth flag LOST _ FIRST to 1, (12) the tooth number counter i is set to 1, that is, the 1 st tooth after missing tooth is defined as the 1 st tooth; (13) initializing a signal checking mark bit Er to 61; (14) the value of T1 is assigned to T0; (16) the T1 value is given to an engine speed calculation array SP (i) exit interruption; if the FIRST missing tooth flag is LOST _ FIRST =1, which indicates that the missing tooth of the FIRST turn has been successfully judged, executing step (17) to judge whether the currently received signal is a missing tooth signal of a subsequent turn by using a formula T1>2 × T0, and if the currently received signal is a missing tooth signal of a subsequent turn, executing steps (12), (13), (14), (16), resetting i and Er (i =1, Er = 61), T0= T1, sp (i) = T1, and then exiting interruption; if the FIRST missing tooth flag LOST _ FIRST =1 and the current tooth is not a missing tooth signal, executing step (18) to judge whether the checking trigger fault flag Per2 is equal to 1, Per2=1 indicates that the checking trigger is faulty, entering the running state of the single-master trigger by the FIRST capturing timer interrupt program, no longer performing fault judgment on the checking trigger and judgment according to the interference signal of the tooth sequence, jumping to steps (15), (14), (16) and (1), adding 1 to a tooth sequence counter i, and giving values of T0= T1 and T1 to SP (i) and then exiting the interrupt program; the above is a flow of the main trigger running alone when the check trigger fails.
(19) If the check trigger fault flag bit Per2=0, it indicates that the check trigger has no fault, and the current tooth corresponds to a tooth that is not missing, the fault judgment program is run, and the check trigger continuous signal flag bit K2 is set to 0 (when the check trigger interrupt program reads that K2=0, it indicates that the last signal entering the single chip microcomputer is a main trigger signal, and is not a continuous signal from the check trigger); (20) a signal checking flag bit Er = Er + 1; (21) judging whether the tooth sequence is normal or not, when Er =61 or i =6 and Er =62 or i =7 and Er =63 indicate that the tooth sequence is normal, the program runs the steps (15), (14) and (16) and the tooth sequence counter i is added with 1, and the values of T0= T1 and T1 are given to the SP (i) exit interrupt program; when Er is not a normal value, executing a step (22) to judge whether a flag bit K of continuous signals of the main trigger is equal to 1 (the flag bit is 0 in the verification trigger, when the interruption program of the main trigger reads K =0, the last signal entering the single chip microcomputer is a verification trigger signal, and if K =1, the last signal entering the single chip microcomputer is also the main trigger signal); if K =1, executing steps (23), (24) adding 1 to the abnormal continuous signal counter Kn of the main trigger and judging whether Kn is equal to 5; if Kn is not equal to 5, the current main trigger signal exits the interrupt program after the interference processing (the main trigger signal processing method is that the tooth number counter is not added with 1, and T1 is not put into the rotating speed calculation array Sp (i)); if Kn =5, executing step (25) to show that the main trigger receives 5 continuous signals, processing the 5 signals as interference signals to be filtered, setting the fault bit 'Per 2' of the verification trigger to 1, informing the electronic control unit that the verification trigger is in fault, and when the main trigger signal arrives next time, the first capture timer interrupt program enters the running state of the single main trigger. If K is not equal to 1, the current interrupt is judged to receive a single trigger signal which is not continuous, but the Er value is not matched with the tooth sequence, so that the signal is used as an interference signal to be filtered; after the steps (26) K =1, (27) Er =61, and (28) Kn =0 are executed, an interrupt is issued, and the purpose of resetting these variables is to facilitate the next interference and fault judgment.
FIG. 8 is a flow chart of a second capture timer interrupt routine, i.e., a check trigger signal processing routine; the specific working steps are as follows (the following serial numbers such as [1], [2], [3]. said. [35] refer to the program step codes shown in fig. 8):
[2] the induction disc induces a sine wave signal on the verification trigger, and the falling edge of a corresponding second square wave signal triggers an interrupt program of a second capture timer of the single chip microcomputer; [3] the interrupt program captures a corresponding interrupt time NEW2 (the initial value of OLD2 is initialized in the main program); [4] calculating a front and rear two-tooth space interval time ST1 by the formula ST1= NEW2-OLD 2; [5] writing the current interrupt time NEW into 'OLD 2' for calculating the corresponding two-tooth interval time ST1 for the next tooth; [6] judging whether the RUN is equal to 0 or not; RUN =0 represents that the engine starts to start, the electronic control unit captures a first trigger signal, and then the step [7] is executed to set the start flag RUN to 1, and then the step [1] is returned to interrupt waiting; if RUN ≠ 0, executing step [8] to judge whether the missing tooth flag LOST _ FIRST is equal to 1; if the FIRST missing tooth flag LOST _ FIRST ≠ 1, executing a step [9] to judge whether the tooth is a missing tooth by using a formula ST1>2 × ST 0; if ST1 no more than 2 ST0, the rotation time ST1 of the current tooth is executed step [10] and written in ST0, then the step [1] is returned to interrupt waiting, and the tooth missing judgment is carried out again after waiting for the next tooth; if ST1>2 × ST0 indicates that the FIRST missing tooth judgment is successful, step [11] is executed to set the FIRST missing tooth flag LOST _ FIRST to 1 and [12] the tooth number counter i to 1, namely the FIRST tooth after missing tooth, as the 1 ST tooth; [13] the value of ST1 is given to ST 0; [14] the ST1 value is given to an engine speed calculation array SP (i) exit interruption; in the case that the missing tooth flag LOST _ FIRST is equal to 1, executing step [15] to determine whether Per1 is equal to 1; if Per1 is equal to 1, namely the main trigger has a fault, executing step [16] to judge whether the received signal corresponds to the missing tooth of the subsequent ring; if not, executing the steps [17] that the gear sequence counter i = i +1, [13] that the value of ST1 is assigned to ST0 and [14] that the value of ST1 is assigned to the engine speed calculation array SP (i) and backing-out interruption; if Per1 equals 1 and the current tooth is missing, perform steps [12], [13], [14] back out interrupt. The program flow when the main trigger has a fault and the check trigger runs independently is shown above.
When Per1 ≠ 1, i.e. the master flip-flop has no fault, the interrupt program performs the endian 59, 60 counting, timing, master flip-flop fault determination and disturbance determination programs. The method comprises the following specific steps:
[18] the flag bit K of the continuous signal of the main trigger is set to be 0 (when the interrupt program of the main trigger reads K =0, the signal which enters the singlechip is the signal of the check trigger and is not the continuous signal from the main trigger); [19] a signal checking mark bit Er = Er-1; [20] judging whether the tooth sequence counter i is more than or equal to 58; if i is larger than or equal to 58, executing step [21] tooth sequence counter i = i +1 (when 58 teeth are reached, the 59 th tooth and the 60 th tooth are marked in the verification trigger because the main trigger corresponds to the missing tooth); [22] the value of ST1 is given to ST0 for possible missing tooth judgment; [23] the value of ST1 is given to SP (i); [24] directly jumping to step [24] if i <58 in [20] by inquiring whether Er is equal to 60 or i =59 and Er =59 or i =60 and Er =58 to judge whether the signal is in normal tooth sequence; if Er is not the corresponding value, executing a step [25] to judge whether K2 is equal to 1 or not, wherein K2 is a flag bit of an abnormal continuous signal of the verification trigger, and 0 is set in an interruption program of the main trigger, and if K2=0 at this time indicates that the last signal received by the electronic control unit is not a continuous signal from the verification trigger, [26] K2 is set to 1, [27] Er is reset to 60, [28] K2n is reset to 0, [34] a rotating speed calculation unit SP (i) collected by the main trigger is set to 0 (when a main program finds that SP (i) is equal to 0, the rotating speed calculation unit is automatically filtered), [35] a tooth sequence counter i is reduced by 1 (the interference signal collected by the main trigger is removed), and interruption exits; if K2=1, it indicates that the electronic fuel injection control unit receives a continuous abnormal tooth sequence signal from the check trigger, then the steps [29], [30] are executed to check that the trigger is abnormal, and the counter K2n is added with 1 and judge whether K2n is equal to 5; if K2n ≠ 5, the program jumps to [34] and [35], and exits the interrupt program after the currently stored master trigger signal is processed as the interference signal; if K2n =5, it means that the main trigger receives 5 continuous signals, then step [31] is executed to set the fault bit Per1 of the main trigger to 1, and the electronic control unit is informed that the main trigger is in fault, when next time the check trigger signal arrives, the second capture timer interrupt program enters the single check trigger operating mode, and the program continues to [34] and [35] to quit the interrupt program after the main trigger signal stored currently is processed by the interference signal.
If the tooth sequence judged in the step [24] is normal, executing a step [32] to judge whether the main trigger and the verification trigger have a corresponding missing tooth by inquiring whether i is equal to 5, 6, 59 and 60, and directly quitting the interrupt program without interference judgment under the condition of missing tooth; when the main trigger and the check trigger are not missing teeth, the execution step [33] judges the interference signal through a formula of SP (i) < SP (i) >/ST 1 < 1.1, the main program directly adopts SP (i) collected by the main trigger as a rotating speed calculation unit to quit the interrupt program, the judgment that the formula is not met is the interference signal, and the execution steps [34] and [35] take the currently stored main trigger signal out of the interrupt program after the interference signal is processed.
Claims (9)
1. A magnetoelectric double-trigger electronic injection engine rotating speed signal acquisition system is characterized by comprising an electric control unit and a signal acquisition mechanism, wherein the signal acquisition mechanism comprises a crankshaft connecting rod (1), a mounting bracket (2), an induction disc (3), a verification trigger (4) and a main trigger (5), the crankshaft connecting rod (1) and the mounting bracket (2) are mounted on an engine body, the induction disc (3) is mounted on the crankshaft connecting rod (1) and rotates along with the crankshaft connecting rod (1), the main trigger (5) and the verification trigger (4) are mounted on the mounting bracket (2), the central lines of mandrels of the main trigger (5) and the verification trigger (4) and the central line of a convex tooth of the induction disc (3) are on the same plane, and a gap is reserved between the mandrels and the convex tooth; the main trigger (5) and the check trigger (4) are used for acquiring the rotating speed signal of the engine at intervals and transmitting the rotating speed signal to the electric control unit, and the electric control unit processes the rotating speed signal;
the electric control unit is internally provided with a single chip microcomputer, a double-path rotating speed signal processing chip, a first filter circuit and a second filter circuit, wherein a rotating speed signal output by the main trigger (5) is input to the double-path rotating speed signal processing chip after being filtered by the first filter circuit, and the double-path rotating speed signal processing chip converts the signal into a first square wave signal and outputs the first square wave signal to the single chip microcomputer; the rotating speed signal output by the calibration trigger (4) is filtered by a second filter circuit and then input to a double-path rotating speed signal processing chip, and the double-path rotating speed signal processing chip converts the signal into a second square wave signal and then outputs the second square wave signal to the single chip microcomputer for processing; when the main trigger (5) or the check trigger (4) breaks down, the single chip microcomputer is automatically switched into a single trigger operation mode, and the electronic control unit can be ensured to correctly identify the rotating speed of the engine.
2. A magnetoelectric dual-trigger electronic injection engine speed signal acquisition system according to claim 1, characterized in that the induction disk (3) consists of 60-2 teeth, and the convex teeth are evenly distributed.
3. A magnetoelectric double-trigger electronic injection engine rotating speed signal acquisition method is characterized by comprising the following steps:
s1, when the convex teeth on the induction disc (3) pass through the main trigger (5) and the verification trigger (4), the main trigger (5) and the verification trigger (4) respectively generate a sine wave signal, and the main trigger (5) and the verification trigger (4) send the respective sine wave signals to the electric control unit according to the time sequence;
s2, a first filter circuit and a second filter circuit of the electric control unit respectively filter sine wave signals output by a main trigger (5) and a check trigger (4), and a double-path rotating speed signal processing chip respectively converts the two paths of filtered sine wave signals into a first square wave signal and a second square wave signal and outputs the first square wave signal and the second square wave signal to a single chip microcomputer in the electric control unit;
s3, the sine wave signal output by the main trigger (5) triggers an interrupt program of a first capture timer in the single chip microcomputer corresponding to the falling edge of the first square wave signal, the interrupt program finishes the acquisition of the time required by the rotation of the induction disc (3) from the previous tooth to the current tooth, and judges whether the check trigger (4) has a fault or not, if the fault is judged, the operation mode is switched to a single main trigger (5), and meanwhile, whether the signal acquired by the main trigger (5) is an interference signal or not is judged, and if the signal is the interference signal, the signal is filtered; the sine wave signal output by the check trigger (4) triggers an interrupt program of a second capture timer in the single chip microcomputer corresponding to the falling edge of the second square wave signal, the interrupt program finishes the acquisition of the time required by the rotation of the induction disc (3) from the previous tooth to the current tooth, judges whether the main trigger (5) has a fault or not, and switches to the operation mode of the single check trigger (4) when the main trigger (5) is judged to have the fault; the interrupt program simultaneously judges whether the sine wave signal output by the main trigger (5) is an interference signal, and filters the found interference signal;
and S4, calculating the engine speed.
4. A method for acquiring a rotational speed signal of a magnetoelectric dual-trigger electronic injection engine according to claim 3, wherein in step S1, the main trigger (5) and the check trigger (4) are mounted on the mounting bracket (2) and fixed, the induction disc (3) rotates with the crankshaft connecting rod (1), when the convex teeth on the induction disc (3) pass through the main trigger (5) or the check trigger (4), the gap between the spindle inside the main trigger (5) or the check trigger (4) and the convex teeth on the induction disc (3) becomes smaller, and the magnetic field in the coil inside the main trigger (5) or the check trigger (4) is changed, and the changed magnetic field induces a changed electric field in the trigger coil, thereby generating a sine wave signal; after a first square wave signal generated by the sine wave signal of the main trigger (5) is captured and processed by the first capture timer, a second square wave signal generated by the sine wave signal of the verification trigger (4) enters the second capture timer.
5. The method for acquiring the speed signal of the magnetoelectric dual-trigger electronic fuel injection engine according to claim 3, wherein in step S3, under the condition that neither the main trigger (5) nor the check trigger (4) corresponds to the missing tooth of the induction disc (3), square wave signals corresponding to sine wave signals of the two triggers alternately enter the electronic control unit; when the main trigger (5) or the verification trigger (4) rotates to the tooth missing position of the induction disc (3), the square wave signal corresponding to the sine wave signal of the trigger which does not correspond to the tooth missing continuously enters the electric control unit;
when the main trigger (5) or the verification trigger (4) has short circuit or open circuit faults, the trigger signal received by the electric control unit is a continuous signal generated by the one-way trigger, and when the electric control unit receives 5 continuous signals from the same trigger, the other trigger is judged to have faults.
6. The method of claim 3, wherein in step S3, when the single chip microcomputer finds that the received trigger signal is not in the correct tooth sequence, the signal with the wrong tooth sequence is determined as an interference signal and removed;
and under the condition that the two trigger signals are not missing teeth, if the ratio of the interval time T1 between the motion of the convex teeth on the induction disc (3) corresponding to the main trigger (5) and the verification trigger (4) and the interval time ST1 is not in a set range, filtering the signals as interference constant signals.
7. The method of claim 3, wherein the step S3 of determining the fault and disturbance in the interruption procedure of the first capturing timer is specifically as follows:
s311, under the condition that the main trigger (5) corresponds to a non-missing tooth, judging whether a fault flag bit Per2 of the check trigger (4) is equal to 1, wherein the fact that the check trigger (4) has a fault is equal to 1 indicates that the check trigger (4) has the fault, automatically switching the program to a single operation mode of the main trigger (5), and not performing fault diagnosis on the check trigger (4) and eliminating interference signals according to a tooth sequence; when Per2 is equal to 0, starting signal interference judgment of the main trigger (5) and fault diagnosis of the check trigger (4);
s312, setting a flag bit K2 of a continuous signal of the check trigger (4) to be 0, and when reading K2=0 in an interrupt program of the check trigger (4), indicating that a last signal entering the single chip microcomputer is a signal of the main trigger (5) and is not a continuous signal from the check trigger (4);
s313, checking a flag bit Er = Er + 1; the initial value of Er is 60, 1 is added in the main trigger (5), 1 is subtracted in the verification trigger (4), if the signal entering the single chip microcomputer is a normal staggered signal, the median value of Er in the main trigger (5) is 61, and the median value in the verification trigger (4) is 60;
s314, judging whether the Er value is in the following three conditions: er =61, i =6, Er =62, i =7 and Er =63, if the tooth sequence is normal, the currently acquired T1 value is written into the rotation speed calculation array SP (i), and the tooth number counter i = i + 1; if not, processing as an interference signal, not adding 1 to the tooth number counter i, and not writing the T1 value into the rotating speed calculation arrays SP (i) and T0;
s315, judging whether a flag bit K of a continuous signal of a main trigger (5) is equal to 1, if K =0, indicating that a previous signal received by the single chip microcomputer comes from a check trigger (4), so that the check trigger (4) is judged to have no fault, directly assigning K to 1, assigning Er to 61, and jumping out of the main trigger (5) and interrupting after an abnormal continuous signal counter Kn of the main trigger (5) is assigned 0, and returning to a main program; if K =1, it shows that the previous signal received by the single chip is also from the main trigger (5), and the main trigger (5) adds 1 to the abnormal continuous signal counter Kn;
s316, judging whether a counter Kn of the abnormal continuous signals of the main trigger (5) is equal to 5 or not, if Kn =5, the single chip microcomputer receives 5 abnormal continuous signals from the main trigger (5), judging that the verification trigger (4) has no signal output, marking the verification trigger (4) as a fault trigger, setting a fault position 'Per 2' of the verification trigger (4) to be 1, jumping out of the interrupt, and returning to a main program.
8. The method of claim 3, wherein the second capturing of the fault and interference determination procedure in the timer interrupt procedure in step S3 is specifically:
s321, judging whether the fault flag bit Per1 of the main trigger (5) is equal to 1, wherein the fact that the main trigger (5) has a fault is judged, automatically jumping to a single running mode of a check trigger (4) by a program, and no longer performing fault diagnosis and interference signal judgment on the main trigger (5); when Per1 is equal to 0, starting the signal interference judgment and fault diagnosis of the main trigger (5);
s322, checking a mark bit Er = Er-1;
s323, judge whether the number of teeth counter i is greater than or equal to 58, if greater than 58, explain that the main flip-flop (5) begins to correspond to the missing tooth, so the counting function of 59 teeth and 60 teeth and interval time calculation of two teeth are undertaken by the check flip-flop (4), the number of teeth counter i is increased by 1, SP (i) = ST1, ST0= ST 1; if i is less than 58, jumping to step S324;
s324, judging whether the Er value is in the following three conditions: er =60, i =59 and Er =59, i =60 and Er = 58;
if the Er value is normal, continuously judging whether i is one of 5, 6, 59 and 60, if so, directly jumping out for diagnosis by a trigger corresponding to the missing tooth, and returning to the main program; if i is not one of 5, 6, 59 and 60, judging the interference signal of the main trigger (5) by using SP (i)/ST (1) of 0.9 ≦ 1.1; normal signals are met with inequality conditions, and interference signals are not met with the inequality conditions; if the interference signal is detected, setting a rotating speed calculating unit SP (i) acquired by the main trigger (5) to be 0, and backing 1 the tooth number counter, so that the interference signal is not counted into the normal tooth number; if the signal is not an interference signal, exiting the interruption and returning to the main program;
if the Er value is abnormal, executing the step S325;
s325, judging whether a continuous signal flag bit K2 of the verification trigger (4) is equal to 1, if K2=0, indicating that a previous signal received by the single chip microcomputer is from the main trigger (5), so that the main trigger (5) is judged to have no fault, directly assigning 1 to K2 and 60 to Er, and jumping out of the interrupt after an abnormal continuous signal counter K2n of the verification trigger (4) is assigned 0, and returning to a main program; if K2=1, it indicates that the previous signal received by the single chip microcomputer also comes from the verification trigger (4), and the verification trigger (4) adds 1 to the abnormal continuous signal counter K2 n;
s326, judging whether an abnormal continuous signal counter K2n of the check trigger (4) is equal to 5 or not, if K2n =5, the single chip microcomputer receives 5 abnormal continuous signals from the check trigger (4), judging that the main trigger (5) has no signal output, marking the main trigger (5) as a fault trigger, setting a fault position 'Per 1' of the check trigger (4) to be 1, jumping out of the interrupt, and returning to a main program.
9. The method of claim 3The method for acquiring the rotating speed signal of the magnetoelectric double-trigger electronic injection engine is characterized in that the method for calculating the rotating speed of the engine in the step S4 comprises the following steps: two capturing timers of the single chip microcomputer have a common clock signal, when a falling edge of a first square wave signal corresponding to a main trigger (5) arrives, interruption of the first capturing timer is triggered, the first capturing timer records a clock signal time number NEW when the signal arrives, a time duration T1= NEW-OLD when the induction disc (3) rotates from a previous tooth to the tooth is obtained by subtracting the clock signal time number OLD of the previous signal recorded in a storage unit, an included angle between two adjacent teeth is A degrees, A =6 degrees when the induction disc does not lack the tooth, A =18 degrees when the induction disc lacks the tooth, and the corresponding engine rotating speed is as follows:;
the engine speed is calculated in a main program, wherein SP (i) and [ i = 1-60 ], when i =10 integral multiples, the former 10 adjacent SP (i) values are selected, the SP (i) value which is 0 is removed, the maximum value and the minimum value are removed, finally the average value of the rest SP (i) values is obtained, the average value is substituted into T1 of the formula, A is 6, the engine speed is obtained, the induction disc (3) rotates for one circle, and the main program calculates the engine speed for 10 times.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010370069.9A CN111255566B (en) | 2020-05-06 | 2020-05-06 | System and method for acquiring rotating speed signal of magnetoelectric double-trigger electronic injection engine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010370069.9A CN111255566B (en) | 2020-05-06 | 2020-05-06 | System and method for acquiring rotating speed signal of magnetoelectric double-trigger electronic injection engine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111255566A true CN111255566A (en) | 2020-06-09 |
CN111255566B CN111255566B (en) | 2020-09-25 |
Family
ID=70950020
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010370069.9A Active CN111255566B (en) | 2020-05-06 | 2020-05-06 | System and method for acquiring rotating speed signal of magnetoelectric double-trigger electronic injection engine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111255566B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101915173A (en) * | 2010-07-22 | 2010-12-15 | 中国船舶重工集团公司第七一一研究所 | IP (Internet Protocol) core for acquiring rotating angle information of engine |
CN202216963U (en) * | 2011-09-06 | 2012-05-09 | 深圳市科创达微电子有限公司 | Front end detection processing device of rotating body |
GB2518238A (en) * | 2013-09-17 | 2015-03-18 | Mbe Systems Ltd | Engine starting system |
CN105424966A (en) * | 2015-12-11 | 2016-03-23 | 中国航空工业集团公司西安航空计算技术研究所 | Engine rotating speed measurement circuit and method |
SE1451265A1 (en) * | 2014-10-23 | 2016-04-24 | Scania Cv Ab | Device for detecting speed of a rotatable element, method and vehicle |
CN106382165A (en) * | 2016-11-25 | 2017-02-08 | 北京理工大学 | On-line fault detection method and system for diesel engine |
-
2020
- 2020-05-06 CN CN202010370069.9A patent/CN111255566B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101915173A (en) * | 2010-07-22 | 2010-12-15 | 中国船舶重工集团公司第七一一研究所 | IP (Internet Protocol) core for acquiring rotating angle information of engine |
CN202216963U (en) * | 2011-09-06 | 2012-05-09 | 深圳市科创达微电子有限公司 | Front end detection processing device of rotating body |
GB2518238A (en) * | 2013-09-17 | 2015-03-18 | Mbe Systems Ltd | Engine starting system |
SE1451265A1 (en) * | 2014-10-23 | 2016-04-24 | Scania Cv Ab | Device for detecting speed of a rotatable element, method and vehicle |
CN105424966A (en) * | 2015-12-11 | 2016-03-23 | 中国航空工业集团公司西安航空计算技术研究所 | Engine rotating speed measurement circuit and method |
CN106382165A (en) * | 2016-11-25 | 2017-02-08 | 北京理工大学 | On-line fault detection method and system for diesel engine |
Also Published As
Publication number | Publication date |
---|---|
CN111255566B (en) | 2020-09-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108226761B (en) | Method for real-time acquisition and alternate self-inspection of speed of rail transit vehicle | |
CN108561235B (en) | Engine progress control method and device | |
CN111255566B (en) | System and method for acquiring rotating speed signal of magnetoelectric double-trigger electronic injection engine | |
CN107179418A (en) | Use the Speed Detection Technology in multi task process path | |
CN111948557A (en) | Method and device for detecting electric quantity of battery | |
CN111120128B (en) | Engine synchronization detection method and device | |
CN114095724A (en) | Method for realizing and detecting rolling line period of TDICMOS (time domain coherent ICMOS) | |
DK1500026T3 (en) | Fault-tolerant device and method for determining a speed of rotation of a gear | |
CN111042940B (en) | Detection method, device, system and equipment of engine crankshaft | |
CN109782013B (en) | Motor speed measuring method and device, readable storage medium and electric equipment | |
CN1794000A (en) | Monitoring device of power generator real time power angle | |
CN114879033A (en) | Motor fault detection method, system and storage medium | |
CN111830429B (en) | Ground fault detection method and device for power system | |
CN105510827B (en) | Method and device for monitoring working state of stepping motor and air conditioner controller | |
CN106685279A (en) | Method and device for detecting Hall signals of motor | |
CN112816732A (en) | Detection device for detecting rotation of low-speed diesel engine | |
CN117705452B (en) | Fault detection method and device for pulsation buffer and engine control system | |
RU2082088C1 (en) | Method of measurement of angular position of shaft | |
CN115166284A (en) | Frequency signal acquisition system and frequency signal acquisition method | |
JP3330426B2 (en) | Method for detecting one rotation signal of encoder and encoder | |
JPS63185120A (en) | Pulse number abnormality detecting method | |
JP3621171B2 (en) | Crank angle detection device | |
JP2997281B2 (en) | Ignition control device | |
CN114813149A (en) | Phase measurement method and device | |
SU864290A1 (en) | Malfunction signal registering device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20201110 Address after: Jiangning District Lake Industrial Zone Shu Zhen Road Nanjing City, Jiangsu Province, Raj 211121 No. 518 Patentee after: Nanjing Jincheng Machinery Co.,Ltd. Patentee after: Jincheng Group Co.,Ltd. Address before: Raj road cooked Industrial Park Jiangning Lake in Nanjing city Jiangsu province 211121 No. 518 Patentee before: Nanjing Jincheng Machinery Co.,Ltd. |
|
TR01 | Transfer of patent right |