Vehicle control device

JP7638830B2Active Publication Date: 2025-03-04DAIHATSU MOTOR CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2021140681
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-08-31
Publication Date
2025-03-04
Estimated Expiration
2041-08-31

AI Technical Summary

Benefits of technology

【0015】 本発明によれば、一の車両の故障が発生した際に、一のフリーズフレームデータを構成する複数のセクション書込データの各々を不揮発性メモリの複数のセクションのうちの該当するセクションに故障情報として書き込み、当該複数のセクションの各々に相関性のある相関データを書込確認情報として書き込むため、当該複数のセクションの各々に保持されている書込確認情報に互いに相関性があるか否かを判定することにより、当該複数のセクションの各々に保持されている故障情報が一のフリーズフレームデータに関わるものであるか否かを判定でき、一のフリーズフレームデータに関らないものを含めて車両故障の解析を行ってしまうという不具合を防止できる。このように、一のフリーズフレームデータを不揮発性メモリの複数のセクションにわたって分割して保持する場合に好適である。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007638830000001
    Figure 0007638830000001
  • Figure 0007638830000002
    Figure 0007638830000002
  • Figure 0007638830000003
    Figure 0007638830000003
Patent Text Reader

Abstract

To provide a control device for vehicle capable of preventing trouble in which faults of one vehicle are analyzed including even a fault which is not associated with one piece of freeze frame data on occurrence of a fault to the vehicle.SOLUTION: A CPU 12 of an ECU 10 writes one corresponding piece of fault information among four pieces of fault information A1 to A4 constituting one freeze frame data and the same keyword (0x12345678) to four sections A to D of a data flash 13B in order when a fault occurs to one vehicle, and determines whether keywords held in the four sections A to D are all the same when reading the freeze frame data out of the data flash 13B.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a vehicle control device that performs control related to the storage of freeze frame data. [Background technology]

[0002] Conventionally, when a vehicle malfunction occurs, the CPU of an ECU (Electronic Control Unit) mounted on a vehicle stores freeze frame data (FFD, including, for example, coolant temperature information, engine RPM information, throttle opening information, vehicle speed information, fuel pressure information, intake air temperature information, and malfunction cause information linked to these) in a non-volatile memory (for example, EEPROM). When the ECU's CPU starts up, it reads the freeze frame data from the non-volatile memory and stores it in a volatile memory (RAM), and at this time checks whether the data is corrupted using a data error detection method such as a mirror check or a sum check. When a diagnostic tool is connected to the ECU, the ECU's CPU reads the freeze frame data from the volatile memory in response to a request from the diagnostic tool and transmits it to the diagnostic tool (for example, see Patent Document 1). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2007-138726 A Summary of the Invention [Problem to be solved by the invention]

[0004] However, because the amount of freeze frame data is large, the data is divided and stored continuously across multiple sections of the non-volatile memory.

[0005] In addition, since it takes a certain amount of time to write data to a nonvolatile memory, it may take a long time (e.g., several seconds) to write a huge amount of freeze frame data to the nonvolatile memory, so there is a risk that the power supply will be cut off due to the battery being removed or a momentary power interruption while the freeze frame data is being written to the nonvolatile memory.

[0006] If the power supply is interrupted during writing of the freeze frame data to the non-volatile memory when a vehicle failure occurs, the writing of the freeze frame data to the non-volatile memory will be terminated halfway. In this case, a part of the freeze frame data will be written to and stored in a corresponding section among the multiple sections of the non-volatile memory, but the rest of the freeze frame data will not be written to and stored in the corresponding section among the multiple sections. In this case, if it is not possible to determine whether the data stored in each of the multiple sections is related to the freeze frame data, the vehicle failure will be analyzed including data unrelated to the freeze frame data, and the vehicle failure will not be analyzed accurately.

[0007] An object of the present invention is to provide a vehicle control device that can prevent the problem of analyzing a vehicle fault including data unrelated to a single freeze frame data when a fault occurs in the vehicle. [Means for solving the problem]

[0008] In order to achieve the above-mentioned object, a vehicle control device according to the present invention is a vehicle control device that performs control related to storage of freeze frame data when a vehicle failure occurs, and performs a write process in which, when a vehicle failure occurs, each of a plurality of section write data that constitutes one freeze frame data is written as failure information to a corresponding section of a plurality of sections in a non-volatile memory, and correlation data that is correlated to each of the plurality of sections is written as write confirmation information, and the write process includes a write means that, after writing of the section write data and the correlation data to one section is completed, writes the section write data and the correlation data to another section, and a determination means that, when reading out the one freeze frame data from the non-volatile memory, determines whether the write confirmation information held in each of the plurality of sections is correlated with each other, and determines that the failure information held in the plurality of sections is information to be used for analyzing a vehicle failure if it is determined that the write confirmation information is correlated with each other, and does not determine that the write confirmation information is correlated with each other.

[0009] According to this configuration, when a freeze frame data is successfully written to the nonvolatile memory when a vehicle failure occurs, the write confirmation information stored in each of the multiple sections of the nonvolatile memory is correlated with each other, whereas when the writing of the freeze frame data to the nonvolatile memory fails due to a power supply interruption during writing of the freeze frame data to the nonvolatile memory, there is no correlation between the write confirmation information stored in the section to which the section write data was successfully written and the write confirmation information stored in the section to which the section write data was not successfully written. Therefore, if there is any write confirmation information stored in each of the multiple sections that is not correlated with other write confirmation information, it can be determined that the failure information stored in each of the multiple sections includes information unrelated to the freeze frame data, and a problem in which a vehicle failure is analyzed including information unrelated to the freeze frame data can be prevented.

[0010] In addition, by determining whether the write confirmation information held in each of the multiple sections is correlated with each other, it is possible to determine whether the failure information held in each of the multiple sections is related to one freeze frame data, thereby reducing the time required for this determination.

[0011] In addition, the writing means may write the correlated correlation data currently written to each of the plurality of sections as the write confirmation information when a current vehicle failure occurs, to data that is uncorrelated with the correlated correlation data previously written to each of the plurality of sections as the write confirmation information when a previous vehicle failure occurred.

[0012] This makes it possible to prevent the inconvenience of analyzing a vehicle failure using a mixture of freeze frame data from the current vehicle failure and freeze frame data from a previous vehicle failure.

[0013] The device may further include an erasing unit that erases the failure information and the write confirmation information stored in each of the multiple sections when it is determined that there is no correlation between the pieces of write confirmation information.

[0014] This will further prevent the problem of vehicle failure analysis being performed using failure information stored in each of the multiple sections of the non-volatile memory when writing freeze frame data to the non-volatile memory fails. Effect of the Invention

[0015] According to the present invention, when a vehicle failure occurs, each of the multiple section write data constituting one freeze frame data is written as failure information to a corresponding section of the multiple sections of the nonvolatile memory, and correlation data having correlation with each of the multiple sections is written as write confirmation information, so that by determining whether the write confirmation information stored in each of the multiple sections is correlated with each other, it is possible to determine whether the failure information stored in each of the multiple sections is related to one freeze frame data, and it is possible to prevent a problem of analyzing a vehicle failure including information not related to one freeze frame data. In this way, it is suitable for a case where one freeze frame data is divided and stored across multiple sections of the nonvolatile memory. [Brief description of the drawings]

[0016] [Figure 1] 1 is a block diagram showing a configuration of a vehicle control system according to an embodiment of the present invention; [Diagram 2] 2 is a flowchart showing a process flow of freeze frame data (FFD) saving processing performed by a CPU of a main ECU in FIG. 1. [Diagram 3] 2 is a flowchart showing a process flow of freeze frame data (FFD) reading processing performed by a CPU of a main ECU in FIG. 1. [Figure 4]FIG. 13A is a diagram for explaining an example of successful writing of freeze frame data to the data flash, and FIG. 13B is a diagram for explaining an example of unsuccessful writing of freeze frame data to the data flash. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0017] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

[0018] 1. System configuration of vehicle control system The configuration of a vehicle control system S according to one embodiment of the present invention will be described with reference to FIG.

[0019] The vehicle control system S is a system installed in the vehicle 1 and performs controls related to the storage of freeze frame data (hereinafter referred to as "FFD") described below, for example, when a malfunction occurs in the vehicle 1.

[0020] The vehicle control system S includes a plurality of ECUs, such as a main ECU 10 and ECUs 30, 50, and 70, which are connected to a bus 2 and perform CAN (Controller Area Network) communication with the other ECUs. For example, the main ECU 10 periodically communicates with the ECUs 30, 50, and 70. Examples of the ECUs 30, 50, and 70 include an engine ECU that controls the engine throttle opening and engine stop control, a stereo camera ECU that calculates the relative speed and vehicle distance between the preceding vehicle and the vehicle 1 based on images captured by a stereo camera, and an EFI-ECU that controls the amount of fuel injected into the engine, the amount of intake air, and the like.

[0021] The vehicle control system S is provided with a battery 3. The vehicle control system S is also provided with an ignition switch 4, which is a device for starting the engine of the vehicle 1 and controlling various electrical systems. A microcomputer (hereinafter, referred to as "microcomputer") 11 of the main ECU 10, which will be described later, is connected to the battery 3 via the ignition switch 4. When the ignition switch 4 is in an on state, the microcomputer 11 of the main ECU 10 is supplied with power from the battery 3, and when the ignition switch 4 is in an off state, power is not supplied from the battery 3. The vehicle control system S includes other units that require power supply in addition to the microcomputer 11 of the main ECU 10, and although not shown in FIG. 1, the battery 3 is configured to be able to supply power to the units that require power supply.

[0022] The vehicle control system S includes an actuator 5, which is connected to a main ECU 10 and is driven and controlled by a CPU 12 (to be described later) included in a microcomputer 11 (to be described later) of the main ECU 10.

[0023] The main ECU 10 is equipped with a microcomputer 11 and is provided with an on-board diagnostics (OBD) connector T for connecting a terminal equipped with a fault diagnosis tool for diagnosing faults in a vehicle such as the vehicle 1 (not shown; hereinafter, referred to as a "terminal equipped with a fault diagnosis tool" as appropriate).

[0024] The microcomputer 11 includes a CPU 12 that performs various calculations and various controls, a memory 13 including a code flash memory (hereinafter referred to as "code flash") 13A, a data flash memory (hereinafter referred to as "data flash") 13B and an SRAM 13C, and an I / O port 14 that is a terminal or circuit that serves as a gateway for communication between the CPU 12 and peripheral devices inside the computer. When an ignition switch 4 is in an on state, power is supplied to the microcomputer 11 from the battery 3, and when the ignition switch 4 is in an off state, power is not supplied from the battery 3.

[0025] The code flash 13A is a non-volatile memory that can rewrite the stored contents and can continue to hold the stored contents even when the power supply from the battery 3 is interrupted in addition to when the power supply from the battery 3 is being supplied. For example, it holds various programs such as the freeze frame data (FFD) holding process program in FIG. 2 and the freeze frame data (FFD) reading process program in FIG. 3. The data flash 13B is a non-volatile memory that can rewrite the stored contents and can continue to hold the stored contents even when the power supply from the battery 3 is interrupted in addition to when the power supply from the battery 3 is being supplied. For example, it holds various data such as FFD and keywords to be described later, and corresponds to the "non-volatile memory" of the present invention. The SRAM 13C is a volatile memory that can rewrite the stored contents and can continue to hold the stored contents while the power supply from the battery 3 is being supplied, but loses the stored contents when the power supply from the battery 3 is interrupted. For example, it holds various data such as FFD and keywords to be described later. The SRAM 13C has a faster read speed than the data flash 13B. Note that the code flash 13A may be replaced by, for example, a non-volatile memory other than the code flash 13A, the data flash 13B may be replaced by, for example, a non-volatile memory other than the data flash 13B, and the SRAM 13C may be replaced by, for example, a volatile memory other than the SRAM 13C having a faster read speed than the data flash 13B or a non-volatile memory other than the data flash 13B used instead of it.

[0026] In this embodiment, the CPU 12, for example, controls the drive of the actuator 5, and performs a freeze frame data (FFD) storage process which will be described in detail later with reference to Figures 2 and 4, and a freeze frame data (FFD) reading process which will be described in detail later with reference to Figures 3 and 4.

[0027] In the freeze frame data (FFD) retention process, when a failure occurs in the vehicle 1, the CPU 12 divides the FFD, which includes the collected vehicle information and failure cause information linked to the vehicle information, into multiple data (one data is, for example, composed of information with the same attributes: corresponding to the "section write data" of the present invention, and hereinafter referred to as "section write data" as appropriate), writes each of the multiple section write data as failure information in a corresponding section among multiple sections (one section is a memory area into which one section write data and one keyword are written) of the data flash 13B, and performs a write process in which the same keyword (corresponding to the "correlated correlation data" of the present invention) is written into each of the multiple sections as write confirmation information, and in the write process, after finishing writing the section write data and keyword into one section, writes the section write data and keyword into another section (corresponding to processing by a "write means" of the present invention).

[0028] Here, the vehicle information is, for example, the measurement results of sensors connected to the main ECU 10 having the CPU 12, and the measurement results of sensors connected to the other ECUs 30, 50, 70 acquired by CAN communication via the bus 2, such as coolant temperature information, engine RPM information, throttle opening information, vehicle speed information, fuel pressure information, intake temperature information, etc., and the CPU 12 periodically collects the vehicle information. Furthermore, the failure cause information is information related to the cause of the failure of the vehicle 1, such as communication anomaly information related to a communication anomaly in which periodic communication with the ECU 30 is interrupted, and the CPU 12 acquires the failure cause information when a failure occurs in the vehicle 1.

[0029] In the freeze frame data (FFD) read process, the CPU 12 reads the FFD from the data flash 13B, and at that time, judges whether or not the write confirmation information (keywords) held in each of the multiple sections of the data flash 13B are all the same, and determines that the fault information (section write data) held in the multiple sections is information to be used for analyzing the fault of the vehicle 1 if it is judged that the write confirmation information (keywords) are all the same, and does not determine that the fault information is information to be used for analyzing the fault of the vehicle 1 if it is not judged that the write confirmation information (keywords) are all the same (corresponding to the process by the "judging means" of the present invention). Furthermore, if the CPU 12 does not judge that the write confirmation information (keywords) are all the same, it initializes and erases the fault information (section write data) and the write confirmation information (keywords) held in each of the multiple sections of the data flash 13B (corresponding to the process by the "erasing means" of the present invention).

[0030] 2. Freeze frame data (FFD) retention process 2.1. Freeze frame data (FFD) retention process flow A process flow of the freeze frame data (FFD) holding process performed in the CPU 12 of the main ECU 10 will be described in detail with reference to Fig. 2. The process flow of the freeze frame data (FFD) holding process in Fig. 2 is executed at a predetermined cycle (for example, 5 ms).

[0031] In the freeze frame data (FFD) holding process, first, the CPU 12 determines whether or not a malfunction has occurred in the vehicle 1 (step S1).

[0032] When it is determined in the determination process of step S1 that no malfunction has occurred in the vehicle 1 (NO in step S1), the freeze frame data (FFD) holding process of Fig. 2 is terminated. On the other hand, when it is determined in the determination process of step S1 that a malfunction has occurred in the vehicle 1 (YES in step S1), the process proceeds to step S2 in order to write the FFD including the collected vehicle information and malfunction cause information linked thereto to the data flash 13B.

[0033] For example, the main ECU 10 periodically communicates with the other ECUs 30, 50, and 70, and the CPU 12 determines that a failure has occurred in the vehicle 1 due to a communication abnormality in which communication between the main ECU 10 and the ECU 30 has been interrupted for a predetermined period of time (YES in step S1), and proceeds to processing in step S2 in order to write an FFD including the collected vehicle information and failure cause information linked to the collected vehicle information to the data flash 13B. In this case, the vehicle information included in the FFD includes the measurement results of sensors connected to the main ECU 10 and the measurement results of sensors connected to the ECUs 50 and 70, as well as the measurement results of sensors connected to the ECU 30 that were received from the ECU 30 before communication with the ECU 30 was interrupted, and the failure cause information is communication abnormality information related to the communication abnormality with the ECU 30.

[0034] The CPU 12 generates a keyword (step S2) and proceeds to the process of step S3. In generating the keyword in step S2, the CPU 12 generates a keyword that is different from the previously generated keyword (so that there is no correlation with the previously generated keyword). A keyword that is different from the previously generated keyword is generated, for example, by randomly generating and extracting a random number, and using the extracted random number as the keyword.

[0035] The CPU 12 specifies the section of the data flash 13B into which the FFD and the keyword are to be written first (step S3), and proceeds to step S4.

[0036] The CPU 12 writes the keyword generated in step S2 to the designated section of the data flash 13B as write confirmation information, and writes the relevant section write data that has not yet been written to the data flash 13B among the multiple section write data constituting the FFD to the designated section as failure information, thereby performing a write process of the FFD and the keyword to the designated section (step S4), and proceeds to the process of step S5. Note that in the write process of step S4, for example, the keyword is written from the head area of ​​the designated section, and the section write data is written from the area next to the area where the keyword is written.

[0037] The CPU 12 determines whether or not all of the FFD (all of the write data of the multiple sections that constitute the FFD) has been written to the data flash 13B (step S5).

[0038] If it is not determined in the determination process of step S5 that all of the FFD has been written to the data flash 13B (NO in step S5), the process proceeds to step S6.

[0039] The CPU 12 specifies the section of the data flash 13B into which the FFD and keyword are to be written next (moves to the next specified section of the data flash 13B) (step S6), and returns to the process of step S4.

[0040] When it is determined in the determination process of step S5 that all of the FFD has been written to the data flash 13B (YES in step S5), the freeze frame data (FFD) holding process of FIG. 2 is terminated.

[0041] 2.2.Example of writing to FFD data flash A specific example of writing freeze frame data (FFD) to the data flash 13B in the FFD holding process of FIG. 2 will be described in detail with reference to FIG.

[0042] 2.2.1.Example of successful writing to data flash of FFD A detailed explanation will be given with reference to Figure 4(a) of a successful example in which data was successfully written to the FFD data flash 13B without the power supply being cut off during writing to the FFD data flash 13B when the Nth vehicle failure occurred.

[0043] In the example of FIG. 4(a), the FFD when the Nth vehicle failure occurs is composed of four pieces of failure information A1 to A4, and the sections of the data flash 13B to which the FFD is written are four sections A to D.

[0044] The CPU 12 determines whether or not a malfunction has occurred in the vehicle 1 (step S1), and if it determines that a malfunction has occurred in the vehicle 1 (YES in step S1), proceeds to processing for writing an FFD containing the collected vehicle information and associated malfunction cause information to the data flash 13B.

[0045] The CPU 12 generates a keyword (Key=0x12345678) (step S2).

[0046] The CPU 12 designates section A as the section of the data flash 13B into which the FFD and keyword are to be written first (step S3), and writes Key=0x12345678 and failure information A1 into the designated section A (step S4), as shown in FIG. 4(a-1).

[0047] The CPU 12 determines whether or not the entire FFD has been written to the data flash 13B (step S5), and if it determines that the entire FFD has not been written to the data flash 13B (NO in step S5), it designates section B as the section of the data flash 13B into which the FFD and keyword are to be written next (step S6), and writes Key=0x12345678 and failure information A2 to the designated section B (step S4), as shown in FIG. 4(a-2).

[0048] The CPU 12 determines whether or not the entire FFD has been written to the data flash 13B (step S5), and if it determines that the entire FFD has not been written to the data flash 13B (NO in step S5), it designates section C as the section of the data flash 13B into which the FFD and keyword are to be written next (step S6), and writes Key=0x12345678 and failure information A3 to the designated section C (step S4), as shown in FIG. 4(a-3).

[0049] The CPU 12 determines whether or not the entire FFD has been written to the data flash 13B (step S5), and if it determines that the entire FFD has not been written to the data flash 13B (NO in step S5), it designates section D as the section of the data flash 13B into which the FFD and keyword are to be written next (step S6), and writes Key=0x12345678 and failure information A4 to the designated section D (step S4), as shown in FIG. 4(a-4).

[0050] The CPU 12 determines whether or not the entire FFD has been written to the data flash 13B (step S5), and if it determines that the entire FFD has been written to the data flash 13B (YES in step S5), ends the freeze frame data (FFD) holding process of FIG.

[0051] In a successful example of the above-mentioned FFD being written to the data flash 13B, as shown in Figure 4(a), the four pieces of fault information A1 to A4 that constitute the FFD when the Nth vehicle fault occurs are written and stored in the four sections A to D of the data flash 13B, and the same Key = 0x12345678 is written and stored in each of the sections A to D.

[0052] 2.2.2.Example of failure to write to data flash in FFD An example of a failure in which the power supply is cut off during writing to the FFD data flash 13B when the N+1th vehicle failure occurs, resulting in failure to write to the FFD data flash 13B, will be described in detail with reference to Figure 4(b).

[0053] In the example of Fig. 4(b), the FFD when the (N+1)th vehicle failure occurs is composed of four pieces of failure information B1 to B4, and the sections of the data flash 13B to which the FFD is written are four sections A to D. Furthermore, in the data flash 13B before the (N+1)th vehicle failure occurs, the failure information A1 to A4 constituting the FFD when the Nth vehicle failure occurs is stored in sections A to D, and the same Key=0x12345678 is stored in each of sections A to D (see Fig. 4(a)).

[0054] The CPU 12 determines whether or not a malfunction has occurred in the vehicle 1 (step S1), and if it determines that a malfunction has occurred in the vehicle 1 (YES in step S1), proceeds to processing for writing an FFD containing the collected vehicle information and associated malfunction cause information to the data flash 13B.

[0055] The CPU 12 generates a keyword (Key=0x98765432) that is different (uncorrelated) from the previously generated keyword (Key=0x12345678) (step S2).

[0056] The CPU 12 designates the section of the data flash 13B into which the FFD and keyword are to be written first as section A (step S3), and writes Key=0x98765432 and failure information B1 into the designated section A (step S4), as shown in FIG. 4(b-1).

[0057] The CPU 12 determines whether or not the entire FFD has been written to the data flash 13B (step S5), and if it determines that the entire FFD has not been written to the data flash 13B (NO in step S5), it designates section B as the section of the data flash 13B to which the FFD and keyword are to be written next (step S6), and writes Key=0x98765432 and failure information B2 to the designated section B (step S4), as shown in FIG. 4(b-2).

[0058] Assume that after writing of Key=0x98765432 and the fault information B2 to the specified section B is completed, the power supply is interrupted due to battery removal or a momentary interruption. In this case, the freeze frame data (FFD) storage process being executed ends without writing Key=0x98765432 and the fault information B3 to section C, and without writing Key=0x98765432 and the fault information B4 to section D. As a result, the contents before the N+1th vehicle fault are stored in sections C and D, that is, Key=0x12345678 and the fault information A3 and Key=0x12345678 and the fault information A4 are stored (FIGS. 4(b-3) to (b-4)).

[0059] In the above-mentioned example of failure in writing the FFD to the data flash 13B, as shown in Fig. 4(b), the FFD failure information B1 and B2 when the N+1th vehicle failure occurs are written and stored in sections A and B of the data flash 13B, and Key=0x98765432 is written and stored in each of sections A and B. Also, FFD failure information A3 and A4 when the Nth vehicle failure occurs are stored in sections C and D of the data flash 13B, and Key=0x12345678 is stored in each of sections C and D. In this way, Key=0x98765432 stored in each of sections A and B and Key=0x12345678 stored in each of sections C and D are different keywords.

[0060] 3. Freeze frame data (FFD) reading process 3.1. Freeze frame data (FFD) reading process flow A process flow of the freeze frame data (FFD) reading process performed in the CPU 12 of the main ECU 10 will be described in detail with reference to Fig. 3. The process flow of the freeze frame data (FFD) reading process in Fig. 3 is executed when the CPU 12 is started up or restarted.

[0061] In the freeze frame data (FFD) read process, first, the CPU 12 judges whether or not an FFD is held in the data flash 13B (step S51). If it is judged that an FFD is not held in the data flash 13B (NO in step S51), the freeze frame data (FFD) read process of Fig. 3 is terminated. On the other hand, if it is judged that an FFD is held in the data flash 13B (YES in step S51), the process proceeds to step S52.

[0062] The CPU 12 reads write confirmation information (keywords) and failure information (section write data stored in that section among the multiple section write data that make up the FFD) from each of the multiple sections of the data flash 13B, writes and stores them in the SRAM 13C (step S52), and proceeds to processing of step S53.

[0063] The CPU 12 judges whether or not the write confirmation information (keywords) read from each of the multiple sections of the data flash 13B and written to the SRAM 13C in step S52 are all the same (step S53). If it is judged in the judgment process of step S53 that the write confirmation information (keywords) are all the same (YES in step S53), the freeze frame data (FFD) read process of Fig. 3 is terminated. On the other hand, if it is not judged in the judgment process of step S53 that the write confirmation information (keywords) are all the same (NO in step S53), the process proceeds to step S54.

[0064] The CPU 12 initializes and erases the FFD and keyword from the data flash 13B, initializes and erases the FFD and keyword from the SRAM 13C (step S54), and ends the freeze frame data (FFD) read process of Fig. 3. To further describe the process content of step S54, the CPU 12 initializes and erases the failure information (section write data) and write confirmation information (keywords) from each of the multiple sections of the data flash 13B, and initializes and erases, from the SRAM 13C, the failure information (section write data) and write confirmation information (keywords) that have been read from each of the multiple sections of the data flash 13B and written to the SRAM 13C.

[0065] After the freeze frame data (FFD) reading process of FIG. 3 is completed, the fault diagnosis tool mounted terminal is connected to the OBD connector T, and the fault diagnosis tool mounted terminal requests the CPU 12 of the main ECU 10 to transmit the FFD.

[0066] When the write confirmation information (keywords) of the multiple sections at the time of starting or restarting the CPU 12 are all the same, the CPU 12 reads out the fault information (section write data) that has been read out from each of the multiple sections of the data flash 13B and written to the SRAM 13C from the SRAM 13C in response to a transmission request from the fault diagnosis tool-equipped terminal, and transmits the fault information to the fault diagnosis tool-equipped terminal. This allows the fault diagnosis tool-equipped terminal to analyze a vehicle fault using only the multiple section write data (fault information) that constitute one freeze frame data.

[0067] On the other hand, if the write confirmation information (keywords) of the multiple sections at the time of starting or restarting the CPU 12 is different from the other write confirmation information (keywords), the fault information (section write data) read from each of the multiple sections of the data flash 13B and written to the SRAM 13C is erased from the SRAM 13C, so that the fault information (section write data) held in each of the multiple sections of the data flash 13B at the time of starting or restarting the CPU 12 is not transmitted to the fault diagnosis tool-equipped terminal. This makes it possible to prevent the fault diagnosis tool-equipped terminal from analyzing vehicle faults including those not related to one freeze frame data.

[0068] 3.2. Example of reading from FFD data flash An example of reading freeze frame data (FFD) from the data flash 13B in the FFD reading process of FIG. 3 will be described in detail with reference to FIG.

[0069] 3.2.1. Example of reading FFD when FFD is successfully written to data flash An example of reading the FFD when writing the FFD to the data flash 13B has been successful will be described in detail with reference to FIG.

[0070] The CPU 12 determines whether or not an FFD is held in the data flash 13B (step S51), and determines that an FFD is held (YES in step S51).

[0071] The CPU 12 reads out “Key=0x12345678 and failure information A1”, “Key=0x12345678 and failure information A2”, “Key=0x12345678 and failure information A3”, and “Key=0x12345678 and failure information A4” from sections A, B, C, and D of the data flash 13B, and writes them to the SRAM 13C (step S52).

[0072] The CPU 12 determines whether or not Key=0x12345678, Key=0x12345678, Key=0x12345678, and Key=0x12345678, which have been read from sections A, B, C, and D of the data flash 13B and written to the SRAM 13C, are all identical (step S53), and determines that they are all identical (YES in step S53), thereby ending the freeze frame data (FFD) reading process of FIG. 3.

[0073] After the freeze frame data (FFD) reading process in Fig. 3 is completed, the fault diagnosis tool-equipped terminal is connected to the OBD connector T, and the fault diagnosis tool-equipped terminal requests the CPU 12 of the main ECU 10 to transmit the FFD. In response to the transmission request from the fault diagnosis tool-equipped terminal, the CPU 12 reads out the fault information A1 to A4 from the SRAM 13C and transmits it to the fault diagnosis tool-equipped terminal. This allows the fault diagnosis tool-equipped terminal to analyze the vehicle fault using only the four fault information A1 to A4 that constitute the freeze frame data when the Nth vehicle fault occurs.

[0074] 3.2.2. Example of reading from FFD when writing to FFD data flash fails An example of reading from the FFD when writing to the FFD in the data flash 13B has failed will be described in detail with reference to FIG.

[0075] The CPU 12 determines whether or not an FFD is held in the data flash 13B (step S51), and determines that an FFD is held (YES in step S51).

[0076] The CPU 12 reads out “Key=0x98765432 and failure information B1”, “Key=0x98765432 and failure information B2”, “Key=0x12345678 and failure information A3”, and “Key=0x12345678 and failure information A4” from sections A, B, C, and D of the data flash 13B, and writes them to the SRAM 13C (step S52).

[0077] The CPU 12 determines whether or not Key=0x98765432, Key=0x98765432, Key=0x12345678, and Key=0x12345678 read from sections A, B, C, and D of the data flash 13B and written to the SRAM 13C are all identical (step S53), and determines that they are not all identical (NO in step S53). The CPU 12 erases “Key=0x98765432 and failure information B1”, “Key=0x98765432 and failure information B2”, “Key=0x12345678 and failure information A3”, and “Key=0x12345678 and failure information A4” from sections A, B, C, and D of the data flash 13B, and erases “Key=0x98765432 and failure information B1”, “Key=0x98765432 and failure information B2”, “Key=0x12345678 and failure information A3”, and “Key=0x12345678 and failure information A4” from the SRAM 13C (step S54), and ends the freeze frame data (FFD) reading process of FIG. 3.

[0078] 3 is completed, the fault diagnosis tool-equipped terminal is connected to the OBD connector T, and even if the fault diagnosis tool-equipped terminal requests the CPU 12 of the main ECU 10 to transmit FFD, the fault information B1, B2, A3, and A4 stored in sections A to D of the data flash 13B will not be transmitted from the CPU 12 to the fault diagnosis tool-equipped terminal when the CPU 12 is started or restarted. This prevents the fault diagnosis tool-equipped terminal from analyzing a vehicle fault by mixing the fault information B1 and B2 related to the freeze frame data when the N+1th vehicle fault occurs and the fault information A3 and A4 related to the freeze frame data when the Nth vehicle fault occurs.

[0079] <Effects> According to the above embodiment, when a fault occurs in a vehicle, if writing of a certain FFD to the data flash 13B is successful, the write confirmation information (keywords) held in each of the multiple sections of the data flash 13B are all the same (see FIG. 4(a)). On the other hand, if writing of a certain FFD to the data flash 13B fails due to, for example, a power supply interruption while writing the certain FFD to the data flash 13B, the write confirmation information (keywords) held in the section to which the section write data could be written differs from the write confirmation information (keywords) held in the section to which the section write data could not be written (see FIG. 4(b)). For this reason, if there is any write confirmation information (keyword) held in each of the multiple sections that is different from other write confirmation information (keywords), it can be determined that the fault information (section write data) held in each of the multiple sections includes information not related to the certain FFD, and the problem of analyzing a vehicle fault including information not related to the certain FFD can be prevented.

[0080] Furthermore, by determining whether all of the write confirmation information (keywords) held in each of the multiple sections of the data flash 13B are identical, without determining whether all of the failure information (section write data) held in each of the multiple sections of the data flash 13B is related to one FFD, it is possible to determine whether the failure information (section write data) held in each of the multiple sections is related to one FFD, thereby shortening the time required for the determination.

[0081] Furthermore, by using a small data size as the write confirmation information (keyword), it is possible to suppress an increase in the possibility that the power supply will be cut off during writing to the data flash 13B of one FFD.

[0082] In addition, by making the keyword generated when the current vehicle failure occurs different from the keyword generated when the previous vehicle failure occurred, it is possible to prevent a problem in which the vehicle failure is analyzed using a mixture of data from the FFD when the current vehicle failure occurs and the FFD when the previous vehicle failure occurred. In this way, it is preferable to store one freeze frame data in multiple sections of a non-volatile memory.

[0083] In addition, if there is a difference in the write confirmation information (keywords) stored in each of the multiple sections, the FFD and the keyword are erased from each of the data flash 13B and the SRAM 13C, which further prevents the inconvenience of using failure information when writing the FFD to the data flash 13B fails in the future to analyze a vehicle failure.

[0084] In addition, when the CPU 12 transmits an FFD in response to a request to transmit an FFD from a terminal equipped with a fault diagnosis tool connected to the OBD connector T, the CPU 12 reads and transmits the multiple section write data (fault information) that constitutes the FFD from SRAM 13C rather than reading and transmitting the data from data flash 13B, thereby enabling the multiple section write data (fault information) that constitutes the FFD to be transmitted quickly to the terminal equipped with a fault diagnosis tool.

[0085] <Modification> Although one embodiment of the present invention has been described above, the present invention can be embodied in other forms.

[0086] For example, in the above embodiment, the same keyword is used as an example of correlated correlation data, and different keywords are used as an example of uncorrelated correlation data, but this is not limited to this. For example, the correlation data may be correlated other than the same keyword as long as it enables determination that each of the failure information (section write data) of multiple sections is related to the same freeze frame data, and the correlation data may be uncorrelated other than different keywords as long as it enables determination that each of the failure information (section write data) of multiple sections is related to different freeze frame data.

[0087] In the above case, for example, a case where the FFD is divided into four and written to the four sections A to D of the data flash 13B will be described. When the previous vehicle 1 malfunction occurred, the correlation data DA1, DA2, DA3, DA4 were written to the sections A, B, C, and D as write confirmation information, and before the current vehicle 1 malfunction occurred, the correlation data DA1, DA2, DA3, DA4 were held in the sections A, B, C, and D. These correlation data DA1, DA2, DA3, DA4 are correlated with each other. In the freeze frame data (FFD) reading process of FIG. 2 when the current vehicle 1 malfunction occurs, step S2 is replaced with a process of generating correlation data DB1, DB2, DB3, DB4 that are not correlated with the correlation data DA1, DA2, DA3, DA4. These correlation data DB1, DB2, DB3, DB4 are correlated with each other. Then, in step S4, the part where the keyword is written to the designated section is replaced with the part that writes the correlation data DB1 to DB4 that has not yet been written to the designated section. In the freeze frame data (FFD) read process in Fig. 3, the write confirmation information (keyword) is replaced with the write confirmation information (correlation data DB1 to DB4) in the processes of steps S52 to S54, and in step S53, it is determined whether or not there is a correlation between the write confirmation information read from each of the multiple sections A to D and written to the SRAM 13C. If it is determined that the write confirmation information is correlated with each other, the freeze frame data (FFD) read process is terminated, and if it is not determined that the write confirmation information is correlated with each other, the process proceeds to step S54.

[0088] Furthermore, the contents described in the above embodiment and the contents described in the above modified examples may be combined as appropriate.

[0089] In addition, various design modifications can be made to the above-described configuration within the scope of the claims.

[0090] The present invention is widely applicable to vehicle control devices that perform control related to the storage of freeze frame data. [Explanation of symbols]

[0091] 1: Vehicle S: Vehicle control system 10: Main ECU 11: Microcomputer 12: CPU 13B: Data flash 13C: SRAM

Claims

1. A vehicle control device that controls storage of freeze frame data when a vehicle failure occurs, a write process for writing each of a plurality of section write data constituting one freeze frame data as failure information to a corresponding one of a plurality of sections of a non-volatile memory when a failure occurs in one vehicle, and for writing correlation data having correlation with each of the plurality of sections as write confirmation information, the write process including a write means for writing the section write data and the correlation data to one section and then writing the section write data and the correlation data to another section; a determination means for determining whether or not the write confirmation information stored in each of the plurality of sections is correlated with each other when the one freeze frame data is read from the non-volatile memory, and determining that the fault information stored in the plurality of sections is to be used for analyzing a fault of the vehicle if it is determined that the write confirmation information is correlated with each other, and not to be used for analyzing a fault of the vehicle if it is not determined that the write confirmation information is correlated with each other; A vehicle control device comprising:

2. The writing means writes the correlated correlation data currently written as the write confirmation information to each of the plurality of sections when a current vehicle failure occurs, as data that is not correlated with the correlated correlation data previously written as the write confirmation information to each of the plurality of sections when a previous vehicle failure occurred.

2. The vehicle control device according to claim 1 .

3. an erasing means for erasing the failure information and the write confirmation information held in each of the plurality of sections when it is determined that there is no correlation between the pieces of write confirmation information; The vehicle control device according to claim 1 or 2, further comprising:

Citation Information

Patent Citations

  • Electronic control device and display for vehicle

    JP2007138726A

  • Memory control device

    JP2009289049A

  • Vehicle information storage processing unit and vehicle information storage processing method

    JP2014076737A

  • On-vehicle electronic control device

    JP2014085709A