Power supply control system and processing method

The power supply control system addresses the issue of halted processes during power failures by using a control device to alternate the state of a second switch, ensuring non-power supply control processing continues, maintaining system operation.

JP7552489B2Active Publication Date: 2024-09-18AUTONETWORKS TECH LTD +2
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
JP2021069075
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-04-15
Publication Date
2024-09-18
Estimated Expiration
2041-04-15

AI Technical Summary

Technical Problem

Existing power supply control systems stop all processes when a power switch is turned off, including non-power supply control processing, even during power failures.

Method used

A power supply control system that includes a control device to execute non-power supply control processing by alternating the state of a second switch upstream of a first switch, ensuring power is supplied to a processing unit to continue operations despite power failures.

Benefits of technology

Enables the execution of non-power supply control processes even during power failures by alternating the state of the second switch, allowing continued operation of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007552489000017
    Figure 0007552489000017
  • Figure 0007552489000004
    Figure 0007552489000004
  • Figure 0007552489000012
    Figure 0007552489000012
Patent Text Reader

Abstract

To provide a power supply control system and a processing method capable of executing non-power supply control processing even when an energization failure occurs.SOLUTION: In a vehicle M, a power supply control system Q includes a control device 11 that turns on or off a first switch F1 to control the power supply through the first switch, and a switching device 12 that switches on or off a second switch 14 arranged upstream of the first switch at a current path of a current flowing through the first switch. The control device includes a processing unit that receives power from a connection node between the first switch and the second switch and executes processing.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a power supply control system and processing method. [Background technology]

[0002] Patent Document 1 discloses a power supply control device for a vehicle that controls power supply from a power storage device to a load. A power switch and a power supply switch are arranged in a current path of a current flowing from the power storage device to the load. The power switch is arranged upstream of the power supply switch. The power supply control device controls power supply by instructing the power supply switch to be switched on or off while the power switch is on. If a current flow failure occurs that causes current to flow through the power supply switch despite an instruction to switch the power supply switch off, the power switch is switched off. This stops power supply. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2019-140747 A [Patent Document 2] JP 2017-56768 A [Patent Document 3] JP 2020-5344 A Summary of the Invention [Problem to be solved by the invention]

[0004] When power is supplied to the power supply control device from a connection node between the power switch and the power supply switch, the power supply control device stops executing all processes when the power switch is switched off. If the power supply control device is executing a non-power supply control process that is different from the process related to the control of power supply via the power supply switch, switching off the power switch also stops the execution of the non-power supply control process.

[0005] The present disclosure has been made in consideration of the above circumstances, and its purpose is to provide a power supply control system and processing method that can execute non-power supply control processing even when a power supply failure occurs. [Means for solving the problem]

[0006] A power supply control system according to one embodiment of the present disclosure includes a control device that controls power supply via a first switch by switching the first switch on or off, and a switching device that switches a second switch, the second switch being arranged upstream of the first switch in a current path of a current flowing through the first switch, on or off. The control device receives power from a connection node between the first switch and the second switch and has a processing unit that executes processing. The processing unit instructs the first switch to be switched on or off when the second switch is on, executes a non-power supply control process that is different from the process related to the control of power supply via the first switch, and determines whether or not a power supply failure has occurred in which current flows through the first switch despite an instruction to switch the first switch off. After it is determined by the processing unit that the power supply failure has occurred, the switching device alternately switches the second switch on and off.

[0007] A processing method according to one aspect of the present disclosure is a processing method in which a first computer and a second computer, to which power is supplied from a connection node between a first switch and a second switch arranged upstream of the first switch in a current path of a current flowing through the first switch, perform processing, in which the first computer performs a step of instructing the first switch to be switched on or off while the second switch is on, a step of performing a non-power supply control process that is different from a process related to control of power supply through the first switch, and a step of determining whether or not a power supply failure has occurred in which current flows through the first switch despite an instruction to switch the first switch off, and the second computer performs a step of repeatedly instructing the second switch to be switched on and off alternately after it is determined by the first computer that the power supply failure has occurred.

[0008] The present disclosure can be realized not only as a power supply control system having such a characteristic processing unit, but also as a processing method having such characteristic processing steps, or as a computer program for causing a computer to execute such steps. Furthermore, the present disclosure can be realized as a semiconductor integrated circuit that realizes part or all of the power supply control system, or as a power supply system including the power supply control system. Effect of the Invention

[0009] According to the above aspect, even if a power supply failure occurs, the non-power supply control process can be executed. [Brief description of the drawings]

[0010] [Figure 1] 1 is a block diagram showing a configuration of a main part of a power supply system according to a first embodiment. [Diagram 2] FIG. 2 is a block diagram showing a configuration of a main part of a first ECU; [Diagram 3] FIG. 2 is a block diagram showing a configuration of a main part of a second ECU; [Figure 4] 10 is a flowchart showing a procedure of a transmission process of a first ECU. [Diagram 5] 5 is a flowchart showing a procedure of a power supply control process of a first ECU. [Figure 6] 10 is a flowchart showing a procedure of a switch control process of a second ECU. [Figure 7] 13 is a flowchart showing a procedure of a write process of the first ECU. [Figure 8] 4 is a timing chart for explaining operations of the first ECU and the second ECU. [Figure 9] FIG. 11 is a block diagram showing the configuration of a main part of a power supply system according to a second embodiment. [Figure 10] FIG. 2 is a block diagram showing a configuration of a main part of a first ECU; [Figure 11] FIG. 2 is a block diagram showing a configuration of a main part of a first microcomputer; [Figure 12] 5 is a flowchart showing a procedure of a power supply control process for a load. [Figure 13] 10 is a flowchart showing a procedure of an execution stop process of a first ECU. [Figure 14] 11 is a table showing the relationship between a power supply switch indicated by fault data and a transmission process that needs to be stopped. [Figure 15] 13 is a diagram showing the contents of a period table. [Figure 16] 4 is a timing chart for explaining operations of the first ECU and the second ECU. [Figure 17] 10 is another timing chart for explaining the operations of the first ECU and the second ECU. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] [Description of the embodiments of the present disclosure] First, the embodiments of the present disclosure will be listed and described. At least a part of the embodiments described below may be arbitrarily combined.

[0012] (1) According to one aspect of the present disclosure Power supply controlThe system includes a control device that controls power supply through a first switch by switching the first switch on or off, and a switching device that switches on or off a second switch that is arranged upstream of the first switch in a current path of a current flowing through the first switch, the control device having a processing unit that receives power from a connection node between the first switch and the second switch and executes processing, the processing unit instructs the first switch to be switched on or off when the second switch is on, executes a non-power supply control process that is different from the process related to the control of power supply through the first switch, and determines whether or not a power supply failure has occurred in which current flows through the first switch despite an instruction to switch the first switch off, and the switching device alternately repeats switching the second switch on and off after it is determined by the processing unit that the power supply failure has occurred.

[0013] In the above embodiment, power is supplied to the load via the second switch and the first switch. After a current-carrying failure of the first switch is detected, the switching device alternately switches the second switch between on and off. When the on-period is short, the power supplied via the second switch and the first switch during the on-period is small. Therefore, the operation of the load is substantially stopped during the on-period. Even if a current-carrying failure occurs, since the on-period exists, the processing unit of the control device, for example, a central processing unit (CPU), can execute a non-power supply control process.

[0014] (2) According to one aspect of the present disclosure Power supply control In the system, the processing unit of the control device instructs transmission of data in the non-power supply control process.

[0015] In the above aspect, when a power failure occurs, the control device transmits data during the ON period.

[0016] (3) According to one aspect of the present disclosure Power supply controlIn the system, when the switching device alternately switches the second switch on and off, an on period during which the second switch is on and an off period during which the second switch is off are constant, and the on period is shorter than the off period.

[0017] In the above embodiment, when a power failure occurs, the switching device alternately switches the second switch on and off, with the on period being shorter than the off period.

[0018] (4) According to one aspect of the present disclosure Power supply control In the system, the number of the first switches is two or more, the current flowing through the second switch is divided into a plurality of currents, and each of the plurality of currents flows through a plurality of first switches, the processing unit of the control device determines whether or not the electrical conduction failure has occurred for each of the plurality of first switches, and when the processing unit determines that the electrical conduction failure has occurred for one of the plurality of first switches, the switching device alternately repeats switching the second switch on and off, and the on period differs depending on the first switch in which the electrical conduction failure has occurred.

[0019] In the above aspect, when a current conduction failure occurs in one of the first switches, the switching device alternately switches the second switch between on and off, with the on period being different depending on the first switch in which the current conduction failure occurs.

[0020] (5) According to one aspect of the present disclosure Power supply control In the system, the processing unit executes a plurality of non-power supply control processes before the power supply failure occurs in one of the plurality of first switches, and when it is determined that the power supply failure has occurred in one of the plurality of first switches, it executes a non-power supply control process corresponding to the first switch in which the power supply failure has occurred among the plurality of non-power supply control processes.

[0021] In the above embodiment, as described above, the on-period differs depending on the first switch in which the current-carrying failure has occurred. The non-power-supply control process executed among the plurality of non-power-supply control processes differs depending on the first switch in which the current-carrying failure has occurred, i.e., depending on the length of the on-period. For example, the shorter the on-period, the fewer the number of non-power-supply control processes executed during the on-period.

[0022] (6) A processing method according to one aspect of the present disclosure is a processing method in which a first computer and a second computer, to which power is supplied from a connection node between a first switch and a second switch arranged upstream of the first switch in a current path of a current flowing through the first switch, perform processing, in which the first computer performs a step of instructing the first switch to be switched on or off while the second switch is on, a step of performing a non-power supply control process that is different from a process related to control of power supply through the first switch, and a step of determining whether or not a power supply failure has occurred in which current flows through the first switch despite an instruction to switch the first switch off, and the second computer performs a step of repeatedly instructing the second switch to be switched on and off alternately after it is determined by the first computer that the power supply failure has occurred.

[0023] In the above embodiment, power is supplied to the load via the second switch and the first switch. When a current-carrying failure occurs in the first switch, the second switch is alternately switched on and off. When the on-period is short, the power supplied via the second switch and the first switch while the second switch is on is small, so that the operation of the load is substantially stopped. Even when a current-carrying failure occurs, the first computer, for example, a CPU, can execute a non-power supply control process because an on-period exists.

[0024] [Details of the embodiment of the present disclosure] Specific examples of power supply systems according to embodiments of the present disclosure will be described below with reference to the drawings. Note that the present invention is not limited to these examples, but is defined by the claims, and is intended to include all modifications within the meaning and scope of the claims.

[0025] (Embodiment 1) <Power supply system configuration> FIG. 1 is a block diagram showing a configuration of a main part of a power supply system 1 in the first embodiment. The power supply system 1 is mounted on a vehicle M. The power supply system 1 includes a first ECU 11, a second ECU 12, a third ECU 13, a power switch 14, a DC power supply 15, and a load E1. ECU is an abbreviation for Electronic Control Unit. The power switch 14 is an FET, a bipolar transistor, a relay contact, or the like. FET is an abbreviation for Field Effect Transistor. The DC power supply 15 is, for example, a battery. The load E1 is an electric device. When power is supplied to the load E1, the load E1 operates. When power supply to the load E1 stops, the load E1 stops operating.

[0026] The first ECU 11 has a power supply switch F1. The power supply switch F1 is an N-channel FET. When the power supply switch F1 is on, the resistance between the drain and source of the power supply switch F1 is sufficiently small, and a current can flow through the drain and source. When the power supply switch F1 is off, the resistance between the drain and source of the power supply switch F1 is sufficiently large, and no current flows through the drain and source.

[0027] In Fig. 1, the power line and the communication line are indicated by thin solid lines and thick solid lines, respectively. The first ECU 11, the second ECU 12, and the third ECU 13 are connected to a communication bus B. The drain of the power supply switch F1 of the first ECU 11 is connected to one end of a power switch 14. The other end of the power switch 14 is connected to the positive electrode of a DC power supply 15. The negative electrode of the DC power supply 15 is grounded. The source of the power supply switch F1 is connected to one end of a load E1. The other end of the load E1 is grounded. The grounding is achieved, for example, by connection to the body of the vehicle M.

[0028] The second ECU 12 switches the power switch 14 on or off. The first ECU 11 switches the power supply switch F1 on or off while the power switch 14 is on. When the first ECU 11 switches the power supply switch F1 on, a current flows from the positive electrode of the DC power supply 15 to the power switch 14, the power supply switch F1, and the load E1 in this order. As a result, power is supplied to the load E1, and the load E1 operates.

[0029] When the first ECU 11 switches the power supply switch F1 off, the flow of current through the power switch 14 and the power supply switch F1 stops, so that the power supply to the load E1 stops and the load E1 stops operating.

[0030] As described above, the first ECU 11 controls the power supply via the power switch 14 and the power supply switch F1 by switching the power supply switch F1 on or off. The first ECU 11 and the power supply switch F1 each function as a control device and a first switch. As described above, when the power supply switch 14 and the power supply switch F1 are on, a current flows through the power supply switch 14 and the power supply switch F1 in that order. Therefore, the power supply switch 14 is disposed upstream of the power supply switch F1 in the current path of the current flowing through the power supply switch F1. The second ECU 12 and the power supply switch 14 each function as a switching device and a second switch.

[0031] A system including the first ECU 11, the second ECU 12, and the power switch 14 functions as a power supply control system Q. The power supply control system Q is included in the power supply system 1.

[0032] Vehicle data D1 is input to the first ECU 11. As a first example, the vehicle data D1 indicates a detection value detected by a sensor mounted on the vehicle M. An occupant of the vehicle M operates an operation unit to instruct an operation such as turning on a lamp, turning off a lamp, locking or unlocking a door. As a second example, the vehicle data D1 indicates an operation instructed by operating the operation unit. The first ECU 11 transmits the vehicle data D1 to the third ECU 13 via the communication bus B.

[0033] Electrical devices (not shown) are connected to the third ECU 13. When the third ECU 13 receives the vehicle data D1 from the first ECU 11, the third ECU 13 controls the operation of the electrical devices based on the received vehicle data D1.

[0034] In the first ECU 11, an energization fault may occur in which a current flows through the power supply switch F1 despite an instruction to switch the power supply switch F1 off. When an energization fault occurs, the resistance value between the drain and source of the power supply switch F1 does not increase to a sufficiently high value when an instruction to switch the power supply switch F1 off is issued. The energization fault includes a short-circuit fault in which the drain and source of the power supply switch F1 remain short-circuited despite an instruction to switch the power supply switch F1 off.

[0035] When an energization failure occurs in the power supply switch F1 while the power switch 14 is on, the first ECU 11 detects the energization failure. The first ECU 11 transmits failure occurrence data indicating the occurrence of the energization failure to the second ECU 12 via the communication bus B. When the second ECU 12 receives the failure occurrence data, the second ECU 12 alternately repeats switching the power switch 14 on and off.

[0036] In the following, when the second ECU 12 alternately switches the power switch 14 on and off, the period during which the power switch 14 is on will be referred to as an on period. In a similar case, the period during which the power switch 14 is off will be referred to as an off period. The on period and the off period are constant. The on period is shorter than the off period. The on period is, for example, one-tenth of the off period.

[0037] The first ECU 11 is supplied with power from a connection node between the power switch 14 and the power supply switch F1. The first ECU 11 transmits data or controls power supply using the power supplied from the connection node. When the second ECU 12 alternately switches the power switch 14 on and off, the first ECU 11 transmits vehicle data D1 to the third ECU 13 during the on period.

[0038] The load E1 is an inductive load, a resistive load, or the like. The inductive load has an inductor. The inductive load is, for example, a motor. The resistive load has only resistance. The resistive load operates when a current flows through the resistance.

[0039] When the second ECU 12 switches the power switch 14 off, the first ECU 11 stops operating. When the second ECU 12 switches the power switch 14 from off to on, the second ECU 12 transmits fault notification data indicating the occurrence of a power supply fault in the power supply switch F1 to the first ECU 11 via the communication bus B.

[0040] When the second ECU 12 alternately switches the power switch 14 on and off, the on period is short. Therefore, if the load E1 is an inductive load, the power switch 14 switches off before the load E1 operates, and the load E1 maintains its stopped operation. If the load E1 is a resistive load, the power switch 14 switches off before the effect of the load E1 appears, and the load E1 stops operating.

[0041] <Configuration of first ECU 11> 2 is a block diagram showing the main configuration of the first ECU 11. In addition to the power supply switch F1, the first ECU 11 has a regulator 21, a first microcomputer (hereinafter referred to as the first microcomputer) 22, a drive circuit G1, and a comparator H1. The comparator H1 has a positive end, a negative end, and an output end. The drain of the power supply switch F1 is connected to one end of the power switch 14, as well as to the regulator 21 and the drive circuit G1. The gate of the power supply switch F1 is connected to the drive circuit G1. The drive circuit G1 is grounded. The source of the power supply switch F1 is connected to one end of the load E1, as well as to the positive end of the comparator H1.

[0042] A constant voltage Vc is applied to the negative terminal of the comparator H1. The reference potential of the constant voltage Vc is the ground potential. The output terminals of the drive circuit G1, the regulator 21, and the comparator H1 are each connected to a first microcomputer 22. The first microcomputer 22 is grounded.

[0043] When the power switch 14 is on, a current flows from the positive electrode of the DC power supply 15 to the power switch 14 and the drive circuit G1 in this order. As a result, the DC power supply 15 supplies power to the drive circuit G1. The drive circuit G1 operates using the power supplied from the DC power supply 15.

[0044] When the power switch 14 is on, the regulator 21 steps down the output voltage of the DC power supply 15 to a constant voltage, and applies the constant voltage generated by stepping down to the first microcomputer 22. As a result, a current flows from the positive electrode of the DC power supply 15 to the power switch 14, the regulator 21, and the first microcomputer 22 in that order. As a result, the first microcomputer 22 is supplied with power from the connection node between the power switch 14 and the power supply switch F1. The first microcomputer 22 operates using the power supplied from the DC power supply 15.

[0045] When the power switch 14 is on, the regulator 21 applies a constant voltage to the comparator H1. Current flows from the positive electrode of the DC power supply 15 through the power switch 14, the regulator 21, and the comparator H1 in that order, supplying power to the comparator H1. The comparator H1 operates using power supplied from the DC power supply 15. To avoid complicating the drawing, the connection lines between the regulator 21 and the comparator H1 are omitted. The comparator H1 is grounded. The constant voltage Vc may be a voltage generated by the regulator 21.

[0046] For the power supply switch F1, when the gate voltage, the reference potential of which is the source potential, is equal to or greater than a certain voltage, the power supply switch F1 is on. For the power supply switch F1, when the gate voltage, the reference potential of which is the source potential, is less than a certain voltage, the power supply switch F1 is off.

[0047] The first microcomputer 22 has a first output unit J1. The first output unit J1 is connected to the drive circuit G1. The first output unit J1 outputs a voltage to the drive circuit G1. The first output unit J1 switches the output voltage to a high-level voltage or a low-level voltage. When the first output unit J1 switches the output voltage from a low-level voltage to a high-level voltage, the drive circuit G1 increases the gate voltage, the reference potential of which is the ground potential, in the power supply switch F1. As a result, the gate voltage, the reference potential of which is the source potential, in the power supply switch F1, increases to a voltage equal to or higher than a certain voltage. As a result, the power supply switch F1 switches from off to on.

[0048] When the first output part J1 switches the output voltage from a high-level voltage to a low-level voltage, the drive circuit G1 lowers the gate voltage, the reference potential of which is the ground potential, in the power supply switch F1. As a result, the gate voltage, the reference potential of which is the source potential, in the power supply switch F1 drops to a voltage below a certain voltage. As a result, the power supply switch F1 switches from on to off. As described above, the drive circuit G1 switches the power supply switch F1 on or off depending on the output voltage of the first output part J1.

[0049] The first microcomputer 22 further includes a voltage input unit T1. The voltage input unit T1 is connected to the output terminal of the comparator H1. Hereinafter, the voltage of the source of the power supply switch F1, whose reference potential is the ground potential, will be referred to as the source voltage. The comparator H1 compares the source voltage of the power supply switch F1 with a constant voltage Vc. When the source voltage of the power supply switch F1 is equal to or higher than the constant voltage Vc, the comparator H1 outputs a high-level voltage to the voltage input unit T1. When the source voltage of the power supply switch F1 is lower than the constant voltage Vc, the comparator H1 outputs a low-level voltage to the voltage input unit T1.

[0050] The constant voltage Vc is equal to or greater than zero V and less than the power supply voltage across the DC power supply 15. When the power supply switch F1 is on, the source voltage of the power supply switch F1 substantially matches the power supply voltage of the DC power supply 15. Therefore, when the power supply switch F1 is on, the output voltage of the comparator H1 is a high-level voltage. When the power supply switch F1 is off, no current flows through the load E1. Therefore, the source voltage of the power supply switch F1 is zero V. Therefore, when the power supply switch F1 is off, the output voltage of the comparator H1 is a low-level voltage.

[0051] <Configuration of the first microcomputer 22> The first microcomputer 22 has a first communication unit 31, a temporary storage unit 32, a first storage unit 33, a first control unit 34, and a data input unit U1 in addition to a first output unit J1 and a voltage input unit T1. While power is being supplied to the first microcomputer 22 from the connection node between the power switch 14 and the power supply switch F1, power is supplied to the first communication unit 31, the temporary storage unit 32, the first storage unit 33, the first control unit 34, the first output unit J1, the voltage input unit T1, and the data input unit U1. Therefore, power is supplied to the first communication unit 31, the temporary storage unit 32, the first storage unit 33, the first control unit 34, the first output unit J1, the voltage input unit T1, and the data input unit U1 from the connection node between the power switch 14 and the power supply switch F1.

[0052] The first communication unit 31, the temporary storage unit 32, the first storage unit 33, the first control unit 34, the first output unit J1, the voltage input unit T1, and the data input unit U1 are connected to the first bus 35. As described above, the first output unit J1 and the voltage input unit T1 are connected to the drive circuit G1 and the comparator H1, respectively. The first communication unit 31 is further connected to the communication bus B.

[0053] The first output unit J1 switches the output voltage output to the drive circuit G1 to a high level voltage or a low level voltage in accordance with an instruction from the first control unit 34. As described above, the comparator H1 outputs a high level voltage or a low level voltage to the voltage input unit T1. The vehicle data D1 is input to the data input unit U1.

[0054] The first communication unit 31 transmits vehicle data D1 to the third ECU 13 via the communication bus B in accordance with an instruction from the first control unit 34. The first communication unit 31 transmits fault occurrence data to the second ECU 12 via the communication bus B in accordance with an instruction from the first control unit 34. The first communication unit 31 receives fault notification data from the second ECU 12 via the communication bus B.

[0055] The first control unit 34 writes data to the temporary storage unit 32. When power supply from the connection node between the power switch 14 and the power supply switch F1 to the first microcomputer 22 is stopped, the data stored in the temporary storage unit 32 is deleted. The data stored in the temporary storage unit 32 is read by the first control unit 34.

[0056] The first storage unit 33 is, for example, a non-volatile memory. A computer program P1 is stored in the first storage unit 33. The first control unit 34 has a processing element, for example, a CPU, that executes processing, and functions as a processing unit. The first control unit 34 also functions as a first computer. The processing element of the first control unit 34 executes the computer program P1 to execute a transmission process, a power supply control process, a writing process, and the like in parallel.

[0057] In the transmission process, the first control unit 34 executes a process for transmitting the vehicle data D1. The transmission process is different from a process related to the control of power supply via the power supply switch F1. The transmission process corresponds to a non-power supply control process. In the power supply control process, the first control unit 34 executes a process for controlling power supply to the load E1. In the write process, the first control unit 34 writes fault data indicating that a power supply fault has occurred in the power supply switch F1 to the temporary storage unit 32.

[0058] The computer program P1 may be provided to the first microcomputer 22 using a non-transitory storage medium A1 on which the computer program P1 is readably recorded. The storage medium A1 is, for example, a portable memory. Examples of the portable memory include a CD-ROM, a Universal Serial Bus (USB) memory, an SD card, a micro SD card, and a Compact Flash (registered trademark). When the storage medium A1 is a portable memory, the processing element of the first control unit 34 may read the computer program P1 from the storage medium A1 using a reading device (not shown). The read computer program P1 is stored in the first storage unit 33. Furthermore, the computer program P1 may be provided to the first microcomputer 22 by a communication unit (not shown) of the first microcomputer 22 communicating with an external device. In this case, the processing element of the first control unit 34 acquires the computer program P1 through the communication unit. The acquired computer program P1 is stored in the first storage unit 33.

[0059] The number of processing elements included in the first control unit 34 is not limited to 1, and may be 2 or more. When the first control unit 34 has multiple processing elements, the multiple processing elements may cooperate to execute a transmission process, a power supply control process, a writing process, and the like.

[0060] <Configuration of second ECU 12> 3 is a block diagram showing the main configuration of the second ECU 12. The second ECU 12 has a switching circuit 41 and a second microcomputer (hereinafter referred to as the second microcomputer) 42. The second microcomputer 42 has a second output unit 51. The second output unit 51 is connected to the switching circuit 41. The second output unit 51 outputs a voltage to the switching circuit 41. When the second output unit 51 switches the output voltage from a low-level voltage to a high-level voltage, the switching circuit 41 switches the power switch 14 from off to on. When the second output unit 51 switches the output voltage from a high-level voltage to a low-level voltage, the switching circuit 41 switches the power switch 14 from on to off.

[0061] The second microcomputer 42 has a second communication unit 52, a second storage unit 53, and a second control unit 54 in addition to the second output unit 51. The second output unit 51, the second communication unit 52, the second storage unit 53, and the second control unit 54 are connected to a second bus 55. The second communication unit 52 is further connected to a communication bus B.

[0062] The second output unit 51 switches the output voltage output to the switching circuit 41 to a high-level voltage or a low-level voltage in accordance with an instruction from the second control unit 54. The second communication unit 52 transmits fault notification data to the first communication unit 31 of the first ECU 11 via the communication bus B in accordance with an instruction from the second control unit 54. The second communication unit 52 receives fault occurrence data from the first communication unit 31 of the first ECU 11 via the communication bus B.

[0063] The second storage unit 53 is, for example, a non-volatile memory. A computer program P2 is stored in the second storage unit 53. The second control unit 54 has a processing element, for example, a CPU, that executes processing. The second control unit 54 also functions as a second computer. The processing element of the second control unit 54 executes the computer program P2 to execute a switch control process. In the switch control process, the second control unit 54 executes a process of switching the power switch 14 on or off.

[0064] The computer program P2 may be provided to the second microcomputer 42 using a non-transitory storage medium A2 on which the computer program P2 is readably recorded. The storage medium A2 is, for example, a portable memory. When the storage medium A2 is a portable memory, the processing element of the second control unit 54 may read the computer program P2 from the storage medium A2 using a reading device (not shown). The read computer program P2 is stored in the second storage unit 53. Furthermore, the computer program P2 may be provided to the second microcomputer 42 by a communication unit (not shown) of the second microcomputer 42 communicating with an external device. In this case, the processing element of the second control unit 54 acquires the computer program P2 through the communication unit. The acquired computer program P2 is stored in the second storage unit 53.

[0065] The number of processing elements included in the second control unit 54 is not limited to 1, and may be 2 or more. When the second control unit 54 has multiple processing elements, the multiple processing elements may cooperate to execute switch control processing and the like.

[0066] <Transmission process of the first ECU 11> 4 is a flowchart showing the procedure of the transmission process of the first ECU 11. In the transmission process, the first control unit 34 of the first ECU 11 first determines whether or not the vehicle data D1 has been input to the data input unit U1 (step S1). When the first control unit 34 determines that the vehicle data D1 has not been input (S1: NO), it executes step S1 again and waits until the vehicle data D1 is input to the data input unit U1. When the first control unit 34 determines that the vehicle data D1 has been input (S1: YES), it instructs the first communication unit 31 to transmit the vehicle data D1 to the third ECU 13 (step S2). After executing step S2, the first control unit 34 ends the transmission process.

[0067] After completing the transmission process, the first control unit 34 executes the transmission process again. While power is being supplied to the first microcomputer 22, that is, while the power switch 14 is on, the first communication unit 31 transmits the input vehicle data D1 to the third ECU 13 every time the vehicle data D1 is input to the data input unit U1.

[0068] <Power Supply Control Processing of First ECU 11> 5 is a flowchart showing the procedure of the power supply control process of the first ECU 11. When the power switch 14 is switched on and power is supplied to the first microcomputer 22 of the first ECU 11, the first microcomputer 22 is started up. When the first microcomputer 22 is started up, the first control unit 34 executes the power supply control process.

[0069] In the power supply control process, the first control unit 34 first determines whether or not fault data is stored in the temporary storage unit 32 (step S11). When the first control unit 34 determines that fault data is not stored in the temporary storage unit 32 (S11: NO), the first control unit 34 determines whether or not to switch the power supply switch F1 on (step S12).

[0070] In step S12, for example, when an ON signal instructing to switch the power supply switch F1 to ON is input to a signal input unit (not shown), the first control unit 34 determines to switch the power supply switch F1 to ON. In this configuration, when an ON signal is not input to the signal input unit, the first control unit 34 determines not to switch the power supply switch F1 to ON.

[0071] When the first control unit 34 determines not to switch the power supply switch F1 on (S12: NO), it determines whether to switch the power supply switch F1 off (step S13). In step S13, for example, when an off signal instructing to switch the power supply switch F1 off is input to the signal input unit, the first control unit 34 determines to switch the power supply switch F1 off. In this configuration, when an off signal is not input to the signal input unit, the first control unit 34 determines not to switch the power supply switch F1 off.

[0072] When the first control unit 34 determines not to switch the power supply switch F1 off (S13: NO), it executes step S11 again. The first control unit 34 waits until the failure data is written to the temporary storage unit 32 or until the timing for switching the power supply switch F1 on or off arrives.

[0073] When the first control unit 34 determines that failure data is stored in the temporary storage unit 32 (S11: YES), it ends the power supply control process. In this case, the first control unit 34 does not execute the power supply control process until the power supply to the first ECU 11 is stopped. The power supply to the first ECU 11 is stopped when the power switch 14 is switched off. When the first microcomputer 22 of the first ECU 11 is started up, the first control unit 34 executes the power supply control process again.

[0074] When the first control unit 34 determines that the power supply switch F1 should be switched on (S12: YES), it instructs the first output unit J1 to switch the output voltage to a high-level voltage, thereby instructing the drive circuit G1 to switch on the power supply switch F1 (step S14). When the power supply switch F1 is switched on, as described above, power is supplied to the load E1.

[0075] When the first control unit 34 determines that the power supply switch F1 should be switched off (S13: YES), it instructs the first output unit J1 to switch the output voltage to a low-level voltage, thereby instructing the drive circuit G1 to switch the power supply switch F1 off (step S15). When the power supply switch F1 is switched off, as described above, power supply to the load E1 is stopped. When the power supply switch F1 is off, the source voltage of the power supply switch F1 is zero V.

[0076] If a conduction fault occurs in the power supply switch F1, current continues to flow through the power supply switch F1. If current flows through the power supply switch F1, the source voltage of the power supply switch F1 exceeds zero V. If the source voltage is equal to or greater than a certain voltage Vc despite an instruction to switch the power supply switch F1 off, a conduction fault occurs in the power supply switch F1. As described above, if the source voltage is equal to or greater than the certain voltage Vc, the comparator H1 outputs a high-level voltage.

[0077] After executing step S15, the first control unit 34 determines whether or not a power supply failure has occurred in the power supply switch F1 based on the output voltage of the comparator H1 (step S16). In step S16, if the output voltage of the comparator H1 is a high-level voltage, the first control unit 34 determines that a power supply failure has occurred. If the output voltage of the comparator H1 is a low-level voltage, the first control unit 34 determines that a power supply failure has not occurred.

[0078] When the first control unit 34 determines that a power supply failure has occurred (S16: YES), it generates failure data (step S17) and writes the generated failure data to the temporary storage unit 32 (step S18). After executing step S18, the first control unit 34 instructs the first communication unit 31 to transmit the failure occurrence data to the second communication unit 52 of the second ECU 12 via the communication bus B (step S19). After executing one of steps S13 and S19, or when it determines that a power supply failure has not occurred (S16: NO), the first control unit 34 ends the power supply control process. In this case, the first control unit 34 executes the power supply control process again.

[0079] As described above, the first control unit 34 of the first ECU 11 instructs the power supply switch F1 to be switched on or off while the power switch 14 is on. Until the first control unit 34 detects a power supply failure, the drive circuit G1 F1is switched on or off. When the first control unit 34 detects a power supply failure, it writes failure data to the temporary storage unit 32 and notifies the second ECU 12 of the occurrence of the power supply failure. When failure data is stored in the temporary storage unit 32, the first control unit 34 stops execution of the power supply control process until power supply to the first ECU 11 is stopped.

[0080] <Switch control process of the second ECU 12> 6 is a flowchart showing a procedure of the switch control process of the second ECU 12. The second control unit 54 of the second ECU 12 determines whether or not the second communication unit 52 has received fault occurrence data from the first communication unit 31 of the first ECU 11 (step S21). When the second control unit 54 determines that the second communication unit 52 has not received the fault occurrence data (S21: NO), it executes step S21 again and waits until the second communication unit 52 receives the fault occurrence data.

[0081] When the second control unit 54 determines that the second communication unit 52 has received the fault occurrence data (S21: YES), it instructs the second output unit 51 to switch the output voltage to a low-level voltage, thereby causing the switching circuit 41 to switch the power switch 14 to OFF (step S22). This stops the power supply to the load E1. When the power switch 14 is switched OFF, the power supply to the first microcomputer 22, the drive circuit G1, the comparator H1, etc. of the first ECU 11 is stopped. When the power supply to the first microcomputer 22 is stopped, the first microcomputer 22 stops operating, and the fault data stored in the temporary storage unit 32 of the first microcomputer 22 is erased.

[0082] After executing step S22, the second control unit 54 determines whether or not a certain off period has elapsed since the switching circuit 41 switched the power switch 14 to off (step S23). If the second control unit 54 determines that the off period has not elapsed (S23: NO), it skips step S23. again Run and wait for the off period to elapse.

[0083] When the second control unit 54 determines that the off period has elapsed (S23: YES), it instructs the second output unit 51 to switch the output voltage to a high-level voltage, thereby causing the switching circuit 41 to switch the power switch 14 on (step S24). When the power switch 14 is switched on, power is supplied to the first microcomputer 22, the drive circuit G1, the comparator H1, etc. of the first ECU 11. When power is supplied to the first microcomputer 22, the first microcomputer 22 starts up. At this time, no failure data is stored in the temporary storage unit 32 of the first microcomputer 22.

[0084] After executing step S24, the second control unit 54 instructs the second communication unit 52 to transmit fault notification data to the first communication unit 31 of the first ECU 11 (step S25). This notifies the first ECU 11 of the occurrence of a power supply fault in the power supply switch F1. After executing step S25, the second control unit 54 determines whether or not a certain ON period has elapsed since the power switch 14 was switched ON (step S26). If the second control unit 54 determines that the ON period has not elapsed (S26: NO), it executes step S26 again and waits until the ON period has elapsed.

[0085] The first control unit 34 executes a transmission process while power is being supplied to the first microcomputer 22. Therefore, when the vehicle data D1 is input to the data input unit U1 during the on-period, the first communication unit 31 transmits the vehicle data D1 input to the data input unit U1 to the third ECU 13.

[0086] When the second control unit 54 determines that the ON period has elapsed (S26: YES), it executes step S22 again. As a result, after the second communication unit 52 receives the failure occurrence data, the switching circuit 41 alternately repeats switching the power switch 14 ON and OFF. In other words, after the first control unit 34 of the first ECU 11 determines that a current-carrying failure has occurred in the power supply switch F1, the second control unit 54 instructs the power switch 14 to alternately repeat switching ON and OFF.

[0087] <Writing process of the first ECU 11> 7 is a flowchart showing the procedure of the write process of the first ECU 11. When the first microcomputer 22 of the first ECU 11 is started, the first control unit 34 executes the write process. In the write process, the first control unit 34 of the first ECU 11 determines whether or not the first communication unit 31 has received malfunction notification data from the second communication unit 52 of the second ECU 12 (step S31). When the first control unit 34 determines that the first communication unit 31 has not received the malfunction notification data (S31: NO), it executes step S31 again and waits until the first communication unit 31 receives the malfunction notification data.

[0088] When the first control unit 34 determines that the first communication unit 31 has received the fault notification data (S31: YES), the first control unit 34 generates fault data (step S32) and writes the generated fault data to the temporary storage unit 32 (step S33). After executing step S33, the first control unit 34 ends the writing process.

[0089] As described above, in the first ECU 11, when the first communication unit 31 receives the fault notification data, the first control unit 34 writes the fault data to the temporary storage unit 32. As described above, in the switch control process, the second control unit 54 instructs the switching circuit 41 to switch the power switch 14 to ON, and then causes the second communication unit 52 to transmit the fault notification data. When the power switch 14 is switched to ON, the first microcomputer 22 of the first ECU 11 is started, and the first control unit 34 executes the power supply control process. However, since the first communication unit 31 receives the fault notification data immediately after the power switch 14 is switched to ON, the first control unit 34 、 The power supply control process ends immediately after the first microcomputer 22 is started up.

[0090] <Operations of the First ECU 11 and the Second ECU 12> Fig. 8 is a timing chart for explaining the operation of the first ECU 11 and the second ECU 12. Fig. 8 shows the state of the power switch 14, the state of the first communication unit 31 of the first ECU 11, the instruction of the power supply switch F1, and the transition of the source voltage of the power supply switch F1. The horizontal axis of these transitions indicates time. Vb indicates the power supply voltage of the DC power supply 15.

[0091] Before a power supply failure is detected, the switching circuit 41 of the second ECU 12 keeps the power switch 14 on. While the switching circuit 41 keeps the power switch 14 on, in the first ECU 11, the first communication unit 31 transmits the vehicle data D1 every time the vehicle data D1 is input to the data input unit U1. While the switching circuit 41 keeps the power switch 14 on, the first control unit 34 instructs the drive circuit G1 to switch the power supply switch F1 on or off.

[0092] When the first ECU 11 is in a normal state, the drive circuit G1 switches the power supply switch F1 on or off in accordance with an instruction from the first control unit 34. Therefore, while the first control unit 34 is instructing the power supply switch F1 to be switched on, the source voltage of the power supply switch F1 is the power supply voltage Vb of the DC power supply 15. The power supply voltage Vb is equal to or higher than a constant voltage Vc. While the first control unit 34 is instructing the power supply switch F1 to be switched off, the source voltage of the power supply switch F1 is zero V. Zero V is less than the constant voltage Vc.

[0093] When the source voltage of the power supply switch F1 is equal to or higher than the certain voltage Vc despite the instruction to switch the power supply switch F1 off, the first control unit 34 determines that a power supply failure has occurred in the power supply switch F1. As a result, the power supply failure of the power supply switch F1 is detected by the first control unit 34.

[0094] When the first control unit 34 of the first ECU 11 detects a power supply failure, the switching circuit 41 of the second ECU 12 switches off the power switch 14. When the first control unit 34 of the first ECU 11 detects a power supply failure, it ends the power supply control process and does not execute the power supply control process until the first microcomputer 22 of the first ECU 11 is started up again.

[0095] After the first control unit 34 detects the power supply failure, the switching circuit 41 of the second ECU 12 alternately switches the power switch 14 on and off. As described above, the on-period and off-period of the power switch 14 are constant. The on-period is shorter than the off-period. Therefore, during the on-period, less power is supplied to the load E1 via the power switch 14 and the power supply switch F1. Therefore, if the load E1 is an inductive load, the power switch 14 is switched off before the load E1 operates. As a result, during the on-period, the operation of the load E1 is substantially stopped. If the load E1 is a resistive load, the power switch 14 is switched off before the effect of the load E1 appears, and the load E1 stops operating.

[0096] Even if a power failure occurs, the first control unit 34 of the first ECU 11 can execute the transmission process because the on-period exists. Therefore, in the first ECU 11, when the vehicle data D1 is input to the data input unit U1 during the on-period, the first communication unit 31 transmits the vehicle data D1.

[0097] In the second ECU 12, when the switching circuit 41 switches the power switch 14 on, the second communication unit 52 transmits fault notification data to the first communication unit 31 of the first ECU 11. Therefore, the first control unit 34 of the first ECU 11 ends the power supply control process before issuing an instruction to switch the power supply switch F1 on.

[0098] (Embodiment 2) In the first embodiment, the first ECU 11 controls the power supply to the load E1. However, the first ECU 11 may control the power supply to other loads in addition to the power supply to the load E1. The following describes the differences between embodiment 2 and embodiment 1. Since the configurations other than those described below are common to embodiment 1, the components common to embodiment 1 are given the same reference numerals as embodiment 1 and descriptions thereof will be omitted.

[0099] FIG. 9 is a block diagram showing a configuration of a main part of a power supply system 1 in the second embodiment. The power supply system 1 in the second embodiment includes the same components as the power supply system 1 in the first embodiment. The power supply system 1 in the second embodiment further includes a load E2. The load E2 is an electric device. The load E2 acts in the same way as the load E1. The first ECU 11 includes not only the power supply switch F1 but also a power supply switch F2. The power supply switch F2 is an N-channel type FET. The power supply switch F2 acts in the same way as the power supply switch F1. The power supply switch F2 also functions as a first switch.

[0100] 9, the power line and the communication line are indicated by thin and thick solid lines, respectively. The drain of the power supply switch F2 is connected to one end of the power switch 14. The source of the power supply switch F2 is connected to a load E2. The other end of the load E2 is grounded.

[0101] The first ECU 11 switches the power supply switch F2 on or off while the power supply switch 14 is on. When the first ECU 11 switches the power supply switch F2 on, a current flows from the positive pole of the DC power supply 15 to the power supply switch 14, the power supply switch F2, and the load E2 in this order. As a result, power is supplied to the load E2, and the load E2 operates. When the first ECU 11 switches the power supply switch F2 off, the flow of current through the power supply switch 14 and the power supply switch F2 stops. As a result, the power supply to the load E2 stops, and the load E2 stops operating.

[0102] When the power switch 14 and the power supply switches F1, F2 are on, the current flowing through the power switch 14 is split into two currents. These currents flow through the power supply switches F1, F2, respectively. The power switch 14 is disposed upstream of the current path of the current flowing through the power supply switch F1, and is disposed upstream of the current path of the current flowing through the power supply switch F2.

[0103] The first ECU 11 controls the power supply via the power switch 14 and the power supply switch F1 by switching the power supply switch F1 on or off, similarly to the first embodiment. As described above, the first ECU 11 controls the power supply via the power switch 14 and the power supply switch F2 by switching the power supply switch F2 on or off.

[0104] The first ECU 11 receives vehicle data D2 as well as vehicle data D1. Like the vehicle data D1, the vehicle data D2 indicates a detection value or operation of a sensor. Two electric devices (not shown) are connected to the third ECU 13. When the third ECU 13 receives the vehicle data D1 from the first ECU 11, the third ECU 13 controls the operation of one of the electric devices based on the received vehicle data D1. When the third ECU 13 receives the vehicle data D2 from the first ECU 11, the third ECU 13 controls the operation of the other electric device based on the received vehicle data D2.

[0105] In the first ECU 11, not only a conduction failure of the power supply switch F1 but also a conduction failure in which a current flows through the power supply switch F2 despite an instruction to switch the power supply switch F2 off may occur. The conduction failure of the power supply switch F2 includes a short-circuit failure of the power supply switch F2 as well as a conduction failure of the power supply switch F1.

[0106] When a power supply failure occurs in the power supply switch F1 or the power supply switch F2 while the power supply switch 14 is on, the first ECU 11 detects the power supply failure in the power supply switch F1 or the power supply switch F2. As in the first embodiment, the first ECU 11 transmits failure occurrence data indicating the occurrence of the power supply failure to the second ECU 12 via the communication bus B. The failure occurrence data indicates which of the power supply switches F1, F2 has the power supply failure. When the second ECU 12 receives the failure occurrence data, the second ECU 12 alternately switches the power supply switch 14 on and off.

[0107] When the second ECU 12 alternately switches the power switch 14 on and off, the on-period differs depending on which of the power supply switches F1 and F2 has a current-carrying failure. When the power supply switch F1 has a current-carrying failure, the on-period is long. When the power supply switch F2 has a current-carrying failure, the on-period is short.

[0108] Therefore, when the second ECU 12 alternately switches the power switch 14 on and off, if a power supply failure occurs in the power supply switch F1, the second ECU 12 transmits the vehicle data D1, D2 to the third ECU 13 during the on-period. In a similar case, if a power supply failure occurs in the power supply switch F2, the first ECU 11 transmits the vehicle data D2 to the third ECU 13 during the on-period. The first ECU 11 does not transmit the vehicle data D1 to the third ECU 13 during the on-period.

[0109] The load E2 is an inductive load, a resistive load, or the like, similar to the load E1. When the second ECU 12 switches the power switch 14 from off to on, the second ECU 12 transmits fault notification data indicating the occurrence of a power supply fault in the power supply switch F1 or the power supply switch F2 to the first ECU 11 via the communication bus B. The fault notification data indicates which of the power supply switches F1 and F2 has the power supply fault.

[0110] Assume that the load E2 is an inductive load. When the second ECU 12 alternately switches the power switch 14 on and off, the power switch 14 switches off before the load E2 operates, and the load E2 remains stopped. Assume that the load E2 is a resistive load. When the second ECU 12 alternately switches the power switch 14 on and off, the power switch 14 switches off before the effect of the load E2 appears, and the load E2 stops operating.

[0111] The period from when the power switch 14 is switched on until the effect of the resistive load appears is referred to as the resistance period. The period from when the power switch 14 is switched on until the inductive load operates is referred to as the induction period. Usually, the resistance period is longer than the induction period. Therefore, the on period of the power supply switch connected to the resistive load can be set to a period longer than the on period of the power supply switch connected to the inductive load.

[0112] For example, the loads E1 and E2 are a resistive load and an inductive load, respectively. In this case, as described above, the ON period of the power supply switch F1 can be set to a period longer than the ON period of the power supply switch F2.

[0113] When the second ECU 12 switches the power switch 14 from off to on, the second ECU 12 transmits fault notification data indicating the occurrence of a power supply fault in the power supply switch F1 or the power supply switch F2 to the first ECU 11 via the communication bus B. The fault notification data indicates which of the power supply switches F1 and F2 has the power supply fault.

[0114] <Configuration of first ECU 11> 10 is a block diagram showing the main configuration of the first ECU 11. The first ECU 11 in the second embodiment has the same components as the first ECU 11 in the first embodiment. The first ECU 11 in the second embodiment further has a power supply switch F2, a drive circuit G2, and a comparator H2. The comparator H2 has a positive terminal, a negative terminal, and an output terminal.

[0115] The drain of the power supply switch F2 is connected to one end of the power switch 14 as well as to the drive circuit G2. The gate of the power supply switch F2 is connected to the drive circuit G2. The drive circuit G2 is grounded. The source of the power supply switch F2 is connected to one end of the load E2 as well as to the positive end of the comparator H2. A constant voltage Vc is applied to the negative end of the comparator H2. The output ends of the drive circuit G2 and the comparator H2 are each connected to the first microcomputer 22.

[0116] The drive circuit G2 and the comparator H2 are supplied with power in the same manner as the drive circuit G1 and the comparator H1, respectively. The power supply switch F2 is configured in the same manner as the power supply switch F1.

[0117] Fig. 11 is a block diagram showing the main configuration of the first microcomputer 22. As shown in Fig. 11, the first microcomputer 22 in the second embodiment has the same components as the first microcomputer 22 in the first embodiment. The first microcomputer 22 in the second embodiment further has a first output unit J2, a voltage input unit T2, and a data input unit U2.

[0118] The first output part J2 is connected to the drive circuit G2. The first output part J2 and the drive circuit G2 function in the same manner as the first output part J1 and the drive circuit G1, respectively. Therefore, when the first output part J2 switches the output voltage from a low-level voltage to a high-level voltage, the drive circuit G2 switches the power supply switch F2 from off to on. When the first output part J2 switches the output voltage from a high-level voltage to a low-level voltage, the drive circuit G2 switches the power supply switch F2 from on to off.

[0119] The voltage input unit T2 is connected to the output terminal of the comparator H2. In the description of the second embodiment, the voltage of the source of each of the power supply switches F1 and F2, whose reference potential is the ground potential, is referred to as the source voltage. The comparator H2 operates in the same manner as the comparator H1. Therefore, when the source voltage of the power supply switch F2 is equal to or higher than a certain voltage Vc, the comparator H2 outputs a high-level voltage to the voltage input unit T2. When the source voltage of the power supply switch F2 is lower than the certain voltage Vc, the comparator H2 outputs a low-level voltage to the voltage input unit T2.

[0120] When the power supply switch F2 is on, the source voltage of the power supply switch F2 substantially matches the power supply voltage of the DC power supply 15. Therefore, when the power supply switch F2 is on, the output voltage of the comparator H2 is a high-level voltage. When the power supply switch F2 is off, no current flows through the load E2. Therefore, the source voltage of the power supply switch F2 is zero V. Therefore, when the power supply switch F2 is off, the output voltage of the comparator H2 is a low-level voltage.

[0121] <Configuration of the first microcomputer 22> In the first microcomputer 22 in the second embodiment, the first output unit J2, the voltage input unit T2, and the data input unit U2 are connected to the first bus 35. While power is being supplied to the first microcomputer 22 from the connection node between the power switch 14 and the power supply switch F1, power is also supplied to the first communication unit 31, the temporary storage unit 32, the first storage unit 33, the first control unit 34, the first output units J1 and J2, the voltage input units T1 and T2, and the data input units U1 and U2. Therefore, power is supplied to each of the first communication unit 31, the temporary storage unit 32, the first storage unit 33, the first control unit 34, the first output units J1 and J2, the voltage input units T1 and T2, and the data input units U1 and U2 from the connection node between the power switch 14 and the power supply switch F1.

[0122] The first output unit J2, like the first output unit J1, operates in accordance with the instruction of the first control unit 34 to control the drive circuit G2The first control unit 34 switches the output voltage output to the third ECU 13 to a high level voltage or a low level voltage. As described above, the comparator H2 outputs a high level voltage or a low level voltage to the voltage input unit T2. The vehicle data D2 is input to the data input unit U2. The first communication unit 31 transmits not only the vehicle data D1 but also the vehicle data D2 to the third ECU 13 via the communication bus B in accordance with an instruction from the first control unit 34.

[0123] The processing elements of the first control unit 34 execute the computer program P1 to concurrently perform processes such as transmission process of the vehicle data D1, D2, power supply control process of the loads E1, E2, write process, and execution stop process.

[0124] In the transmission process of each of the vehicle data D1 and D2, the first control unit 34 executes a process for transmitting the vehicle data D1 and D2. The transmission process of the vehicle data D1 and D2 is different from the process related to the control of power supply via the power supply switches F1 and F2. The transmission process of each of the vehicle data D1 and D2 corresponds to the non-power supply control process.

[0125] In the power supply control process for each of the loads E1 and E2, the first control unit 34 executes a process for controlling the power supply to each of the loads E1 and E2. In the write process, the first control unit 34 writes fault data indicating that a power supply fault has occurred in the power supply switch F1 or the power supply switch F2 to the temporary storage unit 32. The fault data indicates which of the power supply switches F1 and F2 has a power supply fault. In the execution stop process, the first control unit 34 stops the execution of one of the transmission processes of the vehicle data D1 and D2.

[0126] The number of processing elements included in the first control unit 34 is not limited to 1, and may be 2 or more. When the first microcomputer 22 has a plurality of first control units 34, the plurality of first control units 34 may cooperate with each other to execute the transmission process of the vehicle data D1, D2, the power supply control process of the loads E1, E2, the write process, the execution stop process, and the like.

[0127] <Transmission process of the first ECU 11> The first control unit 34 of the first ECU 11 executes the transmission process of the vehicle data D1 in the same manner as in the first embodiment. The transmission process of the vehicle data D2 is the same as the transmission process of the vehicle data D1. In the explanation of the transmission process of the vehicle data D1, the data input unit U1 and the vehicle data D1 can be replaced with the data input unit U2 and the vehicle data D2, respectively, to explain the transmission process of the vehicle data D2.

[0128] <Power Supply Control Processing of First ECU 11> 12 is a flowchart showing the procedure of the power supply control process for the load E1. When the power switch 14 is switched on and power is supplied to the first microcomputer 22 of the first ECU 11, the first microcomputer 22 is started. When the first microcomputer 22 is started, the first control unit 34 executes the power supply control process.

[0129] In the power supply control process for the load E1, the first control unit 34 executes steps S11 to S19 in the same manner as the power supply control process in embodiment 1. Description of steps S11 to S19 will be omitted. In step S11 of the power supply control process for the load E1, it is determined whether or not fault data indicating the power supply switch F1 or the power supply switch F2 is stored in the temporary storage unit 32. When the first control unit 34 determines that no fault data is stored in the temporary storage unit 32 (S11: NO), it executes step S12.

[0130] When the first control unit 34 determines that fault data is stored in the temporary storage unit 32 (S11: YES), it instructs the first output unit J1 to switch the output voltage to a low level voltage, thereby instructing the drive circuit G1 to switch the power supply switch F1 to OFF (step S41). When the fault data stored in the temporary storage unit 32 indicates the power supply switch F2, and the power supply switch F1 is ON, the drive circuit G1 switches the power supply switch F1 from ON to OFF. After executing step S41, the first control unit 34 ends the power supply control process. In this case, the first control unit 34 does not execute the power supply control process for the load E1 until the power supply to the first ECU 11 is stopped.

[0131] In step S17, the first control unit 34 generates failure data indicating the power supply switch F1. In step S19, the first control unit 34 instructs the first communication unit 31 to transmit the failure occurrence data indicating the power supply switch F1 to the second communication unit 52 of the second ECU 12 via the communication bus B.

[0132] The first control unit 34 executes the power supply control process of the load E2 in the same manner as the power supply control process of the load E1. In the description of the power supply control process of the load E1, the load E1, the power supply switches F1 and F2, the first output unit J1, the drive circuit G1, and the comparator H1 are replaced with the load E2, the power supply switches F2 and F1, the first output unit J2, the drive circuit G2, and the comparator H2, respectively. This makes it possible to explain the power supply control process of the load E2. Therefore, in the power supply control process of the load E2, the first control unit 34 writes failure data indicating the power supply switch F2 into the temporary storage unit 32. Furthermore, the first control unit 34 instructs the first communication unit 31 to transmit failure occurrence data indicating the power supply switch F2 to the second communication unit 52 of the second ECU 12 via the communication bus B.

[0133] In step S16 of the power supply control process for the load E1, the first control unit 34 determines whether or not a power supply failure has occurred in the power supply switch F1. In step S16 of the power supply control process for the load E2, the first control unit 34 determines whether or not a power supply failure has occurred in the power supply switch F2. When the first control unit 34 determines that a power supply failure has occurred in one of the power supply switches F1 and F2, it instructs the first communication unit 31 to transmit failure occurrence data indicating the power supply switch F1 or the power supply switch F2 to the second communication unit 52 of the second ECU 12.

[0134] <Execution stop processing of the first ECU 11> 13 is a flowchart showing the procedure of the execution stop processing of the first ECU 11. When the first microcomputer 22 of the first ECU 11 is started, the first control unit 34 executes the execution stop processing. In the execution stop processing, the first control unit 34 of the first ECU 11 first determines whether or not fault data indicating the power supply switch F1 or the power supply switch F2 is stored in the temporary storage unit 32 (step S51). When the first control unit 34 determines that no fault data is stored in the temporary storage unit 32 (S51: NO), it executes step S51 again and waits until fault data is stored in the temporary storage unit 32.

[0135] When it is determined that failure data is stored (S51: YES), the first control unit 34 determines whether or not there is a transmission process that needs to be stopped in the vehicle data D1, D2 (step S52).

[0136] Fig. 14 is a diagram showing the relationship between a faulty power supply switch and a transmission process that needs to be stopped. As shown in Fig. 14, when a power supply failure occurs in the power supply switch F1, there is no transmission process that needs to be stopped. When a power supply failure occurs in the power supply switch F2, the transmission process of the vehicle data D1 needs to be stopped.

[0137] 13, the first control unit 34 determines that there is no transmission process that needs to be stopped when the fault data stored in the temporary storage unit 32 indicates the power feeding switch F1. The first control unit 34 determines that there is a transmission process that needs to be stopped when the fault data stored in the temporary storage unit 32 indicates the power feeding switch F2.

[0138] When the first control unit 34 determines that there is a transmission process that needs to be stopped (S52: YES), it stops the execution of the transmission process that needs to be stopped, i.e., the transmission process of the vehicle data D1 (step S53).When the first control unit 34 determines that there is no transmission process that needs to be stopped (S52: NO), or after executing step S53, it ends the execution stop process. As described above, when the failure data indicating the power supply switch F2 is stored in the temporary storage unit 32, the execution of the transmission process of the vehicle data D1 is stopped.

[0139] <Switch control process of the second ECU 12> The switch control process in the second embodiment is similar to the switch control process in the first embodiment. Therefore, when the second communication unit 52 receives failure occurrence data from the first communication unit 31 of the first ECU 11, the switching circuit 41 of the second ECU 12 alternately repeats switching the power switch 14 on and off. As described above, the on period differs depending on which of the power supply switches F1, F2 has a current supply failure. The off period also differs depending on which of the power supply switches F1, F2 has a current supply failure. The second storage unit 53 stores a period table indicating the on period and the off period corresponding to the failed power supply switch.

[0140] Fig. 15 is a chart showing the contents of the period table. As shown in Fig. 15, the period table shows the on-period and off-period corresponding to the power supply switch F1, and the on-period and off-period corresponding to the power supply switch F2. As described above, the on-period of the power supply switch F1 is longer than the on-period of the power supply switch F2. The off-period of the power supply switch F1 is shorter than the off-period of the power supply switch F2. The sum of the on-period and off-period of the power supply switch F1 is the same as the sum of the on-period and off-period of the power supply switch F2. For each of the power supply switches F1 and F2, the on-period is shorter than the off-period.

[0141] In step S21 of the switch control process in the second embodiment, the second control unit 54 determines whether the second communication unit 52 has received fault occurrence data indicating the power feeding switch F1 or the power feeding switch F2 from the first communication unit 31 of the first ECU 11. If the fault occurrence data received by the second communication unit 52 indicates the power feeding switch F1, the on period and off period of the power feeding switch F1 are used in the period table. If the fault occurrence data received by the second communication unit 52 indicates the power feeding switch F2, the on period and off period of the power feeding switch F2 are used in the period table.

[0142] If the fault occurrence data received by the second communication unit 52 indicates the power feeding switch F1, in step S25, the second control unit 54 instructs the second communication unit 52 to transmit fault notification data indicating the power feeding switch F1 to the first communication unit 31 of the first ECU 11. If the fault occurrence data received by the second communication unit 52 indicates the power feeding switch F2, in step S25, the second control unit 54 instructs the second communication unit 52 to transmit fault notification data indicating the power feeding switch F2 to the first communication unit 31 of the first ECU 11.

[0143] As described above, in the second ECU 12, when the second communication unit 52 receives failure occurrence data indicating the power supply switch F1 or the power supply switch F2, the switching circuit 41 alternately repeats switching the power switch 14 on and off. As described above, the on period and the off period each differ depending on which of the power supply switches F1 and F2 has an electrical failure.

[0144] <Writing process of the first ECU 11> The write process in the second embodiment is similar to the write process in the first embodiment. In step S31, the first control unit 34 of the first ECU 11 determines whether the first communication unit 31 has received fault notification data indicating the power feeding switch F1 or the power feeding switch F2 from the second communication unit 52 of the second ECU 12. If the fault detection data received by the first communication unit 31 indicates the power feeding switch F1, in step S32, fault data indicating the power feeding switch F1 is generated. In step S33, the fault data indicating the power feeding switch F1 is written to the temporary storage unit 32.

[0145] If the failure detection data received by the first communication unit 31 indicates the power supply switch F2, then in step S32, failure data indicating the power supply switch F2 is generated. In step S33, the failure data indicating the power supply switch F2 is written to the temporary storage unit 32.

[0146] In the second embodiment, the first communication unit 31 receives the fault notification data immediately after the power switch 14 is turned on. Therefore, the first control unit 34 、Immediately after the first microcomputer 22 is started, the power supply control process for the loads E1 and E2 is terminated. If the failure notification data received by the first communication unit 31 indicates the power supply switch F2, the execution of the transmission process for the vehicle data D1 is stopped. If the failure notification data received by the first communication unit 31 indicates the power supply switch F1, the transmission process for the vehicle data D1 and D2 is executed.

[0147] <Operations of the First ECU 11 and the Second ECU 12> Fig. 16 is a timing chart for explaining the operations of the first ECU 11 and the second ECU 12. Fig. 16 shows the state of the power switch 14, the state of the first communication unit 31 of the first ECU 11, the instruction of the power supply switch F1, the source voltage of the power supply switch F1, the instruction of the power supply switch F2, and the transition of the source voltage of the power supply switch F2. The horizontal axis of these transitions indicates time.

[0148] 16 shows an operation when a power supply failure occurs in the power supply switch F1. Before a power supply failure in the power supply switch F1 or the power supply switch F2 is detected, the switching circuit 41 of the second ECU 12 keeps the power supply switch 14 on. While the switching circuit 41 keeps the power supply switch 14 on, in the first ECU 11, the first communication unit 31 transmits the vehicle data D1 every time vehicle data D1 is input to the data input unit U1. The first communication unit 31 transmits the vehicle data D2 every time vehicle data D2 is input to the data input unit U2.

[0149] While the switching circuit 41 keeps the power switch 14 on, the first control unit 34 instructs the drive circuit G1 to switch the power supply switch F1 on or off, and further instructs the drive circuit G2 to switch the power supply switch F2 on or off.

[0150] When the first ECU 11 is in a normal state, the drive circuits G1 and G2 each switch the power supply switches F1 and F2 on or off according to an instruction from the first control unit 34. Therefore, while the instruction for the power supply switch F1 is on, the source voltage of the power supply switch F1 is the power supply voltage Vb of the DC power supply 15. While the instruction for the power supply switch F2 is on, the source voltage of the power supply switch F2 is the power supply voltage Vb of the DC power supply 15. While the instruction for the power supply switch F1 is off, the source voltage of the power supply switch F1 is zero V. While the instruction for the power supply switch F2 is off, the source voltage of the power supply switch F2 is zero V. The power supply voltage Vb is equal to or greater than a certain voltage Vc. Zero V is less than the certain voltage Vc.

[0151] When the source voltage of the power supply switch F1 is equal to or higher than the certain voltage Vc despite the instruction to switch the power supply switch F1 off, the first control unit 34 determines that a power supply failure has occurred in the power supply switch F1. As a result, the power supply failure of the power supply switch F1 is detected by the first control unit 34.

[0152] When the first control unit 34 of the first ECU 11 detects a power supply failure of the power supply switch F1, the first control unit 34 instructs the drive circuit G2 to switch the power supply switch F2 to OFF. Furthermore, the switching circuit 41 of the second ECU 12 switches the power switch 14 to OFF. When the first control unit 34 of the first ECU 11 detects a power supply failure of the power supply switch F1 or the power supply switch F2, it ends the power supply control process of the loads E1, E2 and does not execute the power supply control process of the loads E1, E2 until the first microcomputer 22 of the first ECU 11 is started up again.

[0153] After the first control unit 34 detects the power failure, the switching circuit 41 of the second ECU 12 alternately switches the power switch 14 on and off. Even if a power failure occurs, since there is an on period, the first control unit 34 of the first ECU 11 can execute the transmission process of the vehicle data D1, D2. Therefore, in the first ECU 11, if the vehicle data D1 is input to the data input unit U1 during the on period, the first communication unit 31 transmits the vehicle data D1. Similarly, if the vehicle data D2 is input to the data input unit U2 during the on period, the first communication unit 31 transmits the vehicle data D2.

[0154] In the second ECU 12, when the switching circuit 41 switches the power switch 14 on, the second communication unit 52 transmits failure notification data indicating the power supply switch F1 to the first communication unit 31 of the first ECU 11. Therefore, the first control unit 34 of the first ECU 11 ends the power supply control process for the loads E1, E2 before issuing an instruction to switch on the power supply switches F1, F2.

[0155] Fig. 17 is another timing chart for explaining the operations of the first ECU 11 and the second ECU 12. Fig. 17 shows the state of the power switch 14, the state of the first communication unit 31 of the first ECU 11, the instruction of the power supply switch F1, the source voltage of the power supply switch F1, the instruction of the power supply switch F2, and the transition of the source voltage of the power supply switch F2. The horizontal axis of these transitions indicates time.

[0156] 17 shows the operation when a power failure occurs in the power supply switch F2. The operation before the power failure of the power supply switch F1 or the power supply switch F2 is detected is as described above. The first control unit 34 instructs the power supply switch F2 to be switched off, but the power supply switch F2 If the source voltage of the power supply switch F2 is equal to or higher than the certain voltage Vc, it is determined that a power supply failure has occurred in the power supply switch F2. As a result, the first control unit 34 detects the power supply failure in the power supply switch F2.

[0157] When the first control unit 34 of the first ECU 11 detects a power failure of the power supply switch F2, the first control unit 34 instructs the drive circuit G1 to switch the power supply switch F1 to OFF. Furthermore, the switching circuit 41 of the second ECU 12 switches the power switch 14 to OFF. When the first control unit 34 of the first ECU 11 detects a power failure of the power supply switch F1 or the power supply switch F2, the first control unit 34 ends the power supply control process of the loads E1, E2 and does not execute the power supply control process of the loads E1, E2 until the first microcomputer 22 of the first ECU 11 is started again. When the first control unit 34 of the first ECU 11 detects a power failure of the power supply switch F2, the first control unit 34 stops execution of the transmission process of the vehicle data D1.

[0158] After the first control unit 34 detects the power failure, the switching circuit 41 of the second ECU 12 alternately switches the power switch 14 on and off. Even if a power failure occurs, an on period exists, so the first control unit 34 of the first ECU 11 can execute the transmission process of the vehicle data D2. Therefore, in the first ECU 11, when the vehicle data D2 is input to the data input unit U2 during the on period, the first communication unit 31 transmits the vehicle data D2.

[0159] In the second ECU 12, when the switching circuit 41 switches the power switch 14 on, the second communication unit 52 transmits failure notification data indicating the power supply switch F2 to the first communication unit 31 of the first ECU 11. Therefore, the first control unit 34 of the first ECU 11 ends the power supply control process for the loads E1, E2 before issuing an instruction to switch the power supply switches F1, F2 on. Furthermore, the first control unit 34 stops the execution of the transmission process of the vehicle data D1 before the first communication unit 31 transmits the vehicle data D1.

[0160] When the first control unit 34 of the first ECU 11 detects a power failure in the power supply switch F2, the ON period of the power switch 14 is short, so that the transmission of the vehicle data D1 is stopped and the transmission of the vehicle data D2 is started.

[0161] As described above, the first control unit 34 of the first ECU 11 executes the transmission process (non-power supply control process) of the vehicle data D1, D2 before an energization failure occurs in one of the two power supply switches F1, F2. When the first control unit 34 determines that an energization failure occurs in one of the two power supply switches F1, F2, the first control unit 34 executes a transmission process according to the power supply switch in which the energization failure occurs in the transmission process of the vehicle data D1, D2. Therefore, a transmission process according to the length of the on-period of the power supply switch in which the energization failure occurs is executed in the transmission process of the vehicle data D1, D2. The shorter the on-period, the fewer the number of transmission processes executed during the on-period.

[0162] <Modification of the second embodiment> In the second embodiment, the number of non-power supply control processes is not limited to 2 and may be 3 or more. There is no problem as long as the number of non-power supply control processes executed by the first control unit 34 when a power supply failure of the power supply switch F1 is detected is different from the number of non-power supply control processes executed by the first control unit 34 when a power supply failure of the power supply switch F2 is detected.

[0163] The number of non-power supply control processes executed by the first control unit 34 when it is determined that a power supply failure has occurred in one of the two power supply switches F1, F2 may be the same. The sum of the on-period and the off-period when a power supply failure has occurred in the power supply switch F1 may be different from the sum of the on-period and the off-period when a power supply failure has occurred in the power supply switch F2. The off-period may be constant regardless of which of the two power supply switches F1, F2 has a power supply failure.

[0164] The number of power supply switches in the first ECU 11 is not limited to two, and may be three or more. In this case, it is determined whether or not a power supply failure has occurred for each of the multiple power supply switches. When the first control unit 34 determines that a power supply failure has occurred in one of the multiple power supply switches, the switching circuit 41 of the second ECU 12 alternately repeats switching the power switch 14 on and off. The on period differs depending on the power supply switch in which the power supply failure has occurred. The number of non-power supply control processes executed by the first control unit 34 when it determines that a power supply failure has occurred in one of the multiple power supply switches may be different or the same.

[0165] <Modifications of the First and Second Embodiments> In the first and second embodiments, the method of determining whether or not a power supply failure has occurred in the power supply switch is not limited to a method based on the source voltage of the power supply switch. An output current output from the source of the power supply switch may be detected. The first control unit 34 of the first ECU 11 determines that a power supply failure has occurred in the power supply switch when a current is output from the source of the power supply switch despite an instruction to switch the power supply switch off. The non-power supply control process, which is different from the power supply control, is not limited to a data transmission process, and may be, for example, a process of making a determination.

[0166] The power switch 14 may be disposed in the second ECU 12. The number of the third ECUs 13 connected to the communication bus B is not limited to one and may be two or more. In the second embodiment, the third ECU 13 to which the vehicle data D1 is transmitted may be different from the third ECU 13 to which the vehicle data D2 is transmitted. Each of the power supply switches F1 and F2 is not limited to an N-channel FET and may be a P-channel FET, a bipolar transistor, a relay contact, or the like.

[0167] The disclosed embodiments 1 and 2 are illustrative in all respects and should not be considered as limiting. The scope of the present invention is defined by the claims, not by the above meaning, and is intended to include all modifications within the meaning and scope of the claims. [Explanation of symbols]

[0168] 1 Power System 11 1st ECU (control device) 12 Second ECU (switching device) 13 3rd ECU 14 Power switch (second switch) 15 DC power supply 21 Regulator 22 First microcomputer 31 First Communications Department 32 Temporary storage 33 1st memory section 34 First control unit (processing unit, first computer) 35 No. 1 Bus 41 Switching circuit 42 Second microcomputer 51 Second output section 52 2nd Communications Department 53 2nd memory section 54 Second control section (second computer) 55 No. 2 Bus A1,A2 Storage medium B Communication bus D1, D2 vehicle data E1,E2 load F1, F2 Power supply switch (first switch) G1, G2 drive circuit H1,H2 Comparator J1, J2 First output section M Vehicle P1, P2 computer program Q Power supply control system T1, T2 voltage input section U1, U2 data input section

Claims

1. A control device that controls power supply via a first switch by switching the first switch on or off; a switching device that switches on or off a second switch that is disposed upstream of the first switch in a current path of a current that flows through the first switch; Equipped with the control device has a processing unit that receives power from a connection node between the first switch and the second switch and executes processing; The processing unit includes: instructing the first switch to be switched on or off while the second switch is on; execute a non-power supply control process different from a process related to the control of power supply via the first switch; determining whether or not a current flow failure has occurred in which a current flows through the first switch despite an instruction to turn off the first switch; The switching device alternately repeats switching on and off of the second switch after the processing unit determines that the electrical failure has occurred. Power supply control system.

2. The processing unit of the control device instructs transmission of data in the non-power supply control process. The power supply control system according to claim 1 .

3. When the switching device alternately switches the second switch on and off, an on-period during which the second switch is on and an off-period during which the second switch is off are constant; The on-period is shorter than the off-period The power supply control system according to claim 1 or 2.

4. the number of the first switches is two or more; The current flowing through the second switch is divided into a plurality of currents, each of the plurality of currents flows through a plurality of first switches; The processing unit of the control device determines whether or not the power supply failure occurs for each of the first switches, When the processing unit determines that the electrical failure occurs in one of the plurality of first switches, the switching device alternately repeats switching on and off of the second switch; The on-period varies depending on the first switch in which the electrical conduction failure occurs. The power supply control system according to claim 3 .

5. The processing unit includes: Before the power supply failure occurs in one of the plurality of first switches, a plurality of non-power supply control processes are executed; When it is determined that the power supply failure occurs in one of the plurality of first switches, a power supply non-control process corresponding to the first switch in which the power supply failure occurs is executed among the plurality of power supply non-control processes. The power supply control system according to claim 4.

6. A processing method in which a first computer and a second computer are supplied with power from a connection node between a first switch and a second switch that is disposed upstream of the first switch in a current path of a current that flows through the first switch, the method comprising: The first computer instructing the first switch to be switched on or off while the second switch is on; executing a non-power supply control process different from a process related to control of power supply via the first switch; determining whether or not a current flow fault has occurred in which a current flows through the first switch despite an instruction to turn off the first switch; Run The second computer executes a step of instructing the second switch to be alternately and repeatedly switched on and off after the first computer determines that the electrical failure has occurred. Processing methods.

Citation Information

Patent Citations

  • Inductive load driving device and method for detecting its malfunction

    JP2004201410A

  • Overcurrent protective device for switching element

    JP2006340501A

  • Safety switching device and method for fail-safe shutdown of electrical loads

    JP2007500427A

  • Power supply control device, communication system, and power supply control method

    JP2017056768A

  • Power supply control device, power supply control method, and computer program

    JP2019140747A