[go: up one dir, main page]

JP6975581B2 - Vehicle information storage device - Google Patents

Vehicle information storage device Download PDF

Info

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
Application number
JP2017165456A
Other languages
Japanese (ja)
Other versions
JP2019045951A (en
Inventor
貴矩敬 寛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Astemo Ltd
Original Assignee
Hitachi Astemo Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hitachi Astemo Ltd filed Critical Hitachi Astemo Ltd
Priority to JP2017165456A priority Critical patent/JP6975581B2/en
Publication of JP2019045951A publication Critical patent/JP2019045951A/en
Application granted granted Critical
Publication of JP6975581B2 publication Critical patent/JP6975581B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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つの記憶領域に記憶させておき、データの多数決を採ることで、不揮発性メモリの記憶状態に関する異常を判定する装置が提案されている。 Patent Document 1 proposes a device for determining an abnormality in the storage state of a non-volatile memory by storing the same failure code (DTC; Diagnostic Trouble Code) in three storage areas and taking a majority vote of the data. ing.

特許第4475320号公報Japanese Patent No. 4475320

近時、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 Patent Document 1, it is necessary to always prepare three sets of storage areas for majority voting, so that the capacity of the non-volatile memory used increases by 50% as compared with the case of two sets. Will end up. This problem is noticeable because the capacity used is roughly proportional to the size of the freeze frame data.

本発明は上記した問題を解決するためになされたものであり、不揮発性メモリの使用容量を減らしつつ、記憶データの信頼性を確保可能な車両情報記憶装置を提供することを目的とする。 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.

本発明の一実施形態における車両情報記憶装置が組み込まれた車両故障診断システムの全体構成図である。It is an overall block diagram of the vehicle failure diagnosis system which incorporated the vehicle information storage device in one Embodiment of this invention. 図1に示す不揮発性メモリ及び揮発性メモリの記憶状態に関する遷移図である。It is a transition diagram regarding the storage state of the non-volatile memory and the volatile memory shown in FIG. 1. 各々の区間における記憶制御の特徴を模式的に示す図である。It is a figure which shows typically the feature of the memory control in each section.

以下、本発明に係る車両情報記憶装置について好適な実施形態を挙げ、添付の図面を参照しながら説明する。 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 failure diagnosis system 10 incorporating a vehicle information storage device according to an embodiment of the present invention. The vehicle failure diagnosis system 10 is a system mounted on a vehicle (for example, a two-wheeled vehicle or a four-wheeled vehicle) (not shown) and having a self-diagnosis function of this vehicle. The vehicle failure diagnosis system 10 includes an engine ECU 12 as a vehicle information storage device, a sensor group 14, an engine 16, and a power supply 18.

センサ群14は、車両の状態を検出可能な1つ又は複数のセンサから構成される。センサの種類として、例えば、水温センサ、油温センサ、車速センサ、クランク角センサ、吸気圧センサ、大気圧センサ、スロットル開度センサ、O2センサが挙げられる。 The sensor group 14 is composed of one or a plurality of sensors capable of detecting the state of the vehicle. Examples of the type of sensor include a water temperature sensor, an oil temperature sensor, a vehicle speed sensor, a crank angle sensor, an intake pressure sensor, an atmospheric pressure sensor, a throttle opening sensor, and an O2 sensor.

電源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 thereof in conjunction with the on / off of the ignition switch 20.

エンジンECU12は、車両の駆動源であるエンジン16の運転制御を行い、必要に応じて車両の状態を示す情報(以下、車両情報)を取得し保存する。具体的には、エンジンECU12は、演算処理装置22と、不揮発性メモリ24と、揮発性メモリ26と、を含んで構成される。 The engine ECU 12 controls the operation of the engine 16 which is a drive source of the vehicle, and acquires and stores information indicating the state of the vehicle (hereinafter referred to as vehicle information) as necessary. Specifically, the engine ECU 12 includes an arithmetic processing unit 22, a non-volatile memory 24, and a volatile memory 26.

演算処理装置22は、例えば、CPU(Central Processing Unit)又はMPU(Micro-Processing Unit)から構成される。演算処理装置22は、図示しないROM(Read Only Memory)からプログラムを読み出し実行することで、不揮発性メモリ24及び揮発性メモリ26に対する記憶制御を行う記憶制御部28として機能する。 The arithmetic processing unit 22 is composed of, for example, a CPU (Central Processing Unit) or an MPU (Micro-Processing Unit). The arithmetic processing unit 22 functions as a storage control unit 28 that controls storage for the non-volatile memory 24 and the volatile memory 26 by reading and executing a program from a ROM (Read Only Memory) (not shown).

不揮発性メモリ24は、電力を供給しなくても記憶データを保持可能なメモリであり、例えば、EEPROM(Electrically Erasable Programmable Read-Only Memory)、フラッシュメモリから構成される。不揮発性メモリ24は、領域サイズが等しい2つの記憶領域(以下、第1記憶領域30、第2記憶領域32)を有する。 The non-volatile memory 24 is a memory that can hold stored data without supplying power, and is composed of, for example, an EEPROM (Electrically Erasable Programmable Read-Only Memory) and a flash memory. The non-volatile memory 24 has two storage areas having the same area size (hereinafter, the first storage area 30 and the second storage area 32).

第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 first storage area 30 includes a first number storage area 30n in which one rewrite number Nr1 is stored, and a first information storage area 30v in which vehicle information Iv1 of M group (M ≧ 1) is stored. .. The second storage area 32 includes a second number storage area 32n in which one rewrite number Nr2 is stored, and a second information storage area 32v in which the vehicle information Iv2 of the M group (M ≧ 1) is stored. ..

なお、書換回数Nr1は第1記憶領域30の書き換え(車両情報Iv1の更新)に成功した回数であり、書換回数Nr2は第2記憶領域32の書き換え(車両情報Iv2の更新)に成功した回数である。また、車両情報Iv1、Iv2は、例えば、故障コード(DTC)及びフリーズフレームデータ(センサ値の時系列)の1セット分の情報に相当する。 The number of rewrites Nr1 is the number of times that the first storage area 30 is successfully rewritten (update of vehicle information Iv1), and the number of rewrites Nr2 is the number of times that the second storage area 32 is successfully rewritten (update of vehicle information Iv2). be. 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は、記憶制御に必要な情報(具体的には、第1書換回数A、第2書換回数B、最新車両情報Iv)が一時的に格納される記憶領域34を有する。 The volatile memory 26 is a memory capable of holding stored data only in a state where power is supplied, and is composed of, for example, a DRAM (Dynamic Random Access Memory) or a SRAM (Static Random Access Memory). The volatile memory 26 has a storage area 34 in which information necessary for storage control (specifically, the first rewriting number A, the second rewriting number B, and the latest vehicle information Iv) is temporarily stored.

[エンジンECU12の動作]
車両情報記憶装置としてのエンジンECU12は、以上のように構成される。続いて、エンジンECU12(特に、記憶制御部28)の動作について、図2及び図3を参照しながら詳細に説明する。
[Operation of engine ECU 12]
The engine ECU 12 as a vehicle information storage device is configured as described above. Subsequently, the operation of the engine ECU 12 (particularly, the storage control unit 28) will be described in detail with reference to FIGS. 2 and 3.

図2は、図1に示す不揮発性メモリ24及び揮発性メモリ26の記憶状態に関する遷移図である。より詳しくは、本図は、各々の処理ステップS0〜S10での、第1記憶領域30、第2記憶領域32及び記憶領域34における格納値の段階的変化を示す。なお、格納値の更新があった箇所(格納領域)を太線の矩形枠によって表記している。 FIG. 2 is a transition diagram relating to the storage states of the non-volatile memory 24 and the volatile memory 26 shown in FIG. More specifically, this figure shows the stepwise change of the stored value in the first storage area 30, the second storage area 32, and the storage area 34 in each of the processing steps S0 to S10. The location (storage area) where the stored value was updated is indicated by a thick rectangular frame.

ステップ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 first storage area 30 is equal to the number of rewrites Nr2 (= 5) in the second storage area 32. Further, the vehicle information Iv1 in the first storage area 30 all coincides with the vehicle information Iv2 in the second storage area 32. The value of "Null" is stored in the storage area 34 by the initialization operation of the storage control unit 28.

ステップ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 sensor group 14 to the volatile memory 26. .. As a result, the stored value (latest vehicle information Iv) of the storage area 34 is updated from "NULL" to "sixth information".

ステップ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 first storage area 30 from the non-volatile memory 24 and writing it to the storage area 34 of the volatile memory 26. Take control. As a result, the stored value (first rewriting count A) of the storage area 34 is updated from "NULL" to "5".

ステップ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 number storage area 30n) to a value not used for counting (hereinafter referred to as an unused value). Take control. This unused value may be an arbitrary value (specifically, a value larger than the upper limit value) that deviates from the operation range of the number of rewrites Nr1, including 0.

このように、記憶制御部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 information storage area 30n to the volatile memory 26 and writes the rewrite number Nr1 to the volatile memory 26 before starting the update of the first information storage area 30v. Storage control is performed to write the unused value not used for counting to the first storage area 30n (steps S2 and S3).

ステップ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 volatile memory 26 and write it to the first storage area 30 of the non-volatile memory 24. As a result, the stored value (vehicle information Iv1) of the first information storage area 30v is updated from the "fifth information" to the "sixth information".

ステップ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 volatile memory 26, updates the count (A ← A + 1), and then puts it in the first storage area 30 of the non-volatile memory 24. Controls writing. As a result, the stored value (rewriting count Nr1) of the first number storage area 30n is updated from "0" to "6".

このように、記憶制御部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 volatile memory 26 after the update of the first information storage area 30v is completed, and writes to the first information storage area 30n. (Steps S4 and S5).

ステップ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 second storage area 32 from the non-volatile memory 24 and writes it to the storage area 34 of the volatile memory 26 to temporarily store the rewrite count Nr2. I do. As a result, the stored value (second rewrite count B) of the storage area 34 is updated from "NULL" to "5".

ステップ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 number storage area 32n) to the unused value (0). Here, the unused value of the number of rewrites Nr2 may be the same as or different from the unused value of the number of rewrites Nr1.

このように、記憶制御部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 information storage area 32n to the volatile memory 26 and writes the rewrite number Nr2 to the volatile memory 26 before starting the update of the second information storage area 32v. Storage control is performed to write the unused value not used for counting to the second storage area 32n (steps S6 and S7).

ステップ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 volatile memory 26 and write it to the second storage area 32 of the non-volatile memory 24. As a result, the stored value (vehicle information Iv2) of the second information storage area 32v is updated from the "fifth information" to the "sixth information".

ステップ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 volatile memory 26, updates the count (B ← B + 1), and then puts it in the second storage area 32 of the non-volatile memory 24. Controls writing. As a result, the stored value (rewriting count Nr2) of the second number storage area 32n is updated from "0" to "6".

このように、記憶制御部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 volatile memory 26 after the update of the second information storage area 32v is completed, and writes to the second information storage area 32n. (Steps S8 and S9).

ステップ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 storage area 34 by the initialization operation of the storage control unit 28. Here, the number of rewrites Nr1 (= 6) in the first storage area 30 is equal to the number of rewrites Nr2 (= 6) in the second storage area 32. Further, the vehicle information Iv1 in the first storage area 30 all coincides with the vehicle information Iv2 in the second storage area 32.

図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 non-volatile memory 24, and specifically, means confirming whether or not the number of rewrites Nr1 and the number of rewrites Nr2 match. .. Further, the processing phases are classified by 10 sections (1st to 10th sections) shown in FIG.

なお、記憶制御部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 non-volatile memory 24, [2] immediately after the ignition switch 20 is turned on, or [3] a predetermined time has elapsed from the end of a series of operations shown in FIG. When, is mentioned.

第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 non-volatile memory 24. That is, the non-volatile memory 24 maintains a state in which the fifth vehicle information Iv1 and Iv2 are stored (a state in which data synchronization is maintained).

第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 count storage area 30n is an unused value (that is, Nr1 = 0), and the rewrite count Nr2 stored in the second count storage area 32n is Not an unused value (Nr2 = 5). In this case, the memory control unit 28 determines that only the vehicle information Iv2 is the latest.

つまり、書換回数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 number storage area 32n and writes it to the first number storage area 30n, and [2] (Iv1 ← Iv2) th. 2 Memory control is performed in which the vehicle information Iv2 in the information storage area 32v is duplicated and written in the first information storage area 30v. As a result, the non-volatile memory 24 returns to the state in which the fifth vehicle information Iv1 and Iv2 are stored (that is, the state in which the data synchronization is maintained).

ここで、記憶制御部28は、車両情報Iv2を複製する記憶制御が完了するまでの間、この複製以外での第1記憶領域30及び第2記憶領域32への書き込みを行わない。記憶データの復旧中に複製以外の書き込みを禁止することで、記憶状態に関する異常の発生を防止することができる。 Here, the storage control unit 28 does not write to the first storage area 30 and the second storage area 32 other than the duplication until the storage control for replicating the vehicle information Iv2 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.

第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 first storage area 30 By duplicating the vehicle information Iv1 from, it is possible to shift to the latest storage state.

この場合、記憶制御部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 number storage area 30n and writes it to the second number storage area 32n, and [2] (Iv2 ← Iv1) th. A storage control is performed in which the vehicle information Iv1 in the 1 information storage area 30v is duplicated and written in the second information storage area 32v. Instead of duplicating the number of rewrites Nr1, the count-updated number of rewrites Nr2 may be written in the second number storage area 32n.

第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 first storage area 30 and the second storage area 32 other than the duplication until the storage control for replicating the vehicle information Iv1 is completed. Do not write. As a result, the non-volatile memory 24 is in a state of storing the sixth vehicle information Iv1 and Iv2 (that is, a state in which data synchronization is maintained).

第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 first storage area 30n is not an unused value (Nr1 = 6), and the number of rewrites Nr2 stored in the second storage area 32n is an unused value. (That is, Nr2 = 0). In this case, the memory control unit 28 determines that only the vehicle information Iv1 is the latest.

つまり、書換回数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 number storage area 30n and writes it to the second number storage area 32n, and [2] (Iv2 ← Iv1) th. A storage control is performed in which the vehicle information Iv1 in the 1 information storage area 30v is duplicated and written in the second information storage area 32v.

第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 first storage area 30 and the second storage area 32 other than the duplication until the storage control for replicating the vehicle information Iv1 is completed. Do not write. As a result, the non-volatile memory 24 is in a state of storing the sixth vehicle information Iv1 and Iv2 (that is, a state in which data synchronization is maintained).

第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 non-volatile memory 24. That is, the non-volatile memory 24 maintains a state in which the vehicle information Iv1 and Iv2 for the sixth time are stored (a state in which data synchronization is maintained).

[エンジン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 engine ECU 12 is mounted on the vehicle and stores the vehicle information Iv1 and Iv2 indicating the state of the vehicle. [1] The non-volatile memory 24 having the first storage area 30 and the second storage area 32. [2] The volatile memory 26 that stores at least the number of rewrites Nr1 and Nr2 of the vehicle information Iv1 and Iv2, and [3] the storage control unit 28 that controls the storage of the non-volatile memory 24 and the volatile memory 26. [4] The first storage area 30 includes a first information storage area 30v in which vehicle information Iv1 is stored and a first number storage area 30n in which rewrite count Nr1 is stored, and [5] a second. The storage area 32 includes a second information storage area 32v in which the vehicle information Iv2 is stored, and a second information storage area 32n in which the rewrite count Nr2 is stored.

そして、[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 number storage area 30n to the volatile memory 26 before starting the update of the first information storage area 30v, and (6b). ) An unused value (= 0) that is not used for counting the number of rewrites Nr1 is written in the first number storage area 30n. [7] After the update of the first information storage area 30v is completed, the storage control unit 28 counts and updates the rewrite count Nr1 read from (7a) the volatile memory 26, and (7b) enters the first information storage area 30n. Performs memory control for writing.

そして、[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 number storage area 32n to the volatile memory 26 before starting the update of the second information storage area 32v, and (8b). ) An unused value (= 0) that is not used for counting the number of rewrites Nr2 is written in the second number storage area 32n. [9] After the update of the second information storage area 32v is completed, the storage control unit 28 counts and updates the rewrite count Nr2 read from (9a) the volatile memory 26, and (9b) enters the second information storage area 32n. Performs memory control for writing.

このように構成することで、例えば、電力の瞬断によって揮発性メモリ26に一時的に記憶された情報が消失した場合であっても、現在格納されている2つの書換回数Nr1、Nr2の数値関係(単独値又は相対値)に基づいて第1記憶領域30及び第2記憶領域32の更新状況を判別可能となり、その後に必要な対処を施すことで記憶データを適切に復旧することができる。これにより、不揮発性メモリ24の使用容量を減らしつつ、記憶データの信頼性を確保することができる。 With this configuration, for example, even if the information temporarily stored in the volatile memory 26 is lost due to a momentary power interruption, the two currently stored numerical values Nr1 and Nr2 are rewritten. The update status of the first storage area 30 and the second storage area 32 can be determined based on the relationship (single value or 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 24.

また、車両のイグニッションスイッチ20のオフ動作に応じて、電力の供給が停止されるエンジンECU12に適用することがより好ましい。エンジン16を切った後のセルフシャットダウン機能を備えていない車両では、揮発性メモリ26のデータバックアップを取得できないので特に効果的である。 Further, it is more preferable to apply it to the engine ECU 12 in which the supply of electric power is stopped according to the off operation of the ignition switch 20 of the vehicle. It is particularly effective in a vehicle that does not have a self-shutdown function after the engine 16 is turned off because the data backup of the volatile memory 26 cannot be obtained.

[補足]
なお、この発明は、上述した実施形態に限定されるものではなく、この発明の主旨を逸脱しない範囲で自由に変更できることは勿論である。或いは、技術的に矛盾が生じない範囲で各々の構成を任意に組み合わせてもよい。
[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 first storage area 30 → the second storage area 32, but in the reverse update order (that is, the second storage area 32 → the first storage area 30). You may. Further, as long as data synchronization is maintained, the update order does not have to be fixed.

また、この実施形態では、第1回数格納領域30nには1個の書換回数Nr1が格納されているが、同一の値を2個以上格納可能な領域を設け、いわゆるデータの多重化を図ってもよい。具体的には、すべての値が一致する場合に正常値として判定したり、多数決により格納値を決定したりすることで、データ同期処理の信頼性がさらに向上する。また、第2回数格納領域32n(書換回数Nr2)に関しても同様である。 Further, in this embodiment, one rewrite number Nr1 is stored in the first number storage area 30n, but an area capable of storing two or more of the same value is provided to achieve so-called data multiplexing. May be good. Specifically, when all the values match, it is determined as a normal value, or the stored value is determined by a majority vote, so that the reliability of the data synchronization process is further improved. The same applies to the second number storage area 32n (rewrite number Nr2).

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 failure diagnosis system 12 ... Engine ECU (vehicle information storage device)
14 ... Sensor group 16 ... Engine 18 ... Power supply 20 ... Ignition switch 22 ... Arithmetic processing device 24 ... Non-volatile memory 26 ... Volatile memory 28 ... Storage control unit 30 ... First storage area 30n ... First number storage area 30v ... First 1 Information storage area 32 ... Second storage area 32n ... Second number of times storage area 32v ... Second information storage area 34 ... Storage area Iv1, Iv2 ... Vehicle information Nr1, Nr2 ... Number of rewrites

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回数格納領域に格納された前記第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回数格納領域に格納された前記第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.
請求項2又は3に記載の車両情報記憶装置において、
前記記憶制御部は、前記車両情報を複製する記憶制御が完了するまでの間、前記複製以外での前記第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.
請求項1〜4のいずれか1項に記載の車両情報記憶装置において、
前記車両のイグニッションスイッチのオフ動作に応じて電力の供給が停止されることを特徴とする車両情報記憶装置。
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.
JP2017165456A 2017-08-30 2017-08-30 Vehicle information storage device Active JP6975581B2 (en)

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)

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