JP2004341817A - Information processing method and program, and navigation system - Google Patents

Information processing method and program, and navigation system Download PDF

Info

Publication number
JP2004341817A
JP2004341817A JP2003137474A JP2003137474A JP2004341817A JP 2004341817 A JP2004341817 A JP 2004341817A JP 2003137474 A JP2003137474 A JP 2003137474A JP 2003137474 A JP2003137474 A JP 2003137474A JP 2004341817 A JP2004341817 A JP 2004341817A
Authority
JP
Japan
Prior art keywords
data
reset
memory
program
nonvolatile data
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.)
Pending
Application number
JP2003137474A
Other languages
Japanese (ja)
Inventor
Kazuaki Wakana
和昭 若菜
Takehiko Yasuda
威彦 安田
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2003137474A priority Critical patent/JP2004341817A/en
Publication of JP2004341817A publication Critical patent/JP2004341817A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a method and a program for information processing, and a navigation device, which execute starting processing without repeating a reset when nonvolatile data necessary for the starting processing are broken by any cause. <P>SOLUTION: The information processing method for reading nonvolatile data to perform the starting processing comprises steps (S1-S5) for detecting a reset generated during execution of the starting processing; and a step (S4) for initializing, in case of the reset, a memory for storing the nonvolatile data. Accordingly, even if the nonvolatile data are broken by any cause, the starting processing is executed without repeating the reset. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明が属する技術分野】
本発明は、起動処理に不揮発性データの読み込みを行う場合の情報処理方法及びプログラム並びにナビゲーション装置に関する。
【0002】
【従来の技術】
ナビゲーション装置では、アプリケーションに必要なユーザデータ等が不揮発性メモリに格納されており、アプリケーションを起動させる場合は、不揮発性メモリに格納された不揮発性データ(ユーザデータ等)を読み込む必要がある。このため、不揮発性データが何らかの理由で破壊されると、データの読み込み不能によりアプリケーションを起動することができなくなる。このようなデータ破壊を検出するために、データ破壊検出用のフラグを固定アドレスに配置してメモリ破壊を検出する技術が知られている(例えば、特許文献1参照)。
【0003】
【特許文献1】
特開平9−106377号公報
【0004】
【発明が解決しようとする課題】
しかしながら、起動処理において例えばデータのリスト構造をたどるポインタ部のみが破壊された場合は(図10参照)、上記従来技術ではデータ破壊を検出することができない。図10(a)に示すように、リングバッファに格納された不揮発性データが正常な場合は、それぞれのデータA、B、Cのポインタをたどって起動処理を行うことができるが、図10(b)に示すように、データBのポインタが破壊されてリングバッファ外を指した場合は、CPU例外によりリセットが発生し、再度0番地から起動処理が開始されるが、データBのところでまたCPU例外が発生し、リセットを繰り返してしまう。
【0005】
このように起動処理においてデータのリスト構造をたどる場合の対策として、それぞれのデータごとにポインタが指し示すアドレスが正しいか否かをチェックすることも考えられるが、すべてのデータに対してアドレス範囲チェックを行うと多大の処理時間がかかってしまい、短時間の起動処理が求められるナビゲーション等のアプリケーションに対応することができない。また、ナビゲーション装置等にはコールドスタート機能(強制リセット)が設けられていないため、起動処理中にリセットを繰り返すことは好ましくない。
【0006】
本発明は、従来の問題を解決するためになされたもので、起動処理に必要な不揮発性データが何らかの理由で破壊された場合に、リセットを繰り返すことなく起動処理を実行させることができる情報処理方法及びプログラム並びにナビゲーション装置を提供することを目的とする。
【0007】
【課題を解決するための手段】
本発明の情報処理方法は、不揮発性データを読み出して起動処理を行う情報処理方法であって、前記起動処理の実行中に発生するリセットを検出するステップと、前記リセットが発生した場合に、前記不揮発性データを格納するメモリを初期化するステップとを含む構成を有している。
【0008】
この構成により、起動処理の実行中にリセットが発生した場合に不揮発性データを格納するメモリを初期化し、不揮発性データが何らかの理由で破壊された場合でも、リセットを繰り返すことなく起動処理を実行させることができる。
【0009】
本発明のプログラムは、不揮発性データを読み出して起動処理を行うプログラムであって、コンピュータに、前記起動処理の実行中に発生するリセットを検出するステップ、前記リセットが発生した場合に、前記不揮発性データを格納するメモリを初期化するステップを実行させる構成を有している。
【0010】
この構成により、起動処理の実行中にリセットが発生した場合に不揮発性データを格納するメモリを初期化し、不揮発性データが何らかの理由で破壊された場合でも、リセットを繰り返すことなく起動処理を実行させることができる。
【0011】
また、本発明のプログラムは、不揮発性データを読み出して起動処理を行うプログラムであって、コンピュータに、前記起動処理の実行中に発生するリセットを検出するステップ、前記リセットが発生したときのプログラムカウンタが前記不揮発性データ初期化処理関数を示している場合に、前記不揮発性データを格納するメモリを初期化するステップを実行させる構成を有している。
【0012】
この構成により、起動処理の実行中にリセットが発生し、そのときのプログラムカウンタが前記不揮発性データ初期化処理関数を示している場合に不揮発性データを格納するメモリを初期化し、不揮発性データが何らかの理由で破壊された場合でも、リセットを繰り返すことなく起動処理を実行させることができる。
【0013】
さらに、本発明のプログラムは、前記リセットが規定回数発生した場合に、前記不揮発性データを格納するメモリを初期化するステップを含む構成を有している。
【0014】
この構成により、リセットが規定回数発生した場合に、前記不揮発性データを格納するメモリを初期化し、複数回のリセット繰り返しにより復旧可能なシステム故障を救済することができる。
【0015】
さらに、本発明のプログラムは、前記メモリを初期化する前に前記不揮発性データを退避させるステップを含む構成を有している。
【0016】
この構成により、メモリを初期化する前に前記不揮発性データを退避させて、システム起動後に退避させた不揮発性データを利用することができる。
【0017】
さらに、本発明のプログラムは、前記メモリを前回起動時のデータで初期化するステップを含む構成を有している。
【0018】
この構成により、メモリを前回起動時のデータで初期化して前回起動時のデータでシステムを起動させることができるため、メモリ初期化時のデータ損失を最小限に抑えることができる。
【0019】
また、本発明のナビゲーション装置は、請求項2ないし請求項6のいずれかに記載のプログラムを実行するナビゲーション装置であって、前記メモリと外部との間でデータ通信を行う通信手段を備える構成を有している。
【0020】
この構成により、通信手段を介してメモリと外部との間で不揮発性データの通信が可能となるため、不揮発性データを外部で解析することが可能となり、また修復した不揮発性データをメモリに戻して起動させることが可能となる。
【0021】
また、本発明のナビゲーション装置は、請求項2ないし請求項6のいずれかに記載のプログラムを実行するナビゲーション装置であって、前記不揮発性データを格納する着脱可能な記憶手段を備える構成を有する。
【0022】
この構成により、着脱可能な記憶手段を介して不揮発性データを外部へ取り出すことができるため、不揮発性データを外部で解析することが可能となり、また修復した不揮発性データをメモリに戻して起動させることが可能となる。
【0023】
また、本発明のナビゲーション装置は、請求項2ないし請求項6のいずれかに記載のプログラムを実行するナビゲーション装置であって、前記メモリを初期化したことを通知する通知手段を備える構成を有する。
【0024】
この構成により、通知手段によりメモリ初期化を通知することができるため、ユーザに初期化後の起動であることを認識させることができる。
【0025】
【発明の実施の形態】
以下、本発明の実施の形態の情報処理方法について、図面を用いて説明する。
本発明の実施の形態の情報処理方法を実施する情報処理装置を図1に示す。
図1において、情報処理装置10は、プログラムの実行により全体の動作を制御するCPU1と、プログラムカウンタ2と、起動時に必要なユーザデータ等の不揮発性データを格納するメモリ4と、メモリ4から不揮発性データを読み出して起動処理を行う起動手段3と、CPU1の例外が発生した場合にプログラムカウンタ2のデータを保存するCPU例外保存手段5とを備える。
【0026】
さらに、情報処理装置10は、起動処理が実行中か否かを判定するデータ初期化中判定手段6と、データ初期化中判定手段6により起動処理が実行中と判定されている期間に起動手段3がリセットされ、CPU例外保存手段5に保存したプログラムカウンタ2のデータが不揮発性データ初期化処理関数の場合に、メモリ4に格納されている不揮発性データを初期化するデータ初期化手段7と、バスライン8とを備える。
【0027】
以上のように構成された情報処理装置について、図2を用いてその動作を説明する。図2に示す第1の実施の形態のプログラムにおいて、まず、起動処理を開始すると、起動に必要なデータの初期化中を示すフラグを確認し(ステップS1)、起動処理期間中にリセットが発生するか否かを監視する(ステップS2)。
【0028】
ステップS2において、データ初期化中にリセットが発生しない場合(NO)、正常な起動シーケンスに従ってデータ初期化中フラグをオンし(ステップS3)、データを有効化する(ステップS5)。
【0029】
ステップS2において、不揮発性メモリに格納されたユーザデータ等が何らかの理由で破壊され、データ初期化中にリセットが発生した場合(YES)、不揮発性メモリの初期化によりデータ初期化を行う(ステップS4)。
【0030】
ステップS5において、データ有効化が完了する前にリセットが発生した場合(NO)、ステップS1に戻ってデータ初期化中フラグを確認し、ステップS2でリセット発生を確認し(YES)、ステップS4において不揮発性メモリの初期化によりデータ初期化を行う。
【0031】
ステップS5においてリセットが発生せずデータの有効化が完了した場合(YES)、及びステップS4においてデータ初期化を行った場合、データ初期化中フラグをオフし(ステップS6)、起動する(ステップS7)。
【0032】
このような本発明の第1の実施の形態のプログラムによれば、起動処理が実行中と判定されている期間に起動手段3がリセットされた場合に、メモリ4の初期化によりデータ初期化を行うので、不揮発性データが何らかの理由で破壊された場合でも、リセットを繰り返すことなく起動処理を実行させることができる。
【0033】
次に、本発明の第2の実施の形態のプログラムを図3に示す。
図3に示す第2の実施の形態のプログラムにおいて、まず、起動処理を開始すると、リセットの発生に応じて生成されるリセット発生関数を確認し(ステップS11)、リセット発生関数がデータ初期化関数か否かを判断する(ステップS12)。
【0034】
ステップS12において、リセット発生関数がデータ初期化関数でない場合(NO)、正常な起動シーケンスに従ってデータを有効化する(ステップS13)。
【0035】
ステップS12において、リセット発生関数がデータ初期化関数である場合は(YES)、不揮発性データが壊れている場合であり、不揮発性メモリの初期化によりデータ初期化を行う(ステップS14)。
【0036】
ステップS13においてデータ有効化が完了する前にリセットが発生した場合(NO)、プログラムカウンタのデータを保存し(ステップS15)、ステップS11に戻ってリセット発生関数を確認し、ステップS12でリセット発生関数がデータ初期化関数であることを確認し(YES)、ステップS14において不揮発性メモリの初期化によりデータ初期化を行う。
【0037】
ステップS13においてリセットが発生せずデータの有効化が完了した場合(YES)、及びステップS14においてデータ初期化を行った場合は起動する(ステップS16)。
【0038】
このような本発明の第2の実施の形態のプログラムによれば、起動処理の実行中にリセットされ、プログラムカウンタ2が不揮発性データ初期化処理関数の場合、メモリ4の初期化によりデータ初期化を行うことにより、不揮発性データが何らかの理由で破壊された場合でも、リセットを繰り返すことなく起動処理を実行させることができる。
【0039】
次に、本発明の第3の実施の形態のプログラムを図4に示す。
図4に示す第3の実施の形態のプログラムにおいて、まず、起動処理を開始すると、リセットの発生に応じて生成されるリセット発生関数とリセットの発生回数を確認し(ステップS21)、リセット発生関数がデータ初期化関数か否か、及びリセットの発生回数が規定回数以上か否かを判断する(ステップS22)。
【0040】
ステップS22において、リセット発生関数がデータ初期化関数でない場合、あるいはリセットの発生回数が規定回数未満の場合(NO)、正常な起動シーケンスに従ってデータを有効化する(ステップS23)。
【0041】
ステップS22において、リセット発生関数がデータ初期化関数であり、かつリセットの発生回数が規定回数以上の場合(YES)、不揮発性データが壊れている場合であり、不揮発性メモリの初期化によりデータ初期化を行う(ステップS24)。
【0042】
ステップS23においてデータ有効化が完了する前にリセットが発生した場合(NO)、プログラムカウンタのデータを保存し(ステップS25)、ステップS21に戻ってリセット発生関数とリセット発生回数を確認し、ステップS22でそのリセット発生関数がデータ初期化関数であり、かつリセットの発生回数が規定回数以上であることを確認し(YES)、ステップS24においてデータ初期化を行う。
【0043】
ステップS23においてリセットが発生せずデータの有効化が完了した場合(YES)、及びステップS24においてデータ初期化を行った場合は起動する(ステップS26)。
【0044】
このような本発明の第3の実施の形態のプログラムによれば、リセット発生回数が所定回数以上の場合にデータ初期化を行うことにより、複数回のリセット繰り返しにより復旧可能なシステム故障を初期化なしで救済することができる。
【0045】
次に、本発明の第4の実施の形態のプログラムを図5に示す。
図5に示す第4の実施の形態のプログラムにおいて、まず、起動処理を開始すると、リセットの発生に応じて生成されるリセット発生関数とリセットの発生回数を確認し(ステップS31)、リセット発生関数がデータ初期化関数か否か、及びリセットの発生回数が規定回数以上か否かを判断する(ステップS32)。
【0046】
ステップS32において、リセット発生関数がデータ初期化関数でない場合、あるいはリセットの発生回数が規定回数未満の場合(NO)、正常な起動シーケンスに従ってデータを有効化する(ステップS33)。
【0047】
ステップS32において、リセット発生関数がデータ初期化関数であり、かつリセットの発生回数が規定回数以上の場合(YES)、不揮発性データが壊れている場合であるので、不揮発性データを退避させ(ステップS34)、その後、データ初期化を行う(ステップS35)。
【0048】
ステップS33においてデータ有効化が完了する前にリセットが発生した場合は(NO)、プログラムカウンタのデータを保存し(ステップS36)、ステップS31に戻ってリセット発生関数とリセット発生回数を確認し、ステップS32でそのリセット発生関数がデータ初期化関数であり、かつリセットの発生回数が規定回数以上であることを確認し(YES)、ステップS34において初期化前のデータを不揮発性メモリの初期化領域以外へ退避させた後、ステップS35においてデータ初期化を行う。
【0049】
ステップS33においてリセットが発生せずデータの有効化が完了した場合(YES)、及びステップS35においてデータ初期化を行った場合は起動する(ステップS37)。
【0050】
このような本発明の第4の実施の形態のプログラムによれば、データ初期化を行う前にデータを退避させることにより、システム起動後に、退避させたデータを解析等に利用し、起動できない原因の調査が可能となる。
【0051】
次に、本発明の第5の実施の形態のプログラムを図6に示す。
図6に示す第5の実施の形態のプログラムにおいて、まず、起動処理を開始すると、起動に必要なデータの初期化中を示すフラグを確認し(ステップS41)、起動処理期間中にリセットが発生するか否かを監視する(ステップS42)。
【0052】
ステップS42において、データ初期化中にリセットが発生しない場合は(NO)、正常な起動シーケンスに従ってデータ初期化中フラグをオンし(ステップS43)、データを有効化する(ステップS45)。
【0053】
一方、ステップS42において、不揮発性データが何らかの理由で破壊されており、データ初期化中にリセットが発生した場合(YES)、不揮発性メモリを前回起動時のデータで初期化する(ステップS44)。
【0054】
ステップS45においてデータ有効化が完了する前にリセットが発生した場合(NO)、ステップS41に戻ってデータ初期化中フラグを確認し、ステップS42で初期化中のリセット発生を確認し(YES)、ステップS44において不揮発性メモリを前回起動時のデータで初期化する。
【0055】
ステップS45においてリセットが発生せずデータの有効化が完了した場合(YES)、及びステップS44においてデータ初期化を行った場合、データ初期化中フラグをオフし(ステップS46)、起動する(ステップS47)。そして、起動時の初期データを保存する(ステップS48)。
【0056】
このような本発明の第5の実施の形態のプログラムによれば、起動処理の実行中にリセットされた場合に、前回起動時のデータでメモリを初期化することにより、メモリ初期化時のデータ損失を最小限に抑えることができる。
【0057】
以下、本発明の実施の形態のナビゲーション装置について、図面を参照して説明する。
本発明の実施の形態のナビゲーション装置を図7に示す。
図7において、ナビゲーション装置100は、GPS衛星から緯度及び経度情報等を受信し車両の絶対的な位置を検出するGPS21と、車両の加速度を検出する加速度センサ22と、車両の角速度を検出する角速度センサ23と、車両の走行距離を検出する距離センサ24と、これら各センサの検出出力をバスライン39に供給するインターフェース25とを備える。
【0058】
また、ナビゲーション装置100は、インターフェース25から順次送られてくる各センサの出力データに基づいて車両の進行方向、走行距離、走行方位及び現在地座標(経度、緯度)等の演算を行うCPU26と、CPU26が実行する各種の処理プログラムやその他必要な情報を予め格納するROM28と、プログラムを実行する上で必要に応じてアクセスされるRAM28とを備える。
【0059】
さらに、ナビゲーション装置100は、起動時に必要な現在地点データ、自宅位置データ、探索データおよび方位データ等のユーザデータを記録した不揮発性メモリであるSRAM29と、地図情報等の各種データの他にCPU26の動作に必要なプログラムを格納するHDDあるいはSDメモリカード等の不揮発性メモリ33を駆動するドライバ32と、リモコンあるいはタッチパネル31等から入力される各種の指令をバスライン39に供給する操作手段30と、音声ガイド等の音声を出力するスピーカ34と、ディスプレイ37上に地図等を表示する表示手段36と、インターネット等のネットワークを介してサービスセンター38と通信可能な通信手段35とを備える。
【0060】
以上のように構成されたナビゲーション装置について、図8を用いてその動作を説明する。
まず、電源が投入されてOSが起動すると(ステップS51)、SRAM29等の不揮発性メモリに格納されている現在地点データ、自宅位置データ、探索データおよび方位データ等のユーザデータが登録される(ステップS52)。
【0061】
ステップS52で登録されたデータが正常であれば、図9に示すディスプレイ37の表示画面は、図9(a)に示す黒画面から、図9(b)に示すオープニング画面に切り替わる。
【0062】
SRAM29等の不揮発性メモリに格納されているユーザデータが何らかの理由で破壊されている場合は、CPU例外が発生し(ステップS53)、データ初期化プロセスが起動し(ステップS54)、データを初期化してアプリケーションを起動する(ステップS55)。
【0063】
この際、図9(c)に示すように、ディスプレイ37を介してユーザデータ等を初期化して起動したことを通知した後、図9(e)に示すようなナビゲーション画面を表示する。
【0064】
このような本発明の実施の形態のナビゲーション装置によれば、SRAM29に格納されているユーザデータ等が何らかの理由で破壊されている場合でも、リセットを繰り返すことなくナビゲーションプログラムを起動することができる。
【0065】
また、ディスプレイ37を介してデータ初期化を通知するので、ユーザに初期化後の起動であることを認識させることができる。
【0066】
また、SRAM29を初期化する前に、SRAM29に格納されているユーザデータをSDメモリカード33等のリムーバブル記憶手段に格納し、あるいは通信手段35によりインターネット等のネットワークを介してサービスセンター38にアップロードし、サービスセンター38でそのデータを解析して修正データをダウンロードすることもできる。その場合には、図9(d)に示すようにディスプレイ37の表示画面に退避データを解析している旨を表示する。
【0067】
このような本発明の実施の形態のナビゲーション装置によれば、SRAMを初期化する前に、通信手段を介してメモリと外部との間で不揮発性データの通信が可能となるため、不揮発性データを外部で解析することが可能となり、また修復した不揮発性データをSRAMに戻して起動させることが可能となる。
【0068】
また、SRAMを初期化する前に、リムーバブル記憶手段を介して不揮発性データを外部へ取り出すことができるため、不揮発性データを外部で解析することが可能となり、また修復した不揮発性データをSRAMに戻して起動させることが可能となる。
【0069】
【発明の効果】
以上のように本発明は、起動処理の実行中にリセットが発生した場合に不揮発性データを格納するメモリを初期化し、不揮発性データが何らかの理由で破壊された場合でも、リセットを繰り返すことなく起動処理を実行させることができるという効果を有する情報処理方法及びプログラム並びにナビゲーション装置を提供することができるものである。
【図面の簡単な説明】
【図1】本発明の実施の形態における情報処理方法を実施する情報処理装置のブロック図
【図2】本発明の第1の実施の形態におけるプログラムの動作説明のためのフロー図
【図3】本発明の第2の実施の形態におけるプログラムの動作説明のためのフロー図
【図4】本発明の第3の実施の形態におけるプログラムの動作説明のためのフロー図
【図5】本発明の第4の実施の形態におけるプログラムの動作説明のためのフロー図
【図6】本発明の第5の実施の形態におけるプログラムの動作説明のためのフロー図
【図7】本発明の実施の形態におけるナビゲーション装置のブロック図
【図8】本発明の実施の形態にかかるナビゲーション装置の動作説明のためのフロー図
【図9】本発明の実施の形態におけるナビゲーション装置に搭載されたディスプレイの動作説明のための画面構成図
【図10】従来技術による起動処理の説明のための説明図
【符号の説明】
1、26 CPU
2 プログラムカウンタ
3 起動手段
4 メモリ
5 CPU例外保存手段
6 データ初期化中判定手段
7 データ初期化手段
8、39 バスライン
10 情報処理装置
21 GPS
22 加速度センサ
23 角速度センサ
24 距離センサ
25 インターフェース
27 ROM
28 RAM
29 SRAM
30 操作手段
31 リモコン/タッチパネル
32 ドライバ
33 HDD/SD
34 スピーカ
35 通信手段
36 表示手段
37 ディスプレイ
38 センター
100 ナビゲーション装置
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an information processing method, a program, and a navigation device in a case where nonvolatile data is read in a startup process.
[0002]
[Prior art]
In a navigation device, user data and the like necessary for an application are stored in a non-volatile memory, and when activating the application, it is necessary to read non-volatile data (such as user data) stored in the non-volatile memory. Therefore, if the non-volatile data is destroyed for some reason, the application cannot be started because the data cannot be read. In order to detect such data destruction, there is known a technique of locating a data destruction detection flag at a fixed address and detecting memory destruction (for example, see Patent Document 1).
[0003]
[Patent Document 1]
JP-A-9-106377
[Problems to be solved by the invention]
However, if, for example, only the pointer section following the data list structure is destroyed in the start-up process (see FIG. 10), data corruption cannot be detected by the above-described conventional technique. As shown in FIG. 10A, when the non-volatile data stored in the ring buffer is normal, the start processing can be performed by following the pointers of the respective data A, B, and C. As shown in b), when the pointer of data B is destroyed and points outside the ring buffer, a reset occurs due to a CPU exception and the start-up processing starts again from address 0. An exception occurs and the reset is repeated.
[0005]
As a countermeasure for tracing the data list structure in the start-up process, it is conceivable to check whether the address indicated by the pointer is correct for each data.However, it is necessary to check the address range for all data. If it is performed, a great deal of processing time is required, and it is not possible to cope with an application such as a navigation that requires a short startup process. Further, since the cold start function (forced reset) is not provided in the navigation device or the like, it is not preferable to repeat the reset during the startup process.
[0006]
The present invention has been made in order to solve the conventional problem, and is an information processing apparatus capable of executing a boot process without repeating reset when nonvolatile data necessary for the boot process is destroyed for some reason. It is an object to provide a method, a program, and a navigation device.
[0007]
[Means for Solving the Problems]
An information processing method according to the present invention is an information processing method for performing a startup process by reading non-volatile data, wherein a step of detecting a reset occurring during execution of the startup process, and And initializing a memory for storing nonvolatile data.
[0008]
With this configuration, when a reset occurs during the execution of the start-up process, the memory storing the nonvolatile data is initialized, and even if the nonvolatile data is destroyed for some reason, the start-up process is executed without repeating the reset. be able to.
[0009]
The program of the present invention is a program for performing a boot process by reading nonvolatile data. The computer includes a step of detecting a reset that occurs during the execution of the boot process. It is configured to execute a step of initializing a memory for storing data.
[0010]
With this configuration, when a reset occurs during the execution of the start-up process, the memory storing the nonvolatile data is initialized, and even if the nonvolatile data is destroyed for some reason, the start-up process is executed without repeating the reset. be able to.
[0011]
Further, the program of the present invention is a program for performing a boot process by reading non-volatile data, comprising: a step of detecting in a computer a reset that occurs during the execution of the boot process; and a program counter when the reset occurs. Has a configuration for executing a step of initializing a memory for storing the nonvolatile data when indicates the nonvolatile data initialization processing function.
[0012]
According to this configuration, when a reset occurs during the execution of the start-up process and the program counter at that time indicates the nonvolatile data initialization processing function, the memory storing the nonvolatile data is initialized, and the nonvolatile data is stored in the memory. Even if it is destroyed for some reason, it is possible to execute the start-up processing without repeating the reset.
[0013]
Further, the program of the present invention has a configuration including a step of initializing a memory for storing the nonvolatile data when the reset has occurred a prescribed number of times.
[0014]
With this configuration, when the reset has occurred a specified number of times, the memory storing the nonvolatile data can be initialized, and a system failure that can be recovered by repeating the reset multiple times can be rescued.
[0015]
Further, the program of the present invention has a configuration including a step of saving the nonvolatile data before initializing the memory.
[0016]
According to this configuration, the nonvolatile data can be saved before the memory is initialized, and the saved nonvolatile data can be used after the system is started.
[0017]
Further, the program of the present invention has a configuration including a step of initializing the memory with data at the time of previous activation.
[0018]
With this configuration, since the memory can be initialized with the data at the time of previous activation and the system can be activated with the data at the time of previous activation, data loss at the time of memory initialization can be minimized.
[0019]
Further, a navigation device according to the present invention is a navigation device that executes the program according to any one of claims 2 to 6, and includes a communication unit that performs data communication between the memory and the outside. Have.
[0020]
According to this configuration, the nonvolatile data can be communicated between the memory and the outside via the communication means, so that the nonvolatile data can be analyzed outside and the restored nonvolatile data can be returned to the memory. It is possible to start.
[0021]
Further, a navigation device of the present invention is a navigation device that executes the program according to any one of claims 2 to 6, and has a configuration including a removable storage unit that stores the nonvolatile data.
[0022]
With this configuration, the non-volatile data can be extracted to the outside via the detachable storage means, so that the non-volatile data can be analyzed outside, and the restored non-volatile data is returned to the memory and activated. It becomes possible.
[0023]
The navigation device of the present invention is a navigation device that executes the program according to any one of claims 2 to 6, and has a configuration including a notification unit that notifies that the memory has been initialized.
[0024]
According to this configuration, the memory initialization can be notified by the notification unit, so that the user can recognize that the activation is performed after the initialization.
[0025]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, an information processing method according to an embodiment of the present invention will be described with reference to the drawings.
FIG. 1 shows an information processing apparatus for implementing an information processing method according to an embodiment of the present invention.
In FIG. 1, an information processing apparatus 10 includes a CPU 1 for controlling the overall operation by executing a program, a program counter 2, a memory 4 for storing non-volatile data such as user data required at startup, and a non-volatile And a CPU exception storage unit 5 for reading data and executing a startup process and storing data of the program counter 2 when an exception of the CPU 1 occurs.
[0026]
Further, the information processing apparatus 10 includes a data initializing determination unit 6 that determines whether the activation process is being executed, and a start-up unit that determines that the activation process is being executed by the data initialization determination unit 6. 3 is reset, and when the data of the program counter 2 stored in the CPU exception storage unit 5 is a nonvolatile data initialization processing function, a data initialization unit 7 for initializing the nonvolatile data stored in the memory 4 , A bus line 8.
[0027]
The operation of the information processing apparatus configured as described above will be described with reference to FIG. In the program according to the first embodiment shown in FIG. 2, when the start process is started, a flag indicating that data necessary for the start is being initialized is checked (step S1), and a reset occurs during the start process. It is monitored whether or not to do so (step S2).
[0028]
In step S2, if no reset occurs during data initialization (NO), the data initialization flag is turned on in accordance with a normal startup sequence (step S3), and the data is validated (step S5).
[0029]
In step S2, if the user data or the like stored in the non-volatile memory is destroyed for some reason and a reset occurs during the data initialization (YES), the data is initialized by initializing the non-volatile memory (step S4). ).
[0030]
In step S5, if a reset occurs before the data validation is completed (NO), the process returns to step S1 to check the data initialization flag, and checks in step S2 whether reset has occurred (YES), and in step S4. Data initialization is performed by initializing the nonvolatile memory.
[0031]
If the reset has not occurred in step S5 and the data validation has been completed (YES), and if the data initialization has been performed in step S4, the data initialization flag is turned off (step S6) and activated (step S7). ).
[0032]
According to such a program of the first embodiment of the present invention, when the activation unit 3 is reset during a period in which it is determined that the activation process is being executed, data initialization is performed by initializing the memory 4. Therefore, even if the non-volatile data is destroyed for some reason, the start-up process can be executed without repeating the reset.
[0033]
Next, FIG. 3 shows a program according to a second embodiment of the present invention.
In the program according to the second embodiment shown in FIG. 3, when the start process is started, a reset generation function generated in response to a reset is confirmed (step S11), and the reset generation function is replaced with a data initialization function. It is determined whether or not (step S12).
[0034]
If the reset generation function is not the data initialization function in step S12 (NO), the data is validated according to a normal startup sequence (step S13).
[0035]
If the reset generation function is a data initialization function in step S12 (YES), it means that the non-volatile data is broken, and the data is initialized by initializing the non-volatile memory (step S14).
[0036]
If a reset occurs before the data validation is completed in step S13 (NO), the data of the program counter is saved (step S15), and the process returns to step S11 to check the reset generation function. Is a data initialization function (YES), and in step S14, data initialization is performed by initializing the nonvolatile memory.
[0037]
When the data validation is completed without resetting in step S13 (YES), and when the data initialization is performed in step S14, the process is started (step S16).
[0038]
According to such a program of the second embodiment of the present invention, when the program counter 2 is reset during the execution of the startup process and the program counter 2 is a nonvolatile data initialization processing function, the memory 4 is initialized to initialize the data. Thus, even if the non-volatile data is destroyed for some reason, the start-up process can be executed without repeating the reset.
[0039]
Next, a program according to a third embodiment of the present invention is shown in FIG.
In the program according to the third embodiment shown in FIG. 4, when the start process is started, the reset generation function generated in response to the reset and the number of reset occurrences are confirmed (step S21). Is a data initialization function, and whether the number of reset occurrences is equal to or greater than a specified number is determined (step S22).
[0040]
If the reset generation function is not the data initialization function in step S22, or if the number of reset occurrences is less than the specified number (NO), the data is validated according to a normal startup sequence (step S23).
[0041]
In step S22, if the reset generation function is the data initialization function and the number of reset occurrences is equal to or greater than the specified number (YES), the non-volatile data is broken, and the data is initialized by initializing the non-volatile memory. (Step S24).
[0042]
If a reset occurs before the data validation is completed in step S23 (NO), the data of the program counter is saved (step S25), and the process returns to step S21 to check the reset generation function and the number of reset occurrences. Then, it is confirmed that the reset generation function is a data initialization function and the number of reset occurrences is equal to or greater than a specified number (YES), and data initialization is performed in step S24.
[0043]
In step S23, when the resetting does not occur and the data validation is completed (YES), and when the data initialization is performed in step S24, the process is started (step S26).
[0044]
According to such a program of the third embodiment of the present invention, by performing data initialization when the number of reset occurrences is equal to or more than a predetermined number, a system failure that can be recovered by performing a plurality of resets is initialized. Can be remedied without.
[0045]
Next, a program according to a fourth embodiment of the present invention is shown in FIG.
In the program according to the fourth embodiment shown in FIG. 5, when the start processing is started, the reset generation function generated in response to the reset and the number of reset occurrences are confirmed (step S31). Is a data initialization function, and whether the number of reset occurrences is equal to or greater than a specified number is determined (step S32).
[0046]
In step S32, if the reset generation function is not the data initialization function, or if the number of reset occurrences is less than the specified number (NO), the data is validated according to a normal startup sequence (step S33).
[0047]
In step S32, if the reset generation function is a data initialization function and the number of reset occurrences is equal to or greater than a specified number (YES), the nonvolatile data is destroyed, and the nonvolatile data is saved (step S32). (S34) Then, data initialization is performed (step S35).
[0048]
If a reset occurs before the data validation is completed in step S33 (NO), the data of the program counter is saved (step S36), and the process returns to step S31 to check the reset generation function and the number of reset occurrences. In S32, it is confirmed that the reset generation function is a data initialization function and the number of reset occurrences is equal to or greater than a specified number (YES), and in step S34 the data before initialization is stored in a region other than the initialization area of the nonvolatile memory. After saving the data, the data is initialized in step S35.
[0049]
In step S33, when the reset is not performed and the data validation is completed (YES), and when the data initialization is performed in step S35, the process is started (step S37).
[0050]
According to such a program of the fourth embodiment of the present invention, data is saved before data initialization, so that after saving the system, the saved data is used for analysis and the like, and the cause of the inability to start. Can be investigated.
[0051]
Next, FIG. 6 shows a program according to a fifth embodiment of the present invention.
In the program according to the fifth embodiment shown in FIG. 6, when the start process is started, a flag indicating that data necessary for the start is being initialized is checked (step S41), and a reset occurs during the start process. It is monitored whether or not to do so (step S42).
[0052]
In step S42, if no reset occurs during data initialization (NO), the data initialization flag is turned on in accordance with a normal startup sequence (step S43), and the data is validated (step S45).
[0053]
On the other hand, in step S42, if the non-volatile data has been destroyed for some reason and a reset has occurred during the data initialization (YES), the non-volatile memory is initialized with the data at the time of the previous activation (step S44).
[0054]
If a reset occurs before the data validation is completed in step S45 (NO), the process returns to step S41 to check the data initialization flag, and checks in step S42 that a reset during initialization has occurred (YES), In step S44, the nonvolatile memory is initialized with the data at the time of the previous activation.
[0055]
If the reset has not occurred in step S45 and the data validation has been completed (YES), and if the data initialization has been performed in step S44, the data initialization flag is turned off (step S46) and activated (step S47). ). Then, the initial data at the time of activation is stored (step S48).
[0056]
According to such a program of the fifth embodiment of the present invention, when the memory is reset during execution of the start-up processing, the memory is initialized with the data at the time of the previous start, so that the data at the time of memory initialization Losses can be minimized.
[0057]
Hereinafter, a navigation device according to an embodiment of the present invention will be described with reference to the drawings.
FIG. 7 shows a navigation device according to an embodiment of the present invention.
7, a navigation device 100 receives a latitude and longitude information from a GPS satellite and detects an absolute position of a vehicle, a GPS 21 for detecting an absolute position of the vehicle, an acceleration sensor 22 for detecting an acceleration of the vehicle, and an angular speed for detecting an angular speed of the vehicle. The system includes a sensor 23, a distance sensor 24 for detecting a traveling distance of the vehicle, and an interface 25 for supplying detection outputs of these sensors to a bus line 39.
[0058]
Further, the navigation device 100 calculates a traveling direction, a traveling distance, a traveling direction, current position coordinates (longitude, latitude), and the like of the vehicle based on output data of each sensor sequentially transmitted from the interface 25, and a CPU 26. And a RAM 28 that stores in advance various processing programs to be executed and other necessary information, and a RAM 28 that is accessed as needed in executing the programs.
[0059]
Further, the navigation device 100 includes an SRAM 29 which is a non-volatile memory that records user data such as current position data, home position data, search data, and azimuth data necessary at the time of startup, and various data such as map information. A driver 32 for driving a non-volatile memory 33 such as an HDD or an SD memory card for storing a program necessary for the operation, an operation means 30 for supplying various commands input from a remote controller or a touch panel 31 or the like to a bus line 39, It includes a speaker 34 for outputting voice such as a voice guide, a display means 36 for displaying a map or the like on a display 37, and a communication means 35 capable of communicating with a service center 38 via a network such as the Internet.
[0060]
The operation of the navigation device configured as described above will be described with reference to FIG.
First, when the power is turned on and the OS is started (step S51), user data such as current position data, home position data, search data, and direction data stored in a nonvolatile memory such as the SRAM 29 are registered (step S51). S52).
[0061]
If the data registered in step S52 is normal, the display screen of the display 37 shown in FIG. 9 switches from the black screen shown in FIG. 9A to the opening screen shown in FIG. 9B.
[0062]
If the user data stored in the non-volatile memory such as the SRAM 29 is destroyed for some reason, a CPU exception occurs (step S53), and the data initialization process starts (step S54), and the data is initialized. To start the application (step S55).
[0063]
At this time, as shown in FIG. 9 (c), after notifying that the user data and the like have been initialized and activated via the display 37, a navigation screen as shown in FIG. 9 (e) is displayed.
[0064]
According to such a navigation device of the embodiment of the present invention, even if the user data or the like stored in the SRAM 29 is destroyed for some reason, the navigation program can be started without repeating resetting.
[0065]
Further, since the data initialization is notified via the display 37, the user can be made aware of the activation after the initialization.
[0066]
Before initializing the SRAM 29, the user data stored in the SRAM 29 is stored in a removable storage means such as an SD memory card 33, or uploaded to a service center 38 via a network such as the Internet by the communication means 35. The service center 38 can also analyze the data and download the corrected data. In this case, as shown in FIG. 9D, the display screen of the display 37 displays that the save data is being analyzed.
[0067]
According to such a navigation device of the embodiment of the present invention, before the SRAM is initialized, the nonvolatile data can be communicated between the memory and the outside via the communication means. Can be analyzed externally, and the restored nonvolatile data can be returned to the SRAM and activated.
[0068]
Further, since the nonvolatile data can be taken out to the outside via the removable storage means before the SRAM is initialized, the nonvolatile data can be analyzed outside, and the restored nonvolatile data can be stored in the SRAM. It is possible to return and start.
[0069]
【The invention's effect】
As described above, the present invention initializes the memory for storing the non-volatile data when a reset occurs during the execution of the start-up process, and even when the non-volatile data is destroyed for some reason, starts the memory without repeating the reset. It is possible to provide an information processing method, a program, and a navigation device having an effect that a process can be executed.
[Brief description of the drawings]
FIG. 1 is a block diagram of an information processing apparatus that implements an information processing method according to an embodiment of the present invention; FIG. 2 is a flowchart illustrating an operation of a program according to the first embodiment of the present invention; FIG. 4 is a flowchart for explaining the operation of the program according to the second embodiment of the present invention; FIG. 4 is a flowchart for explaining the operation of the program according to the third embodiment of the present invention; FIG. 6 is a flowchart for explaining the operation of the program according to the fourth embodiment. FIG. 6 is a flowchart for explaining the operation of the program according to the fifth embodiment of the present invention. FIG. 7 is a navigation according to the embodiment of the present invention. FIG. 8 is a flowchart for explaining the operation of the navigation device according to the embodiment of the present invention. FIG. 9 is mounted on the navigation device according to the embodiment of the present invention. Illustration for explaining the screen configuration diagram [10] according to the prior art starting process for explaining the operation of Isupurei EXPLANATION OF REFERENCE NUMERALS
1,26 CPU
2 Program counter 3 Starting means 4 Memory 5 CPU exception saving means 6 Data initializing means 7 Data initializing means 8, 39 Bus line 10 Information processing device 21 GPS
22 acceleration sensor 23 angular velocity sensor 24 distance sensor 25 interface 27 ROM
28 RAM
29 SRAM
30 operation means 31 remote control / touch panel 32 driver 33 HDD / SD
34 speaker 35 communication means 36 display means 37 display 38 center 100 navigation device

Claims (9)

不揮発性データを読み出して起動処理を行う情報処理方法であって、前記起動処理の実行中に発生するリセットを検出するステップと、前記リセットが発生した場合に、前記不揮発性データを格納するメモリを初期化するステップとを含む情報処理方法。An information processing method for reading out nonvolatile data and performing a start-up process, comprising: detecting a reset occurring during execution of the start-up process; and storing the nonvolatile data when the reset occurs. And an initialization method. 不揮発性データを読み出して起動処理を行うプログラムであって、コンピュータに、前記起動処理の実行中に発生するリセットを検出するステップ、前記リセットが発生した場合に、前記不揮発性データを格納するメモリを初期化するステップを実行させるプログラム。A program for reading nonvolatile data and performing a boot process, the computer comprising: a step of detecting a reset occurring during the execution of the boot process; and a memory for storing the nonvolatile data when the reset occurs. A program that performs the steps of initialization. 不揮発性データを読み出して起動処理を行うプログラムであって、コンピュータに、前記起動処理の実行中に発生するリセットを検出するステップ、前記リセットが発生したときのプログラムカウンタが前記不揮発性データ初期化処理関数を示している場合に、前記不揮発性データを格納するメモリを初期化するステップを実行させるプログラム。A program for reading out nonvolatile data and performing a start-up process, wherein the computer detects a reset that occurs during the execution of the start-up process, A program for executing, when indicating a function, a step of initializing a memory for storing the nonvolatile data. 前記リセットが規定回数発生した場合に、前記不揮発性データを格納するメモリを初期化するステップを含む請求項3に記載のプログラム。The program according to claim 3, further comprising a step of initializing a memory storing the nonvolatile data when the reset has occurred a predetermined number of times. 前記メモリを初期化する前に前記不揮発性データを退避させるステップを含む請求項2ないし請求項4のいずれかに記載のプログラム。The program according to claim 2, further comprising a step of saving the nonvolatile data before initializing the memory. 前記メモリを前回起動時のデータで初期化するステップを含む請求項2ないし請求項5のいずれかに記載のプログラム。The program according to any one of claims 2 to 5, further comprising a step of initializing the memory with data from a previous start. 請求項2ないし請求項6のいずれかに記載のプログラムを実行するナビゲーション装置であって、前記メモリと外部との間でデータ通信を行う通信手段を備えるナビゲーション装置。A navigation device that executes the program according to any one of claims 2 to 6, further comprising a communication unit that performs data communication between the memory and an external device. 請求項2ないし請求項6のいずれかに記載のプログラムを実行するナビゲーション装置であって、前記不揮発性データを格納する着脱可能な記憶手段を備えるナビゲーション装置。A navigation device that executes the program according to any one of claims 2 to 6, further comprising a removable storage unit that stores the nonvolatile data. 請求項2ないし請求項6のいずれかに記載のプログラムを実行するナビゲーション装置であって、前記メモリを初期化したことを通知する通知手段を備えるナビゲーション装置。A navigation device that executes the program according to any one of claims 2 to 6, further comprising a notification unit that notifies that the memory has been initialized.
JP2003137474A 2003-05-15 2003-05-15 Information processing method and program, and navigation system Pending JP2004341817A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003137474A JP2004341817A (en) 2003-05-15 2003-05-15 Information processing method and program, and navigation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003137474A JP2004341817A (en) 2003-05-15 2003-05-15 Information processing method and program, and navigation system

Publications (1)

Publication Number Publication Date
JP2004341817A true JP2004341817A (en) 2004-12-02

Family

ID=33527125

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003137474A Pending JP2004341817A (en) 2003-05-15 2003-05-15 Information processing method and program, and navigation system

Country Status (1)

Country Link
JP (1) JP2004341817A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011227555A (en) * 2010-04-15 2011-11-10 Denso Corp Navigation device for vehicle
CN103577332A (en) * 2012-08-10 2014-02-12 日立汽车系统株式会社 Control device for vehicle and error processing method in control device for vehicle
JP2014035729A (en) * 2012-08-10 2014-02-24 Hitachi Automotive Systems Ltd Vehicle control device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011227555A (en) * 2010-04-15 2011-11-10 Denso Corp Navigation device for vehicle
CN103577332A (en) * 2012-08-10 2014-02-12 日立汽车系统株式会社 Control device for vehicle and error processing method in control device for vehicle
JP2014035729A (en) * 2012-08-10 2014-02-24 Hitachi Automotive Systems Ltd Vehicle control device
JP2014035730A (en) * 2012-08-10 2014-02-24 Hitachi Automotive Systems Ltd Vehicle control device

Similar Documents

Publication Publication Date Title
AU748984B2 (en) Information display apparatus and navigation apparatus
US10268535B2 (en) Vehicular image display system
CN101390058A (en) Method and apparatus for detecting a fault condition and restoration thereafter using user context information
US9715288B2 (en) Electronic device
CN110308471B (en) Equipment positioning method and device, storage medium and electronic equipment
JP4677214B2 (en) Program, method and mechanism for collecting panic dump
US10479371B1 (en) Apparatus and method for determining driver distraction based on jerk and vehicle system
US20080004800A1 (en) Navigation System
CN112506745A (en) Memory temperature reading method and device and computer readable storage medium
JP2008084275A (en) Device and method for monitoring alteration of software
JP2004341817A (en) Information processing method and program, and navigation system
JP5733429B2 (en) Information processing apparatus and information processing method
KR20070044268A (en) Apparatus and method of processing booting in main board
JP5887952B2 (en) In-vehicle terminal and application execution environment program
CN113874802B (en) Control system, programmable logic controller, and information processing method
US20150302824A1 (en) Display device and color calibration method
EP4024410A1 (en) Simulation system, simulation program, and simulation method
JP2008293321A (en) Information processor
JP2000146765A (en) Electronic controller for vehicle
JP2020086516A (en) Information processing device, control method of information processing device, and program
JPH02281367A (en) Sate reproducing method
JP3098437B2 (en) Collection method of IPL program execution information
JP5010876B2 (en) In-vehicle terminal apparatus and program control method therefor
US20120161966A1 (en) Network status indication system and method thereof
KR101108679B1 (en) Diagnose method and system for using ultrasonics wave which have own diagnosis and restoration function