In-vehicle device diagnostic apparatus, vehicle equipped with in-vehicle device diagnostic apparatus, in-vehicle device diagnostic method, and storage medium
By using a processor in the vehicle equipment diagnostic device to send a state transition signal to the ECU and judged based on the current value of the current measurement unit, the problem that the prior art cannot specify the abnormal state ECU is solved, and accurate identification and processing of the abnormal state ECU is realized.
Patent Information
- Application Number
- CN202210330817.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-05-14
- Filing Date
- 2022-03-30
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2042-03-30
AI Technical Summary
The existing vehicle-mounted equipment diagnostic device cannot specifically designate the ECU in the abnormal state when any of the ECUs in the abnormal state connected to a power line.
Under the control of the processor, a state transition signal is sent to a plurality of ECUs connected to the power line, so that the ECUs are converted into a wake-up state or a sleep state one by one, and based on the current value measured by the current measurement unit, it is determined whether the ECU is in an abnormal state.
It is realized that when any ECU is in an abnormal state, the ECU in an abnormal state is accurately specified to prevent the abnormal state from being placed for a long time.
Smart Images

Figure CN115339403B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to an in-vehicle device diagnostic apparatus, a vehicle including the in-vehicle device diagnostic apparatus, an in-vehicle device diagnostic method, and a storage medium. Background Art
[0002] In Japanese Patent Publication No. 6408843, an in-vehicle device diagnostic apparatus is disclosed. The in-vehicle device diagnostic apparatus includes: a storage battery provided on a vehicle; a plurality of power lines connected to the storage battery; ECUs connected to respective power lines; a bus connecting the respective ECUs; and a control device connected to the power lines and the bus.
[0003] The control device of the in-vehicle device diagnostic apparatus determines whether an ECU connected to each power line is in an abnormal state based on the magnitude of the dark current flowing in each power line. More specifically, the control device determines whether an ECU that is determined by the control device to be in a sleep state based on a signal transmitted from the ECU to the bus is actually in a wake-up state based on the magnitude of the dark current.
[0004] In the case where one ECU among a plurality of ECUs connected to one power line is in an abnormal state, the control device in Japanese Patent Publication No. 6408843 can determine that at least one ECU connected to the power line is in an abnormal state. However, the control device cannot specifically specify the ECU in the abnormal state. Summary of the Invention
[0005] In view of the above facts, an object of the present disclosure is to obtain an in-vehicle device diagnostic apparatus, a vehicle including the in-vehicle device diagnostic apparatus, an in-vehicle device diagnostic method, and a storage medium that can specifically specify an ECU in an abnormal state when any one of a plurality of ECUs connected to one power line is in an abnormal state.
[0006] The in-vehicle device diagnostic apparatus according to the first aspect of the present disclosure includes: a current measurement unit that measures a current value of at least one power line connected to a storage battery mounted on a vehicle; and a processor that causes each of the ECUs connected to the respective power lines to sequentially transition from a second state to a first state by transmitting a state transition signal to the plurality of ECUs, and determines whether each of the ECUs is in an abnormal state based on the current value of the target power line measured by the current measurement unit when causing the plurality of ECUs connected to one of the power lines, i.e., the target power line, to sequentially transition to the first state.
[0007] The processor of the in-vehicle device diagnostic apparatus according to the first aspect of the present disclosure causes each ECU to transition from the second state to the first state one by one by sending a state transition signal to a plurality of ECUs respectively connected to at least one power line connected to a battery mounted on a vehicle. Further, the current measurement unit measures the current value of each power line.
[0008] Further, the processor determines whether each ECU is in an abnormal state based on the current value of the target power line measured by the current measurement unit when causing a plurality of ECUs connected to one power line, i.e., the target power line, to transition to the first state one by one. Therefore, the in-vehicle device diagnostic apparatus according to the first aspect of the present disclosure can specifically specify an ECU in an abnormal state when any one of a plurality of ECUs connected to one power line is in an abnormal state.
[0009] The in-vehicle device diagnostic apparatus according to the second aspect of the present disclosure is such that, in the first aspect, all of the ECUs connected to the target power line can be transitioned to a wake-up state as the first state and a sleep state as the second state in which less power is consumed than when in the wake-up state.
[0010] In the second aspect of the present disclosure, it is possible to specifically specify an ECU in an abnormal state when any one of a plurality of ECUs connected to one power line and capable of being transitioned to a wake-up state and a sleep state is in an abnormal state.
[0011] The in-vehicle device diagnostic apparatus according to the third aspect of the present disclosure is such that, in the first aspect, all of the ECUs connected to the target power line can be transitioned to an idle state as the first state and a non-idle state as the second state in which more power is consumed than when in the idle state.
[0012] In the third aspect of the present disclosure, it is possible to specifically specify an ECU in an abnormal state when any one of a plurality of ECUs connected to one power line and capable of being transitioned to an idle state and a non-idle state is in an abnormal state.
[0013] The in-vehicle device diagnostic apparatus according to the fourth aspect of the present disclosure is such that, in any one of the first to third aspects, when the change amount of the current value of the target power line when the state transition signal is sent to one ECU, i.e., the target ECU, connected to the target power line is less than a predetermined ECU diagnostic threshold, the processor determines that the target ECU is in the abnormal state.
[0014] In the fourth aspect of the present disclosure, when the change amount of the current value of the target power line when a state transition signal is sent to a target ECU, which is one of the ECUs connected to the target power line, is less than the ECU diagnosis threshold value, the processor determines that the target ECU is in an abnormal state. Therefore, the in-vehicle device diagnosis apparatus according to the fourth aspect of the present disclosure can accurately specify the ECU in the abnormal state when any one of the multiple ECUs connected to one power line is in the abnormal state.
[0015] The in-vehicle device diagnosis apparatus according to the fifth aspect of the present disclosure is such that, in the first or fourth aspect, all the ECUs connected to the target power line can be switched to a wake-up state as the first state and a sleep state as the second state in which the power consumption is less than that in the wake-up state, and the processor determines whether there is an abnormality related to the current value in the target power line based on the current value measured by the current measurement unit, and the processor determines whether all the ECUs connected to the target power line determined to have an abnormality related to the current value are in the abnormal state.
[0016] In the fifth aspect of the present disclosure, the processor determines whether there is an abnormality related to the current value in the target power line based on the current value measured by the current measurement unit. Further, the processor determines whether all the ECUs connected to the target power line determined to have an abnormality related to the current value are in the abnormal state. Therefore, the in-vehicle device diagnosis apparatus according to the fifth aspect of the present disclosure can accurately specify the ECU in the abnormal state when any one of the multiple ECUs connected to the target power line having an abnormality related to the current value is in the abnormal state.
[0017] The in-vehicle device diagnosis apparatus according to the sixth aspect of the present disclosure is such that, in the fifth aspect, it has at least one bus connected to each of the ECUs, and the processor determines which of the first state and the second state each of the ECUs is in based on the signals sent from each of the ECUs via the bus, and determines that the power line for which all the ECUs connected to itself are determined to be in the second state and the current value is greater than a predetermined power line diagnosis threshold value is the target power line having an abnormality related to the current value.
[0018] In the sixth aspect of the present disclosure, the processor determines which of the first state and the second state each ECU is in based on the signals sent via the bus from each ECU. Further, the processor determines that the power line for which all the ECUs connected to itself are in the second state and the current value is greater than a predetermined power line diagnostic threshold is the target power line for which there is an abnormality in the current value. Therefore, the in-vehicle device diagnostic apparatus according to the sixth aspect of the present disclosure can accurately specify which power line is the target power line in the case where there are multiple power lines.
[0019] The in-vehicle device diagnostic apparatus according to the seventh aspect of the present disclosure is such that, in any one of the first to sixth aspects, the processor determines whether each of the ECUs is in the abnormal state based on the priority order set for each of the multiple ECUs connected to the target power line.
[0020] In the seventh aspect of the present disclosure, the processor determines whether each ECU is in the abnormal state based on the priority order set for each of the multiple ECUs connected to the target power line. Therefore, the in-vehicle device diagnostic apparatus according to the seventh aspect of the present disclosure can determine whether the multiple ECUs connected to the target power line are in the abnormal state based on the priority order.
[0021] The in-vehicle device diagnostic apparatus according to the eighth aspect of the present disclosure is such that, in any one of the first to seventh aspects, the processor resets each of the ECUs determined by the processor to be in the abnormal state based on the reset method defined for each power line.
[0022] In the eighth aspect of the present disclosure, the processor resets each of the ECUs determined by the processor to be in the abnormal state based on the reset method defined for each power line. Therefore, the in-vehicle device diagnostic apparatus according to the eighth aspect of the present disclosure can reset each of the ECUs determined by the processor to be in the abnormal state.
[0023] The in-vehicle device diagnostic apparatus according to the ninth aspect of the present disclosure is such that, in the eighth aspect, after performing the determination by the processor and the reset by the processor for one ECU, the determination by the processor and the reset by the processor for the other ECUs connected to the same target power line as the reset ECU are performed.
[0024] In a ninth aspect of the present disclosure, in a case where at least one of a plurality of ECUs connected to an object power line is in an abnormal state, it is possible to prevent the abnormal state of the ECU determined to be in the abnormal state from being left unattended for a long time.
[0025] The in-vehicle device diagnostic apparatus according to a tenth aspect of the present disclosure is such that, in an eighth aspect, when one of the ECUs connected to the object power line is determined to be in the abnormal state by the processor, the processor simultaneously resets all of the ECUs connected to the object power line.
[0026] In a tenth aspect of the present disclosure, in a case where at least one of the ECUs connected to an object power line is in an abnormal state, all of the ECUs connected to the same object power line as that ECU are simultaneously reset by the processor. Therefore, the in-vehicle device diagnostic apparatus according to the tenth aspect of the present disclosure can prevent the abnormal state of the ECU determined to be in the abnormal state by the processor and the ECU that is actually in the abnormal state but for which the determination by the processor has not been performed from being left unattended for a long time in a case where a plurality of ECUs connected to the object power line are actually in the abnormal state.
[0027] The vehicle according to an eleventh aspect of the present disclosure includes the in-vehicle device diagnostic apparatus according to any one of the first to tenth aspects.
[0028] The in-vehicle device diagnostic method according to a twelfth aspect of the present disclosure is a method in which the processor causes each of the ECUs to sequentially transition from a second state to a first state by sending a state transition signal to a plurality of ECUs respectively connected to at least one power line connected to a battery mounted on a vehicle, and determines whether each of the ECUs is in an abnormal state based on a current value of the object power line when causing the plurality of ECUs connected to one of the power lines, i.e., the object power line, to sequentially transition to the first state.
[0029] The storage medium according to a thirteenth aspect of the present disclosure is a computer-readable storage medium on which a program is stored, and when the program is executed by the processor, the following steps are performed: a step of causing each of the ECUs to sequentially transition from a second state to a first state by sending a state transition signal to a plurality of ECUs respectively connected to at least one power line connected to a battery mounted on a vehicle; and a step of determining whether each of the ECUs is in an abnormal state based on a current value of the object power line when causing the plurality of ECUs connected to one of the power lines, i.e., the object power line, to sequentially transition to the first state.
[0030] Effects of the present disclosure
[0031] As described above, the in-vehicle device diagnostic apparatus, the vehicle including the in-vehicle device diagnostic apparatus, the in-vehicle device diagnostic method, and the storage medium according to the present disclosure have the following excellent effects. That is, when any one of a plurality of ECUs connected to one power line is in an abnormal state, it is possible to specifically specify the ECU in the abnormal state. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A schematic diagram of a vehicle including the in-vehicle device diagnostic apparatus according to the embodiment.
[0033] Figure 2 For Figure 1 A control block diagram of the ECU (gateway) of the in-vehicle device diagnostic apparatus shown.
[0034] Figure 3 For Figure 2 A functional block diagram of the ECU shown.
[0035] Figure 4 For Figure 1 A control block diagram of the ECU of the in-vehicle device diagnostic apparatus shown.
[0036] Figure 5 For Figure 4 A functional block diagram of the ECU shown.
[0037] Figure 6 For showing Figure 2 A diagram of the wake-up frame and the idle state transition frame generated by the ECU shown.
[0038] Figure 7 For showing Figure 2 A diagram of the power line diagnosis threshold map recorded in the ROM of the ECU shown.
[0039] Figure 8 For showing Figure 2 A diagram of the priority map recorded in the ROM of the ECU shown.
[0040] Figure 9 For showing Figure 2 A diagram of the ECU diagnosis threshold map recorded in the ROM of the ECU shown.
[0041] Figure 10 For showing Figure 2 A flowchart of the processing executed by the ECU shown. DETAILED DESCRIPTION OF THE INVENTION
[0042] Hereinafter, embodiments of the in-vehicle device diagnostic apparatus 10, the vehicle 12 including the in-vehicle device diagnostic apparatus 10, the in-vehicle device diagnostic method, and the storage medium according to the present disclosure will be described with reference to the accompanying drawings.
[0043] Figure 1 FIG. 12 shows a vehicle 12 including the in-vehicle device diagnostic apparatus 10 (hereinafter referred to as the diagnostic apparatus 10) according to the embodiment. The diagnostic apparatus 10 includes a battery 14, a current sensor (current measurement unit) 16, an ECU (Electronic Control Unit) 18, an ECU 20, a connector 26, a power line (wire harness) 28, a first bus 32, a second bus 34, a third bus 36, and a fourth bus 38. The ECU 20 includes ECU 20-1, 20-2, 20-3, 20-4, 20-5, 20-6, 20-7, 20-8, and 20-9. That is, the ECU 20 is a general term for ECU 20-1, 20-2, 20-3, 20-4, 20-5, 20-6, 20-7, 20-8, and 20-9. The ECU 20 is connected to various devices (control objects, not shown) provided in the vehicle 12 and controls the control objects. Among these control objects, for example, an engine, a braking device, a steering device, a GPS receiver, an audio device, and a lighting device are included. The battery 14, the current sensor 16, the ECU 18, and the ECU 20 are connected together by the power line 28.
[0044] The power line 28 includes a first power line 28A, a second power line 28B, a third power line 28C, and a fourth power line 28D. The ECU 18 is connected to the first power line 28A via a part of the power line 28. Further, the ECU 20-1 and the ECU 20-2 are connected to the first power line 28A. The ECU 20-3, the ECU 20-4, and the ECU 20-5 are connected to the second power line 28B. The ECU 20-6 and the ECU 20-7 are connected to the third power line 28C. The ECU 20-8 and the ECU 20-9 are connected to the fourth power line 28D.
[0045] A switch 30B is provided on the second power line 28B, a switch 30C is provided on the third power line 28C, and a switch 30D is provided on the fourth power line 28D. The switches 30B, 30C, and 30D can move between a conducting position and a non-conducting position. The switches 30B, 30C, and 30D move between the conducting position and the non-conducting position under the control implemented by the ECU 18. Electric power of the storage battery 14 always flows in the first power line 28A. That is, the first power line 28A is connected to a constant power supply (+B). For example, when the ECU 18 detects that the distance between an intelligent key (not shown) held by a passenger of the vehicle 12 and the vehicle 12 becomes equal to or less than a predetermined distance in a state where an ignition switch (start switch) (not shown) of the vehicle 12 is in the off position, the switch 30B will move to the conducting position. That is, the second power line 28B is connected to the +BA power supply. The third power line 28C is connected to the IGR power supply. The switch 30C is in the conducting position when the ignition switch is in the on position. One of the ECUs 20-6 and 20-7 connected to the third power line 28C is connected to, for example, a steering device. The fourth power line 28D is connected to the IGP power supply. The switch 30D is in the conducting position when the ignition switch is in the on position. One of the ECUs 20-8 and 20-9 connected to the fourth power line 28D is connected to, for example, an audio device.
[0046] The ECUs 20-1 and 20-2 are connected to the ECU 18 via the first bus 32. The ECUs 20-3, 20-4, and 20-6 are connected to the ECU 18 via the second bus 34. The ECUs 20-5 and 20-8 are connected to the ECU 18 via the third bus 36. The ECUs 20-7 and 20-9 are connected to the ECU 18 via the fourth bus 38. A network having the ECU 18, the ECUs 20, the first bus 32, the second bus 34, the third bus 36, and the fourth bus 38 is, for example, a CAN (Controller Area Network), Ethernet (registered trademark, Ethernet), or Flex Ray (registered trademark, Flex Ray). The ECU 18 and the ECUs 20 can mutually transmit and receive various kinds of information via the first bus 32, the second bus 34, the third bus 36, and the fourth bus 38.
[0047] ECU 20-1, 20-2, 20-3, 20-4, 20-5 can be switched between a wake-up state (operating state) for controlling the actions of the controlled objects and a sleep state (power-saving state) for stopping the control by transmitting and receiving NM (Network Management) messages. Additionally, even when the ECU 20 is in the sleep state, the transceiver 20G described later operates. ECU 20-6, 20-7, 20-8, 20-9 can be switched between a non-idle state (operating state) for controlling the actions of the controlled objects and an idle state (power-saving state) for stopping the control. Additionally, even when the ECU 20-6, 20-7, 20-8, 20-9 are in the idle state, the transceiver 20G described later operates. The wake-up state and the idle state correspond to the "first state" of the technical solution. The sleep state and the non-idle state correspond to the "second state" of the technical solution. The power consumption per unit time of the ECU 20-1, 20-2, 20-3, 20-4, 20-5 in the sleep state is less than that of the ECU 20-1, 20-2, 20-3, 20-4, 20-5 in the wake-up state. The power consumption per unit time of the ECU 20-6, 20-7, 20-8, 20-9 in the idle state is less than that of the ECU 20-6, 20-7, 20-8, 20-9 in the non-idle state.
[0048] As Figure 2 shown, the ECU 18 with the function of a gateway is configured to include a CPU (Central Processing Unit) 18A, a ROM (Read Only Memory) 18B, a RAM (Random Access Memory) 18C, a memory 18D, a communication I / F (Inter Face) 18E, and an input / output I / F 18F. The CPU 18A, the ROM 18B, the RAM 18C, the memory 18D, the communication I / F 18E, and the input / output I / F 18F are connected to each other via a bus 18Z so as to be able to communicate with each other. The ECU 18 can obtain time-related information from a timer (not shown). The ROM 18B and the memory 18D are storage media.
[0049] The CPU 18A is a central processing unit and executes various programs or controls each part. That is, the CPU 18A reads a program from the ROM 18B or the memory 18D and uses the RAM 18C as a working area to execute the program. The CPU 18A controls each structure and performs various arithmetic processes according to the program recorded in the ROM 18B or the memory 18D.
[0050] The ROM 18B stores various programs and various data. In the ROM 18B, there are recorded Figure 7 the threshold map 15 for power line diagnosis shown in Figure 8 the priority map 17 shown in Figure 9 and the threshold map 21 for ECU diagnosis shown in
[0051] The threshold map 15 for power line diagnosis represents the threshold values of the current values of the currents flowing in the first power line 28A and the second power line 28B. Each threshold value specified by the threshold map 15 for power line diagnosis is a threshold value for power line diagnosis used to diagnose whether there is an abnormality in each power line. The threshold value for power line diagnosis is the current value when the ECUs 20-1, 20-2, 20-3, 20-4, 20-5 connected to each power line are in the sleep state. The first threshold value is the threshold value of the current value of the first power line 28A when the switches 30B, 30C, 30D are in the off position. The current value of the first power line 28A at this time is detected by the current sensor 16. The second threshold value is the threshold value of the sum of the current values of the first power line 28A and the second power line 28B when the switch 30B is in the on position and the switches 30C, 30D are in the off position. The sum of the current values of the first power line 28A and the second power line 28B at this time is detected by the current sensor 16. For example, the first threshold value is "2 mA (milliampere)" and the second threshold value is "4 mA".
[0052] The priority order specified for each of the first power line 28A, the second power line 28B, the third power line 28C, and the fourth power line 28D by the priority map 17 indicates the order of performing the abnormality determination diagnosis described later. For example, in the case of performing the abnormality determination diagnosis of the ECU 20 connected to the first power line 28A, before performing the abnormality determination diagnosis of the ECU 20-2, the ECU 18 executes the abnormality determination diagnosis of the ECU 20-1. The priority order of the present embodiment is specified based on the power consumption per unit time of each ECU 20. More specifically, the greater the power consumption per unit time, the higher the priority order of the ECU 20.
[0053] The ECU diagnostic threshold map 21 represents the threshold values of the change in the current flowing through the first power line 28A, the second power line 28B, the third power line 28C, and the fourth power line 28D when the ECU 18 sends the wake-up frame (status transition signal) 19A or the idle state transition frame (status transition signal) 19B described later. Each threshold value defined by the ECU diagnostic threshold map 21 is an ECU diagnostic threshold value used to diagnose whether there is an abnormality in each ECU 20. In the ECU diagnostic threshold map 21, the fifth threshold value and the sixth threshold value are defined as the ECU diagnostic threshold values. The fifth threshold value is the change in the current value of the current flowing through the first power line 28A or the second power line 28B when the ECUs 20-1, 20-2, 20-3, 20-4, 20-5 change from the sleep state to the wake-up state. For example, the fifth threshold value is 50 mA. The sixth threshold value is the change in the current value of the current flowing through the third power line 28C or the fourth power line 28D when the ECUs 20-6, 20-7, 20-8, 20-9 change from the non-idle state to the idle state. For example, the sixth threshold value is 50 A (amperes).
[0054] The RAM 18C temporarily stores programs or data as a working area. The memory 18D is composed of a storage device such as an HDD (Hard Disk Drive) or an SSD (Solid State Drive), and stores various programs and various data. The communication I / F 18E is an interface for the ECU 18 to communicate with other devices. The input / output I / F 18F is an interface for communicating with each device mounted on the vehicle 12.
[0055] In Figure 3 , an example of the functional structure of the ECU 18 is shown by a block diagram. In the ECU 18, as a functional structure, it has a message generation unit 181, a transmission unit 182, a reception unit 183, a state determination unit 184, an abnormality determination unit 185, and a reset unit 186. The message generation unit 181, the transmission unit 182, the reception unit 183, the state determination unit 184, the abnormality determination unit 185, and the reset unit 186 are implemented by the CPU 18A, which is an example of a processor (computer), reading and executing programs stored in the ROM 18B or the memory 18D, which are examples of storage media.
[0056] The message generation unit 181 generates Figure 6The wake-up frame 19A and the idle state transition frame 19B shown. In the wake-up frame 19A and the idle state transition frame 19B, information related to the ID of the ECU 20 that receives the wake-up frame 19A or the idle state transition frame 19B is appended. In the present embodiment, the ID of the ECU 20-1 is "20-1". The ID of the ECU 20-2 is "20-2". The ID of the ECU 20-3 is "20-3". The ID of the ECU 20-4 is "20-4". The ID of the ECU 20-5 is "20-5". The ID of the ECU 20-6 is "20-6". The ID of the ECU 20-7 is "20-7". The ID of the ECU 20-8 is "20-8". The ID of the ECU 20-9 is "20-9". In the wake-up frame 19A, the ID information of the ECU 20-1 to 20-5 is appended. In the idle state transition frame 19B, the ID information of the ECU 20-6 to 20-9 is appended. The content of the idle state transition frame 19B is different for each ID (ECU 20-6 to 20-9).
[0057] The transmission unit 182 can transmit the wake-up frame 19A and the idle state transition frame 19B generated by the message generation unit 181 to the first bus 32, the second bus 34, the third bus 36, and the fourth bus 38. As described later, when the ECUs 20-1 to 20-5 in the sleep state receive the wake-up frame 19A transmitted by the transmission unit 182 to the first bus 32, the second bus 34, and the third bus 36, the ECUs 20-1 to 20-5 (target ECUs) with the same ID as the wake-up frame 19A will transition to the wake-up state. In addition, when the ECUs 20-6 to 20-9 in the non-idle state receive the idle state transition frame 19B transmitted by the transmission unit 182 to the second bus 34, the third bus 36, and the fourth bus 38, the ECUs 20-6 to 20-9 (target ECUs) with the same ID as the idle state transition frame 19B will transition to the idle state.
[0058] The reception unit 183 can receive the signals transmitted by the ECU 20 via the first bus 32, the second bus 34, the third bus 36, and the fourth bus 38.
[0059] The state determination unit 184 determines, based on the signals received by the reception unit 183 via the first bus 32, the second bus 34, the third bus 36, and the fourth bus 38, which of the wake-up state and the sleep state the ECUs 20-1 to 20-5 are in, and which of the idle state and the non-idle state the ECUs 20-6 to 20-9 are in. For example, when an ECU 20 is in the wake-up state or the non-idle state, the reception unit 183 receives the signals periodically transmitted by the ECU 20 to the first bus 32, the second bus 34, the third bus 36, and the fourth bus 38. Therefore, when the state determination unit 184 detects these signals, it determines that the ECU 20 is in the wake-up state or the non-idle state. On the other hand, when an ECU 20 is in the sleep state or the idle state, the reception unit 183 does not receive these signals. Therefore, when the state determination unit 184 does not detect these signals via the first bus 32, the second bus 34, the third bus 36, and the fourth bus 38, it determines that the ECU 20 is in the sleep state or the idle state.
[0060] The abnormality determination unit 185 determines whether there is an abnormality in the first power line 28A and the second power line 28B. Further, the abnormality determination unit 185 determines, based on the current values of the first power line 28A, the second power line 28B, the third power line 28C, and the fourth power line 28D detected by the current sensor 16 and the ECU diagnostic threshold map 21, whether the ECU 20 that has received the wake-up frame 19A or the idle state transition frame 19B from the transmission unit 182 is in an abnormal state.
[0061] The function of the reset unit 186 will be described below.
[0062] As Figure 4 shown, the ECU 20 is configured to include: a CPU 20A, a ROM 20B, a RAM 20C, a memory 20D, a communication I / F 20E, an input / output I / F 20F, and a transceiver 20G. The CPU 20A, the ROM 20B, the RAM 20C, the memory 20D, the communication I / F 20E, the input / output I / F 20F, and the transceiver 20G are connected to each other via a bus 20Z so as to be able to communicate with each other. The ECU 20 can obtain time-related information from a timer (not shown).
[0063] Regardless of the state of the ECU 20, the transceiver 20G, which is a selective wake-up transceiver, operates. That is, it operates when the ECU 20 is in the wake-up state or the non-idle state, and also operates when the ECU 20 is in the sleep state or the idle state. The transceiver 20G receives the wake-up frame 19A and the idle state transition frame 19B transmitted by the ECU 18 while identifying the ID information attached to these frames.
[0064] In Figure 5 a block diagram shows an example of the functional structure of the ECU 20. In the ECU 20, as a functional structure, it has a signal generation unit 201, a transmission unit 202, a reception unit 203, and a state control unit 204. The signal generation unit 201, the transmission unit 202, the reception unit 203, and the state control unit 204 are implemented by the CPU 20A reading and executing a program stored in the ROM 20B.
[0065] The signal generation unit 201 generates a predetermined signal.
[0066] The transmission unit 202 transmits the signal generated by the signal generation unit 201 to at least one of the first bus 32, the second bus 34, the third bus 36, and the fourth bus 38.
[0067] The reception unit 203 receives the signal transmitted from the controlled object.
[0068] When the state control unit 204 receives the wake-up frame 19A from the transceiver 20G, it converts the ECUs 20-1, 20-2, 20-3, 20-4, 20-5 in the sleep state to the wake-up state. When the state control unit 204 receives the idle state transition frame 19B from the transceiver 20G, it converts the ECUs 20-6, 20-7, 20-8, 20-9 in the non-idle state to the idle state.
[0069] In Figure 1 as shown, a diagnostic device 42 is detachably connected to the connector 26. The diagnostic device 42 is connected to the connector 26 in a state where the ignition switch of the vehicle 12 is in the off position. When an operator operates the operation unit (not shown) of the diagnostic device 42 connected to the connector 26, an operation signal is sent from the diagnostic device 42 to the ECU 18. By the ECU 18 receiving this operation signal, the ECU 18 executes the processing described later ( Figure 10 processing).
[0070] Next, use Figure 10The flowchart is used to illustrate the process (diagnostic process) implemented by the ECU 18 in this embodiment. Additionally, the following process is implemented when the ignition switch of the vehicle 12 is in the off position, the smart key is at a position more than the above-mentioned predetermined distance from the vehicle 12, and a diagnostic device 42 is connected to the connector 26. Therefore, at the start time point of the following process, the switches 30B, 30C, and 30D are in the off position. When the ECU 18 starts the diagnostic process based on the control of the diagnostic device 42, every predetermined time, the ECU 18 repeats the execution of Figure 10 the process of the flowchart.
[0071] First, in step S10, the state determination unit 184 of the ECU 18 determines whether the ECUs 20-1 and 20-2 connected to the first power line 28A are in the sleep state based on the signals regularly transmitted by the ECUs 20-1 and 20-2 to the first bus 32.
[0072] When it is determined to be yes in step S10, the ECU 18 proceeds to step S11. On the other hand, when it is determined to be no in step S10, the ECU 18 repeats the process of step S10 until it is determined to be yes.
[0073] The abnormality determination unit 185 of the ECU 18 that proceeds to step S11 refers to Figure 7 the power line diagnosis threshold map 15 shown, and determines whether there is an abnormality in the first power line 28A. When the ECUs 20-1 and 20-2 are actually in the sleep state, the functions of the ECUs 20-1 and 20-2 stop except for the transceivers 20G. Therefore, when the ECUs 20-1 and 20-2 are actually in the sleep state, the current value of the current flowing in the first power line 28A becomes below the first threshold (for example, 2 mA or less). Therefore, when the abnormality determination unit 185 determines based on the signal received from the current sensor 16 that the current value of the current flowing in the first power line 28A is below the first threshold, the ECU 18 determines to be no in step S11 and proceeds to step S15.
[0074] On the other hand, when the abnormality determination unit 185 determines based on the signal received from the current sensor 16 that the current value of the current flowing in the first power line 28A is greater than the first threshold, the ECU 18 determines to be yes in step S11 and proceeds to step S12. For example, when at least one of the ECUs 20-1 and 20-2 is actually in the wake-up state, since a relatively large current is supplied to at least one of the ECUs 20-1 and 20-2, the current value of the first power line 28A becomes 100 mA or more.
[0075] The message generation unit 181 of the ECU 18 that advances to step S12 refers to Figure 8 the priority mapping 17 shown, and thus performs the abnormality determination diagnosis of the ECU 20-1 and the ECU 20-2. That is, before performing the abnormality determination diagnosis of the ECU 20-2, the message generation unit 181 performs the abnormality determination diagnosis of the ECU 20-1. More specifically, the message generation unit 181 generates a wake-up frame 19A with the ID "20-1", and the transmission unit 182 transmits this wake-up frame 19A to the first bus 32. The wake-up frame 19A transmitted to the first bus 32 is received by the transceivers 20G of the ECU 20-1 and the ECU 20-2. At this time, the transceiver 20G of the ECU 20-1 sends the wake-up frame 19A to the state control unit 204. Thereby, the ECU 20-1 in the sleep state is converted to the wake-up state. On the other hand, the transceiver 20G of the ECU 20-2 does not send the wake-up frame 19A to the state control unit 204.
[0076] At this time, there is a case where the amount of power supplied from the first power line 28A to the ECU 20-1 does not substantially change. That is, there is a case where the change amount of the current value of the first power line 28A detected by the current sensor 16 is less than the fifth threshold value. This situation is considered to be that the ECU 20-1 was already in the wake-up state before the wake-up frame 19A was transmitted from the transmission unit 182 to the first bus 32. That is, it is speculated that the current value of the first power line 28A after the wake-up frame 19A was transmitted from the transmission unit 182 to the first bus 32 is about 100 mA, and the current value of the first power line 28A before transmission is about 100 mA. Therefore, in this case, in step S10, the ECU 20-1 determined to be "in the sleep state" by the state determination unit 184 is determined to be actually in the wake-up state by the abnormality determination unit 185. That is, the abnormality determination unit 185 determines that "the ECU 20-1 is in an abnormal state for the sleep state (wake-up state)". In this case, the ECU 18 determines yes in step S12 and advances to step S13.
[0077] The reset unit 186 of the ECU 18 that advances to step S13 generates a RAM processing frame (not shown). In the RAM processing frame, ID information indicating the ID of the ECU 20 to be reset is attached. In this case, the ID attached to the RAM processing frame is "20-1". Further, in step S13, the transmission unit 182 transmits the generated RAM initialization frame to the ECU 20-1 and the ECU 20-2 via the first bus 32. When the transceivers 20G of the ECU 20-1 and the ECU 20-2 receive the RAM initialization frame, the RAM 20C of the ECU 20-1 is initialized. On the other hand, the RAM 20C of the ECU 20-2 is not initialized. Therefore, the ECU 20-1 that is in an abnormal state for the sleep state (wake state) is normalized.
[0078] The ECU 18 that has completed the processing of step S13 advances to step S12. After the state determination unit 184 determines that the ECU 20-1 and the ECU 20-2 are in the sleep state based on the signals periodically transmitted by the ECU 20-1 and the ECU 20-2 to the first bus 32, the message generation unit 181 refers to the priority mapping 17 to generate a wake-up frame 19A with the ID "20-2". Further, the transmission unit 182 transmits the wake-up frame 19A to the first bus 32. The wake-up frame 19A transmitted to the first bus 32 is received by the transceivers 20G of the ECU 20-1 and the ECU 20-2. At this time, the transceiver 20G of the ECU 20-2 transmits the wake-up frame 19A to the state control unit 204. Thereby, the ECU 20-2 in the sleep state is converted to the wake state. On the other hand, the transceiver 20G of the ECU 20-1 does not transmit the wake-up frame 19A to the state control unit 204.
[0079] When the ECU 20-2 in the sleep state is converted to the wake state, there is a case where the amount of power supplied from the first power line 28A to the ECU 20-2 increases rapidly. For example, the current value of the first power line 28A detected by the current sensor 16 changes from about 1 mA to about 100 mA. That is, the change amount of the current value of the first power line 28A detected by the current sensor 16 becomes equal to or greater than the fifth threshold value. In this case, the ECU 20-2 determined to be "in the sleep state" by the state determination unit 184 in step S10 is determined by the abnormality determination unit 185 to be actually in the sleep state. That is, in this case, the abnormality determination unit 185 determines that the ECU 20-2 is in a normal state for the sleep state (wake state). In this case, the ECU 18 determines no in step S12. That is, in this case, the abnormality determination unit 185 determines that the ECU 20-1 and the ECU 20-2 are in a normal state.
[0080] The ECU 18 that determines "No" in step S12 proceeds to step S14, and thus the abnormality determination unit 185 determines whether the diagnosis of the ECUs 20-1 and 20-2 connected to the first power line 28A has been completed. When it is determined "Yes" in step S14, the ECU 18 temporarily ends the processing represented in this flowchart.
[0081] In addition, for example, when an electronic device (not shown) manufactured by a manufacturer different from the manufacturer that manufactures the vehicle 12 is connected to a connector (not shown) provided on the vehicle 12 and connected to the battery 14, although there is no abnormality in the ECUs 20-1 and 20-2, the current value of the current flowing in the first power line 28A may sometimes become greater than the first threshold value. For example, in such a case, the ECU 18 determines "Yes" in step S11, determines "No" in step S12, and determines "Yes" in step S14.
[0082] The ECU 18 that has completed the diagnosis of the ECUs 20-1 and 20-2 performs the processing of step S10 again. In this case, the ECU 18 determines "Yes" in step S10, determines "No" in step S11, and proceeds to step S15.
[0083] The ECU 18 that proceeds to step S15 performs the same processing as step S10 for the second power line 28B. That is, the state determination unit 184 determines whether the ECUs 20-3, 20-4, and 20-5 are in the sleep state based on the signals periodically transmitted by the ECUs 20-3 and 20-4 to the second bus 34 and the signal periodically transmitted by the ECU 20-5 to the third bus 36.
[0084] The ECU 18 that determines "Yes" in step S15 proceeds to step S16 and performs the same processing as step S11 for the second power line 28B. First, the switch 30B that places the ECU 18 in the off position is moved to the on position. Further, the abnormality determination unit 185 of the ECU 18 refers to Figure 7 the power line diagnosis threshold map 15 shown, and determines whether there is an abnormality in the second power line 28B. That is, when the abnormality determination unit 185 determines, based on the signal received from the current sensor 16, that the total value of the current values of the first power line 28A and the second power line 28B is equal to or less than the second threshold value, the ECU 18 determines "No" in step S16 and proceeds to step S20.
[0085] On the other hand, when the abnormality determination unit 185 determines that the sum of the current values of the first power line 28A and the second power line 28B is greater than the second threshold value based on the signal received from the current sensor 16, the ECU 18 determines yes in step S16 and proceeds to step S17.
[0086] The message generation unit 181 of the ECU 18 that has advanced to step S17 performs the same processing as in step S12 for the second power line 28B. That is, the ECU 18 refers to the priority mapping 17 and performs abnormality determination diagnosis in the order of ECU 20-4, 20-3, and 20-5. In addition, in the abnormality determination diagnosis of ECU 20-4 and ECU 20-3, the transmission unit 182 sends a wake-up frame 19A to the second bus 34. In the abnormality determination diagnosis of ECU 20-5, the transmission unit 182 sends a wake-up frame 19A to the third bus 36.
[0087] As a result of the abnormality determination diagnosis of ECU 20-4, when the abnormality determination unit 185 determines that "ECU 20-4 is in an abnormal state for the sleep state (wake-up state)", the ECU 18 proceeds to step S18. The reset unit 186 of the ECU 18 that has advanced to step S18 generates a RAM initialization frame with the ID "20-4", and the transmission unit 182 sends the generated RAM initialization frame to ECU 20-3, 20-4, and 20-6 via the second bus 34. In this case, only the RAM 20C of ECU 20-4 is initialized. Therefore, ECU 20-4, which is in an abnormal state for the sleep state (wake-up state), is normalized.
[0088] The ECU 18 that has completed the processing of step S18 proceeds to step S17 and performs abnormality determination diagnosis in the order of ECU 20-3 and 20-5. Further, when it is determined yes in step S17, the ECU 18 performs a reset process in step S18.
[0089] The ECU 18 that determines no in step S17 proceeds to step S19, and the abnormality determination unit 185 determines whether the diagnosis of ECU 20-3, ECU 20-4, and ECU 20-5 connected to the second power line 28B has been completed. When it is determined yes in step S19, the ECU 18 temporarily ends the processing shown in this flowchart. At this time, the ECU 18 moves the switch 30B located in the conduction position to the disconnection position.
[0090] The ECU 18 that has completed the diagnosis of the ECUs 20-3, 20-4, and 20-5 performs the process of step S10 again. In this case, the ECU 18 determines "Yes" in step S10, "No" in step S11, "Yes" in step S15, and "No" in step S16, and thus proceeds to step S20.
[0091] The message generation unit 181 of the ECU 18 that has advanced to step S20 generates a non-idle state transition frame. In this non-idle state transition frame, information related to the ID of the ECU 20 is appended. That is, in step S20, the message generation unit 181 generates a non-idle state transition frame with the ID "20-6" and a non-idle state transition frame with the ID "20-7". Further, in step S20, the transmission unit 182 transmits these non-idle state transition frames to the second bus 34 and the fourth bus 38. As a result, the ECUs 20-6 and 20-7 become non-idle states. In addition, in the present embodiment, it is assumed that when each of the ECUs 20-6, 20-7, 20-8, and 20-9 receives a non-idle state transition frame, it transitions from the idle state to the non-idle state or maintains the non-idle state. That is, there is no abnormality in the transition function of each of the ECUs 20-6, 20-7, 20-8, and 20-9 from the idle state to the non-idle state. Further, in step S20, the ECU 18 moves the switches 30B and 30C located at the open positions to the closed positions.
[0092] The ECU 18 that has completed the process of step S20 proceeds to step S21. The message generation unit 181 of the ECU 18 that has advanced to step S21 performs the same process as step S12 for the third power line 28C. That is, the ECU 18 refers to the priority mapping 17 and performs the abnormality determination diagnosis in the order of the ECUs 20-7 and 20-6.
[0093] The message generation unit 181 of the ECU 18 generates an idle state transition frame 19B with the ID "20-7", and the transmission unit 182 transmits this idle state transition frame 19B to the fourth bus 38. The idle state transition frame 19B transmitted to the fourth bus 38 is received by the transceivers 20G of the ECUs 20-7 and 20-9.
[0094] At this time, there is a case where the amount of power supplied from the third power line 28C to the ECU 20-7 does not substantially change. That is, there is a case where the change amount of the total value of the current values of the first power line 28A, the second power line 28B, and the third power line 28C detected by the current sensor 16 is less than the sixth threshold value. In this case, although the transceiver 20G of the ECU 20-7 has received the idle state transition frame 19B, it is considered that the ECU 20-7 has not transitioned from the non-idle state to the idle state. In this case, it is speculated that the current value of the third power line 28C is approximately 200 A both before and after the transmission unit 182 transmits the idle state transition frame 19B to the fourth bus 38. In this case, the abnormality determination unit 185 determines that the ECU 20-7 is in an abnormal state for the transition from the non-idle state to the idle state. Therefore, the ECU 18 determines yes in step S21 and proceeds to step S22.
[0095] In addition, at this time, the transceiver 20G of the ECU 20-9 does not send the idle state transition frame 19B to the state control unit 204.
[0096] The reset unit 186 of the ECU 18 that has advanced to step S22 generates a RAM initialization frame with the ID "20-7", and further the transmission unit 182 transmits the generated RAM initialization frame to the ECUs 20-7 and 20-9 via the fourth bus 38. At this time, only the RAM 20C of the ECU 20-7 is initialized. Therefore, the ECU 20-7 that is in an abnormal state for the transition from the non-idle state to the idle state is normalized.
[0097] The ECU18 that has finished the processing of step S22 proceeds to step S21 to perform the abnormality determination diagnosis of ECU20-6. The message generation unit 181 of ECU18 generates an idle state transition frame 19B with the ID "20-6", and the transmission unit 182 transmits this idle state transition frame 19B to the second bus 34. The idle state transition frame 19B transmitted to the second bus 34 is received by the transceivers 20G of ECU20-3, 20-4, and 20-6. At this time, there is a situation where the amount of power supplied from the third power line 28C to ECU20-6 decreases sharply. For example, the change amount of the total current values of the first power line 28A, the second power line 28B, and the third power line 28C detected by the current sensor 16 changes from approximately 200 A to approximately 100 A. That is, the change amount of the total current values of the first power line 28A, the second power line 28B, and the third power line 28C detected by the current sensor 16 becomes equal to or greater than the sixth threshold value. In this case, it is determined by the abnormality determination unit 185 that ECU20-6 is in a normal state for the transition from the non-idle state to the idle state. Therefore, ECU18 determines "No" in step S21.
[0098] The ECU18 that has determined "No" in step S21 proceeds to step S23, and the abnormality determination unit 185 determines whether the diagnosis of ECU20-6 and ECU20-7 connected to the third power line 28C has been completed. When it is determined "Yes" in step S23, ECU18 proceeds to step S24.
[0099] The message generation unit 181 of ECU18 that has advanced to step S24 generates a non-idle state transition frame with the ID "20-8" and a non-idle state transition frame with the ID "20-9". Further, the transmission unit 182 transmits these non-idle state transition frames to the third bus 36 and the fourth bus 38. As a result, ECU20-8 and ECU20-9 become non-idle states. At this time, ECU18 moves the switch 30D located at the open position to the closed position. That is, switches 30B, 30C, and 30D are in the closed position.
[0100] The ECU18 that has finished the processing of step S24 proceeds to step S25. The message generation unit 181 of ECU18 that has advanced to step S25 performs the same processing as in step S21 for the fourth power line 28D. That is, ECU18 refers to the priority mapping 17 and performs the abnormality determination diagnosis in the order of ECU20-8 and ECU20-9. In addition, in the abnormality determination diagnosis of ECU20-8, the transmission unit 182 transmits the idle state transition frame 19B to the third bus 36. In the abnormality determination diagnosis of ECU20-9, the transmission unit 182 transmits the idle state transition frame 19B to the fourth bus 38.
[0101] For the result of the abnormality determination diagnosis of ECU 20-8, the ECU 18 that is determined to be "yes" in step S25 proceeds to step S26. The reset unit 186 of the ECU 18 that has advanced to step S26 generates a RAM initialization frame with the ID "20-8", and further, the transmission unit 182 sends the generated RAM initialization frame to ECU 20-5 and 20-8 via the third bus 36. In this case, only the RAM 20C of ECU 20-8 is initialized.
[0102] The ECU 18 that has completed the process of step S26 proceeds to step S25 to perform the abnormality determination diagnosis of ECU 20-9. Further, when it is determined to be "no" in step S25, the ECU 18 proceeds to step S27. In step S27, the abnormality determination unit 185 determines whether the diagnosis of the ECUs 20-8 and 20-9 connected to the fourth power line 28D has been completed. When it is determined to be "yes" in step S27, the ECU 18 temporarily ends the process represented in this flowchart. At this time, the ECU 18 moves the switches 30B, 30C, and 30D in the conduction position to the off position.
[0103] (Function and Effect)
[0104] Next, the function and effect of this embodiment will be described.
[0105] In the diagnostic device 10 of this embodiment, when the change amount of the current value of the power line 28 when one ECU 20 connected to the first power line 28A, the second power line 28B, the third power line 28C, or the fourth power line 28D is switched to the first state (wake-up state or idle state) by the message generation unit 181 and the transmission unit 182 is less than the ECU diagnostic threshold specified in the ECU diagnostic threshold map 21, the abnormality determination unit 185 determines that the ECU 20 is in an abnormal state. Therefore, the diagnostic device 10 of this embodiment can accurately specify the ECU 20 in an abnormal state when any one of the multiple ECUs 20 connected to the first power line 28A, the second power line 28B, the third power line 28C, or the fourth power line 28D with an abnormal current value is in an abnormal state. Further, the diagnostic device 10 of this embodiment does not require a current sensor capable of measuring the magnitude of the dark current flowing through each ECU 20 and a conduction / break switch that allows or cuts off the current flow in order to specify the ECU 20 in an abnormal state, and does not require a dedicated circuit provided for each ECU 20.
[0106] In the diagnostic device 10 of the present embodiment, the state determination unit 184 of the ECU 18 determines whether the ECUs 20-1, 20-2, 20-3, 20-4, 20-5 are in the wake state or the sleep state based on the signals transmitted from the ECUs 20-1, 20-2, 20-3, 20-4, 20-5 via the first bus 32, the second bus 34, and the third bus 36. Further, the abnormality determination unit 185 determines that the power lines for which all the ECUs 20-1, 20-2, 20-3, 20-4, 20-5 connected thereto are in the sleep state and the current value is greater than the power line diagnosis threshold specified in the power line diagnosis threshold map 15 are the power lines (target power lines) 28A, 28B for which there is an abnormality in the current value. Therefore, the diagnostic device 10 can accurately specify which one of the first power line 28A and the second power line 28B has an abnormality in the current value.
[0107] Further, the diagnostic device 10 performs an abnormality determination diagnosis of each ECU 20 based on the priority order specified by the priority order map 17. The priority order map 17 of the present embodiment is specified based on the power consumption per unit time of each ECU 20. Therefore, the diagnostic device 10 of the present embodiment can prevent a situation where a large amount of useless power is consumed due to an abnormal state of an ECU 20 with a large power consumption per unit time being left unaddressed for a long time.
[0108] Further, the reset unit 186 of the ECU 18 resets the ECU 20 determined to be in an abnormal state by the abnormality determination unit 185. Therefore, the diagnostic device 10 of the present embodiment can return the ECU 20 determined to be in an abnormal state to a normal state.
[0109] Further, in the diagnostic device 10 of the present embodiment, after the determination by the abnormality determination unit 185 and the reset by the reset unit 186 for one ECU 20 are performed, the determination by the abnormality determination unit 185 and the reset by the reset unit 186 for other ECUs 20 connected to the same power lines 28A, 28B, 28C, 28D as the reset ECU are performed. Therefore, the diagnostic device 10 of the present embodiment can prevent a situation where the abnormal state of an ECU 20 determined to be in an abnormal state is left unaddressed for a long time when at least one of the multiple ECUs 20 connected to the power lines 28A, 28B, 28C, 28D for which there is an abnormality in the current value is in an abnormal state.
[0110] Although the diagnostic device 10, the vehicle 12, the in-vehicle device diagnostic method, and the storage medium according to the present embodiment have been described above, the diagnostic device 10, the vehicle 12, the in-vehicle device diagnostic method, and the storage medium can be appropriately designed and changed without departing from the gist of the present disclosure.
[0111] For example, when the abnormality determination unit 185 determines that one of the plurality of ECUs 20 connected to at least one of the second power line 28B, the third power line 28C, and the fourth power line 28D is in an abnormal state, the reset unit 186 may also move the switches 30B, 30C, 30D provided on the power lines 28B, 28C, 28D determined to be in an abnormal state from the conduction position to the disconnection position and then move them back to the conduction position, thereby resetting all the ECUs 20 connected to the power lines 28B, 28C, 28D simultaneously. According to this modification example, in the case where the plurality of ECUs 20 connected to the power lines 28B, 28C, 28D with abnormal current values are actually in an abnormal state, it is possible to prevent the abnormal states of one ECU 20 determined to be in an abnormal state by the abnormality determination unit 185 and other ECUs 20 that are actually in an abnormal state but not determined by the abnormality determination unit 185 from being left unattended for a long time.
[0112] The priority mapping 17 may also define the priority based on the lengths of the sleep standby times of the ECUs 20-1 to 20-5. The sleep standby time refers to the standby time for switching the ECUs 20-1 to 20-5 in the wake state to the sleep state. If the abnormality determination diagnosis of the ECUs 20-1 to 20-5 with shorter sleep standby times is performed prior to that of the ECUs 20-1 to 20-5 with longer sleep standby times, it is possible to perform the abnormality determination diagnosis of the plurality of ECUs 20-1 to 20-5 connected to one power line in a short time.
[0113] The diagnostic program may also be installed in the ROM 18B of the ECU 18. The diagnostic program is started, for example, when the ignition switch is switched from the conduction position to the disconnection position, causing the ECU 18 to perform the above processing. Therefore, in this modification example, the connector 26 and the diagnostic device 42 will no longer be required.
[0114] All the ECUs 20 may also be set to ECUs that switch between the wake state and the sleep state. In addition, all the ECUs 20 may also be set to ECUs that switch between the non-idle state and the idle state.
[0115] The number of buses (first bus 32, second bus 34, third bus 36, fourth bus 38) and power lines (first power line 28A, second power line 28B, third power line 28C, fourth power line 28D) only needs to be one or more, and any number is acceptable.
Claims
1. An in-vehicle device diagnostic apparatus, comprising: a current measurement unit that is serially connected to a specific power line connected to a battery mounted on a vehicle and measures a current value of the specific power line; a processor, wherein the processor sends a state transition signal to a plurality of ECUs respectively connected to at least one power line connected to the specific power line, so that each of the ECUs is sequentially transitioned from a second state to a first state; when only one of the power lines is serially connected to the specific power line, the current measurement unit measures the current value of the power line by measuring the current value of the specific power line, and when there are a plurality of the power lines connected in parallel to the specific power line, the current measurement unit measures a sum value of the current values of the respective power lines obtained by measuring the current value of the specific power line; the processor determines whether each of the ECUs is in an abnormal state based on the current value of the target power line measured by the current measurement unit when sequentially transitioning a plurality of the ECUs connected to one of the power lines, i.e., the target power line, to the first state; and determines whether each of the ECUs is in the abnormal state based on a priority order set for each of the plurality of ECUs connected to the target power line in such a manner that the higher the power consumption per unit time, the higher the order.
2. The in-vehicle device diagnostic apparatus according to claim 1, wherein all of the ECUs connected to the target power line can be transitioned to a wake-up state as the first state and a sleep state as the second state with less power consumption than when in the wake-up state.
3. The in-vehicle device diagnostic apparatus according to claim 1, wherein all of the ECUs connected to the target power line can be transitioned to an idle state as the first state and a non-idle state as the second state with more power consumption than when in the idle state.
4. The in-vehicle device diagnostic apparatus according to any one of claims 1 to 3, wherein when a change amount of the current value of the target power line when the state transition signal is sent to one of the ECUs connected to the target power line, i.e., the target ECU, is less than a predetermined ECU diagnostic threshold value, the processor determines that the target ECU is in the abnormal state.
5. The in-vehicle device diagnostic apparatus according to claim 1, wherein all of the ECUs connected to the target power line can be transitioned to a wake-up state as the first state and a sleep state as the second state with less power consumption than when in the wake-up state, the processor determines whether there is an abnormality related to the current value in the target power line based on the current value measured by the current measurement unit, and the processor determines whether each of the ECUs connected to the target power line determined to have an abnormality with respect to the current value is in the abnormal state.
6. The in-vehicle device diagnosis apparatus according to claim 5, wherein, it has at least one bus connected to each of the ECUs, the processor determines, based on signals sent from each of the ECUs via the bus, which one of the first state and the second state each of the ECUs is in, and determines that a power line for which all the ECUs connected thereto are determined to be in the second state and the current value is greater than a predetermined power line diagnosis threshold value is the target power line having an abnormality in terms of the current value.
7. The in-vehicle device diagnosis apparatus according to any one of claims 1 to 3, wherein, the processor resets each of the ECUs determined by the processor to be in the abnormal state based on a reset method defined for each of the power lines.
8. The in-vehicle device diagnosis apparatus according to claim 7, wherein, after performing the determination by the processor and the reset by the processor for one of the ECUs, the determination by the processor and the reset by the processor are performed for other ECUs connected to the same target power line as the reset ECU.
9. The in-vehicle device diagnosis apparatus according to claim 7, wherein, when one of the ECUs connected to the target power line is determined by the processor to be in the abnormal state, the processor simultaneously resets all the ECUs connected to the target power line.
10. A vehicle, which includes the in-vehicle device diagnosis apparatus according to any one of claims 1 to 9.
11. An in-vehicle device diagnosis method, in which By sending a state transition signal to a plurality of ECUs respectively connected to at least one power line connected to a specific power line, each of the ECUs is caused to transition from a second state to a first state one by one, wherein, the specific power line is connected to a battery mounted on a vehicle, when only one power line is connected in series with the specific power line, the current value of the power line is measured by measuring the current value of the specific power line, and when there are a plurality of power lines connected in parallel with the specific power line, the total value of the current values of the respective power lines obtained by measuring the current value of the specific power line is measured, based on the current value of the target power line when each of the plurality of ECUs connected to one power line, i.e., the target power line, is sequentially changed to the first state, it is determined whether each of the ECUs is in an abnormal state, based on a priority order set for each of the plurality of ECUs connected to the target power line in such a manner that the higher the power consumption per unit time, the higher the order, it is determined whether each of the ECUs is in the abnormal state.
12. A computer-readable storage medium, on which a program is stored, wherein when the program is executed by a processor, the following steps are performed, that is: A step of sending a state transition signal to a plurality of ECUs respectively connected to at least one power line connected to a specific power line, so that each of the ECUs is sequentially transitioned from a second state to a first state, wherein the specific power line is connected to a battery mounted on a vehicle; A step of measuring the current value of the power line by measuring the current value of the specific power line when only one power line is connected in series with the specific power line, and measuring the total value of the current values of the respective power lines obtained by measuring the current value of the specific power line when there are a plurality of power lines connected in parallel with the specific power line; A step of determining whether each of the ECUs is in an abnormal state based on the current value of the target power line when sequentially transitioning a plurality of the ECUs connected to one power line, i.e., the target power line, to the first state; A step of determining whether each of the ECUs is in the abnormal state based on a priority order set for each of the plurality of ECUs connected to the target power line in such a manner that the higher the power consumption per unit time, the higher the order.
Citation Information
Patent Citations
Generator with built-in piping
JP1989008843A
Power supply control system
JP2009081948A
Vehicular control device
JP2009126299A
Onboard system and its control method
JP2009292330A
Battery condition monitoring system for vehicle
JP2014083917A