Background of the Invention
1. Field of the Invention
The present invention relates to an electronic control apparatus for an air-bag system, especially to an electronic control apparatus for an air-bag system with a capability of diagnosing accurately whether or not a back-up power is normal.
2. Description of the Related Art
In recent years, air-bag systems have been widely used for protecting passengers in a crash. As it is necessary for an air-bag to definitely expand when a crash occurs, but never to expand under normal circumstances, an electronic control apparatus using a microcomputer system is generally used as a control apparatus for the air-bag system. In the system, a capacitor having a large capacitance is provided to function as a back-up power source in the event that a battery that normally provides power is failed. The back-up capacitor is normally charged by the battery, and the electronic control apparatus is powered by the back-up capacitor if the battery is failed.
FIG. 6 shows a functional diagram of a conventional electronic control apparatus for an air-bag system. In the figure, a controller 63 is connected to the plus terminal of a battery 61 through an ignition switch 62. A back-up capacitor 64 is connected in parallel to the controller 63 through a diode 65 and charging resistor 66 which are connected in parallel with each other. When the battery 61 is operating normally, it supplies electric power to the controller 63 through the ignition switch 62, and charges the back-up capacitor 64 through the charging resistor 66. The direction of current flow is indicated by a solid arrow (a). If the terminal voltage Vb of the battery 61 drops or the connection is somehow broken, the charge stored in the back-up capacitor 64 is used to supply power to the controller 63 through the diode 65 to ensure minimal functioning. The direction of this current flow is indicated by a dotted arrow (b).
The controller 63 incorporates a diagnosing routine which diagnoses whether or not the back-up capacitor 64 is normal. This routine is executed each time the ignition switch 62 is turned on.
The conventional diagnosing scheme is to monitor the charge time of the capacitor to reach a voltage Vc, and judge that the back-up capacitor 64 is normal if the time required from the beginning of the diagnosis when the capacitor voltage Vc is at minimum, to the end of the diagnosis when Vc reaches its maximum value, is within a predetermined time interval.
If the back-up capacitor 64 becomes open, for example, if the lead wire 67 becomes disconnected, the capacitor voltage Vc reaches the terminal voltage Vb of the battery 61 immediately after the ignition switch 62 is turned on. Therefore, this kind of failure is detectable. If the back-up capacitor 64 becomes shorted, the capacitor voltage Vc does not increase after the ignition switch 62 is turned on. Therefore, this kind of failure is also detectable.
The controller 63, however, may spontaneously begin its diagnosis if it is reset by an extraneous noise, since it cannot determine whether a reset signal comes from the ignition switch 62 or is merely an extraneous noise. However, since discharging of the back-up capacitor 64 is not caused by an extraneous noise, the capacitor voltage Vc remains at the battery voltage Vb, so the diagnosis erroneously detects an open failure.
Summary of the Invention
Therefore, the object of the present invention is to provide an electrical control apparatus for an air bag system capable of inhibiting diagnosis of a back-up capacitor when a diagnosing routine is initiated by an extraneous noise.
The electrical control apparatus for an air bag system according to the present invention comprises a means for diagnosing the status of back-up capacitors each time a reset signal is input; a means for determining whether or not a reset signal was initiated by an ignition switch being operated, before allowing the diagnosing means to starts the diagnosis of the back-up capacitor; and a means for controlling the operation of the diagnosing means so that the diagnosis is carried out only when a reset signal is initiated by the ignition switch, and is otherwise inhibited.
According to the present invention, the diagnosis of a back-up capacitor is initiated when the controller is reset by the ignition switch, and the diagnosis is inhibited when the controller is reset in any other way.
Brief Description of the Drawings
The present invention will be more clearly understood from the description set forth below with reference to the accompanying drawings.
FIG. 1 is a circuit diagram of the embodiment of the present invention.
FIGS. 2 and 3 are a flowchart of the main routine of the control apparatus of the present invention.
FIG. 4 is a flowchart of an inspection routine.
FIG. 5 is a graph showing a charging curve.
FIG. 6 is a functional circuit diagram of a prior art electronic control apparatus for an air bag system.
Description of the Preferred Embodiment
FIG. 1 is a circuit diagram of the embodiment of the electrical control apparatus for an air bag system according to the present invention. In the figure, a battery 11 supplies electric power to a microcomputer system 13 though an ignition switch 12, a bus 121 and a voltage regulator 122. Note, the voltage regulator 122 regulates the terminal voltage of the battery 11, which is about 12 Volts, to the voltage 10 supplied to the microcomputer system 13, which is S Volts.
Furthermore, in order to increase the reliability of the bus 121, the battery 11 is connected to the bus 121 through an accessory twitch 111 and a DC-DC converter 112. Note, the DC-DC converter 112 is provided to maintain the voltage on the bus 121 if the terminal voltage of the battery 11 drops. A connection between the accessory switch 111 and the regulator 122 is also provided.
Two (2) back-up capacitors 141, 142 are connected to the bus 121 through discharge diodes 151, 152 and discharge resistors 161, 162. Series connected voltage dividing resistors 181, 182 are connected in parallel with the two back-up capacitors 141, 142. The microcomputer system 13 is comprised of a CPU 132, an A/D converter 133, a non-volatile memory (ROM) 134 and a volatile memory (RAM) 135, which are connected to a data-bus 131.
FIGS. 2 and 3 are a flowchart of the main routine stored in the non-volatile memory (ROM) 134. This main routine is executed every time the CPU 132 is reset. In the routine, data is read out from a specific address in the volatile memory (RAM) 135 at a step and it is determined at a step 22 whether or not this data has the same value as a predetermined fixed value. If the data has the same value as the fixed value, it is determined that the CPU 132 has been reset by an extraneous noise. That is because, when the CPU 132 is reset by an extraneous noise, electric power is continuously supplied to the microcomputer, so the data stored in the volatile memory 135 is not lost, and it is therefore determined that the data has the same value as the fixed value. If the result of the step 22 is affirmative, the control proceeds to a step 23, which resets an ignition flag IG.
On the other hand, if the result of the step 22 is negative, it is determined that the CPU 132 has been reset by the ignition switch 12 being turned on again after having been turned off. This is because, once the ignition switch 12 is turned off, the data stored in the volatile memory 135 is lost so its value is not the same as the value of the fixed value.
The control proceeds to a step 24 which stores the fixed value in the specific address of the volatile memory 135, and it is again determined at a step 25 whether or not the data read out from the specific address of the volatile memory 135 has the same value as the fixed value.
If the result of the step 25 is negative, it is determined that the volatile memory 135 has failed.
On the other hand, if the result of the step 25 is affirmative, it is determined that the volatile memory 135 is normal and the control proceeds to a step 26, which sets the ignition flag IG.
After the processes of the step 23 and the step 26 are finished,the control proceeds to FIG. 3.
At a step 31, it is determined whether or not the ignition flag IG is set, and if the ignition flag IG is not set, the control proceeds directly to a step 38 because the condition for diagnosing the back-up capacitors 141, 142 is not satisfied. If the result of the step 31 is affirmative, it is determined whether or not the DC-DC converter 112 is normal by determining whether or not a voltage Vd which is proportional to an output terminal voltage Of the DC-DC converter 112, is higher than a first predetermined voltage (for example, 10V) at a step 32. If the result of the step 32 is affirmative, the control proceeds directly to the step 38 without diagnosing the back-up capacitors 141, 142. If the result of the step 32 is negative, it is determined whether or not the battery 11 is normal by determining whether a voltage Vx which is proportional to a terminal voltage Vb of the battery 11 is higher than a second predetermined voltage (for example, 6 V) at a step 33. If it is determined that the battery 11 is not normal, the control proceeds directly to step 38 without diagnosing the back-up capacitors 141, 142.
Note, when it is determined that the DC-DC converter 112 or the battery 11 is abnormal, they are diagnosed by another diagnosing routine (not shown).
If the result of the step 33 is affirmative, the control proceeds to a step 34 which determines whether or not a time t elapsed after the start of the main routine is longer than 100 ms and shorter than 200 ms. If the result of the step 34 is affirmative, the control proceeds to a step 35 which determines whether or not a monitored voltage Vs which is proportional to a terminal voltage of the back-up capacitors 141, 142, is higher than a high threshold voltage V.sub.H (for example, 9V). If the result of the step 35 is affirmative, the control proceeds to a step 36 which issues an alarm indicating that the monitored voltage Vs rises quickly because the connection to the back-up capacitors is cut and the back-up capacitors cannot be charged. The control then proceeds to a step 38.
If the result of the step 34 or the step 35 is negative, the control proceeds to a step 37 at which the back-up capacitors 141, 142 are checked, and the control then proceeds to the step 38. At the step 38, it is determined whether or not a predetermined time interval, for example 5 ms, has elapsed, and the control returns to the step 31 after that time interval elapses.
FIG. 4 is a flowchart of a routine executed in the step 37 of the main routine. First, the monitored voltage Vs is fetched at a step 371. At a step 372, it is determined whether or not the monitored voltage Vs rises to a low threshold voltage V.sub.L (for example 3 V). If the result of the step 372 is affirmative, the control proceeds to a step 373 which stores present time t.sub.NOW as an inspection starting time Ts. The control proceeds to a step 374. If the result of the step 372 is negative, the control proceeds directly to the step 374.
At the step 374, it is determined whether or not the monitored voltage Vs rises to the middle threshold voltage v.sub.M (for example 6V), and if affirmative, the control proceeds to a step 375 which stores present time t.sub.NOW as an inspection terminating time Te. The control then proceeds to a step 376.
A time interval .DELTA.T from Ts to Te is calculated at the step 376, and it is determined whether or not the time interval .DELTA.T is larger than a minimum time interval .DELTA.T.sub.L and shorter than a maximum time interval .DELTA.T.sub.K at a step 377. If the result of the step 377 is negative, the control proceeds to a step 378 which issues an alarm that the capacitance of the back-up capacitors has decreased excessively, and the control terminates.
If the result of the step 374 is negative, the control terminates directly because the back-up capacitors 141, 142 are already charged enough.
If the result of the step 377 is affirmative, the control terminates directly because the back-up capacitors 141, 142 are charged at a predetermined time constant.
FIG. 5 is a graph showing the charging curve of the back-up capacitors 141, 142. The abscissa denotes time and the ordinate denotes voltage. The charging voltage rises with a time constant determined from the resistance of the charging resistors 161, 162 and the capacitance of the back-up capacitors 141, 142. Therefore, when the back-up capacitors 141, 142 are normal, the monitored voltage Vs rises as shown by a solid line, and the time difference from the time when the monitored voltage Vs reaches the low threshold voltage V.sub.L to the time when it reaches the middle threshold voltage V.sub.M within the predetermined time interval. On the other hand, if the connections to the back-up capacitors 141, 142 become open, the monitored voltage Vs rises quickly over the high threshold voltage V.sub.H as shown by the dashed line after the ignition switch 12 is closed.
If the CPU 132 is reset by an extraneous noise, the main routine is initiated, but the ignition flag IG remains reset. Therefore, the alarm, which denotes that the connections to the back-up capacitors are open and the monitored voltage Vs rises quickly as shown by the dashed line because the back-up capacitors are not discharged by the diagnosing signal, is not issued.
According to the electrical control apparatus for an air-bag system of this invention, when the CPU is reset by an extraneous noise and the diagnosis of the back-up capacitors is initiated, a mis-diagnosis due to the back-up capacitors not discharging, is securely prevented.