JP5064348B2 - Electronics - Google Patents

Electronics Download PDF

Info

Publication number
JP5064348B2
JP5064348B2 JP2008249031A JP2008249031A JP5064348B2 JP 5064348 B2 JP5064348 B2 JP 5064348B2 JP 2008249031 A JP2008249031 A JP 2008249031A JP 2008249031 A JP2008249031 A JP 2008249031A JP 5064348 B2 JP5064348 B2 JP 5064348B2
Authority
JP
Japan
Prior art keywords
time
unit
system time
control unit
rtc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2008249031A
Other languages
Japanese (ja)
Other versions
JP2010081426A (en
Inventor
智大 石躍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyocera Corp
Original Assignee
Kyocera Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kyocera Corp filed Critical Kyocera Corp
Priority to JP2008249031A priority Critical patent/JP5064348B2/en
Publication of JP2010081426A publication Critical patent/JP2010081426A/en
Application granted granted Critical
Publication of JP5064348B2 publication Critical patent/JP5064348B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、計時部を備えた電子機器に関する。   The present invention relates to an electronic device provided with a timer.

従来、PC(Personal Computer)や携帯端末、家電機器等の様々な電子機器は、時刻に基づいて各種の制御を行っている。このような電子機器では、リアルタイムクロック(RTC)を内蔵して時刻を計測することも多いが、特に、携帯電話機等の通信端末では、基地局を含めた通信システム内での共通の時刻として、通信網からシステム時刻を取得する。これにより、通信端末は、基地局との同期や、GPSの測位時間間隔による測位方法判断や、期限付きコンテンツの期限管理等を行う。   Conventionally, various electronic devices such as PCs (Personal Computers), portable terminals, and home appliances perform various controls based on time. Such electronic devices often have a built-in real-time clock (RTC) to measure time, but particularly in communication terminals such as mobile phones, as a common time in a communication system including a base station, Get the system time from the communication network. As a result, the communication terminal performs synchronization with the base station, determination of a positioning method based on GPS positioning time intervals, time limit management of time-limited content, and the like.

このようにシステム時刻を通信網から取得する場合、例えば携帯端末が通信圏外にて起動されると、システム時刻を取得することができない。したがって、上述のような制御に不都合が生じてしまう。そこで、定期的にシステム時刻のバックアップを行うと共に、RTCにより計時される経過時間に基づいて、システム時刻を復旧することが実現されている。   Thus, when acquiring system time from a communication network, if a portable terminal is started out of a communication range, for example, system time cannot be acquired. Therefore, inconvenience occurs in the control as described above. Therefore, it is realized that the system time is periodically backed up and the system time is restored based on the elapsed time measured by the RTC.

例えば、図5では、1時間ごとにシステム時刻のバックアップを行っている。このバックアップの際には、RTCにより計時されている時刻も同時にバックアップを行う。そして、端末の電源をOFFにした後、再び電源をONにすると、バックアップしたシステム時刻に、RTCの計時により算出されるバックアップ時からの経過時間を加えて、システム時刻を復旧する。   For example, in FIG. 5, the system time is backed up every hour. At the time of this backup, the time measured by the RTC is also backed up at the same time. When the terminal is turned off and then turned on again, the system time is restored by adding the elapsed time from the backup time calculated by the RTC timing to the backed up system time.

ところで、このRTCが計時する時間に狂いが生じると、システム時刻に大きな誤差が発生してしまう。そこで、RTCの計時を正確に保つための試みがなされている。例えば、特許文献1では、2つのRTCを備え、これらが示す値を比較した結果、値の差に応じてRTCの値を補正することが示されている。
特開2008−164524号公報
By the way, if an error occurs in the time counted by the RTC, a large error occurs in the system time. Thus, attempts have been made to keep the RTC time accurate. For example, Patent Document 1 shows that two RTCs are provided, and the values indicated by these RTCs are compared. As a result, the RTC value is corrected according to the difference between the values.
JP 2008-164524 A

しかしながら、特許文献1の方法によっても、いずれのRTCへの電源供給もなくなった場合には、時刻の計時ができない。例えば、携帯端末では、小型化の要求による実装面積の減少やコストダウン等のために、RTCの源振の電源であるバックアップ電池が削除されることも考えられる。このような状況によりRTCの機能が停止した場合には、図6に示すように、システム時刻が前進せず、不都合が生じる。   However, even with the method disclosed in Patent Document 1, the time cannot be measured when power is not supplied to any RTC. For example, in a portable terminal, it is conceivable that a backup battery, which is a power source for RTC, is deleted due to a reduction in mounting area due to a demand for miniaturization, cost reduction, and the like. When the RTC function stops due to such a situation, the system time does not advance as shown in FIG.

図6では、1時間ごとにシステム時刻のバックアップを行っている。そして、「10:45」に端末の電源がOFFとなり、その後に電源がONのなったときに、復旧されるシステム時刻は、最後にバックアップされた「10:00」に戻ってしまう。さらに次のバックアップ時刻の前に電源がOFFとなると、その時点で「10:50」まで進んでいたとしても、復旧されるシステム時刻は「10:00」に戻ってしまう。   In FIG. 6, the system time is backed up every hour. Then, when the power of the terminal is turned off at “10:45” and then the power is turned on, the system time to be restored returns to “10:00” that was last backed up. Further, if the power is turned off before the next backup time, the system time to be restored returns to “10:00” even if the power has advanced to “10:50” at that time.

このように、システム時刻を通信網から取得できない場合に、RTCによる時刻の計時ができていないと、一旦進んだシステム時刻が過去に戻ってしまう。そのため、システム時刻が前進しない場合が容易に発生するので、例えば、期限付きコンテンツを管理する際には、実時間がライセンスの期限となってもシステム時刻が期限前であるために、コンテンツが視聴し続けられる等の問題があった。   As described above, when the system time cannot be obtained from the communication network and the time is not measured by the RTC, the system time once advanced returns to the past. For this reason, the system time does not advance easily. For example, when managing time-limited content, the content is viewed because the system time is before the time limit even if the real time is the license time limit. There were problems such as being able to continue.

本発明は、システム時刻が過去に戻るのを防止することができる電子機器を提供することを目的とする。   An object of the present invention is to provide an electronic device that can prevent the system time from returning to the past.

本発明に係る電子機器は、時刻を計測する計時部と、網から時刻情報を取得する時刻取得部と、前記時刻取得部により取得した時刻情報を、内部クロックに基づいて更新する制御部と、前記制御部により更新された時刻情報により、一定周期ごとに現在の時刻を記憶する記憶部と、を備え、前記制御部は、前記計時部が時刻を計時できない期間が存在し、当該期間の後に前記計時部が時刻の計時を再開したときに、前記時刻取得部が時刻情報を取得できない場合に、前記時刻情報を、前記記憶部に最後に記憶された時刻に対して、前記一定周期分以上の時間を加えた時刻に更新する。   The electronic device according to the present invention includes a time measuring unit that measures time, a time acquisition unit that acquires time information from a network, a control unit that updates the time information acquired by the time acquisition unit based on an internal clock, A storage unit that stores the current time at regular intervals according to the time information updated by the control unit, and the control unit has a period in which the time measuring unit cannot measure the time, and after the period When the time acquisition unit cannot acquire time information when the time measurement unit resumes time measurement, the time information is equal to or more than the predetermined period with respect to the time last stored in the storage unit. The time is updated to the time that is added.

また、前記記憶部は、前記計時部が時刻の計時を再開したときに、前記制御部により更新された時刻をさらに記憶することが好ましい。   Moreover, it is preferable that the said memory | storage part further memorize | stores the time updated by the said control part, when the said time measuring part restarts time measurement.

また、前記記憶部は、期限付きコンテンツを記憶し、前記制御部は、更新した時刻を基に前記コンテンツの期限管理を行うことが好ましい。   Moreover, it is preferable that the said memory | storage part memorize | stores content with a time limit, and the said control part performs the time limit management of the said content based on the updated time.

本発明によれば、システム時刻が過去に戻るのを防止することができる。   According to the present invention, it is possible to prevent the system time from returning to the past.

以下、本発明の実施形態について説明する。なお、本発明の電子機器の一例として携帯電話機を説明するが、これには限られない。例えば、PHS(Personal Handy phone System)やPDA(Personal Digital Assistant)、PCや各種の家電製品等、システム時刻を利用する様々な電子機器に適用可能である。   Hereinafter, embodiments of the present invention will be described. Although a mobile phone will be described as an example of the electronic apparatus of the present invention, the present invention is not limited to this. For example, the present invention can be applied to various electronic devices that use the system time, such as PHS (Personal Handyphone System), PDA (Personal Digital Assistant), PC, and various home appliances.

図1は、本実施形態に係る携帯電話機1(電子機器)の外観斜視図である。なお、図1は、いわゆる折り畳み型の携帯電話機の形態を示しているが、本発明に係る携帯電話機の形態はこれに限られない。例えば、両筐体を重ね合わせた状態から一方の筐体を一方向にスライドさせるようにしたスライド式や、重ね合せ方向に沿う軸線を中心に一方の筐体を回転させるようにした回転式(ターンタイプ)や、操作部と表示部とが一つの筐体に配置され、連結部を有さない形式(ストレートタイプ)でもよい。   FIG. 1 is an external perspective view of a mobile phone 1 (electronic device) according to the present embodiment. FIG. 1 shows a so-called foldable mobile phone, but the mobile phone according to the present invention is not limited to this. For example, a sliding type in which one casing is slid in one direction from a state in which both casings are overlapped, or a rotary type in which one casing is rotated around an axis along the overlapping direction ( Turn type), or a type (straight type) in which the operation unit and the display unit are arranged in one housing and does not have a connecting unit.

携帯電話機1は、操作部側筐体2と、表示部側筐体3と、を備えて構成される。操作部側筐体2は、表面部10に、キー入力部11と、携帯電話機1の使用者が通話時に発した音声が入力されるマイク12と、を備えて構成される。キー入力部11は、各種設定機能や電話帳機能やメール機能等の各種機能を作動させるための機能設定操作ボタン13と、電話番号の数字やメールの文字等を入力するための入力操作ボタン14と、各種操作における決定やスクロール等を行う決定操作ボタン15と、から構成されている。   The mobile phone 1 includes an operation unit side body 2 and a display unit side body 3. The operation unit side body 2 includes a key input unit 11 and a microphone 12 to which a voice uttered by a user of the mobile phone 1 is input on the surface unit 10. The key input unit 11 includes a function setting operation button 13 for operating various functions such as various setting functions, a phone book function, and a mail function, and an input operation button 14 for inputting a telephone number and mail characters. And a determination operation button 15 for performing determination and scrolling in various operations.

また、表示部側筐体3は、表面部20に、各種情報を表示するための表示部21と、通話の相手側の音声を出力するレシーバ22と、を備えて構成されている。   The display unit side body 3 includes a display unit 21 for displaying various types of information on the surface unit 20 and a receiver 22 for outputting the voice of the other party of the call.

また、操作部側筐体2の上端部と表示部側筐体3の下端部とは、ヒンジ機構4を介して連結されている。また、携帯電話機1は、ヒンジ機構4を介して連結された操作部側筐体2と表示部側筐体3とを相対的に回転することにより、操作部側筐体2と表示部側筐体3とが互いに開いた状態(開放状態)にしたり、操作部側筐体2と表示部側筐体3とを折り畳んだ状態(折畳み状態)にしたりできる。   Further, the upper end portion of the operation unit side body 2 and the lower end portion of the display unit side body 3 are connected via a hinge mechanism 4. In addition, the mobile phone 1 relatively rotates the operation unit side body 2 and the display unit side body 3 which are connected via the hinge mechanism 4, so that the operation unit side body 2 and the display unit side body 3 are rotated. The body 3 can be in an open state (open state), or the operation unit side body 2 and the display unit side body 3 can be folded (folded state).

図2は、本実施形態に係る携帯電話機1の機能を示すブロック図である。携帯電話機1は、表示部21と、制御部としてのCPU30と、時刻取得部としての通信制御部31と、アンテナ32と、音声制御部33と、レシーバ22と、キー入力部11と、記憶部としてのメモリ34と、計時部としてのRTC35と、を備える。   FIG. 2 is a block diagram showing functions of the mobile phone 1 according to the present embodiment. The mobile phone 1 includes a display unit 21, a CPU 30 as a control unit, a communication control unit 31 as a time acquisition unit, an antenna 32, a voice control unit 33, a receiver 22, a key input unit 11, and a storage unit. And a RTC 35 as a timer.

CPU30は、携帯電話機1の全体を制御しており、例えば、表示部21、通信制御部31、音声制御部33等に対して所定の制御を行う。また、CPU30は、キー入力部11、RTC35等から入力を受け付けて、各種処理を実行する。そして、CPU30は、処理実行の際には、メモリ34を制御し、各種プログラムおよびデータの読み出し、およびデータの書き込みを行う。   The CPU 30 controls the entire mobile phone 1, and performs predetermined control on the display unit 21, the communication control unit 31, the voice control unit 33, and the like, for example. Further, the CPU 30 receives input from the key input unit 11, the RTC 35, and the like, and executes various processes. Then, the CPU 30 controls the memory 34 to execute reading of various programs and data and writing of data when executing processing.

特に、本実施形態において、CPU30は、携帯電話機1のシステム時刻を管理し、内部クロックに基づいて更新している。また、携帯電話機1の電源がONとなった際には、電源がOFFの間に未更新であったシステム時刻を復旧させる。   In particular, in the present embodiment, the CPU 30 manages the system time of the mobile phone 1 and updates it based on the internal clock. When the power of the mobile phone 1 is turned on, the system time that has not been updated while the power is off is restored.

表示部21は、CPU30の制御に従って、所定の画像処理を行う。そして、処理後の画像データをフレームメモリに蓄え、所定のタイミングで画面出力する。   The display unit 21 performs predetermined image processing according to the control of the CPU 30. Then, the processed image data is stored in the frame memory and output to the screen at a predetermined timing.

通信制御部31は、所定の使用周波数帯(例えば、800MHz)で外部装置と通信を行う。そして、通信制御部31は、アンテナ32より受信した信号を復調処理し、処理後の信号をCPU30に供給し、また、CPU30から供給された信号を変調処理し、アンテナ32から外部装置に送信する。   The communication control unit 31 communicates with an external device in a predetermined use frequency band (for example, 800 MHz). Then, the communication control unit 31 demodulates the signal received from the antenna 32, supplies the processed signal to the CPU 30, modulates the signal supplied from the CPU 30, and transmits the signal from the antenna 32 to the external device. .

特に、本実施形態において、通信制御部31は、通信網から、携帯電話機1のシステム時刻となる時刻情報を取得する。   In particular, in the present embodiment, the communication control unit 31 acquires time information that is the system time of the mobile phone 1 from the communication network.

音声制御部33は、CPU30の制御に従って、通信制御部31から供給された信号に対して所定の音声処理を行い、処理後の信号をレシーバ22に出力する。レシーバ22は、音声制御部33から供給された信号を外部に出力する。なお、この信号は、レシーバ22に代えて、または、レシーバ22と共に、スピーカ(図示せず)から出力されるとしてもよい。   The audio control unit 33 performs predetermined audio processing on the signal supplied from the communication control unit 31 under the control of the CPU 30 and outputs the processed signal to the receiver 22. The receiver 22 outputs the signal supplied from the audio control unit 33 to the outside. This signal may be output from a speaker (not shown) instead of or together with the receiver 22.

また、音声制御部33は、CPU30の制御に従って、マイク12(図1)から入力された信号を処理し、処理後の信号を通信制御部31に出力する。通信制御部31は、音声制御部33から供給された信号に所定の処理を行い、処理後の信号をアンテナ32より出力する。   In addition, the voice control unit 33 processes the signal input from the microphone 12 (FIG. 1) under the control of the CPU 30 and outputs the processed signal to the communication control unit 31. The communication control unit 31 performs predetermined processing on the signal supplied from the audio control unit 33 and outputs the processed signal from the antenna 32.

メモリ34は、例えば、ワーキングメモリを含み、CPU30による演算処理に利用される。また、本実施形態では、一定周期(例えば1時間)ごとにシステム時刻をバックアップのために記憶する。さらに、同じタイミングにて後述のRTC35により管理されるユーザ時刻をバックアップのために記憶する。なお、メモリ34は、着脱可能な外部メモリを兼ねていてもよい。   The memory 34 includes, for example, a working memory and is used for arithmetic processing by the CPU 30. In the present embodiment, the system time is stored for backup at every fixed period (for example, one hour). Further, the user time managed by the RTC 35 described later is stored for backup at the same timing. Note that the memory 34 may also serve as a removable external memory.

RTC35は、所定の源振(例えば、32KHz発振子)に基づいて、ユーザ提示用のユーザ時刻を保持する。したがって、この源振やRTC35への電源供給が停止すると、ユーザ時刻のカウントが出来ないため、図6に示したように、RTC35によるシステム時刻の復旧はできなくなる。   The RTC 35 holds the user time for user presentation based on a predetermined source oscillation (for example, 32 kHz oscillator). Therefore, when the source oscillation or the power supply to the RTC 35 is stopped, the user time cannot be counted, so that the system time cannot be recovered by the RTC 35 as shown in FIG.

以下、RTC35の源振が停止した場合に、CPU30がシステム時刻を復旧させる処理の詳細を説明する。具体的には、RTC35および源振用の補助電源であるバックアップ電池がなく、メイン電池が外された場合として説明する。   Hereinafter, the details of the process in which the CPU 30 recovers the system time when the source oscillation of the RTC 35 is stopped will be described. Specifically, a case will be described where there is no backup battery as an auxiliary power source for RTC 35 and source oscillation, and the main battery is removed.

図3は、本実施形態に係るCPU30にて管理されるシステム時刻と実際の実時刻との関係を示す図である。   FIG. 3 is a diagram showing the relationship between the system time managed by the CPU 30 according to the present embodiment and the actual actual time.

CPU30は、1時間ごとにシステム時刻のバックアップを行い、「09:00」から「10:00」までは、実時刻と一致している。そして、「10:20」に電池が外され、携帯電話機1の電源がOFFとなり、RTC35への電源供給も停止したとする。   The CPU 30 backs up the system time every hour, and the time from “09:00” to “10:00” coincides with the actual time. Then, it is assumed that the battery is removed at “10:20”, the mobile phone 1 is turned off, and the power supply to the RTC 35 is also stopped.

その後、携帯電話機1の電源がONになると、CPU30は、システム時刻の復旧を試みる。このとき、通信網からの時刻情報の取得が不能であれば、「10:00」にシステム時刻のバックアップと同時にバックアップされたユーザ時刻との差分時間をRTC35から取得して復旧する(図5)。しかし、この例では、RTC35への電源供給が停止しているために、差分時間を取得することができない。   Thereafter, when the power of the mobile phone 1 is turned on, the CPU 30 attempts to restore the system time. At this time, if the time information cannot be obtained from the communication network, the difference time with the user time backed up at the same time as the backup of the system time at “10:00” is obtained from the RTC 35 and recovered (FIG. 5). . However, in this example, since the power supply to the RTC 35 is stopped, the difference time cannot be acquired.

そこで、CPU30は、バックアップされたシステム時刻「10:00」に対して、バックアップ周期(1時間)以上の所定時間として、この例では1時間を加算し、システム時刻を「11:00」として復旧する。さらに、CPU30は、復旧したシステム時刻「11:00」をバックアップし、直後の電源OFFに備える。   Therefore, the CPU 30 adds 1 hour to the backed up system time “10:00” as a predetermined time equal to or longer than the backup cycle (1 hour), and restores the system time as “11:00”. To do. Further, the CPU 30 backs up the recovered system time “11:00”, and prepares for power off immediately after.

ここで、復旧したシステム時刻「11:00」は、実時刻とは一致していないが、バックアップ周期以上の所定時間を加算したことにより、電源OFFの前に進行していた「10:20」より過去に戻ることはない。   Here, the restored system time “11:00” does not coincide with the actual time, but “10:20” which has progressed before the power was turned off by adding a predetermined time equal to or longer than the backup cycle. There will be no return to the past.

次に、システム時刻が「12:10」まで進行した時点で電池が外され、携帯電話機1の電源がOFFとなると、その後に電源がONとなった際には、最後にバックアップされた「12:00」に1時間を加算した「13:00」がシステム時刻として復旧される。このことにより、一旦「12:10」まで進行していたシステム時刻が「12:00」に戻ってしまうのを抑制できる。   Next, when the system time advances to “12:10”, the battery is removed, and when the power of the mobile phone 1 is turned off, when the power is turned on thereafter, the last backup “12 “13:00”, which is obtained by adding one hour, is restored as the system time. As a result, it is possible to suppress the system time that has once progressed to “12:10” from returning to “12:00”.

以上のように、CPU30は、通信網からシステム時刻を取得できず、かつ、RTC35により差分時間を取得できない場合に、バックアップ周期以上の所定時間を加算することにより、システム時刻が過去に戻ることを抑制することができる。   As described above, when the CPU 30 cannot acquire the system time from the communication network and cannot acquire the differential time by the RTC 35, the CPU 30 adds the predetermined time that is equal to or longer than the backup cycle to return the system time to the past. Can be suppressed.

さらに、CPU30は、システム時刻の復旧時(直前または直後)に、復旧されるシステム時刻をバックアップするので、次回にバックアップするまでの間に電池が外された場合にも、一旦進行したシステム時刻が復旧時点に戻ってしまうのを抑制することができる。   Furthermore, since the CPU 30 backs up the system time to be restored when the system time is restored (immediately or immediately after), even if the battery is removed before the next backup, the system time once progressed It is possible to suppress returning to the recovery point.

図4は、本実施形態に係るCPU30の処理の流れを示すフローチャートである。本処理は、携帯電話機1が起動した際に、システム時刻を復旧する際の処理である。   FIG. 4 is a flowchart showing a processing flow of the CPU 30 according to the present embodiment. This process is a process for restoring the system time when the mobile phone 1 is activated.

ステップS1では、CPU30は、メモリ34にバックアップしたシステム時刻を取得する。なお、CPU30により保持されるシステム時刻は、この取得した時刻よりバックアップ周期(1時間)未満の時間だけ進行したときに、電源OFFにより消去されている。   In step S <b> 1, the CPU 30 acquires the system time backed up in the memory 34. It should be noted that the system time held by the CPU 30 is erased by turning off the power when progressing by a time less than the backup cycle (1 hour) from the acquired time.

ステップS2では、CPU30は、RTC35の源振が停止した履歴があるか否かを判定する。具体的には、例えば、RTC35により保持されているユーザ時刻が初期値に戻っている場合や、電池切れの直前(電圧低下時)に記憶された電池切れを示す情報がある場合等は、源振が停止した履歴があると判定する。この判定がYESの場合はステップS6に移り、判定がNOの場合はステップS3に移る。   In step S <b> 2, the CPU 30 determines whether there is a history that the source oscillation of the RTC 35 has stopped. Specifically, for example, when the user time held by the RTC 35 has returned to the initial value, or when there is information indicating battery exhaustion stored immediately before battery exhaustion (at the time of voltage drop), the source It is determined that there is a history of shaking stopped. If this determination is YES, the process proceeds to step S6, and if the determination is NO, the process proceeds to step S3.

ステップS3では、システム時刻の進行が停止していた間もRTC35が動作していたので、CPU30は、まず、RTC35が最後にシステム時刻と同時にバックアップしたユーザ時刻を取得する。   In step S3, since the RTC 35 was operating while the progress of the system time was stopped, the CPU 30 first obtains the user time that the RTC 35 last backed up simultaneously with the system time.

ステップS4では、CPU30は、RTC35が保持している現在のユーザ時刻を取得し、ステップS3にて取得したバックアップしていたユーザ時刻との差分時間を算出する。これにより、システム時刻の進行が停止していた時間を求めることができる。   In step S4, the CPU 30 acquires the current user time held by the RTC 35, and calculates a difference time from the backed-up user time acquired in step S3. As a result, the time during which the progress of the system time has been stopped can be obtained.

ステップS5では、CPU30は、ステップS1にて取得したバックアップされたシステム時刻に、ステップS4にて算出した差分時間を加算し、現在のシステム時刻として復旧する。これにより、システム時刻の進行が停止している間にもカウントを継続していたRTC35によるユーザ時刻を利用し、ほぼ正確にシステム時刻を復旧することができる。   In step S5, the CPU 30 adds the difference time calculated in step S4 to the backed up system time acquired in step S1, and recovers the current system time. As a result, the system time can be recovered almost accurately by using the user time by the RTC 35 that has continued counting even while the progress of the system time is stopped.

ステップS6では、システム時刻の進行が停止していた間、RTC35の動作も停止していたので、ステップS3〜S5によるシステム時刻の復旧はできない。したがって、CPU30は、ステップS1にて取得したバックアップされたシステム時刻に、バックアップ周期である1時間を加算し、現在のシステム時刻として復旧する。このことにより、一旦進行したシステム時刻を過去に戻すことがなくなるので、システム時刻を利用する各種機能やアプリケーションにおいて、不都合を抑制することができる。   In step S6, since the operation of the RTC 35 is also stopped while the progress of the system time is stopped, the system time cannot be recovered in steps S3 to S5. Therefore, CPU30 adds 1 hour which is a backup period to the backed up system time acquired in step S1, and restores it as the current system time. As a result, the system time once progressed is not returned to the past, and inconveniences can be suppressed in various functions and applications using the system time.

ステップS7では、CPU30は、ステップS2の判定に利用された源振の停止履歴をクリアする。具体的には、例えば、初期値に戻ったユーザ時刻を、復旧したシステム時刻で更新したり、記憶された電池切れを示す情報を消去したりする処理を行う。   In step S7, the CPU 30 clears the source vibration stop history used for the determination in step S2. Specifically, for example, a process of updating the user time returned to the initial value with the restored system time or deleting the stored information indicating battery exhaustion is performed.

ステップS8では、CPU30は、ステップS5またはステップS7にて復旧したシステム時刻をバックアップする。これにより、復旧直後に電池が外される等の事態に備える。   In step S8, the CPU 30 backs up the system time recovered in step S5 or step S7. This prepares for a situation where the battery is removed immediately after recovery.

このように、本実施形態では、RTC35の動作が停止した場合であっても、システム時刻が過去に戻るのを防ぐことができる。このことにより、時刻の遡りに起因する不具合を抑制することができる。   Thus, in this embodiment, even when the operation of the RTC 35 is stopped, the system time can be prevented from returning to the past. As a result, it is possible to suppress inconveniences caused by the retroactive time.

例えば、期限付きコンテンツをメモリ34に記憶し、CPU30により視聴制限を管理する場合、一旦進んだシステム時刻が過去に戻ってしまうと、ユーザの視聴の仕方により、いつまでも期限が到来せず、視聴し続けられるという不都合が生じる。そこで、本実施形態により、システム時刻が過去に戻るのを防止すると、たとえ正確な実時刻の期限で制限することができないとしても、システム時刻は進行し続けるので、ユーザにより期限の到来を回避されるおそれがなくなる。   For example, when content with a time limit is stored in the memory 34 and the viewing limit is managed by the CPU 30, once the advanced system time returns to the past, the time limit will not be reached indefinitely depending on how the user views. The inconvenience of being continued arises. Therefore, according to the present embodiment, if the system time is prevented from returning to the past, the system time continues to advance even if the system time cannot be limited by an accurate actual time limit. There is no risk of being lost.

以上、本発明の実施形態について説明したが、本発明は上述した実施形態に限るものではない。また、本発明の実施形態に記載された効果は、本発明から生じる最も好適な効果を列挙したに過ぎず、本発明による効果は、本発明の実施形態に記載されたものに限定されるものではない。   As mentioned above, although embodiment of this invention was described, this invention is not restricted to embodiment mentioned above. The effects described in the embodiments of the present invention are only the most preferable effects resulting from the present invention, and the effects of the present invention are limited to those described in the embodiments of the present invention. is not.

本発明の実施形態に係る携帯電話機1の外観斜視図である。1 is an external perspective view of a mobile phone 1 according to an embodiment of the present invention. 本発明の実施形態に係る携帯電話機1の機能を示すブロック図である。It is a block diagram which shows the function of the mobile telephone 1 which concerns on embodiment of this invention. 本発明の実施形態に係るシステム時刻と実時刻との関係を示す図である。It is a figure which shows the relationship between the system time which concerns on embodiment of this invention, and real time. 本発明の実施形態に係る処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process which concerns on embodiment of this invention. 従来のシステム時刻の復旧方法を示す図である。It is a figure which shows the restoration method of the conventional system time. 従来のシステム時刻の復旧方法における課題を示す図である。It is a figure which shows the subject in the restoration method of the conventional system time.

符号の説明Explanation of symbols

1 携帯電話機(電子機器)
11 キー入力部
21 表示部
22 レシーバ
30 CPU(制御部)
31 通信制御部(時刻取得部)
32 アンテナ
33 音声制御部
34 メモリ(記憶部)
35 RTC(計時部)
1 Mobile phone (electronic equipment)
11 Key Input Unit 21 Display Unit 22 Receiver 30 CPU (Control Unit)
31 Communication control unit (time acquisition unit)
32 Antenna 33 Voice control unit 34 Memory (storage unit)
35 RTC (Timekeeping Department)

Claims (3)

時刻を計測する計時部と、
網から時刻情報を取得する時刻取得部と、
前記時刻取得部により取得した時刻情報を、内部クロックに基づいて更新する制御部と、
前記制御部により更新された時刻情報により、一定周期ごとに現在の時刻を記憶する記憶部と、を備え、
前記制御部は、前記計時部が時刻を計時できない期間が存在し、当該期間の後に前記計時部が時刻の計時を再開したときに、前記時刻取得部が時刻情報を取得できない場合に、前記時刻情報を、前記記憶部に最後に記憶された時刻に対して、前記一定周期分以上の時間を加えた時刻に更新する電子機器。
A timekeeping unit for measuring time;
A time acquisition unit for acquiring time information from the network;
A control unit that updates the time information acquired by the time acquisition unit based on an internal clock;
With the time information updated by the control unit, a storage unit that stores the current time every fixed period,
The control unit has a period in which the time measurement unit cannot measure time, and the time acquisition unit cannot acquire time information when the time measurement unit resumes time measurement after the period, the time acquisition unit cannot acquire the time information. An electronic device that updates information at a time obtained by adding a time equal to or longer than the predetermined period to a time last stored in the storage unit.
前記記憶部は、前記計時部が時刻の計時を再開したときに、前記制御部により更新された時刻をさらに記憶する請求項1に記載の電子機器。   The electronic device according to claim 1, wherein the storage unit further stores the time updated by the control unit when the time measuring unit resumes time measurement. 前記記憶部は、期限付きコンテンツを記憶し、
前記制御部は、更新した時刻を基に前記コンテンツの期限管理を行う請求項1または請求項2に記載の電子機器。
The storage unit stores time-limited content,
The electronic device according to claim 1, wherein the control unit performs time limit management of the content based on the updated time.
JP2008249031A 2008-09-26 2008-09-26 Electronics Active JP5064348B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008249031A JP5064348B2 (en) 2008-09-26 2008-09-26 Electronics

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008249031A JP5064348B2 (en) 2008-09-26 2008-09-26 Electronics

Publications (2)

Publication Number Publication Date
JP2010081426A JP2010081426A (en) 2010-04-08
JP5064348B2 true JP5064348B2 (en) 2012-10-31

Family

ID=42211328

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008249031A Active JP5064348B2 (en) 2008-09-26 2008-09-26 Electronics

Country Status (1)

Country Link
JP (1) JP5064348B2 (en)

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07160354A (en) * 1993-12-07 1995-06-23 Toshiba Corp Semiconductor safety device
JP4651143B2 (en) * 2000-01-21 2011-03-16 シャープ株式会社 Content data utilization apparatus, content data rental system, and computer-readable recording medium recording a program for causing a computer to function as a content data utilization apparatus
JP2002108717A (en) * 2000-07-27 2002-04-12 Nec Corp Disk system with contents reproduction limiting mechanism, and medium
JP3979782B2 (en) * 2000-12-12 2007-09-19 株式会社トリニティーセキュリティーシステムズ Information processing apparatus, data expiration date control method, and computer-readable recording medium recording a program for causing computer to execute the method
JP2003174439A (en) * 2001-12-06 2003-06-20 Hitachi Ltd Distribution and storage system for digital contents
JP2004021882A (en) * 2002-06-20 2004-01-22 Toshiba Corp Information terminal equipment
JP4307023B2 (en) * 2002-07-12 2009-08-05 三洋電機株式会社 Content data playback device
JP2004326210A (en) * 2003-04-22 2004-11-18 Hitachi Ltd Memory card and server
JP2006018552A (en) * 2004-07-01 2006-01-19 Sony Corp Information processing system, information processor and program
US7979731B2 (en) * 2004-07-15 2011-07-12 Panasonic Corporation Time authentication device, time authentication method, computer program, recording medium, integrated circuit, and time authentication system
JP4286233B2 (en) * 2005-03-11 2009-06-24 京セラ株式会社 Portable terminal device and information acquisition method thereof
JP4673150B2 (en) * 2005-06-30 2011-04-20 治夫 速水 Digital content distribution system and token device

Also Published As

Publication number Publication date
JP2010081426A (en) 2010-04-08

Similar Documents

Publication Publication Date Title
JP4811173B2 (en) Portable terminal device, timer control method, and timer control program
JP2009288233A (en) Portable terminal, travel path recording method and program
US20080244301A1 (en) Real-time clock correction methods and apparatus
CN104917581A (en) System time correction method and device, terminal and router
JP2009109338A (en) Time information management system, electronic apparatus, time information management method, and program
JPH11223686A (en) Electronic equipment
JP5064348B2 (en) Electronics
JP5250214B2 (en) Portable electronic devices
JP2010028674A (en) Portable terminal
JP3730914B2 (en) Mobile communication terminal device
JP2012058115A (en) Management apparatus, management method, and management program
JP5110522B2 (en) Portable terminal device and program
JP2005309767A (en) Power controller, electronic equipment, and mobile telephone terminal
JP2009021671A (en) Cellular phone
JP5292937B2 (en) Information processing device
JP2004045274A (en) Mobile terminal having radio communication function, base station, and radio communication system
WO2008012990A1 (en) Portable electronic device and method of controlling the same
EP1160637A1 (en) Check for plausibility of time information provided by real time clock of a mobile terminal
JP5263956B2 (en) Electronic device and program
JP2005167618A (en) Radio portable terminal with time correcting function
JP4976037B2 (en) Radio correction clock
JP2020060906A (en) Electronic apparatus, information processing method and information processing program
JP5275103B2 (en) Electronics
JP2006300695A (en) Personal digital assistant with alarm function and program
KR20120061769A (en) Method and device for updating the date and time of an electronic system, in particular a cellular mobile telephone

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110830

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120712

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120717

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120808

R150 Certificate of patent or registration of utility model

Ref document number: 5064348

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150817

Year of fee payment: 3