CONTROL DEVICE FOR AN ELECTRICAL COMPONENT OF A VEHICLE
Patent Information
- Application Number
- DE102011114402
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2010-09-27
- Filing Date
- 2011-09-26
- Publication Date
- 2024-10-02
- Estimated Expiration
- 2031-09-26
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical area The present invention relates to a vehicle electrical component control device that controls an electrical component mounted in a vehicle and has a diagnostic function for determining whether or not an abnormality has occurred in the electrical component. State of the art A vehicle uses a variety of electrical components, such as a gas sensor, a glow plug, and a temperature sensor. A control device that controls such an electrical component has a diagnostic function to determine whether or not an abnormality has occurred in the electrical component. Generally, an abnormality diagnosis program, along with an electrical component control program and other programs, is installed in a ROM in a microcomputer mounted in a control device. Currently, such a control device is installed in various types of automotive engines controlled by various types of control systems. Therefore, the method of using an electrical component (for example, the application voltage, etc.) may vary depending on the type of engine to be used and the type of control system to be used. An abnormality diagnosis program having specifications suitable for the type of engine and the type of control system is designed and used. However, if a dedicated anomaly diagnosis program is developed for each combination of an engine type and a control system type, the development of the anomaly diagnosis program requires increased man-hours and labor. To solve this problem, a control device has been proposed in which an anomaly diagnosis program of object-oriented design is installed (see, for example, JP 2000-97810 A). That is, minimum unit programs (abnormality diagnosis functions) corresponding to various types of engines and / or control systems are designed, and an abnormality diagnosis program is prepared by combining necessary programs depending on an engine and a control system in which the abnormality diagnosis program is to be installed. US Pat. No. 7,788,005 B2 discloses a vehicle diagnostic system with an electronic control unit that performs a diagnostic process based on signals from vehicle devices to determine whether an abnormality exists in the vehicle. In this case, the control unit stores a diagnostic result if a corresponding storage flag is set to ON. The storage flag is set to ON upon a permission command from an external unit. The document DE 197 32 046 A1 discloses a technical process diagnostic system with several autonomous diagnostic types. Brief description of the invention However, the conventional control device has the following problem. For example, in some cases, the operation check of an abnormality diagnosis function and / or the durability test of an electrical component are performed while a control device is installed in a motor vehicle. In some cases, such a check is performed while a specific abnormality diagnosis function is temporarily disabled. In the case of the control device disclosed in Japanese Patent Application Laid-Open (kokai) No. 2000-97810, an abnormality diagnosis program is installed in the ROM of the control device. Therefore, when a specific abnormality diagnosis function is to be disabled, it is necessary to develop an abnormality diagnosis program that includes a new combination of abnormality diagnosis functions but does not include the specific abnormality diagnosis function, and to reinstall the abnormality diagnosis program. The present invention has been made to solve the problem described above, and its object is to provide a control device for an electrical component of a vehicle that can easily validate or invalidate any one of two or more abnormality determination processes. According to one embodiment of the present invention, a control device for an electrical component of a vehicle is provided, which executes at least one type of abnormality determination process, and which drives and controls the electrical component mounted on a vehicle. The control device includes a first storage section that stores the abnormality determination process; a second storage section, provided independently of the first storage section, that stores a determinant that determines whether the at least one type of abnormality determination process is valid or invalid; and a computing section for executing the abnormality determination process.When the computing section executes the at least one type of anomaly detection process, the computing section accesses the determinant stored in the second storage section and obtains a detection result of the anomaly detection process when the anomaly detection process is determined to be valid. The validity of at least one type of abnormality determination process is determined by referring to the determinant, and the determination result of the abnormality determination process is obtained only when it is determined to be valid. Therefore, only one correct determination result is obtained depending on the type of vehicle or the situation. That is, the computing section does not execute the abnormality determination process(es) that are determined to be invalid by referring to the corresponding determinant(s). And since the first storage section that stores the at least one of the abnormality determination processes and the second storage section that stores the determinant are different from each other (provided independently of each other), it suffices to store the determinant(s) stored in the second storage section.are to be changed in order to obtain a determination result from a desired abnormality determination process(es). Accordingly, even if the abnormality determination process whose determination result is to be obtained changes depending on the type of vehicle or the situation, the plurality of processes stored in the first storage section do not need to be changed. Therefore, the contents of the first storage section do not need to be changed. Changing the processes may require a technique for configuring the processes. In contrast, changing the state of the determinants does not require any technique and can be easily performed. Therefore, the determination result of a correct abnormality determination process according to the situation can be obtained. Preferably, in the mode of carrying out the present invention, the first storage section stores at least two types of anomaly determination processes; the second storage section stores at least two determinants, each of which is used to determine whether a corresponding one of the at least two types of anomaly determination processes is valid or invalid; and the calculation section is configured such that, when each of the anomaly determination processes is executed by the calculation section, the calculation section accesses the corresponding determinant stored in the second storage section and obtains a determination result of the anomaly determination process when the anomaly determination process is determined to be valid. Since the first storage section stores at least two types of abnormality detection processes, and the second storage section, which is different from the first storage section, stores at least two determinants, each of which is used to determine whether a corresponding one of the at least two types of abnormality detection processes is valid or invalid, the abnormality detection process(es) desired by a user of the control device can be executed without changing the contents of the first storage section. This can increase the flexibility of the control device. In one embodiment of the present invention, the at least two types of abnormality determination processes may include a first check process for checking whether or not contents (e.g., all contents) of the first storage section are normal; and a second check process for checking whether or not at least one of a short circuit and a wire break has occurred on a connection line electrically connecting the control device and the electrical component. The operation of the control device can be checked from both the software and hardware perspectives by checking the contents of the first memory section and whether or not at least one of a short circuit and a wire break has occurred on the connecting line. Therefore, it becomes easier for a user to select the contents of the control device's anomaly detection process, and the flexibility of the control device itself can be increased. In one embodiment of the present invention, the computing section may be configured such that, when the computing section executes at least one type of the anomaly determination processes, the computing section performs the determination with reference to the determinant after performing a series of processing steps included in the one type of the anomaly determination processes, and obtains the result of the series of processing steps as the determination result of the one type of the anomaly determination processes when the one type of the anomaly determination processes is determined to be valid. Since the detection result of at least one type of anomaly detection process is obtained after executing a series of processing steps included in the anomaly detection process, the processing time of the anomaly detection process does not change much between the case where the determinant is set to a state representing "valid" and the case where the determinant is set to a state representing "invalid." Therefore, no delay is imposed on the wait times and timings at which other processes including other anomaly detection processes are executed. Even if the state(s) of a determinant(s) is / are temporarily changed, it is not necessary to perform a corresponding adjustment of the timing(s) of the corresponding process(es), etc.Therefore, setting the determinants can be done easily and time and labor can be saved. Short description of the drawings Fig. 1 is a block diagram showing the electrical configuration of a sensor control device 1. Fig. 2 is a diagram schematically showing the configuration of a storage area of an EEPROM 30. Fig. 3 is a flowchart of a ROM anomaly determination process. Fig. 4 is a flowchart of a ground short-circuit anomaly determination process. Fig. 5 is a flowchart of a battery short-circuit anomaly determination process. Fig. 6 is a flowchart of a wire break anomaly determination process. List of reference symbols 1 Sensor control device 2 Gas sensor 10 Microcomputer 11 CPU 12 ROM 30 EEPROM 31 Fault diagnosis setting data storage area Embodiment of the invention With reference to the drawings, an embodiment of a control device for a vehicle electrical component of the present invention will be described. Note that the drawings referred to herein are used to describe technical features of the present invention. The structures of a sensor, a device, etc., flowcharts of various processes, etc., are merely examples and are not limited to those illustrated in the drawings unless otherwise specified. A sensor control device 1 shown in Fig. 1 is a device for driving and controlling a gas sensor 2, which is an electrical component to be installed in a vehicle such as an automobile. Examples of the gas sensor 2 include an oxygen sensor, a general air-fuel ratio sensor, and a NOx sensor. In the present embodiment, the gas sensor 2 is a general air-fuel ratio sensor (a sensor that outputs a signal that changes linearly according to the oxygen concentration) including a detection element 25 having two cells each composed of a solid electrolyte element formed of zirconia or the like, and a pair of electrodes sandwiching the solid electrolyte element.It should be noted that other examples of the electrical components of a vehicle than the gas sensor include sensors of other types such as a urea concentration sensor and a temperature sensor; glow plugs; and fuel injectors. The sensor control device 1 starts upon receiving a signal supplied from a microcomputer 6 of an ECU (electronic control unit) of a motor vehicle and performs drive control (energization control) to drive and control the gas sensor 2. Furthermore, the sensor control device 1 calculates the oxygen concentration based on an output of the gas sensor 2 and outputs the calculated oxygen concentration to the microcomputer 6. The sensor control device 1 includes a microcomputer 10, an EEPROM 30, a communication circuit section 20, an abnormality detection circuit section 40, a control circuit section 50, etc. The microcomputer 10 includes a CPU 11, a ROM 12, and a RAM 13, all of which are well known. The CPU 11 executes various programs, including an abnormality diagnosis program and an oxygen concentration calculation program described below, to control the drive of the gas sensor 2. The ROM 12 stores these various programs, output values, etc. The RAM 13 temporarily stores various variables, flags, counters, etc. used to execute the programs. The EEPROM 30, the communication circuit section 20, the abnormality detection circuit section 40, and the control circuit section 50 are connected to the microcomputer 10. The EEPROM 30 is a rewritable memory device having a known structure. As shown in FIG. 2, a fault diagnosis setting data storage area 31 is provided in the EEPROM 30. The fault diagnosis setting data storage area 31 stores various flags that are accessed in an abnormality diagnosis program described below. Specifically, the fault diagnosis setting data storage area 31 stores a ROM abnormality flag, a ground short-circuit abnormality flag, a battery short-circuit abnormality flag, a wire break abnormality flag, and so on. Furthermore, various unillustrated storage areas are further provided in the EEPROM 30. The communication circuit section 20 is connected to the microcomputer 6 of an external unit (an ECU) and exchanges signals with the microcomputer 6. Furthermore, the communication circuit section 20 controls serial communication between the communication circuit section 20 and an external PC (personal computer) 3, which is performed through a CAN (Controller Area Network). The microcomputer 10 can communicate with the PC 3 via the communication circuit section 20. As will be described in detail below, the contents of the EEPROM 30 are overwritten according to a command from the PC 3. The control circuit section 50 is a circuit section for driving and controlling the gas sensor 2. The control circuit section 50 is connected to the detection element 25 of the gas sensor 2 via a terminal 21 and a wiring line 22 and supplies a drive current to the detection element 25. The magnitude of the current flowing through a cell of the detection element 25 changes according to the oxygen concentration of the atmosphere. The control circuit section 50 converts the current flowing through the cell into a voltage using a detection resistor (not shown). The voltage is input to the microcomputer 10. The CPU 11 of the microcomputer 10 calculates an oxygen concentration using a predetermined map or calculation equation under the oxygen concentration calculation program and outputs the calculated oxygen concentration to the microcomputer 6 of the ECU. Note that Fig.For ease of understanding, FIG. 1 shows only the single terminal 21 and the single wiring line 22 connected to the detection element 25. However, in reality, the gas sensor 2 is connected to the control circuit section 50 and the abnormality detection circuit section 40 described below via multiple terminals and multiple wiring lines. The abnormality detection circuit section 40 is a circuit section for detecting an abnormality in a path for supplying power to the detection element 25 of the gas sensor 2, such as a short circuit or a wire break. The abnormality detection circuit section 40 is connected to the terminal 21 to which the wiring line 22 for connecting the sensor control device 1 and the gas sensor 2 is connected. Furthermore, the abnormality detection circuit section 40 is connected to an unillustrated circuit of the control circuit section 50 for supplying drive power to the gas sensor 2. When an abnormality (a short circuit to a battery (not shown), a short circuit to ground, a wire break, or a line fault) occurs on the path for supplying power to the detection element 25, the voltages in the detection element 50 or the control circuit section 50 become abnormal.For example, when a short circuit is formed between the terminals (not shown) of the gas sensor 2, the path for supplying power to the detection element 25 is short-circuited to the battery, resulting in an increase in the potential of the terminal 21 to which the battery voltage is applied. Similarly, when the path for supplying power to the detection element 25 is short-circuited to the ground, the potential of the terminal decreases to the ground potential. The abnormality detection circuit section 40 detects the potential (voltage) of the terminal 21 (actually, each of a plurality of terminals) and outputs the detected potential to the CPU 11 of the microcomputer 10. In addition, the abnormality detection circuit section 40 includes a wire break detection circuit (not shown) for detecting whether a wire break or a wiring fault (wire break, etc.) has occurred in the control circuit section 50, particularly in the path for supplying power to the detection element 25.) has occurred or not. When the abnormality detection circuit section 40 detects the wire breakage, etc., of the path for supplying power to the detection element 25, the abnormality detection circuit section 40 outputs a wire breakage detection signal to the CPU 11. In the sensor control device 1 of the present invention, the contents of the EEPROM 30 can be overwritten as described above by an operator operating the PC 3 externally connected to the sensor control device 1 via CAN communication. Specifically, the operator's operation of the PC 3 changes the ON / OFF states of various flags stored in the fault diagnosis setting data storage area 31 of the EEPROM 30. When each of the abnormality determination processes included in the abnormality diagnosis program is executed, the corresponding flag stored in the fault diagnosis setting data storage area 31 is accessed by other programs executed by the CPU. The abnormality diagnosis program will be described below. As described above, the abnormality diagnosis program is stored in the ROM 12 of the microcomputer 10 of the sensor control device 1 and is executed as one of various programs for controlling the drive of the gas sensor 2. The abnormality diagnosis program includes various abnormality determination processes for diagnosing an abnormal condition that may occur when the sensor control device 1 controls the drive of the gas sensor 2. In the present embodiment, the operation of the abnormality diagnosis program will be described, taking four types of abnormality determination processes shown in FIGS. 3 to 6 as examples among the various abnormality determination processes included in the abnormality diagnosis program. Note that each abnormality determination process is called and executed by the main process of the abnormality diagnosis program (not shown). The main process is repeatedly executed while the sensor control device 1 is operating, and each abnormality determination process is repeatedly called. Each process of the abnormality diagnosis program is executed by the CPU 11 of the microcomputer 10. Hereinafter, each step of the flowchart of each abnormality determination process in the abnormality diagnosis program will be abbreviated to "S." First, a ROM abnormality determination process shown in Fig. 3 will be described. The ROM abnormality determination process is a process for determining whether the contents of the ROM 12 of the microcomputer 10 are correct by checking a CRC (Cyclic Redundancy Check) value (CRC scheme). A CRC value calculated after various programs and the like are correctly stored in the ROM 12 is stored in advance as an expected CRC value, and is accessed at the time of checking the CRC value. Note that the expected CRC value may be stored in a storage area of the ROM 12 that is not subjected to CRC. Alternatively, an expected CRC value may be obtained by considering a CRC value that changes as a result of storing the expected CRC value in the ROM 12, and stored in the ROM 12. When the ROM abnormality determination process is invoked by the main process (not shown), the CPU 11 first checks whether the calculation of the CRC value of the ROM 12 is complete (S11). If the calculation of the CRC value has not yet started or is currently being performed (S11: NO), the CPU 11 performs a CRC calculation process (S12) to start or continue the calculation of the CRC value, and returns to the main process. If the calculation of the CRC value of the ROM 12 is completed while the ROM abnormality determination process is repeatedly called by the main process (S11: YES), the CPU 11 accesses the ROM abnormality flag stored in the fault diagnosis setting data storage area 31 of the EEPROM. If the ROM abnormality flag is set to a state indicating "invalid" (when the flag is OFF) (S13: NO), the CPU 11 does not determine whether the contents of the ROM 12 are normal regardless of the calculated CRC value. In this case, the CPU 11 assumes that the ROM 12 is normal (S15) to prevent the determination result of the ROM abnormality determination process from affecting other processes, and then returns to the main process. Meanwhile, if the ROM abnormality flag is set to a state indicating "valid" (when the flag is ON) (S13: YES), the CPU 11 determines whether the CRC value is equal to the expected CRC value or not (S14). If the CRC value is equal to the expected CRC value (S14: YES), the CPU 11 determines that the contents of the ROM 12 are normal (S15) and returns to the main process. However, if the CRC value differs from the expected CRC value (S14: NO), the CPU 11 determines that the contents of the ROM 12 are abnormal (S16) and returns to the main process. The result of the ROM abnormality determination performed in S15 or S16 is stored in a predetermined storage area of the RAM 13 and is accessed by other programs executed by the CPU 11. Next, a ground short-circuit anomaly determination process shown in Fig. 4 will be described. The ground short-circuit anomaly determination process is a process for determining whether or not a short circuit to ground has occurred on the power supply path to the detection element 25 of the gas sensor 2. When the ground short-circuit anomaly determination process is called by the main process, the CPU 11 checks the potential (voltage) of the terminal 21 detected by the anomaly detection circuit section 40 (S21). If the detected voltage is equal to or greater than 1.2 V (S21: NO), the CPU 11 determines that no short circuit is formed between the ground and the power supply path to the detection element 25. Therefore, the CPU 11 resets a timer value representing a continuation time of the anomaly detection (S22) and returns to the main process. Meanwhile, if the detected voltage of terminal 21 is less than 1.2 V (S21: YES), the CPU 11 determines that a short circuit has formed between the ground and the power supply path to the detection element 25. Therefore, the CPU 11 adds a predetermined increment value to the timer value representing the duration of the anomaly detection (S23). If the duration of the anomaly detection is less than 1 second (S24: NO), the CPU 11 returns to the main process. As long as the voltage of terminal 21, determined in S21 each time the ground short circuit anomaly detection process is repeatedly called by the main process, is less than 1.2 V, the operation of incrementing the timer value representing the duration of the anomaly detection continues. When a state where the voltage of terminal 21 is less than 1.2 V persists for one second or more (S24: YES), the CPU 11 accesses the ground short-circuit anomaly flag stored in the fault diagnosis setting data storage area 31 of the EEPROM 30. If the ground short-circuit anomaly flag is set to a state indicating "invalid" (when the flag is OFF) (S25: NO), the CPU 11 assumes that no short circuit is formed between the ground and the path for supplying power to the detection element 25 and returns to the main process. However, if the ground short-circuit anomaly flag is set to a state indicating "valid" (when the flag is ON) (S25: YES), the CPU 11 determines that a short circuit has formed between the ground and the power supply path to the determining element 25 (S26) and returns to the main process. The result of the ground short-circuit anomaly determination performed in S26 is stored in a predetermined storage area of the RAM 13 and is accessed by other programs executed by the CPU 11. Next, a battery short-circuit anomaly determination process shown in Figure 5 will be described. The battery short-circuit anomaly determination process is a process for determining whether or not a short circuit to the battery has occurred on the path for supplying power to the detection element 25 of the gas sensor 2. Since the details of the operation of the battery short-circuit anomaly determination process are similar to those of the ground short-circuit anomaly determination process, the description of the same processing is simplified here. When the battery short-circuit abnormality determination process is called by the main process, the CPU 11 checks the voltage of terminal 21 detected by the abnormality determination circuit section 40 (S31). If the detected voltage is equal to or less than "battery voltage minus 1.2 V" (S31: NO), the CPU 11 determines that no short circuit is formed between the battery and the power supply path to the detection element 25. Therefore, the CPU 11 resets a time of continuation of the abnormality determination (a timer value) (S32) and returns to the main process. If the detected voltage is greater than "battery voltage minus 1.2 V" (S32: YES), the CPU 11 determines that a short circuit is formed between the battery and the power supply path to the detection element 25.Therefore, the CPU 11 continues the operation of increasing the timer value until the continuation time of the abnormality determination reaches 1 second (S33, S34: NO). When a state where the detected voltage is greater than "battery voltage minus 1.2 V" persists for one second or more (S34: YES), the CPU 11 accesses the battery short-circuit abnormality flag stored in the fault diagnosis setting data storage area 31. If the battery short-circuit abnormality flag is set to a state indicating "invalid" (when the flag is OFF) (S35: NO), the CPU 11 assumes that no short circuit is formed between the battery and the path for supplying power to the detection element 25 and returns to the main process. However, when the battery short-circuit anomaly flag is set to a state indicating "valid" (when the flag is ON) (S35: YES), the CPU 11 determines that a short circuit is formed between the battery and the path for supplying power to the detection element 25 (S36), and returns to the main process.The result of the battery short-circuit anomaly determination performed in S36 is stored in a predetermined storage area of the RAM 13 and is accessed by other programs executed by the CPU 11. Next, a wire breakage abnormality determination process shown in Fig. 6 will be described. The wire breakage abnormality determination process is a process for determining whether or not a wire breakage or a line failure has occurred on the path for supplying power to the detection element 25 of the gas sensor 2. When the wire breakage abnormality determination process is invoked by the main process, the CPU 11 first executes a wire breakage determination process (S41). Specifically, the CPU 11 supplies a drive current to a wire breakage detection circuit (not shown) of the abnormality detection circuit section 40 and detects a wire breakage or the like on the path for supplying power to the detection element 25.When the wire break detection circuit does not output a wire break detection signal and wire breakage or the like is not detected (S43: NO), the CPU 11 resets a time of continuation of the abnormality detection (a timer value) (S42) and returns to the main process. Meanwhile, if the wire break detection circuit of the abnormality detection circuit section 40 outputs a wire break detection signal (S43: YES), the CPU 11 adds a predetermined increment value to the time value representing the continuation time of the abnormality detection (S44). If the continuation time of the abnormality detection is less than 1 second (S45: NO), the CPU 11 returns to the main process. If the wire break detection signal continues to be output (S41, S43: YES), the CPU 11 continues the operation of incrementing the timer value until the continuation time of the abnormality detection reaches 1 second (S44, S45: NO). When the state in which the wire breakage detection signal is output continues for one second or longer (S45: YES), the CPU 11 accesses the wire breakage anomaly flag stored in the fault diagnosis setting data storage area 31 of the EEPROM 30.When the wire breakage abnormality flag is set to a state indicating "invalid" (when the flag is OFF) (S46: NO), the CPU 11 assumes that no wire breakage or the like occurs on the path for supplying power to the detection element 25, and returns to the main process. However, if the wire break anomaly flag is set to a state indicating "valid" (when the flag is ON) (S46: YES), the CPU 11 determines that a wire break has occurred on the path supplying power to the detection element 25 (S47) and returns to the main process. The result of the wire break anomaly determination performed in S47 is stored in a predetermined storage area of the RAM 13 and is accessed by other programs executed by the CPU 11. As described above, according to the sensor control device 1 of the present invention, when a specific abnormality determination process or processes among a plurality of abnormality determination processes (anomaly detection processes) included in the abnormality diagnosis program is / are determined to be valid with reference to the flags, only the determination result(s) (determination result(s)) of the specific abnormality determination process(es) is / are obtained. Therefore, depending on the type of vehicle or the situation, a correct determination result(s) can be obtained. That is, the CPU 11 does not execute the abnormality detection process(es) that is / are determined to be invalid with reference to the corresponding flag(s).Furthermore, since the ROM 12 storing the abnormality determination processes and the EEPROM 30 storing the flags are different from each other (provided independently of each other), changing the states of the flags stored in the EEPROM 30 is sufficient to obtain a determination result(s) from a desired abnormality determination process(es). Accordingly, even if the abnormality determination process(es) whose determination result(s) are to be obtained change(s) depending on the type of vehicle or situation, the abnormality diagnosis program stored in the ROM 12 does not need to be redesigned. Therefore, overwriting the contents of the ROM 13 is not required. Redesigning the abnormality diagnosis program may require a programming technique.In contrast, changing the states of the markers does not require any programming technique and can be easily performed. Therefore, the determination result(s) of a correct determination process(es) can be obtained according to the respective situation. Moreover, when the above-described determination is performed for two or more abnormality determination processes, an abnormality determination process(es) desired by a user of the control device can be executed, thereby increasing the flexibility of the control device. Furthermore, the ROM 12 stores at least two types of abnormality determination processes: a process for checking the contents of the ROM 12 and a process for detecting at least one of a short circuit and a wire break in the path for supplying power to the gas sensor 2. Therefore, the operation of the sensor control device 1 can be checked from both the software and hardware perspectives. Therefore, it becomes easier for a user to select the contents of the abnormality diagnosis process of the sensor control device 1, and the flexibility of the sensor control device 1 itself can be increased. Since the determination result of each anomaly determination process is obtained after executing a series of processing steps included in the anomaly determination process, the processing time of the anomaly determination process does not change much between the case where the corresponding flag is set to a state representing "valid" and the case where the corresponding flag is set to a state representing "invalid." Therefore, no influence is exerted on the wait times and timings at which other processes that include other anomaly detection processes are executed. Therefore, even if the state(s) of a flag(s) is / are temporarily changed, it is not necessary to perform corresponding adjustment of the timing(s) of the process(es), etc.Therefore, setting the markings can be done easily and time and labor can be saved. It should be noted that the present invention is not limited to the above-described embodiment, and various modifications are possible without departing from the scope of the appended claims. For example, in the above-described embodiment, the abnormality detection circuit section 40 detects the potential (voltage) of the terminal 21. However, the embodiment may be configured such that the abnormality detection circuit section 40 includes a voltage comparison circuit and outputs an abnormality report signal to the CPU 11 when the terminal voltage deviates from a normal range. The PC 3 serving as a device for overwriting the contents of the EEPROM 30 is merely an example. Setting the flags can be performed not only by a device including a CPU, but also by an analog electrical circuit, switches, or the like. Furthermore, communication via a CAN is merely an example, and overwriting the contents of the EEPROM 30 can be performed via communication using any protocol. The EEPROM 30 is merely an example, and other rewritable non-volatile memories such as flash memory may be used. Alternatively, instead of using memory devices, an equivalent function can be realized by a combination of analog switches, etc. In the present embodiment, the setting of the flags mentioned in the anomaly determination processes is performed by setting the flags to an ON and an OFF state. However, the embodiment may be modified such that a plurality of preset patterns for setting the flags are provided, and the setting of the flags is performed by selecting one of the patterns. In the present embodiment, the ON / OFF state of each flag is determined by manipulating a corresponding bit. However, in the case of pattern selection, the setting of the flags can be performed only by overwriting the memory area designating the address where a desired flag pattern is stored. In the ROM anomaly detection process, the contents of ROM 12 are checked using the CRC scheme. However, the checking method is not limited to the CRC scheme, and other well-known schemes such as a parity check scheme and a checksum scheme can be used. Note that in the present embodiment, the ROM 12 corresponds to the "first storage section" and the EEPROM 30 corresponds to the "second storage section." The gas sensor 2 corresponds to the "electrical component," and the sensor control device 1 corresponds to the "control device." The CPU 11 corresponds to the "calculation section." Moreover, the flags of the EEPROM 30 correspond to "determinants." The processing of the CPU 11 that checks whether the CRC value of the ROM 12 corresponds to the expected CRC value in S14 corresponds to the "first check process." The processing of the CPU 11 that determines that an abnormality such as a short circuit or a wire break has occurred in S24, S34, or S45 when the continuation time of the abnormality determination becomes 1 second or longer corresponds to the "second check process."
Claims
A control device (1) for controlling an electrical component (2) of a vehicle, which executes at least one type of abnormality detection process, and which drives and controls the electrical component (2) mounted on a vehicle, the control device (1) comprising: a first storage section (12) which stores the abnormality detection process; a second storage section (30) which is provided independently of the first storage section (12) and which stores a determinant which determines whether the at least one type of abnormality detection process is valid or invalid;anda computing section (11) for executing the anomaly detection process, wherein, when the computing section (11) executes the at least one type of anomaly detection process, the computing section (11) accesses the determinant stored in the second storage section (30) and obtains a detection result of the anomaly detection process only when the anomaly detection process has been determined to be valid, wherein the first storage section (12) stores at least two types of anomaly detection processes;the second storage section (30) stores at least two determinants, each of which is used to determine whether a corresponding one of the at least two types of anomaly detection processes is valid or invalid;and the computing section (11) is configured such that, when each of the abnormality determination processes is executed by the computing section (11), the computing section (11) accesses the corresponding determinant stored in the second storage section (30) and obtains a determination result of the abnormality determination process when the abnormality determination process is determined to be valid, wherein the at least two abnormality determination processes include: a first check process (S14) for checking whether all the contents of the first storage section (12) are normal or not; and a second check process (S24, S34, S45) for checking whether or not at least one of a short circuit and a wire break has occurred on a connection line electrically connecting the control device (1) and the electrical component (2). A control device (1) for an electrical component (2) of a vehicle according to claim 1, wherein, when the calculation section (11) executes at least one type of the abnormality determination processes, the calculation section (11) makes the determination with reference to the determinant after executing a series of processing steps included in the at least one type of the abnormality determination processes, and obtains, as the determination result of the at least one type of the abnormality determination processes, the result of the series of processing steps when the at least one type of the abnormality determination processes is determined to be valid.
Citation Information
Patent Citations
Vehicular control device equipped with self-diagnosis device
JP2000097810A
process diagnostic system and method for diagnosing processes and states of a technical process
DE19732046A1
Electronic control system and method for vehicle diagnosis
US7788005B2
