Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5933294B2 - Cumulative value information management apparatus for vehicle and cumulative value information management method - Google Patents
[go: Go Back, main page]

JP5933294B2 - Cumulative value information management apparatus for vehicle and cumulative value information management method - Google Patents

Cumulative value information management apparatus for vehicle and cumulative value information management method Download PDF

Info

Publication number
JP5933294B2
JP5933294B2 JP2012046816A JP2012046816A JP5933294B2 JP 5933294 B2 JP5933294 B2 JP 5933294B2 JP 2012046816 A JP2012046816 A JP 2012046816A JP 2012046816 A JP2012046816 A JP 2012046816A JP 5933294 B2 JP5933294 B2 JP 5933294B2
Authority
JP
Japan
Prior art keywords
individual
data
memory
pointer
information
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
JP2012046816A
Other languages
Japanese (ja)
Other versions
JP2013182492A (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.)
Yazaki Corp
Original Assignee
Yazaki Corp
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 Yazaki Corp filed Critical Yazaki Corp
Priority to JP2012046816A priority Critical patent/JP5933294B2/en
Publication of JP2013182492A publication Critical patent/JP2013182492A/en
Application granted granted Critical
Publication of JP5933294B2 publication Critical patent/JP5933294B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measurement Of Distances Traversed On The Ground (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Description

本発明は、車両の計器板等に装備される走行距離計などの用途に利用可能な車両用累積値情報管理装置および累積値情報管理方法に関する。   The present invention relates to a vehicle cumulative value information management apparatus and a cumulative value information management method that can be used for applications such as an odometer mounted on a vehicle instrument panel or the like.

自動車などの多くの車両においては、車両の製造時から現在までの累積走行距離を表示する走行距離計を搭載している。このような走行距離計については、常に正しい走行距離を表示できるように様々な工夫が必要になる。   Many vehicles such as automobiles are equipped with an odometer that displays the accumulated mileage from the time of manufacture of the vehicle to the present. For such an odometer, various ideas are required so that the correct mileage can always be displayed.

特に、電気的な処理によって走行距離を表示するデジタル走行距離計の場合には、車両からの電力供給が遮断された状態でも距離のデータが消滅しないように考慮する必要がある。また、エラーの発生によって表示する走行距離に大きな誤差が発生しないように、管理するデータの信頼性を高める必要がある。   In particular, in the case of a digital odometer that displays the mileage by electrical processing, it is necessary to consider that the distance data does not disappear even when the power supply from the vehicle is cut off. In addition, it is necessary to improve the reliability of data to be managed so that a large error does not occur in the displayed travel distance due to the occurrence of an error.

この種のデジタル走行距離計に関する従来技術が、特許文献1に開示されている。特許文献1に開示されているように、この種のデジタル走行距離計では、走行距離のデータを保存するために不揮発性メモリを用いている。また、不揮発性メモリ上の複数のアドレスのメモリ領域を使って走行距離のデータを保持している。このような特別な制御により、走行距離データの信頼性を高めることができる。   Japanese Patent Application Laid-Open No. 2004-133867 discloses a conventional technique related to this type of digital odometer. As disclosed in Patent Document 1, this type of digital odometer uses a non-volatile memory to store mileage data. In addition, the data on the travel distance is held using memory areas of a plurality of addresses on the nonvolatile memory. Such special control can improve the reliability of the travel distance data.

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

一般的な車両の走行距離計については、従来より、表示可能な累積走行距離の最大値を100万kmまでとすることが求められている。しかし、近年では表示可能な累積走行距離の最大値を1000万kmまで増やすことに関する市場の要望もある。   Conventional odometers for vehicles have conventionally been required to have a maximum displayable cumulative mileage of up to 1 million km. However, in recent years, there has been a market demand for increasing the maximum value of the cumulative mileage that can be displayed to 10 million km.

例えば、1アドレスあたり16ビット(1ワード)の構成を有する不揮発性メモリを使う場合を想定すると、1アドレスのメモリで「65536」種類の数値を記憶できる。従って、例えば16個のアドレスのメモリを使い、各アドレスのメモリの数値を加算して合計を算出する場合を想定すると、記憶可能な数値の種類D1は次式で表される。
D1=65,536×16=1,048,576
For example, assuming that a nonvolatile memory having a configuration of 16 bits (one word) per address is used, “65536” types of numerical values can be stored in the memory of one address. Accordingly, for example, assuming that a memory is used with 16 addresses and the sum of the memory values of each address is added to calculate the sum, the storable numerical value type D1 is expressed by the following equation.
D1 = 65,536 × 16 = 1,048,576

この場合、各メモリ領域の数値の最小単位を「1km」と仮定すると、0km〜1048576kmの範囲の走行距離を記憶できる。つまり、表示可能な累積走行距離の最大値を100万kmまでとする要求に対応できる。   In this case, assuming that the minimum unit of the numerical value of each memory area is “1 km”, the travel distance in the range of 0 km to 1048576 km can be stored. That is, it is possible to respond to a request to set the maximum value of the accumulated mileage that can be displayed to 1 million km.

もしも、上記と同じ条件で表示可能な累積走行距離の最大値を1000万kmまで増やす場合を想定すると、上記の10倍の160個のアドレスのメモリを使う必要がある。この場合に記憶可能な数値の種類D2は次式で表される。
D2=65,536×160=10,485,760
If it is assumed that the maximum value of the accumulated mileage that can be displayed under the same conditions as described above is increased to 10 million km, it is necessary to use a memory with 160 addresses which is ten times the above. In this case, the numerical value type D2 that can be stored is expressed by the following equation.
D2 = 65,536 × 160 = 10,485,760

つまり、表示可能な累積走行距離の最大値を100万kmから1000万kmまで増やそうとすると、必要な不揮発性メモリの容量が10倍に増えてしまう。従って、走行距離計の製造コストの大幅な上昇は避けられない。   That is, if the maximum value of the cumulative mileage that can be displayed is increased from 1 million km to 10 million km, the required capacity of the non-volatile memory increases 10 times. Therefore, a significant increase in the manufacturing cost of the odometer is inevitable.

一方、不揮発性メモリはデータの書き換えによって劣化する。従って、不揮発性メモリに対するデータ書き込み時やデータ読み出し時のデータエラーの発生を抑制するために、不揮発性メモリの各アドレスの書き換え回数を制限する必要がある。書き換え回数の上限は、例えば100万回程度である。   On the other hand, the nonvolatile memory is deteriorated by data rewriting. Therefore, it is necessary to limit the number of rewrites of each address of the nonvolatile memory in order to suppress the occurrence of a data error at the time of data writing to or reading from the nonvolatile memory. The upper limit of the number of rewrites is, for example, about 1 million times.

しかし、例えば1000万kmまでの走行距離の表示に対応しようとすると、1km毎に距離データを更新する場合に、データ更新回数が最大で1000万回になる。従って、不揮発性メモリが劣化する可能性があり、1000万kmまでの走行距離の表示には耐えられない。   However, for example, if it is intended to support the display of the travel distance up to 10 million km, when the distance data is updated every 1 km, the data update count becomes 10 million times at the maximum. Therefore, there is a possibility that the nonvolatile memory may be deteriorated, and it is not possible to withstand the display of the travel distance up to 10 million km.

本発明は、上述した事情に鑑みてなされたものであり、その目的は、非常に大きな累積値を管理対象とする場合であっても、必要とするメモリの容量を大幅に増やすことなく、信頼性の高い累積値を得ることが可能な車両用累積値情報管理装置および累積値情報管理方法を提供することにある。   The present invention has been made in view of the above-described circumstances, and the object thereof is to achieve reliable operation without significantly increasing the required memory capacity even when a very large cumulative value is to be managed. It is an object of the present invention to provide a vehicle cumulative value information management apparatus and a cumulative value information management method capable of obtaining a highly cumulative value.

前述した目的を達成するために、本発明に係る車両用累積値情報管理装置は、下記(1)〜()を特徴としている。
(1) 車両上で検出される計測結果の累積値を保持し、前記累積値を最新の情報に逐次更新するように管理する車両用累積値情報管理装置であって、
データを保持する不揮発性記憶部と、
前記不揮発性記憶部にアクセスして前記不揮発性記憶部が保持するデータを更新するデータ管理部と、
を備え、
前記不揮発性記憶部は、
前記累積値の一部分を表す数値をそれぞれ保持する複数の個別情報メモリが、複数のアドレスに渡って規則的に配置されたデータエリアと、
前記データエリアに存在する前記個別情報メモリの数と同数の個別ポインタ情報メモリが、前記データエリア外の複数のアドレスに渡って規則的に配置されたポインタエリアと、
を有し、
前記データ管理部は、前記データエリアの複数の個別情報メモリと、前記ポインタエリアの複数の個別ポインタ情報メモリとを互いに対応付けて管理し、
前記データ管理部は、前記データエリアのデータを更新する毎に、前記複数の個別ポインタ情報メモリの中で記憶内容の更新対象とするメモリの位置を順次に切り替え、
前記データ管理部は、前記データエリアのデータを更新する際、前回更新した前記個別ポインタ情報メモリに対して次の順番の前記個別ポインタ情報メモリの記憶内容をインクリメントして今回更新すると共に、今回記憶内容が更新された個別ポインタ情報メモリに対応する前記個別情報メモリの記憶内容をインクリメントして更新し、
前記データ管理部は、前記データエリアに存在する前記複数の個別情報メモリの記憶内容に基づいて、前記累積値を把握する
こと。
) 上記(1)の構成の車両用累積値情報管理装置であって、
前記データ管理部は、前記データエリアの個別情報メモリの記憶内容が予め定めた閾値を超えた場合に、異常な状態とみなして予め定めた特別な処理を実行する
こと。
) 上記(1)の構成の車両用累積値情報管理装置であって、
前記データ管理部は、計測結果に所定値の変化が検出される毎に、前記データエリアの記憶内容を更新する
こと。
In order to achieve the above-described object, the vehicle cumulative value information management apparatus according to the present invention is characterized by the following (1) to ( 3 ).
(1) A vehicle cumulative value information management device that holds a cumulative value of measurement results detected on a vehicle and manages the cumulative value so as to be sequentially updated to the latest information,
A non-volatile storage for holding data;
A data management unit that accesses the nonvolatile storage unit and updates data held by the nonvolatile storage unit;
With
The nonvolatile storage unit is
A plurality of individual information memories each holding a numerical value representing a part of the cumulative value, a data area regularly arranged over a plurality of addresses,
A pointer area in which the same number of individual pointer information memories as the number of the individual information memories existing in the data area are regularly arranged over a plurality of addresses outside the data area;
Have
The data management unit manages a plurality of individual information memories in the data area and a plurality of individual pointer information memories in the pointer area in association with each other,
Each time the data management unit updates the data in the data area, the position of the memory to be updated of the stored contents is sequentially switched among the plurality of individual pointer information memories.
When updating the data in the data area, the data management unit updates and updates the stored contents of the individual pointer information memory in the next order with respect to the previously updated individual pointer information memory and stores the current data Updating the content stored in the individual information memory corresponding to the individual pointer information memory whose content has been updated;
The data management unit grasps the accumulated value based on storage contents of the plurality of individual information memories existing in the data area.
( 2 ) The vehicle cumulative value information management device configured as described in (1) above,
The data management unit considers an abnormal state and executes a predetermined special process when the storage content of the individual information memory of the data area exceeds a predetermined threshold.
( 3 ) A vehicle cumulative value information management device configured as described in (1) above,
The data management unit updates the stored contents of the data area each time a change in a predetermined value is detected in the measurement result.

上記(1)の構成の車両用累積値情報管理装置によれば、累積値を表す数値を複数の個別情報メモリに分散した状態で保持するので、各々の個別情報メモリに対するデータ更新の回数を減らすことができ、不揮発性記憶部のメモリ劣化を抑制できる
また、複数の個別ポインタ情報メモリを有するので、各々の個別ポインタ情報メモリのデータ更新の回数を減らすことができ、不揮発性記憶部のメモリ劣化を抑制できる。
また、更新対象の個別情報メモリ及び個別ポインタ情報メモリを順次に切り替えるので、これらに対する更新回数を均一化することができる。例えば、n個の個別情報メモリ及びn個の個別ポインタ情報メモリを有する場合には、各々のメモリの更新回数を全体の(1/n)に減らすことができる。従って、不揮発性記憶部のメモリ劣化を抑制できる。
上記()の構成の車両用累積値情報管理装置によれば、各々の個別情報メモリの更新回数が閾値を超えてメモリが劣化する前に、異常な状態として検出することができる。
上記()の構成の車両用累積値情報管理装置によれば、前記データエリアの記憶内容を更新する回数を減らすことが可能になる。
According to the vehicle cumulative value information management apparatus having the configuration (1), since the numerical value representing the cumulative value is held in a state of being distributed to the plurality of individual information memories, the number of data updates to each individual information memory is reduced. And memory deterioration of the nonvolatile storage unit can be suppressed .
In addition, since a plurality of individual pointer information memories are provided, the number of times of data update of each individual pointer information memory can be reduced, and memory deterioration of the nonvolatile storage unit can be suppressed.
In addition, since the individual information memory to be updated and the individual pointer information memory are sequentially switched, the number of updates for these can be made uniform. For example, when n individual information memories and n individual pointer information memories are provided, the number of times each memory is updated can be reduced to the total (1 / n). Accordingly, it is possible to suppress memory deterioration of the nonvolatile storage unit.
According to the vehicle cumulative value information management apparatus having the above configuration ( 2 ), it is possible to detect an abnormal state before the number of updates of each individual information memory exceeds a threshold value and the memory deteriorates.
According to the vehicle cumulative value information management apparatus having the configuration ( 3 ), it is possible to reduce the number of times the stored contents of the data area are updated.

前述した目的を達成するために、本発明に係る累積値情報管理方法は、下記()を特徴としている。
) 逐次検出される計測結果の累積値を保持し、前記累積値を最新の情報に逐次更新するように管理する累積値情報管理方法であって、
前記累積値の一部分を表す数値をそれぞれ保持する複数の個別情報メモリが、複数のアドレスに渡って規則的に配置されたデータエリアと、
前記データエリアに存在する前記個別情報メモリの数と同数の個別ポインタ情報メモリが、前記データエリア外の複数のアドレスに渡って規則的に配置されたポインタエリアと、
を、所定の不揮発性記憶部上に割り当て、
前記データエリアの複数の個別情報メモリと、前記ポインタエリアの複数の個別ポインタ情報メモリとを互いに対応付けて管理し、
前記データエリアのデータを更新する毎に、前記複数の個別ポインタ情報メモリの中で記憶内容の更新対象とするメモリの位置を順次に切り替え、
前記データエリアのデータを更新する際、前回更新した前記個別ポインタ情報メモリに対して次の順番の前記個別ポインタ情報メモリの記憶内容をインクリメントして今回更新すると共に、今回記憶内容が更新された個別ポインタ情報メモリに対応する前記個別情報メモリの記憶内容をインクリメントして更新し、
前記データエリアに存在する前記複数の個別情報メモリの記憶内容に基づいて、前記累積値を把握する
こと。
In order to achieve the above-mentioned object, the cumulative value information management method according to the present invention is characterized by the following ( 4 ).
( 4 ) A cumulative value information management method for maintaining a cumulative value of measurement results that are sequentially detected and managing the cumulative value so as to be sequentially updated to the latest information,
A plurality of individual information memories each holding a numerical value representing a part of the cumulative value, a data area regularly arranged over a plurality of addresses,
A pointer area in which the same number of individual pointer information memories as the number of the individual information memories existing in the data area are regularly arranged over a plurality of addresses outside the data area;
Are allocated on a predetermined nonvolatile storage unit,
Managing a plurality of individual information memories in the data area and a plurality of individual pointer information memories in the pointer area in association with each other;
Each time the data in the data area is updated, the position of the memory to be updated is sequentially switched among the plurality of individual pointer information memories,
When updating data in the data area, the storage contents of the individual pointer information memory in the next order are incremented with respect to the previously updated individual pointer information memory and updated this time, and the individual storage contents updated this time are updated. Increment and update the stored contents of the individual information memory corresponding to the pointer information memory,
Grasping the accumulated value based on the storage contents of the plurality of individual information memories existing in the data area.

上記()の構成の累積値情報管理方法によれば、累積値を表す数値を複数の個別情報メモリに分散した状態で保持するので、各々の個別情報メモリに対するデータ更新の回数を減らすことができ、不揮発性記憶部のメモリ劣化を抑制できる。
また、複数の個別ポインタ情報メモリを有するので、各々の個別ポインタ情報メモリのデータ更新の回数を減らすことができ、不揮発性記憶部のメモリ劣化を抑制できる。
また、更新対象の個別情報メモリ及び個別ポインタ情報メモリを順次に切り替えるので、これらに対する更新回数を均一化することができる。例えば、n個の個別情報メモリ及びn個の個別ポインタ情報メモリを有する場合には、各々のメモリの更新回数を全体の(1/n)に減らすことができる。従って、不揮発性記憶部のメモリ劣化を抑制できる。
According to the cumulative value information management method having the configuration of ( 4 ) above, since the numerical value representing the cumulative value is held in a state of being distributed to a plurality of individual information memories, the number of data updates to each individual information memory can be reduced. And memory degradation of the nonvolatile storage unit can be suppressed.
In addition, since a plurality of individual pointer information memories are provided, the number of times of data update of each individual pointer information memory can be reduced, and memory deterioration of the nonvolatile storage unit can be suppressed.
In addition, since the individual information memory to be updated and the individual pointer information memory are sequentially switched, the number of updates for these can be made uniform. For example, when n individual information memories and n individual pointer information memories are provided, the number of times each memory is updated can be reduced to the total (1 / n). Accordingly, it is possible to suppress memory deterioration of the nonvolatile storage unit.

本発明の車両用累積値情報管理装置および累積値情報管理方法によれば、非常に大きな累積値を管理対象とする場合であっても、必要とするメモリの容量を大幅に増やすことなく、信頼性の高い累積値を得ることが可能になる。例えば、上限が1000万km程度の走行距離の管理も可能になる。   According to the vehicle cumulative value information management apparatus and the cumulative value information management method of the present invention, even if a very large cumulative value is a management target, the reliability is increased without significantly increasing the required memory capacity. A highly accumulative value can be obtained. For example, it is possible to manage a travel distance having an upper limit of about 10 million km.

以上、本発明について簡潔に説明した。更に、以下に説明される発明を実施するための形態(以下、「実施形態」という。)を添付の図面を参照して通読することにより、本発明の詳細は更に明確化されるであろう。   The present invention has been briefly described above. Further, the details of the present invention will be further clarified by reading through a mode for carrying out the invention described below (hereinafter referred to as “embodiment”) with reference to the accompanying drawings. .

図1は、実施形態の車両用累積値情報管理装置の電気回路の構成例を示すブロック図である。FIG. 1 is a block diagram illustrating a configuration example of an electric circuit of the vehicle cumulative value information management device according to the embodiment. 図2は、不揮発性メモリ上に割り当てた各記憶領域の具体的な構成例を示す模式図である。FIG. 2 is a schematic diagram illustrating a specific configuration example of each storage area allocated on the nonvolatile memory. 図3は、図1に示した車両用累積値情報管理装置の動作に関するメインフローを示すフローチャートである。FIG. 3 is a flowchart showing a main flow relating to the operation of the vehicular cumulative value information management apparatus shown in FIG. 図4は、図3に示した走行距離記憶処理の詳細を示すフローチャートである。FIG. 4 is a flowchart showing details of the travel distance storing process shown in FIG. 図5は、図3に示した走行距離表示処理の詳細を示すフローチャートである。FIG. 5 is a flowchart showing details of the travel distance display process shown in FIG.

本発明の車両用累積値情報管理装置および累積値情報管理方法に関する具体的な実施形態について、各図を参照しながら以下に説明する。   Specific embodiments relating to the vehicle cumulative value information management apparatus and cumulative value information management method of the present invention will be described below with reference to the drawings.

<装置のハードウェア構成例>
本実施形態の車両用累積値情報管理装置の電気回路の構成例を図1に示す。具体的には、図1に示した車両用累積値情報管理装置は、車両の計器板に搭載される走行距離計10を構成している。
<Device hardware configuration example>
A configuration example of an electric circuit of the vehicle cumulative value information management apparatus according to the present embodiment is shown in FIG. Specifically, the vehicle cumulative value information management apparatus shown in FIG. 1 constitutes an odometer 10 mounted on the instrument panel of the vehicle.

この走行距離計10は、車両が製造された時から現在までの、車両の走行距離の累積値(積算値)をkm単位の数値として管理し表示することができる。本実施形態においては、最大で1000万kmの走行距離まで管理できるように構成してある。また、走行距離計10はユーザが指定した任意の時点からの走行距離を表示するトリップメータとして利用することもできる。   The odometer 10 can manage and display the cumulative value (integrated value) of the mileage of the vehicle from the time the vehicle is manufactured to the present as a numerical value in km. In the present embodiment, the maximum travel distance of 10 million km can be managed. The odometer 10 can also be used as a trip meter that displays the mileage from an arbitrary time point designated by the user.

図1に示すように、この走行距離計10は、マイクロコンピュータ(CPU)11、不揮発性メモリ12、揮発性メモリ(RAM)13、走行距離算出部14、不揮発性メモリアクセス部15、距離データ加算部16、モード切替部17、表示部18、入出力部(I/O)19、インタフェース(I/F)20及び21を備えている。   As shown in FIG. 1, the odometer 10 includes a microcomputer (CPU) 11, a nonvolatile memory 12, a volatile memory (RAM) 13, a mileage calculation unit 14, a nonvolatile memory access unit 15, and distance data addition. Unit 16, mode switching unit 17, display unit 18, input / output unit (I / O) 19, and interfaces (I / F) 20 and 21.

マイクロコンピュータ11は、予め内部に組み込まれているプログラムを読み出して実行することにより、走行距離計10の全体の制御に必要とされる様々な処理を実行する。具体的な処理の内容については後で説明する。   The microcomputer 11 executes various processes required for overall control of the odometer 10 by reading and executing a program incorporated therein in advance. Specific processing contents will be described later.

不揮発性メモリ12は、外部から電力を供給しない状態でもデータを保持することができる書き換え可能な半導体メモリであり、例えばフラッシュメモリにより構成される。なお、この不揮発性メモリ12は、書き換え可能な回数に上限がある。すなわち、データの書き換えを繰り返すと劣化が生じ、データの書き込みや読み出しの際にエラーが発生したり、書き換えができない状態になる可能性がある。書き換え回数の上限については、例えば100万回程度が想定される。   The non-volatile memory 12 is a rewritable semiconductor memory that can hold data even when no power is supplied from the outside, and is configured by a flash memory, for example. The nonvolatile memory 12 has an upper limit on the number of times it can be rewritten. That is, when data rewrite is repeated, deterioration occurs, and there is a possibility that an error occurs during data writing or reading, or that data cannot be rewritten. The upper limit of the number of rewrites is assumed to be about 1 million times, for example.

揮発性メモリ13は、マイクロコンピュータ11等のアクセスによりデータの読み出し及び書き込みが可能な半導体メモリである。揮発性メモリ13は電力の供給が遮断されるとデータが消滅するので、一時的なデータを保存するために利用される。   The volatile memory 13 is a semiconductor memory that can read and write data by accessing the microcomputer 11 or the like. The volatile memory 13 is used to store temporary data because data disappears when power supply is cut off.

走行距離算出部14は、走行距離を算出するための処理を行う。不揮発性メモリアクセス部15は、不揮発性メモリ12にアクセスするための特別な処理を行う。距離データ加算部16は、車両の所定距離の走行毎に、距離の算出に用いるデータの数値を加算するための処理を行う。   The travel distance calculation unit 14 performs a process for calculating the travel distance. The nonvolatile memory access unit 15 performs a special process for accessing the nonvolatile memory 12. The distance data adding unit 16 performs a process for adding the numerical value of the data used for calculating the distance every time the vehicle travels a predetermined distance.

なお、走行距離算出部14、不揮発性メモリアクセス部15、距離データ加算部16の各機能については、マイクロコンピュータ11の中に組み込むことも可能であるが、不揮発性メモリ12の内容(走行距離の値)の不正な書き換え等を防止するために、十分な安全対策を施す必要がある。   The functions of the travel distance calculation unit 14, the nonvolatile memory access unit 15, and the distance data addition unit 16 can be incorporated into the microcomputer 11, but the contents of the nonvolatile memory 12 (the travel distance It is necessary to take sufficient safety measures to prevent unauthorized rewriting of (value).

モード切替部17は、ユーザの入力操作に従って様々なモードの切替を行う。例えば、表示する内容として、走行距離の累積値と、トリップメータの計測距離とを切り替えたり、トリップメータの計測距離をリセットすることができる。   The mode switching unit 17 switches various modes according to a user input operation. For example, as the contents to be displayed, the cumulative value of the travel distance and the measurement distance of the trip meter can be switched, or the measurement distance of the trip meter can be reset.

表示部18は、1000万kmまでの走行距離の「1km」単位の数値を表示することが可能な表示器であり、例えば液晶表示器により構成される。表示部18は、入出力部19を介してマイクロコンピュータ11と接続されている。マイクロコンピュータ11の制御により、走行距離の数値を表示部18に表示することができる。   The display unit 18 is a display capable of displaying a numerical value in units of “1 km” of a travel distance up to 10 million km, and is configured by a liquid crystal display, for example. The display unit 18 is connected to the microcomputer 11 via the input / output unit 19. The numerical value of the travel distance can be displayed on the display unit 18 by the control of the microcomputer 11.

インタフェース20の入力には、車両側から距離パルス(車速パルスとも言う)の電気信号が入力される。この距離パルスには、車両のトランスミッション出力軸が所定量回動する毎に1つのパルス信号が現れる。従って、車両の走行距離は発生した距離パルスのパルス数に比例する。マイクロコンピュータ11は、インタフェース20を介して入力される距離パルスのパルス数を計数する。この計数値から車両の走行距離を把握できる。   An electric signal of a distance pulse (also referred to as a vehicle speed pulse) is input to the interface 20 from the vehicle side. In this distance pulse, one pulse signal appears every time the transmission output shaft of the vehicle rotates by a predetermined amount. Therefore, the travel distance of the vehicle is proportional to the number of generated distance pulses. The microcomputer 11 counts the number of distance pulses input via the interface 20. From this count value, the travel distance of the vehicle can be grasped.

インタフェース21の入力には、イグニッション(IGN)スイッチと接続された電源からの信号が印加される。マイクロコンピュータ11は、インタフェース21を介してイグニッションのオンオフ状態を把握する。   A signal from a power source connected to an ignition (IGN) switch is applied to the input of the interface 21. The microcomputer 11 grasps the ignition on / off state via the interface 21.

<記憶領域の構成例>
走行距離の累積値のデータを保持するために、不揮発性メモリ12上に割り当てた各記憶領域の具体的な構成例を図2に示す。
<Configuration example of storage area>
FIG. 2 shows a specific configuration example of each storage area allocated on the nonvolatile memory 12 in order to hold the accumulated data of the travel distance.

図2に示すように、不揮発性メモリ12上には、走行距離データエリア12a及びポインタエリア12bを設けてある。走行距離データエリア12aは、連続的に並んだ20個の個別情報メモリDM(1)〜DM(20)で構成されている。また、ポインタエリア12bは、連続的に並んだ20個の個別ポインタ情報メモリPM(1)〜PM(20)で構成されている。   As shown in FIG. 2, a travel distance data area 12 a and a pointer area 12 b are provided on the nonvolatile memory 12. The travel distance data area 12a is composed of 20 individual information memories DM (1) to DM (20) that are continuously arranged. The pointer area 12b is composed of 20 individual pointer information memories PM (1) to PM (20) arranged continuously.

個別情報メモリDM(1)〜DM(20)の各々は、不揮発性メモリ12上で互いに隣接する2つのアドレスのメモリ領域として構成されている。例えば、1番目の個別情報メモリDM(1)は、アドレスが「1」のメモリと、アドレスが「2」のメモリとの組み合わせとして構成してある。また、2番目の個別情報メモリDM(2)は、アドレスが「3」のメモリと、アドレスが「4」のメモリとの組み合わせとして構成してある。   Each of the individual information memories DM (1) to DM (20) is configured as a memory area of two addresses adjacent to each other on the nonvolatile memory 12. For example, the first individual information memory DM (1) is configured as a combination of a memory having an address “1” and a memory having an address “2”. The second individual information memory DM (2) is configured as a combination of a memory whose address is “3” and a memory whose address is “4”.

本実施形態においては、不揮発性メモリ12の各々のアドレスのメモリは、16ビット分(「word」単位)の2値データ(0/1)を保持するメモリにより構成されている。従って、2つのアドレスのメモリで構成される個別情報メモリDM(1)〜DM(20)の各々は、32ビット構成の2値データを保持することができる。   In the present embodiment, the memory at each address of the nonvolatile memory 12 is configured by a memory that holds binary data (0/1) of 16 bits (in units of “word”). Accordingly, each of the individual information memories DM (1) to DM (20) configured by memories of two addresses can hold binary data having a 32-bit configuration.

32ビット構成(「long」単位=2単位の「word」)の2値データは、10進数表記で、「0」から「4,294,967,295」までの範囲の数値を表現することができる。また、16進数表記では、「00000000」から「FFFFFFFF」までの範囲の数値になる。   Binary data in a 32-bit configuration (“long” unit = 2 “word”) can represent a numerical value in a range from “0” to “4,294,967,295” in decimal notation. it can. In hexadecimal notation, the numerical value is in the range from “00000000” to “FFFFFFFF”.

図2においては、不揮発性メモリ12上の各アドレスのメモリの内容を、16進数表記の16ビットデータ、すなわち、「0000」から「FFFF」までの範囲のデータとして示してある。   In FIG. 2, the contents of the memory at each address on the nonvolatile memory 12 are shown as 16-bit data in hexadecimal notation, that is, data in a range from “0000” to “FFFF”.

従って、個別情報メモリDM(1)〜DM(20)の各々は、10進数表記で「0」から「4,294,967,295」までの範囲の任意の数値を記憶することができる。16進数表記では、「00000000」から「FFFFFFFF」までの範囲の数値になる。   Accordingly, each of the individual information memories DM (1) to DM (20) can store any numerical value in the range from “0” to “4,294,967,295” in decimal notation. In hexadecimal notation, the numerical value is in the range from “00000000” to “FFFFFFFF”.

一方、個別ポインタ情報メモリPM(1)〜PM(20)の各々は、不揮発性メモリ12上の1つのアドレスのメモリ領域として構成されている。従って、個別ポインタ情報メモリPM(1)〜PM(20)の各々は、10進数表記で「0」から「65,535」までの範囲の任意の数値を記憶することができる。16進数表記では、「0000」から「FFFF」までの範囲の数値になる。   On the other hand, each of the individual pointer information memories PM (1) to PM (20) is configured as a memory area of one address on the nonvolatile memory 12. Accordingly, each of the individual pointer information memories PM (1) to PM (20) can store an arbitrary numerical value in a range from “0” to “65,535” in decimal notation. In hexadecimal notation, the numerical value is in the range from “0000” to “FFFF”.

本実施形態においては、個別情報メモリDM(1)〜DM(20)の数(20個)と個別ポインタ情報メモリPM(1)〜PM(20)の数とが同数になっている。また、20個の個別ポインタ情報メモリPM(1)〜PM(20)は、それぞれ個別情報メモリDM(1)〜DM(20)の各々に対応付けてある。   In the present embodiment, the number of individual information memories DM (1) to DM (20) (20) and the number of individual pointer information memories PM (1) to PM (20) are the same. Further, the 20 individual pointer information memories PM (1) to PM (20) are associated with the individual information memories DM (1) to DM (20), respectively.

ポインタエリア12bの個別ポインタ情報メモリPM(1)〜PM(20)の内容は、走行距離データエリア12aの20個の個別情報メモリDM(1)〜DM(20)の中で処理対象とすべき特定の位置を示すために利用する。   The contents of the individual pointer information memories PM (1) to PM (20) in the pointer area 12b should be processed in the 20 individual information memories DM (1) to DM (20) in the travel distance data area 12a. Used to indicate a specific location.

<記憶領域の利用方法の説明>
図2に示した不揮発性メモリ12上の走行距離データエリア12a及びポインタエリア12bの利用方法の概要について、以下に説明する。
<Description of how to use the storage area>
An outline of a method of using the travel distance data area 12a and the pointer area 12b on the nonvolatile memory 12 shown in FIG. 2 will be described below.

<メモリの初期値>
走行距離データエリア12aの個別情報メモリDM(1)〜DM(20)については、各々の初期値を16進数表記で「FFFFFFFF」(10進数では「−1」)とする。また、ポインタエリア12bの個別ポインタ情報メモリPM(1)〜PM(20)の各々の初期値を16進数表記で「FFFF」(10進数では「−1」)とする。
<Initial value of memory>
For the individual information memories DM (1) to DM (20) in the travel distance data area 12a, the initial value is “FFFFFFFF” in hexadecimal notation (“−1” in decimal). The initial value of each of the individual pointer information memories PM (1) to PM (20) in the pointer area 12b is “FFFF” in hexadecimal notation (“−1” in decimal).

<記憶する累積値の更新>
記憶すべき最新の累積値が1単位増える毎に、具体的には走行距離が「1km」増える毎に、個別情報メモリDM(1)〜DM(20)のいずれか1つの内容をインクリメント(「+1」だけ増やす)するように記憶するデータの内容を更新する。
<Updating accumulated values to be stored>
Each time the latest cumulative value to be stored increases by one unit, specifically, every time the travel distance increases by “1 km”, the contents of any one of the individual information memories DM (1) to DM (20) are incremented (“ The content of the stored data is updated so as to increase by “+1”.

走行距離データエリア12aの内容を更新する毎に、更新対象のメモリ位置を個別情報メモリDM(1)〜DM(20)の中で順番に切り替える。このメモリ位置を簡単に把握できるようにポインタエリア12bを利用する。具体的には、次のように処理する。   Each time the contents of the mileage data area 12a are updated, the memory location to be updated is switched in order in the individual information memories DM (1) to DM (20). The pointer area 12b is used so that the memory position can be easily grasped. Specifically, the process is as follows.

不揮発性メモリ12のデータの更新毎に、個別ポインタ情報メモリPM(1)〜PM(20)のいずれか1つの内容をインクリメント(「+1」だけ増やす)するように記憶するデータの内容を更新する。また、データを更新する個別ポインタ情報メモリPM(1)〜PM(20)を順番に切り替える。   Each time the data in the nonvolatile memory 12 is updated, the content of the stored data is updated so that the content of any one of the individual pointer information memories PM (1) to PM (20) is incremented (increased by “+1”). . Further, the individual pointer information memories PM (1) to PM (20) for updating data are switched in order.

つまり、走行距離が「1km」増える毎に、PM(1)の更新、PM(2)の更新、PM(3)の更新、・・・を順番に行う。また、最後のPM(20)を更新した後は、最初のPM(1)の位置に戻って同じように更新を繰り返す。   That is, every time the travel distance increases by “1 km”, PM (1) update, PM (2) update, PM (3) update,... After the last PM (20) is updated, the update is repeated in the same manner by returning to the position of the first PM (1).

この場合、図2に示すポインタエリア12bのように、個別ポインタ情報メモリPM(1)〜PM(20)の中でデータの内容が異なる境界の位置は容易に把握できる。つまり、図2に示す例では、2番目の個別ポインタ情報メモリPM(2)が最後に更新したメモリ位置である。ここで、個別ポインタ情報メモリPM(2)は2番目の個別情報メモリ(アドレスが3、4のメモリ)DM(2)と対応付けてあるので、走行距離データエリア12aにおける更新対象を個別情報メモリDM(2)として特定することができる。この場合は個別情報メモリDM(2)のデータをインクリメントする。   In this case, as in the pointer area 12b shown in FIG. 2, the position of the boundary where the data contents are different in the individual pointer information memories PM (1) to PM (20) can be easily grasped. That is, in the example shown in FIG. 2, the second individual pointer information memory PM (2) is the memory location last updated. Here, since the individual pointer information memory PM (2) is associated with the second individual information memory (memory having addresses 3 and 4) DM (2), the update target in the travel distance data area 12a is designated as the individual information memory. It can be specified as DM (2). In this case, the data in the individual information memory DM (2) is incremented.

上記のような処理を行うことにより、走行距離データエリア12aの20個の個別情報メモリDM(1)〜DM(20)を均等な頻度で更新することができる。つまり、データ書き換え回数を全更新回数の(1/20)に抑制できる。また、ポインタエリア12bについても、個別ポインタ情報メモリPM(1)〜PM(20)を均等な頻度で更新することができ、データ書き換え回数を全更新回数の(1/20)に抑制できる。これにより、不揮発性メモリ12の劣化を抑制できる。   By performing the processing as described above, the 20 individual information memories DM (1) to DM (20) in the travel distance data area 12a can be updated with equal frequency. That is, the number of data rewrites can be suppressed to (1/20) of the total number of updates. Also, for the pointer area 12b, the individual pointer information memories PM (1) to PM (20) can be updated with equal frequency, and the number of data rewrites can be suppressed to (1/20) of the total number of updates. Thereby, deterioration of the non-volatile memory 12 can be suppressed.

<記憶される累積値の説明>
上記のような処理を行う場合には、本来の累積値が複数に分割され、累積値の一部分の値が、20個の個別情報メモリDM(1)〜DM(20)にそれぞれ記憶される。
<Description of stored cumulative value>
When the processing as described above is performed, the original accumulated value is divided into a plurality of values, and a part of the accumulated value is stored in each of the 20 individual information memories DM (1) to DM (20).

従って、個別情報メモリDM(1)の内容、DM(2)の内容、DM(3)の内容、・・・、DM(20)の内容の総和が本来の累積値になる。つまり、20個の個別情報メモリDM(1)〜DM(20)のデータの全体を加算することにより、記憶した走行距離の数値が得られる。   Therefore, the sum of the contents of the individual information memory DM (1), the contents of DM (2), the contents of DM (3),..., DM (20) becomes the original accumulated value. That is, by adding all the data of the 20 individual information memories DM (1) to DM (20), a numerical value of the stored travel distance can be obtained.

但し、図2に示した例では、個別情報メモリDM(1)〜DM(20)の初期値が「−1」(16進数表記で「FFFFFFFF」)なので、DM(1)〜DM(20)の各々が記憶しているデータの数値に「+1」を加算するように修正する必要がある。   However, in the example shown in FIG. 2, since the initial values of the individual information memories DM (1) to DM (20) are “−1” (“FFFFFFFF” in hexadecimal notation), DM (1) to DM (20) Need to be corrected so that “+1” is added to the numerical value of the data stored in each.

図2に示した例では、個別情報メモリDM(1)及びDM(2)の内容が「00000000」であり、DM(3)〜DM(20)の内容が「FFFFFFFF」になっている。つまり、DM(1)及びDM(2)の内容はそれぞれ10進数の「1km」に対応し、DM(3)〜DM(20)の内容はそれぞれ10進数の「0km」に対応する。これらの内容の全体の総和、すなわち走行距離は「2km」である。   In the example illustrated in FIG. 2, the contents of the individual information memories DM (1) and DM (2) are “00000000”, and the contents of DM (3) to DM (20) are “FFFFFFFF”. That is, the contents of DM (1) and DM (2) each correspond to the decimal number “1 km”, and the contents of DM (3) to DM (20) each correspond to the decimal number “0 km”. The total sum of these contents, that is, the travel distance is “2 km”.

<アドレスの計算>
図2に示した例では、走行距離データエリア12aの先頭のメモリアドレスが「1」であり、個別情報メモリDM(1)〜DM(20)の各々が互いに隣接する2つのアドレスを占有するように順番に、すなわち規則的に並んでいる。また、ポインタエリア12bの先頭のメモリアドレスが「41」であり、個別ポインタ情報メモリPM(1)〜PM(20)の各々が1つのアドレスを占有するように順番に、すなわち規則的に並んでいる。
<Address calculation>
In the example shown in FIG. 2, the first memory address of the travel distance data area 12a is “1”, and each of the individual information memories DM (1) to DM (20) occupies two adjacent addresses. Are arranged in order, ie regularly. The leading memory address of the pointer area 12b is “41”, and the individual pointer information memories PM (1) to PM (20) each occupy one address in order, that is, regularly. Yes.

従って、個別ポインタ情報メモリPM(1)〜PM(20)の各々と対応関係にある個別情報メモリDM(1)〜DM(20)のメモリアドレスは、次のように簡単に算出することができる。
Apt=Ax×2−81 ・・・(1)
Apt:ポインタが示すアドレス
Ax:注目するn番目の個別ポインタ情報メモリPM(n)自身のアドレス
Therefore, the memory addresses of the individual information memories DM (1) to DM (20) having a correspondence relationship with each of the individual pointer information memories PM (1) to PM (20) can be easily calculated as follows. .
Apt = Ax × 2-81 (1)
Apt: the address indicated by the pointer Ax: the address of the n-th individual pointer information memory PM (n) itself of interest

例えば、図2に示す例では、ポインタエリア12bに順番に並んでいる個別ポインタ情報メモリPM(1)〜PM(20)の中で、データが初期値の「FFFF」から「0000」に最後に最後に更新されたメモリが2番目のPM(2)であることが分かる。つまり、隣接するデータが異なる「0000」と「FFFF」の境界を見つけることにより、PM(2)を特定できる。   For example, in the example shown in FIG. 2, in the individual pointer information memories PM (1) to PM (20) sequentially arranged in the pointer area 12b, the data is finally changed from the initial value “FFFF” to “0000”. It can be seen that the last updated memory is the second PM (2). That is, PM (2) can be specified by finding the boundary between “0000” and “FFFF” in which adjacent data are different.

この場合、最後に更新した個別ポインタ情報メモリPM(2)のアドレス(Ax)が「42」なので、ポインタが示すアドレスAptは次のように算出される。
Apt=42×2−81=3
In this case, since the address (Ax) of the last updated individual pointer information memory PM (2) is “42”, the address Apt indicated by the pointer is calculated as follows.
Apt = 42 × 2-81 = 3

つまり、図2に示すような状況のタイミングにおいては、アドレスが「3」の16ビットメモリと次のアドレス「4」の16ビットメモリとで構成される2番目の個別情報メモリDM(2)を処理対象として選択すればよい。   That is, at the timing of the situation as shown in FIG. 2, the second individual information memory DM (2) composed of the 16-bit memory with the address “3” and the 16-bit memory with the next address “4” is stored. What is necessary is just to select as a process target.

<走行距離計10の処理の内容>
<メインフロー>
図1に示した走行距離計10の動作に関するメインフローを図3に示す。この動作は、図1に示したマイクロコンピュータ11、走行距離算出部14、不揮発性メモリアクセス部15、及び距離データ加算部16の制御によって実現する。車両側の電源から走行距離計10に電力が供給されると、走行距離計10が図3の動作を開始し、ステップS11の処理に進む。
<Contents of processing of odometer 10>
<Main flow>
The main flow regarding the operation of the odometer 10 shown in FIG. 1 is shown in FIG. This operation is realized by the control of the microcomputer 11, the travel distance calculation unit 14, the nonvolatile memory access unit 15, and the distance data addition unit 16 illustrated in FIG. 1. When electric power is supplied to the odometer 10 from the power source on the vehicle side, the odometer 10 starts the operation of FIG. 3 and proceeds to the process of step S11.

ステップS11では、マイクロコンピュータ11がイグニッションスイッチのオンオフを示す信号をインタフェース21から入力し、オンオフを識別する。オンになるとステップS12に進む。   In step S11, the microcomputer 11 inputs a signal indicating ON / OFF of the ignition switch from the interface 21, and identifies ON / OFF. When turned on, the process proceeds to step S12.

ステップS12では、マイクロコンピュータ11が距離パルスの信号をインタフェース20から入力し、この信号に基づいて走行距離の増加分に関する演算処理を行う。すなわち、入力された距離パルスのパルス数を計数する。この計数値が走行距離に比例するので、予め定めた定数を用いて計数値を走行距離に換算することができる。マイクロコンピュータ11は、ステップS12で検出した距離パルスの計数値に基づいて、走行距離の増加分を検出し、この増加分を、次のステップS13で処理する。   In step S <b> 12, the microcomputer 11 inputs a distance pulse signal from the interface 20, and performs a calculation process related to an increase in travel distance based on this signal. That is, the number of input distance pulses is counted. Since the count value is proportional to the travel distance, the count value can be converted into the travel distance using a predetermined constant. The microcomputer 11 detects an increase in travel distance based on the count value of the distance pulse detected in step S12, and processes this increase in the next step S13.

ステップS13では、不揮発性メモリ12が保持している走行距離のデータが、ステップS12で検出した最新の走行距離の増加分を反映するように、マイクロコンピュータ11の制御により不揮発性メモリ12の記憶データを更新する。但し、実際の不揮発性メモリ12のデータ更新に際しては、不正なデータ改竄を防止するために、不揮発性メモリアクセス部15及び距離データ加算部16が制御を実施する。ステップS13の詳細については後で説明する。   In step S13, the data stored in the nonvolatile memory 12 is controlled by the microcomputer 11 so that the travel distance data held in the nonvolatile memory 12 reflects the latest increase in travel distance detected in step S12. Update. However, when data is actually updated in the nonvolatile memory 12, the nonvolatile memory access unit 15 and the distance data addition unit 16 perform control in order to prevent unauthorized data tampering. Details of step S13 will be described later.

ステップS14では、不揮発性メモリ12が保持している走行距離のデータを読み出して、このデータに基づいて現在の走行距離の累積値を把握し、この走行距離を表示するように、マイクロコンピュータ11が制御を実施する。ステップS14の詳細については後で説明する。   In step S14, the microcomputer 11 reads the travel distance data held in the non-volatile memory 12, grasps the cumulative value of the current travel distance based on this data, and displays the travel distance. Implement control. Details of step S14 will be described later.

<走行距離記憶処理の詳細>
図3に示した「走行距離記憶処理」の詳細を図4に示す。図4の処理について、以下に説明する。
<Details of mileage storage processing>
FIG. 4 shows details of the “travel distance storing process” shown in FIG. The process of FIG. 4 will be described below.

ステップS21では、マイクロコンピュータ11は前述のステップS12で検出した距離パルスの計数値データ、すなわち走行距離の増加分を処理対象のデータとして取り込む。   In step S <b> 21, the microcomputer 11 takes in the count pulse data of the distance pulse detected in step S <b> 12 described above, that is, the increase in the travel distance as processing target data.

ステップS22では、マイクロコンピュータ11は、ステップS21で取り込んだ走行距離の増加分が計測単位である「1km」に到達したか否かを識別する。「1km」に到達した場合は次のステップS23に進み、到達していない場合はこの処理を終了する。また、走行距離の増加分が「1km」に到達した場合は、ステップS12で距離パルスを計数するために用いるカウンタの計数値を0にリセットするか、又は「1km」分を減算した計数値に更新する。   In step S22, the microcomputer 11 identifies whether or not the increase in the travel distance captured in step S21 has reached “1 km” which is a measurement unit. When it reaches “1 km”, the process proceeds to the next step S23, and when it has not reached, this process is terminated. If the increase in travel distance reaches “1 km”, the count value of the counter used for counting the distance pulses is reset to 0 in step S12, or the count value obtained by subtracting “1 km” is subtracted. Update.

ステップS23では、マイクロコンピュータ11は、図2に示したポインタエリア12bの中の、y番目の個別ポインタ情報メモリPM(y)をインクリメント(+1)して更新する。処理対象の個別ポインタ情報メモリPM(y)は、ポインタエリア12bの20個の個別ポインタ情報メモリPM(1)〜PM(20)の中で、最後に更新したメモリの次のアドレスに存在するメモリとする。但し、更新したメモリが存在しない初期状態では、最初のメモリを処理対象とする。   In step S23, the microcomputer 11 increments (+1) and updates the y-th individual pointer information memory PM (y) in the pointer area 12b shown in FIG. The individual pointer information memory PM (y) to be processed is a memory existing at the next address of the last updated memory among the 20 individual pointer information memories PM (1) to PM (20) in the pointer area 12b. And However, in the initial state where there is no updated memory, the first memory is the processing target.

例えば、最初に「1km」の距離の走行を検出した場合には、全ての個別ポインタ情報メモリPM(1)〜PM(20)のデータが初期値の「FFFF」であるので、1番目の個別ポインタ情報メモリPM(1)をPM(y)として選択する。   For example, when traveling at a distance of “1 km” is first detected, the data of all the individual pointer information memories PM (1) to PM (20) is the initial value “FFFF”, so that the first individual The pointer information memory PM (1) is selected as PM (y).

また、2回目に「1km」の距離の走行を検出した場合には、1番目の個別ポインタ情報メモリPM(1)のデータが「0000」であり、2番目の個別ポインタ情報メモリPM(2)のデータが「FFFF」である。従って、2番目の個別ポインタ情報メモリPM(2)をPM(y)として選択する。   In addition, when traveling for a distance of “1 km” is detected for the second time, the data in the first individual pointer information memory PM (1) is “0000”, and the second individual pointer information memory PM (2) Is “FFFF”. Accordingly, the second individual pointer information memory PM (2) is selected as PM (y).

同様に、3回目に「1km」の距離の走行を検出した場合には、1番目及び2番目の個別ポインタ情報メモリPM(1)、PM(2)のデータが「0000」であり、3番目の個別ポインタ情報メモリPM(3)のデータが「FFFF」である。従って、3番目の個別ポインタ情報メモリPM(3)をPM(y)として選択する。   Similarly, when traveling for a distance of “1 km” is detected for the third time, the data in the first and second individual pointer information memories PM (1) and PM (2) are “0000”, and the third The data of the individual pointer information memory PM (3) is “FFFF”. Therefore, the third individual pointer information memory PM (3) is selected as PM (y).

ステップS23では、上述の特定の個別ポインタ情報メモリPM(y)について、そのデータを1回インクリメント(+1)するように更新する。
例えば、最初に「1km」の距離の走行を検出した場合には、処理対象のPM(1)のデータが初期値の「FFFF」(10進数の「−1」)なので、このデータを「0000」(10進数の「0」)に更新する。また、2回目に「1km」の距離の走行を検出した場合には、処理対象のPM(2)のデータが初期値の「FFFF」なので、このデータを「0000」に更新する。また、例えばPM(y)のデータが「0000」の場合には、PM(y)のデータを「0001」に更新する。同様に、PM(y)のデータが「0001」の場合には、PM(y)のデータを「0002」に更新する。
In step S23, the above-described specific individual pointer information memory PM (y) is updated so that the data is incremented once (+1).
For example, when traveling for a distance of “1 km” is first detected, the data of PM (1) to be processed is the initial value “FFFF” (decimal number “−1”). "(Decimal number" 0 "). Further, when traveling for a distance of “1 km” is detected for the second time, the data of the PM (2) to be processed is the initial value “FFFF”, so this data is updated to “0000”. For example, when the data of PM (y) is “0000”, the data of PM (y) is updated to “0001”. Similarly, when the data of PM (y) is “0001”, the data of PM (y) is updated to “0002”.

ステップS24では、マイクロコンピュータ11は、ポインタエリア12bの内容を利用して、今回の走行距離データエリア12aの更新対象位置を特定する。
例えば、直前に実行したステップS23において、2番目の個別ポインタ情報メモリPM(2)を「FFFF」から「0000」に更新して図2に示すような状態になった場合を想定する。この場合は、PM(2)から対応関係にある2番目の個別情報メモリDM(2)の位置、つまりアドレス「3」を特定する。実際には次式によりアドレスを特定する。
Apt=Ay×2−81 ・・・(2)
Apt:該当するPM(y)が示すアドレス
Ay:注目するy番目の個別ポインタ情報メモリPM(y)自身のアドレス
In step S24, the microcomputer 11 specifies the update target position of the current travel distance data area 12a using the contents of the pointer area 12b.
For example, it is assumed that the second individual pointer information memory PM (2) is updated from “FFFF” to “0000” in the step S23 executed immediately before, and the state is as shown in FIG. In this case, the position of the second individual information memory DM (2) having a correspondence relationship from PM (2), that is, the address “3” is specified. Actually, the address is specified by the following equation.
Apt = Ay × 2-81 (2)
Apt: address indicated by the corresponding PM (y) Ay: address of the y-th individual pointer information memory PM (y) of interest

ステップS25では、マイクロコンピュータ11は、ステップS24で特定したアドレス(Apt)の16ビットのデータと、次のアドレス(Apt+1)の16ビットデータとを結合して、1つの個別情報メモリDMの32ビットデータとして扱う。   In step S25, the microcomputer 11 combines the 16-bit data of the address (Apt) specified in step S24 and the 16-bit data of the next address (Apt + 1) to generate 32 bits of one individual information memory DM. Treat as data.

例えば図2に示す状態では、ポインタエリア12bが示すポインタ(PT)のアドレス(Apt)が「3」なので、不揮発性メモリ12上のアドレスが「3」のデータと、アドレスが「4」のデータとを結合する。つまり、ポインタ(PT)が示す記憶領域を32ビット構成の個別情報メモリDM(2)として扱う。   For example, in the state shown in FIG. 2, the address (Apt) of the pointer (PT) indicated by the pointer area 12b is “3”, so the data on the nonvolatile memory 12 is “3” and the data is “4”. And combine. That is, the storage area indicated by the pointer (PT) is handled as a 32-bit individual information memory DM (2).

ステップS26では、マイクロコンピュータ11は、ポインタ(PT)が示す位置の32ビット構成の個別情報メモリDMのデータの数値を、予め定めた閾値と比較する。この閾値は、データ更新回数の上限を規制するための値である。本実施形態においては、閾値を「500,000」に定めてある。この閾値は必要に応じて設定変更することが可能である。個別情報メモリDMのデータの数値が閾値以下の場合は次のステップS27に進み、閾値を超える場合はステップS28に進む。   In step S26, the microcomputer 11 compares the numerical value of the data in the 32-bit individual information memory DM at the position indicated by the pointer (PT) with a predetermined threshold value. This threshold is a value for regulating the upper limit of the number of data updates. In the present embodiment, the threshold is set to “500,000”. This threshold value can be changed as needed. When the numerical value of the data in the individual information memory DM is equal to or smaller than the threshold value, the process proceeds to the next step S27, and when it exceeds the threshold value, the process proceeds to step S28.

ステップS27では、今回処理対象とする1つの個別情報メモリDMが記憶している32ビットデータの内容を1回インクリメント(+1)して増やすように更新処理する。
例えば、ステップS27で1番目の個別情報メモリDM(1)を初回に処理する場合には、初期値の「FFFFFFFF」(10進数の「−1」)をインクリメントして「00000000」(10進数の「0」)に更新する。
In step S27, update processing is performed so that the contents of 32-bit data stored in one individual information memory DM to be processed this time are incremented once (+1) and increased.
For example, when the first individual information memory DM (1) is processed for the first time in step S27, the initial value “FFFFFFFF” (decimal number “−1”) is incremented to “00000000” (decimal number). ("0").

また、1番目の個別情報メモリDM(1)を2回目に処理する場合には、1回目の更新結果である「00000000」から「00000001」に更新する。同様に、1番目の個別情報メモリDM(1)を3回目に処理する場合には、2回目の更新結果である「00000001」から「00000002」に更新する。   Further, when the first individual information memory DM (1) is processed for the second time, the first update result “00000000” is updated to “00000001”. Similarly, when the first individual information memory DM (1) is processed for the third time, the second update result “00000001” is updated to “00000002”.

実際には、「1km」の走行を検出する毎に、ポインタ(PT)の示す位置が切り替わる(S23)ので、1番目の個別情報メモリDM(1)を更新した後、DM(2)、DM(3)、DM(4)のデータが順番に更新される。そして、20個の個別情報メモリDM(1)〜DM(20)の更新が終了した後で、最初の位置に戻って1番目の個別情報メモリDM(1)を再び更新する。   Actually, every time the travel of “1 km” is detected, the position indicated by the pointer (PT) is switched (S23). Therefore, after updating the first individual information memory DM (1), DM (2), DM (3) Data of DM (4) is updated in order. Then, after the updating of the 20 individual information memories DM (1) to DM (20) is completed, the first individual information memory DM (1) is updated again by returning to the first position.

従って、20個の個別情報メモリDM(1)〜DM(20)については、均等な頻度でそれぞれのデータが更新される。   Accordingly, each of the 20 individual information memories DM (1) to DM (20) is updated at an equal frequency.

ステップS28では、処理対象メモリのアドレスが最終アドレスか否かをマイクロコンピュータ11が識別する。最終アドレスでなければステップS19に進み、最終アドレスの場合はステップS30に進む。「最終アドレス」は、20番目の個別情報メモリDM(20)のアドレス(39)、あるいは20番目の個別ポインタ情報メモリPM(20)のアドレス(60)に相当する。
すなわち、走行距離データエリア12aの全ての個別情報メモリDMについて更新回数が閾値(例えば50万回)を越えてしまった場合にステップS30に進む。
In step S28, the microcomputer 11 identifies whether the address of the processing target memory is the final address. If it is not the final address, the process proceeds to step S19, and if it is the final address, the process proceeds to step S30. The “final address” corresponds to the address (39) of the 20th individual information memory DM (20) or the address (60) of the 20th individual pointer information memory PM (20).
That is, if the number of updates exceeds a threshold value (for example, 500,000 times) for all the individual information memories DM in the travel distance data area 12a, the process proceeds to step S30.

ステップS29では、ステップS23と同様に、マイクロコンピュータ11は、図2に示したポインタエリア12bの中で注目するy番目の個別ポインタ情報メモリPM(y)を前回の次の位置に切り替えて、この個別ポインタ情報メモリPM(y)のデータをインクリメントして更新する。   In step S29, similarly to step S23, the microcomputer 11 switches the y-th individual pointer information memory PM (y) of interest in the pointer area 12b shown in FIG. The data in the individual pointer information memory PM (y) is incremented and updated.

ステップS30では、マイクロコンピュータ11は所定の「記録容量オーバ処理」を実施する。すなわち、不揮発性メモリ12のデータ更新回数が上限値を超えるまで走行距離の記録を行ったので、「記録容量オーバ」として処理する。具体的には、「記録容量オーバ」であるため、これ以降は図3の処理を停止したり、あるいは表示部18の表示の点滅などの特別な制御を実施して警告を発する。   In step S30, the microcomputer 11 performs a predetermined “recording capacity over process”. That is, since the travel distance is recorded until the number of data updates in the nonvolatile memory 12 exceeds the upper limit value, it is processed as “recording capacity over”. Specifically, since the “recording capacity is exceeded”, the processing shown in FIG. 3 is stopped thereafter, or a special control such as blinking of the display on the display unit 18 is performed to issue a warning.

例えば、ステップS26で参照する閾値を「50万」に定めると、走行距離データエリア12aにある20個の個別情報メモリDM(1)〜DM(20)のそれぞれに対して「50万」回の更新を行った後に、ステップS30で「記録容量オーバ処理」が実行されることになる。この閾値を超える更新回数は、走行距離の1000万kmに相当する。   For example, if the threshold value referred to in step S26 is set to “500,000”, “500,000” times for each of the 20 individual information memories DM (1) to DM (20) in the travel distance data area 12a. After the update, the “recording capacity over process” is executed in step S30. The number of updates exceeding this threshold corresponds to a travel distance of 10 million km.

<走行距離表示処理の詳細>
図3に示した「走行距離表示処理」の詳細を図5に示す。図5の処理について、以下に説明する。
<Details of mileage display processing>
FIG. 5 shows details of the “travel distance display process” shown in FIG. The process of FIG. 5 will be described below.

ステップS41では、マイクロコンピュータ11は、不揮発性メモリ12上に存在する走行距離データエリア12aの範囲及び各個別情報メモリDMのアドレスを特定する。図2に示す例では、アドレスの「1」〜「40」の範囲の20個の個別情報メモリDM(1)〜DM(20)の数及び位置を特定する。また、アドレスの「41」以降のメモリは個別情報メモリDMではないことを認識する。   In step S41, the microcomputer 11 specifies the range of the travel distance data area 12a existing on the nonvolatile memory 12 and the address of each individual information memory DM. In the example shown in FIG. 2, the number and position of 20 individual information memories DM (1) to DM (20) in the range of addresses “1” to “40” are specified. Further, it recognizes that the memory after the address “41” is not the individual information memory DM.

実際には、走行距離データエリア12aの先頭アドレス「1」、各個別情報メモリDMが占有するメモリアドレスの数「2」、個別情報メモリDMの数「20」などを定数として予めプログラムの中などに組み込んでおくことにより、全ての個別情報メモリDM(1)〜DM(20)を特定できる。   Actually, the starting address “1” of the mileage data area 12a, the number of memory addresses “2” occupied by each individual information memory DM, the number “20” of the individual information memory DM, etc. are set as constants in the program in advance. As a result, all the individual information memories DM (1) to DM (20) can be specified.

ステップS42では、マイクロコンピュータ11が不揮発性メモリ12から記憶されているデータを読み込んで、現在の走行距離を算出する。例えば、図2に示すように、走行距離データエリア12aが20個の個別情報メモリDM(1)〜DM(20)で構成されている場合は、20個の個別情報メモリDM(1)〜DM(20)の各々の32ビット構成の記憶データを読み込み、これらに基づいて走行距離を算出する。走行距離は次式により算出される。
走行距離=「DM(1)のデータが表す数値+1」〜「DM(20)のデータが表す数値+1」の総和[km]
In step S42, the microcomputer 11 reads the data stored from the nonvolatile memory 12 and calculates the current travel distance. For example, as shown in FIG. 2, when the mileage data area 12a is composed of 20 individual information memories DM (1) to DM (20), 20 individual information memories DM (1) to DM The stored data of each 32-bit configuration of (20) is read, and the travel distance is calculated based on these. The travel distance is calculated by the following equation.
Travel distance = total [km] of “numeric value represented by DM (1) data + 1” to “numeric value represented by DM (20) data + 1”

なお、図2の例では各個別情報メモリDMのデータの初期値が「−1」(FFFFFFFF)なので、上記の式のように「+1」を加算して数値を補正する必要がある。   In the example of FIG. 2, since the initial value of the data in each individual information memory DM is “−1” (FFFFFFFF), it is necessary to correct the numerical value by adding “+1” as in the above formula.

ステップS43では、マイクロコンピュータ11がステップS42で取得した走行距離の数値を表示部18に出力して、運転者等に見えるように走行距離を表示する。   In step S43, the microcomputer 11 outputs the numerical value of the travel distance acquired in step S42 to the display unit 18, and displays the travel distance so that it can be seen by the driver or the like.

<走行距離計10の利点>
上述の走行距離計10は、1000万kmまでの走行距離を管理することができる。しかも、必要とされる不揮発性メモリ12のアドレス数は、図2の例では60であり、大きなメモリ容量の不揮発性メモリ12を必要としない。また、各個別情報メモリDMのデータ書き換え回数を抑制できるので、不揮発性メモリ12の劣化による誤動作を防止できる。更に、仮にいずれかの個別情報メモリDMに不具合が発生した場合であっても、複数の個別情報メモリDMが保持しているデータの規則性に基づいて、比較的誤差が少なく信頼性の高い走行距離を出力可能である。
<Advantages of odometer 10>
The odometer 10 described above can manage a mileage of up to 10 million km. Moreover, the number of addresses of the non-volatile memory 12 required is 60 in the example of FIG. 2, and the non-volatile memory 12 having a large memory capacity is not required. In addition, since the number of data rewrites in each individual information memory DM can be suppressed, malfunction due to deterioration of the nonvolatile memory 12 can be prevented. Furthermore, even if any individual information memory DM has a problem, it is possible to travel with a relatively low error and high reliability based on the regularity of data held in the plurality of individual information memories DM. The distance can be output.

<変形の可能性>
図2に示した記憶領域の構成は代表例であり、様々な変形が考えられる。例えば、走行距離データエリア12aを構成する個別情報メモリDMの数(20)や、ポインタエリア12bを構成する個別ポインタ情報メモリPMの数(20)は、必要に応じて変更できる。また、図2の例では、隣接する2つのアドレスのメモリを組み合わせて32ビット構成の個別情報メモリDMを構成しているが、個別情報メモリDMを構成するメモリの数(2)は必要に応じて変更できる。
<Possibility of deformation>
The configuration of the storage area shown in FIG. 2 is a representative example, and various modifications can be considered. For example, the number (20) of individual information memories DM constituting the travel distance data area 12a and the number (20) of individual pointer information memories PM constituting the pointer area 12b can be changed as necessary. In the example of FIG. 2, the individual information memory DM having the 32-bit configuration is configured by combining the memories of two adjacent addresses. However, the number (2) of the memories configuring the individual information memory DM is set as necessary. Can be changed.

また、上述の実施形態では1000万kmの走行距離まで対応する可能にするために、各個別情報メモリDMの書き換え回数の上限値を表す閾値を50万回に定めているが、書き換え回数の上限値は必要に応じて変更できる。例えば、個別情報メモリDMの数(20)を増やして書き換え回数の上限値(50万回)を下げることも考えられる。   In the above-described embodiment, in order to be able to cope with a traveling distance of 10 million km, the threshold value indicating the upper limit value of the number of rewrites of each individual information memory DM is set to 500,000 times. The value can be changed as needed. For example, it is conceivable to increase the number (20) of individual information memories DM and lower the upper limit (500,000 times) of the number of rewrites.

上述の実施形態では、車両用の走行距離計10に本発明を適用する場合を想定しているが、本発明は同じように大きな累積値を扱う様々な用途に適用できる。例えば、電気自動車における充電電力の累積値、放電電力の累積値、あるいは家庭内の電力使用量の累積値などを管理するために利用可能である。   In the above-described embodiment, it is assumed that the present invention is applied to the odometer 10 for a vehicle. However, the present invention can be applied to various uses for handling large cumulative values in the same manner. For example, it can be used to manage a cumulative value of charging power, a cumulative value of discharging power, or a cumulative value of power consumption in the home in an electric vehicle.

<補足説明>
(1)上述の車両用累積値情報管理装置(10)は、不揮発性記憶部(12)と、データ管理部(11,15,16)とを備える。また、前記不揮発性記憶部上には、図2に示すように、累積値の一部分を表す数値をそれぞれ保持する複数の個別情報メモリ(DM(1)〜DM(20))が、複数のアドレスに渡って規則的に配置されたデータエリア(12a)と、前記データエリア上の前記複数の個別情報メモリの中で、最後に更新した個別情報メモリの位置に関連する特定アドレス情報を保持するポインタエリア(12b)とを有する。また、前記データ管理部は、前記ポインタエリアに保持されている前記特定アドレス情報に基づいて、特定位置の個別情報メモリの記憶内容、および前記ポインタエリアが保持する特定アドレス情報を更新する(S23,S27)。また、前記データ管理部は、前記データエリアに存在する前記複数の個別情報メモリの記憶内容に基づいて、前記累積値を把握する(S41,S42)。
<Supplementary explanation>
(1) The vehicle cumulative value information management device (10) includes a nonvolatile storage unit (12) and a data management unit (11, 15, 16). Further, as shown in FIG. 2, a plurality of individual information memories (DM (1) to DM (20)) each holding a numerical value representing a part of the accumulated value are stored on the non-volatile storage unit at a plurality of addresses. A data area (12a) regularly arranged over the pointer, and a pointer for holding specific address information related to the position of the last updated individual information memory among the plurality of individual information memories on the data area Area (12b). Further, the data management unit updates the storage contents of the individual information memory at the specific position and the specific address information held in the pointer area based on the specific address information held in the pointer area (S23, S27). Further, the data management unit grasps the accumulated value based on the storage contents of the plurality of individual information memories existing in the data area (S41, S42).

(2)また、前記ポインタエリア(12b)は、図2に示すように前記データエリアに存在する前記個別情報メモリの数と同数の規則的に配置された複数の個別ポインタ情報メモリ(PM(1)〜PM(20))を有する。また、前記データ管理部は、前記データエリアの複数の個別情報メモリと、前記ポインタエリアの複数の個別ポインタ情報メモリとを互いに関連付けて管理する。   (2) Further, as shown in FIG. 2, the pointer area (12b) includes a plurality of regularly arranged individual pointer information memories (PM (1) equal to the number of the individual information memories existing in the data area. ) To PM (20)). The data management unit manages the plurality of individual information memories in the data area and the plurality of individual pointer information memories in the pointer area in association with each other.

(3)また、図2に示すように前記データ管理部は、前記不揮発性記憶部上の複数アドレスの記憶領域を、前記データエリアの各々の個別情報メモリ(DM)に割り当て、各々の個別情報メモリの位置を対応する前記個別ポインタ情報メモリ(12b)の内容に基づいて把握する。   (3) Also, as shown in FIG. 2, the data management unit allocates a storage area of a plurality of addresses on the nonvolatile storage unit to each individual information memory (DM) of the data area, and each individual information The memory position is grasped based on the contents of the corresponding individual pointer information memory (12b).

(4)また、前記データ管理部は、前記データエリア(12a)のデータを更新する際に、前記複数の個別情報メモリ(DM(1)〜DM(20))の中で更新対象とするメモリの位置を順次に切り替える(S23)。   (4) Further, the data management unit, when updating the data in the data area (12a), the memory to be updated among the plurality of individual information memories (DM (1) to DM (20)) Are sequentially switched (S23).

(5)また、前記データ管理部は、前記データエリアのデータを更新する際に、前記複数の個別情報メモリの中で更新対象とするメモリの位置、ならびに前記複数の個別ポインタ情報メモリの中で更新対象とするメモリの位置を順次に切り替える(S23)。   (5) When the data management unit updates the data in the data area, the data management unit updates the location of the memory to be updated in the plurality of individual information memories, and the plurality of individual pointer information memories. The memory locations to be updated are sequentially switched (S23).

(6)また、前記データ管理部は、前記データエリアの個別情報メモリの記憶内容が予め定めた閾値(例えば50万回)を超えた場合(S26)に、異常な状態とみなして予め定めた特別な処理を実行する(S30)。   (6) In addition, the data management unit determines that the stored contents of the individual information memory in the data area exceed a predetermined threshold value (for example, 500,000 times) (S26) and regards it as an abnormal state. A special process is executed (S30).

(7)また、前記データ管理部は、走行距離などの計測結果に所定値の変化(例えば1kmの走行距離)が検出される毎に(S22)、前記データエリアの記憶内容を更新する(S27)。   (7) The data management unit updates the stored contents of the data area each time a change in a predetermined value (for example, a 1 km travel distance) is detected in a measurement result such as a travel distance (S22) (S27). ).

(8)また、上述の累積値情報管理方法においては、累積値の一部分を表す数値をそれぞれ保持する複数の個別情報メモリが、複数のアドレスに渡って規則的に配置されたデータエリアと、前記データエリア上の前記複数の個別情報メモリの中で、最後に更新した個別情報メモリの位置に関連する特定アドレス情報を保持するポインタエリアとを、所定の不揮発性記憶部上に割り当てる。また、前記ポインタエリアに保持されている前記特定アドレス情報に基づいて、特定位置の個別情報メモリの記憶内容、および前記ポインタエリアが保持する特定アドレス情報を更新する。また、前記データエリアに存在する前記複数の個別情報メモリの記憶内容に基づいて、前記累積値を把握する。   (8) In the cumulative value information management method described above, a plurality of individual information memories each holding a numerical value representing a part of the cumulative value are arranged in a data area regularly arranged over a plurality of addresses, Among the plurality of individual information memories on the data area, a pointer area holding specific address information related to the position of the last updated individual information memory is allocated on a predetermined nonvolatile storage unit. Further, based on the specific address information held in the pointer area, the stored contents of the individual information memory at the specific position and the specific address information held in the pointer area are updated. Further, the cumulative value is grasped based on the storage contents of the plurality of individual information memories existing in the data area.

10 走行距離計
11 マイクロコンピュータ
12 不揮発性メモリ
12a 走行距離データエリア
12b ポインタエリア
13 揮発性メモリ
14 走行距離算出部
15 不揮発性メモリアクセス部
16 距離データ加算部
17 モード切替部
18 表示部
19 入出力部
20,21 インタフェース
DM 個別情報メモリ
PM 個別ポインタ情報メモリ
DESCRIPTION OF SYMBOLS 10 Odometer 11 Microcomputer 12 Non-volatile memory 12a Travel distance data area 12b Pointer area 13 Volatile memory 14 Travel distance calculation part 15 Non-volatile memory access part 16 Distance data addition part 17 Mode switching part 18 Display part 19 Input / output part 20, 21 Interface DM Individual information memory PM Individual pointer information memory

Claims (2)

車両上で検出される計測結果の累積値を保持し、前記累積値を最新の情報に逐次更新するように管理する車両用累積値情報管理装置であって、
データを保持する不揮発性記憶部と、
前記不揮発性記憶部にアクセスして前記不揮発性記憶部が保持するデータを更新するデータ管理部と、
を備え、
前記不揮発性記憶部は、
前記累積値の一部分を表す数値をそれぞれ保持する複数の個別情報メモリが、複数のアドレスに渡って規則的に配置されたデータエリアと、
前記データエリアに存在する前記個別情報メモリの数と同数の個別ポインタ情報メモリが、前記データエリア外の複数のアドレスに渡って規則的に配置されたポインタエリアと、
を有し、
前記データ管理部は、前記データエリアの複数の個別情報メモリと、前記ポインタエリアの複数の個別ポインタ情報メモリとを互いに対応付けて管理し、
前記データ管理部は、前記データエリアのデータを更新する毎に、前記複数の個別ポインタ情報メモリの中で記憶内容の更新対象とするメモリの位置を順次に切り替え、
前記データ管理部は、前記データエリアのデータを更新する際、前回更新した前記個別ポインタ情報メモリに対して次の順番の前記個別ポインタ情報メモリの記憶内容をインクリメントして今回更新すると共に、今回記憶内容が更新された前記個別ポインタ情報メモリに対応する前記個別情報メモリの記憶内容をインクリメントして更新し、
前記データ管理部は、前記データエリアに存在する前記複数の個別情報メモリの記憶内容に基づいて、前記累積値を把握する
ことを特徴とする車両用累積値情報管理装置。
A vehicle cumulative value information management device that holds a cumulative value of measurement results detected on a vehicle and manages the cumulative value so as to be sequentially updated to the latest information,
A non-volatile storage for holding data;
A data management unit that accesses the nonvolatile storage unit and updates data held by the nonvolatile storage unit;
With
The nonvolatile storage unit is
A plurality of individual information memories each holding a numerical value representing a part of the cumulative value, a data area regularly arranged over a plurality of addresses,
A pointer area in which the same number of individual pointer information memories as the number of the individual information memories existing in the data area are regularly arranged over a plurality of addresses outside the data area;
Have
The data management unit manages a plurality of individual information memories in the data area and a plurality of individual pointer information memories in the pointer area in association with each other,
Each time the data management unit updates the data in the data area, the position of the memory to be updated of the stored contents is sequentially switched among the plurality of individual pointer information memories.
When updating the data in the data area, the data management unit updates and updates the stored contents of the individual pointer information memory in the next order with respect to the previously updated individual pointer information memory and stores the current data Updating the content stored in the individual information memory corresponding to the individual pointer information memory whose content has been updated,
The said data management part grasps | ascertains the said cumulative value based on the memory content of these individual information memory which exists in the said data area. The cumulative value information management apparatus for vehicles characterized by the above-mentioned.
逐次検出される計測結果の累積値を保持し、前記累積値を最新の情報に逐次更新するように管理する累積値情報管理方法であって、
前記累積値の一部分を表す数値をそれぞれ保持する複数の個別情報メモリが、複数のアドレスに渡って規則的に配置されたデータエリアと、
前記データエリアに存在する前記個別情報メモリの数と同数の個別ポインタ情報メモリが、前記データエリア外の複数のアドレスに渡って規則的に配置されたポインタエリアと、
を、所定の不揮発性記憶部上に割り当て、
前記データエリアの複数の個別情報メモリと、前記ポインタエリアの複数の個別ポインタ情報メモリとを互いに対応付けて管理し、
前記データエリアのデータを更新する毎に、前記複数の個別ポインタ情報メモリの中で記憶内容の更新対象とするメモリの位置を順次に切り替え、
前記データエリアのデータを更新する際、前回更新した前記個別ポインタ情報メモリに対して次の順番の前記個別ポインタ情報メモリの記憶内容をインクリメントして今回更新すると共に、今回記憶内容が更新された個別ポインタ情報メモリに対応する前記個別情報メモリの記憶内容をインクリメントして更新し、
前記データエリアに存在する前記複数の個別情報メモリの記憶内容に基づいて、前記累積値を把握する
ことを特徴とする累積値情報管理方法。
A cumulative value information management method for maintaining a cumulative value of measurement results that are sequentially detected and managing the cumulative value so as to be sequentially updated to the latest information,
A plurality of individual information memories each holding a numerical value representing a part of the cumulative value, a data area regularly arranged over a plurality of addresses,
A pointer area in which the same number of individual pointer information memories as the number of the individual information memories existing in the data area are regularly arranged over a plurality of addresses outside the data area;
Are allocated on a predetermined nonvolatile storage unit,
Managing a plurality of individual information memories in the data area and a plurality of individual pointer information memories in the pointer area in association with each other;
Each time the data in the data area is updated, the position of the memory to be updated is sequentially switched among the plurality of individual pointer information memories,
When updating data in the data area, the storage contents of the individual pointer information memory in the next order are incremented with respect to the previously updated individual pointer information memory and updated this time, and the individual storage contents updated this time are updated. Increment and update the stored contents of the individual information memory corresponding to the pointer information memory,
The accumulated value information management method characterized by grasping the accumulated value based on the storage contents of the plurality of individual information memories existing in the data area.
JP2012046816A 2012-03-02 2012-03-02 Cumulative value information management apparatus for vehicle and cumulative value information management method Active JP5933294B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012046816A JP5933294B2 (en) 2012-03-02 2012-03-02 Cumulative value information management apparatus for vehicle and cumulative value information management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012046816A JP5933294B2 (en) 2012-03-02 2012-03-02 Cumulative value information management apparatus for vehicle and cumulative value information management method

Publications (2)

Publication Number Publication Date
JP2013182492A JP2013182492A (en) 2013-09-12
JP5933294B2 true JP5933294B2 (en) 2016-06-08

Family

ID=49273083

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012046816A Active JP5933294B2 (en) 2012-03-02 2012-03-02 Cumulative value information management apparatus for vehicle and cumulative value information management method

Country Status (1)

Country Link
JP (1) JP5933294B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102171018B (en) * 2009-11-25 2015-12-02 阿巴特巴西利奥&C.普通合伙公司 Pneumatic valve devices for molded articles of plastics material ejected from molds

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2870679B2 (en) * 1993-03-24 1999-03-17 矢崎総業株式会社 Vehicle mileage recording method
JP3627943B2 (en) * 1995-12-28 2005-03-09 矢崎総業株式会社 Electronic odometer
JP3749037B2 (en) * 1999-06-04 2006-02-22 矢崎総業株式会社 Electronic odometer device
JP5725717B2 (en) * 2010-01-28 2015-05-27 矢崎総業株式会社 Vehicle mileage storage device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102171018B (en) * 2009-11-25 2015-12-02 阿巴特巴西利奥&C.普通合伙公司 Pneumatic valve devices for molded articles of plastics material ejected from molds

Also Published As

Publication number Publication date
JP2013182492A (en) 2013-09-12

Similar Documents

Publication Publication Date Title
US8909870B2 (en) Cache evictions from data cache based on content of address translation table cache and address translation table
JP2009003843A (en) Flash ROM data management device and flash ROM data management method
JP5933294B2 (en) Cumulative value information management apparatus for vehicle and cumulative value information management method
JPH0692898B2 (en) Electronic odometer
JP4417124B2 (en) Mileage display device
JPH01152311A (en) Electronic type odo/tripmeter for vehicle
CN110827440A (en) Driving mileage recording method, driving mileage recording system and automobile
JP3003543B2 (en) Electronic odometer
JP5983512B2 (en) Writing device
JP5725717B2 (en) Vehicle mileage storage device
JP3627943B2 (en) Electronic odometer
JP2850667B2 (en) Electronic odometer
JP6317653B2 (en) Electronic control device for automobile and data storage method
JPH05215567A (en) Electronic travel distance meter
JP2870679B2 (en) Vehicle mileage recording method
JPH0565010B2 (en)
JP2917794B2 (en) Electronic odometer
JP2917726B2 (en) Non-volatile counter
JP2858519B2 (en) Electronic odometer
KR101230348B1 (en) Distance meter of eeprom address mapping type with improved security and credibility
JP5643708B2 (en) Electronic control unit
JP2018005764A (en) Storage unit and storage area management method
JP2850927B2 (en) Electronic odometer
JP4140459B2 (en) Traveling distance integrating device for moving objects
JP2848102B2 (en) Electronic odometer

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20150122

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150220

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20151209

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160112

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160225

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: 20160405

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160502

R150 Certificate of patent or registration of utility model

Ref document number: 5933294

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250