JP2008293204A - Information processing apparatus and error detection method - Google Patents
Information processing apparatus and error detection method Download PDFInfo
- Publication number
- JP2008293204A JP2008293204A JP2007136896A JP2007136896A JP2008293204A JP 2008293204 A JP2008293204 A JP 2008293204A JP 2007136896 A JP2007136896 A JP 2007136896A JP 2007136896 A JP2007136896 A JP 2007136896A JP 2008293204 A JP2008293204 A JP 2008293204A
- Authority
- JP
- Japan
- Prior art keywords
- time
- predetermined
- timeout
- application program
- program
- 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
Links
Images
Abstract
Description
本発明は、パーソナルコンピュータのような情報処理装置および同装置に適用されるエラー検出方法に関する。 The present invention relates to an information processing apparatus such as a personal computer and an error detection method applied to the apparatus.
近年、DVD(Digital Versatile Disc)プレーヤ、TV装置、のようなオーディオ・ビデオ(AV)機器と同様のAV機能を備えたパーソナルコンピュータが開発されている。 In recent years, personal computers having the same AV function as audio / video (AV) devices such as DVD (Digital Versatile Disc) players and TV devices have been developed.
このようなパーソナルコンピュータにおいては、AV機能を実行するためのアプリケーションプログラム(AVアプリケーションプログラム)がインストールされている。このAVアプリケーションプログラムは、様々な処理を効率良く実行できるようにするために、通常は、サービスプログラム、ドライバプログラムといった他の様々なプロクラムと連携して動作するように構成されている。 In such a personal computer, an application program (AV application program) for executing the AV function is installed. This AV application program is usually configured to operate in cooperation with various other programs such as a service program and a driver program in order to efficiently execute various processes.
また、放送番組データの予約録画を実行可能なパーソナルコンピュータにおいては、放送番組データの録画開始時刻が到来する少し前に、録画処理を実行するためのアプリケーションプログラムを自動実行するための機能も設けられている。 A personal computer capable of performing scheduled recording of broadcast program data is also provided with a function for automatically executing an application program for executing recording processing slightly before the recording start time of the broadcast program data arrives. ing.
アプリケーションプログラムを自動実行するための技術として、例えば、特許文献1には、情報取得のためのアプリケーションを起動すべき時間的条件を管理し、時間的条件を満足するときに当該アプリケーションを起動する、という機能を有する通信端末装置が開示されている。
ところで、パーソナルコンピュータにおいては、アプリケーションプログラムのみならず、他の多くのサービスプログラム、ドライバプログラム等も実行される。これらプログラムは、パーソナルコンピュータの起動時にオペレーティングシステムによって順次自動起動される。このため、パーソナルコンピュータの起動直後は実行状態になっておらず、しばらく経過した後に実行状態になるサービスプログラムやドライバプログラムも存在する。 By the way, in the personal computer, not only application programs but also many other service programs, driver programs, and the like are executed. These programs are automatically started sequentially by the operating system when the personal computer is started. For this reason, there are service programs and driver programs that are not in an execution state immediately after the personal computer is started, and in an execution state after a while.
したがって、パーソナルコンピュータが通常稼働状態の場合には何ら問題なく利用可能なサービスプログラムが、パーソナルコンピュータの起動直後においては利用することができないというケースが発生することも想定される。 Therefore, it may be assumed that a service program that can be used without any problem when the personal computer is in a normal operating state cannot be used immediately after the personal computer is started.
通常、サービスプログラムと連携して動作するアプリケーションプログラムは、一定のタイムアウト時間だけサービスプログラムの実行開始待ちを行い、もしタイムアウト時間が経過してもサービスプログラムが実行状態とならない場合には、アプリケーションプログラムは当該アプリケーションプログラムが正常動作することが可能な環境ではないと判断して、タイムアウトエラーの発生を検出する。 Normally, an application program that operates in cooperation with a service program waits for the service program to start executing for a certain timeout period. If the service program does not enter the execution state even after the timeout period elapses, the application program It is determined that the application program is not in an environment where normal operation is possible, and occurrence of a timeout error is detected.
したがって、もしアプリケーションプログラムがパーソナルコンピュータの起動直後に起動されたならば、実際にはもう少し待つとサービスプログラムが実行状態になるにもかかわらず、タイムアウトエラーとして扱われてしまうという状況が発生する場合がある。 Therefore, if the application program is started immediately after the personal computer is started up, a situation may occur in which the service program will be treated as a timeout error even if it waits for a while, even though the service program enters the running state. is there.
また、録画処理を実行するためのアプリケーションプログラムについては、ユーザ操作によって起動されるだけでなく、録画予約された放送番組の録画開始時刻に従って自動的に起動されることもある。自動起動時には、録画開始時刻の少し前にパーソナルコンピュータが起動され、そしてその直後にアプリケーションプログラムが起動される。このため、連携して動作すべきプログラムの実行準備期間中にアプリケーションプログラムが起動されることに起因する上述のようなタイムアウトエラーが発生され易くなる。 In addition, the application program for executing the recording process is not only activated by a user operation, but may be automatically activated according to the recording start time of the broadcast program reserved for recording. At the time of automatic startup, the personal computer is started slightly before the recording start time, and immediately after that, the application program is started. For this reason, the above-described timeout error is likely to occur due to the application program being started during the execution preparation period of the program to be operated in cooperation.
本発明は上述の事情を考慮してなされたものであり、連携して動作すべきプログラムの実行準備期間中にアプリケーションプログラムが起動されることに起因するタイムアウトエラーの発生を効率よく防止することが可能な情報処理装置およびエラー検出方法を提供することを目的とする。 The present invention has been made in consideration of the above-described circumstances, and can efficiently prevent the occurrence of a timeout error due to the application program being started during the execution preparation period of a program to be operated in cooperation. An object is to provide a possible information processing apparatus and an error detection method.
上述の課題を解決するため、本発明の情報処理装置は、所定のアプリケーションプログラムが起動された時、オペレーティングシステムが最後に起動されてからの経過時間を検出する検出手段と、前記検出された経過時間が所定時間を超えている場合、第1のタイムアウト時間を選定し、前記検出された経過時間が前記所定時間以内である場合、前記第1のタイムアウト時間よりも長い第2のタイムアウト時間を選定するタイムアウト時間選定手段と、前記所定のアプリケーションプログラムと連携して動作すべき所定のプログラムの状態をチェックするための状態チェック処理を実行し、前記状態チェック処理を開始してから前記選定された前記第1または第2のタイムアウト時間が経過するまでの期間中に、前記所定のプログラムが実行状態であることが確認されなかった場合、エラーの発生を示すメッセージを出力するエラー出力手段とを具備することを特徴とする。 In order to solve the above-described problem, an information processing apparatus according to the present invention includes a detection unit that detects an elapsed time since the operating system was last started when a predetermined application program is started, and the detected progress When the time exceeds the predetermined time, the first time-out time is selected, and when the detected elapsed time is within the predetermined time, the second time-out time longer than the first time-out time is selected. Executing a state check process for checking a state of a predetermined program to be operated in cooperation with the predetermined application program, and starting the state check process, and then selecting the selected The predetermined program is executed during the period until the first or second timeout time elapses If it is state is not confirmed, characterized by comprising an error output means for outputting a message indicating the occurrence of an error.
本発明によれば、連携して動作すべきプログラムの実行準備期間中にアプリケーションプログラムが起動されることに起因するタイムアウトエラーの発生を効率よく防止することが可能となる。 According to the present invention, it is possible to efficiently prevent the occurrence of a time-out error due to the application program being started during the execution preparation period of a program that should operate in cooperation.
以下、図面を参照して、本発明の実施形態を説明する。
まず、図1および図2を参照して、本発明の一実施形態に係る情報処理装置の構成を説明する。この情報処理装置は、例えば、ノートブック型の携帯型パーソナルコンピュータ10から実現されている。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
First, with reference to FIG. 1 and FIG. 2, the structure of the information processing apparatus which concerns on one Embodiment of this invention is demonstrated. This information processing apparatus is realized by, for example, a notebook portable
このコンピュータ10は、放送信号によって放送される放送番組データの再生および録画を実行するTV機能を有している。このTV機能には、ユーザによって設定された録画予約にしたがって放送番組データを録画する予約録画機能も含まれている。また、コンピュータ10は、DVDメディアやハードディスク等の記憶媒体に格納された映像および音声等のAVコンテンツを管理および再生するためのAVデータライブラリ機能を有しているこれらTV機能およびAVデータライブラリ機能は、例えば、コンピュータ10に予めインストールされているAVアプリケーションプログラムによって実現されている。
The
図1はコンピュータ10のディスプレイユニットを開いた状態における斜視図である。本コンピュータ10は、コンピュータ本体11と、ディスプレイユニット12とから構成されている。
FIG. 1 is a perspective view of the
ディスプレイユニット12には、TFT−LCD(Thin Film Transistor Liquid Crystal Display)17から構成される表示装置が組み込まれている。ディスプレイユニット12は、コンピュータ本体11に対して開放位置と閉塞位置との間を回動自在に取り付けられている。
The
コンピュータ本体11は薄い箱形の筐体を有しており、その上面にはキーボード13、本コンピュータ10を電源オン/オフするためのパワーボタン14、入力操作パネル15、およびタッチパッド16などが配置されている。
The computer
また、コンピュータ本体11の正面には、本コンピュータ10のTV機能を遠隔制御する外部のリモコンユニットとの通信を実行するためのリモコンユニットインタフェース部20が設けられている。リモコンユニットインタフェース部20は、例えば、赤外線信号受信部などから構成されている。
In addition, a remote control
次に、図2を参照して、本コンピュータ10のシステム構成について説明する。
Next, the system configuration of the
本コンピュータ10は、図2に示されているように、CPU111、ノースブリッジ112、メインメモリ113、グラフィクスコントローラ114、サウスブリッジ119、BIOS−ROM120、ハードディスクドライブ(HDD)121、光ディスクドライブ(ODD)122、チューナ装置(受信デバイス)123A,123B、エンベデッドコントローラ/キーボードコントローラIC(EC/KBC)124、およびネットワークコントローラ125等を備えている。
As shown in FIG. 2, the
CPU111は本コンピュータ10の動作を制御するために設けられたプロセッサであり、ハードディスクドライブ(HDD)121からメインメモリ113にロードされる、オペレーティングシステム102、およびAVアプリケーションプログラム101のような各種アプリケーションプログラムを実行する。また、CPU111は、様々なサービスプログラム、デバイスドライバプログラム、データベースサービスプログラム等も実行する。これらサービスプログラム、デバイスドライバプログラム、データベースサービスプログラム等は、オペレーティングシステム102の起動時に当該オペレーティングシステム102によって自動的に起動される。
The
AVアプリケーションプログラム101は、放送番組データの再生および録画を制御するTV機能、および記憶媒体に格納された映像および音声等のAVコンテンツを管理および再生するためのAVデータライブラリ機能等を実行するためのアプリケーションプログラムである。
The
TV機能の実行時においては、AVアプリケーションプログラム101は、チューナデバイス123A,123Bを制御して、放送信号によって放送される放送番組データ(TV放送番組)の再生および録画(予約録画を含む)を実行する。AVアプリケーションプログラム101は、オペレーティングシステム102上で動作するように構成されている。また、AVアプリケーションプログラム101は、様々なサービスプログラムやSQLデータベースサービスプログラム等と連携して動作するように構成されており、さらに、各種デバイスドライバプログラムも利用する。このため、AVアプリケーションプログラム101が正常動作するためには、AVアプリケーションプログラム101と連携すべき上述の各種プログラムが実行状態になっていることが必要である。
At the time of executing the TV function, the
AVアプリケーションプログラム101と連携すべき各種プログラムは、オペレーティングシステム102に対して予め登録されている。この登録処理は、例えば、AVアプリケーションプログラム101のインストール時にAVアプリケーションプログラム101のインストーラ等によって実行される。オペレーティングシステム102の起動時には、オペレーティングシステム102は、インストール済みのアプリケーションそれぞれの実行に必要な各種プログラム(サービスプログラム、デバイスドライバプログラム、SQLデータベースサービスプログラム、等)を順番に起動する。
Various programs to be linked with the
コンピュータ10が通常稼働状態である場合には、通常は、サービスプログラムやデバイスドライバプログラム等は実行状態になっているはずであるので、AVアプリケーションプログラム101の実行に影響が生じることはない。しかし、サービスプログラムやデバイスドライバプログラム等がユーザ操作によって停止されているなどのケースもあるので、AVアプリケーションプログラム101は、その起動時に、AVアプリケーションプログラム101と連携して動作すべき、サービスプログラムのようなプログラムの状態をチェックするための状態チェック処理を実行する。もし、この状態チェック処理を開始してから直ぐに特定のプログラムが実行状態であることが確認できなかったならば、AVアプリケーションプログラム101は、特定のプログラムが実行状態であることが確認されるのを、例えば、ユーザにストレスを与えない程度の所定のタイムアウト時間だけ待つ。このタイムアウト時間だけ待っても特定のプログラムが実行状態であることが確認されなかったならば、つまり、状態チェック処理を開始してからタイムアウト時間が経過するまでの期間中に、特定のプログラムが実行状態であることが確認されなかったならば、AVアプリケーションプログラム101は、AVアプリケーションプログラム101が正常に動作するために必要な動作環境が整っていないと判断し、エラーを示すメッセージ(エラーメッセージ)を出力する。
When the
ユーザにストレスを与えない程度のタイムアウト時間(待ち時間)は、せいぜい数秒程度である。したがって、AVアプリケーションプログラム101は、サービスプログラムのような特定のプログラムの実行開始を数秒程度しか待つことができない。AVアプリケーションプログラム101がコンピュータ10の起動直後、つまりオペレーティングシステム102の起動直後に起動された場合、その数秒程度の期間では、AVアプリケーションプログラム101と連携する、サービスプログラム、デバイスドライバのような特定のプログラムの準備が間に合わない場合がある。この場合、もう少し待てばサービスプログラム、デバイスドライバのような特定のプログラムが実行状態になるにもかかわらず、エラーとして扱われてしまうという現象が発生する。
The time-out time (waiting time) that does not give stress to the user is at most about several seconds. Therefore, the
なお、もしタイムアウト時間を一意に長く設定してしまうと、本当に問題があってタイムアウトするような状況の場合には、エラーメッセージの表示までに多くの時間を要してしまうことになる。 Note that if the timeout time is set to be uniquely long, it takes a lot of time to display the error message in a situation where there is a real problem and timeout occurs.
そこで、本実施形態においては、AVアプリケーションプログラム101には、タイムアウト時間の長さを自動調整する機能が設けられている。すなわち、AVアプリケーションプログラム101が起動された時、AVアプリケーションプログラム101は、サービスプログラム、デバイスドライバのようなプログラム群を起動する環境立ち上げ処理がオペレーティングシステム102によって既に完了されているか否かを判定し、その判定結果に従って、タイムアウト時間の長さを自動調整する。環境立ち上げ処理が完了されているか否かの判定には、オペレーティングシステム102が起動されてから、AVアプリケーションプログラム101が起動されるまでの経過時間が用いられる。この経過時間がある一定時間を超えているならば、AVアプリケーションプログラム101は、環境立ち上げ処理が完了していていると判断し、通常のタイムアウト時間を用いて状態チェック処理を行う。一方、経過時間が一定時間以内であれば、AVアプリケーションプログラム101は、環境立ち上げ処理が完了していないと判断し、通常のタイムアウト時間よりも長いタイムアウト時間を用いて状態チェック処理を行う。
Therefore, in the present embodiment, the
このように、本実施形態においては、オペレーティングシステム102が起動されてからの経過時間に応じてタイムアウト時間が自動的に調整される。したがって、オペレーティングシステム102の起動直後にAVアプリケーションプログラム101が起動された場合でも、上述のような、待ち時間の不足によるエラーの発生を抑制することが可能となる。
Thus, in the present embodiment, the timeout time is automatically adjusted according to the elapsed time since the
さらに、CPU111は、BIOS−ROM120に格納されたBIOS(Basic Input Output System)も実行する。BIOSはハードウェア制御のためのプログラムである。
Further, the
ノースブリッジ112はCPU111のローカルバスとサウスブリッジ119との間を接続するブリッジデバイスである。ノースブリッジ112には、メインメモリ113をアクセス制御するメモリコントローラも内蔵されている。また、ノースブリッジ112は、グラフィクスコントローラ114との通信を実行する機能も有している。
The
グラフィクスコントローラ114は本コンピュータ10のディスプレイモニタとして使用されるLCD17を制御する表示コントローラである。このグラフィクスコントローラ114はオペレーティングシステム102またはAVアプリケーションプログラム101によってビデオメモリ(VRAM)114Aに書き込まれた画像データをLCD17に表示する。サウスブリッジ119は、LPC(Low Pin Count)バス上の各デバイス、およびPCI(Peripheral Component Interconnect)バス上の各デバイスを制御する。また、サウスブリッジ119は、HDD121、ODD122を制御するためのIDE(Integrated Drive Electronics)コントローラを内蔵している。
The
さらに、サウスブリッジ119は、リアルタイムクロック(RTC)119Aを備えている。リアルタイムクロック(RTC)119Aは、現在日時(年、月、日、時、分、秒)を計時する時計モジュールとして機能する。リアルタイムクロック(RTC)119A内のレジスタ(RTCレジスタ)には、本コンピュータ10を電源オンすべき時間(年、月、日、時、分、秒)を指定するアラーム時間をセットすることができる。リアルタイムクロック(RTC)119Aは、現在の時間が、BIOS等を介してTVアプリケーションプログラム101によってRTCレジスタにセットされたアラーム時間に達したとき、本コンピュータ10をパワーオンすべきことを示すパワーオンイベントの発生をEC/KBC124に通知する。このパワーオンイベントの発生に応答して、EC/KBC124は、本コンピュータ10をパワーオンする。
Further, the
チューナデバイス123A,123Bは、それぞれ放送信号によって放送される放送番組データを受信する受信デバイスである。本実施形態では、例えば、チューナデバイス123Aは、アナログ放送信号によって放送される放送番組データを受信するアナログTVチューナから構成され、チューナデバイス123Aは、地上波デジタル放送信号によって放送される放送番組データを受信するデジタルTVチューナから構成されている。
The
EC/KBC124は、電力管理のためのエンベデッドコントローラと、キーボード(KB)13およびタッチパッド16を制御するためのキーボードコントローラとが集積された、1チップマイクロコンピュータである。EC/KBC124は、ユーザによるパワーボタン14の操作に応じて本コンピュータ10をパワーオン/パワーオフする機能を有している。本コンピュータ10の各コンポーネントに供給される動作電源は、本コンピュータ10に内蔵されたバッテリ126、またはACアダプタ127を介して外部から供給される外部電源から生成される。また、EC/KBC124はリモコンユニットインタフェース部20にも接続されている。
The EC /
AVアプリケーションプログラム101の制御は、ユーザによる、キーボード(KB)13、タッチパッド(マウス)16のような入力装置の操作のみならず、外部のリモコンユニットの操作によっても実行することができる。
The
ネットワークコントローラ125は有線または無線のネットワークに接続するための通信デバイスであり、インターネットなどの外部ネットワークとの通信を実行するために使用される。 The network controller 125 is a communication device for connecting to a wired or wireless network, and is used to execute communication with an external network such as the Internet.
次に、図3を参照して、AVアプリケーションプログラム101の機能構成を説明する。
Next, the functional configuration of the
AVアプリケーションプログラム101は、上述のTV機能、AVデータライブラリ機能を実行するためのプログラムモジュール群を有している。これらプログラムモジュール群は、サービスプログラム、SQLデータベースサービスプログラム、デバイスドライバプログラム等と連携して動作し、例えば、あるサービスプログラムとの間でメッセージ通信等を行うことによって、必要なサービスをサービスプログラムから受ける。
The
また、このAVアプリケーションプログラム101は、上述のタイムアウト時間自動調整機能を実行するためのプログラムモジュールとして、経過時間検出部201、タイムアウト時間選定部202、およびエラー出力部203を備えている。
The
AVアプリケーションプログラム101がユーザ操作によってまたは上述の予約録画のための自動起動によって起動された時、経過時間検出部201は、オペレーティングシステム102が最後に起動されてから現在までの経過時間を検出する。コールドブートまたは再起動によってオペレーティングシステム102がスタートされると、オペレーティングシステム102は経過時間のカウントを開始する。経過時間検出部201は、オペレーティングシステム102に用意された例えばGetTickCountのようなAPIを通じて、オペレーティングシステム102が最後に起動されてからの経過時間をオペレーティングシステム102から取得することができる。
When the
タイムアウト時間選定部202は、経過時間検出部201によって検出された経過時間と予め決められた環境立ち上げ時間とを比較する。環境立ち上げ時間はオペレーティングシステム102が起動してから環境立ち上げ処理が完了するまでに要する時間の推定値であり、この値は、例えば、システム性能やオペレーティングシステム102の種類等に応じて予め決められている。経過時間が環境立ち上げ時間を超えている場合には、タイムアウト時間選定部202は、通常のタイムアウト時間(第1のタイムアウト時間)を使用すべきタイムアウト時間として選定する。一方、経過時間が環境立ち上げ時間以内であるならば、タイムアウト時間選定部202は、通常タイムアウト時間よりも長いタイムアウト時間(第2のタイムアウト時間)を使用すべきタイムアウト時間として選定する。
The timeout
エラー出力部203は、AVアプリケーションプログラム101と連携して動作すべきサービスプログラムのような所定のプログラムの状態チェック処理を実行する。状態チェック処理を開始してから、選定されたタイムアウト時間が経過するまでの期間中に、所定のプログラムが実行状態であることが確認されなかった場合、エラー出力部203は、エラーの発生またはそのエラーの内容等をユーザに通知するために、エラーの発生を示すメッセージ(エラーメッセージ)を出力する。エラーメッセージは例えばLCD17の表示画面上に表示される。
The
次に、図4のフローチャートを参照して、AVアプリケーションプログラム101の起動時に実行される処理手順を説明する。
Next, a processing procedure executed when the
AVアプリケーションプログラム101が起動された時、AVアプリケーションプログラム101は、まず、オペレーティングシステム102が起動されてから現在までの経過時間を取得する(ステップS11)。このステップS11では、GetTickCountのような取得要求メッセージがAVアプリケーションプログラム101からオペレーティングシステム102に送信され、オペレーティングシステム102によって管理されている経過時間を示す値がAVアプリケーションプログラム101に戻される。
When the
次に、AVアプリケーションプログラム101は、オペレーティングシステム102から取得した経過時間が上述の環境立ち上げ時間内であるか否かを判定する(ステップS12)。環境立ち上げ時間は、例えば、5分程度に設定されている。
Next, the
経過時間が環境立ち上げ時間を超えているならば(ステップS12のNO)、AVアプリケーションプログラム101は、通常のタイムアウト時間(第1のタイムアウト時間)を選定し、状態チェック処理で使用すべきタイムアウト時間をその第1のタイムアウト時間に設定する(ステップS13)。第1のタイムアウト時間は必要なサービスプログラム等が既に実行状態である場合を前提とした待ち時間であり、この値は、ユーザにストレスを与えないこと、およびメッセージ通信等によるディレイ等を考慮して、例えば5秒程度に設定されている。
If the elapsed time exceeds the environment startup time (NO in step S12), the
一方、経過時間が環境立ち上げ時間以内であるならば(ステップS12のYES)、AVアプリケーションプログラム101は、通常のタイムアウト時間(第1のタイムアウト時間)よりも長いタイムアウト時間(第2のタイムアウト時間)を選定し、状態チェック処理で使用すべきタイムアウト時間をその第2のタイムアウト時間に設定する(ステップS14)。第2のタイムアウト時間は必要なサービスプログラム等を起動する処理が完了していない場合を前提とした待ち時間であり、この値は、サービスプログラム等の起動に要する時間を考慮して、例えば1〜2分程度に設定されている。
On the other hand, if the elapsed time is within the environment startup time (YES in step S12), the
次に、AVアプリケーションプログラム101は、必要なサービスプログラム等の所定のプログラムの状態をチェックするための状態チェック処理を実行する(ステップS15)。そして、状態チェック処理を開始してから、設定されたタイムアウト時間が経過するまでの期間中に、所定のプログラムが実行状態であることが確認されなかった場合(ステップS15のYES)、AVアプリケーションプログラム101は、AVアプリケーションプログラム101の動作に必要な動作環境が整っていないと判断し、エラーメッセージを表示する(ステップS16)。
Next, the
例えば、あるサービスプログラムが実行状態であるか否かの判定は、例えば、図5に示すように、処理要求等の何らかの要求をAVアプリケーションプログラム101からサービスプログラムに送信してから当該サービスプログラムからAVアプリケーションプログラム101に応答が返送されるまでの待ち時間Tをカウントすることによって行うことが出来る。この待ち時間Tが設定されたタイムアウト時間を超えた場合、すなわち、サービスプログラムに対して要求を送信してからタイムアウト時間が経過するまでの期間中に応答が返送されない場合は、タイムアウトエラーの発生が検出される。
For example, whether or not a certain service program is in an execution state is determined by, for example, transmitting a request such as a processing request from the
また、あるサービスプログラムが実行状態であるか否かの判定を、図6に示すように、サービスプログラムの状態を問い合わせることによって行うことも出来る。この場合、AVアプリケーションプログラム101は、サービスプログラムが実行状態であることが確認されるまで、オペレーティングシステム102上で動作するサービス管理プログラムであるサービスマネージャに対して所定のサービスプログラムの状態を繰り返し問い合わせる。そして、AVアプリケーションプログラム101は、問い合わせを開始してから所定のサービスプログラムが実行状態であることが確認されるまでの待ち時間Tをカウントする。この待ち時間Tが設定されたタイムアウト時間を超えた場合、すなわち、問い合わせを開始してからタイムアウト時間が経過するまでの期間中にサービスプログラムが実行状態であることが確認できなかった場合は、タイムアウトエラーの発生が検出される。
Further, it is possible to determine whether or not a certain service program is in an execution state by inquiring about the state of the service program as shown in FIG. In this case, the
サービスマネージャは、各サービスプログラムについて、その状態(実行状態、停止状態、実行状態への移行処理途中の状態、停止状態への移行処理途中の状態、等)を管理しており、アプリケーションプログラムからの状態問い合わせに応じて、その問い合わせによって指定されたサービスプログラムの現在の状態をアプリケーションプログラムに通知する。サービスプログラムが実行状態とは、そのサービスプログラムのサービスが開始されており、アプリケーションプログラムからサービスプログラムを利用可能であることを意味している。 The service manager manages the state of each service program (execution state, stop state, state during transition processing to execution state, state during transition processing to stop state, etc.) In response to the status inquiry, the application program is notified of the current status of the service program designated by the inquiry. The execution state of the service program means that the service program service is started and the service program can be used from the application program.
なお、AVアプリケーションプログラム101と連携して動作すべきサービスプログラムが複数存在する場合であっても、それら複数のサービスプログラム同士の関連付けを予めオペレーティングシステム102に登録した場合には、それらサービスプログラム内の一つのサービスプログラムの状態のみをチェックすれば十分である。これは、基本的には、関連付けされたサービスプログラム群についてはその全てがオペレーティングシステム102によって起動され、あるサービスプログラムのみが起動され、他のサービスプログラムが起動されないという事態は生じないからである。
Even if there are a plurality of service programs that should operate in cooperation with the
次に、図7のフローチャートを参照して、上述の第2のタイムアウト時間の値を適応的に調整する処理について説明する。 Next, processing for adaptively adjusting the value of the second timeout period described above will be described with reference to the flowchart of FIG.
図4で説明した処理においては、第2のタイムアウト時間の値が予め決められている場合を想定したが、本例では、オペレーティングシステム102が起動されてからの経過時間が環境立ち上げ時間以内であった場合には、環境立ち上げ時間までの残り時間に基づいて第2のタイムアウト時間の値が算出される。
In the processing described with reference to FIG. 4, it is assumed that the value of the second timeout time is determined in advance, but in this example, the elapsed time after the
すなわち、オペレーティングシステム102から取得した経過時間が環境立ち上げ時間以内であった場合、AVアプリケーションプログラム101は、まず、環境立ち上げ時間から経過時間を減算して、環境立ち上げ時間に達するまでの残り時間を算出する(ステップS21)。次いで、AVアプリケーションプログラム101は、算出した残り時間と通常のタイムアウト時間(第1のタイムアウト時間)との合計時間を算出し(ステップS22)、その合計時間を第2のタイムアウト時間として設定する(ステップS23)。
In other words, if the elapsed time acquired from the
この処理により、少なくとも、オペレーティングシステム102が起動されてから環境立ち上げ時間分だけ経過する時点までは最終的なエラー判定は行われなくなるので、サービスプログラムの実行準備期間中にAVアプリケーションプログラム101が起動されることに起因するタイムアウトエラーの発生をより効率よく低減することが可能となる。
With this process, since the final error determination is not performed at least until the time when the environment startup time elapses after the
次に、図8のフローチャートを参照して、本コンピュータ10がパワーオフされている状態からTVアプリケーションプログラム101が自動的に起動されるまでの一連の処理について説明する。
Next, a series of processes from when the
TVアプリケーションプログラム101は、録画予約された放送番組データを指定する録画予約情報を格納するデータベースを管理している。このデータベースは、例えば、HDD121内の所定の記憶領域に保存されている。TVアプリケーションプログラム101は、例えば、BIOSを通じて、予約録画すべき放送番組データの録画開始時刻の例えば15分程度前の時刻を次回のパワーオン時刻としてRTC119Aに設定する。
The
本コンピュータ10がパワーオフされている状態で録画開始時刻の所定時間前(例えば15分前)になると、RTC119Aからのパワーオンイベント等に応答してEC/KBC124が本コンピュータ10を自動的にパワーオンする。そしてBIOSの制御の下に、本コンピュータ10の各デバイスを初期化する処理等を含む自動電源オン処理(ステップS31)が実行される。そして、本コンピュータ10がパワーオンされたことに応答して、BIOSは、オペレーティングシステム102を起動(ブート)するためのOS起動処理を開始する(ステップS32)。
When the
オペレーティングシステム102が起動されると、オペレーティングシステム102内のスケジューリングプログラムなどの制御の下、各種サービスプログラムを起動する処理(ステップS33,34)や、AVアプリケーションプログラム101を起動する処理(ステップS35)等が実行される。
When the
このように、AVアプリケーションプログラム101を自動起動する場合においては、AVアプリケーションプログラム101はオペレーティングシステム102の起動直後に起動される。AVアプリケーションプログラム101が起動されると、AVアプリケーションプログラム101は、図4のフローチャートで説明した処理を開始する。
As described above, when the
AVアプリケーションプログラム101が起動されたタイミングが環境立ち上げ処理の完了前であるならば、第2のタイムアウト時間が選定される。必要なサービスプログラムが実行状態であることが第2のタイムアウト時間内に確認されなかったならば、AVアプリケーションプログラム101は、エラーメッセージを生じて、エラー終了する。一方、必要なサービスプログラムが実行状態であることが第2のタイムアウト時間内に確認されたたならば、AVアプリケーションプログラム101は、録画予約された放送番組データの録画処理の準備を開始する。
If the timing at which the
以上のように、本実施形態によれば、オペレーティングシステムの起動からの経過時間に応じてタイムアウト時間を自動調整することにより、通常稼働状態の期間内にAVアプリケーションプログラム101が起動された場合には、通常のタイムアウト時間を使用し、オペレーティングシステムの起動直後にAVアプリケーションプログラム101が起動された場合には、通常のタイムアウト時間よりも長いタイムアウト時間を使用することができる。よって、連携して動作すべきプログラムの実行準備期間中にアプリケーションプログラムが起動されることに起因するタイムアウトエラーの発生を効率よく防止することが可能となる。
As described above, according to the present embodiment, when the
特に、録画予約された放送番組データの録画開始時刻に従ってコンピュータ10が自動起動された場合には、オペレーティングシステム102の起動直後にAVアプリケーションプログラム101が起動される可能性が高いが、本実施形態のタイムアウト時間自動調整機能により、タイムアウトエラーの発生を効率よく防止することが可能となる。したがって、予約録画処理に失敗する可能性を大幅に低減することが可能となる。
In particular, when the
なお、本実施形態のAVアプリケーションプログラム101の機能は全てソフトウェアによって実現することができるので、このソフトウェアをコンピュータ読み取り可能な記憶媒体を通じて、通常のコンピュータに導入するだけで、本実施形態と同様の効果を容易に実現することができる。
Since all functions of the
また、本実施形態の制御は、AVアプリケーションプログラムに限らず、他のプログラムと連携して動作する全てのアプリケーションプログラムに対して適用することができる。 Further, the control of the present embodiment can be applied not only to AV application programs but also to all application programs that operate in cooperation with other programs.
また、本発明は、上記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、上記実施形態に開示されている複数の構成要素の適宜な組み合わせにより種々の発明を形成できる。例えば、実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。更に、異なる実施形態に構成要素を適宜組み合わせてもよい。 Further, the present invention is not limited to the above-described embodiments as they are, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage. In addition, various inventions can be formed by appropriately combining a plurality of components disclosed in the embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, you may combine a component suitably in different embodiment.
101…AVアプリケーションプログラム、102…オペレーティングシステム、111…CPU、123A,123B…チューナデバイス、201…経過時間検出部、202…タイムアウト時間選定部、203…エラー出力部。
DESCRIPTION OF
Claims (10)
前記検出された経過時間が所定時間を超えている場合、第1のタイムアウト時間を選定し、前記検出された経過時間が前記所定時間以内である場合、前記第1のタイムアウト時間よりも長い第2のタイムアウト時間を選定するタイムアウト時間選定手段と、
前記所定のアプリケーションプログラムと連携して動作すべき所定のプログラムの状態をチェックするための状態チェック処理を実行し、前記状態チェック処理を開始してから前記選定された前記第1または第2のタイムアウト時間が経過するまでの期間中に、前記所定のプログラムが実行状態であることが確認されなかった場合、エラーの発生を示すメッセージを出力するエラー出力手段とを具備することを特徴とする情報処理装置。 Detecting means for detecting an elapsed time since the operating system was last started when a predetermined application program is started;
When the detected elapsed time exceeds a predetermined time, a first timeout time is selected, and when the detected elapsed time is within the predetermined time, a second longer than the first timeout time is selected. Timeout time selection means for selecting the timeout time of
The state check process for checking the state of the predetermined program to be operated in cooperation with the predetermined application program is executed, and the selected first or second time-out is started after the state check process is started. And an error output means for outputting a message indicating the occurrence of an error if the predetermined program is not confirmed to be in an execution state during a period until the time elapses. apparatus.
前記所定のアプリケーションプログラムによって録画予約された放送番組データの録画開始時刻の所定時間前に、前記情報処理装置をパワーオンする手段と、
前記情報処理装置がパワーオンされたことに応答して、前記オペレーティングシステムを起動する手段と、
前記オペレーティングシステムの起動された後に前記所定のアプリケーションプログラムを起動する手段とをさらに具備することを特徴とする請求項1または2のいずれか1項記載の情報処理装置。 The predetermined application program has a reserved recording function for recording broadcast program data reserved for recording,
Means for powering on the information processing apparatus a predetermined time before a recording start time of broadcast program data reserved for recording by the predetermined application program;
Means for activating the operating system in response to the information processing apparatus being powered on;
The information processing apparatus according to claim 1, further comprising a unit that starts the predetermined application program after the operating system is started.
前記検出された経過時間が所定時間を超えている場合、第1のタイムアウト時間を選定し、前記検出された経過時間が前記所定時間以内である場合、前記第1のタイムアウト時間よりも長い第2のタイムアウト時間を選定するタイムアウト時間選定手段と、
前記所定のアプリケーションプログラムが当該所定のアプリケーションプログラムと連携して動作すべき所定のプログラムに対して要求を送信してから、前記選定された前記第1または第2のタイムアウト時間が経過するまでの期間中に、前記所定のプログラムから応答が返送されない場合、エラーを示すメッセージを出力するエラー出力手段とを具備することを特徴とする情報処理装置。 Detecting means for detecting an elapsed time since the operating system was last started when a predetermined application program is started;
When the detected elapsed time exceeds a predetermined time, a first timeout time is selected, and when the detected elapsed time is within the predetermined time, a second longer than the first timeout time is selected. Timeout time selection means for selecting the timeout time of
A period from when the predetermined application program transmits a request to the predetermined program to operate in cooperation with the predetermined application program until the selected first or second timeout time elapses And an error output means for outputting a message indicating an error when no response is returned from the predetermined program.
前記所定のアプリケーションプログラムが起動された時、オペレーティングシステムが最後に起動されてからの経過時間を検出するステップと、
前記検出された経過時間が所定時間を超えている場合、第1のタイムアウト時間を選定し、前記検出された経過時間が前記所定時間以内である場合、前記第1のタイムアウト時間よりも長い第2のタイムアウト時間を選定するタイムアウト時間選定ステップと、
前記所定のアプリケーションプログラムと連携して動作すべき所定のプログラムの状態をチェックするための状態チェック処理を実行し、前記状態チェック処理を開始してから前記選定された前記第1または第2のタイムアウト時間が経過するまでの期間中に、前記所定のプログラムが実行状態であることが確認されなかった場合、エラーの発生を示すメッセージを出力するステップとを具備することを特徴とするエラー検出方法。 An error detection method for detecting an error related to an operating environment of a predetermined application program executed by an information processing apparatus,
Detecting an elapsed time since the operating system was last started when the predetermined application program is started; and
When the detected elapsed time exceeds a predetermined time, a first timeout time is selected, and when the detected elapsed time is within the predetermined time, a second longer than the first timeout time is selected. A timeout time selection step for selecting a timeout time of
The state check process for checking the state of the predetermined program to be operated in cooperation with the predetermined application program is executed, and the selected first or second time-out is started after the state check process is started. And a step of outputting a message indicating the occurrence of an error if the predetermined program is not confirmed to be in an execution state during a period until the time elapses.
前記所定のアプリケーションプログラムが起動された時、オペレーティングシステムが最後に起動されてからの経過時間を検出するステップと、
前記検出された経過時間が所定時間を超えている場合、第1のタイムアウト時間を選定し、前記検出された経過時間が前記所定時間以内である場合、前記第1のタイムアウト時間よりも長い第2のタイムアウト時間を選定するタイムアウト時間選定ステップと、
前記所定のアプリケーションプログラムが当該所定のアプリケーションプログラムと連携して動作すべき所定のプログラムに対して要求を送信してから、前記選定された前記第1または第2のタイムアウト時間が経過するまでの期間中に、前記所定のプログラムから応答が返送されない場合、エラーを示すメッセージを出力するステップとを具備することを特徴とするエラー検出方法。 An error detection method for detecting an error related to an operating environment of a predetermined application program executed by an information processing apparatus,
Detecting an elapsed time since the operating system was last started when the predetermined application program is started; and
When the detected elapsed time exceeds a predetermined time, a first timeout time is selected, and when the detected elapsed time is within the predetermined time, a second longer than the first timeout time is selected. A timeout time selection step for selecting a timeout time of
A period from when the predetermined application program transmits a request to the predetermined program to operate in cooperation with the predetermined application program until the selected first or second timeout time elapses And a step of outputting a message indicating an error when no response is returned from the predetermined program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007136896A JP4945316B2 (en) | 2007-05-23 | 2007-05-23 | Information processing apparatus and error detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007136896A JP4945316B2 (en) | 2007-05-23 | 2007-05-23 | Information processing apparatus and error detection method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008293204A true JP2008293204A (en) | 2008-12-04 |
JP4945316B2 JP4945316B2 (en) | 2012-06-06 |
Family
ID=40167876
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007136896A Expired - Fee Related JP4945316B2 (en) | 2007-05-23 | 2007-05-23 | Information processing apparatus and error detection method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4945316B2 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011039745A (en) * | 2009-08-10 | 2011-02-24 | Ricoh Co Ltd | Information processor, information processing method and information processing program |
JP2012203679A (en) * | 2011-03-25 | 2012-10-22 | Exa Corp | Device driver activation monitoring program and electronic apparatus |
JP2012238248A (en) * | 2011-05-13 | 2012-12-06 | Canon Inc | Information processing device and method for controlling information processing device |
JP2013109420A (en) * | 2011-11-17 | 2013-06-06 | Toshiba Corp | Electronic apparatus, control method of electronic apparatus, and control program of electronic apparatus |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04188234A (en) * | 1990-11-21 | 1992-07-06 | Nec Corp | No response supervisory system in multi-job system |
JPH06103116A (en) * | 1992-09-18 | 1994-04-15 | Pfu Ltd | Operation time monitor-processing system |
JP2000047956A (en) * | 1998-07-27 | 2000-02-18 | Canon Inc | Data communication system, data download method, and storage medium |
JP2002152645A (en) * | 2000-10-19 | 2002-05-24 | Samsung Electronics Co Ltd | Computer and method for storing tv signal by computer |
-
2007
- 2007-05-23 JP JP2007136896A patent/JP4945316B2/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04188234A (en) * | 1990-11-21 | 1992-07-06 | Nec Corp | No response supervisory system in multi-job system |
JPH06103116A (en) * | 1992-09-18 | 1994-04-15 | Pfu Ltd | Operation time monitor-processing system |
JP2000047956A (en) * | 1998-07-27 | 2000-02-18 | Canon Inc | Data communication system, data download method, and storage medium |
JP2002152645A (en) * | 2000-10-19 | 2002-05-24 | Samsung Electronics Co Ltd | Computer and method for storing tv signal by computer |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011039745A (en) * | 2009-08-10 | 2011-02-24 | Ricoh Co Ltd | Information processor, information processing method and information processing program |
JP2012203679A (en) * | 2011-03-25 | 2012-10-22 | Exa Corp | Device driver activation monitoring program and electronic apparatus |
JP2012238248A (en) * | 2011-05-13 | 2012-12-06 | Canon Inc | Information processing device and method for controlling information processing device |
JP2013109420A (en) * | 2011-11-17 | 2013-06-06 | Toshiba Corp | Electronic apparatus, control method of electronic apparatus, and control program of electronic apparatus |
Also Published As
Publication number | Publication date |
---|---|
JP4945316B2 (en) | 2012-06-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10007505B2 (en) | Initiating update operations | |
US7302594B2 (en) | Query of bios-stored value to determine user intent at return to active state | |
US8553157B2 (en) | Television with energy saving and quick start modes | |
US8645671B2 (en) | Direct computing experience | |
TW200847021A (en) | Automatic backup, restore and update BIOS computer system | |
US8312256B2 (en) | Display of a basic input/output system (BIOS) productivity display | |
JP2009116698A (en) | Information processing apparatus | |
JP2006252329A (en) | Information processor and starting control method | |
JP2009110428A (en) | Information processing apparatus and control method | |
JP2003296042A (en) | Computer device, data dead copying method and program, and method for operating computer device | |
JP4945316B2 (en) | Information processing apparatus and error detection method | |
JP4746404B2 (en) | Information processing apparatus and resume control method | |
EP2818971B1 (en) | Electronic device, method for controlling electronic device, and program | |
US20060291800A1 (en) | Information processing apparatus and picture recording control method | |
JP3563721B2 (en) | Information processing apparatus and clock display control method used in the information processing apparatus | |
CN102044201B (en) | Device and method for constant brightness display of mobile equipment screen | |
JP2005316761A (en) | Electronic apparatus and method for notifying information | |
JP2007109078A (en) | Information processor and method for controlling operation | |
JP2009070275A (en) | Device having television broadcasting display function, and display method of menu screen in the device | |
US20090249054A1 (en) | Method for booting computer device | |
US20040017352A1 (en) | Information processing apparatus and function assignment method for pointing device | |
JP2008177758A (en) | Information processing device and recording control method | |
US20060018205A1 (en) | System and method for displaying media playing information | |
JP5487270B2 (en) | Electronic apparatus and control method | |
JP2008187376A (en) | Information processor and video recording control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100115 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120131 |
|
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: 20120207 |
|
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: 20120305 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150309 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |