JP2005258605A - Information processor and program of information processing - Google Patents
Information processor and program of information processing Download PDFInfo
- Publication number
- JP2005258605A JP2005258605A JP2004066532A JP2004066532A JP2005258605A JP 2005258605 A JP2005258605 A JP 2005258605A JP 2004066532 A JP2004066532 A JP 2004066532A JP 2004066532 A JP2004066532 A JP 2004066532A JP 2005258605 A JP2005258605 A JP 2005258605A
- Authority
- JP
- Japan
- Prior art keywords
- date
- time
- information processing
- state
- time 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.)
- Pending
Links
Images
Abstract
Description
本発明は、情報処理装置および情報処理のプログラムに関し、特に、リアルタイムクロックの制御を行う情報処理装置および情報処理のプログラムに関するものである。 The present invention relates to an information processing apparatus and an information processing program, and more particularly to an information processing apparatus and an information processing program for controlling a real-time clock.
一般に、パーソナルコンピュータ、PDA(personal digital assistants)、携帯電話などの情報処理装置においては、オペレーティングシステム(OS)やユーザが管理するファイルなどは、現在時刻を計時するリアルタイムクロックに基づいて、時刻管理すなわちタイムスタンプ管理を行っている。このためリアルタイムクロックを発生するリアルタイムクロック回路の動作に不具合が発生すると、タイムスタンプ管理が破綻してしまい、装置が停止したり暴走するおそれがある。したがって、従来、リアルタイムクロック回路に供給する電源は他の回路とは別個の専用電源が使用されてきた。 In general, in an information processing apparatus such as a personal computer, a PDA (personal digital assistants), and a mobile phone, an operating system (OS), a file managed by a user, and the like are managed based on a real-time clock that measures the current time. Time stamp management is performed. For this reason, when a malfunction occurs in the operation of the real-time clock circuit that generates the real-time clock, the time stamp management is broken, and there is a possibility that the apparatus stops or runs away. Therefore, conventionally, a dedicated power source that is separate from other circuits has been used as the power source that supplies the real-time clock circuit.
図6は、従来の携帯電話の機能的な構成を示す概略ブロック図である。図6において、CPU201は、同期拡張バス201aを介して、ワークエリアであるSDRAM202に接続され、非同期拡張バス201bを介して、再起動時におけるブート用のフラッシュメモリ(NOR)203、および、携帯電話の専用の機能を果たすASIC204に接続されている。ASIC204には、CODEC(符号化・復号化処理回路)、USB(Universal Serial Bus)のホスト回路、ファンクション回路、ネットワーク回路などの複数の回路ブロック(図示せず)が含まれている。
FIG. 6 is a schematic block diagram showing a functional configuration of a conventional mobile phone. In FIG. 6, a
さらに、ASIC204には、データ保存用のフラッシュメモリ(NAND)205が接続されている。このフラッシュメモリ205は、一般的なSRAM等のインターフェースには適応していないので、CPU201の非同期拡張バス201bに直接接続することができず、ASIC204を介して非同期拡張バス201bに接続される。また、リアルタイムクロック(RTC)206が、シリアルバス206aによってCPU201に接続されている。リアルタイムクロック206は、専用の電源である電池207によって駆動されている。
さらに、リアルタイムクロック206の電源供給ラインには、大容量のコンデンサ208が接続され、電池207を交換する際には、ある程度の時間であれば、コンデンサ208に充電されている電荷によってリアルタイムクロック206に供給する電源電圧を保証することで、そのリアルタイム機能を維持することができる。
なお、携帯電話の構成要素である送受信部(TX/RX)209がASIC204に接続され、キースイッチなどからなる操作部(SWITCH)210および液晶などの表示部(LCD)211がCPU201に接続されている。
Further, a flash memory (NAND) 205 for data storage is connected to the
Further, a large-
In addition, a transmitting / receiving unit (TX / RX) 209 which is a component of the mobile phone is connected to the ASIC 204, an operation unit (SWITCH) 210 including a key switch and a display unit (LCD) 211 such as a liquid crystal are connected to the
このように、従来のリアルタイムクロック206のリアルタイム機能が電池207および大容量のコンデンサ208によって維持されてはいるが、ユーザが電池207の電圧降下に気付かない場合や、電池交換の時間が長くなってコンデンサ208からリアルタイムクロック206に供給する電圧が低下した場合には、リアルタイム機能が失われて現在時刻を得ることができず、再起動した際には、例えば、工場出荷時の日時に設定されてしまう。このため、再起動後にファイル操作を行うと、タイムスタンプ管理が破綻してシステムダウンやシステムの暴走が発生する恐れがある。
As described above, the real-time function of the conventional real-
一方、ある特許文献において、リアルタイム機能が失われた後の再起動時に、現在時刻に近い日時を自動的に設定する撮像装置およびその制御方法の提案がなされている。
この提案の撮像装置は、画像を撮像して画像データを生成可能な撮像手段と、日時を計時する計時手段と、不揮発性のメモリに対し前記画像データに日時データを加えたデータを記録し、さらに該画像データと共に記録された日時データを読み取り可能な入出力手段と、前記不揮発性のメモリから読み取った最新の日時データに基づき、前記計時手段をリセット可能なリセット手段とを有する構成になっている。
また、この提案の制御方法は、画像を撮像した撮像データに、計時手段で計時された日時データを加えて、不揮発性のメモリに記録する記録工程と、前記画像データと共に記録された日時データを読み取り、前記計時手段をリセットするリセット工程とを有する構成になっている。
On the other hand, in a certain patent document, an imaging apparatus that automatically sets a date and time close to the current time at the time of restart after the real-time function is lost, and a control method therefor have been proposed.
The proposed imaging apparatus records an image capturing unit capable of capturing an image and generating image data, a time measuring unit that measures the date and time, and data obtained by adding the date and time data to the image data in a nonvolatile memory, Furthermore, it has a configuration having input / output means capable of reading date / time data recorded together with the image data, and reset means capable of resetting the time measuring means based on the latest date / time data read from the nonvolatile memory. Yes.
The proposed control method also includes a recording step of adding the date / time data measured by the timing means to the imaging data obtained by capturing an image and recording the data in a nonvolatile memory, and the date / time data recorded together with the image data. And a resetting step for resetting the timing means.
従って、画像データが記録された状態であれば、リセット時に設定される日時を、常に現在の日時に近い日時とすることができ、リセット後の計時手段の日時合わせが簡単になることが記載されている。(特許文献1参照)
しかしながら上記特許文献1は、画像データが記録された状態でない場合には、撮像装置のRTCを現在日時に近い日時でリセットすることができない。デジタルカメラ又はカメラ付き携帯電話のような撮像機能を具備した装置に記録された画像データは、パソコンなどに転送して保存したり、他の携帯電話などに送信することが可能であるので、画像データが不揮発性のメモリに常に記録されているという保証はない。また、画像データが不揮発性のメモリに記録されているとしても、その画像データの日時データが最新の日時でない場合には、リセット時に設定される日時を、常に現在の日時に近い日時とすることはできない。
However, in
したがって、上記特許文献1の構成をもってしても、リアルタイムクロックの専用電源である電池の電圧低下や電池を交換する時間が長くなって、リアルタイム機能が失われて現在時刻を得られなくなった場合には、再起動後にファイル操作を行うことによる、タイムスタンプ管理の破綻の結果、システムダウンやシステムの暴走を確実に防止することができないという課題は解決されない。また、図6に示した従来例のように、大容量のコンデンサを用いて構成した場合には、コンデンサの形状が大きくなるため、装置の小型化が困難になるという課題があった。
Therefore, even with the configuration of the above-mentioned
本発明は、このような従来の課題を解決するものであり、装置の環境状態が予め指定した異常な状態又は特定の状態に変化しても、リアルタイムクロックのリアルタイム機能を常に維持して、再起動後にファイル操作を行った場合に、システムダウンやシステムの暴走を確実に防止できるとともに、大容量のコンデンサのように形状の大きな部品を使用しないことで、装置の小型化を図ることができる情報処理装置および情報処理のプログラムを提供することを目的とする。 The present invention solves such a conventional problem and always maintains the real-time function of the real-time clock even when the environmental state of the apparatus changes to an abnormal state or a specific state designated in advance. When file operations are performed after startup, system down and system runaway can be reliably prevented, and downsizing of the device can be achieved by not using large parts such as large capacitors. It is an object to provide a processing device and an information processing program.
請求項1に記載の情報処理装置は、設定された初期日時から時刻を計時する計時手段(実施形態においては、図1のリアルタイムクロック106に相当する)から出力される日時情報に基づいて日時の管理を行う情報処理装置であって、
この装置の環境状態を監視して、予め指定された状態遷移を検出する検出手段(実施形態においては、図1のCPU101に相当する)と、検出手段が指定された状態遷移を検出したときは、計時手段によって出力された日時情報を不揮発性の記憶手段(実施形態においては、図1のフラッシュメモリ105に相当する)に記憶する記憶制御手段(実施形態においては、図1のCPU101に相当する)と、所定の操作に応じて日時情報を入力する入力手段(実施形態においては、図1の操作部110に相当する)と、入力手段によって入力された日時情報が記憶手段に記憶されている日時情報より新しい日時を示す場合には、当該入力された日時情報を計時手段における初期日時として設定する設定手段(実施形態においては、図1のCPU101に相当する)と、を備えた構成になっている。
The information processing apparatus according to
When detecting the environmental state of this apparatus and detecting a state transition designated in advance (corresponding to the
請求項1の情報処理装置において、請求項2に記載したように、設定手段は、入力手段によって入力された日時情報が記憶手段に記憶されている日時情報より新しい日時でない場合には、再度の日時情報の入力を促す警告を所定の報知手段(実施形態においては、図1の表示部111、又は図示しないスピーカ、LEDなどに相当する)によって示すような構成にしてもよい。
請求項1に記載の情報処理装置において、請求項3に記載したように、検出手段は、この装置に供給されている電源電圧の状態を監視して、電源電圧の低下を前記予め指定された状態遷移として検出するような構成にしてもよい。
請求項1の情報処理装置において、請求項4に記載したように、検出手段は、この装置に対するファイルの書き込み操作の状態を監視して、ファイルの書き込み操作を予め指定された状態遷移として検出するような構成にしてもよい。さらに、請求項4の情報処理装置において、請求項5に記載したように、検出手段は、書き込み操作に係るファイルがオペレーションシステムの使用領域のファイルである場合を予め指定された状態遷移として検出するような構成にしてもよい。
請求項1の情報処理装置において、請求項6に記載したように、検出手段は、この装置の周囲温度の状態を監視して、急激な温度変化を予め指定された状態遷移として検出するような構成にしてもよい。
請求項1の情報処理装置において、請求項7に記載したように、検出手段は、この装置の周囲温度の状態を監視して、周囲温度が予め設定されている温度範囲より高い温度又は低い温度になった場合を前記予め指定された状態遷移として検出するような構成にしてもよい。
請求項1の情報処理装置において、請求項8に記載したように、記憶制御手段は、この装置がスリープ状態又はシャットダウン状態に遷移する前に計時手段によって出力された日時情報を記憶手段に記憶するような構成にしてもよい。
In the information processing apparatus according to
In the information processing apparatus according to
The information processing apparatus according to
In the information processing apparatus according to
In the information processing apparatus according to
In the information processing apparatus according to
請求項9に記載の情報処理のプログラムは、設定された初期日時から時刻を計時する計時手段(実施形態においては、図1のリアルタイムクロック106に相当する)から出力される日時情報に基づいて日時の管理を行う情報処理のプログラムであって、
この装置の環境状態を監視して、予め指定された状態遷移を検出する第1のステップ(実施形態においては、図2のメインルーチンから図4の割込み処理に移行する動作に相当する)と、第1のステップが指定された状態遷移を検出したときは、計時手段から出力された日時情報を不揮発性の記憶手段(実施形態においては、図1のフラッシュメモリ105に相当する)に記憶する第2のステップ(実施形態においては、図4のRTC保存処理に相当する)と、所定の操作に応じて日時情報を入力する第3のステップ(実施形態においては、図3のステップSB1および図5のステップSD1に相当する)と、第3のステップによって入力された日時情報が記憶手段に記憶されている日時情報より新しい日時を示す場合(実施形態においては、図3のステップSB7および図5のステップSD6のNOに相当する)には、当該入力された日時情報を計時手段における初期日時として設定する第4のステップ(実施形態においては、図3のステップSB4および図5のステップSD4に相当する)と、を実行する。
The information processing program according to claim 9 is based on date and time information output from time measuring means (in the embodiment, corresponding to the real-
A first step of monitoring the environmental state of the apparatus and detecting a pre-designated state transition (in the embodiment, this corresponds to an operation of shifting from the main routine of FIG. 2 to the interrupt processing of FIG. 4); When the first step detects the designated state transition, the date and time information output from the time measuring means is stored in a nonvolatile storage means (corresponding to the
請求項9の情報処理のプログラムにおいて、請求項10に記載したように、第4のステップは、第3のステップによって入力された日時情報が記憶手段に記憶されている日時情報より新しい日時でない場合には、再度の日時情報の入力を促す警告を所定の報知手段(実施形態においては、図1の表示部111、又は図示しないスピーカ、LEDなどに相当する)によって示すような構成にしてもよい。
請求項9の情報処理のプログラムにおいて、請求項11に記載したように、第4のステップは、この装置に供給されている電源電圧の状態を監視して、電源電圧の低下を予め指定された状態遷移として検出するような構成にしてもよい。
請求項9の情報処理のプログラムにおいて、請求項12に記載したように、第4のステップは、この装置に対するファイルの書き込み操作の状態を監視して、ファイルの書き込み操作を予め指定された状態遷移として検出するような構成にしてもよい。さらに、請求項9の情報処理のプログラムにおいて、請求項13に記載したように、第4のステップは、書き込み操作に係るファイルがオペレーションシステムの使用領域のファイルである場合を予め指定された状態遷移として検出するような構成にしてもよい。
請求項9の情報処理のプログラムにおいて、請求項14に記載したように、第4のステップは、この装置の周囲温度の状態を監視して、急激な温度変化を予め指定された状態遷移として検出するような構成にしてもよい。
請求項9の情報処理のプログラムにおいて、請求項15に記載したように、第4のステップは、この装置に対する周囲温度の状態を監視して、周囲温度が予め設定されている温度範囲より高い温度又は低い温度になった場合を予め指定された状態遷移として検出するような構成にしてもよい。
請求項9の情報処理のプログラムにおいて、請求項16に記載したように、第2のステップは、この装置がスリープ状態又はシャットダウン状態に遷移する前に計時手段によって出力された日時情報を記憶手段に記憶するような構成にしてもよい。
In the information processing program according to claim 9, as described in claim 10, in the fourth step, the date information input by the third step is not newer than the date information stored in the storage means. Alternatively, a warning that prompts the user to input the date / time information again may be configured to be indicated by predetermined notification means (in the embodiment, corresponding to the
In the information processing program according to claim 9, as described in claim 11, the fourth step monitors the state of the power supply voltage supplied to the apparatus and is designated in advance to decrease the power supply voltage. You may make it the structure which detects as a state transition.
In the information processing program according to claim 9, as described in claim 12, the fourth step monitors a state of a file write operation with respect to the device, and a state transition in which the file write operation is designated in advance. It may be configured to detect as follows. Further, in the information processing program according to claim 9, as described in claim 13, the fourth step is a state transition designated in advance when the file related to the write operation is a file in the use area of the operation system. It may be configured to detect as follows.
In the information processing program according to claim 9, as described in claim 14, the fourth step monitors the ambient temperature state of the device and detects a sudden temperature change as a predesignated state transition. You may make it the structure which does.
In the information processing program according to claim 9, as described in claim 15, the fourth step monitors the state of the ambient temperature for the device, and the ambient temperature is higher than a preset temperature range. Or you may make it the structure which detects the case where it becomes low temperature as a state transition designated beforehand.
In the information processing program according to claim 9, as described in claim 16, in the second step, the date and time information output by the time measuring means before the apparatus enters the sleep state or the shutdown state is stored in the storage means. You may make it the structure which memorize | stores.
本発明の情報処理装置および情報処理のプログラムによれば、装置の環境状態が予め指定した異常な状態又は特定の状態に変化しても、リアルタイムクロックのリアルタイム機能を常に維持して、再起動後にファイル操作を行った場合に、システムダウンやシステムの暴走を確実に防止できるとともに、リアルタイムクロックへの電源供給用の大容量のコンデンサのように形状の大きい部品を使用しないことで、装置の小型化を図ることができるという効果が得られる。 According to the information processing apparatus and the information processing program of the present invention, the real-time function of the real-time clock is always maintained even after the environmental state of the apparatus changes to a predetermined abnormal state or a specific state. When file operations are performed, system down and system runaway can be reliably prevented, and the size of the device can be reduced by not using large-sized parts such as a large-capacitance capacitor for supplying power to the real-time clock. The effect that it can aim at is acquired.
以下、本発明による情報処理装置の第1および第2実施形態について、携帯電話を例に採って図を参照して説明する。
図1は、各実施形態における携帯電話の構成を示す概略のブロック図である。
図1において、CPU101は、同期拡張バス101aを介して、ワークエリアであるSDRAM(Synchronous RAM;同期RAM)102に接続されている。このSDRAM102は、同期バス101aにおける一定周期のクロックに同期して動作する。
CPU101はまた、非同期拡張バス101bを介して、再起動時におけるブート用のフラッシュメモリ(NOR)103、および、携帯電話の専用の機能を果たすASIC104に接続されている。フラッシュメモリ103はランダムアクセスを高速に行うことが可能であり、オペレーションシステムのプログラム、情報処理のプログラム、およびその他の制御プログラムが格納されている。ASIC104には、CODEC(符号化・復号化処理回路)、USB(Universal Serial Bus)のホスト回路、ファンクション回路、ネットワーク回路などの複数の回路ブロック(図示せず)が含まれている。
Hereinafter, first and second embodiments of an information processing apparatus according to the present invention will be described with reference to the drawings by taking a mobile phone as an example.
FIG. 1 is a schematic block diagram showing a configuration of a mobile phone in each embodiment.
In FIG. 1, a
The
さらに、ASIC104には、ブロック単位でデータの読み書きを行うデータ保存用のフラッシュメモリ(NAND)105が接続されている。このフラッシュメモリ105は、一般的なSRAM等のインターフェースには適応していないので、CPU101の非同期拡張バス101bに直接接続することができず、ASIC104を介して非同期拡張バス101bに接続されている。また、フラッシュメモリ105には、工場出荷時の日時が初期値としてストアされている。
Further, the
また、リアルタイムクロック(RTC)106が、シリアルバス106aによってCPU101に接続されている。リアルタイムクロック106は、工場出荷時に設定された初期日時又はユーザの操作によって設定された初期日時から時刻を計時して、その日時情報すなわち現在の日時をCPU101に出力する。このリアルタイムクロック106の電源は、図6に示した従来例とは異なり、CPU101などに供給されている電源によって駆動されているとともに、リアルタイムクロック106の電源供給ラインには、大容量のコンデンサは接続されていない。
A real time clock (RTC) 106 is connected to the
さらに、周囲温度を検出する温度センサ(TS)107が、シリアルバス107aによってCPU101に接続されている。また、ASIC104には、この携帯電話に供給される電源の電圧VDCINを監視する電圧検出回路(DET)108が接続されている。電圧検出回路108は、CPU101の入力ポートに接続されてもよい。あるいは、内部にA/Dコンバータを備えたCPUを使用した場合には、その対応する入力ポートに電圧VDCINを直接又は分圧して入力し、そのCPUによって電源の電圧を監視する構成も可能である。
なお、携帯電話の構成要素である送受信部(TX/RX)109がASIC104に接続され、キースイッチなどからなる操作部(SWITCH)110および液晶などの表示部(LCD)111がCPU101に接続されている。また、図1には示していないが、通話用のマイクおよびスピーカ、着信報知用のLEDが設けられている。
Furthermore, a temperature sensor (TS) 107 that detects the ambient temperature is connected to the
A transmitting / receiving unit (TX / RX) 109, which is a component of a mobile phone, is connected to the
次に、図1の構成の携帯電話において、CPU101によって実行される第1実施形態の動作を図2ないし図4に示すフローチャートに基づいて説明する。
図1はメインルーチンのフローチャートである。まず、初期処理において、電圧低下や急激な温度変化等により、RTC確認が必要か否かを調査する。このために、フラグRTCFが「1(確認要)」であるか又は「0(確認不要)」であるかを判別し(ステップSA1)、RTCFが「1」で確認が必要な場合には、RTC確認処理を実行する(ステップSA2)。RTC確認処理の後、又は、RTCFが「0」である場合には、その他の初期処理を行う(ステップSA3)。
Next, the operation of the first embodiment executed by the
FIG. 1 is a flowchart of the main routine. First, in the initial processing, it is investigated whether or not RTC confirmation is necessary due to a voltage drop or a rapid temperature change. Therefore, it is determined whether the flag RTCF is “1 (confirmation required)” or “0 (confirmation unnecessary)” (step SA1). If the RTCF is “1” and confirmation is required, RTC confirmation processing is executed (step SA2). After the RTC confirmation process or when the RTCF is “0”, other initial processes are performed (step SA3).
この後は、入力処理(ステップSA4)、表示処理(ステップSA5)、その他の処理(ステップSA6)のループを繰り返し実行する。ステップSA4の入力処理においては、操作部110の各スイッチの操作に応じてコマンドやデータを入力する。入力するコマンドには、システムファイル更新(書き込み)のコマンド、システムに関係しない通常のファイル更新のコマンド、通話処理のコマンド、その他のコマンドがある。ステップSA5の表示処理においては、データやメッセージを表示部111に表示する。ステップSA6のその他の処理としては、音声データやメールの送受信処理などがある。
Thereafter, a loop of input processing (step SA4), display processing (step SA5), and other processing (step SA6) is repeatedly executed. In the input process of step SA4, commands and data are input according to the operation of each switch of the
図3は、メインルーチンにおけるステップSA2のRTC確認処理のフローチャートである。操作部110から日時が入力されたか否かを判別し、入力されたときは、その入力日時をレジスタBにストアする(ステップSB1)。そして、フラグINITが「0」であるか否かを判別する(ステップSB2)。このフラグは、リアルタイムクロック106の初期日時が設定済み(INIT=1)か、未設定(INIT=0)かを示すもので、工場出荷時には「0」にリセットされている。INITが「0」である場合には、INITを「1」にセットして(ステップSB3)、リアルタイムクロック106にレジスタBの入力日時を初期日時として設定する(ステップSB4)。
FIG. 3 is a flowchart of the RTC confirmation process in step SA2 in the main routine. It is determined whether or not a date / time has been input from the
ステップSB2において、INITが「1」である場合には、フラッシュメモリ105にストアされている日時をレジスタAにストアする(ステップSB5)。そして、レジスタAの日時が工場出荷時の初期値であるか否かを判別する(ステップSB6)。工場出荷時の初期値である場合には、リアルタイムクロック106にレジスタBの入力日時を初期日時として設定する(ステップSB4)。
If INIT is “1” in step SB2, the date and time stored in the
レジスタAの日時が工場出荷時の初期値でない場合には、レジスタAの日時がレジスタBの日時より新しいか又は同じであるか否かを判別する(ステップSB7)。Aの日時がBの日時より古い場合には、リアルタイムクロック106にレジスタBの入力日時を初期日時として設定する(ステップSB4)。 If the date and time of the register A is not the initial value at the time of factory shipment, it is determined whether or not the date and time of the register A is newer than or the same as the date and time of the register B (step SB7). If the date / time of A is older than the date / time of B, the input date / time of the register B is set as the initial date / time in the real-time clock 106 (step SB4).
ステップSB7において、Aの日時がBの日時より新しいか又は同じである場合、すなわち、以前に設定した日時が今回設定した日時より新しいか又は同じである場合には、今回設定した日時が誤っている場合であるので、表示部111に再設定確認のメッセージを表示する(ステップSB8)。例えば、「日時の再設定をしますか?……設定する/設定しない」などと表示して、対応するスイッチの操作を待つ。「再設定する」に対応するスイッチがオンされたときは、ステップSB1に移行して日時の入力を待つ。「再設定しない」に対応するスイッチがオンされたときは、リアルタイムクロック106にレジスタBの入力日時を初期日時として設定する(ステップSB4)。
ステップSB4において、リアルタイムクロック106にレジスタBの入力日時を初期日時として設定した後は、フラグRTCFを「0」にリセットする(ステップSB10)。そして、図2のメインルーチンに戻る。したがって、このRTC確認処理を終了した後は、リアルタイムクロック106は、操作部110からの入力日時を初期日時として時刻を計時する。
In step SB7, if the date / time of A is newer than or the same as the date / time of B, that is, if the date / time set before is newer or the same as the date / time set this time, the date / time set this time is incorrect. If so, a reset confirmation message is displayed on the display unit 111 (step SB8). For example, “Do you want to reset the date and time? …… Set / Do not set” is displayed, and the operation of the corresponding switch is awaited. When the switch corresponding to “reset” is turned on, the process proceeds to step SB1 and waits for the input of the date and time. When the switch corresponding to “not reset” is turned on, the input date and time of the register B is set as the initial date and time in the real time clock 106 (step SB4).
In step SB4, after setting the input date / time of the register B as the initial date / time in the
図4は、RTC保存処理のフローチャートである。この処理は、電圧検出回路108によって検出された入力電圧VDCINが所定値以下に低下した場合、又は、温度センサ107によって検出された周囲温度が急激に変化した場合や所定の範囲(例えば、−10°C〜+70°C)より高い温度又は低い温度になった場合に、割込み処理として実行される。リアルタイムクロック106の現在の日時をレジスタAにストアし(ステップSC1)、さらに、レジスタAにストアした日時をフラッシュメモリ105にストアする(ステップSC2)。次に、フラグRTCFを「1」にセットする(ステップSC3)。そして、メインルーチンに戻る。
FIG. 4 is a flowchart of the RTC saving process. This process is performed when the input voltage VDCIN detected by the
以上のように、この第1実施形態によれば、CPU101は、携帯電話の環境状態を監視して、入力電圧VDCINが所定値以下に低下した場合、又は、周囲温度が急激に変化した場合や所定の範囲より高い温度又は低い温度になった場合のように、予め指定された状態遷移を検出したときは、リアルタイムクロック106によって出力された日時情報をフラッシュメモリ105に記憶し、操作部110によって入力された日時情報がフラッシュメモリ105に記憶されている日時情報より新しい日時を示す場合には、日時情報をリアルタイムクロック106における初期日時として設定する。
As described above, according to the first embodiment, the
したがって、装置の環境状態が異常な状態に変化しても、リアルタイムクロック106のリアルタイム機能を常に維持して、再起動後にファイル操作を行った場合に、システムダウンやシステムの暴走を確実に防止できるとともに、リアルタイムクロック106への電源供給用の大容量のコンデンサのように形状の大きな部品を使用しないので、装置の小型化を図ることができる。
Therefore, even when the environmental state of the apparatus changes to an abnormal state, the real-time function of the real-
次に、図1の構成の携帯電話において、CPU101によって実行される第2実施形態のRTC確認処理の動作を図5に示すフローチャートに基づいて説明する。なお、第2実施形態におけるCPU101のメインルーチンおよびRTC保存処理については、図2および図4に示した第1実施形態のフローチャートと同じであるので、図2および図4を援用して、この第2実施形態の動作を説明する。
Next, the operation of the RTC confirmation process of the second embodiment executed by the
図5において、操作部110から日時が入力されたか否かを判別し、入力されたときは、その入力日時をレジスタBにストアする(ステップSD1)。そして、フラグINITが「1(初期日時設定済み)」であるか又は「0(初期日時未設定)」であるかを判別する(ステップSD2)。第1実施形態と同様に、このフラグは、工場出荷時に「0」にリセットされている。INITが「0」である場合には、INITを「1」にセットして(ステップSD3)、リアルタイムクロック106にレジスタBの入力日時を初期日時として設定する(ステップSD4)。
In FIG. 5, it is determined whether or not a date / time has been input from the
ステップSD2において、INITが「1」である場合には、タイムスタンプ管理されているファイルの最新日時を検索してレジスタAにストアする(ステップSD5)。そして、レジスタAの日時がレジスタBの日時より新しいか又は同じであるか否かを判別する(ステップSD6)。Aの日時がBの日時より古い場合には、リアルタイムクロック106にレジスタBの入力日時を初期日時として設定する(ステップSD4)。 If INIT is “1” in step SD2, the latest date and time of the file whose time stamp is managed is retrieved and stored in register A (step SD5). Then, it is determined whether or not the date and time of the register A is newer than or the same as the date and time of the register B (step SD6). If the date / time of A is older than the date / time of B, the input date / time of the register B is set as the initial date / time in the real-time clock 106 (step SD4).
Aの日時がBの日時より新しいか又は同じである場合、すなわち、ファイルの最新日時が今回設定した日時より新しいか又は同じである場合には、今回設定した日時が誤っている場合であるので、表示部111に再設定確認のメッセージを表示する(ステップSD7)。例えば、「日時の再設定をしますか?……設定する/設定しない」などと表示して、対応するスイッチの操作を待つ。「再設定する」に対応するスイッチがオンされたときは、ステップSD1に移行して日時の入力を待つ。「再設定しない」に対応するスイッチがオンされたときは、リアルタイムクロック106にレジスタBの入力日時を初期日時として設定する(ステップSD4)。
ステップSD4において、リアルタイムクロック106にレジスタBの入力日時を初期日時として設定した後は、フラグRTCFを「0」にリセットする(ステップSD10)。そして、図2のメインルーチンに戻る。なお、「再設定しない」に対応するスイッチがオンされたときに、タイムスタンプ管理が破綻するおそれがある旨のメッセージを表示部111に表示してもよい。
If the date / time of A is newer than or the same as the date / time of B, that is, if the latest date / time of the file is newer or the same as the date / time set this time, the date / time set this time is incorrect. Then, a reset confirmation message is displayed on the display unit 111 (step SD7). For example, “Do you want to reset the date and time? …… Set / Do not set” is displayed, and the operation of the corresponding switch is awaited. When the switch corresponding to “reset” is turned on, the process proceeds to step SD1 to wait for input of the date and time. When the switch corresponding to “not reset” is turned on, the input date and time of the register B is set as the initial date and time in the real time clock 106 (step SD4).
In step SD4, after setting the input date / time of the register B to the
したがって、装置の環境状態が予め指定した特定の状態であるファイル更新の状態に変化しても、リアルタイムクロックのリアルタイム機能を常に維持して、タイムスタンプ管理を行い、再起動後にファイル操作を行った場合に、システムダウンやシステムの暴走を確実に防止できるとともに、リアルタイムクロック106への電源供給用の大容量のコンデンサのように形状の大きな部品を使用しないので、装置の小型化を図ることができる。
Therefore, even if the environmental state of the device changes to a file update state that is a specific state specified in advance, the real-time function of the real-time clock is always maintained, time stamp management is performed, and file operations are performed after restart In this case, system down and system runaway can be reliably prevented, and a large-sized component such as a large-capacitance capacitor for supplying power to the real-
なお、この場合において、全てのファイルの最新日時を検索するのではなく、書き込み操作のファイルがオペレーションシステムの動作に密接に関連したシステムファイルの場合にのみ、すなわち、書き込み操作のファイルがオペレーションシステムの使用領域のファイルの場合にのみ、そのファイルの最新日時を検索してレジスタAにストアするような構成にしてもよい。
この構成によれば、全ファイルを検索の対象するよりも、割込み処理回数が少なくて済む上、検索したファイルの最新日時をサーチする時間も短くなる。また、オペレーションシステムの動作に密接に関連したシステムファイルは、ファイル書き換えの際の日付のチェックが厳格であるので、他の一般のファイルを参照する場合と比較して信頼性が高いという利点もある。
In this case, the latest date and time of all the files are not searched, but only when the file of the write operation is a system file closely related to the operation of the operation system, that is, the file of the write operation is Only in the case of a file in the use area, the latest date and time of the file may be searched and stored in the register A.
According to this configuration, the number of times of interrupt processing can be reduced compared to the case where all files are searched, and the time for searching for the latest date and time of the searched file is also shortened. In addition, system files that are closely related to the operation of the operation system have the advantage of high reliability compared to the case of referring to other general files because the date check at the time of file rewriting is strict. .
上記第1および第2実施形態において、操作部110によって入力された日時がフラッシュメモリ105に記憶されている日時より新しい日時でない場合には、再度の日時の入力を促す警告のメッセージを表示部111に表示して示す構成にしたので、ユーザが誤った日時を入力した場合には、その誤りを指摘してユーザの注意を喚起できる。
In the first and second embodiments, if the date and time input by the
また、上記第1および第2実施形態において、スリープ状態又はシャットダウン状態に遷移する前に、リアルタイムクロック106によって出力された日時をフラッシュメモリ105に記憶するような構成にしてもよい。この場合には、リアルタイムクロック106から出力された現在の日時をきめ細かく保存できる。
In the first and second embodiments, the date and time output by the real-
なお、上記各実施形態においては、携帯電話を例にとって本発明の情報処理装置を説明したが、本発明が適用できる情報処理装置は携帯電話に限定されるものではない。例えば、PHSやPDAなどの移動型通信端末、パーソナルコンピュータ、オフィスコンピュータ、ワークステーション、メインフレームなどのように、電源電圧や周囲温度の影響によって誤動作が起こり得る情報処理装置の全てにも適用できる。さらに、タイムスタンプ管理を基本的な機能として具備しているファクシミリ装置や複写機などのような情報処理装置にも適用できる。すなわち、上記各実施形態は本発明の一例を示すものであり、特許請求の範囲を逸脱しない限り、様々な情報処理装置に適用できることは、この技術分野の当業者にとって容易に理解できる。 In each of the above embodiments, the information processing apparatus of the present invention has been described by taking a mobile phone as an example, but the information processing apparatus to which the present invention can be applied is not limited to a mobile phone. For example, the present invention can be applied to all information processing apparatuses such as mobile communication terminals such as PHS and PDA, personal computers, office computers, workstations, mainframes, and the like that can malfunction due to the influence of power supply voltage and ambient temperature. Furthermore, the present invention can be applied to an information processing apparatus such as a facsimile machine or a copying machine that has time stamp management as a basic function. That is, each of the above embodiments shows an example of the present invention, and it can be easily understood by those skilled in the art that the present invention can be applied to various information processing apparatuses without departing from the scope of the claims.
さらにまた、上記各実施形態においては、フラッシュメモリ105に予め格納されている情報処理のプログラムをCPU101が実行する携帯電話を例にとって本発明の情報処理装置を説明したが、送受信部109を介してアクセスした外部のサーバからダウンロードした情報処理のプログラムをフラッシュメモリ105にインストールして、CPU101によってそのプログラムを実行する構成も可能である。この場合には、プログラムの発明を実現できる。
Furthermore, in each of the above-described embodiments, the information processing apparatus of the present invention has been described by taking a mobile phone in which the
すなわち、その情報処理のプログラムは、設定された初期日時から時刻を計時する計時手段から出力される日時情報に基づいて日時の管理を行う情報処理のプログラムであって、
この装置の環境状態を監視して、予め指定された状態遷移を検出する第1のステップと、
前記第1のステップが前記指定された状態遷移を検出したときは、前記計時手段から出力された日時情報を不揮発性の記憶手段に記憶する第2のステップと、
所定の操作に応じて日時情報を入力する第3のステップと、
前記第3のステップによって入力された日時情報が前記記憶手段に記憶されている日時情報より新しい日時を示す場合には、当該入力された日時情報を前記計時手段における初期日時として設定する第4のステップと、
を実行する。
That is, the information processing program is an information processing program for managing the date and time based on the date and time information output from the time measuring means for measuring the time from the set initial date and time,
A first step of monitoring the environmental state of the device and detecting a pre-designated state transition;
When the first step detects the designated state transition, a second step of storing date and time information output from the time measuring means in a nonvolatile storage means;
A third step of inputting date and time information according to a predetermined operation;
When the date and time information input in the third step indicates a date and time that is newer than the date and time information stored in the storage unit, the input date and time information is set as an initial date and time in the time measuring unit. Steps,
Execute.
この場合において、前記第4のステップは、前記第3のステップによって入力された日時情報が前記記憶手段に記憶されている日時情報より新しい日時でない場合には、再度の日時情報の入力を促す警告を所定の報知手段によって示す。
また、前記第4のステップは、この装置に供給されている電源電圧の状態を監視して、電源電圧の低下を前記予め指定された状態遷移として検出する。
また、前記第4のステップは、この装置に対するファイルの書き込み操作の状態を監視して、ファイルの書き込み操作を前記予め指定された状態遷移として検出する。さらに、この場合において、前記第4のステップは、書き込み操作に係るファイルがオペレーションシステムの使用領域のファイルである場合を前記予め指定された状態遷移として検出する。
また、前記第4のステップは、この装置の周囲温度の状態を監視して、急激な温度変化を前記予め指定された状態遷移として検出する。
また、前記第4のステップは、この装置に対する周囲温度の状態を監視して、周囲温度が予め設定されている温度範囲より高い温度又は低い温度になった場合を前記予め指定された状態遷移として検出する。
また、前記第2のステップは、この装置がスリープ状態又はシャットダウン状態に遷移する前に前記計時手段によって出力された日時情報を前記記憶手段に記憶する。
In this case, the fourth step is a warning that prompts the user to input the date / time information again when the date / time information input by the third step is not newer than the date / time information stored in the storage means. Is indicated by a predetermined notification means.
In the fourth step, the state of the power supply voltage supplied to the apparatus is monitored, and a decrease in the power supply voltage is detected as the state transition designated in advance.
In the fourth step, the state of the file write operation with respect to this apparatus is monitored, and the file write operation is detected as the state transition designated in advance. Further, in this case, the fourth step detects the case where the file related to the write operation is a file in the use area of the operation system as the state transition designated in advance.
In the fourth step, the state of the ambient temperature of the apparatus is monitored, and a sudden temperature change is detected as the previously designated state transition.
In the fourth step, the state of the ambient temperature for the device is monitored, and when the ambient temperature becomes higher or lower than a preset temperature range, the state transition designated in advance is performed. To detect.
In the second step, the date and time information output by the time measuring means before the device transits to the sleep state or the shutdown state is stored in the storage means.
101 CPU
102 SDRAM
103 フラッシュメモリ(NOR)
104 ASIC
105 フラッシュメモリ(NAND)
106 リアルタイムクロック(RTC)
107 温度センサ(TS)
108 電圧検出回路(DET)
109 送受信部(TX/RX)
110 操作部(SWITCH)
111 表示部(LCD)
101 CPU
102 SDRAM
103 Flash memory (NOR)
104 ASIC
105 Flash memory (NAND)
106 Real-time clock (RTC)
107 Temperature sensor (TS)
108 Voltage detection circuit (DET)
109 Transmitter / Receiver (TX / RX)
110 Operation unit (SWITCH)
111 Display (LCD)
Claims (16)
この装置の環境状態を監視して、予め指定された状態遷移を検出する検出手段と、
前記検出手段が前記指定された状態遷移を検出したときは、前記計時手段によって出力された日時情報を不揮発性の記憶手段に記憶する記憶制御手段と、
所定の操作に応じて日時情報を入力する入力手段と、
前記入力手段によって入力された日時情報が前記記憶手段に記憶されている日時情報より新しい日時を示す場合には、当該入力された日時情報を前記計時手段における初期日時として設定する設定手段と、
を備えたことを特徴とする情報処理装置。 An information processing apparatus that manages date and time based on date and time information output from a time measuring means that measures time from a set initial date and time,
Detecting means for monitoring the environmental state of the device and detecting a state transition designated in advance;
When the detection means detects the designated state transition, a storage control means for storing date and time information output by the timing means in a nonvolatile storage means;
An input means for inputting date and time information according to a predetermined operation;
If the date and time information input by the input means indicates a date and time newer than the date and time information stored in the storage means, a setting means for setting the input date and time information as an initial date and time in the time measuring means;
An information processing apparatus comprising:
この装置の環境状態を監視して、予め指定された状態遷移を検出する第1のステップと、
前記第1のステップが前記指定された状態遷移を検出したときは、前記計時手段から出力された日時情報を不揮発性の記憶手段に記憶する第2のステップと、
所定の操作に応じて日時情報を入力する第3のステップと、
前記第3のステップによって入力された日時情報が前記記憶手段に記憶されている日時情報より新しい日時を示す場合には、当該入力された日時情報を前記計時手段における初期日時として設定する第4のステップと、
を実行する情報処理のプログラム。 An information processing program for an apparatus that performs date and time management based on date and time information output from a clock means that measures time from a set initial date and time,
A first step of monitoring the environmental state of the device and detecting a pre-designated state transition;
When the first step detects the designated state transition, a second step of storing date and time information output from the time measuring means in a nonvolatile storage means;
A third step of inputting date and time information according to a predetermined operation;
When the date and time information input in the third step indicates a date and time that is newer than the date and time information stored in the storage unit, the input date and time information is set as an initial date and time in the time measuring unit. Steps,
Information processing program that executes
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004066532A JP2005258605A (en) | 2004-03-10 | 2004-03-10 | Information processor and program of information processing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004066532A JP2005258605A (en) | 2004-03-10 | 2004-03-10 | Information processor and program of information processing |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2005258605A true JP2005258605A (en) | 2005-09-22 |
Family
ID=35084282
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004066532A Pending JP2005258605A (en) | 2004-03-10 | 2004-03-10 | Information processor and program of information processing |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2005258605A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007124094A (en) * | 2005-10-26 | 2007-05-17 | Sanyo Electric Co Ltd | Digital camera |
JP2014522037A (en) * | 2011-07-26 | 2014-08-28 | マーベル ワールド トレード リミテッド | Zero power hibernate mode that turns on immediately |
-
2004
- 2004-03-10 JP JP2004066532A patent/JP2005258605A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007124094A (en) * | 2005-10-26 | 2007-05-17 | Sanyo Electric Co Ltd | Digital camera |
JP4679333B2 (en) * | 2005-10-26 | 2011-04-27 | 三洋電機株式会社 | Digital camera |
JP2014522037A (en) * | 2011-07-26 | 2014-08-28 | マーベル ワールド トレード リミテッド | Zero power hibernate mode that turns on immediately |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4535170B2 (en) | Microcomputer system | |
US20060174246A1 (en) | Processor and information processing method | |
EP2749997A1 (en) | State control device, state control method and program | |
RU2663821C2 (en) | Shutdown prompt method and device | |
US8909952B2 (en) | Power supply apparatus of computer system and method for controlling power sequence thereof | |
US20110043530A1 (en) | Electronic apparatus and method of controlling display | |
US20120110366A1 (en) | Clock control device, clock control method, clock control program and integrated circuit | |
US20190303225A1 (en) | Method and apparatus for communication between webpage and operating system | |
US20150113301A1 (en) | Charging method and mobile electronic device | |
WO2007119550A1 (en) | System management apparatus | |
JP2005258605A (en) | Information processor and program of information processing | |
US8850264B2 (en) | Information terminal and information processing method | |
JP2009194641A (en) | Facsimile machine | |
CN113438362A (en) | Method for starting terminal at fixed time and terminal | |
JP4601435B2 (en) | Mobile terminal device | |
JP5780105B2 (en) | Information processing apparatus and power saving mode management method | |
JP2005303443A (en) | Information processor, and method and program for managing switching of operation mode | |
JP5277262B2 (en) | Electronic equipment and system management program | |
JP2010130252A (en) | Mobile electronic apparatus | |
CN111385416B (en) | Electronic equipment and alarm clock processing method | |
JP2012160140A (en) | Electronic equipment and system management program | |
KR101801571B1 (en) | Computer system and method for controlling thereof | |
CN111756103B (en) | Mobile terminal and charging method thereof | |
US20080122948A1 (en) | Web camera | |
CN112416677B (en) | Server with soft-off function and soft-off method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20060209 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20060314 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070222 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20080519 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20090529 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090721 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20091124 |