JP6956566B2 - Vehicle information storage device - Google Patents
Vehicle information storage device Download PDFInfo
- Publication number
- JP6956566B2 JP6956566B2 JP2017165492A JP2017165492A JP6956566B2 JP 6956566 B2 JP6956566 B2 JP 6956566B2 JP 2017165492 A JP2017165492 A JP 2017165492A JP 2017165492 A JP2017165492 A JP 2017165492A JP 6956566 B2 JP6956566 B2 JP 6956566B2
- Authority
- JP
- Japan
- Prior art keywords
- vehicle information
- information
- storage area
- storage
- stored
- 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 5
- 230000008569 process Effects 0.000 claims description 4
- 230000004044 response Effects 0.000 claims description 2
- 238000003745 diagnosis Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 230000005856 abnormality Effects 0.000 description 4
- 238000011084 recovery Methods 0.000 description 3
- 238000004092 self-diagnosis Methods 0.000 description 2
- 230000007704 transition Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Landscapes
- Hardware Redundancy (AREA)
Description
本発明は、車両に搭載され、かつ、当該車両の状態を示す車両情報を記憶する車両情報記憶装置に関する。 The present invention relates to a vehicle information storage device that is mounted on a vehicle and stores vehicle information indicating the state of the vehicle.
従来から、車両に搭載され、かつ、当該車両の状態を示す車両情報を記憶する車両情報記憶装置が知られている。例えば、車両の自己診断機能(OBD;On-Board Diagnostics)に関して、不揮発性メモリに逐次記憶される故障診断情報の信頼性を高めるための技術が種々提案されている。 Conventionally, a vehicle information storage device that is mounted on a vehicle and stores vehicle information indicating the state of the vehicle has been known. For example, regarding the vehicle self-diagnosis function (OBD; On-Board Diagnostics), various techniques for improving the reliability of failure diagnosis information sequentially stored in a non-volatile memory have been proposed.
特許文献1では、同一の故障コード(DTC;Diagnostic Trouble Code)を3つの記憶領域に記憶させておき、データの多数決を採ることで、不揮発性メモリの記憶状態に関する異常を判定する装置が提案されている。
近時、OBD2に対応したエンジンECU(Electronic Control Unit;電子制御装置)が普及しつつある。このECUは、故障コードのみならず、当該故障コードを生成した瞬間のフリーズフレームデータを同時に記憶する。 Recently, engine ECUs (Electronic Control Units) compatible with OBD2 are becoming widespread. This ECU simultaneously stores not only the failure code but also the freeze frame data at the moment when the failure code is generated.
しかしながら、特許文献1で提案された装置では、多数決のために3組の記憶領域を常に用意する必要があるため、2組の場合と比べて、不揮発性メモリの使用容量が50%だけ増加してしまう。この使用容量は、フリーズフレームデータのサイズに概ね比例するため、この問題が顕著に現われる。
However, in the device proposed in
本発明は上記した問題を解決するためになされたものであり、不揮発性メモリの使用容量を減らしつつ、記憶データの信頼性を確保可能な車両情報記憶装置を提供することを目的とする。 The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to provide a vehicle information storage device capable of ensuring the reliability of stored data while reducing the used capacity of the non-volatile memory.
本発明に係る車両情報記憶装置は、車両に搭載され、かつ、前記車両の状態を示す車両情報を記憶する装置であって、第1記憶領域及び第2記憶領域を有する不揮発性メモリと、前記不揮発性メモリに対する記憶制御を行う記憶制御部と、を備え、前記第1記憶領域は、前記車両情報が格納される第1車両情報格納領域と、前記車両情報の記憶状態の妥当性を確認するための冗長情報が格納される第1冗長情報格納領域と、を含み、前記第2記憶領域は、前記車両情報が格納される第2車両情報格納領域と、前記冗長情報が格納される第2冗長情報格納領域と、を含み、前記記憶制御部は、前記車両情報と前記冗長情報を、前記第1記憶領域及び前記第2記憶領域にそれぞれ格納する際に、前記車両情報を前記第1車両情報格納領域に書き込み、前記冗長情報を前記第1冗長情報格納領域に書き込み、前記第1記憶領域への格納が完了した後に、前記車両情報を前記第2車両情報格納領域に書き込み、前記冗長情報を前記第2冗長情報格納領域に書き込む記憶制御を行い、前記車両情報を読み出す際に、前記第1車両情報格納領域に格納されている第1記憶車両情報から算出した第1算出冗長情報と、前記第1冗長情報格納領域に格納されている第1記憶冗長情報とが一致するか否かを判断し、前記第1算出冗長情報と前記第1記憶冗長情報とが一致する場合には前記第1記憶車両情報は最新であると判断する。 The vehicle information storage device according to the present invention is a device that is mounted on a vehicle and stores vehicle information indicating the state of the vehicle, and includes a non-volatile memory having a first storage area and a second storage area, and the above-mentioned. A storage control unit that performs storage control for the non-volatile memory is provided, and the first storage area confirms the validity of the first vehicle information storage area in which the vehicle information is stored and the storage state of the vehicle information. The second storage area includes a first redundant information storage area for storing redundant information for the purpose, a second vehicle information storage area for storing the vehicle information, and a second storage area for storing the redundant information. The storage control unit includes the redundant information storage area, and when the storage control unit stores the vehicle information and the redundant information in the first storage area and the second storage area, respectively, the storage control unit stores the vehicle information in the first vehicle. After writing to the information storage area, writing the redundant information to the first redundant information storage area, and completing the storage in the first storage area, the vehicle information is written to the second vehicle information storage area, and the redundant information is written. Is performed in the second redundant information storage area, and when the vehicle information is read out, the first calculated redundant information calculated from the first stored vehicle information stored in the first vehicle information storage area and the first calculated redundant information. It is determined whether or not the first storage redundant information stored in the first redundant information storage area matches, and if the first calculated redundant information and the first storage redundant information match, the first 1 It is judged that the stored vehicle information is the latest.
このように構成することで、例えば、電力の瞬断によって更新中の情報が消失した場合であっても、現在格納されている車両情報及び冗長情報の組み合わせに基づいて第1記憶領域の更新状況(最新であるか否か)を判別可能となり、その後に必要な対処を施すことで記憶データを適切に復旧することができる。これにより、不揮発性メモリの使用容量を減らしつつ、記憶データの信頼性を確保することができる。 With this configuration, for example, even if the information being updated is lost due to a momentary power interruption, the update status of the first storage area is based on the combination of the currently stored vehicle information and redundant information. (Whether it is the latest or not) can be determined, and the stored data can be appropriately restored by taking necessary measures after that. As a result, the reliability of the stored data can be ensured while reducing the used capacity of the non-volatile memory.
また、前記記憶制御部は、前記車両情報を読み出す際に、前記第1算出冗長情報と前記第1記憶冗長情報とが一致しない場合には、前記第2車両情報格納領域に格納されている第2記憶車両情報から算出した第2算出冗長情報と、前記第2冗長情報格納領域に格納されている第2記憶冗長情報とが一致するか否かを判断し、前記第2算出冗長情報と前記第2記憶冗長情報とが一致する場合には前記第2記憶車両情報は最新であると判断してもよい。 Further, when the storage control unit reads out the vehicle information, if the first calculated redundant information and the first storage redundant information do not match, the storage control unit is stored in the second vehicle information storage area. 2 It is determined whether or not the second calculated redundant information calculated from the stored vehicle information and the second stored redundant information stored in the second redundant information storage area match, and the second calculated redundant information and the said If the second storage redundant information matches, it may be determined that the second storage vehicle information is the latest.
これにより、現在格納されている車両情報及び冗長情報の組み合わせに基づいて第2記憶領域の更新状況(最新であるか否か)を判別可能となり、その後に必要な対処を施すことで記憶データを適切に復旧することができる。 This makes it possible to determine the update status (whether or not it is the latest) of the second storage area based on the combination of the vehicle information and the redundant information currently stored, and then take necessary measures to store the stored data. It can be restored properly.
また、前記記憶制御部は、前記第1記憶車両情報と前記第2記憶車両情報のいずれか一方の記憶車両情報のみが最新であると判断した場合、最新である一方の記憶車両情報に基づいて、他方の記憶車両情報と、該他方の記憶車両情報に対応する他方の冗長情報を更新する記憶制御を行ってもよい。 Further, when the storage control unit determines that only one of the first stored vehicle information and the second stored vehicle information is the latest stored vehicle information, the storage control unit is based on the latest stored vehicle information. , The storage control for updating the other stored vehicle information and the other redundant information corresponding to the other stored vehicle information may be performed.
例えば、第1記憶領域が先行して更新中である状態において、第2記憶領域から車両情報を複製することで直近の記憶状態に戻すことができる。一方、第1記憶領域の更新が先に終了し、かつ第2記憶領域が後行して更新中である状態において、第1記憶領域から車両情報を複製することで最新の記憶状態に移行することができる。 For example, in a state where the first storage area is being updated in advance, it is possible to return to the latest storage state by duplicating the vehicle information from the second storage area. On the other hand, in a state where the update of the first storage area is completed first and the second storage area is being updated later, the vehicle information is duplicated from the first storage area to shift to the latest storage state. be able to.
また、前記記憶制御部は、前記第1記憶車両情報と前記第2記憶車両情報のいずれか一方の記憶車両情報のみが最新であると判断した場合、前記他方の記憶車両情報と前記他方の記憶冗長情報を更新する記憶制御が完了するまでの間、前記更新以外の前記第1記憶領域及び前記第2記憶領域の書き込みを行わないようにしてもよい。記憶データの復旧中に当該更新以外の書き込みを禁止することで、記憶状態に関する異常の発生を防止することができる。 Further, when the storage control unit determines that only one of the first stored vehicle information and the second stored vehicle information is the latest stored vehicle information, the other stored vehicle information and the other stored vehicle information are stored. Until the storage control for updating the redundant information is completed, the first storage area and the second storage area other than the update may not be written. By prohibiting writing other than the update during recovery of the stored data, it is possible to prevent the occurrence of an abnormality related to the storage state.
また、当該車両情報記憶装置は、前記車両のイグニッションスイッチのオフ動作に応じて電力の供給を停止されてもよい。エンジンを切った後のセルフシャットダウン機能を備えていない車両では、揮発性メモリのデータバックアップを取得できないので特に効果的である。 Further, the vehicle information storage device may be stopped from supplying electric power in response to the off operation of the ignition switch of the vehicle. This is especially effective in vehicles that do not have a self-shutdown function after the engine is turned off, as data backups of volatile memory cannot be obtained.
本発明に係る車両情報記憶装置によれば、不揮発性メモリの使用容量を減らしつつ、記憶データの信頼性を確保することができる。 According to the vehicle information storage device according to the present invention, the reliability of the stored data can be ensured while reducing the used capacity of the non-volatile memory.
以下、本発明に係る車両情報記憶装置について好適な実施形態を挙げ、添付の図面を参照しながら説明する。 Hereinafter, a vehicle information storage device according to the present invention will be described with reference to suitable embodiments with reference to the accompanying drawings.
[車両故障診断システム10の構成]
図1は、本発明の一実施形態における車両情報記憶装置が組み込まれた車両故障診断システム10の全体構成図である。車両故障診断システム10は、図示しない車両(例えば、二輪車又は四輪車)に搭載され、かつ、この車両の自己診断機能を有するシステムである。この車両故障診断システム10は、車両情報記憶装置としてのエンジンECU12と、センサ群14と、エンジン16と、電源18と、を含んで構成される。
[Configuration of vehicle failure diagnosis system 10]
FIG. 1 is an overall configuration diagram of a vehicle
センサ群14は、車両の状態を検出可能な1つ又は複数のセンサから構成される。センサの種類として、例えば、水温センサ、油温センサ、車速センサ、クランク角センサ、吸気圧センサ、大気圧センサ、スロットル開度センサ、O2センサが挙げられる。
The
電源18は、車両の各部(エンジンECU12を含む)に対して電力を供給する。ここでは、電源18は、イグニッションスイッチ20のオン・オフに連動して、エンジンECU12に対して電力を供給し、又はその供給を停止する。
The power supply 18 supplies electric power to each part of the vehicle (including the engine ECU 12). Here, the power supply 18 supplies electric power to the engine ECU 12 or stops the supply in conjunction with the on / off of the
エンジンECU12は、車両の駆動源であるエンジン16の運転制御を行い、必要に応じて車両の状態を示す情報(以下、車両情報Iv)を取得し保存する。具体的には、エンジンECU12は、演算処理装置22と、不揮発性メモリ24と、揮発性メモリ26と、を含んで構成される。
The engine ECU 12 controls the operation of the
演算処理装置22は、例えば、CPU(Central Processing Unit)又はMPU(Micro-Processing Unit)から構成される。演算処理装置22は、図示しないROM(Read Only Memory)からプログラムを読み出し実行することで、不揮発性メモリ24及び揮発性メモリ26に対する記憶制御を行う記憶制御部28として機能する。
The
不揮発性メモリ24は、電力を供給しなくても記憶データを保持可能なメモリであり、例えば、EEPROM(Electrically Erasable Programmable Read-Only Memory)、フラッシュメモリから構成される。
The
不揮発性メモリ24は、上記した車両情報Ivの他、車両情報Ivの記憶状態の妥当性を確認するための情報(以下、冗長情報Ir)を記憶可能である。この不揮発性メモリ24は、領域サイズが等しい2つの記憶領域(以下、第1記憶領域30、第2記憶領域32)を有する。
In addition to the vehicle information Iv described above, the
第1記憶領域30は、1又は3以上の奇数個分(ここでは、3つ)の冗長情報Ir1が格納される第1冗長情報格納領域30rと、M組(M≧1)の車両情報Iv1が格納される第1車両情報格納領域30vと、を含む。第2記憶領域32は、1又は3以上の奇数個分(ここでは、3つ)の冗長情報Ir2が格納される第2冗長情報格納領域32rと、M組(M≧1)の車両情報Iv2が格納される第2車両情報格納領域32vと、を含む。
The
ここで、冗長情報Ir1は車両情報Iv1に対応する情報であり、冗長情報Ir2は車両情報Iv2に対応する情報である。この冗長情報Ir1、Ir2は、例えば、チェックサム、CRC(Cyclic Redundancy Check)、ハッシュ値であってもよい。また、車両情報Iv1、Iv2は、例えば、故障コード(DTC)及びフリーズフレームデータ(センサ値の時系列)の1セット分の情報に相当する。 Here, the redundant information Ir1 is information corresponding to the vehicle information Iv1, and the redundant information Ir2 is information corresponding to the vehicle information Iv2. The redundant information Ir1 and Ir2 may be, for example, a checksum, a CRC (Cyclic Redundancy Check), and a hash value. Further, the vehicle information Iv1 and Iv2 correspond to, for example, one set of information of a failure code (DTC) and freeze frame data (time series of sensor values).
揮発性メモリ26は、電力が供給された状態下にのみ記憶データを保持可能なメモリであり、例えば、DRAM(Dynamic Random Access Memory)又はSRAM(Static Random Access Memory)から構成される。この揮発性メモリ26には、記憶制御に必要な情報(例えば、最新の車両情報Iv)が一時的に格納される。
The
[エンジンECU12の動作]
車両情報記憶装置としてのエンジンECU12は、以上のように構成される。続いて、エンジンECU12(特に、記憶制御部28)の動作について、図2及び図3を参照しながら詳細に説明する。
[Operation of engine ECU 12]
The
図2は、図1に示す不揮発性メモリ24の記憶状態に関する遷移図である。より詳しくは、本図は、第1記憶領域30及び第2記憶領域32の格納値が、複数の処理ステップ(ステップS0〜S7)にわたり変化する状態を示す。なお、格納値の更新があった箇所(格納領域)を太線の矩形枠によって表記している。
FIG. 2 is a transition diagram relating to the storage state of the
ステップS0は、5回目の書き換えが正常に行われた記憶状態に相当する。この場合、第1記憶領域30の冗長情報Ir1(5回目の車両情報Iv1に対応)は、第2記憶領域32の冗長情報Ir2(5回目の車両情報Iv2に対応)に等しい。以下、n回目の車両情報Iv1(Iv2)に対応する冗長情報Ir1(Ir2)を「#n」と表記する場合がある。 Step S0 corresponds to the storage state in which the fifth rewriting is normally performed. In this case, the redundant information Ir1 of the first storage area 30 (corresponding to the fifth vehicle information Iv1) is equal to the redundant information Ir2 of the second storage area 32 (corresponding to the fifth vehicle information Iv2). Hereinafter, the redundant information Ir1 (Ir2) corresponding to the nth vehicle information Iv1 (Iv2) may be referred to as "#n".
また、第1記憶領域30の車両情報Iv1は、第2記憶領域32の車両情報Iv2とすべて一致する。その後、記憶制御部28は、センサ群14からの最新の車両情報Ivを揮発性メモリ26に一時的に記憶させる制御を行う。
Further, the vehicle information Iv1 in the
ステップS1において、記憶制御部28は、一時的に記憶された車両情報Ivを揮発性メモリ26から読み出し、不揮発性メモリ24の第1記憶領域30に書き込む記憶制御を行う。これにより、第1車両情報格納領域30vの格納値(車両情報Iv1)が、「5回目の情報」から「6回目の情報」に更新される。
In step S1, the
ステップS2において、記憶制御部28は、第1車両情報格納領域30vに格納されている1組以上の車両情報Iv1を用いて、この車両情報Iv1に対応する冗長情報Ir1を生成する。
In step S2, the
ステップS3において、記憶制御部28は、生成された冗長情報Ir1を不揮発性メモリ24の第1記憶領域30に書き込む記憶制御を行う。これにより、各々の第1冗長情報格納領域30rの格納値(Ir1)が、「#5」から「#6」に更新される。
In step S3, the
このように、記憶制御部28は、車両情報Iv1を第1車両情報格納領域30vに書き込んだ後、この車両情報Iv1に対応する冗長情報Ir1を第1冗長情報格納領域30rに書き込む記憶制御を順次行う(ステップS1、S3)。
In this way, the
ステップS4において、記憶制御部28は、一時的に記憶された車両情報Ivを揮発性メモリ26から読み出し、不揮発性メモリ24の第2記憶領域32に書き込む記憶制御を行う。これにより、第2車両情報格納領域32vの格納値(車両情報Iv2)が、「5回目の情報」から「6回目の情報」に更新される。
In step S4, the
ステップS5において、記憶制御部28は、第2車両情報格納領域32vに格納されている1組以上の車両情報Iv2を用いて、この車両情報Iv2に対応する冗長情報Ir2を生成する。
In step S5, the
ステップS6において、記憶制御部28は、生成された冗長情報Ir2を不揮発性メモリ24の第2記憶領域32に書き込む記憶制御を行う。これにより、各々の第2冗長情報格納領域32rの格納値(Ir2)が、「#5」から「#6」に更新される。
In step S6, the
このように、記憶制御部28は、車両情報Iv2を第2車両情報格納領域32vに書き込んだ後、この車両情報Iv2に対応する冗長情報Ir2を第2冗長情報格納領域32rに書き込む記憶制御を順次行う(ステップS4、S6)。
In this way, the
ステップS7は、6回目の書き換えが正常に行われた記憶状態に相当する。この場合、第1記憶領域30の冗長情報Ir1(6回目の車両情報Iv1に対応)は、第2記憶領域32の冗長情報Ir2(6回目の車両情報Iv2に対応)に等しい。また、第1記憶領域30の車両情報Iv1は、第2記憶領域32の車両情報Iv2とすべて一致する。
Step S7 corresponds to the storage state in which the sixth rewriting is normally performed. In this case, the redundant information Ir1 of the first storage area 30 (corresponding to the sixth vehicle information Iv1) is equal to the redundant information Ir2 of the second storage area 32 (corresponding to the sixth vehicle information Iv2). Further, the vehicle information Iv1 in the
図3は、各々の区間における記憶制御の特徴を模式的に示す図である。より詳しくは、本図は、状態チェック処理を実行した場合における、処理フェーズ毎の記憶制御の挙動(イベント及び結果)を示す。この処理フェーズは、図2に示す7個の区間(第1〜第7区間)により分類される。 FIG. 3 is a diagram schematically showing the characteristics of memory control in each section. More specifically, this figure shows the behavior (events and results) of the memory control for each processing phase when the state check processing is executed. This processing phase is classified into seven sections (first to seventh sections) shown in FIG.
ここで、「状態チェック」とは、不揮発性メモリ24の記憶状態に対する確認処理であり、具体的には、車両情報Iv1、Iv2が最新の車両情報Ivであるか否かについて確認することを意味する。この処理は、3つの判断工程から構成される。
Here, the "state check" is a confirmation process for the storage state of the
第1工程として、記憶制御部28は、第1車両情報格納領域30vから読み出した車両情報Iv1を用いて冗長情報Ir1を算出し、得られた冗長情報(第1算出冗長情報)が第1冗長情報格納領域30rの格納値(第1記憶冗長情報)と一致するか否かを判断する。
As the first step, the
冗長情報Ir1の一致性がある場合に車両情報Iv1の記憶状態は妥当である旨の判断がなされ、冗長情報Ir1の一致性がない場合に車両情報Iv1の記憶状態は妥当でない旨の判断がなされる。なお、車両情報Iv1の記憶状態が妥当ではない場合には、車両情報Iv2が最新である旨の判断がなされる。 It is determined that the storage state of the vehicle information Iv1 is appropriate when the redundant information Ir1 is consistent, and it is determined that the storage state of the vehicle information Iv1 is not valid when the redundant information Ir1 is not consistent. NS. If the storage state of the vehicle information Iv1 is not appropriate, it is determined that the vehicle information Iv2 is the latest.
第2工程として、記憶制御部28は、第2車両情報格納領域32vから読み出した車両情報Iv2を用いて冗長情報Ir2を算出し、得られた冗長情報(第2算出冗長情報)が第2冗長情報格納領域32rの格納値(第2記憶冗長情報)と一致するか否かを判断する。
As the second step, the
冗長情報Ir2の一致性がある場合に車両情報Iv2の記憶状態は妥当である旨の判断がなされ、冗長情報Ir2の一致性がない場合に車両情報Iv2の記憶状態は妥当でない旨の判断がなされる。なお、車両情報Iv2の記憶状態が妥当ではない場合には、車両情報Iv1が最新である旨の判断がなされる。 When there is consistency in the redundant information Ir2, it is determined that the storage state of the vehicle information Iv2 is appropriate, and when there is no consistency in the redundant information Ir2, it is determined that the storage state of the vehicle information Iv2 is not valid. NS. If the storage state of the vehicle information Iv2 is not appropriate, it is determined that the vehicle information Iv1 is the latest.
ところで、第1冗長情報格納領域30rに複数の冗長情報Ir1が格納されている場合は、多数決(最頻値)により格納値を決定してもよい。同様に、第2冗長情報格納領域32rに複数の冗長情報Ir2が格納されている場合は、多数決(最頻値)により格納値を決定してもよい。
By the way, when a plurality of redundant information Ir1s are stored in the first redundant
第3工程として、冗長情報Ir1、Ir2の両方に一致性があった場合に限り、記憶制御部28は、冗長情報Ir1と、冗長情報Ir2とが一致するか否かを判断する。両者の一致性がある場合に両方の車両情報Iv1、Iv2は最新である旨の判断がなされ、両者の一致性がない場合に一方の車両情報Iv1のみ最新である旨の判断がなされる。
As the third step, the
なお、記憶制御部28は、この状態チェック処理を不定期に実行してもよいし、定期的に実行してもよい。不定期の例としては、[1]不揮発性メモリ24の読み出し要求時、[2]イグニッションスイッチ20のオン動作の直後、或いは[3]図2に示す一連の動作の終了時点から所定時間が経過した時、が挙げられる。
The
第1区間では、冗長情報Ir1、Ir2を用いたチェックにより、車両情報Iv1、Iv2はいずれも妥当である旨(YES)の判断がなされると共に、冗長情報Ir1、Ir2は一致する(YES)。その結果、車両情報Iv1、Iv2はいずれも最新である旨の判断がなされる。この場合、記憶制御部28は、不揮発性メモリ24に対して特別な処理を行わない。つまり、不揮発性メモリ24は、5回目の車両情報Iv1、Iv2を記憶した状態(データ同期が保たれた状態)を維持する。
In the first section, the check using the redundant information Ir1 and Ir2 determines that the vehicle information Iv1 and Iv2 are all valid (YES), and the redundant information Ir1 and Ir2 match (YES). As a result, it is determined that the vehicle information Iv1 and Iv2 are both up-to-date. In this case, the
第2、第3区間では、冗長情報Ir1を用いたチェックにより車両情報Iv1が妥当でない一方(NO)、冗長情報Ir2を用いたチェックにより車両情報Iv2が妥当である旨(YES)の判断がなされる。つまり、第1記憶領域30が先行して更新中である状態において、第2記憶領域32から少なくとも車両情報Iv2を複製することで直近の記憶状態に戻すことができる。
In the second and third sections, the check using the redundant information Ir1 determines that the vehicle information Iv1 is not valid (NO), while the check using the redundant information Ir2 determines that the vehicle information Iv2 is valid (YES). NS. That is, in the state where the
この場合、記憶制御部28は、[1](Ir1←Ir2)第2冗長情報格納領域32rの冗長情報Ir2を複製して第1冗長情報格納領域30rに格納すると共に、[2](Iv1←Iv2)第2車両情報格納領域32vの車両情報Iv2を複製して第1車両情報格納領域30vに格納する記憶制御を行う。なお、冗長情報Ir2の複製に代わって、複製後の車両情報Iv1を用いて新たに生成された冗長情報Ir1を第1冗長情報格納領域30rに格納してもよい。
In this case, the
その結果、不揮発性メモリ24は、5回目の車両情報Iv1、Iv2を記憶した状態(つまり、データ同期が保たれた状態)に戻る。
As a result, the
なお、記憶制御部28は、車両情報Iv2及び冗長情報Ir2を更新する記憶制御が完了するまでの間、この更新以外での第1記憶領域30及び第2記憶領域32の書き込みを行わない。記憶データの復旧中にこの更新以外の書き込みを禁止することで、記憶状態に関する異常の発生を防止することができる。
The
第4区間では、冗長情報Ir1、Ir2を用いたチェックにより、車両情報Iv1、Iv2はいずれも妥当である旨(YES)の判断がなされる一方、冗長情報Ir1、Ir2は一致しない(NO)。つまり、第1記憶領域30が更新後であり、かつ、第2記憶領域32が更新前である状態において、第1記憶領域30から少なくとも車両情報Iv1を複製することで最新の記憶状態に移行することができる。
In the fourth section, the check using the redundant information Ir1 and Ir2 determines that the vehicle information Iv1 and Iv2 are both valid (YES), while the redundant information Ir1 and Ir2 do not match (NO). That is, in a state where the
この場合、記憶制御部28は、[1](Ir2←Ir1)第1冗長情報格納領域30rの冗長情報Ir1を複製して第2冗長情報格納領域32rに格納すると共に、[2](Iv2←Iv1)第1車両情報格納領域30vの車両情報Iv1を複製して第2車両情報格納領域32vに格納する記憶制御を行う。
In this case, the
第2、第3区間の場合と同様に、記憶制御部28は、車両情報Iv1及び冗長情報Ir1を更新する記憶制御が完了するまでの間、この更新以外での第1記憶領域30及び第2記憶領域32の書き込みを行わない。その結果、不揮発性メモリ24は、6回目の車両情報Iv1、Iv2を記憶した状態(つまり、データ同期が保たれた状態)に移行する。
As in the case of the second and third sections, the
第5、第6区間では、冗長情報Ir1を用いたチェックにより車両情報Iv1が妥当である一方(YES)、冗長情報Ir2を用いたチェックにより車両情報Iv2が妥当ではない旨(NO)の判断がなされるので、車両情報Iv1のみが最新である旨の判断がなされる。つまり、第1記憶領域30の更新が先に終了し、かつ、第2記憶領域32が後行して更新中である状態において、第1記憶領域30から少なくとも車両情報Iv1を複製することで最新の記憶状態に移行することができる。
In the 5th and 6th sections, it is determined that the vehicle information Iv1 is valid by the check using the redundant information Ir1 (YES), while the vehicle information Iv2 is not valid by the check using the redundant information Ir2 (NO). Therefore, it is determined that only the vehicle information Iv1 is the latest. That is, in a state where the update of the
この場合、記憶制御部28は、[1](Ir2←Ir1)第1冗長情報格納領域30rの冗長情報Ir1を複製し、第2冗長情報格納領域32rに格納すると共に、[2](Iv2←Iv1)第1車両情報格納領域30vの車両情報Iv1を複製し、第2車両情報格納領域32vに格納する記憶制御を行う。
In this case, the
第4区間の場合と同様に、記憶制御部28は、車両情報Iv1及び冗長情報Ir1を更新する記憶制御が完了するまでの間、この更新以外での第1記憶領域30及び第2記憶領域32の書き込みを行わないようにする。その結果、不揮発性メモリ24は、6回目の車両情報Iv1、Iv2を記憶した状態(つまり、データ同期が保たれた状態)に移行する。
As in the case of the fourth section, the
第7区間では、冗長情報Ir1、Ir2を用いたチェックにより、車両情報Iv1、Iv2はいずれも最新である旨(YES)の判断がなされると共に、冗長情報Ir1、Ir2は一致する(YES)。この場合、記憶制御部28は、不揮発性メモリ24に対して特別な処理を行わない。つまり、不揮発性メモリ24は、6回目の車両情報Iv1、Iv2を記憶した状態(データ同期が保たれた状態)を維持する。
In the seventh section, the check using the redundant information Ir1 and Ir2 determines that the vehicle information Iv1 and Iv2 are all up-to-date (YES), and the redundant information Ir1 and Ir2 match (YES). In this case, the
[エンジンECU12(車両情報記憶装置)による効果]
以上のように、エンジンECU12は、車両に搭載され、かつ、車両の状態を示す車両情報Iv1、Iv2を記憶し、[1]第1記憶領域30及び第2記憶領域32を有する不揮発性メモリ24と、[2]不揮発性メモリ24に対する記憶制御を行う記憶制御部28と、を備え、[3]第1記憶領域30は、車両情報Iv1が格納される第1車両情報格納領域30vと、車両情報Iv1の記憶状態の妥当性を確認するための冗長情報Ir1が格納される第1冗長情報格納領域30rと、を含み、[4]第2記憶領域32は、車両情報Iv2が格納される第2車両情報格納領域32vと、車両情報Iv2の記憶状態の妥当性を確認するための冗長情報Ir2が格納される第2冗長情報格納領域32rと、を含む。
[Effect of engine ECU 12 (vehicle information storage device)]
As described above, the
[5]記憶制御部28は、車両情報Ivと冗長情報Irを、第1記憶領域30及び第2記憶領域32にそれぞれ格納する際に、(5a)車両情報Ivを第1車両情報格納領域30vに書き込み、冗長情報Irを第1冗長情報格納領域30rに書き込み、(5b)第1記憶領域30への格納が完了した後に、車両情報Ivを第2車両情報格納領域32vに書き込み、冗長情報Irを第2冗長情報格納領域32rに書き込む記憶制御を行う。
[5] When the
[6]記憶制御部28は、車両情報Ivを読み出す際に、(6a)第1車両情報格納領域30vに格納されている第1記憶車両情報(Iv1)から算出した第1算出冗長情報と、第1冗長情報格納領域30rに格納されている第1記憶冗長情報(Ir1)とが一致するか否かを判断し、(6b)第1算出冗長情報と第1記憶冗長情報とが一致する場合には第1記憶車両情報(Iv1)は最新であると判断する。
[6] When the
このように構成することで、例えば、電力の瞬断によって更新中の情報が消失した場合であっても、現在格納されている車両情報Iv1及び冗長情報Ir1の組み合わせに基づいて第1記憶領域30の更新状況(最新であるか否か)を判別可能となり、その後に必要な対処を施すことで記憶データを適切に復旧することができる。これにより、不揮発性メモリ24の使用容量を減らしつつ、記憶データの信頼性を確保することができる。
With this configuration, for example, even if the information being updated is lost due to a momentary power interruption, the
また、[7]記憶制御部28は、車両情報Ivを読み出す際に、(7a)第1算出冗長情報と第1記憶冗長情報とが一致しない場合には、第2車両情報格納領域32vに格納されている第2記憶車両情報(Iv2)から算出した第2算出冗長情報と、第2冗長情報格納領域32rに格納されている第2記憶冗長情報(Ir2)とが一致するか否かを判断し、(7b)第2算出冗長情報と第2記憶冗長情報とが一致する場合には第2記憶車両情報(Iv2)は最新であると判断してもよい。
Further, when the [7]
これにより、現在格納されている車両情報Iv2及び冗長情報Ir2の組み合わせに基づいて第2記憶領域32の更新状況(最新であるか否か)を判別可能となり、その後に必要な対処を施すことで記憶データを適切に復旧することができる。
This makes it possible to determine the update status (whether or not it is the latest) of the
また、記憶制御部28は、第1記憶車両情報と第2記憶車両情報のいずれか一方の記憶車両情報のみが最新であると判断した場合、最新である一方の記憶車両情報に基づいて、他方の記憶車両情報と、該他方の記憶車両情報に対応する他方の冗長情報を更新する記憶制御を行ってもよい。
Further, when the
例えば、第1記憶領域30が先行して更新中である状態において、第2記憶領域32から車両情報Iv2を複製することで直近の記憶状態に戻すことができる。一方、第1記憶領域30の更新が先に終了し、かつ第2記憶領域32が後行して更新中である状態において、第1記憶領域30から車両情報Iv1を複製することで最新の記憶状態に移行することができる。
For example, in a state where the
また、記憶制御部28は、第1記憶車両情報と第2記憶車両情報のいずれか一方の記憶車両情報のみが最新であると判断した場合、他方の記憶車両情報と他方の記憶冗長情報を更新する記憶制御が完了するまでの間、この更新以外での第1記憶領域30及び第2記憶領域32の書き込みを行わないようにしてもよい。記憶データの復旧中に当該更新以外の書き込みを禁止することで、記憶状態に関する異常の発生を防止することができる。
Further, when the
また、車両のイグニッションスイッチ20のオフ動作に応じて、電力の供給が停止されるエンジンECU12に適用することがより好ましい。エンジン16を切った後のセルフシャットダウン機能を備えていない車両では、揮発性メモリ26のデータバックアップを取得できないので特に効果的である。
Further, it is more preferable to apply it to the
[補足]
なお、この発明は、上述した実施形態に限定されるものではなく、この発明の主旨を逸脱しない範囲で自由に変更できることは勿論である。或いは、技術的に矛盾が生じない範囲で各々の構成を任意に組み合わせてもよい。
[supplement]
It should be noted that the present invention is not limited to the above-described embodiment, and of course, it can be freely changed without departing from the gist of the present invention. Alternatively, each configuration may be arbitrarily combined as long as there is no technical contradiction.
10…車両故障診断システム 12…エンジンECU(車両情報記憶装置)
14…センサ群 16…エンジン
18…電源 20…イグニッションスイッチ
22…演算処理装置 24…不揮発性メモリ
26…揮発性メモリ 28…記憶制御部
30…第1記憶領域 30r…第1冗長情報格納領域
30v…第1車両情報格納領域 32…第2記憶領域
32r…第2冗長情報格納領域 32v…第2車両情報格納領域
Ir、Ir1、Ir2…冗長情報 Iv、Iv1、Iv2…車両情報
10 ... Vehicle
14 ...
Claims (5)
第1記憶領域及び第2記憶領域を有する不揮発性メモリと、
前記不揮発性メモリに対する記憶制御を行う記憶制御部と、
を備え、
前記第1記憶領域は、前記車両情報が格納される第1車両情報格納領域と、前記車両情報の記憶状態の妥当性を確認するための冗長情報が格納される第1冗長情報格納領域と、を含み、
前記第2記憶領域は、前記車両情報が格納される第2車両情報格納領域と、前記冗長情報が格納される第2冗長情報格納領域と、を含み、
前記記憶制御部は、
前記車両情報と前記冗長情報を、前記第1記憶領域及び前記第2記憶領域にそれぞれ格納する際に、
前記車両情報を前記第1車両情報格納領域に書き込み、前記冗長情報を前記第1冗長情報格納領域に書き込み、
前記第1記憶領域への格納が完了した後に、前記車両情報を前記第2車両情報格納領域に書き込み、前記冗長情報を前記第2冗長情報格納領域に書き込む記憶制御を行い、
前記車両情報を読み出す際に、
前記第1車両情報格納領域に格納されている第1記憶車両情報から算出した第1算出冗長情報と、前記第1冗長情報格納領域に格納されている第1記憶冗長情報とが一致するか否かを判断し、
前記第1算出冗長情報と前記第1記憶冗長情報とが一致する場合には前記第1記憶車両情報は最新であると判断し、
前記第2車両情報格納領域に格納されている第2記憶車両情報から算出した第2算出冗長情報と、前記第2冗長情報格納領域に格納されている第2記憶冗長情報とが一致するか否かを判断し、
前記第1算出冗長情報と前記第1記憶冗長情報とが一致するか否かの判断結果と、前記第2算出冗長情報と前記第2記憶冗長情報とが一致するか否かの判断結果とに基づいて、前記車両情報と前記冗長情報とを前記不揮発性メモリに書き込む処理がどこまで進行したのかを判断する
ことを特徴とする車両情報記憶装置。 A vehicle information storage device that is mounted on a vehicle and stores vehicle information indicating the state of the vehicle.
A non-volatile memory having a first storage area and a second storage area,
A memory control unit that controls storage of the non-volatile memory,
With
The first storage area includes a first vehicle information storage area in which the vehicle information is stored, a first redundant information storage area in which redundant information for confirming the validity of the storage state of the vehicle information is stored, and the like. Including
The second storage area includes a second vehicle information storage area in which the vehicle information is stored and a second redundant information storage area in which the redundant information is stored.
The memory control unit
When the vehicle information and the redundant information are stored in the first storage area and the second storage area, respectively,
The vehicle information is written in the first vehicle information storage area, and the redundant information is written in the first redundant information storage area.
After the storage in the first storage area is completed, the storage control of writing the vehicle information to the second vehicle information storage area and writing the redundant information to the second redundant information storage area is performed.
When reading the vehicle information
Whether or not the first calculated redundant information calculated from the first stored vehicle information stored in the first vehicle information storage area matches the first storage redundant information stored in the first redundant information storage area. Judge and
When the first calculated redundant information and the first storage redundant information match, it is determined that the first stored vehicle information is the latest .
Whether or not the second calculated redundant information calculated from the second storage vehicle information stored in the second vehicle information storage area matches the second storage redundant information stored in the second redundant information storage area. Judge and
The determination result of whether or not the first calculated redundant information and the first storage redundant information match, and the determination result of whether or not the second calculated redundant information and the second storage redundant information match are used. Based on this, a vehicle information storage device for determining how far the process of writing the vehicle information and the redundant information to the non-volatile memory has progressed.
前記記憶制御部は、
前記車両情報を読み出す際に、前記第1算出冗長情報と前記第1記憶冗長情報とが一致せず、
前記第2算出冗長情報と前記第2記憶冗長情報とが一致する場合には、前記第2記憶車両情報は最新であると判断する
ことを特徴とする車両情報記憶装置。 In the vehicle information storage device according to claim 1,
The memory control unit
When reading the vehicle information, the first calculated redundant information and the first storage redundant information do not match.
The second when the calculated redundant information and the second storage redundant information matches, the vehicle information storage device, characterized by determining that the second storage vehicle information is the latest.
前記記憶制御部は、
前記第1記憶車両情報と前記第2記憶車両情報のいずれか一方の記憶車両情報のみが最新であると判断した場合、
最新である一方の記憶車両情報に基づいて、他方の記憶車両情報と、該他方の記憶車両情報に対応する他方の冗長情報を更新する記憶制御を行う
ことを特徴とする車両情報記憶装置。 In the vehicle information storage device according to claim 2.
The memory control unit
When it is determined that only the stored vehicle information of either the first stored vehicle information or the second stored vehicle information is the latest.
A vehicle information storage device characterized by performing storage control for updating the other stored vehicle information and the other redundant information corresponding to the other stored vehicle information based on one of the latest stored vehicle information.
前記記憶制御部は、
前記第1記憶車両情報と前記第2記憶車両情報のいずれか一方の記憶車両情報のみが最新であると判断した場合、
前記他方の記憶車両情報と前記他方の記憶冗長情報を更新する記憶制御が完了するまでの間、前記更新以外での前記第1記憶領域及び前記第2記憶領域の書き込みを行わない
ことを特徴とする車両情報記憶装置。 In the vehicle information storage device according to claim 3,
The memory control unit
When it is determined that only the stored vehicle information of either the first stored vehicle information or the second stored vehicle information is the latest.
Until the storage control for updating the other storage vehicle information and the other storage redundant information is completed, the first storage area and the second storage area are not written except for the update. Vehicle information storage device.
前記車両のイグニッションスイッチのオフ動作に応じて電力の供給が停止されることを特徴とする車両情報記憶装置。 In the vehicle information storage device according to any one of claims 1 to 4.
A vehicle information storage device characterized in that the supply of electric power is stopped in response to an off operation of the ignition switch of the vehicle.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017165492A JP6956566B2 (en) | 2017-08-30 | 2017-08-30 | Vehicle information storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017165492A JP6956566B2 (en) | 2017-08-30 | 2017-08-30 | Vehicle information storage device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2019045952A JP2019045952A (en) | 2019-03-22 |
JP6956566B2 true JP6956566B2 (en) | 2021-11-02 |
Family
ID=65814372
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017165492A Active JP6956566B2 (en) | 2017-08-30 | 2017-08-30 | Vehicle information storage device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6956566B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114328497A (en) * | 2022-03-11 | 2022-04-12 | 深圳中科智能技术有限公司 | Redundant data processing method, system, computer equipment and storage medium |
EP4421641A4 (en) * | 2022-12-29 | 2025-03-12 | Rtst Co Ltd | DUAL STORAGE DEVICE FOR AUTONOMOUS VEHICLES |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4543317B2 (en) * | 2004-12-07 | 2010-09-15 | 株式会社デンソー | Nonvolatile memory data control method |
JP2011118682A (en) * | 2009-12-03 | 2011-06-16 | Honda Motor Co Ltd | Onboard control device |
JP5915490B2 (en) * | 2012-10-05 | 2016-05-11 | 株式会社デンソー | Electronic control unit |
-
2017
- 2017-08-30 JP JP2017165492A patent/JP6956566B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2019045952A (en) | 2019-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4803168B2 (en) | Vehicle information storage device | |
JP2009067298A (en) | Vehicular memory management apparatus | |
JP4475320B2 (en) | Vehicle memory management device | |
JP4636118B2 (en) | Electronic device and program | |
CN102016536B (en) | Vehicle console device | |
JP6956566B2 (en) | Vehicle information storage device | |
JP6663371B2 (en) | Electronic control unit | |
US11314634B2 (en) | Electronic control unit and data protection method therefor | |
JP4600510B2 (en) | Control device and program | |
JP6975581B2 (en) | Vehicle information storage device | |
JPH11141391A (en) | Automotive control device | |
JP7029366B2 (en) | Electronic control device for automobiles | |
JP3960212B2 (en) | Electronic control unit | |
JPH09161493A (en) | Management method for rewritable nonvolatile memory | |
JP6381490B2 (en) | In-vehicle electronic control unit | |
EP2045779B1 (en) | Vehicular control apparatus and program storage medium | |
JP5129791B2 (en) | Vehicle control device | |
JPH08153397A (en) | Eeprom data rewrite controller | |
JP4760103B2 (en) | Vehicle information backup device | |
JP4353126B2 (en) | Vehicle state determination device | |
JP5803847B2 (en) | Electronic control unit | |
JP2019094889A (en) | On-vehicle control device | |
JP2005053266A (en) | Vehicle control device with self-diagnosis backup function | |
JP2008077135A (en) | Arithmetic processing device and counter value operation method | |
JP2011118682A (en) | Onboard control device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20200702 |
|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20210226 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20210408 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20210629 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20210630 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210825 |
|
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: 20210921 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20211005 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6956566 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |