JP2005258605A - Information processor and program of information processing - Google Patents

Information processor and program of information processing Download PDF

Info

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
Application number
JP2004066532A
Other languages
Japanese (ja)
Inventor
Mitsuyasu Nakajima
光康 中嶋
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2004066532A priority Critical patent/JP2005258605A/en
Publication of JP2005258605A publication Critical patent/JP2005258605A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To make it possible to certainly prevent system down or runaway of a system, by maintaining always real time function, even if an environment condition of the system changes to an abnormal status, or file manipulation is performed after reboot. <P>SOLUTION: A CPU 101 monitors the environment condition of a cellular phone, and when the supplied voltage becomes lower or when the ambient temperature becomes higher than or lower than the temperature set up beforehand, the date and time information outputted by a real time clock 106 is stored in the flash memory 105, and when the date and time information inputted by an operation section 110 indicates the date and time newer than the date and time information stored in the flash memory 105, the date and time information is set up as initial date and time in the real time clock 106. <P>COPYRIGHT: (C)2005,JPO&NCIPI

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 CPU 201 is connected to an SDRAM 202, which is a work area, via a synchronous expansion bus 201a, and a boot flash memory (NOR) 203 at the time of restart and a mobile phone via an asynchronous expansion bus 201b. It is connected to the ASIC 204 that performs the dedicated function. The ASIC 204 includes a plurality of circuit blocks (not shown) such as a CODEC (encoding / decoding processing circuit), a USB (Universal Serial Bus) host circuit, a function circuit, and a network circuit.

さらに、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 ASIC 204. Since the flash memory 205 is not adapted to an interface such as a general SRAM, it cannot be directly connected to the asynchronous expansion bus 201b of the CPU 201, and is connected to the asynchronous expansion bus 201b via the ASIC 204. A real time clock (RTC) 206 is connected to the CPU 201 by a serial bus 206a. The real time clock 206 is driven by a battery 207 which is a dedicated power source.
Further, a large-capacity capacitor 208 is connected to the power supply line of the real-time clock 206. When the battery 207 is replaced, the real-time clock 206 is charged by the electric charge charged in the capacitor 208 for a certain period of time. By guaranteeing the power supply voltage to be supplied, the real-time function can be maintained.
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 CPU 201. Yes.

このように、従来のリアルタイムクロック206のリアルタイム機能が電池207および大容量のコンデンサ208によって維持されてはいるが、ユーザが電池207の電圧降下に気付かない場合や、電池交換の時間が長くなってコンデンサ208からリアルタイムクロック206に供給する電圧が低下した場合には、リアルタイム機能が失われて現在時刻を得ることができず、再起動した際には、例えば、工場出荷時の日時に設定されてしまう。このため、再起動後にファイル操作を行うと、タイムスタンプ管理が破綻してシステムダウンやシステムの暴走が発生する恐れがある。   As described above, the real-time function of the conventional real-time clock 206 is maintained by the battery 207 and the large-capacitance capacitor 208. However, when the user does not notice the voltage drop of the battery 207, or the battery replacement time becomes longer. If the voltage supplied from the capacitor 208 to the real-time clock 206 drops, the real-time function is lost and the current time cannot be obtained, and when restarted, for example, the factory-set date and time are set. End up. For this reason, if a file operation is performed after restarting, the time stamp management may be broken, resulting in a system down or system runaway.

一方、ある特許文献において、リアルタイム機能が失われた後の再起動時に、現在時刻に近い日時を自動的に設定する撮像装置およびその制御方法の提案がなされている。
この提案の撮像装置は、画像を撮像して画像データを生成可能な撮像手段と、日時を計時する計時手段と、不揮発性のメモリに対し前記画像データに日時データを加えたデータを記録し、さらに該画像データと共に記録された日時データを読み取り可能な入出力手段と、前記不揮発性のメモリから読み取った最新の日時データに基づき、前記計時手段をリセット可能なリセット手段とを有する構成になっている。
また、この提案の制御方法は、画像を撮像した撮像データに、計時手段で計時された日時データを加えて、不揮発性のメモリに記録する記録工程と、前記画像データと共に記録された日時データを読み取り、前記計時手段をリセットするリセット工程とを有する構成になっている。
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参照)
特開2000−125164号公報
Therefore, it is described that when the image data is recorded, the date and time set at the time of reset can always be the date and time close to the current date and time, and the date and time adjustment of the time measuring means after reset is simplified. ing. (See Patent Document 1)
JP 2000-125164 A

しかしながら上記特許文献1は、画像データが記録された状態でない場合には、撮像装置のRTCを現在日時に近い日時でリセットすることができない。デジタルカメラ又はカメラ付き携帯電話のような撮像機能を具備した装置に記録された画像データは、パソコンなどに転送して保存したり、他の携帯電話などに送信することが可能であるので、画像データが不揮発性のメモリに常に記録されているという保証はない。また、画像データが不揮発性のメモリに記録されているとしても、その画像データの日時データが最新の日時でない場合には、リセット時に設定される日時を、常に現在の日時に近い日時とすることはできない。   However, in Patent Document 1, when the image data is not recorded, the RTC of the imaging apparatus cannot be reset at a date and time close to the current date and time. Image data recorded in a device equipped with an imaging function such as a digital camera or a camera-equipped mobile phone can be transferred to a personal computer and stored, or transmitted to another mobile phone. There is no guarantee that data is always recorded in non-volatile memory. Even if the image data is recorded in a non-volatile memory, if the date / time data of the image data is not the latest date / time, the date / time set at the time of reset is always close to the current date / time. I can't.

したがって、上記特許文献1の構成をもってしても、リアルタイムクロックの専用電源である電池の電圧低下や電池を交換する時間が長くなって、リアルタイム機能が失われて現在時刻を得られなくなった場合には、再起動後にファイル操作を行うことによる、タイムスタンプ管理の破綻の結果、システムダウンやシステムの暴走を確実に防止することができないという課題は解決されない。また、図6に示した従来例のように、大容量のコンデンサを用いて構成した場合には、コンデンサの形状が大きくなるため、装置の小型化が困難になるという課題があった。   Therefore, even with the configuration of the above-mentioned Patent Document 1, when the voltage drop of the battery, which is a dedicated power source for the real time clock, or the time for replacing the battery becomes long, the real time function is lost and the current time cannot be obtained. However, the problem that the system down and the system runaway cannot be reliably prevented as a result of the time stamp management failure due to the file operation after the restart cannot be solved. Further, when configured using a large-capacitance capacitor as in the conventional example shown in FIG. 6, there is a problem that it is difficult to reduce the size of the apparatus because the shape of the capacitor increases.

本発明は、このような従来の課題を解決するものであり、装置の環境状態が予め指定した異常な状態又は特定の状態に変化しても、リアルタイムクロックのリアルタイム機能を常に維持して、再起動後にファイル操作を行った場合に、システムダウンやシステムの暴走を確実に防止できるとともに、大容量のコンデンサのように形状の大きな部品を使用しないことで、装置の小型化を図ることができる情報処理装置および情報処理のプログラムを提供することを目的とする。   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 claim 1 is based on date and time information output from time measuring means (in the embodiment, corresponding to the real-time clock 106 in FIG. 1) for measuring time from a set initial date and time. An information processing apparatus that performs management,
When detecting the environmental state of this apparatus and detecting a state transition designated in advance (corresponding to the CPU 101 in FIG. 1 in the embodiment) and the state transition designated by the detection unit The storage control means (corresponding to the CPU 101 in FIG. 1 in the embodiment) stores the date and time information output by the time measuring means in the nonvolatile storage means (corresponding to the flash memory 105 in FIG. 1 in the embodiment). ), Input means for inputting date and time information according to a predetermined operation (corresponding to the operation unit 110 in FIG. 1 in the embodiment), and date and time information input by the input means are stored in the storage means. In the case of indicating a date and time newer than the date and time information, setting means for setting the input date and time information as an initial date and time in the time measuring means (in the embodiment, the CP in FIG. And corresponding) to 101 has a structure equipped with.

請求項1の情報処理装置において、請求項2に記載したように、設定手段は、入力手段によって入力された日時情報が記憶手段に記憶されている日時情報より新しい日時でない場合には、再度の日時情報の入力を促す警告を所定の報知手段(実施形態においては、図1の表示部111、又は図示しないスピーカ、LEDなどに相当する)によって示すような構成にしてもよい。
請求項1に記載の情報処理装置において、請求項3に記載したように、検出手段は、この装置に供給されている電源電圧の状態を監視して、電源電圧の低下を前記予め指定された状態遷移として検出するような構成にしてもよい。
請求項1の情報処理装置において、請求項4に記載したように、検出手段は、この装置に対するファイルの書き込み操作の状態を監視して、ファイルの書き込み操作を予め指定された状態遷移として検出するような構成にしてもよい。さらに、請求項4の情報処理装置において、請求項5に記載したように、検出手段は、書き込み操作に係るファイルがオペレーションシステムの使用領域のファイルである場合を予め指定された状態遷移として検出するような構成にしてもよい。
請求項1の情報処理装置において、請求項6に記載したように、検出手段は、この装置の周囲温度の状態を監視して、急激な温度変化を予め指定された状態遷移として検出するような構成にしてもよい。
請求項1の情報処理装置において、請求項7に記載したように、検出手段は、この装置の周囲温度の状態を監視して、周囲温度が予め設定されている温度範囲より高い温度又は低い温度になった場合を前記予め指定された状態遷移として検出するような構成にしてもよい。
請求項1の情報処理装置において、請求項8に記載したように、記憶制御手段は、この装置がスリープ状態又はシャットダウン状態に遷移する前に計時手段によって出力された日時情報を記憶手段に記憶するような構成にしてもよい。
In the information processing apparatus according to claim 1, as described in claim 2, when the date and time information input by the input unit is not newer than the date and time information stored in the storage unit, the setting unit again A warning that prompts the input of the date and time information may be configured to be indicated by predetermined notification means (in the embodiment, corresponding to the display unit 111 in FIG. 1 or a speaker, LED, or the like not shown).
In the information processing apparatus according to claim 1, as described in claim 3, the detection unit monitors the state of the power supply voltage supplied to the apparatus, and the reduction of the power supply voltage is designated in advance. You may make it the structure which detects as a state transition.
The information processing apparatus according to claim 1, wherein the detection unit monitors the state of the file write operation on the apparatus and detects the file write operation as a state transition designated in advance. Such a configuration may be adopted. Furthermore, in the information processing apparatus according to claim 4, as described in claim 5, the detection unit detects a case where the file related to the write operation is a file in a use area of the operation system as a state transition designated in advance. Such a configuration may be adopted.
In the information processing apparatus according to claim 1, as described in claim 6, the detection unit monitors the state of the ambient temperature of the apparatus and detects a sudden temperature change as a state transition designated in advance. It may be configured.
In the information processing apparatus according to claim 1, as described in claim 7, the detection unit monitors the state of the ambient temperature of the apparatus, and the ambient temperature is a temperature higher or lower than a preset temperature range. It may be configured to detect the case of the state transition as the state transition designated in advance.
In the information processing apparatus according to claim 1, as described in claim 8, the storage control means stores in the storage means the date and time information output by the time measuring means before the apparatus transits to the sleep state or the shutdown state. Such a configuration may be adopted.

請求項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-time clock 106 in FIG. 1) for measuring time from a set initial date and time. An information processing program for managing
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 flash memory 105 in FIG. 1 in the embodiment). 2 step (corresponding to the RTC saving process of FIG. 4 in the embodiment) and a third step of inputting date and time information in accordance with a predetermined operation (in the embodiment, step SB1 of FIG. 3 and FIG. 5) And 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 means (in the embodiment, In step SB7 in FIG. 3 and step SD6 in FIG. 5 (corresponding to NO in step SD6), a fourth step (in the embodiment, step SB4 in FIG. 3) sets the input date and time information as the initial date and time in the time measuring means. And (corresponding to step SD4 in FIG. 5).

請求項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 display unit 111 in FIG. 1 or a speaker, LED, or the like not shown). .
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 CPU 101 is connected to an SDRAM (Synchronous RAM) 102, which is a work area, via a synchronous expansion bus 101a. The SDRAM 102 operates in synchronization with a clock having a fixed period in the synchronous bus 101a.
The CPU 101 is also connected via an asynchronous expansion bus 101b to a flash memory (NOR) 103 for booting at the time of restart and an ASIC 104 that performs a dedicated function of the mobile phone. The flash memory 103 can perform random access at high speed, and stores an operation system program, an information processing program, and other control programs. The ASIC 104 includes a plurality of circuit blocks (not shown) such as a CODEC (encoding / decoding processing circuit), a USB (Universal Serial Bus) host circuit, a function circuit, and a network circuit.

さらに、ASIC104には、ブロック単位でデータの読み書きを行うデータ保存用のフラッシュメモリ(NAND)105が接続されている。このフラッシュメモリ105は、一般的なSRAM等のインターフェースには適応していないので、CPU101の非同期拡張バス101bに直接接続することができず、ASIC104を介して非同期拡張バス101bに接続されている。また、フラッシュメモリ105には、工場出荷時の日時が初期値としてストアされている。   Further, the ASIC 104 is connected to a data storage flash memory (NAND) 105 that reads and writes data in units of blocks. Since the flash memory 105 is not adapted to an interface such as a general SRAM, it cannot be directly connected to the asynchronous expansion bus 101b of the CPU 101, but is connected to the asynchronous expansion bus 101b via the ASIC 104. The flash memory 105 stores the factory default date and time as an initial value.

また、リアルタイムクロック(RTC)106が、シリアルバス106aによってCPU101に接続されている。リアルタイムクロック106は、工場出荷時に設定された初期日時又はユーザの操作によって設定された初期日時から時刻を計時して、その日時情報すなわち現在の日時をCPU101に出力する。このリアルタイムクロック106の電源は、図6に示した従来例とは異なり、CPU101などに供給されている電源によって駆動されているとともに、リアルタイムクロック106の電源供給ラインには、大容量のコンデンサは接続されていない。   A real time clock (RTC) 106 is connected to the CPU 101 by a serial bus 106a. The real-time clock 106 measures the time from the initial date / time set at the time of factory shipment or the initial date / time set by the user's operation, and outputs the date / time information, that is, the current date / time to the CPU 101. Unlike the conventional example shown in FIG. 6, the power supply of the real time clock 106 is driven by the power supplied to the CPU 101 and the like, and a large capacity capacitor is connected to the power supply line of the real time clock 106. It has not been.

さらに、周囲温度を検出する温度センサ(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 CPU 101 by a serial bus 107a. The ASIC 104 is connected to a voltage detection circuit (DET) 108 that monitors the voltage VDCIN of the power source supplied to the mobile phone. The voltage detection circuit 108 may be connected to an input port of the CPU 101. Alternatively, in the case where a CPU having an A / D converter is used, a configuration in which the voltage VDCIN is directly or dividedly input to the corresponding input port and the power supply voltage is monitored by the CPU is also possible. .
A transmitting / receiving unit (TX / RX) 109, which is a component of a mobile phone, is connected to the ASIC 104, an operation unit (SWITCH) 110 including a key switch and a display unit (LCD) 111 such as a liquid crystal are connected to the CPU 101. Yes. Although not shown in FIG. 1, a microphone and a speaker for calling and an LED for notification of incoming calls are provided.

次に、図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 CPU 101 in the mobile phone having the configuration shown in FIG. 1 will be described with reference to the flowcharts shown in FIGS.
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 operation unit 110. The input commands include a system file update (write) command, a normal file update command not related to the system, a call processing command, and other commands. In the display process of step SA5, data and a message are displayed on the display unit 111. Other processes in step SA6 include voice data and mail transmission / reception processes.

図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 operation unit 110, and when it is input, the input date / time is stored in the register B (step SB1). Then, it is determined whether or not the flag INIT is “0” (step SB2). This flag indicates whether the initial date and time of the real-time clock 106 has been set (INIT = 1) or not set (INIT = 0), and is reset to “0” at the time of factory shipment. If INIT is “0”, INIT is set to “1” (step SB3), and the input date / time of register B is set as the initial date / time in real time clock 106 (step SB4).

ステップ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 flash memory 105 is stored in the register A (step SB5). Then, it is determined whether or not the date and time of the register A is an initial value at the time of factory shipment (step SB6). If the factory default value is set, 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).

レジスタ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 real time clock 106, the flag RTCF is reset to “0” (step SB10). Then, the process returns to the main routine of FIG. Therefore, after completing this RTC confirmation process, the real-time clock 106 measures the time using the input date and time from the operation unit 110 as the initial date and time.

図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 voltage detection circuit 108 falls below a predetermined value, when the ambient temperature detected by the temperature sensor 107 changes suddenly, or in a predetermined range (for example, −10 When the temperature becomes higher or lower than (° C. to + 70 ° C.), it is executed as an interrupt process. The current date and time of the real-time clock 106 is stored in the register A (step SC1), and the date and time stored in the register A is stored in the flash memory 105 (step SC2). Next, the flag RTCF is set to “1” (step SC3). Then, the process returns to the main routine.

以上のように、この第1実施形態によれば、CPU101は、携帯電話の環境状態を監視して、入力電圧VDCINが所定値以下に低下した場合、又は、周囲温度が急激に変化した場合や所定の範囲より高い温度又は低い温度になった場合のように、予め指定された状態遷移を検出したときは、リアルタイムクロック106によって出力された日時情報をフラッシュメモリ105に記憶し、操作部110によって入力された日時情報がフラッシュメモリ105に記憶されている日時情報より新しい日時を示す場合には、日時情報をリアルタイムクロック106における初期日時として設定する。   As described above, according to the first embodiment, the CPU 101 monitors the environmental state of the mobile phone, and when the input voltage VDCIN falls below a predetermined value or when the ambient temperature changes abruptly, When a pre-designated state transition is detected, such as when the temperature is higher or lower than a predetermined range, the date and time information output by the real-time clock 106 is stored in the flash memory 105, and the operation unit 110 When the input date and time information indicates a date and time newer than the date and time information stored in the flash memory 105, the date and time information is set as the initial date and time in the real-time clock 106.

したがって、装置の環境状態が異常な状態に変化しても、リアルタイムクロック106のリアルタイム機能を常に維持して、再起動後にファイル操作を行った場合に、システムダウンやシステムの暴走を確実に防止できるとともに、リアルタイムクロック106への電源供給用の大容量のコンデンサのように形状の大きな部品を使用しないので、装置の小型化を図ることができる。   Therefore, even when the environmental state of the apparatus changes to an abnormal state, the real-time function of the real-time clock 106 is always maintained, and when a file operation is performed after restarting, it is possible to reliably prevent a system down or a system runaway. In addition, since a large-sized component such as a large-capacity capacitor for supplying power to the real-time clock 106 is not used, the apparatus can be reduced in size.

次に、図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 CPU 101 in the mobile phone having the configuration of FIG. 1 will be described based on the flowchart shown in FIG. Note that the main routine and RTC storage processing of the CPU 101 in the second embodiment are the same as those in the flowchart of the first embodiment shown in FIGS. 2 and 4. The operation of the second embodiment will be described.

図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 operation unit 110, and when it is input, the input date / time is stored in the register B (step SD1). Then, it is determined whether the flag INIT is “1 (initial date has been set)” or “0 (initial date has not been set)” (step SD2). As in the first embodiment, this flag is reset to “0” at the time of factory shipment. If INIT is “0”, INIT is set to “1” (step SD3), and the input date / time of register B is set as the initial date / time in real time clock 106 (step SD4).

ステップ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 real time clock 106 as the initial date / time, the flag RTCF is reset to “0” (step SD10). Then, the process returns to the main routine of FIG. Note that when the switch corresponding to “Do not reset” is turned on, a message indicating that the time stamp management may fail may be displayed on the display unit 111.

したがって、装置の環境状態が予め指定した特定の状態であるファイル更新の状態に変化しても、リアルタイムクロックのリアルタイム機能を常に維持して、タイムスタンプ管理を行い、再起動後にファイル操作を行った場合に、システムダウンやシステムの暴走を確実に防止できるとともに、リアルタイムクロック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-time clock 106 is not used, so that the size of the apparatus can be reduced. .

なお、この場合において、全てのファイルの最新日時を検索するのではなく、書き込み操作のファイルがオペレーションシステムの動作に密接に関連したシステムファイルの場合にのみ、すなわち、書き込み操作のファイルがオペレーションシステムの使用領域のファイルの場合にのみ、そのファイルの最新日時を検索してレジスタ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 operation unit 110 is not newer than the date and time stored in the flash memory 105, a warning message prompting the user to input the date and time again is displayed on the display unit 111. Since the configuration is displayed and shown, when the user inputs an incorrect date and time, the user can be alerted by pointing out the error.

また、上記第1および第2実施形態において、スリープ状態又はシャットダウン状態に遷移する前に、リアルタイムクロック106によって出力された日時をフラッシュメモリ105に記憶するような構成にしてもよい。この場合には、リアルタイムクロック106から出力された現在の日時をきめ細かく保存できる。   In the first and second embodiments, the date and time output by the real-time clock 106 may be stored in the flash memory 105 before transition to the sleep state or the shutdown state. In this case, the current date and time output from the real time clock 106 can be meticulously saved.

なお、上記各実施形態においては、携帯電話を例にとって本発明の情報処理装置を説明したが、本発明が適用できる情報処理装置は携帯電話に限定されるものではない。例えば、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 CPU 101 executes an information processing program stored in advance in the flash memory 105 as an example. A configuration in which an information processing program downloaded from an accessed external server is installed in the flash memory 105 and the CPU 101 executes the program is also possible. In this case, the invention of the program can be realized.

すなわち、その情報処理のプログラムは、設定された初期日時から時刻を計時する計時手段から出力される日時情報に基づいて日時の管理を行う情報処理のプログラムであって、
この装置の環境状態を監視して、予め指定された状態遷移を検出する第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.

本発明の実施形態における携帯電話の構成を示すブロック図。The block diagram which shows the structure of the mobile telephone in embodiment of this invention. 図1におけるCPUのメインルーチンのフローチャート。The flowchart of the main routine of CPU in FIG. 図2における第1実施形態のRTC確認処理のフローチャート。The flowchart of the RTC confirmation process of 1st Embodiment in FIG. 図2において割込み処理で実行されるRTC保存処理のフローチャート。The flowchart of the RTC preservation | save process performed by the interruption process in FIG. 図2における第2実施形態のRTC確認処理のフローチャート。The flowchart of the RTC confirmation process of 2nd Embodiment in FIG. 従来の携帯電話の機能的な構成を示す概略ブロック図。FIG. 6 is a schematic block diagram showing a functional configuration of a conventional mobile phone.

符号の説明Explanation of symbols

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に記載の情報処理装置。   When the date and time information input by the input unit is not newer than the date and time information stored in the storage unit, the setting unit indicates a warning prompting the user to input the date and time information again by a predetermined notification unit. The information processing apparatus according to claim 1. 前記検出手段は、この装置に供給されている電源電圧の状態を監視して、電源電圧の低下を前記予め指定された状態遷移として検出することを特徴とする請求項1に記載の情報処理装置。   2. The information processing apparatus according to claim 1, wherein the detection unit monitors a state of a power supply voltage supplied to the apparatus and detects a decrease in the power supply voltage as the predetermined state transition. . 前記検出手段は、この装置に対するファイルの書き込み操作の状態を監視して、ファイルの書き込み操作を前記予め指定された状態遷移として検出することを特徴とする請求項1に記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the detection unit monitors a state of a file write operation with respect to the apparatus and detects a file write operation as the state transition designated in advance. 前記検出手段は、書き込み操作に係るファイルがオペレーションシステムの使用領域のファイルである場合を前記予め指定された状態遷移として検出することを特徴とする請求項4に記載の情報処理装置。   The information processing apparatus according to claim 4, wherein the detection unit detects a case where a file related to a write operation is a file in a use region of an operation system as the state transition designated in advance. 前記検出手段は、この装置の周囲温度の状態を監視して、急激な温度変化を前記予め指定された状態遷移として検出することを特徴とする請求項1に記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the detection unit monitors an ambient temperature state of the apparatus and detects a rapid temperature change as the predetermined state transition. 前記検出手段は、この装置の周囲温度の状態を監視して、周囲温度が予め設定されている温度範囲より高い温度又は低い温度になった場合を前記予め指定された状態遷移として検出することを特徴とする請求項1に記載の情報処理装置。   The detection means monitors the state of the ambient temperature of the device and detects when the ambient temperature is higher or lower than a preset temperature range as the predetermined state transition. The information processing apparatus according to claim 1. 前記記憶制御手段は、この装置がスリープ状態又はシャットダウン状態に遷移する前に前記計時手段によって出力された日時情報を前記記憶手段に記憶することを特徴とする請求項1に記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the storage control unit stores the date and time information output by the timing unit before the apparatus transits to a sleep state or a shutdown state. 設定された初期日時から時刻を計時する計時手段から出力される日時情報に基づいて日時の管理を行う装置の情報処理のプログラムであって、
この装置の環境状態を監視して、予め指定された状態遷移を検出する第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
前記第4のステップは、前記第3のステップによって入力された日時情報が前記記憶手段に記憶されている日時情報より新しい日時でない場合には、再度の日時情報の入力を促す警告を所定の報知手段によって示すことを特徴とする請求項9に記載の情報処理のプログラム。   In the fourth step, when the date and time information input in the third step is not newer than the date and time information stored in the storage means, a warning for prompting the user to input the date and time information again is given. The information processing program according to claim 9, which is indicated by means. 前記第4のステップは、この装置に供給されている電源電圧の状態を監視して、電源電圧の低下を前記予め指定された状態遷移として検出することを特徴とする請求項9に記載の情報処理のプログラム。   10. The information according to claim 9, wherein in the fourth step, the state of the power supply voltage supplied to the device is monitored, and a decrease in the power supply voltage is detected as the state transition designated in advance. Processing program. 前記第4のステップは、この装置に対するファイルの書き込み操作の状態を監視して、ファイルの書き込み操作を前記予め指定された状態遷移として検出することを特徴とする請求項9に記載の情報処理のプログラム。   10. The information processing apparatus according to claim 9, wherein the fourth step monitors a state of a file write operation with respect to the apparatus and detects a file write operation as the predetermined state transition. program. 前記第4のステップは、書き込み操作に係るファイルがオペレーションシステムの使用領域のファイルである場合を前記予め指定された状態遷移として検出することを特徴とする請求項12に記載の情報処理のプログラム。   13. The information processing program according to claim 12, wherein in the fourth step, a case where a file related to a write operation is a file in a use area of the operation system is detected as the pre-designated state transition. 前記第4のステップは、この装置の周囲温度の状態を監視して、急激な温度変化を前記予め指定された状態遷移として検出することを特徴とする請求項9に記載の情報処理のプログラム。   10. The information processing program according to claim 9, wherein the fourth step monitors the state of the ambient temperature of the apparatus and detects a rapid temperature change as the pre-designated state transition. 前記第4のステップは、この装置に対する周囲温度の状態を監視して、周囲温度が予め設定されている温度範囲より高い温度又は低い温度になった場合を前記予め指定された状態遷移として検出することを特徴とする請求項9に記載の情報処理のプログラム。   In the fourth step, the state of the ambient temperature for the device is monitored, and the case where the ambient temperature is higher or lower than a preset temperature range is detected as the predetermined state transition. The information processing program according to claim 9. 前記第2のステップは、この装置がスリープ状態又はシャットダウン状態に遷移する前に前記計時手段によって出力された日時情報を前記記憶手段に記憶することを特徴とする請求項9に記載の情報処理のプログラム。   10. The information processing according to claim 9, wherein the second step stores the date and time information output by the time measuring unit before the device transits to a sleep state or a shutdown state in the storage unit. program.
JP2004066532A 2004-03-10 2004-03-10 Information processor and program of information processing Pending JP2005258605A (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (3)

* Cited by examiner, † Cited by third party
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