This application is a National Phase of International Patent Application No. PCT/JP2017/024913 filed on Jul. 7, 2017, which claims priority to Japanese Patent Application No. 2016-168733 filed on Aug. 31, 2016. The contents of these applications are herein incorporated by reference in their entirety.
The present invention relates to an electronic control device, and in particular, to an electronic control device for performing electronic control of a vehicle.
In recent vehicles, electronic control devices such as an engine control unit and a control unit for an automatic transmission are mounted, and these electronic control devices control travelling of the vehicle. In such an electronic control device, input of a detection signal by a sensor, output of a driving signal for driving a load, and other operations are performed.
JP 2010-230563 A discloses an invention which enables, in a control device in which a signal from an analog signal input circuit having a thermistor is input to an A/D input port of a microcomputer, detection of a disconnection between the thermistor and the microcomputer of the control device from a voltage change at the A/D input port.
Patent Literature
PTL 1: JP 2010-230563 A
Technical Problem
However, in the control device described in JP 2010-230563 A, the A/D input port is required for the microcomputer of the control device, and disconnection of the analog signal input circuit can be detected in this configuration with no disclosure having been made on abnormality diagnosis of a digital input circuit that is determined by binary values.
Moreover, there is a problem that the cost is increased when the circuit configuration is modified such as adding an electronic component or a microcomputer port for performing abnormality diagnosis on a digital input circuit.
It is an object of the present invention to provide an electronic control device capable of performing abnormality diagnosis of a digital input circuit without modifying the circuit configuration.
Solution to Problem
In order to achieve the above object, the present invention includes: an external connection terminal to which an external power supply is connected; a first capacitor having one end connected to the external connection terminal and the other end connected to circuit ground; a microcomputer having a D/I port which is an input/output port and to which a voltage of the external connection terminal is input; an RC filter provided between the D/I port and the first capacitor, the RC filter including a first resistor and a second capacitor; and a second resistor for dividing an output voltage of the D/I port together with the first resistor and applying the divided voltage to one end of the first capacitor, in which the microcomputer outputs a predetermined voltage from the D/I port and diagnoses a connection condition of the external connection terminal on the basis of a voltage input to the D/I port after the first capacitor is charged with the predetermined voltage.
Advantageous Effects of Invention
According to the present invention, it is possible to provide an electronic control device capable of performing abnormality diagnosis of a digital input circuit without modifying the circuit configuration.
Problems, configurations, and effects other than those described above will be made clear from descriptions of the following embodiments.
Hereinafter, an electronic control device according to embodiments of the present invention will be described in detail with reference to the drawings.
The electronic control device 1 of the first embodiment is used for electronic control of an engine, a transmission, a brake, etc. mounted on an automobile, for example, and has a microcomputer 2 for performing the electronic control. The microcomputer 2 has a CPU core (not illustrated) that operates as an operation unit of the microcomputer 2, a memory such as a RAM (not illustrated) and a ROM (not illustrated), and a peripheral circuit such as a circuit for performing external input/output.
The microcomputer 2 has a D/I port 3. The D/I port 3 is an input/output port that can be used as an input port for determining an input signal input to the D/I port 3 by binary values of HIGH and LOW and as an output port capable of outputting an output signal of HIGH or LOW from the D/I port 3. An input circuit for inputting a signal to the D/I port 3 includes, for example, an RC filter 7 including a resistor R1 and a capacitor C1, and a resistor R2 for voltage division.
As external input, for example, a voltage input of an external power supply 5 is switched by switching ON/OFF a switch 4. One end of the switch 4 is connected to the external power supply 5, and the other end of the switch 4 is connected to an external connection terminal 6 of the electronic control device 1. Since the D/I port 3 of the microcomputer 2 is input with a voltage of the external power supply 5 when the switch 4 is ON, the D/I port 3 of the microcomputer 2 determines that HIGH is input.
Furthermore, a terminal capacitor C2 for suppressing exogenous noise is connected between the external connection terminal 6 and the circuit ground (GND).
Next, a diagnosis method for circuit abnormality in the electronic control device 1 according to the first embodiment will be described.
For diagnosing abnormality, first, the D/I port 3 is changed from an input port to an output port, and a HIGH signal is output from the D/I port 3 being an output port.
Then, while the HIGH signal is being output from the D/I port 3, wait for an elapse of time (predetermined in the microcomputer 2) required for the terminal capacitor C2 to be charged, and when this time elapses, the D/I port 3 is changed from an output port to an input port. The time required for charging the terminal capacitor C2 may be predetermined on the basis of the capacity of the terminal capacitor C2.
Here, in a case where wiring from the external connection terminal 6 to the external power supply 5 is normal, the D/I port 3 is input with the voltage of the external power supply 5 with the switch 4 turned on. On the other hand, for example, in a case where there is disconnection in wiring between the terminal capacitor C2 and the external power supply 5, the D/I port 3 is input with a divided voltage and not the voltage of the external power supply 5 even when the switch 4 is ON since the terminal capacitor C2 is being charged with the voltage obtained by dividing the HIGH signal output from the D/I port 3 by the resistor R1 and the resistor R2. Moreover, for example in a case where there is a ground fault in the wiring between the external connection terminal 6 and the external power supply 5, the terminal capacitor C2 is not charged since the external connection terminal 6 has the GND potential, and the D/I port 3 is input with the GND potential and not the voltage of the external power supply 5.
Therefore, when a threshold value for determining a voltage value input to the D/I port 3 is set in software operating in the microcomputer 2, it is possible to distinguish the respective states of normal/disconnection/ground fault by determining a voltage value input to the D/I port 3 by this threshold value, thereby enabling circuit abnormality diagnosis. In other words, the microcomputer 2 is capable of diagnosing the connection state of the external connection terminal 6 on the basis of a voltage input to the D/I port 3. A value that can be used as this threshold value is a voltage value between the voltage value of the external power supply 5 (e.g. 5 V) and a voltage value obtained by dividing the HIGH signal (e.g. 5 V) output from the D/I port 3 by the resistors R1 and R2. After a HIGH signal is output from the D/I port 3 and charging time for the terminal capacitor C2 has elapsed, a voltage value input to the D/I port 3 being larger than the threshold value shows a normal state, the voltage value being smaller than the threshold value and not being the GND potential shows disconnection, and the voltage value being the GND potential shows ground fault.
Furthermore, it is possible to perform safer electronic control in the electronic control device 1 by applying an appropriate countermeasure depending on each diagnosis result such as: stopping control related to a failed part on the basis of the result of abnormality diagnosis; further including a notification device (not illustrated) for notifying a user (operator such as a driver of a vehicle) of a result of the abnormality diagnosis (for example, by sound, light, characters, an image, or vibration) and outputting the diagnosis result from the microcomputer 2 to this notification device; or for example allowing the electronic control device 1 to notify another onboard electronic control device (not illustrated) of the diagnosis result via a CAN (not illustrated).
In the second embodiment, an electronic control device 11, which enables circuit abnormality diagnosis by a configuration having an FET that drives an external load, will be described as an example.
The electronic control device 1 of the second embodiment is used for electronic control of an engine, a transmission, a brake, etc. mounted on an automobile, for example, and has a microcomputer 12 for performing the electronic control. The microcomputer 12 has a CPU core (not illustrated) that operates as an operation unit of the microcomputer 12, a memory such as a RAM (not illustrated) and a ROM (not illustrated), and a peripheral circuit such as a circuit for performing external input/output.
In the second embodiment, as the electronic control device 11 for driving an external load 13, a configuration having an external load driving circuit formed by an FET 14 will be described as an example. This external load driving circuit includes the FET 14, a D/O port 15 of the microcomputer 12, a resistor R3 for protecting the D/O port 15, and a resistor R4 for confirming the LOW level. It is assumed that power is supplied to the external load 13 by an external power supply 16. One end of the external load 13 is connected to the external power supply 16, and the other end of the external load 13 is connected to an external connection terminal 18 of the electronic control device 11. Outputting a HIGH signal (e.g. a voltage of 5 V) from the D/O port 15 turns on the FET 14, and outputting a LOW signal (e.g. a voltage of 0 V) from the D/O port 15 turns off the FET 14.
The microcomputer 12 has a D/I port 17. The D/I port is an input/output port that can be used as an input port for determining an input signal input to the D/I port 17 by binary values of HIGH and LOW and as an output port capable of outputting an output signal of HIGH or LOW from the D/I port 17. An input circuit for inputting a signal to the D/I port 17 includes, for example, an RC filter 19 including a resistor R1 and a capacitor C1, and a resistor R2 for voltage division.
Furthermore, a terminal capacitor C2 for suppressing exogenous noise is connected between the external connection terminal 18 and the circuit ground (GND).
Next, a diagnosis method for circuit abnormality in the electronic control device 11 of the second embodiment will be described with reference to
Upon abnormality diagnosis, first, the power source of the electronic control device 11 is turned on (step 111), and then the FET 14 for driving the external load is turned off (step 112). At this time, it is diagnosed whether an input voltage to the D/I port 17 of the microcomputer 12 is LOW (step 113). If not LOW, the circuit is normal, and thus the flow returns to normal control. If LOW, the voltage of the external power supply 16 is not input, which shows that an abnormality has occurred in the circuit, and thus the flow proceeds to a next step.
Next, the D/I port 17 is changed from an input port to an output port, a HIGH signal is output from the D/I port 17 being an output port (step 114), and the terminal capacitor C2 is charged by a voltage divided by the resistors R1 and R2. Here, it is waited for the time required for charging the terminal capacitor C2 that is set in advance in the microcomputer 12. The time required for charging the terminal capacitor C2 may be predetermined on the basis of the capacity of the terminal capacitor C2. Thereafter, the D/I port 17 is changed from an output port to an input port (step 115), and it is diagnosed whether an input voltage to the D/I port 17 is HIGH (step 116). If not HIGH, the terminal capacitor C2 is not charged, which shows that the external connection terminal 18 has ground fault (step 118). In this case, the diagnosis is terminated. On the other hand, if HIGH in step 116, the flow proceeds to next diagnosis (step 117).
Subsequently, the D/I port 17 is changed from an input port to an output port, and as the D/I port 17 being an output port outputs a HIGH signal, simultaneously the FET 14 is turned ON this time (step 120). Here, since the terminal capacitor C2 is charged by a voltage divided by the resistors R1 and R2, it is waited for the time required for charging the terminal capacitor C2 that is set in advance in the microcomputer 12.
Next, as the D/I port 17 is changed from an output port to an input port, simultaneously the FET 14 is turned off (step 121). Thereafter, it is diagnosed whether an input voltage to the D/I port 17 is HIGH (step 122). If HIGH (step 123), it is shown that a failure that the FET 14 is not turned on is occurring and that the terminal capacitor C2 has been charged in step 120. If not HIGH (step 124) on the other hand, the FET 14 is turned on, and the terminal capacitor C2 is not charged, which shows disconnection for example in wiring between the terminal capacitor C2 and the external power supply 16. Note that diagnosis may be performed by comparing an input voltage to the D/I port 17 with a preset threshold value. In this manner, the diagnosis is completed (step 125).
In
A time point (1) in
At (1) of
At (2) of
A time from (2) in
At (3) of
At (4) of
A time from (4) in
At (5) of
Therefore, executing the processing in
Furthermore, it is possible to perform safer electronic control in the electronic control device 11 by applying an appropriate countermeasure depending on each diagnosis result such as: stopping control related to a failed part on the basis of the result of abnormality diagnosis; further including a notification device (not illustrated) for notifying a user (operator such as a driver of a vehicle) of a result of the abnormality diagnosis (for example, by sound, light, characters, an image, or vibration) and outputting the diagnosis result from the microcomputer 12 to this notification device; or for example allowing the electronic control device 11 to notify another onboard electronic control device (not illustrated) of the diagnosis result via a CAN (not illustrated).
<Note 1>
Furthermore, the present invention described above may have the following configuration in some cases.
1. (i) An electronic control device, including:
In addition, the present invention may be:
2. The electronic control device according to item 1,
In addition, the present invention may be:
3. The electronic control device according to item 2,
In addition, the present invention may be:
4. The electronic control device according to item 1 or 2,
In addition, the present invention may be:
5. The electronic control device according to item 1 or 2,
In addition, the present invention may be:
6. The electronic control device according to item 1 or 2, further including:
Furthermore, the present invention described above may have the following configuration in some cases.
1. An electronic control device including:
In addition, the present invention may be:
2. The electronic control device according to item 1, further including:
In addition, the present invention may be:
3. The electronic control device according to item 2,
In addition, the present invention may be:
4. The electronic control device according to item 1,
In addition, the present invention may be:
5. The electronic control device according to item 1,
In addition, the present invention may be:
6. The electronic control device according to item 1,
In addition, the present invention may be:
7. The electronic control device according to item 1,
In addition, the present invention may be:
8. A method of diagnosing a connection state of an electronic control device, the electronic control device including:
In addition, the present invention may be:
9. The method of diagnosing a connection state of the electronic control device according to item 8,
Note that the present invention is not limited to the aforementioned embodiments but may include various variations. For example, the aforementioned embodiments are described in detail in order to facilitate understanding of the present invention, and thus the present invention is not necessarily limited to include all of the configurations having been described. A part of a configuration of one of the embodiments may be replaced with a configuration of another embodiment. Also, a configuration of one of the embodiments may be added with a configuration of another embodiment. Moreover, a part of a configuration of each of the embodiments may be added with, deleted of, or replaced with another configuration.
Number | Date | Country | Kind |
---|---|---|---|
2016-168733 | Aug 2016 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2017/024913 | 7/7/2017 | WO | 00 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2018/042883 | 3/8/2018 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
20080231286 | Tsunekazu | Sep 2008 | A1 |
20110031812 | Morimoto | Feb 2011 | A1 |
20130245869 | Nishida | Sep 2013 | A1 |
20140055169 | Mitsuno | Feb 2014 | A1 |
20140253141 | Swoboda | Sep 2014 | A1 |
20140320155 | Durston | Oct 2014 | A1 |
20150039913 | Sugiyama | Feb 2015 | A1 |
Number | Date | Country |
---|---|---|
103983882 | Aug 2014 | CN |
H08-86824 | Apr 1996 | JP |
2002-181867 | Jun 2002 | JP |
2008-232978 | Oct 2008 | JP |
2010-230563 | Oct 2010 | JP |
2014-041064 | Mar 2014 | JP |
2014-106219 | Jun 2014 | JP |
Number | Date | Country | |
---|---|---|---|
20190178928 A1 | Jun 2019 | US |