JP4140459B2 - Traveling distance integrating device for moving objects - Google Patents
Traveling distance integrating device for moving objects Download PDFInfo
- Publication number
- JP4140459B2 JP4140459B2 JP2003180983A JP2003180983A JP4140459B2 JP 4140459 B2 JP4140459 B2 JP 4140459B2 JP 2003180983 A JP2003180983 A JP 2003180983A JP 2003180983 A JP2003180983 A JP 2003180983A JP 4140459 B2 JP4140459 B2 JP 4140459B2
- Authority
- JP
- Japan
- Prior art keywords
- travel distance
- stored
- value
- volatile memory
- distance
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Measurement Of Distances Traversed On The Ground (AREA)
- Instrument Panels (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、不揮発性メモリを用いて移動体の走行距離を積算する移動体の走行距離積算装置に関する。
【0002】
【従来の技術】
従来、自動車用のメータ用の電子制御装置においては、イグニッションスイッチSWがオンされたとき、中央演算装置(CPU)が、不揮発性メモリから走行距離(これは、イグニッションスイッチSWのオフ以前に積算された走行距離である)を呼出し、この呼出された走行距離と速度センサからの検出出力とに応じて走行距離を繰り返し積算して、この積算される走行距離を繰り返し揮発性メモリに書き換えて記憶させる(例えば、特許文献1参照)。
【0003】
ここで、中央演算装置は、揮発性メモリに記憶される走行距離が一定距離だけ増加する毎に、揮発性メモリに記憶される走行距離のうち下1桁よりも上側の桁の値を不揮発性メモリに書き換えて記憶させる。
【0004】
また、イグニッションスイッチSWがオフされたときには、中央演算装置が、バックアップ電源回路から給電されて、揮発性メモリに記憶される走行距離のうち下1桁の値を不揮発性メモリに書き換えて記憶させる。
【0005】
このように不揮発性メモリにおいて記憶される走行距離が更新されるので、イグニッションスイッチSWがオフされても、イグニッションスイッチSWがオンされると、中央演算装置が、不揮発性メモリにて記憶される走行距離を初期値として、走行距離を積算するので、走行距離を積算する上で積算誤差が生じることを無くしている。
【0006】
【特許文献1】
特開平6−249673号公報
【0007】
【発明が解決しようとする課題】
ところで、自動車には、イグニッションスイッチを介さず車載バッテリから直接的に電子制御装置に電力供給するためのバックアップ電源回路が設けられているものの、自動車をユーザに引き渡す前に自動車を輸送する際には、バックアップ電源回路の機能が停止されていることがある。この場合、不揮発性メモリにおいて記憶される走行距離のうち下1桁の値が更新されない。
【0008】
例えば、実際に3.2km走行したときにイグニッションスイッチSWがオフされたとき、不揮発性メモリにおいて記憶される下1桁の値「0.2」が更新されない。したがって、その後、イグニッションスイッチSWがオンされたとき、不揮発性メモリから走行距離を呼び出して揮発性メモリに記憶させる際に、上側の桁の値として「3.0」(=3Km)を不揮発性メモリから呼び出して揮発性メモリに記憶させるものの、下1桁の値としては、誤った値を不揮発性メモリから呼び出して揮発性メモリに記憶させることになる。
【0009】
例えば、不揮発性メモリにて下1桁の値として「0.6」が記憶されている場合、揮発性メモリには、「3.0」と「0.6」とを記憶させることになり、実際の走行距離(3.2Km)よりも大きな値(3.6Km)が揮発性メモリに記憶されることになる。これに伴い、誤った値を初期値として走行距離を積算して、実際の走行距離よりも長い走行距離を演算するといった問題が生じることになる。
【0010】
本発明は、上記点に鑑み、実際よりも走行距離を長く演算することを防止するようにした移動体の走行距離積算装置を提供することを目的とする。
【0011】
【課題を解決するための手段】
本発明は、上記目的を達成するために、請求項1に記載の発明では、移動体の走行距離を記憶するための不揮発性メモリ(12)と、移動体の主電源が投入されたとき、不揮発性メモリから走行距離を呼出してこの呼び出される走行距離を揮発性メモリ(13)に記憶させて、この記憶される走行距離と移動体の速度を検出する速度センサ(30)からの検出出力とに応じて走行距離を繰り返し積算して、この積算される走行距離を繰り返し揮発性メモリに書き換えて記憶させる積算手段(S200、S210)と、揮発性メモリに記憶される走行距離に応じて、不揮発性メモリに記憶される走行距離を書き換えるメモリ制御手段(S250、S270)と、を備える移動体の走行距離積算装置であって、メモリ制御手段は、揮発性メモリに記憶される走行距離が第1の一定距離だけ増加する毎に、揮発性メモリに記憶される走行距離のうち下1桁よりも上側の桁の値を不揮発性メモリに書き換えて記憶させ、かつ、揮発性メモリに記憶される走行距離のうち下1桁の値が零となったとき、零を走行距離の下1桁の値として不揮発性メモリに書き換えることを特徴とする。
【0012】
これにより、移動体の主電源が投入されたときに、不揮発性メモリから呼び出されて揮発性メモリに記憶される走行距離の下1桁の値が零となるので、実際よりも走行距離を長く演算することを防止することができる。
【0013】
また、請求項2に記載の発明のように、メモリ制御手段は、移動体の主電源の投入後にて一回だけ、揮発性メモリに記憶される走行距離のうち下1桁の値が零となったときに、零を走行距離の下1桁の値として不揮発性メモリに書き換えて記憶させれば、その後、この不揮発性メモリに記憶される下1桁の値としての零を書き換えない限り、走行距離の下1桁の値を零として走行距離を積算することになる。
【0014】
したがって、不揮発性メモリの書き換えを余分に行うことなく、走行距離の下1桁の値を零として走行距離を積算することができる。
【0015】
ここで、請求項1、2に記載の発明のように、零を走行距離の下1桁の値として不揮発性メモリに書き換えて、走行距離の下1桁の値を零として走行距離を積算すると、実際の走行距離よりも短い走行距離を積算する可能性がある。そこで、請求項3に記載の発明のように、走行距離に応じて、零を走行距離の下1桁の値として不揮発性メモリに書き換えることを制限することが好ましい。
【0016】
具体的には、請求項3に記載の発明では、積算される走行距離が第2の一定距離未満か否かを判定する判定手段(S220)を備え、積算される走行距離が第2の一定距離未満であると判定手段が判定した場合にだけ、揮発性メモリに記憶される走行距離のうち下1桁の値が零となったときに、メモリ制御手段が、零を走行距離の下1桁の値として不揮発性メモリに書き換えることを特徴とする。
【0017】
因みに、上記各手段の括弧内の符号は、後述する一実施形態に記載の具体的手段との対応関係を示す一例である。
【0018】
【発明の実施の形態】
図1に本発明の移動体の走行距離積算装置が適用された自動車用計器Eの一実施形態の電気的概略構成を示す。図1に示すように、自動車用計器Eは、メータ用電子制御装置10および表示パネル20から構成されており、メータ用電子制御装置10は、中央演算装置(CPU)11、EEPROM12、およびRAM13から構成されている。
【0019】
中央演算装置11は、後述するように、車速センサ30からの検出出力に応じて、当該自動車の走行距離を積算するための積算処理を実行する。車速センサ30は、当該自動車の駆動輪の回転数を検出して、この検出される回転数に応じて当該自動車の速度を求めるセンサである。
【0020】
EEPROM12は、電力供給されずにデータの記憶を保持できる不揮発性メモリであって、コンピュータプログラムを記憶する。また、EEPROM12には、後述するごとく走行距離を格納するために、走行距離のうち下1桁の値を格納する端数エリアと、走行距離のうち下1桁より上側の桁の値を格納する上桁エリアとが設けられている。
【0021】
ここで、中央演算装置11およびEEPROM12には、車載バッテリBaの正極端子からイグニッションスイッチIGを通して正極電圧(以下、正極電圧VIGという)が印加されるとともに、イグニッションスイッチIGを介さず車載バッテリBaの正極端子から電流ヒューズHを通して正極電圧(正極電圧V+B)が印加される。以下、中央演算装置11およびEEPROM12に対して車載バッテリBaから電流ヒューズHを通して電力供給する機能をバックアップ電源という。
【0022】
なお、図2に示すように、走行距離が「135.5km」の場合、「下1桁の値」は「0.5」となり、「上側の桁」とは、「135」となる。
【0023】
RAM13は、電力供給されないと、記憶されていたデータが消去される揮発性メモリであって、後述するように、中央演算装置11による走行距離の積算処理に伴うデータを記憶する。
【0024】
次に、本実施形態の中央演算装置11による積算処理について、(1)電流ヒューズHが装着されてバックアップ電源が機能している状態での処理と、(2)電流ヒューズHが外されてバックアップ電源が停止している状態での処理とに分けて図3〜図5を用いて説明する。
【0025】
図3、図4は、中央演算装置11による積算処理を示すフローチャート、図5(a)は、バックアップ電源の状態を示すタイミングチャート、図5(b)は、イグニッションスイッチIGの作動状態を示すタイミングチャート、図5(c)は、実際の走行距離を示すタイミングチャートである。
【0026】
また、図5(d)は、EEPROM12の上桁エリアに格納されるデータを示すタイミングチャート、図5(e)は、EEPROM12の端数エリアに格納されるデータを示すタイミングチャート、図5(f)は、EEPROM12の端数エリアに格納されるデータを示すタイミングチャートである。
【0027】
(1)先ず、バックアップ電源が機能している場合について説明する。この場合、イグニッションスイッチIGがオフされても、中央演算装置11は、図3に示す端数記憶処理と、図4に示す上位桁記憶処理を交互に繰り返し実行する。
【0028】
以下、上位桁記憶処理に先だって、端数記憶処理について説明すると、中央演算装置11は、図3に示すフローチャートにしたがって、EEPROM12に記憶されるコンピュータプログラムを実行する。
【0029】
先ず、イグニッションスイッチIGから入力される正極電圧VIGが一定レベル未満になると、イグニッションスイッチIGが乗員によりオフされたとしてS100でYESと判定して、後述するごとくRAM13に格納される走行距離のうち下1桁の値をEEPROM12の端数エリアに格納する(S110)。
【0030】
次に、上位桁記憶処理について説明すると、中央演算装置11は、図4に示すフローチャートにしたがって、EEPROM12に記憶されるコンピュータプログラムを実行する。
【0031】
先ず、EEPROM12の端数エリア、上桁エリアから走行距離のうち下1桁の値、および上側の桁の値を呼出すとともに、この呼出された下1桁の値および上側の桁の値により走行距離を生成してRAM13に格納する(S200)。
【0032】
次に、このRAM13に格納される走行距離を初期値として、車速センサ30からの検出出力を時間積分することにより走行距離を積算する。これに伴い、この積算値を表示パネル20に表示させるとともに、この積算値を用いてRAM13に記憶される走行距離を書き換える(S210)。
【0033】
次に、この書き換えられた走行距離(すなわち、積算値)が、一定距離(例えば100Km)以上であるとしてS220でNOと判定したとき、この書き換えられた走行距離が、この書き換え前の走行距離に比べて、1Km以上増えたか否かを判定する(S260)。
【0034】
ここで、当該書き換えられた走行距離が、この書き換え前の走行距離に比べて、1Km以上増えたとしてYESと判定したとき、当該書き換えられた走行距離のうち上側の桁の値をEEPROM12の上桁エリアに書き込む。また、当該書き換えられた走行距離と、この書き換え前の走行距離との差が、1Km未満でNOと判定したとき、上桁エリアへの書き込みは禁止する。
【0035】
以上のような上位桁記憶処理および端数記憶処理が交互に実行されることにより、走行距離の積算値の下1桁の値、および上側の桁の値が適宜、EEPROM12に格納されて、この格納されるそれぞれの値に応じて、走行距離が積算されることになる。
【0036】
(2)次に、バックアップ電源が機能していない場合について説明する。この場合、イグニッションスイッチIGがオフされると、中央演算装置11は、電力供給されず、図3中のS100のステップの処理を実行することができない。このため、イグニッションスイッチIGのオン状態にて、中央演算装置11が、実質的に、図4に示す上位桁記憶処理を繰り返し実行することになる。
【0037】
具体的には、S200において、EEPROM12の端数エリアおよび上桁エリアから下1桁の値および上側の桁の値を呼出して走行距離を生成してRAM13に格納する(図5中のタイミングt1、t2、t4参照)。その後、S210に移行してこの格納される走行距離を初期値として走行距離を積算して、この積算される走行距離を表示パネル20に表示させるとともに、この積算値をRAM13に書き換えて記憶させる。
【0038】
次に、このRAM13に記憶される走行距離(すなわち、積算値)が、一定距離未満であるとしてS220でYESと判定したとき、このYESとの判定は、イグニッションスイッチIGのオン後、初めて行われたか否かを判定する(S230)。
【0039】
ここで、S220でのYESとの判定が、イグニッションスイッチIGのオン後、初めて行われたとしてS230でYESと判定したとき、RAM13に記憶される走行距離の下1桁の値が「零」であるか否かを判定する(S240)。そして、RAM13に記憶される走行距離の下1桁の値が「零」であるとしてYESと判定したとき、S250の処理に移行して、EEPROM12の端数エリアに「零」を格納する。
【0040】
例えば、図5では、タイミングt3にて、RAM13にて「2.9」から「3.0」に書き換えられて「3.0」が記憶されるとき、走行距離の下1桁の値としての「零」がEEPROM12の端数エリアに格納されるとともに、上側の桁の値としての「3」がEEPROM12の上桁エリアに格納される例を示している。
【0041】
その後、積算値増加判定(S260)、および上位桁値の格納処理(S270)を実行すると、S200に戻る。そして、走行距離の積算値が一定距離を越えない限り、走行距離格納処理(S200)、積算表示格納処理(S210)、初回判定(S230)、端数零判定(S240)、端数格納処理(S250)、積算値増加判定(S260)、および上位桁値の格納処理(S270)を繰り返し実行することになる。
【0042】
次に本実施形態の作用効果について説明する。すなわち、自動車の走行距離を記憶するためのEEPROM12と、イグニッションスイッチIGが投入されたとき、EEPROM12から走行距離を呼出してこの呼び出される走行距離をRAM13に記憶させて、この記憶される走行距離と自動車の速度を検出する速度センサ30からの検出出力とに応じて走行距離を繰り返し積算して、この積算される走行距離を繰り返しRAM13に書き換えて記憶させる中央演算装置11とを備える。そして、中央演算装置11は、RAM13に記憶される走行距離が一定距離だけ増加する毎に、RAM13に記憶される走行距離のうち下1桁よりも上側の桁の値をEEPROM12の上桁エリアに書き換えて記憶させ、かつ、RAM13に記憶される走行距離のうち下1桁の値が零となったとき、零を走行距離の下1桁の値としてEEPROM12に書き換えることを特徴とする。
【0043】
これにより、イグニッションスイッチIGが投入されたときに、EEPROM12から呼び出されてRAM13に記憶される走行距離の下1桁の値が零となるので、実際よりも走行距離を長く演算することを防止することができる。
【0044】
また、中央演算装置11は、イグニッションスイッチIGの投入後にて一回だけ、RAM13に記憶される走行距離のうち下1桁の値が零となったときに、零を走行距離の下1桁の値としてEEPROM12の下桁エリアに書き換えて記憶させるので、その後、このEEPROMの下桁エリアに記憶される「零」を書き換えない限り、走行距離の下1桁の値を零として走行距離を積算することができる。
【0045】
したがって、EEPROM12のデータの書き換えを余分に行うことなく、走行距離の下1桁の値を零として走行距離を積算することができる。
【0046】
また、零を走行距離の下1桁の値としてEEPROM12に書き換えて走行距離の下1桁の値を零として走行距離を積算すると、実際の走行距離よりも短い走行距離を積算する可能性があるので、走行距離が一定距離未満のときだけ、零を走行距離の下1桁の値として不揮発性メモリに書き換えようにすることが好ましい。
【0047】
(その他の実施形態)
上記実施形態では、移動体として自動車を用いる例について説明したが、これに限らず、移動体として列車を用いるようにしてもよい。
【0048】
上記実施形態では、自動車として、イグニッションスイッチIGを備える自動車を用いる例を示したが、これに代えて、電気自動車やハイブリット自動車などに適用してもよい。
【0049】
上記実施形態では、走行距離として、例えば、「135.5km」のごとく小数点以下の値を含むように積算したが、これに限らず、走行距離を整数値として積算してもよい。
【0050】
以下、上記実施形態と特許請求項の範囲の構成との対応関係について説明すると、イグニッションスイッチIGをONさせて車載バッテリBaからメータ用電子制御装置10の中央演算装置(CPU)11、EEPROM12、およびRAM13に電力供給させることが、主電源の投入に相当する。
【図面の簡単な説明】
【図1】本発明の自動車用計器の一実施形態の電気的概略構成を示す図である。
【図2】図1の中央演算装置の作動の説明図である。
【図3】図1の中央演算装置の処理の一部を示すフローチャートである。
【図4】図1の中央演算装置の処理の残りを示すフローチャートである。
【図5】図1の中央演算装置の作動を示すタイミングチャートである。
【符号の説明】
10…メータ用電子制御装置、11…中央演算装置(CPU)、
12…EEPROM、13…RAM。[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a travel distance integrating device for a moving body that integrates the travel distance of the mobile body using a nonvolatile memory.
[0002]
[Prior art]
Conventionally, in an electronic control device for an automobile meter, when the ignition switch SW is turned on, the central processing unit (CPU) is accumulated from the non-volatile memory to the travel distance (this is integrated before the ignition switch SW is turned off). The travel distance is repeatedly accumulated according to the called travel distance and the detection output from the speed sensor, and the accumulated travel distance is repeatedly rewritten and stored in the volatile memory. (For example, refer to Patent Document 1).
[0003]
Here, every time the travel distance stored in the volatile memory increases by a certain distance, the central processing unit stores the value in the upper digit of the travel distance stored in the volatile memory in a non-volatile manner. Rewrite to memory and store.
[0004]
When the ignition switch SW is turned off, the central processing unit is supplied with power from the backup power supply circuit, and rewrites and stores the last one digit value of the travel distance stored in the volatile memory in the nonvolatile memory.
[0005]
Since the travel distance stored in the nonvolatile memory is updated in this way, the central processing unit stores the travel stored in the nonvolatile memory when the ignition switch SW is turned on even if the ignition switch SW is turned off. Since the travel distance is integrated using the distance as an initial value, an integration error does not occur when the travel distance is integrated.
[0006]
[Patent Document 1]
JP-A-6-249673
[Problems to be solved by the invention]
By the way, although the automobile is provided with a backup power supply circuit for supplying electric power directly from the in-vehicle battery to the electronic control device without going through the ignition switch, when the automobile is transported before being delivered to the user, The function of the backup power supply circuit may be stopped. In this case, the last digit value of the travel distance stored in the nonvolatile memory is not updated.
[0008]
For example, when the ignition switch SW is turned off when actually traveling 3.2 km, the last one digit value “0.2” stored in the nonvolatile memory is not updated. Therefore, after that, when the ignition switch SW is turned on, when calling the travel distance from the nonvolatile memory and storing it in the volatile memory, “3.0” (= 3 Km) is set as the upper digit value in the nonvolatile memory. However, as the last one digit value, an incorrect value is called from the non-volatile memory and stored in the volatile memory.
[0009]
For example, when “0.6” is stored as the last digit in the nonvolatile memory, “3.0” and “0.6” are stored in the volatile memory. A value (3.6 Km) larger than the actual travel distance (3.2 Km) is stored in the volatile memory. Along with this, there arises a problem that the travel distance is accumulated with an incorrect value as an initial value, and a travel distance longer than the actual travel distance is calculated.
[0010]
In view of the above points, an object of the present invention is to provide a travel distance accumulating device for a moving body that prevents the travel distance from being calculated longer than the actual distance.
[0011]
[Means for Solving the Problems]
In order to achieve the above object, according to the present invention, a nonvolatile memory (12) for storing a traveling distance of a moving body and a main power source of the moving body are turned on. The mileage is called from the non-volatile memory, the called mileage is stored in the volatile memory (13), and the detected output from the speed sensor (30) for detecting the stored mileage and the speed of the moving body; In accordance with the travel distance stored repeatedly in the volatile memory, and non-volatile in accordance with the travel distance stored in the volatile memory. A mileage accumulating device for a moving body comprising memory control means (S250, S270) for rewriting the mileage stored in the volatile memory, wherein the memory control means is stored in the volatile memory. Each time the travel distance to be憶is increased by a first predetermined distance, the value of the upper digit is stored by rewriting the nonvolatile memory than the lower one digit of the running distance stored in the volatile memory, and, When the last digit value of the travel distance stored in the volatile memory becomes zero, zero is rewritten in the nonvolatile memory as the last digit value of the travel distance.
[0012]
As a result, when the main power of the moving body is turned on, the last one digit value of the travel distance that is called from the nonvolatile memory and stored in the volatile memory becomes zero. Calculations can be prevented.
[0013]
Further, as in the second aspect of the invention, the memory control means sets the value of the last one digit of the travel distance stored in the volatile memory to zero once after the main power supply of the mobile body is turned on. Then, if zero is rewritten and stored in the nonvolatile memory as the last digit value of the travel distance, then unless the zero as the last digit value stored in this nonvolatile memory is rewritten, The travel distance is integrated by setting the last digit value of the travel distance to zero.
[0014]
Therefore, the travel distance can be integrated with the last digit value of the travel distance set to zero without extra rewriting of the nonvolatile memory.
[0015]
Here, as in the first and second aspects of the invention, when zero is rewritten in the nonvolatile memory as the last digit value of the travel distance, and the travel distance is integrated with the last digit value of the travel distance as zero There is a possibility that the travel distance shorter than the actual travel distance is accumulated. Therefore, it is preferable to restrict rewriting zero to a non-volatile memory as the last digit value of the travel distance in accordance with the travel distance.
[0016]
Specifically, the invention according to claim 3 includes a determination means (S220) for determining whether or not the accumulated traveling distance is less than the second constant distance, and the accumulated traveling distance is the second constant. Only when the determining means determines that the distance is less than the distance, when the value of the last digit of the travel distance stored in the volatile memory becomes zero, the memory control means sets zero to the lower distance of the travel distance. It is characterized in that it is rewritten into a nonvolatile memory as a digit value.
[0017]
Incidentally, the reference numerals in parentheses of each means described above are an example showing the correspondence with specific means described in an embodiment described later.
[0018]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 shows an electrical schematic configuration of an embodiment of an automotive instrument E to which a traveling distance integrating device for a moving body of the present invention is applied. As shown in FIG. 1, the automotive instrument E is composed of a meter
[0019]
As will be described later, the
[0020]
The EEPROM 12 is a non-volatile memory that can store data without being supplied with power, and stores a computer program. In addition, in order to store the travel distance as will be described later, the
[0021]
Here, a positive voltage (hereinafter referred to as a positive voltage VIG) is applied to the
[0022]
As shown in FIG. 2, when the travel distance is “135.5 km”, the “lower one digit value” is “0.5”, and the “upper digit” is “135”.
[0023]
The
[0024]
Next, regarding the integration processing by the
[0025]
3 and 4 are flowcharts showing integration processing by the
[0026]
5D is a timing chart showing data stored in the upper digit area of the
[0027]
(1) First, the case where the backup power supply is functioning will be described. In this case, even if the ignition switch IG is turned off, the
[0028]
Hereinafter, the fraction storage process will be described prior to the upper digit storage process. The
[0029]
First, when the positive voltage VIG input from the ignition switch IG becomes less than a certain level, it is determined that the ignition switch IG is turned off by the occupant, YES is determined in S100, and the lower of the travel distance stored in the
[0030]
Next, the upper digit storage process will be described. The
[0031]
First, from the fractional area and the upper digit area of the
[0032]
Next, with the travel distance stored in the
[0033]
Next, when it is determined NO in S220 that the rewritten travel distance (that is, the integrated value) is equal to or greater than a certain distance (for example, 100 km), the rewritten travel distance becomes the travel distance before the rewrite. In comparison, it is determined whether it has increased by 1 km or more (S260).
[0034]
Here, when it is determined that the rewritten travel distance has increased by 1 km or more compared to the travel distance before the rewrite, the upper digit of the
[0035]
By alternately executing the upper digit storing process and the fraction storing process as described above, the lower one digit value and the upper digit value of the accumulated travel distance are appropriately stored in the
[0036]
(2) Next, a case where the backup power supply is not functioning will be described. In this case, when the ignition switch IG is turned off, the
[0037]
Specifically, in S200, the lower 1 digit value and the upper digit value are called from the fraction area and the upper digit area of the
[0038]
Next, when it is determined that the travel distance (that is, the integrated value) stored in the
[0039]
Here, when the determination of YES in S220 is made for the first time after the ignition switch IG is turned on and it is determined YES in S230, the last one digit value of the travel distance stored in the
[0040]
For example, in FIG. 5, when “3.0” is stored in
[0041]
Thereafter, when the integrated value increase determination (S260) and the upper digit value storage process (S270) are executed, the process returns to S200. As long as the integrated value of the travel distance does not exceed a certain distance, the travel distance storage process (S200), the integrated display storage process (S210), the initial determination (S230), the fraction zero determination (S240), and the fraction storage process (S250) ), Integrated value increase determination (S260), and upper digit value storage processing (S270) are repeatedly executed.
[0042]
Next, the effect of this embodiment is demonstrated. That is, when the
[0043]
As a result, when the ignition switch IG is turned on, the last one digit value of the travel distance that is called from the
[0044]
Further, the
[0045]
Therefore, the travel distance can be integrated with the last digit value of the travel distance set to zero without extra rewriting of the data in the
[0046]
Further, when zero is rewritten in the
[0047]
(Other embodiments)
In the above embodiment, an example in which an automobile is used as a moving body has been described. However, the present invention is not limited thereto, and a train may be used as a moving body.
[0048]
In the above-described embodiment, an example in which an automobile provided with the ignition switch IG is used as an automobile has been described. However, the present invention may be applied to an electric automobile, a hybrid automobile, or the like instead.
[0049]
In the above embodiment, the travel distance is integrated so as to include a value after the decimal point, for example, “135.5 km”. However, the travel distance is not limited thereto, and the travel distance may be integrated as an integer value.
[0050]
Hereinafter, the correspondence relationship between the above-described embodiment and the configuration of the scope of the claims will be described. The ignition switch IG is turned ON to turn on the central processing unit (CPU) 11 of the meter
[Brief description of the drawings]
FIG. 1 is a diagram showing an electrical schematic configuration of an embodiment of an automotive instrument according to the present invention.
FIG. 2 is an explanatory diagram of the operation of the central processing unit of FIG.
FIG. 3 is a flowchart showing a part of processing of the central processing unit of FIG. 1;
4 is a flowchart showing the rest of the processing of the central processing unit of FIG. 1. FIG.
FIG. 5 is a timing chart showing the operation of the central processing unit of FIG. 1;
[Explanation of symbols]
10 ... Electronic control unit for meter, 11 ... Central processing unit (CPU),
12 ... EEPROM, 13 ... RAM.
Claims (3)
前記移動体の主電源が投入されたとき、前記不揮発性メモリから走行距離を呼出してこの呼び出される走行距離を揮発性メモリ(13)に記憶させて、この記憶される走行距離と前記移動体の速度を検出する速度センサ(30)からの検出出力とに応じて走行距離を繰り返し積算して、この積算される走行距離を繰り返し前記揮発性メモリに書き換えて記憶させる積算手段(S200、S210)と、
前記揮発性メモリに記憶される走行距離に応じて、前記不揮発性メモリに記憶される走行距離を書き換えるメモリ制御手段(S250、S270)と、を備える移動体の走行距離積算装置であって、
前記メモリ制御手段は、前記揮発性メモリに記憶される走行距離が第1の一定距離だけ増加する毎に、前記揮発性メモリに記憶される走行距離のうち下1桁よりも上側の桁の値を前記不揮発性メモリに書き換えて記憶させ、かつ、前記揮発性メモリに記憶される走行距離のうち下1桁の値が零となったとき、前記零を前記走行距離の下1桁の値として前記不揮発性メモリに書き換えることを特徴とする移動体の走行距離積算装置。A non-volatile memory (12) for storing the travel distance of the moving body;
When the main power of the mobile body is turned on, the travel distance is called from the nonvolatile memory and the called travel distance is stored in the volatile memory (13), and the stored travel distance and the mobile body Accumulating means (S200, S210) for repeatedly accumulating the travel distance according to the detection output from the speed sensor (30) for detecting the speed, and repeatedly rewriting and storing the accumulated travel distance in the volatile memory. ,
A travel distance accumulating device for a moving body comprising memory control means (S250, S270) for rewriting the travel distance stored in the nonvolatile memory in accordance with the travel distance stored in the volatile memory,
Each time the travel distance stored in the volatile memory is increased by a first fixed distance, the memory control means is a value in the upper digit of the travel distance stored in the volatile memory. Is rewritten and stored in the non-volatile memory, and when the last digit value of the travel distance stored in the volatile memory becomes zero, the zero is set as the last digit value of the travel distance. A travel distance accumulating device for a moving object, wherein the nonvolatile memory is rewritten.
前記積算される走行距離が第2の一定距離未満であると前記判定手段が判定した場合にだけ、前記揮発性メモリに記憶される走行距離のうち下1桁の値が零となったときに、前記メモリ制御手段が、前記零を前記走行距離の下1桁の値として前記不揮発性メモリに書き換えることを特徴とする請求項2に記載の移動体の走行距離積算装置。Determination means (S220) for determining whether or not the accumulated travel distance is less than a second fixed distance;
Only when the determination means determines that the accumulated travel distance is less than a second fixed distance, the value of the last digit stored in the volatile memory becomes zero. The travel distance integrating device for a moving body according to claim 2 , wherein the memory control means rewrites the zero in the nonvolatile memory as the last digit value of the travel distance.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003180983A JP4140459B2 (en) | 2003-06-25 | 2003-06-25 | Traveling distance integrating device for moving objects |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003180983A JP4140459B2 (en) | 2003-06-25 | 2003-06-25 | Traveling distance integrating device for moving objects |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2005017071A JP2005017071A (en) | 2005-01-20 |
| JP4140459B2 true JP4140459B2 (en) | 2008-08-27 |
Family
ID=34181809
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2003180983A Expired - Fee Related JP4140459B2 (en) | 2003-06-25 | 2003-06-25 | Traveling distance integrating device for moving objects |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4140459B2 (en) |
-
2003
- 2003-06-25 JP JP2003180983A patent/JP4140459B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2005017071A (en) | 2005-01-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4404125B2 (en) | Electronic control device and signal monitoring circuit | |
| JP4434217B2 (en) | Charge control device | |
| CN115202681B (en) | Vehicle-mounted software updating method and vehicle-mounted system | |
| CN111989242B (en) | Control device, control method and computer program | |
| JP3969278B2 (en) | Electronic control unit | |
| JP4140459B2 (en) | Traveling distance integrating device for moving objects | |
| JP2019016086A (en) | Electronic control unit for automobile | |
| JP3559166B2 (en) | Automotive control device | |
| JP2001297800A (en) | Battery charge state determination method and device | |
| JP6439670B2 (en) | In-vehicle system | |
| JPH1199891A (en) | In-vehicle memory rewriting system | |
| JP2019185398A (en) | On-vehicle device | |
| JP6284333B2 (en) | Vehicle control device | |
| JP5691869B2 (en) | Vehicle display device | |
| JP7109620B1 (en) | Vehicle control device and vehicle system | |
| JP2008146521A (en) | Electronic control unit for automobile | |
| JP2006063939A (en) | Program-rewritable electronic control unit | |
| JP5933294B2 (en) | Cumulative value information management apparatus for vehicle and cumulative value information management method | |
| JPH06249673A (en) | Electronic distance integrating device | |
| JPH05270352A (en) | Air bag system failure recording device | |
| KR102225962B1 (en) | Vehicle and control method for the same | |
| JP5643708B2 (en) | Electronic control unit | |
| JP2933191B2 (en) | Vehicle parts maintenance alarm | |
| US20240281407A1 (en) | Information processing device, storage medium storing information processing program, and information processing method | |
| JPH1082342A (en) | Vehicle control device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20050819 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080304 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080404 |
|
| 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: 20080520 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20080602 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110620 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4140459 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110620 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120620 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120620 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130620 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140620 Year of fee payment: 6 |
|
| 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 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| LAPS | Cancellation because of no payment of annual fees |