JP7638830B2 - Vehicle control device - Google Patents
Vehicle control device Download PDFInfo
- Publication number
- JP7638830B2 JP7638830B2 JP2021140681A JP2021140681A JP7638830B2 JP 7638830 B2 JP7638830 B2 JP 7638830B2 JP 2021140681 A JP2021140681 A JP 2021140681A JP 2021140681 A JP2021140681 A JP 2021140681A JP 7638830 B2 JP7638830 B2 JP 7638830B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- information
- ffd
- write
- vehicle
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 claims description 62
- 238000012790 confirmation Methods 0.000 claims description 55
- 230000002596 correlated effect Effects 0.000 claims description 28
- 230000000875 corresponding effect Effects 0.000 claims description 11
- 238000003745 diagnosis Methods 0.000 description 20
- 230000007257 malfunction Effects 0.000 description 16
- 238000012545 processing Methods 0.000 description 11
- 238000004891 communication Methods 0.000 description 10
- 230000014759 maintenance of location Effects 0.000 description 9
- 238000005259 measurement Methods 0.000 description 5
- 230000005856 abnormality Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 239000000446 fuel Substances 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 239000002826 coolant Substances 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000004904 shortening Methods 0.000 description 2
- 230000001276 controlling effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000002347 injection Methods 0.000 description 1
- 239000007924 injection Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Images
Landscapes
- Debugging And Monitoring (AREA)
Description
本発明は、フリーズフレームデータの記憶に関わる制御を行う車両用制御装置に関する。 The present invention relates to a vehicle control device that controls the storage of freeze frame data.
従来から、車両に搭載されたECU(Electronic Control Unit:電子制御ユニット)のCPUは、車両故障の発生時に、フリーズフレームデータ(Freeze Frame Data:FFD、例えば、冷却水温情報、エンジン回転数情報、スロットル開度情報、車速情報、燃圧情報、吸気温度情報などやこれらと紐づく故障要因情報を含む)を不揮発性メモリ(例えば、EEPROM)に記憶する。ECUのCPUは、起動時に不揮発性メモリからフリーズフレームデータを読み出して揮発性メモリ(RAM)に記憶し、このときミラーチェックやサムチェックなどのデータ誤りの検出手法を用いてデータ破壊の有無のチェックを実行する。ECUに対してダイアグツールが接続された場合には、ECUのCPUはダイアグツールからの要求に応じて揮発性メモリからフリーズフレームデータを読み出してダイアグツールへ送信する(例えば、特許文献1参照)。 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 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 for data corruption 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 sends it to the diagnostic tool (for example, see Patent Document 1).
ところで、フリーズフレームデータはそのデータ量が大きいために分割して不揮発性メモリの複数のセクションにわたって連続的に保持されることになる。 However, because freeze frame data is large, it is divided and stored continuously across multiple sections of non-volatile memory.
また、データの不揮発性メモリへの書き込みには一定の時間を要するため、膨大なデータ量のフリーズフレームデータを不揮発性メモリに書き込むには多くの時間(例えば、数秒)を要することがある。このため、フリーズフレームデータの不揮発性メモリへの書き込み中にバッテリ抜けや瞬断の発生などにより電源供給が途絶える虞がある。 In addition, because writing data to non-volatile memory takes a certain amount of time, writing a huge amount of freeze frame data to non-volatile memory can take a long time (e.g., several seconds). For this reason, there is a risk that the power supply will be cut off due to the battery being removed or a momentary interruption while the freeze frame data is being written to non-volatile memory.
そして、一の車両の故障が発生した際の一のフリーズフレームデータの不揮発性メモリへの書き込み中に電源供給が途絶えると当該一のフリーズフレームデータの不揮発性メモリへの書き込みが途中で終了してしまう。この場合には、一のフリーズフレームデータの一部は不揮発性メモリの複数のセクションのうちの該当するセクションに書き込まれて保持されることになるが、一のフリーズフレームデータの残りは複数のセクションのうちの該当するセクションに書き込まれずに保持されない状況となる。このとき、複数のセクションの各々に保持されているデータが一のフリーズフレームデータに関するものであるか否かを判定できなければ、一のフリーズフレームデータに関係しないデータを含めて車両故障の解析を行ってしまい、正確な車両故障の解析ができないことになる。 If the power supply is interrupted while writing a 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 interrupted. In this case, part of the freeze frame data will be written to and stored in a corresponding section of the multiple sections of the non-volatile memory, but the remainder of the freeze frame data will not be written to and stored in the corresponding section of 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 an accurate analysis of the vehicle failure will not be possible.
本発明の目的は、一の車両の故障が発生した際の一のフリーズフレームデータに関らないものを含めて車両の故障を解析してしまうという不具合を防止できる車両用制御装置を提供することである。 The object of the present invention is to provide a vehicle control device that can prevent the problem of analyzing a vehicle fault including data that is not related to a single freeze frame data when a fault occurs in the vehicle.
前記の目的を達成するため、本発明に係る車両用制御装置は、車両の故障が発生した際のフリーズフレームデータの記憶に関わる制御を行う車両用制御装置であって、一の車両の故障が発生した際に、一のフリーズフレームデータを構成する複数のセクション書込データの各々を不揮発性メモリの複数のセクションのうちの該当するセクションに故障情報として書き込み、当該複数のセクションの各々に相関性のある相関データを書込確認情報として書き込む書込処理を行うものであって、前記書込処理では一つのセクションへの前記セクション書込データ及び前記相関データの書き込みを終了した後に他の一つのセクションへの前記セクション書込データ及び前記相関データの書き込みを行う書込手段と、前記不揮発性メモリから前記一のフリーズフレームデータを読み出す際に、前記複数のセクションの各々に保持されている前記書込確認情報に互いに相関性があるか否かを判定し、前記複数のセクションに保持されている前記故障情報を、前記書込確認情報に互いに相関性があると判定された場合には車両の故障の解析に用いる情報であるとし、前記書込確認情報に互いに相関性があると判定されなかった場合には車両の故障の解析に用いる情報であるとしない、判定手段とを備えることを特徴としている。 In order to achieve the above object, the vehicle control device according to the present invention is a vehicle control device that controls the 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 constituting 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. In the write process, after writing of the section write data and the correlation data to one section is completed, the section write data and the correlation data are written to another section, and when reading the one freeze frame data from the non-volatile memory, it is characterized in that it includes a write means that 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 the 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 information to be used for analyzing the vehicle failure if it is not determined that the write confirmation information is correlated with each other.
この構成によれば、一の車両の故障が発生した際の一のフリーズフレームデータの不揮発性メモリへの書き込みに成功した場合には不揮発性メモリの複数のセクションの各々に保持されている書込確認情報には互いに相関性がある一方で、一のフリーズフレームデータを不揮発性メモリに書き込んでいる途中に電源供給が途絶えるなどして当該一のフリーズフレームデータの不揮発性メモリへの書き込みに失敗した場合にはセクション書込データを書き込むことができたセクションに保持されている書込確認情報と書き込むことができなかったセクションに保持されている書込確認情報とには相関性がないものとなる。このため、複数のセクションの各々に保持されている書込確認情報の中に他の書込確認情報と相関性がないものがあれば当該複数のセクションの各々に保持されている故障情報の中に一のフリーズフレームデータに関らないものが含まれていると判定でき、一のフリーズフレームデータに関らないものを含めて車両故障の解析を行ってしまうという不具合を防止できる。 According to this configuration, when a vehicle failure occurs and a freeze frame data is successfully written to the non-volatile memory, the write confirmation information stored in each of the multiple sections of the non-volatile memory is correlated with each other, whereas when a freeze frame data is not successfully written to the non-volatile memory due to a power supply interruption while the freeze frame data is being written to the non-volatile memory, there is no correlation between the write confirmation information stored in the section in which the section write data was successfully written and the write confirmation information stored in the section in which the section write data was not successfully written. Therefore, if there is no correlation between the write confirmation information stored in each of the multiple sections and 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 the problem of analyzing the vehicle failure including information unrelated to the freeze frame data can be prevented.
また、複数のセクションの各々に保持されている書込確認情報に互いに相関性があるか否かを判定することにより、複数のセクションの各々に保持されている故障情報が一のフリーズフレームデータに関わるものであるか否かを判定できるので当該判定に要する時間が短くて済む。 In addition, 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 fault information stored in each of the multiple sections is related to a single freeze frame data, thereby shortening the time required for this determination.
また、前記書込手段は、今回の車両の故障が発生した際に前記複数のセクションの各々に前記書込確認情報として今回書き込む相関性のある相関データを、前回の車両の故障が発生した際に前記複数のセクションの各々に前記書込確認情報として前回書き込まれた相関性のある相関データとは相関性のないデータとするとしてもよい。 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 not correlated 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.
これによれば、今回の車両故障の発生時のフリーズフレームデータと以前の車両故障の発生時のフリーズフレームデータとが混在したデータを用いて車両故障の解析を行ってしまうという不具合を防止できる。 This prevents the problem 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.
また、前記書込確認情報に互いに相関性があると判定されなかった場合には前記複数のセクションの各々に保持されている前記故障情報及び前記書込確認情報を消去する消去手段をさらに備えるとしてもよい。 The system may further include an erasing means for erasing the failure information and the write confirmation information stored in each of the multiple sections if it is determined that the write confirmation information is not correlated with each other.
これによれば、今後、フリーズフレームデータの不揮発性メモリへの書き込みに失敗した場合の不揮発性メモリの複数のセクションの各々に保持されている故障情報を用いて車両故障の解析を行ってしまうという不具合をより一層防止できる。 This will further prevent future issues such as vehicle failure analysis using failure information stored in each of multiple sections of non-volatile memory when writing freeze frame data to non-volatile memory fails.
本発明によれば、一の車両の故障が発生した際に、一のフリーズフレームデータを構成する複数のセクション書込データの各々を不揮発性メモリの複数のセクションのうちの該当するセクションに故障情報として書き込み、当該複数のセクションの各々に相関性のある相関データを書込確認情報として書き込むため、当該複数のセクションの各々に保持されている書込確認情報に互いに相関性があるか否かを判定することにより、当該複数のセクションの各々に保持されている故障情報が一のフリーズフレームデータに関わるものであるか否かを判定でき、一のフリーズフレームデータに関らないものを含めて車両故障の解析を行ってしまうという不具合を防止できる。このように、一のフリーズフレームデータを不揮発性メモリの複数のセクションにわたって分割して保持する場合に好適である。 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 one of the multiple sections of the non-volatile memory, and correlation data that is correlated to each of the multiple sections is written as write confirmation information. Therefore, 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, and the problem of analyzing a vehicle failure including information unrelated to one freeze frame data can be prevented. In this way, it is suitable for storing one freeze frame data divided across multiple sections of the non-volatile memory.
以下では、本発明の実施形態について、添付図面を参照しつつ詳細に説明する。 The following describes in detail an embodiment of the present invention with reference to the accompanying drawings.
1.車両用制御システムのシステム構成
本発明の一実施形態に係る車両用制御システムSの構成について図1を参照して説明する。
1. System Configuration of Vehicle Control System The configuration of a vehicle control system S according to an embodiment of the present invention will be described with reference to FIG.
車両用制御システムSは、車両1に搭載され、例えば車両1の故障が発生した際の後述するフリーズフレームデータ(以下では、適宜、「FFD」と記載する。)の記憶に関わる制御などを行うシステムである。
The vehicle control system S is a system that is installed in the
車両用制御システムSは、メインECU10やECU30、50、70など複数のECUを備えており、当該複数のECUはバス2に接続されて他のECUとの間でCAN(Controller Area Network)通信を行う。例えば、メインECU10はECU30、50、70などとの間で定期的に通信を行う。なお、ECU30、50、70などの例として、エンジンスロットルの開度の制御やエンジンの停止制御などを行うエンジンECU、ステレオカメラが撮影した画像に基づいて先行車と車両1との相対速度や車間距離などの算出を行うステレオカメラECU、エンジンの燃料噴射量や吸入空気量などを制御するEFI-ECUなどを挙げることができる。
The vehicle control system S includes multiple ECUs, such as a
車両用制御システムSにはバッテリ3が設けられている。また、車両用制御システムSには車両1のエンジンの始動や各種電気系統の制御を行うための装置であるイグニッションスイッチ4が設けられている。メインECU10の後述するマイクロコンピュータ(以下、「マイコン」と記載する。)11はイグニッションスイッチ4を介してバッテリ3に接続されており、メインECU10の後述するマイコン11にはイグニッションスイッチ4がオン状態である場合にバッテリ3から電源供給が行われ、イグニッションスイッチ4がオフ状態である場合にバッテリ3から電源供給が行われないようになっている。なお、車両用制御システムSにはメインECU10のマイコン11以外にも電源供給を必要とするユニットがあり、図1には図示していないがバッテリ3から当該電源供給を必要とするユニットへの電源供給が可能に構成されている。
The vehicle control system S is provided with a
車両用制御システムSにはアクチュエータ5が備えられており、アクチュエータ5はメインECU10に接続されてメインECU10の後述するマイコン11が備える後述するCPU12により駆動制御される。
The vehicle control system S is equipped with an
メインECU10には、マイコン11が搭載され、車両1などの車両の故障を診断するための故障診断ツールを搭載した端末(不図示:以下、適宜、「故障診断ツール搭載端末」と記載する。)の接続用のオンボードダイアグノーシス(On board diagnostics:OBD)コネクタTが設けられている。 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, appropriately referred to as a "terminal equipped with a fault diagnosis tool").
マイコン11は、各種演算及び各種制御を行うCPU12と、コードフラッシュメモリ(以下、「コードフラッシュ」と記載する。)13A、データフラッシュメモリ(以下、「データフラッシュ」と記載する。)13B及びSRAM13Cを含むメモリ13と、コンピュータ内部でCPU12と周辺機器が通信を行うための窓口となる端子又は回路であるI/Oポート14とを備える。マイコン11にはイグニッションスイッチ4がオン状態である場合にバッテリ3から電源供給が行われ、イグニッションスイッチ4がオフ状態である場合にバッテリ3から電源供給が行われないようになっている。
The microcomputer 11 includes a CPU 12 that performs various calculations and various controls,
コードフラッシュ13Aは、保持内容の書き換えが可能であって、バッテリ3などからの電源供給が行われている状態に加えバッテリ3などからの電源供給が途絶えた状態でも記憶内容を保持し続けることが可能な不揮発性メモリであり、例えば図2のフリーズフレームデータ(FFD)保持処理用のプログラムや図3のフリーズフレームデータ(FFD)読込処理用のプログラムなどの各種プログラムなどを保持する。また、データフラッシュ13Bは、保持内容の書き換えが可能であって、バッテリ3などからの電源供給が行われている状態に加えバッテリ3などからの電源供給が途絶えた状態でも記憶内容を保持し続けることが可能な不揮発性メモリであり、例えばFFDや後述するキーワードなどの各種データなどを保持し、本発明の「不揮発性メモリ」に相当する。また、SRAM13Cは、保持内容の書き換えが可能であって、バッテリ3などからの電源供給が行われている状態では記憶内容を保持し続けることが可能であるが、バッテリ3などからの電源供給が途絶えると記憶内容が失われる揮発性メモリであり、例えばFFDや後述するキーワードなどの各種データなどを保持する。SRAM13Cはデータフラッシュ13Bに比べ読み出し速度が速い。なお、コードフラッシュ13Aの代わりに例えばコードフラッシュ13A以外の他の不揮発性メモリを用いてもよく、データフラッシュ13Bの代わりに例えばデータフラッシュ13B以外の他の不揮発性メモリを用いてもよく、SRAM13Cの代わりに例えばデータフラッシュ13B又はその代わりに用いるデータフラッシュ13B以外の他の不揮発性メモリよりも読み出し速度が速い、SRAM13C以外の揮発性メモリを用いてもよい。
The
CPU12は、本実施形態では、例えば、アクチュエータ5の駆動制御を行ったり、図2及び図4を用いて後に詳述するフリーズフレームデータ(FFD)保持処理や図3及び図4を用いて後に詳述するフリーズフレームデータ(FFD)読込処理を行ったりする。
In this embodiment, the CPU 12, for example, controls the drive of the
フリーズフレームデータ(FFD)保持処理では、CPU12は、車両1の故障が発生した際に、収集していた車両情報やこれらと紐づく故障要因情報を含むFFDを複数のデータ(一つのデータは例えば同一の属性の情報から構成されている。:本発明の「セクション書込データ」に相当し、以下では、適宜、「セクション書込データ」と記載する。)に分けて当該複数のセクション書込データの各々をデータフラッシュ13Bの複数のセクション(一つのセクションは一つのセクション書込データ及び一つのキーワードを書き込むメモリ領域である。)のうちの該当するセクションに故障情報として書き込み、当該複数のセクションの各々に同一のキーワード(本発明の「相関性のある相関データ」に相当)を書込確認情報として書き込む書込処理を行い、当該書込処理では一つのセクションへのセクション書込データ及びキーワードの書き込みを終了した後に他の一つのセクションへのセクション書込データ及びキーワードの書き込みを行う(本発明の「書込手段」による処理に相当)。
In the freeze frame data (FFD) retention process, when a fault occurs in the
ここで、車両情報は、例えば、CPU12を備えるメインECU10に接続されたセンサの計測結果などやバス2を介したCAN通信で取得した他のECU30、50、70に接続されたセンサの計測結果などであり、例えば、冷却水温情報、エンジン回転数情報、スロットル開度情報、車速情報、燃圧情報、吸気温度情報などであり、CPU12は車両情報を定期的に収集している。また、故障要因情報は、車両1の故障の要因に関わる情報であり、例えば、ECU30との間の定期的な通信が途絶えた通信異常に関わる通信異常情報などであり、CPU12は車両1の故障の発生時に故障要因情報を取得する。
Here, the vehicle information is, for example, the measurement results of sensors connected to the
フリーズフレームデータ(FFD)読込処理では、CPU12は、データフラッシュ13BからFFDを読み出し、その際に、データフラッシュ13Bの複数のセクションの各々に保持されている書込確認情報(キーワード)が全て同一であるか否かを判定し、複数のセクションに保持されている故障情報(セクション書込データ)を、書込確認情報(キーワード)が全て同一であると判定された場合には車両1の故障の解析に用いる情報であるとし、書込確認情報(キーワード)が全て同一であると判定されなかった場合には車両1の故障の解析に用いる情報であるとしない(本発明の「判定手段」による処理に相当)。また、CPU12は、書込確認情報(キーワード)が全て同一であると判定されなかった場合には、データフラッシュ13Bの複数のセクションの各々に保持されている故障情報(セクション書込データ)及び書込確認情報(キーワード)を初期化して消去する(本発明の「消去手段」による処理に相当)。
In the freeze frame data (FFD) read process, the CPU 12 reads the FFD from the
2.フリーズフレームデータ(FFD)保持処理
2.1.フリーズフレームデータ(FFD)保持処理の処理フロー
メインECU10のCPU12において行われるフリーズフレームデータ(FFD)保持処理の処理フローについて図2を参照しつつ詳細に説明する。図2のフリーズフレームデータ(FFD)保持処理の処理フローは所定周期(例えば、5ms)で実行される。
2. Freeze frame data (FFD) retention process 2.1. Processing flow of freeze frame data (FFD) retention process The processing flow of the freeze frame data (FFD) retention process performed by the CPU 12 of the
フリーズフレームデータ(FFD)保持処理では、まず、CPU12は車両1の故障が発生したか否かを判定する(ステップS1)。 In the freeze frame data (FFD) retention process, the CPU 12 first determines whether a malfunction has occurred in the vehicle 1 (step S1).
ステップS1の判定処理において車両1の故障が発生していないと判定された場合には(ステップS1のNO)、図2のフリーズフレームデータ(FFD)保持処理を終了する。一方、ステップS1の判定処理において車両1の故障が発生していると判定された場合には(ステップS1のYES)、収集していた車両情報やこれらと紐づく故障要因情報を含むFFDをデータフラッシュ13Bに書き込むために、ステップS2の処理に進む。 If 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) retention process of FIG. 2 is terminated. On the other hand, if 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, which includes the collected vehicle information and malfunction cause information linked to the information, to the data flash 13B.
例えば、メインECU10は他のECU30、50、70と定期的に通信を行っており、CPU12はメインECU10とECU30との間の通信が予め定められた期間途絶えた通信異常により車両1に故障が発生したと判定し(ステップS1のYES)、収集していた車両情報やこれらと紐づく故障要因情報を含むFFDをデータフラッシュ13Bに書き込むために、ステップS2の処理に進む。この場合、FFDに含まれる車両情報は、メインECU10に接続されたセンサの計測結果などやECU50、70に接続されたセンサの計測結果などを含むとともに、ECU30との通信が途絶える前にECU30から受け取っていたECU30に接続されたセンサの計測結果などを含み、故障要因情報はECU30との間の通信異常に関わる通信異常情報である。
For example, the
CPU12はキーワードを生成し(ステップS2)、ステップS3の処理に進む。ステップS2におけるキーワードの生成では、CPU12は前回生成したキーワードとは異なるように(前回生成したキーワードとは相関性がないように)キーワードを生成する。前回生成したキーワードと異なるキーワードの生成は、例えば、ランダムに乱数を発生させて抽出し、抽出した乱数をキーワードとして用いることにより行う。 The CPU 12 generates a keyword (step S2) and proceeds to processing in 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 it has 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.
CPU12は、FFD及びキーワードを最初に書き込むデータフラッシュ13Bのセクションを指定し(ステップS3)、ステップS4に進む。 The CPU 12 specifies the section of the data flash 13B into which the FFD and keywords are to be written first (step S3), and proceeds to step S4.
CPU12は、ステップS2で生成したキーワードをデータフラッシュ13Bの指定セクションに書込確認情報として書き込み、FFDを構成する複数のセクション書込データのうちのデータフラッシュ13Bにまだ書き込まれていない該当するセクション書込データを当該指定セクションに故障情報として書き込む、FFD及びキーワードの指定セクションへの書き込み処理を行い(ステップS4)、ステップS5の処理に進む。なお、ステップS4の書き込み処理では、例えば、指定セクションの先頭領域からキーワードを書き込み、キーワードを書き込んだ領域の次の領域からセクション書込データを書き込む。
The CPU 12 writes the keyword generated in step S2 to the specified 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
CPU12は、FFDの全て(FFDを構成する複数のセクション書込データの全て)をデータフラッシュ13Bに書き込んだか否かを判定する(ステップS5)。
The CPU 12 determines whether or not the entire FFD (all of the multiple section write data that make up the FFD) has been written to the
ステップS5の判定処理においてFFDの全てをデータフラッシュ13Bに書き込んだと判定されなかった場合には(ステップS5のNO)、ステップS6の処理に進む。
If it is not determined in the determination process of step S5 that all of the FFD has been written to the
CPU12は、FFD及びキーワードを次に書き込むデータフラッシュ13Bのセクションを指定し(データフラッシュ13Bの指定セクションを次に移動し)(ステップS6)、ステップS4の処理に戻る。 The CPU 12 specifies the section of the data flash 13B into which the FFD and keywords will be written next (moves to the next specified section of the data flash 13B) (step S6), and returns to the processing of step S4.
ステップS5の判定処理においてFFDの全てをデータフラッシュ13Bに書き込んだと判定された場合には(ステップS5のYES)、図2のフリーズフレームデータ(FFD)保持処理を終了する。
If it is determined in the determination process of step S5 that all of the FFD has been written to the
2.2.FFDのデータフラッシュへの書き込みの具体例
図2のフリーズフレームデータ(FFD)保持処理でのFFDのデータフラッシュ13Bへの書き込みの具体例について図4を参照しつつ詳細に説明する。
2.2 Specific Example of Writing FFD to Data Flash A specific example of writing FFD to the
2.2.1.FFDのデータフラッシュへの書き込みの成功例
N回目の車両の故障が発生した際のFFDのデータフラッシュ13Bへの書き込み中に電源供給が断たれることなく、FFDのデータフラッシュ13Bへの書き込みに成功した成功例について図4(a)を参照しつつ詳細に説明する。
2.2.1. Example of Successful Writing to Data Flash of FFD A detailed description will be given of an example of successful writing to the
図4(a)の例では、N回目の車両の故障が発生した際のFFDは4つの故障情報A1~A4から構成され、FFDの書き込み対象のデータフラッシュ13Bのセクションは4つのセクションA~Dであるとする。 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 data flash 13B to which the FFD is written are four sections A to D.
CPU12は車両1の故障を発生したか否かを判定し(ステップS1)、車両1の故障が発生していると判定し(ステップS1のYES)、収集していた車両情報やこれらと紐づく故障要因情報を含むFFDをデータフラッシュ13Bに書き込むための処理に移行する。 The CPU 12 determines whether 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), it proceeds to a process of writing the FFD, which includes the collected vehicle information and the malfunction cause information linked to the vehicle information, to the data flash 13B.
CPU12はキーワード(Key=0x12345678)を生成する(ステップS2)。 The CPU 12 generates a keyword (Key = 0x12345678) (step S2).
CPU12は、FFD及びキーワードを最初に書き込むデータフラッシュ13BのセクションをセクションAに指定し(ステップS3)、図4(a-1)に示すように、Key=0x12345678及び故障情報A1を指定セクションAに書き込む(ステップS4)。 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=0x12345678 and failure information A1 to the designated section A (step S4), as shown in FIG. 4(a-1).
CPU12は、FFDの全てをデータフラッシュ13Bに書き込んだか否かを判定し(ステップS5)、FFDの全てをデータフラッシュ13Bに書き込んだと判定せず(ステップS5のNO)、FFD及びキーワードを次に書き込むデータフラッシュ13BのセクションをセクションBに指定し(ステップS6)、図4(a-2)に示すように、Key=0x12345678及び故障情報A2を指定セクションBに書き込む(ステップS4)。
The CPU 12 determines whether the entire FFD has been written to the
CPU12は、FFDの全てをデータフラッシュ13Bに書き込んだか否かを判定し(ステップS5)、FFDの全てをデータフラッシュ13Bに書き込んだと判定せず(ステップS5のNO)、FFD及びキーワードを次に書き込むデータフラッシュ13BのセクションをセクションCに指定し(ステップS6)、図4(a-3)に示すように、Key=0x12345678及び故障情報A3を指定セクションCに書き込む(ステップS4)。
The CPU 12 determines whether the entire FFD has been written to the
CPU12は、FFDの全てをデータフラッシュ13Bに書き込んだか否かを判定し(ステップS5)、FFDの全てをデータフラッシュ13Bに書き込んだと判定せず(ステップS5のNO)、FFD及びキーワードを次に書き込むデータフラッシュ13BのセクションをセクションDに指定し(ステップS6)、図4(a-4)に示すように、Key=0x12345678及び故障情報A4を指定セクションDに書き込む(ステップS4)。
The CPU 12 determines whether the entire FFD has been written to the
CPU12は、FFDの全てをデータフラッシュ13Bに書き込んだか否かを判定し(ステップS5)、FFDの全てをデータフラッシュ13Bに書き込んだと判定し(ステップS5のYES)、図2のフリーズフレームデータ(FFD)保持処理を終了する。
The CPU 12 determines whether or not the entire FFD has been written to the
上述したFFDのデータフラッシュ13Bへの書き込みに成功した成功例では、図4(a)に示すように、データフラッシュ13Bの4つのセクションA~DにはN回目の車両の故障が発生した際のFFDを構成する4つの故障情報A1~A4が書き込まれて保持されるとともに、セクションA~Dの各々には同一のKey=0x12345678が書き込まれて保持されることになる。
In a successful example of the above-mentioned FFD being written to the
2.2.2.FFDのデータフラッシュへの書き込みの失敗例
N+1回目の車両の故障が発生した際のFFDのデータフラッシュ13Bへの書き込み中に電源供給が断たれて、FFDのデータフラッシュ13Bへの書き込みに失敗した失敗例について図4(b)を参照しつつ詳細に説明する。
2.2.2. Example of Failure in Writing to the Data Flash of the FFD A failure example in which writing to the
図4(b)の例では、N+1回目の車両の故障が発生した際のFFDは4つの故障情報B1~B4から構成され、FFDの書き込み対象のデータフラッシュ13Bのセクションは4つのセクションA~Dであるとする。また、N+1回目の車両の故障が発生する前のデータフラッシュ13Bには、セクションA~DにN回目の車両の故障が発生した際のFFDを構成する故障情報A1~A4が保持されているとともに、セクションA~Dの各々に同一のKey=0x12345678が保持されている(図4(a)参照)。
In the example of FIG. 4(b), the FFD when the N+1th 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
CPU12は車両1の故障を発生したか否かを判定し(ステップS1)、車両1の故障が発生していると判定し(ステップS1のYES)、収集していた車両情報やこれらと紐づく故障要因情報を含むFFDをデータフラッシュ13Bに書き込むための処理に移行する。 The CPU 12 determines whether 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), it proceeds to a process of writing the FFD, which includes the collected vehicle information and the malfunction cause information linked to the vehicle information, to the data flash 13B.
CPU12は前回作成したキーワード(Key=0x12345678)と異なる(相関性のない)キーワード(Key=0x98765432)を生成する(ステップS2)。 The CPU 12 generates a keyword (Key = 0x98765432) that is different (uncorrelated) from the previously created keyword (Key = 0x12345678) (step S2).
CPU12は、FFD及びキーワードを最初に書き込むデータフラッシュ13BのセクションをセクションAに指定し(ステップS3)、図4(b-1)に示すように、Key=0x98765432及び故障情報B1を指定セクションAに書き込む(ステップS4)。 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 to the designated section A (step S4), as shown in FIG. 4(b-1).
CPU12は、FFDの全てをデータフラッシュ13Bに書き込んだか否かを判定し(ステップS5)、FFDの全てをデータフラッシュ13Bに書き込んだと判定せず(ステップS5のNO)、FFD及びキーワードを次に書き込むデータフラッシュ13BのセクションをセクションBに指定し(ステップS6)、図4(b-2)に示すように、Key=0x98765432及び故障情報B2を指定セクションBに書き込む(ステップS4)。
The CPU 12 determines whether the entire FFD has been written to the
Key=0x98765432及び故障情報B2の指定セクションBへの書き込みが終了した後に、バッテリ抜けや瞬断の発生などにより電源供給が途絶えたとする。この場合、実行中のフリーズフレームデータ(FFD)保持処理は、Key=0x98765432及び故障情報B3のセクションCへの書き込み、及び、Key=0x98765432及び故障情報B4のセクションDへの書き込みが実行されることなく終了してしまう。この結果、セクションCとセクションDにはN+1回目の車両の故障が発生する前の内容が保持されたままになる、つまり、Key=0x12345678及び故障情報A3とKey=0x12345678及び故障情報A4が保持されたままになる(図4(b-3)~(b-4))。 After writing Key = 0x98765432 and failure information B2 to specified section B, suppose that the power supply is cut off 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 failure information B3 to section C, and without writing Key = 0x98765432 and failure information B4 to section D. As a result, sections C and D will continue to hold the contents before the N+1th vehicle failure occurred, that is, Key = 0x12345678 and failure information A3 and Key = 0x12345678 and failure information A4 will continue to be held (Figures 4 (b-3) to (b-4)).
上記したFFDのデータフラッシュ13Bへの書き込みに失敗した失敗例では、図4(b)に示すように、データフラッシュ13BのセクションA、BにはN+1回目の車両1の故障が発生した際のFFDの故障情報B1、B2が書き込まれて保持されるとともに、セクションA、Bの各々にはKey=0x98765432が書き込まれて保持されることになる。また、データフラッシュ13BのセクションC、DにはN回目の車両の故障が発生した際のFFDの故障情報A3、A4が保持されたままになるとともに、セクションC、Dの各々にはKey=0x12345678が保持されたままとなる。このように、セクションA、Bの各々に保持されているKey=0x98765432と、セクションC、Dの各々に保持されているKey=0x12345678とは異なったキーワードとなる。
In the above-mentioned example of failure in writing the FFD to the
3.フリーズフレームデータ(FFD)読込処理
3.1.フリーズフレームデータ(FFD)読込処理の処理フロー
メインECU10のCPU12において行われるフリーズフレームデータ(FFD)読込処理の処理フローについて図3を参照しつつ詳細に説明する。図3のフリーズフレームデータ(FFD)読込処理の処理フローはCPU12の起動時や再起動時などに実行される。
3. Freeze frame data (FFD) reading process 3.1. Processing flow of freeze frame data (FFD) reading process The processing flow of the freeze frame data (FFD) reading process performed by the CPU 12 of the
フリーズフレームデータ(FFD)読込処理では、まず、CPU12は、データフラッシュ13BにFFDが保持されているか否かを判定する(ステップS51)。データフラッシュ13BにFFDが保持されていないと判定された場合には(ステップS51のNO)、図3のフリーズフレームデータ(FFD)読込処理を終了する。一方、データフラッシュ13BにFFDが保持されていると判定された場合には(ステップS51のYES)、ステップS52の処理に進む。
In the freeze frame data (FFD) read process, the CPU 12 first determines whether or not an FFD is stored in the
CPU12は、データフラッシュ13Bの複数のセクションの各々から書込確認情報(キーワード)及び故障情報(FFDを構成する複数のセクション書込データのうちの当該セクションに保持されているセクション書込データ)を読み出してこれらをSRAM13Cに書き込んで保持し(ステップS52)、ステップS53の処理に進む。
The CPU 12 reads the write confirmation information (keywords) and failure information (section write data stored in the relevant section among the multiple section write data constituting the FFD) from each of the multiple sections of the data flash 13B, writes and stores them in the
CPU12は、ステップS52でデータフラッシュ13Bの複数のセクションの各々から読み出されてSRAM13Cに書き込まれた書込確認情報(キーワード)が全て同一であるか否かを判定する(ステップS53)。ステップS53の判定処理において書込確認情報(キーワード)が全て同一であると判定された場合には(ステップS53のYES)、図3のフリーズフレームデータ(FFD)読込処理を終了する。一方で、ステップS53の判定処理において書込確認情報(キーワード)が全て同一であると判定されなかった場合には(ステップS53のNO)、ステップS54の処理に進む。
The CPU 12 determines whether the write confirmation information (keywords) read from each of the multiple sections of the data flash 13B and written to the
CPU12は、データフラッシュ13BからFFD及びキーワードを初期化して消去し、SRAM13CからFFD及びキーワードを初期化して消去し(ステップS54)、図3のフリーズフレームデータ(FFD)読込処理を終了する。ステップS54の処理内容をさらに記載すると、データフラッシュ13Bの複数のセクションの各々から故障情報(セクション書込データ)及び書込確認情報(キーワード)を初期化して消去し、SRAM13Cからデータフラッシュ13Bの複数のセクションの各々から読み出されてSRAM13Cに書き込まれた故障情報(セクション書込データ)及び書込確認情報(キーワード)を初期化して消去する。
The CPU 12 initializes and erases the FFD and keywords from the data flash 13B, initializes and erases the FFD and keywords from the
図3のフリーズフレームデータ(FFD)読込処理が終了した後に、故障診断ツール搭載端末がOBDコネクタTに接続され、故障診断ツール搭載端末がメインECU10のCPU12に対してFFDの送信要求を行う。
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
CPU12の起動時や再起動時などの複数のセクションの書込確認情報(キーワード)が全て同一である場合、CPU12は、故障診断ツール搭載端末からの送信要求に応じて、データフラッシュ13Bの複数のセクションの各々から読み出されてSRAM13Cに書き込まれた故障情報(セクション書込データ)をSRAM13Cから読み出して故障診断ツール搭載端末へ送信する。これにより、故障診断ツール搭載端末において、一のフリーズフレームデータを構成する複数のセクション書込データ(故障情報)だけを用いた車両故障の解析を行うことができる。
When the write confirmation information (keywords) of multiple sections is the same when the CPU 12 is started or restarted, the CPU 12 responds to a transmission request from the fault diagnosis tool-equipped terminal by reading from
一方、CPU12の起動時や再起動時などの複数のセクションの書込確認情報(キーワード)の中に他の書込確認情報(キーワード)と異なるものがある場合、データフラッシュ13Bの複数のセクションの各々から読み出されてSRAM13Cに書き込まれた故障情報(セクション書込データ)はSRAM13Cから消去されているので、CPU12の起動時や再起動時などにデータフラッシュ13Bの複数のセクションの各々に保持されている故障情報(セクション書込データ)が故障診断ツール搭載端末へ送信されることはない。これにより、故障診断ツール搭載端末において、一のフリーズフレームデータに関らないものを含めて車両故障の解析を行ってしまうという不具合を防止できる。
On the other hand, if the write confirmation information (keywords) of the multiple sections at the time of startup or restart of 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 data flash 13B and written to
3.2.FFDのデータフラッシュからの読み込み例
図3のフリーズフレームデータ(FFD)読込処理でのFFDのデータフラッシュ13Bから読み込み例について図4を参照しつつ詳細に説明する。
3.2 Example of Reading FFD from Data Flash An example of reading the freeze frame data (FFD) from the
3.2.1.FFDのデータフラッシュへの書き込みに成功した場合のFFDの読み込み例
FFDのデータフラッシュ13Bへの書き込みに成功した場合のFFDの読み込み例について図4(a)を参照しつつ詳細に説明する。
3.2.1 Example of Reading FFD When Writing of FFD to Data Flash is Successful An example of reading the FFD when writing of the FFD to the
CPU12は、データフラッシュ13BにFFDが保持されているか否かを判定し(ステップS51)、FFDが保持されていると判定する(ステップS51のYES)。
The CPU 12 determines whether an FFD is stored in the
CPU12は、データフラッシュ13BのセクションA、B、C、Dから「Key=0x12345678及び故障情報A1」、「Key=0x12345678及び故障情報A2」、「Key=0x12345678及び故障情報A3」、「Key=0x12345678及び故障情報A4」を読み出してSRAM13Cに書き込む(ステップS52)。
The CPU 12 reads "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
CPU12は、データフラッシュ13BのセクションA、B、C、Dから読み出されてSRAM13Cに書き込まれたKey=0x12345678、Key=0x12345678、Key=0x12345678、Key=0x12345678が全て同一であるか否かを判定し(ステップS53)、全て同一であると判定し(ステップS53のYES)、図3のフリーズフレームデータ(FFD)読込処理を終了する。
The CPU 12 determines whether Key=0x12345678, Key=0x12345678, Key=0x12345678, Key=0x12345678 read from sections A, B, C, and D of the data flash 13B and written to the
図3のフリーズフレームデータ(FFD)読込処理が終了した後に、故障診断ツール搭載端末がOBDコネクタTに接続され、故障診断ツール搭載端末がメインECU10のCPU12に対してFFDの送信要求を行う。CPU12は、故障診断ツール搭載端末からの送信要求に応じて故障情報A1~A4をSRAM13Cから読み出して故障診断ツール搭載端末へ送信する。これにより、故障診断ツール搭載端末において、N回目の車両の故障が発生した際のフリーズフレームデータを構成する4つの故障情報A1~A4だけを用いた車両故障の解析を行うことができる。
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
3.2.2.FFDのデータフラッシュへの書き込みに失敗した場合のFFDの読み込み例
FFDのデータフラッシュ13Bへの書き込みに失敗した場合のFFDの読み込み例について図4(b)を参照しつつ詳細に説明する。
3.2.2. Example of Reading FFD When Writing of FFD to Data Flash Fails An example of reading the FFD when writing of the FFD to the data flash 13B fails will be described in detail with reference to FIG.
CPU12は、データフラッシュ13BにFFDが保持されているか否かを判定し(ステップS51)、FFDが保持されていると判定する(ステップS51のYES)。
The CPU 12 determines whether an FFD is stored in the
CPU12は、データフラッシュ13BのセクションA、B、C、Dから「Key=0x98765432及び故障情報B1」、「Key=0x98765432及び故障情報B2」、「Key=0x12345678及び故障情報A3」、「Key=0x12345678及び故障情報A4」を読み出してSRAM13Cに書き込む(ステップS52)。
The CPU 12 reads "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
CPU12は、データフラッシュ13BのセクションA、B、C、Dから読み出されてSRAM13Cに書き込まれたKey=0x98765432、Key=0x98765432、Key=0x12345678、Key=0x12345678が全て同一であるか否かを判定し(ステップS53)、全て同一であると判定しない(ステップS53のNO)。CPU12は、データフラッシュ13BのセクションA、B、C、Dから「Key=0x98765432及び故障情報B1」、「Key=0x98765432及び故障情報B2」、「Key=0x12345678及び故障情報A3」、「Key=0x12345678及び故障情報A4」を消去し、SRAM13Cから「Key=0x98765432及び故障情報B1」、「Key=0x98765432及び故障情報B2」、「Key=0x12345678及び故障情報A3」、「Key=0x12345678及び故障情報A4」を消去し(ステップS54)、図3のフリーズフレームデータ(FFD)読込処理を終了する。
The CPU 12 determines whether 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
図3のフリーズフレームデータ(FFD)読込処理が終了した後に、故障診断ツール搭載端末がOBDコネクタTに接続され、故障診断ツール搭載端末がメインECU10のCPU12に対してFFDの送信要求を行っても、CPU12の起動時や再起動時などにデータフラッシュ13BのセクションA~Dに保持されている故障情報B1、B2、A3、A4がCPU12から故障診断ツール搭載端末へ送信されることはない。これにより、故障診断ツール搭載端末において、N+1回目の車両の故障が発生した際のフリーズフレームデータに関わる故障情報B1、B2とN回目の車両の故障が発生した際のフリーズフレームデータに関わる故障情報A3、A4とを混在して車両故障の解析を行ってしまうという不具合を防止できる。
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 even if the fault diagnosis tool-equipped terminal requests the CPU 12 of the
<効果>
以上の実施形態によれば、一の車両の故障が発生した際の一のFFDのデータフラッシュ13Bへの書き込に成功した場合にはデータフラッシュ13Bの複数のセクションの各々に保持されている書込確認情報(キーワード)は全て同じになる(図4(a)参照)。一方で、一のFFDをデータフラッシュ13Bに書き込んでいる途中に電源供給が途絶えるなどして当該一のFFDのデータフラッシュ13Bへの書き込みに失敗した場合にはセクション書込データを書き込むことができたセクションに保持されている書込確認情報(キーワード)と書き込むことができなかったセクションに保持されている書込確認情報(キーワード)とは異なるものになる(図4(b)参照)。このため、複数のセクションの各々に保持されている書込確認情報(キーワード)の中に他の書込確認情報(キーワード)と異なるものがあれば当該複数のセクションの各々に保持されている故障情報(セクション書込データ)の中に一のFFDに関らないものが含まれていると判定でき、一のFFDに関らないものを含めて車両故障の解析を行ってしまうという不具合を防止できる。
<Effects>
According to the above embodiment, when a fault occurs in a vehicle, if writing of a certain FFD to the
また、データフラッシュ13Bの複数のセクションの各々に保持されている故障情報(セクション書込データ)の全てが一のFFDに関わるものであるか否かを判定することなく、データフラッシュ13Bの複数のセクションの各々に保持されている書込確認情報(キーワード)の全てが同一であるか否かを判定することにより、複数のセクションの各々に保持されている故障情報(セクション書込データ)が一のFFDに関わるものであるか否かを判定できるので当該判定に要する時間が短くて済む。 In addition, by determining whether all of the write confirmation information (keywords) held in each of the multiple sections of data flash 13B are the same, without determining whether all of the failure information (section write data) held in each of the multiple sections of data flash 13B is related to one FFD, it is possible to determine whether all of the failure information (section write data) held in each of the multiple sections is related to one FFD, thereby shortening the time required for this determination.
また、書込確認情報(キーワード)としてデータサイズの小さいものを利用すれば、一のFFDのデータフラッシュ13Bへの書き込み中に電源供給が断たれる可能性の増大を抑えることができる。
In addition, by using write confirmation information (keywords) with a small data size, it is possible to reduce the possibility of the power supply being cut off while writing to the
また、今回の車両の故障が発生した際に生成されるキーワードを、前回の車両の故障が発生した際に生成したキーワードと異なるようにすることにより、今回の車両の故障が発生した際のFFDと前回の車両の故障が発生した際のFFDとが混在したデータを用いて車両故障の解析を行ってしまうという不具合を防止できる。このように、一のフリーズフレームデータを不揮発性メモリの複数のセクションにわたって分割して保持する場合に好適である。 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 the vehicle failure from being analyzed using data that contains a mixture of the FFD when the current vehicle failure occurred and the FFD when the previous vehicle failure occurred. In this way, it is suitable for storing a single freeze frame data in multiple sections of non-volatile memory.
また、複数のセクションの各々に保持されている書込確認情報(キーワード)に異なるものがある場合にはデータフラッシュ13B及びSRAM13Cの各々からFFD及びキーワードを消去するので、今後、FFDのデータフラッシュ13Bへの書き込みに失敗した場合の故障情報を用いて車両故障の解析を行ってしまうという不具合をより一層防止できる。
In addition, if there is a difference in the write confirmation information (keywords) stored in each of the multiple sections, the FFD and keyword are erased from each of the data flash 13B and the
また、CPU12は、OBDコネクタTに接続された故障診断ツール搭載端末からのFFDの送信要求に応じでFFDを送信する場合、FFDを構成する複数のセクション書込データ(故障情報)をデータフラッシュ13Bから読み出して送信するのではなく、SRAM13Cから読み出して送信するため、FFDを構成する複数のセクション書込データ(故障情報)の故障診断ツール搭載端末への送信を速やかに行うことができる。
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 constitute the FFD from the
<変形例>
以上、本発明の一実施形態について説明したが、本発明は、他の形態で実施することもできる。
<Modification>
Although one embodiment of the present invention has been described above, the present invention can be embodied in other forms.
例えば、上記の実施形態では、相関性のある相関データとして同一のキーワードを例に挙げ、相関性のない相関データとして異なるキーワードを例に挙げて説明したが、これに限定されるものではなく、例えば、複数のセクションの各々の故障情報(セクション書込データ)が同じフリーズフレームデータに関わるものであることの判定を可能にするものであれば同一のキーワード以外の相関性のある相関データであってもよく、複数のセクションの各々の故障情報(セクション書込データ)が異なるフリーズフレームデータに関わるものであることの判定を可能にするものであれば異なるキーワード以外の相関性のないデータであってもよい。 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 correlated correlation data may be 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 uncorrelated data other than different keywords may be used 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.
上記の場合において、例えば、FFDを4つに分けてデータフラッシュ13Bの4つのセクションA~Dに書き込むケースついて記載する。前回の車両1の故障が発生した際に書込確認情報として相関データDA1、DA2、DA3、DA4がセクションA、B、C、Dに書き込まれ、今回の車両1の故障が発生する前にセクションA、B、C、Dには相関データDA1、DA2、DA3、DA4が保持されている。この相関データDA1、DA2、DA3、DA4には互いに相関性がある。今回の車両1の故障が発生した際の図2のフリーズフレームデータ(FFD)読込処理ではステップS2が相関データDA1、DA2、DA3、DA4とは互いに相関性のない相関データDB1、DB2、DB3、DB4を生成する処理に置き換わる。この相関データDB1、DB2、DB3、DB4には互いに相関性がある。そして、ステップS4が指定セクションへのキーワードの書き込み部分を指定セクションへの相関データDB1~DB4のうちのまだ書き込まれていない相関データの書き込みを行うものに置き換わる。図3のフリーズフレームデータ(FFD)読込処理ではステップS52~S54の処理において書込確認情報(キーワード)が書込確認情報(相関データDB1~DB4)に置き換わり、ステップS53では複数のセクションA~Dの各々から読み出されてSRAM13Cに書き込まれた書込確認情報に互いに相関性があるか否かを判定することになり、書込確認情報に互いに相関性があると判定された場合はフリーズフレームデータ(FFD)読込処理を終了し、書込確認情報に互いに相関性があると判定されなかった場合はステップS54に進む。
In the above case, for example, the 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
また、上記の実施形態で説明した内容や上記の変形例で説明した内容を適宜組み合わせるようにしてもよい。 In addition, the contents described in the above embodiment and the contents described in the above modified example may be combined as appropriate.
その他、前述の構成には、特許請求の範囲に記載された事項の範囲で種々の設計変更を施すことが可能である。 In addition, various design modifications can be made to the above-mentioned configuration within the scope of the claims.
本発明は、フリーズフレームデータの記憶に関わる制御を行う車両用制御装置に広く適用可能である。 The present invention can be widely applied to vehicle control devices that perform control related to the storage of freeze frame data.
1:車両
S:車両用制御システム
10:メインECU
11:マイコン
12:CPU
13B:データフラッシュ
13C:SRAM
1: Vehicle S: Vehicle control system 10: Main ECU
11: Microcomputer 12: CPU
13B:
Claims (3)
一の車両の故障が発生した際に、一のフリーズフレームデータを構成する複数のセクション書込データの各々を不揮発性メモリの複数のセクションのうちの該当するセクションに故障情報として書き込み、当該複数のセクションの各々に相関性のある相関データを書込確認情報として書き込む書込処理を行うものであって、前記書込処理では一つのセクションへの前記セクション書込データ及び前記相関データの書き込みを終了した後に他の一つのセクションへの前記セクション書込データ及び前記相関データの書き込みを行う書込手段と、
前記不揮発性メモリから前記一のフリーズフレームデータを読み出す際に、前記複数のセクションの各々に保持されている前記書込確認情報に互いに相関性があるか否かを判定し、前記複数のセクションに保持されている前記故障情報を、前記書込確認情報に互いに相関性があると判定された場合には車両の故障の解析に用いる情報であるとし、前記書込確認情報に互いに相関性があると判定されなかった場合には車両の故障の解析に用いる情報であるとしない、判定手段と
を備えることを特徴とする車両用制御装置。 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 section 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;
and 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 reading out the one freeze frame data from the non-volatile memory, and determining that the fault information stored in the plurality of sections is information to be used for analyzing a vehicle fault if it is determined that the write confirmation information is correlated with each other, and not determining that the fault information is information to be used for analyzing a vehicle fault if it is not determined that the write confirmation information is correlated with each other.
ことを特徴とする請求項1に記載の車両用制御装置。 The vehicle control device according to claim 1, characterized in that the writing means writes 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 not correlated 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.
をさらに備えることを特徴とする請求項1又は2に記載の車両用制御装置。 3. The vehicle control device according to claim 1, further comprising an erasure means for erasing the failure information and the write confirmation information stored in each of the multiple sections when it is determined that the write confirmation information is not correlated with each other.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2021140681A JP7638830B2 (en) | 2021-08-31 | 2021-08-31 | Vehicle control device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2021140681A JP7638830B2 (en) | 2021-08-31 | 2021-08-31 | Vehicle control device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2023034433A JP2023034433A (en) | 2023-03-13 |
| JP7638830B2 true JP7638830B2 (en) | 2025-03-04 |
Family
ID=85504307
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2021140681A Active JP7638830B2 (en) | 2021-08-31 | 2021-08-31 | Vehicle control device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7638830B2 (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009289049A (en) | 2008-05-29 | 2009-12-10 | Toyota Motor Corp | Memory control device |
| JP2014076737A (en) | 2012-10-10 | 2014-05-01 | Fujitsu Ten Ltd | Vehicle information storage processing unit and vehicle information storage processing method |
| JP2014085709A (en) | 2012-10-19 | 2014-05-12 | Denso Corp | On-vehicle electronic control device |
-
2021
- 2021-08-31 JP JP2021140681A patent/JP7638830B2/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009289049A (en) | 2008-05-29 | 2009-12-10 | Toyota Motor Corp | Memory control device |
| JP2014076737A (en) | 2012-10-10 | 2014-05-01 | Fujitsu Ten Ltd | Vehicle information storage processing unit and vehicle information storage processing method |
| JP2014085709A (en) | 2012-10-19 | 2014-05-12 | Denso Corp | On-vehicle electronic control device |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2023034433A (en) | 2023-03-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8219280B2 (en) | Vehicle information storage apparatus | |
| EP2040166B1 (en) | Memory management apparatus | |
| US8140216B2 (en) | Method of detecting manipulation of a programmable memory device of a digital controller | |
| JP4539757B2 (en) | Electronic control unit | |
| JP5505493B2 (en) | Electronic control system and electronic control device | |
| JP5176728B2 (en) | Electronic control device for vehicle | |
| JP4552982B2 (en) | Electronic control unit | |
| CN114385421A (en) | Data storage method and device, electronic equipment and storage medium | |
| JP7638830B2 (en) | Vehicle control device | |
| JP2009262787A (en) | Electronic control unit | |
| JP2017082702A (en) | In-vehicle electronic control unit | |
| JP2018136728A (en) | Electronic control unit | |
| JP4479775B2 (en) | Vehicle control apparatus and program | |
| CN111684523B (en) | electronic control device | |
| CN112599172B (en) | Data writing method and device of electronic control unit and storage medium | |
| JP2002047998A (en) | Vehicle control device | |
| JP2020129325A (en) | Electronic control unit for vehicle | |
| JP7486460B2 (en) | Electronic control device and method for erasing malfunction information | |
| JP7131437B2 (en) | Electronic controller and inspection system | |
| JPH07218391A (en) | Diagnostic apparatus for vehicle | |
| JP7099293B2 (en) | Electronic control device | |
| CN120763915A (en) | Serial startup method, device, storage medium and vehicle of vehicle-mounted electronic control unit | |
| JP2009199515A (en) | Vehicle control device | |
| JP2018031265A (en) | Electronic control unit | |
| JP2005011214A (en) | Application software writing method in the inspection process of electronic system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20240506 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20250128 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20250218 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20250219 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7638830 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |