JP2012073143A - Information processor - Google Patents

Information processor Download PDF

Info

Publication number
JP2012073143A
JP2012073143A JP2010218793A JP2010218793A JP2012073143A JP 2012073143 A JP2012073143 A JP 2012073143A JP 2010218793 A JP2010218793 A JP 2010218793A JP 2010218793 A JP2010218793 A JP 2010218793A JP 2012073143 A JP2012073143 A JP 2012073143A
Authority
JP
Japan
Prior art keywords
time
unit
standard
information processing
processing apparatus
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.)
Granted
Application number
JP2010218793A
Other languages
Japanese (ja)
Other versions
JP5419838B2 (en
Inventor
Toyoji Makino
豊司 牧野
Kazutoshi Kawakami
和俊 川上
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2010218793A priority Critical patent/JP5419838B2/en
Publication of JP2012073143A publication Critical patent/JP2012073143A/en
Application granted granted Critical
Publication of JP5419838B2 publication Critical patent/JP5419838B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electric Clocks (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain time after starting OS even when a main power supply of an information processor is cut, without using battery for backup power source.SOLUTION: The information processor includes a timepiece function part 12 for holding an internal time of the processor and independently measuring time, a processor internal time acquisition part 131 for acquiring a processor internal time from the timepiece function part 12 to set it as a system time when the processor stars, a standard time acquisition part 132 for acquiring the standard time from the outside, a setting determination part 133 for comparing the processor internal time acquired by the processor internal time acquisition part 131 with a preset threshold, and determining the validity of the processor internal time, and a time adjustment part 134 for adjusting the system time by using the standard time acquired by the standard time acquisition part 132 based on the determination result by the setting determination part 133.

Description

この発明は、例えばネットワーク接続型放送受信装置やネットワーク機器のような情報処理装置において、システム時刻を調整する情報処理装置に関するものである。   The present invention relates to an information processing apparatus that adjusts system time in an information processing apparatus such as a network-connected broadcast receiving apparatus or a network device.

従来の情報機器では、自装置内にRTC(Real Time Clock)のような時刻情報を保持する時計機能部を設け、予め所定の時刻を設定している。また、RTC用のバックアップ電源用電池を装置に搭載することで、装置の主電源が落ちた場合にもRTCにて時刻情報を保持することができるように構成されている。   In conventional information equipment, a clock function unit for holding time information such as RTC (Real Time Clock) is provided in its own device, and a predetermined time is set in advance. In addition, by mounting a backup power supply battery for RTC in the device, the RTC can hold time information even when the main power of the device is turned off.

一方、デジタル放送受信装置の場合には、装置電源を起動した放送受信状態でデジタル放送波から時刻情報を取得している。そのため、OS(Operating System)のスケジューリング機能に影響を与えることなく、この時刻情報をOSのシステム時刻として適用することは困難であった。
それに対して、ネットワーク対応したネットワーク接続型放送受信装置などの情報処理装置において、OS起動前に外部装置から時刻を取得する手法が提案されている(例えば特許文献1参照)。
On the other hand, in the case of a digital broadcast receiver, time information is acquired from a digital broadcast wave in a broadcast reception state where the apparatus power supply is activated. For this reason, it has been difficult to apply this time information as the OS system time without affecting the scheduling function of the OS (Operating System).
On the other hand, in an information processing apparatus such as a network-connected broadcast receiving apparatus compatible with a network, a method of acquiring time from an external apparatus before starting an OS has been proposed (for example, see Patent Document 1).

特開2006−127027号公報JP 2006-127027 A

上述したように、従来の情報機器では、装置の主電源が落ちた場合にも時刻情報を保持しておく必要があるため、RTC用のバックアップ電源用電池を装置に搭載する必要がある。しかしながら、バックアップ電源用電池には寿命があるため、長期間の製品保証・品質に対して課題があった。   As described above, in the conventional information equipment, it is necessary to hold time information even when the main power of the apparatus is turned off. Therefore, it is necessary to mount a backup power source battery for RTC in the apparatus. However, since the battery for backup power supply has a lifetime, there are problems with long-term product warranty and quality.

また、特許文献1に開示されるネットワーク接続型放送受信装置では、ネットワーク経由で外部装置(NTP(Network Time Protocol)サーバ)から時刻を取得している。しかしながら、ネットワーク接続型放送受信装置の場合には、CDN(Contents Delivery Network)に接続し、エントリーとして固定的に設定されたサーバ(CDN構成情報サーバ)から各種情報を取得するためのサーバのURLを取得する。NTPサーバについても同様であり、CDN構成情報サーバからNTPサーバURLを取得するため、特許文献1に記載されるようなOS起動前の時刻取得処理は困難であるという課題があった。   In addition, the network connection type broadcast receiving apparatus disclosed in Patent Document 1 acquires the time from an external apparatus (NTP (Network Time Protocol) server) via a network. However, in the case of a network-connected broadcast receiving apparatus, the URL of a server for acquiring various information from a server (CDN configuration information server) connected to a CDN (Contents Delivery Network) and fixedly set as an entry is used. get. The same applies to the NTP server. Since the NTP server URL is acquired from the CDN configuration information server, there is a problem that it is difficult to perform time acquisition processing before starting the OS as described in Patent Document 1.

この発明は、上記のような課題を解決するためになされたもので、バックアップ電源用電池を用いずに、装置の主電源が落ちた場合にもOSの起動後に時刻を取得することができる情報処理装置を提供することを目的としている。   The present invention has been made to solve the above-described problems, and can acquire the time after the OS is started even when the main power of the apparatus is turned off without using a backup power supply battery. An object is to provide a processing apparatus.

この発明に係る情報処理装置は、装置内部時刻を保持し、自立的に時刻を刻む時計機能を有する時計機能部と、装置が起動した際に、時計機能部から装置内部時刻を取得してシステム時刻に設定する装置内部時刻取得部と、外部から標準時刻を取得する標準時刻取得部と、装置内部時刻取得部により取得された装置内部時刻を予め設定した閾値と比較して、装置内部時刻の有効性を判断する設定判断部と、設定判断部による判断結果に基づいて、標準時刻取得部により取得された標準時刻を用いてシステム時刻を調整する時刻調整部とを備えたものである。   An information processing apparatus according to the present invention includes a clock function unit having a clock function that keeps the internal time of the apparatus and independently clocks the time, and acquires the apparatus internal time from the clock function unit when the apparatus is activated. The device internal time acquisition unit that sets the time, the standard time acquisition unit that acquires the standard time from the outside, and the device internal time acquired by the device internal time acquisition unit are compared with a preset threshold, A setting determination unit that determines the validity, and a time adjustment unit that adjusts the system time using the standard time acquired by the standard time acquisition unit based on the determination result by the setting determination unit.

この発明によれば、装置内部時刻を保持し、自立的に時刻を刻む時計機能を有する時計機能部と、装置が起動した際に、時計機能部から装置内部時刻を取得してシステム時刻に設定する装置内部時刻取得部と、外部から標準時刻を取得する標準時刻取得部と、装置内部時刻取得部により取得された装置内部時刻を予め設定した閾値と比較して、装置内部時刻の有効性を判断する設定判断部と、設定判断部による判断結果に基づいて、標準時刻取得部により取得された標準時刻を用いてシステム時刻を調整する時刻調整部とを備えたので、バックアップ電源用電池を用いずに、装置の主電源が落ちた場合にもOSの起動後に時刻を取得することができ、装置の製品保証・品質の向上、また原価低減を行うことができる。また、OS起動後に時刻制御を行う方式であるため、各種方式に柔軟に対応して時刻設定することが可能となる。   According to the present invention, the clock function unit having a clock function that holds the device internal time and clocks the time independently, and when the device is started, the device internal time is acquired from the clock function unit and set as the system time. The internal device time acquisition unit, the standard time acquisition unit that acquires the standard time from the outside, the internal device time acquired by the internal device time acquisition unit is compared with a preset threshold value, and the validity of the internal device time is verified. A backup power source battery is used because it includes a setting determination unit to determine and a time adjustment unit that adjusts the system time using the standard time acquired by the standard time acquisition unit based on the determination result by the setting determination unit. In addition, even when the main power of the apparatus is turned off, the time can be acquired after the OS is started up, and the product guarantee / quality improvement of the apparatus and cost reduction can be performed. In addition, since the time is controlled after the OS is started, the time can be set flexibly corresponding to various methods.

この発明の実施の形態1に係る情報処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the information processing apparatus which concerns on Embodiment 1 of this invention. この発明の実施の形態1における時刻制御部の構成を示すブロック図である。It is a block diagram which shows the structure of the time control part in Embodiment 1 of this invention. この発明の実施の形態1における時刻制御部の時刻制御動作を示すフローチャートである。It is a flowchart which shows the time control operation | movement of the time control part in Embodiment 1 of this invention. この発明の実施の形態2における時刻制御部の構成を示すブロック図である。It is a block diagram which shows the structure of the time control part in Embodiment 2 of this invention. この発明の実施の形態2における時刻制御部の時刻制御動作を示すフローチャートである。It is a flowchart which shows the time control operation | movement of the time control part in Embodiment 2 of this invention.

以下、この発明の実施の形態について図面を参照しながら詳細に説明する。
実施の形態1.
図1はこの発明の実施の形態1に係る情報処理装置1の構成を示すブロック図である。
情報処理装置1は、メインCPUのOSによりアプリケーションソフトを駆動するものである。この情報処理装置1は、図1に示すように、ネットワークI/F部11、時計機能部12、時刻制御部13、メイン記憶部14および映像音声処理部15から構成されている。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
Embodiment 1 FIG.
FIG. 1 is a block diagram showing a configuration of an information processing apparatus 1 according to Embodiment 1 of the present invention.
The information processing apparatus 1 drives application software by the OS of the main CPU. As shown in FIG. 1, the information processing apparatus 1 includes a network I / F unit 11, a clock function unit 12, a time control unit 13, a main storage unit 14, and a video / audio processing unit 15.

ネットワークI/F部11は、情報処理装置1をインターネットに接続する機能を果たすものである。このネットワークI/F部11は、インターネットを介して外部装置であるNTPサーバ2にアクセスする。なお、ネットワークI/F部11とインターネットとの接続は、ケーブルなどの有線であってもよいし、無線LANなどの無線であってもよい。   The network I / F unit 11 functions to connect the information processing apparatus 1 to the Internet. The network I / F unit 11 accesses the NTP server 2 that is an external device via the Internet. Note that the connection between the network I / F unit 11 and the Internet may be wired such as a cable, or may be wireless such as a wireless LAN.

時計機能部12は、装置内部時刻を保持し、自身のクロックを用いて、自立的にこの時刻を刻む時計機能を有するものである。時計機能部12は、時刻制御部13の後述する装置内部時刻取得部131からの要求に応じて、保持している装置内部時刻を示す情報を出力する。また、時計機能部12は、時刻制御部13の後述する標準時刻取得部132から標準時刻Tsを示す情報が入力された場合には、この標準時刻Tsを装置内部時刻に設定する。   The timepiece function unit 12 has a timepiece function that holds the internal time of the apparatus and independently clocks this time using its own clock. The clock function unit 12 outputs information indicating the stored device internal time in response to a request from the device internal time acquisition unit 131 described later of the time control unit 13. Further, when information indicating the standard time Ts is input from the standard time acquisition unit 132 (to be described later) of the time control unit 13, the clock function unit 12 sets the standard time Ts as the device internal time.

時刻制御部13は、メインCPUのOS上で動作するアプリケーションである。時刻制御部13は、時計機能部12から装置内部時刻を取得し、NTPサーバ2から世界基準時刻である標準時刻Tsを取得して、システム時刻の調整を行う。この時刻制御部13の内部構成については後述する。   The time control unit 13 is an application that operates on the OS of the main CPU. The time control unit 13 acquires the device internal time from the clock function unit 12, acquires the standard time Ts that is the world standard time from the NTP server 2, and adjusts the system time. The internal configuration of the time control unit 13 will be described later.

なお、時計機能部12は、情報処理装置1にAC電源またはDC電源が入っている場合には、必ず電源が供給され、時計機能を動作させることができる。それに対して、時刻制御部13は、情報処理装置1にACまたはDC電源が入っている場合であっても、リブート時には一旦電源が落ちることを想定しておく必要がある。   Note that when the information processing apparatus 1 is supplied with AC power or DC power, the clock function unit 12 is always supplied with power and can operate the clock function. On the other hand, the time control unit 13 needs to assume that the power is temporarily turned off at the time of rebooting even when the information processing apparatus 1 is powered on by AC or DC.

メイン記憶部14は、メインCPUの一次記憶領域である。
映像音声処理部15は、情報処理装置1において受信した映像・音声信号を処理し、表示装置(不図示)上に出力する機能を有するものである。
The main storage unit 14 is a primary storage area of the main CPU.
The video / audio processing unit 15 has a function of processing a video / audio signal received by the information processing apparatus 1 and outputting it to a display device (not shown).

次に、時刻制御部13の構成について説明する。
図2はこの発明の実施の形態1における時刻制御部13の構成を示すブロック図である。
時刻制御部13は、図2に示すように、装置内部時刻取得部131、標準時刻取得部132、設定判断部133および時刻調整部134から構成されている。
Next, the configuration of the time control unit 13 will be described.
FIG. 2 is a block diagram showing a configuration of time control unit 13 in the first embodiment of the present invention.
As illustrated in FIG. 2, the time control unit 13 includes an apparatus internal time acquisition unit 131, a standard time acquisition unit 132, a setting determination unit 133, and a time adjustment unit 134.

装置内部時刻取得部131は、情報処理装置1の電源が起動された際に時計機能部12から装置内部時刻を取得して、この装置内部時刻をシステム時刻に設定するものである。この装置内部時刻取得部131により取得された装置内部時刻を示す情報は設定判断部133に出力される。   The device internal time acquisition unit 131 acquires the device internal time from the clock function unit 12 when the information processing device 1 is powered on, and sets the device internal time as the system time. Information indicating the device internal time acquired by the device internal time acquisition unit 131 is output to the setting determination unit 133.

標準時刻取得部132は、ネットワークI/F部11を介してNTPサーバ2から世界基準時刻である標準時刻Tsを取得するものである。また、標準時刻取得部132は、取得した標準時刻Tsを、時計機能部12の装置内部時刻に設定する。この標準時刻取得部132により取得された標準時刻Tsを示す情報は時刻調整部134に出力される。   The standard time acquisition unit 132 acquires the standard time Ts that is the world standard time from the NTP server 2 via the network I / F unit 11. Further, the standard time acquisition unit 132 sets the acquired standard time Ts as the device internal time of the clock function unit 12. Information indicating the standard time Ts acquired by the standard time acquisition unit 132 is output to the time adjustment unit 134.

設定判断部133は、装置内部時刻取得部131により取得された装置内部時刻を予め設定した閾値と比較して、この装置内部時刻の有効性を判断するものである。
ここで、設定判断部133は、装置内部時刻がリセットされ未設定の場合に必ず初期日時に設定される装置を用いている場合には、閾値として、初期日時以降、かつ、現在日時以前の日時を用いる(例えば、初期日時が1999年1月1日で、現在日時が2010年7月1日であった場合には、2010年1月1日などを閾値として用いる)。
これにより、設定判断部133は、装置内部時刻が閾値で示される日時以前の日時を示している場合には、装置内部時刻が無効(未設定)であると判断する。一方、設定判断部133は、装置内部時刻が閾値に示される日時以降の日時を示している場合には、装置内部時刻は有効(設定済み)であると判断する。
この設定判断部133による装置内部時刻の有効性を示す判断結果情報は時刻調整部134に出力される。
The setting determination unit 133 compares the device internal time acquired by the device internal time acquisition unit 131 with a preset threshold value to determine the validity of the device internal time.
Here, when using a device that is always set to the initial date and time when the device internal time is reset and not set, the setting determination unit 133 uses a date and time after the initial date and before the current date and time as a threshold value. (For example, when the initial date and time is January 1, 1999 and the current date and time is July 1, 2010, January 1, 2010 is used as a threshold).
Thereby, the setting determination unit 133 determines that the device internal time is invalid (not set) when the device internal time indicates a date and time before the date and time indicated by the threshold. On the other hand, the setting determination unit 133 determines that the device internal time is valid (set) when the device internal time indicates a date after the date and time indicated by the threshold.
The determination result information indicating the validity of the device internal time by the setting determination unit 133 is output to the time adjustment unit 134.

時刻調整部134は、設定判断部133による判断結果情報に基づいて、標準時刻取得部132により取得された標準時刻Tsを用いて、システム時刻の調整を行うものである。
ここで、時刻調整部134は、設定判断部133により装置内部時刻が有効であると判断された場合には、システム時刻と標準時刻Tsとの比較を行い、システム時刻を標準時刻Tsに一致させるように徐々に補正を行いながら使用する。一方、時刻調整部134は、設定判断部133により装置内部時刻が無効であると判断された場合には、標準時刻Tsをシステム時刻として使用するため、装置を再起動する。
The time adjustment unit 134 adjusts the system time using the standard time Ts acquired by the standard time acquisition unit 132 based on the determination result information by the setting determination unit 133.
Here, when the setting determination unit 133 determines that the apparatus internal time is valid, the time adjustment unit 134 compares the system time with the standard time Ts and matches the system time with the standard time Ts. Use while gradually correcting. On the other hand, when the setting determination unit 133 determines that the device internal time is invalid, the time adjustment unit 134 restarts the device to use the standard time Ts as the system time.

次に、上記のように構成された情報処理装置1(時刻制御部13)の時刻設定動作について説明する。
図3はこの発明の実施の形態1における時刻制御部13の時刻設定動作を示したフローチャートである。
時刻制御部13の時刻設定動作では、図3に示すように、情報処理装置1の電源が投入されOSが起動すると、まず、装置内部時刻取得部131は、時計機能部12から装置内部時刻を取得し、この装置内部時刻をシステム時刻に設定する(ステップST31)。この装置内部時刻取得部131により取得された装置内部時刻を示す情報は設定判断部133に出力される。
Next, the time setting operation of the information processing apparatus 1 (time control unit 13) configured as described above will be described.
FIG. 3 is a flowchart showing the time setting operation of time control unit 13 in the first embodiment of the present invention.
In the time setting operation of the time control unit 13, as shown in FIG. 3, when the information processing apparatus 1 is turned on and the OS is started, the apparatus internal time acquisition unit 131 first determines the apparatus internal time from the clock function unit 12. The device internal time is acquired and set as the system time (step ST31). Information indicating the device internal time acquired by the device internal time acquisition unit 131 is output to the setting determination unit 133.

次いで、標準時刻取得部132は、ネットワークI/F部11を介してNTPサーバ2から世界基準時刻である標準時刻Tsを取得する(ステップST32)。
次いで、標準時刻取得部132は、取得した標準時刻Tsを示す情報を時計機能部12に出力し、この標準時刻Tsを装置内部時刻に設定させる(ステップST33)。
Next, the standard time acquisition unit 132 acquires the standard time Ts that is the world standard time from the NTP server 2 via the network I / F unit 11 (step ST32).
Next, the standard time acquisition unit 132 outputs information indicating the acquired standard time Ts to the clock function unit 12, and causes the standard time Ts to be set as the device internal time (step ST33).

次いで、設定判断部133は、装置内部時刻取得部131により取得された装置内部時刻を予め設定した閾値と比較して、この装置内部時刻の有効性を判断する(ステップST34)。この設定判断部133による装置内部時刻の有効性を示す判断結果情報は時刻調整部134に出力される。   Next, the setting determination unit 133 compares the device internal time acquired by the device internal time acquisition unit 131 with a preset threshold value, and determines the validity of the device internal time (step ST34). The determination result information indicating the validity of the device internal time by the setting determination unit 133 is output to the time adjustment unit 134.

このステップST34において、設定判断部133が、装置内部時刻が閾値に示される日時以降の日時を示し、装置内部時刻が有効であると判断した場合には、時刻調整部134は、システム時刻と標準時刻Tsとの比較を行い、システム時刻を標準時刻Tsに一致させるように徐々に補正を行いながら使用する(ステップST35)。
このように、装置内部時刻が有効である場合(装置内部時刻が設定済みである場合)には、この装置内部時刻をシステム時刻として使用することで、OSのスケジューリング機能に影響を与えることなく、OSのシステム時刻として適用することができる。
In step ST34, when the setting determination unit 133 indicates a date and time after the date and time when the device internal time is indicated by the threshold value and determines that the device internal time is valid, the time adjustment unit 134 sets the system time and the standard time. Comparison is made with the time Ts, and the system time is used while being gradually corrected so as to coincide with the standard time Ts (step ST35).
Thus, when the device internal time is valid (when the device internal time is already set), the device internal time is used as the system time without affecting the OS scheduling function. It can be applied as the OS system time.

一方、ステップST34において、設定判断部133が、装置内部時刻が閾値で示される日時以前の日時を示し、装置内部時刻が無効であると判断した場合には、時刻調整部134は、標準時刻Tsをシステム時刻として使用するため、装置を再起動する(ステップST36)。
その後、シーケンスはステップST31に戻り、前段のステップST33において標準時刻に合わせられた装置内部時刻を、システム時刻に設定することができる。
このように、装置内部時刻が無効である場合(装置内部時刻がリセットされ未設定となった場合)には、外部から取得した標準時刻Tsをシステム時刻として使用することで、バックアップ電源用電池を用いることなく、OSのシステム時刻として適用することができる。
On the other hand, in step ST34, when the setting determination unit 133 indicates the date and time before the date and time when the device internal time is indicated by the threshold value and determines that the device internal time is invalid, the time adjustment unit 134 sets the standard time Ts. Is used as the system time, the apparatus is restarted (step ST36).
Thereafter, the sequence returns to step ST31, and the apparatus internal time adjusted to the standard time in the preceding step ST33 can be set as the system time.
As described above, when the device internal time is invalid (when the device internal time is reset and not set), the standard time Ts obtained from the outside is used as the system time, so that the backup power source battery is It can be applied as the OS system time without being used.

以上のように、実施の形態1によれば、装置の起動時に、装置内部時刻の有効性を判断し、有効である場合には装置内部時刻をシステム時刻として使用し、無効である場合には外部から取得した標準時刻をシステム時刻として使用するように構成したので、RTC用のバックアップ電源用電池は不要であり、情報処理装置の製品保証・品質の向上、原価低減などを図ることができる。また、OS起動後にシステム時刻を制御する方式であるため、各種方式に柔軟に対応して時刻設定することが可能となる。   As described above, according to the first embodiment, the validity of the device internal time is determined when the device is activated, and the device internal time is used as the system time when it is valid, and when it is invalid. Since the standard time acquired from the outside is used as the system time, a backup power source battery for RTC is not required, and it is possible to improve the product guarantee / quality of the information processing apparatus and reduce the cost. Further, since the system time is controlled after the OS is started, the time can be set flexibly corresponding to various systems.

実施の形態2.
図4はこの発明の実施の形態2における時刻制御部13の構成を示すブロック図である。この図4に示す実施の形態2における時刻制御部13は、図2に示す実施の形態1における時刻制御部13に時刻比較部135を追加したものである。その他の構成は同様であり、同一の符号を付しその説明を省略する。
Embodiment 2. FIG.
FIG. 4 is a block diagram showing the configuration of the time control unit 13 in the second embodiment of the present invention. The time control unit 13 in the second embodiment shown in FIG. 4 is obtained by adding a time comparison unit 135 to the time control unit 13 in the first embodiment shown in FIG. Other configurations are the same, and the same reference numerals are given and the description thereof is omitted.

時刻比較部135は、設定判断部133により装置内部時刻が有効であると判断された場合に、システム時刻と標準時刻Tsとの比較を行い、システム時刻の標準時刻Tsからのずれを検出するものである。この時刻比較部135によるシステム時刻の標準時刻Tsからのずれを示す情報は時刻調整部134に出力される。   The time comparison unit 135 compares the system time with the standard time Ts when the setting determination unit 133 determines that the device internal time is valid, and detects a deviation of the system time from the standard time Ts. It is. Information indicating the deviation of the system time from the standard time Ts by the time comparison unit 135 is output to the time adjustment unit 134.

なお、時刻調整部134は、設定判断部133により装置内部時刻が有効であると判断され、かつ、時刻比較部135によりシステム時刻のずれが小さいと判断された場合には、システム時刻を標準時刻Tsに一致させるように徐々に補正を行いながら使用する。一方、時刻調整部134は、設定判断部133により装置内部時刻が無効であると判断された場合、または、時刻比較部135によりシステム時刻のずれが大きいと判断された場合には、標準時刻Tsをシステム時刻として使用するため、装置を再起動する。   The time adjustment unit 134 sets the system time to the standard time when the setting determination unit 133 determines that the device internal time is valid and the time comparison unit 135 determines that the difference in system time is small. Used while gradually correcting so as to match Ts. On the other hand, when the setting determination unit 133 determines that the device internal time is invalid or the time comparison unit 135 determines that the system time shift is large, the time adjustment unit 134 determines the standard time Ts. To use as the system time, restart the device.

ここで、システム時刻のずれの大小を判断する閾値は、(1)システムが求める時刻精度、(2)実運用時における時刻ずれの発生割合、(3)再起動の頻度によるユーザビリティの低下の度合い、などを考慮して予め設定される。例えば、ライセンス期限が分単位で管理されている場合には、閾値を1分に設定する。なお、実際にシステム時刻が1分以上ずれるには、電源OFFの状態(ACは挿さっている状態)で1ヶ月以上放置する必要があり、定期的に使用される環境では、徐々に時刻が補正され、時刻が合う方向に向かう。   Here, the thresholds for determining the magnitude of the system time deviation are (1) the time accuracy required by the system, (2) the rate of occurrence of the time deviation during actual operation, and (3) the degree of decrease in usability due to the frequency of restart. , Etc. are set in advance. For example, if the license expiration date is managed in minutes, the threshold is set to 1 minute. In order to actually shift the system time by more than 1 minute, it is necessary to leave it for one month or more in a power-off state (AC is inserted). It is corrected and heads for the time.

次に、上記のように構成された情報処理装置1の時刻制御部13による時刻制御動作について説明する。
図5はこの発明の実施の形態2における時刻制御部13による時刻制御動作を示すフローチャートである。
なお、図5に示す時刻制御動作のステップST51〜54までは、図3に示す時刻制御動作のステップST31〜34までの動作と同様であり、異なる動作についてのみ説明する。
Next, the time control operation by the time control unit 13 of the information processing apparatus 1 configured as described above will be described.
FIG. 5 is a flowchart showing a time control operation by the time control unit 13 in the second embodiment of the present invention.
Note that steps ST51 to ST54 of the time control operation shown in FIG. 5 are the same as the operations of steps ST31 to ST34 of the time control operation shown in FIG. 3, and only different operations will be described.

ステップST54において、設定判断部133が、装置内部時刻が閾値に示される日時以降の日時を示し、装置内部時刻が有効であると判断した場合には、時刻比較部135は、システム時刻と標準時刻Tsとの比較を行い、システム時刻の標準時刻Tsからのずれを検出する(ステップST55)。この時刻比較部135による、システム時刻の標準時刻Tsからのずれを示す情報は時刻調整部134に出力される。   In step ST54, when the setting determination unit 133 indicates the date and time after the date and time when the device internal time is indicated by the threshold value and determines that the device internal time is valid, the time comparison unit 135 determines that the system time and the standard time are Comparison with Ts is performed to detect a deviation of the system time from the standard time Ts (step ST55). Information indicating the deviation of the system time from the standard time Ts by the time comparison unit 135 is output to the time adjustment unit 134.

このステップST55において、時刻比較部135が、システム時刻のずれが小さいと判断した場合には、時刻調整部134は、システム時刻を標準時刻Tsに一致させるように徐々に補正を行いながら使用する(ステップST56)。
このように、装置内部時刻が有効であり、かつ、システム時刻のずれが小さい場合には、この装置内部時刻をシステム時刻として使用することで、OSのスケジューリング機能に影響を与えることなく、OSのシステム時刻として適用することができる。
In step ST55, when the time comparison unit 135 determines that the difference in system time is small, the time adjustment unit 134 uses the system time while gradually correcting the system time so as to match the standard time Ts ( Step ST56).
As described above, when the device internal time is valid and the system time difference is small, the device internal time is used as the system time, so that the OS scheduling function is not affected. It can be applied as system time.

一方、ステップST54において、設定判断部133が、システム時刻が閾値に示される日時以前の日時を示し、システム時刻が無効であると判断した場合、または、ステップST55において、時刻比較部135が、システム時刻のずれが大きいと判断した場合には、時刻調整部134は、標準時刻Tsをシステム時刻として使用するため、装置を再起動する(ステップST57)。
その後、シーケンスはステップST51に戻り、前段のステップST53において標準時刻に合わせられた装置内部時刻を、システム時刻に設定することができる。
このように、装置内部時刻が無効である場合またはシステム時刻のずれが大きい場合には、外部から取得した標準時刻Tsをシステム時刻として使用することで、バックアップ電源用電池を用いることなく、OSのシステム時刻として適用することができる。
On the other hand, if the setting determination unit 133 indicates a date and time before the date and time indicated by the threshold value in step ST54 and determines that the system time is invalid, or in step ST55, the time comparison unit 135 determines that the system time is If it is determined that the time difference is large, the time adjustment unit 134 restarts the apparatus to use the standard time Ts as the system time (step ST57).
Thereafter, the sequence returns to step ST51, and the apparatus internal time adjusted to the standard time in step ST53 in the preceding stage can be set as the system time.
As described above, when the device internal time is invalid or the time difference of the system time is large, the standard time Ts acquired from the outside is used as the system time, so that the OS power supply is not used without using the backup power source battery. It can be applied as system time.

以上のように、実施の形態2によれば、システム時刻と標準時刻Tsとのずれの大きさを検出し、ずれが大きい場合にも標準時刻Tsをシステム時刻として使用する構成したので、実施の形態1における効果に加えて、装置時刻に精度が要求される場合にも適用することができる。なお、実施の形態1に係る情報処理装置に対して装置再起動を行う契機が増えることを許容する必要がある。
また、本願発明はその発明の範囲内において、各実施の形態の自由な組み合わせ、あるいは各実施の形態の任意の構成要素の変形、もしくは各実施の形態において任意の構成要素の省略が可能である。
As described above, according to the second embodiment, the size of the deviation between the system time and the standard time Ts is detected, and the standard time Ts is used as the system time even when the deviation is large. In addition to the effect of the first aspect, the present invention can be applied to a case where accuracy is required for the apparatus time. Note that it is necessary to allow an increase in the opportunity to restart the information processing apparatus according to the first embodiment.
Further, within the scope of the present invention, the invention of the present application can be freely combined with each embodiment, modified with any component in each embodiment, or omitted with any component in each embodiment. .

1 情報処理装置、2 NTPサーバ、11 ネットワークI/F部、12 時計機能部、13 時刻制御部、14 メイン記憶部、15 映像音声処理部、131 装置内部時刻取得部、132 標準時刻取得部、133 設定判断部、134 時刻調整部、135 時刻比較部。   DESCRIPTION OF SYMBOLS 1 Information processing apparatus, 2 NTP server, 11 Network I / F part, 12 Clock function part, 13 Time control part, 14 Main memory | storage part, 15 Audio-video processing part, 131 Apparatus internal time acquisition part, 132 Standard time acquisition part, 133 Setting judgment part, 134 time adjustment part, 135 time comparison part.

Claims (8)

装置内部時刻を保持し、自立的に時刻を刻む時計機能を有する時計機能部と、
装置が起動した際に、前記時計機能部から装置内部時刻を取得してシステム時刻に設定する装置内部時刻取得部と、
外部から標準時刻を取得する標準時刻取得部と、
前記装置内部時刻取得部により取得された装置内部時刻を予め設定した閾値と比較して、前記装置内部時刻の有効性を判断する設定判断部と、
前記設定判断部による判断結果に基づいて、前記標準時刻取得部により取得された標準時刻を用いて前記システム時刻を調整する時刻調整部と
を備えた情報処理装置。
A clock function unit having a clock function that holds the internal time of the apparatus and independently clocks the time,
When the device is activated, the device internal time acquisition unit that acquires the device internal time from the clock function unit and sets it as the system time; and
A standard time acquisition unit for acquiring the standard time from the outside;
A setting determination unit that determines the validity of the device internal time by comparing the device internal time acquired by the device internal time acquisition unit with a preset threshold;
An information processing apparatus comprising: a time adjustment unit that adjusts the system time using a standard time acquired by the standard time acquisition unit based on a determination result by the setting determination unit.
前記時刻調整部は、前記設定判断部により装置内部時刻が有効であると判断された場合に、前記システム時刻を前記標準時刻に一致させるように補正を加えながら使用する
ことを特徴とする請求項1記載の情報処理装置。
The said time adjustment part is used, adding correction | amendment so that the said system time may be made to correspond with the said standard time, when the setting internal determination part judges that the apparatus internal time is effective. 1. An information processing apparatus according to 1.
前記時刻調整部は、前記設定判断部により装置内部時刻が無効であると判断された場合に、前記標準時刻を前記システム時刻として使用する
ことを特徴とする請求項1記載の情報処理装置。
The information processing apparatus according to claim 1, wherein the time adjustment unit uses the standard time as the system time when the setting determination unit determines that the device internal time is invalid.
前記システム時刻と前記標準時刻との比較を行い、前記システム時刻の前記標準時刻からのずれを検出する時刻比較部をさらに備え、
前記時刻調整部は、前記設定判断部による判断結果および前記時刻比較部による比較結果に基づいて、前記標準時刻を用いて前記システム時刻を調整する
ことを特徴とする請求項1記載の情報処理装置。
Comparing the system time with the standard time, further comprising a time comparison unit for detecting a deviation of the system time from the standard time,
The information processing apparatus according to claim 1, wherein the time adjustment unit adjusts the system time using the standard time based on a determination result by the setting determination unit and a comparison result by the time comparison unit. .
前記時刻調整部は、前記設定判断部により装置内部時刻が有効であると判断され、かつ、前記時刻比較部によりシステム時刻のずれが小さいと判断された場合に、前記システム時刻を前記標準時刻に一致させるように補正を加えながら使用する
ことを特徴とする請求項4記載の情報処理装置。
The time adjustment unit sets the system time to the standard time when the setting determination unit determines that the device internal time is valid and the time comparison unit determines that the difference in system time is small. The information processing apparatus according to claim 4, wherein the information processing apparatus is used while being corrected so as to be matched.
前記時刻調整部は、前記設定判断部により装置内部時刻が無効であると判断された場合、または前記時刻比較部によりシステム時刻のずれが大きいと判断された場合に、前記標準時刻を前記システム時刻として使用する
ことを特徴とする請求項4記載の情報処理装置。
The time adjustment unit sets the standard time to the system time when the setting determination unit determines that the device internal time is invalid, or when the time comparison unit determines that the difference in system time is large. The information processing apparatus according to claim 4, wherein the information processing apparatus is used as an information processing apparatus.
前記標準時刻取得部は、取得した標準時刻を前記時計機能部の装置内部時刻に設定する
ことを特徴とする請求項1から請求項6のうちのいずれか1項記載の情報処理装置。
The information processing apparatus according to claim 1, wherein the standard time acquisition unit sets the acquired standard time as an apparatus internal time of the clock function unit.
前記標準時刻取得部は、周期的に外部から標準時刻を取得する
ことを特徴とする請求項1から請求項7のうちのいずれか1項記載の情報処理装置。
The information processing apparatus according to claim 1, wherein the standard time acquisition unit periodically acquires a standard time from the outside.
JP2010218793A 2010-09-29 2010-09-29 Information processing device Expired - Fee Related JP5419838B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010218793A JP5419838B2 (en) 2010-09-29 2010-09-29 Information processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010218793A JP5419838B2 (en) 2010-09-29 2010-09-29 Information processing device

Publications (2)

Publication Number Publication Date
JP2012073143A true JP2012073143A (en) 2012-04-12
JP5419838B2 JP5419838B2 (en) 2014-02-19

Family

ID=46169473

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010218793A Expired - Fee Related JP5419838B2 (en) 2010-09-29 2010-09-29 Information processing device

Country Status (1)

Country Link
JP (1) JP5419838B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012238214A (en) * 2011-05-12 2012-12-06 Toshiba Corp Information processing apparatus
JP2015075836A (en) * 2013-10-07 2015-04-20 住友電工ネットワークス株式会社 Execution method of virtual machine, computer program and information processing apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001083266A (en) * 1999-09-14 2001-03-30 Ricoh Co Ltd Degital complex machine
JP2001228272A (en) * 2000-02-17 2001-08-24 Fuji Photo Film Co Ltd Electronic device and date/time setting method
JP2002073204A (en) * 2000-09-04 2002-03-12 Hitachi Ltd Computer system and method for adjusting its system time
JP2010182103A (en) * 2009-02-05 2010-08-19 Yokogawa Electric Corp Distributed control system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001083266A (en) * 1999-09-14 2001-03-30 Ricoh Co Ltd Degital complex machine
JP2001228272A (en) * 2000-02-17 2001-08-24 Fuji Photo Film Co Ltd Electronic device and date/time setting method
JP2002073204A (en) * 2000-09-04 2002-03-12 Hitachi Ltd Computer system and method for adjusting its system time
JP2010182103A (en) * 2009-02-05 2010-08-19 Yokogawa Electric Corp Distributed control system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012238214A (en) * 2011-05-12 2012-12-06 Toshiba Corp Information processing apparatus
JP2015075836A (en) * 2013-10-07 2015-04-20 住友電工ネットワークス株式会社 Execution method of virtual machine, computer program and information processing apparatus

Also Published As

Publication number Publication date
JP5419838B2 (en) 2014-02-19

Similar Documents

Publication Publication Date Title
US20040223515A1 (en) Method and apparatus for the synchronization of a system time of a communications network with a clock reference
EP1793301A1 (en) Method and apparatus for providing a stable clock signal
JP2010272071A (en) Terminal device
CN113271169A (en) Vehicle time service method and system based on wireless communication terminal
JP5419838B2 (en) Information processing device
US20160295271A1 (en) Time Adjustment System and Time Adjustment Method for Electronic Program Guide
TWI506384B (en) Electronic device with clock regulating function and a clock regulating method thereof
US11307537B2 (en) Communication device, communication method, communication system, electronic watch, and program
CN107547160B (en) A kind of method for synchronizing time and device
JP4891707B2 (en) Electronic device, timer processing method, and timer processing program
CN111769895B (en) Multi-device timing method and system and device timing method and device
US8264567B2 (en) Electronic apparatus, imaging device, method for time correction, and program
US8971154B2 (en) Synchronization of system time in electronic device
JP2013074338A (en) Time server, terminal, time synchronization system, time synchronization method, and program
WO2021176684A1 (en) Reproduction device, time correction method, and program
KR100898658B1 (en) Method for correcting a system clock of a communication terminal using an internet time synchronization protocol
JP6869058B2 (en) Time output device and time output method
JP2004328020A (en) Video-audio receiving mobile terminal
JP2007037020A (en) Digital broadcast receiving apparatus
US20240103448A1 (en) Electronic timepiece, storage medium storing program, and time correction method
CN110582023B (en) Time setting method, television equipment and readable medium
JP2004340672A (en) Time setting method and time setting device
JP2011013076A (en) Time correction device, time correction method and time correction program of information apparatus by standard frequency time signal radio wave
JP2008096259A (en) Radio-controlled timepiece, and simplified correction method of radio-controlled timepiece
JP2006202390A (en) Av player

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120614

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130227

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130305

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130501

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: 20131022

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131119

R150 Certificate of patent or registration of utility model

Ref document number: 5419838

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees