JP6975581B2 - Vehicle information storage device - Google Patents
Vehicle information storage device Download PDFInfo
- Publication number
- JP6975581B2 JP6975581B2 JP2017165456A JP2017165456A JP6975581B2 JP 6975581 B2 JP6975581 B2 JP 6975581B2 JP 2017165456 A JP2017165456 A JP 2017165456A JP 2017165456 A JP2017165456 A JP 2017165456A JP 6975581 B2 JP6975581 B2 JP 6975581B2
- Authority
- JP
- Japan
- Prior art keywords
- storage area
- vehicle information
- information storage
- volatile memory
- count
- 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
- 230000004044 response Effects 0.000 claims 1
- 238000003745 diagnosis Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 238000000034 method Methods 0.000 description 4
- 230000005856 abnormality Effects 0.000 description 3
- 230000003362 replicative effect Effects 0.000 description 3
- 238000011084 recovery Methods 0.000 description 2
- 238000004092 self-diagnosis Methods 0.000 description 2
- 230000007704 transition Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 238000012790 confirmation Methods 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 mounted on a vehicle and storing 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, with respect to a 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情報格納領域の書換回数を示す第1書換回数が格納される第1回数格納領域と、を含み、前記第2記憶領域は、前記車両情報が格納される第2情報格納領域と、前記第2情報格納領域の書換回数を示す第2書換回数が格納される第2回数格納領域と、を含み、前記記憶制御部は、前記第1情報格納領域の更新を開始する前に、前記最新の車両情報と、前記第1回数格納領域から読み出した前記第1書換回数とを前記揮発性メモリに書き込み、かつ、前記第1書換回数のカウントに使用しない不使用値を前記第1回数格納領域に書き込み、前記第1情報格納領域の更新を開始する前に前記揮発性メモリに書き込まれた前記最新の車両情報に基づいて前記第1情報格納領域を更新した後に、前記揮発性メモリから読み出した前記第1書換回数をカウント更新し、かつ、更新された前記第1書換回数を前記第1回数格納領域に書き込む記憶制御を行い、前記第2情報格納領域の更新を開始する前に、前記第2回数格納領域から読み出した前記第2書換回数を前記揮発性メモリに書き込み、かつ、前記第2書換回数のカウントに使用しない不使用値を前記第2回数格納領域に書き込み、前記第1情報格納領域の更新を開始する前に前記揮発性メモリに書き込まれた前記最新の車両情報に基づいて前記第2情報格納領域を更新した後に、前記揮発性メモリから読み出した前記第2書換回数をカウント更新し、かつ、更新された前記第2書換回数を前記第2回数格納領域に書き込む記憶制御を行う。 The vehicle information storage device according to the present invention is a vehicle information storage device mounted on a vehicle and storing vehicle information indicating the state of the vehicle, and is a non-volatile memory having a first storage area and a second storage area. A volatile memory that temporarily stores the number of times the vehicle information is rewritten and the latest vehicle information, and a storage control unit that controls the storage of the non-volatile memory and the volatile memory. The 1 storage area includes a first information storage area in which the vehicle information is stored, and a first number storage area in which the first rewrite number indicating the number of rewrites of the first information storage area is stored. The 2 storage area includes a second information storage area in which the vehicle information is stored, and a second number storage area in which the second rewrite count indicating the number of rewrites of the second information storage area is stored. control unit, before starting the updating of the first information storage area, writing said latest vehicle information, and said first rewrite count read from the first count storage area in the volatile memory, and, The unused value not used for counting the first rewrite count is written in the first storage area, and the latest vehicle information written in the volatile memory before starting the update of the first information storage area is used. after was further new said first information storage area on the basis of, the volatile said first number of times of rewriting count update read from the memory, and the updated first number of times of rewriting in the first count storage area Before the writing storage control is performed and the update of the second information storage area is started, the second rewriting count read from the second information storage area is written to the volatile memory, and the second rewriting count is reached. The second information based on the latest vehicle information written in the volatile memory before starting the update of the first information storage area by writing the unused value not used for counting to the second number storage area. after was further new storage area, the volatile said second number of times of rewriting count update read from the memory, and performs the storage control to write the updated second number of times of rewriting in the second count storage area.
このように構成することで、例えば、電力の瞬断によって揮発性メモリに一時的に記憶された情報が消失した場合であっても、現在格納されている2つの書換回数の数値関係(単独値又は相対値)に基づいて第1記憶領域及び第2記憶領域の更新状況を判別可能となり、その後に必要な対処を施すことで記憶データを適切に復旧することができる。これにより、不揮発性メモリの使用容量を減らしつつ、記憶データの信頼性を確保することができる。 With this configuration, for example, even if the information temporarily stored in the volatile memory is lost due to a momentary power interruption, the numerical relationship between the two currently stored rewrites (single value). Alternatively, the update status of the first storage area and the second storage area can be determined based on the relative value), and the stored data can be appropriately restored by taking necessary measures thereafter. As a result, the reliability of the stored data can be ensured while reducing the used capacity of the non-volatile memory.
また、前記記憶制御部は、前記第1回数格納領域に格納された前記書換回数が前記不使用値であって、かつ、前記第2回数格納領域に格納された前記書換回数が前記不使用値でない場合、前記第2回数格納領域の前記書換回数を複製して前記第1回数格納領域に書き込むと共に、前記第2情報格納領域の前記車両情報を複製して前記第1情報格納領域に書き込む記憶制御を行い、前記第1回数格納領域に格納された前記書換回数が前記不使用値でなく、かつ、前記第2回数格納領域に格納された前記書換回数が前記不使用値である場合、前記第1回数格納領域の前記書換回数を複製して前記第2回数格納領域に書き込むと共に、前記第1情報格納領域の前記車両情報を複製して前記第2情報格納領域に書き込む記憶制御を行ってもよい。 Further, in the storage control unit, the number of times of rewriting stored in the first number of times storage area is the unused value, and the number of times of rewriting stored in the second number of times storage area is the said unused value. If not, the storage that duplicates the rewriting number of times in the second number storage area and writes it in the first number storage area, and duplicates the vehicle information in the second information storage area and writes it in the first information storage area. When the number of rewrites stored in the first number storage area is not the unused value and the number of rewrites stored in the second number storage area is the unused value, the control is performed. A storage control is performed in which the number of rewrites in the first number storage area is duplicated and written in the second number storage area, and the vehicle information in the first information storage area is duplicated and written in the second information storage area. May be good.
これにより、書換回数が不使用値である一方の記憶領域が更新中である状態において、他方の記憶領域から書換回数及び車両情報を複製することで直近の記憶状態に戻すことができる。 As a result, in a state where one storage area whose rewrite count is an unused value is being updated, it is possible to return to the latest storage state by duplicating the rewrite count and vehicle information from the other storage area.
また、前記記憶制御部は、前記第1回数格納領域に格納された前記書換回数が、前記第2回数格納領域に格納された前記書換回数よりも大きい場合、前記第1情報格納領域の前記車両情報を複製し、前記第2情報格納領域に書き込む記憶制御を行い、前記第1回数格納領域に格納された前記書換回数が、前記第2回数格納領域に格納された前記書換回数よりも小さい場合、前記第2情報格納領域の前記車両情報を複製し、前記第1情報格納領域に書き込む記憶制御を行ってもよい。 Further, when the number of rewrites stored in the first number of times storage area is larger than the number of times of rewrites stored in the second number of times storage area, the storage control unit may use the vehicle in the first information storage area. When the storage control of duplicating the information and writing it to the second information storage area is performed, and the number of rewrites stored in the first number storage area is smaller than the number of rewrites stored in the second number storage area. , The vehicle information in the second information storage area may be duplicated and storage control may be performed to write the vehicle information in the first information storage area.
これにより、書換回数が大きい一方の記憶領域が更新後であり、かつ、他方の記憶領域が更新前である状態において、一方の記憶領域から車両情報を複製することで最新の記憶状態に移行することができる。 As a result, in a state where one storage area having a large number of rewrites has been updated and the other storage area has not been updated, the vehicle information is duplicated from one storage area to shift to the latest storage state. be able to.
また、前記記憶制御部は、前記車両情報を複製する記憶制御が完了するまでの間、前記複製以外の前記第1記憶領域及び前記第2記憶領域への書き込みを行わないようにしてもよい。記憶データの復旧中に複製以外の書き込みを禁止することで、記憶状態に関する異常の発生を防止することができる。 Further, the storage control unit may not write to the first storage area and the second storage area other than the duplication until the storage control for duplicating the vehicle information is completed. By prohibiting writing other than duplication during the 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 according to the off operation of the ignition switch of the vehicle. This is especially effective for vehicles that do not have a self-shutdown function after the engine is turned off, as it is not possible to obtain a data backup of volatile memory.
本発明に係る車両情報記憶装置によれば、不揮発性メモリの使用容量を減らしつつ、記憶データの信頼性を確保することができる。 According to the vehicle information storage device according to the present invention, the reliability of the stored data can be ensured while reducing the capacity of the non-volatile memory used.
以下、本発明に係る車両情報記憶装置について好適な実施形態を挙げ、添付の図面を参照しながら説明する。 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
エンジンECU12は、車両の駆動源であるエンジン16の運転制御を行い、必要に応じて車両の状態を示す情報(以下、車両情報)を取得し保存する。具体的には、エンジン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)、フラッシュメモリから構成される。不揮発性メモリ24は、領域サイズが等しい2つの記憶領域(以下、第1記憶領域30、第2記憶領域32)を有する。
The
第1記憶領域30は、1個の書換回数Nr1が格納される第1回数格納領域30nと、M組(M≧1)の車両情報Iv1が格納される第1情報格納領域30vと、を含む。第2記憶領域32は、1個の書換回数Nr2が格納される第2回数格納領域32nと、M組(M≧1)の車両情報Iv2が格納される第2情報格納領域32vと、を含む。
The
なお、書換回数Nr1は第1記憶領域30の書き換え(車両情報Iv1の更新)に成功した回数であり、書換回数Nr2は第2記憶領域32の書き換え(車両情報Iv2の更新)に成功した回数である。また、車両情報Iv1、Iv2は、例えば、故障コード(DTC)及びフリーズフレームデータ(センサ値の時系列)の1セット分の情報に相当する。
The number of rewrites Nr1 is the number of times that the
揮発性メモリ26は、電力が供給された状態下にのみ記憶データを保持可能なメモリであり、例えば、DRAM(Dynamic Random Access Memory)又はSRAM(Static Random Access Memory)から構成される。揮発性メモリ26は、記憶制御に必要な情報(具体的には、第1書換回数A、第2書換回数B、最新車両情報Iv)が一時的に格納される記憶領域34を有する。
The
[エンジンECU12の動作]
車両情報記憶装置としてのエンジンECU12は、以上のように構成される。続いて、エンジンECU12(特に、記憶制御部28)の動作について、図2及び図3を参照しながら詳細に説明する。
[Operation of engine ECU 12]
The
図2は、図1に示す不揮発性メモリ24及び揮発性メモリ26の記憶状態に関する遷移図である。より詳しくは、本図は、各々の処理ステップS0〜S10での、第1記憶領域30、第2記憶領域32及び記憶領域34における格納値の段階的変化を示す。なお、格納値の更新があった箇所(格納領域)を太線の矩形枠によって表記している。
FIG. 2 is a transition diagram relating to the storage states of the
ステップS0は、5回目の書き換えが正常に行われた記憶状態に相当する。この場合、第1記憶領域30の書換回数Nr1(=5)は、第2記憶領域32の書換回数Nr2(=5)に等しい。また、第1記憶領域30の車両情報Iv1は、第2記憶領域32の車両情報Iv2とすべて一致する。なお、記憶制御部28の初期化動作により、記憶領域34には「NULL」の値が格納されている。
Step S0 corresponds to the storage state in which the fifth rewriting is normally performed. In this case, the number of rewrites Nr1 (= 5) in the
ステップS1において、記憶制御部28は、センサ群14からの最新の車両情報(以下、最新車両情報Iv)を揮発性メモリ26に書き込むことで、最新車両情報Ivを一時的に記憶させる制御を行う。これにより、記憶領域34の格納値(最新車両情報Iv)が、「NULL」から「6回目の情報」に更新される。
In step S1, the storage control unit 28 controls to temporarily store the latest vehicle information Iv by writing the latest vehicle information (hereinafter referred to as the latest vehicle information Iv) from the
ステップS2において、記憶制御部28は、第1記憶領域30の書換回数Nr1を不揮発性メモリ24から読み出し、揮発性メモリ26の記憶領域34に書き込むことで、最新車両情報Ivを一時的に記憶させる制御を行う。これにより、記憶領域34の格納値(第1書換回数A)が、「NULL」から「5」に更新される。
In step S2, the storage control unit 28 temporarily stores the latest vehicle information Iv by reading the rewrite count Nr1 of the
ステップS3において、記憶制御部28は、第1記憶領域30(具体的には、第1回数格納領域30n)の書換回数Nr1を、カウントに使用しない値(以下、不使用値という)に更新する制御を行う。この不使用値は、例えば0を含む、書換回数Nr1の運用範囲から逸脱した任意の値(具体的には、上限値よりも大きい値)であってもよい。
In step S3, the storage control unit 28 updates the rewrite count Nr1 of the first storage area 30 (specifically, the first
このように、記憶制御部28は、第1情報格納領域30vの更新を開始する前に、第1回数格納領域30nから読み出した書換回数Nr1を揮発性メモリ26に書き込み、かつ、書換回数Nr1のカウントに使用しない不使用値を第1回数格納領域30nに書き込む記憶制御を行う(ステップS2、S3)。
In this way, the storage control unit 28 writes the rewrite number Nr1 read from the first
ステップS4において、記憶制御部28は、一時的に記憶された最新車両情報Ivを揮発性メモリ26から読み出し、不揮発性メモリ24の第1記憶領域30に書き込む制御を行う。これにより、第1情報格納領域30vの格納値(車両情報Iv1)が、「5回目の情報」から「6回目の情報」に更新される。
In step S4, the storage control unit 28 controls to read the temporarily stored latest vehicle information Iv from the
ステップS5において、記憶制御部28は、一時的に記憶された第1書換回数Aを揮発性メモリ26から読み出し、カウント更新(A←A+1)した後に、不揮発性メモリ24の第1記憶領域30に書き込む制御を行う。これにより、第1回数格納領域30nの格納値(書換回数Nr1)が、「0」から「6」に更新される。
In step S5, the storage control unit 28 reads the temporarily stored first rewrite number A from the
このように、記憶制御部28は、第1情報格納領域30vの更新が終了した後に、揮発性メモリ26から読み出した書換回数Nr1をカウント更新し、かつ、第1回数格納領域30nに書き込む記憶制御を行う(ステップS4、S5)。
In this way, the storage control unit 28 counts and updates the rewrite count Nr1 read from the
ステップS6において、記憶制御部28は、第2記憶領域32の書換回数Nr2を不揮発性メモリ24から読み出し、揮発性メモリ26の記憶領域34に書き込むことで、書換回数Nr2を一時的に記憶させる制御を行う。これにより、記憶領域34の格納値(第2書換回数B)が、「NULL」から「5」に更新される。
In step S6, the storage control unit 28 reads the rewrite count Nr2 of the
ステップS7において、記憶制御部28は、第2記憶領域32(具体的には、第2回数格納領域32n)に格納された書換回数Nr2を、不使用値(0)に更新する制御を行う。ここで、書換回数Nr2の不使用値は、書換回数Nr1の不使用値と同一であってもよいし、異なっていてもよい。
In step S7, the storage control unit 28 controls to update the rewrite number Nr2 stored in the second storage area 32 (specifically, the second
このように、記憶制御部28は、第2情報格納領域32vの更新を開始する前に、第2回数格納領域32nから読み出した書換回数Nr2を揮発性メモリ26に書き込み、かつ、書換回数Nr2のカウントに使用しない不使用値を第2回数格納領域32nに書き込む記憶制御を行う(ステップS6、S7)。
In this way, the storage control unit 28 writes the rewrite number Nr2 read from the second
ステップS8において、記憶制御部28は、一時的に記憶された最新車両情報Ivを揮発性メモリ26から読み出し、不揮発性メモリ24の第2記憶領域32に書き込む制御を行う。これにより、第2情報格納領域32vの格納値(車両情報Iv2)が、「5回目の情報」から「6回目の情報」に更新される。
In step S8, the storage control unit 28 controls to read the temporarily stored latest vehicle information Iv from the
ステップS9において、記憶制御部28は、一時的に記憶された第2書換回数Bを揮発性メモリ26から読み出し、カウント更新(B←B+1)した後に、不揮発性メモリ24の第2記憶領域32に書き込む制御を行う。これにより、第2回数格納領域32nの格納値(書換回数Nr2)が、「0」から「6」に更新される。
In step S9, the storage control unit 28 reads the temporarily stored second rewrite number B from the
このように、記憶制御部28は、第2情報格納領域32vの更新が終了した後に、揮発性メモリ26から読み出した書換回数Nr2をカウント更新し、かつ、第2回数格納領域32nに書き込む記憶制御を行う(ステップS8、S9)。
In this way, the storage control unit 28 counts and updates the rewrite count Nr2 read from the
ステップS10は、6回目の書き換えが正常に行われた記憶状態に相当する。記憶制御部28の初期化動作により、記憶領域34には「NULL」の値が格納される。ここで、第1記憶領域30の書換回数Nr1(=6)は、第2記憶領域32の書換回数Nr2(=6)に等しい。また、第1記憶領域30の車両情報Iv1は、第2記憶領域32の車両情報Iv2とすべて一致する。
Step S10 corresponds to the storage state in which the sixth rewriting is normally performed. The value of "Null" is stored in the
図3は、各々の区間における記憶制御の特徴を模式的に示す図である。より詳しくは、本図は、状態チェック処理を実行した場合における、処理タイミング毎の記憶制御の挙動(イベント及び結果)を示す。 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 timing when the status check processing is executed.
ここで、「状態チェック」とは、不揮発性メモリ24の記憶状態に対する確認処理であり、具体的には、書換回数Nr1と、書換回数Nr2とが一致するか否かについて確認することを意味する。また、処理フェーズは、図2に示す10個の区間(第1〜第10区間)により分類される。
Here, the "state check" is a confirmation process for the storage state of the
なお、記憶制御部28は、この状態チェック処理を不定期に実行してもよいし、定期的に実行してもよい。不定期の例として、[1]不揮発性メモリ24の読み出し要求時、[2]イグニッションスイッチ20のオン動作の直後、或いは[3]図2に示す一連の動作の終了時点から所定時間が経過したとき、が挙げられる。
The storage control unit 28 may execute this state check process irregularly or periodically. As an irregular example, [1] when a read request is made to the
第1〜第3区間では、書換回数Nr1、Nr2は、互いに等しい(Nr1=Nr2=5)。この場合、記憶制御部28は、車両情報Iv1、Iv2がいずれも最新であると判断し、不揮発性メモリ24に対して特別な処理を行わない。つまり、不揮発性メモリ24は、5回目の車両情報Iv1、Iv2を記憶した状態(データ同期が保たれた状態)を維持する。
In the first to third sections, the number of rewrites Nr1 and Nr2 are equal to each other (Nr1 = Nr2 = 5). In this case, the storage control unit 28 determines that the vehicle information Iv1 and Iv2 are both up-to-date, and does not perform any special processing on the
第4、第5区間では、第1回数格納領域30nに格納された書換回数Nr1が不使用値(つまり、Nr1=0)であって、第2回数格納領域32nに格納された書換回数Nr2が不使用値でない(Nr2=5)。この場合、記憶制御部28は、車両情報Iv2のみが最新であると判断する。
In the fourth and fifth sections, the rewrite count Nr1 stored in the first
つまり、書換回数Nr1が不使用値である一方の記憶領域(第1記憶領域30)が更新中である状態において、他方の記憶領域(第2記憶領域32)から書換回数Nr2及び車両情報Iv2を複製することで直近の記憶状態に戻すことができる。 That is, in a state where one storage area (first storage area 30) in which the rewrite count Nr1 is an unused value is being updated, the rewrite count Nr2 and the vehicle information Iv2 are obtained from the other storage area (second storage area 32). It can be restored to the latest storage state by duplicating it.
この場合、記憶制御部28は、[1](Nr1←Nr2)第2回数格納領域32nの書換回数Nr2を複製して第1回数格納領域30nに書き込むと共に、[2](Iv1←Iv2)第2情報格納領域32vの車両情報Iv2を複製して第1情報格納領域30vに書き込む記憶制御を行う。その結果、不揮発性メモリ24は、5回目の車両情報Iv1、Iv2を記憶した状態(つまり、データ同期が保たれた状態)に戻る。
In this case, the storage control unit 28 duplicates [1] (Nr1 ← Nr2) the rewriting number Nr2 of the second
ここで、記憶制御部28は、車両情報Iv2を複製する記憶制御が完了するまでの間、この複製以外での第1記憶領域30及び第2記憶領域32への書き込みを行わない。記憶データの復旧中に複製以外の書き込みを禁止することで、記憶状態に関する異常の発生を防止することができる。
Here, the storage control unit 28 does not write to the
第6、第7区間では、書換回数Nr1(=6)、Nr2(=5)はいずれも不使用値ではなく、かつ、Nr1>Nr2の大小関係を満たしている。この場合、記憶制御部28は、車両情報Iv1のみが最新であると判断する。 In the sixth and seventh sections, the number of rewrites Nr1 (= 6) and Nr2 (= 5) are not unused values, and the magnitude relationship of Nr1> Nr2 is satisfied. In this case, the memory control unit 28 determines that only the vehicle information Iv1 is the latest.
つまり、書換回数Nr1が大きい一方の記憶領域(第1記憶領域30)が更新後であり、かつ、他方の記憶領域(第2記憶領域32)が更新前である状態において、第1記憶領域30から車両情報Iv1を複製することで最新の記憶状態に移行することができる。
That is, in a state where one storage area (first storage area 30) having a large number of rewrites Nr1 is after the update and the other storage area (second storage area 32) is before the update, the
この場合、記憶制御部28は、[1](Nr2←Nr1)第1回数格納領域30nの書換回数Nr1を複製して第2回数格納領域32nに書き込むと共に、[2](Iv2←Iv1)第1情報格納領域30vの車両情報Iv1を複製して第2情報格納領域32vに書き込む記憶制御を行う。なお、書換回数Nr1の複製に代わって、カウント更新した書換回数Nr2を第2回数格納領域32nに書き込んでもよい。
In this case, the storage control unit 28 duplicates [1] (Nr2 ← Nr1) the rewriting number Nr1 of the first
第4、第5区間の場合と同様に、記憶制御部28は、車両情報Iv1を複製する記憶制御が完了するまでの間、この複製以外での第1記憶領域30及び第2記憶領域32への書き込みを行わないようにする。その結果、不揮発性メモリ24は、6回目の車両情報Iv1、Iv2を記憶した状態(つまり、データ同期が保たれた状態)になる。
As in the case of the fourth and fifth sections, the storage control unit 28 goes to the
第8、第9区間では、第1回数格納領域30nに格納された書換回数Nr1が不使用値ではなく(Nr1=6)、第2回数格納領域32nに格納された書換回数Nr2が不使用値(つまり、Nr2=0)である。この場合、記憶制御部28は、車両情報Iv1のみが最新であると判断する。
In the 8th and 9th sections, the number of rewrites Nr1 stored in the
つまり、書換回数Nr2が不使用値である一方の記憶領域(第2記憶領域32)が更新中である状態において、他方の記憶領域(第1記憶領域30)から書換回数Nr1及び車両情報Iv1を複製することで最新の記憶状態に移行することができる。 That is, in a state where one storage area (second storage area 32) in which the rewrite count Nr2 is an unused value is being updated, the rewrite count Nr1 and the vehicle information Iv1 are obtained from the other storage area (first storage area 30). By duplicating, it is possible to move to the latest storage state.
この場合、記憶制御部28は、[1](Nr2←Nr1)第1回数格納領域30nの書換回数Nr1を複製して第2回数格納領域32nに書き込むと共に、[2](Iv2←Iv1)第1情報格納領域30vの車両情報Iv1を複製して第2情報格納領域32vに書き込む記憶制御を行う。
In this case, the storage control unit 28 duplicates [1] (Nr2 ← Nr1) the rewriting number Nr1 of the first
第6、第7区間の場合と同様に、記憶制御部28は、車両情報Iv1を複製する記憶制御が完了するまでの間、この複製以外での第1記憶領域30及び第2記憶領域32への書き込みを行わないようにする。その結果、不揮発性メモリ24は、6回目の車両情報Iv1、Iv2を記憶した状態(つまり、データ同期が保たれた状態)になる。
As in the case of the sixth and seventh sections, the storage control unit 28 goes to the
第10区間では、書換回数Nr1、Nr2は、互いに等しい(Nr1=Nr2=6)。この場合、記憶制御部28は、車両情報Iv1、Iv2がいずれも最新であると判断し、不揮発性メモリ24に対して特別な処理を行わない。つまり、不揮発性メモリ24は、6回目の車両情報Iv1、Iv2を記憶した状態(データ同期が保たれた状態)を維持する。
In the tenth section, the number of rewrites Nr1 and Nr2 are equal to each other (Nr1 = Nr2 = 6). In this case, the storage control unit 28 determines that the vehicle information Iv1 and Iv2 are both up-to-date, and does not perform any special processing on the
[エンジンECU12(車両情報記憶装置)による効果]
以上のように、エンジンECU12は、車両に搭載され、かつ、車両の状態を示す車両情報Iv1、Iv2を記憶し、[1]第1記憶領域30及び第2記憶領域32を有する不揮発性メモリ24と、[2]車両情報Iv1、Iv2の書換回数Nr1、Nr2を少なくとも記憶する揮発性メモリ26と、[3]不揮発性メモリ24及び揮発性メモリ26に対する記憶制御を行う記憶制御部28と、を備え、[4]第1記憶領域30は、車両情報Iv1が格納される第1情報格納領域30vと、書換回数Nr1が格納される第1回数格納領域30nと、を含み、[5]第2記憶領域32は、車両情報Iv2が格納される第2情報格納領域32vと、書換回数Nr2が格納される第2回数格納領域32nと、を含む。
[Effect of engine ECU 12 (vehicle information storage device)]
As described above, the
そして、[6]記憶制御部28は、第1情報格納領域30vの更新を開始する前に、(6a)第1回数格納領域30nから読み出した書換回数Nr1を揮発性メモリ26に書き込み、(6b)書換回数Nr1のカウントに使用しない不使用値(=0)を第1回数格納領域30nに書き込む。[7]記憶制御部28は、第1情報格納領域30vの更新が終了した後に、(7a)揮発性メモリ26から読み出した書換回数Nr1をカウント更新し、(7b)第1回数格納領域30nに書き込む記憶制御を行う。
Then, [6] the storage control unit 28 writes (6a) the number of rewrites Nr1 read from the first
そして、[8]記憶制御部28は、第2情報格納領域32vの更新を開始する前に、(8a)第2回数格納領域32nから読み出した書換回数Nr2を揮発性メモリ26に書き込み、(8b)書換回数Nr2のカウントに使用しない不使用値(=0)を第2回数格納領域32nに書き込む。[9]記憶制御部28は、第2情報格納領域32vの更新が終了した後に、(9a)揮発性メモリ26から読み出した書換回数Nr2をカウント更新し、(9b)第2回数格納領域32nに書き込む記憶制御を行う。
Then, [8] the storage control unit 28 writes (8a) the number of rewrites Nr2 read from the second
このように構成することで、例えば、電力の瞬断によって揮発性メモリ26に一時的に記憶された情報が消失した場合であっても、現在格納されている2つの書換回数Nr1、Nr2の数値関係(単独値又は相対値)に基づいて第1記憶領域30及び第2記憶領域32の更新状況を判別可能となり、その後に必要な対処を施すことで記憶データを適切に復旧することができる。これにより、不揮発性メモリ24の使用容量を減らしつつ、記憶データの信頼性を確保することができる。
With this configuration, for example, even if the information temporarily stored in 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.
例えば、この実施形態では、第1記憶領域30→第2記憶領域32の更新順に従って更新を行っているが、逆の更新順(つまり、第2記憶領域32→第1記憶領域30)であってもよい。また、データ同期が保たれるのであれば、更新順は固定されていなくてもよい。
For example, in this embodiment, the update is performed according to the update order of the
また、この実施形態では、第1回数格納領域30nには1個の書換回数Nr1が格納されているが、同一の値を2個以上格納可能な領域を設け、いわゆるデータの多重化を図ってもよい。具体的には、すべての値が一致する場合に正常値として判定したり、多数決により格納値を決定したりすることで、データ同期処理の信頼性がさらに向上する。また、第2回数格納領域32n(書換回数Nr2)に関しても同様である。
Further, in this embodiment, one rewrite number Nr1 is stored in the first
10…車両故障診断システム 12…エンジンECU(車両情報記憶装置)
14…センサ群 16…エンジン
18…電源 20…イグニッションスイッチ
22…演算処理装置 24…不揮発性メモリ
26…揮発性メモリ 28…記憶制御部
30…第1記憶領域 30n…第1回数格納領域
30v…第1情報格納領域 32…第2記憶領域
32n…第2回数格納領域 32v…第2情報格納領域
34…記憶領域 Iv1、Iv2…車両情報
Nr1、Nr2…書換回数
10 ... Vehicle
14 ...
Claims (5)
第1記憶領域及び第2記憶領域を有する不揮発性メモリと、
前記車両情報の書換回数と、最新の車両情報とを一時的に記憶する揮発性メモリと、
前記不揮発性メモリ及び前記揮発性メモリに対する記憶制御を行う記憶制御部と、
を備え、
前記第1記憶領域は、前記車両情報が格納される第1情報格納領域と、前記第1情報格納領域の書換回数を示す第1書換回数が格納される第1回数格納領域と、を含み、
前記第2記憶領域は、前記車両情報が格納される第2情報格納領域と、前記第2情報格納領域の書換回数を示す第2書換回数が格納される第2回数格納領域と、を含み、
前記記憶制御部は、
前記第1情報格納領域の更新を開始する前に、前記最新の車両情報と、前記第1回数格納領域から読み出した前記第1書換回数とを前記揮発性メモリに書き込み、かつ、前記第1書換回数のカウントに使用しない不使用値を前記第1回数格納領域に書き込み、
前記第1情報格納領域の更新を開始する前に前記揮発性メモリに書き込まれた前記最新の車両情報に基づいて前記第1情報格納領域を更新した後に、前記揮発性メモリから読み出した前記第1書換回数をカウント更新し、かつ、更新された前記第1書換回数を前記第1回数格納領域に書き込む記憶制御を行い、
前記第2情報格納領域の更新を開始する前に、前記第2回数格納領域から読み出した前記第2書換回数を前記揮発性メモリに書き込み、かつ、前記第2書換回数のカウントに使用しない不使用値を前記第2回数格納領域に書き込み、
前記第1情報格納領域の更新を開始する前に前記揮発性メモリに書き込まれた前記最新の車両情報に基づいて前記第2情報格納領域を更新した後に、前記揮発性メモリから読み出した前記第2書換回数をカウント更新し、かつ、更新された前記第2書換回数を前記第2回数格納領域に書き込む記憶制御を行う
ことを特徴とする車両情報記憶装置。 A vehicle information storage device mounted on a vehicle and storing vehicle information indicating the state of the vehicle.
A non-volatile memory having a first storage area and a second storage area,
Volatile memory that temporarily stores the number of times the vehicle information is rewritten and the latest vehicle information,
A storage control unit that controls storage for the non-volatile memory and the volatile memory,
Equipped with
The first storage area includes a first information storage area in which the vehicle information is stored, and a first number storage area in which the first rewrite number indicating the number of rewrites of the first information storage area is stored.
The second storage area includes a second information storage area in which the vehicle information is stored, and a second number storage area in which the second rewrite number indicating the number of rewrites of the second information storage area is stored.
The memory control unit
Before starting the updating of the first information storage area, the write and the latest vehicle information, and said first rewrite count read from the first count storage area in the volatile memory, and, the first rewrite Write the unused value not used for counting the number of times to the first number storage area,
After was further new said first information storage area based on the latest vehicle information written in the volatile memory before starting the updating of the first information storage area, the read from the volatile memory A storage control is performed to count and update the first rewrite count and write the updated first rewrite count to the first rewrite storage area.
Before starting the update of the second information storage area, the second rewrite count read from the second information storage area is written to the volatile memory, and is not used for counting the second rewrite count. The value is written in the second storage area,
After was further new said second information storage region based on the latest vehicle information written in the volatile memory before starting the updating of the first information storage area, the read from the volatile memory A vehicle information storage device characterized by performing storage control for counting and updating the number of times of second rewriting and writing the updated number of times of second rewriting to the second number of times storage area.
前記記憶制御部は、
前記第1回数格納領域に格納された前記第1書換回数が前記不使用値であって、かつ、前記第2回数格納領域に格納された前記第2書換回数が前記不使用値でない場合、
前記第2回数格納領域の前記第2書換回数を複製して前記第1回数格納領域に書き込むと共に、前記第2情報格納領域の前記車両情報を複製して前記第1情報格納領域に書き込む記憶制御を行い、
前記第1回数格納領域に格納された前記第1書換回数が前記不使用値でなく、かつ、前記第2回数格納領域に格納された前記第2書換回数が前記不使用値である場合、
前記第1回数格納領域の前記第1書換回数を複製して前記第2回数格納領域に書き込むと共に、前記第1情報格納領域の前記車両情報を複製して前記第2情報格納領域に書き込む記憶制御を行う
ことを特徴とする車両情報記憶装置。 In the vehicle information storage device according to claim 1,
The memory control unit
When the first rewrite count stored in the first count storage area wherein a nonuse value, and wherein the second number of times of rewriting stored in the second count storage area wherein not unused value,
A storage control that duplicates the second rewriting number of the second information storage area and writes it in the first information storage area, and duplicates the vehicle information in the second information storage area and writes it in the first information storage area. And
If the stored in said first count storage area instead of the first number of times of rewriting the unused value, and wherein the second number of times of rewriting stored in the second count storage area wherein a unused value,
A storage control that duplicates the first rewriting number of times in the first number storage area and writes it in the second information storage area, and duplicates the vehicle information in the first information storage area and writes it in the second information storage area. A vehicle information storage device characterized by performing.
前記記憶制御部は、
前記第1回数格納領域に格納された前記第1書換回数が、前記第2回数格納領域に格納された前記第2書換回数よりも大きい場合、前記第1情報格納領域の前記車両情報を複製し、前記第2情報格納領域に書き込む記憶制御を行い、
前記第1回数格納領域に格納された前記第1書換回数が、前記第2回数格納領域に格納された前記第2書換回数よりも小さい場合、前記第2情報格納領域の前記車両情報を複製し、前記第1情報格納領域に書き込む記憶制御を行う
ことを特徴とする車両情報記憶装置。 In the vehicle information storage device according to claim 1,
The memory control unit
Wherein said first number of times of rewriting stored in the first count storage area is greater than said second number of times of rewriting stored in the second count storage area, duplicating the vehicle information of the first information storage area , Performs storage control to write to the second information storage area,
The first rewrite count stored in the first count storage area is smaller than the second number of times of rewriting stored in the second count storage area, duplicating the vehicle information of the second information storage area , A vehicle information storage device characterized in that storage control for writing to the first information storage area is performed.
前記記憶制御部は、前記車両情報を複製する記憶制御が完了するまでの間、前記複製以外での前記第1記憶領域及び前記第2記憶領域への書き込みを行わないことを特徴とする車両情報記憶装置。 In the vehicle information storage device according to claim 2 or 3.
The storage control unit is characterized in that it does not write to the first storage area and the second storage area other than the duplication until the storage control for duplicating the vehicle information is completed. 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 |
---|---|---|---|
JP2017165456A JP6975581B2 (en) | 2017-08-30 | 2017-08-30 | Vehicle information storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017165456A JP6975581B2 (en) | 2017-08-30 | 2017-08-30 | Vehicle information storage device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2019045951A JP2019045951A (en) | 2019-03-22 |
JP6975581B2 true JP6975581B2 (en) | 2021-12-01 |
Family
ID=65814318
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017165456A Active JP6975581B2 (en) | 2017-08-30 | 2017-08-30 | Vehicle information storage device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6975581B2 (en) |
-
2017
- 2017-08-30 JP JP2017165456A patent/JP6975581B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2019045951A (en) | 2019-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4803168B2 (en) | Vehicle information storage device | |
JP4636118B2 (en) | Electronic device and program | |
JP3726663B2 (en) | Electronic control device control data storage device | |
JP4345860B2 (en) | Vehicle memory management device | |
WO2009090978A1 (en) | Vehicle control device | |
JP2009042850A (en) | Control device for vehicle, and device for updating vehicle control program | |
JP4475345B2 (en) | Electronic control unit | |
JP6956566B2 (en) | Vehicle information storage device | |
JP5187387B2 (en) | Vehicle data storage device, controller, and vehicle data recording system | |
JP6975581B2 (en) | Vehicle information storage device | |
US11314634B2 (en) | Electronic control unit and data protection method therefor | |
JP4600510B2 (en) | Control device and program | |
JP6663371B2 (en) | Electronic control unit | |
JP2004151944A (en) | Method for writing data in non-volatile storage device, its program and device, and onboard electronic controller | |
JPH11141391A (en) | Automotive control device | |
JP7029366B2 (en) | Electronic control device for automobiles | |
JP4479775B2 (en) | Vehicle control apparatus and program | |
JP6159668B2 (en) | Vehicle control device | |
JP3960212B2 (en) | Electronic control unit | |
JP6162011B2 (en) | Electronic control unit for automobile | |
JPH08153397A (en) | Eeprom data rewrite controller | |
JP2011100416A (en) | In-vehicle electronic controller and memory control method | |
JPH09161493A (en) | Management method for rewritable nonvolatile memory | |
JP6381490B2 (en) | In-vehicle electronic control unit | |
JP3444295B2 (en) | Electronic control unit for vehicle engine |
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 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20210614 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20210706 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210902 |
|
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: 20211102 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20211108 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6975581 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |