JP3785641B2 - Information processing apparatus, information processing method, and program - Google Patents
Information processing apparatus, information processing method, and program Download PDFInfo
- Publication number
- JP3785641B2 JP3785641B2 JP2002313695A JP2002313695A JP3785641B2 JP 3785641 B2 JP3785641 B2 JP 3785641B2 JP 2002313695 A JP2002313695 A JP 2002313695A JP 2002313695 A JP2002313695 A JP 2002313695A JP 3785641 B2 JP3785641 B2 JP 3785641B2
- Authority
- JP
- Japan
- Prior art keywords
- control unit
- memory stick
- processing
- information processing
- usb
- 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.)
- Expired - Lifetime
Links
Images
Landscapes
- Power Sources (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、情報処理装置および情報処理方法、並びにプログラムに関し、例えば、所定のデバイスの使用状態に基づいて、所定時間に供給される割り込み信号の回数に応じて遷移可能な低消費電力モードが定められている処理制御手段(処理制御部)に送出される割り込み信号をできるだけ少なくすることができるようになされている、情報処理装置および情報処理方法、並びにプログラムに関する。
【0002】
【従来の技術】
USB(Universal Serial Bus)デバイスを接続することが可能なパーソナルコンピュータにおいて、USBデバイスの接続ポートは、USBホストコントローラと接続されている。USBホストコントローラは、USBデバイスの接続ポートにUSBデバイスが接続されている(USBコネクタが接続されている)場合、CPU(Central Processing Unit)に対して、1秒間あたり、例えば、3000乃至4000回(パーソナルコンピュータによって異なる)の割り込み処理を実行する。
【0003】
また、バッテリにより駆動可能な小型のパーソナルコンピュータにおいては、ユーザが自在に持ち運びをして、任意の場所で出来るだけ長時間に渡って使用することが出来るようにするために、低消費電力化が求められている。そこで、特開2000−10907に開示されているように、USBポートにUSBデバイスが接続されていない(コネクタ接続されていない)場合、USBホストコントローラの機能を停止する技術がある。この技術によると、USBホストコントローラの無駄な消費電力を抑えて、バッテリ駆動時における動作時間を延長することが出来る。
【0004】
【発明が解決しようとする課題】
パーソナルコンピュータにおいて、例えば、ストレージデバイスなどを装着するためのスロットをはじめとするUSBデバイスが、USBホストコントローラと接続され、予め制御基板上に設けられているような場合、そのUSBデバイスは、取り外すことが出来ないので、USBホストコントローラと常時接続されている状態である。従って、USBホストコントローラは、USBデバイスが使用されているか否かに関わらず、基板上のUSBデバイスを常に検知するので、CPUに対して、1秒間あたり、例えば、3000乃至4000回の割り込み処理を実行する。
【0005】
CPUには、消費電力の低減のために、複数の動作モードが設けられている。例えば、ペンティアム(登録商標)II、もしくはペンティアム(登録商標)IIIなどにおいては、C0、C1、C2、およびC3の4つの動作モードがある。C0はフルスピードで動作している状態だが、C1はAutoHALTというモード、C2がQuickStart、C3がDeepSleepというモードであり、C1よりC2、C2よりC3の方が消費電力は少ない。CPUがC3モードに入るには、CPUへの割り込みの頻度は、CPUの種類や、その周辺のシステムの形態にもよるが、例えば、1秒間に200回程度よりも少なくなければならない。
【0006】
従って、制御基板上にUSBデバイスが設けられている場合、CPUは、低消費電力モード(例えば、C3ステータス)に状態を変更することは出来ない。
【0007】
本発明はこのような状況に鑑みてなされたものであり、所定のデバイスの使用状態に基づいて、所定時間に供給される割り込み信号の回数に応じて遷移可能な低消費電力モードが定められている処理制御手段(処理制御部)に送出される割り込み信号をできるだけ少なくすることができるようにするものである。
【0008】
【課題を解決するための手段】
本発明の一側面の情報処理装置は、接続された所定のデバイスとの情報の授受を制御するデバイス制御部と、第1のデバイスとを有する情報処理装置であって、情報処理装置において実行される処理のうちの少なくとも一部を制御し、所定時間に供給される割り込み信号の回数に応じて遷移可能な低消費電力モードが定められている処理制御手段と、デバイス制御部と第1のデバイスとの電気的接続および切断を切り替える切り替え手段と、第1のデバイスが使用されている状態であるか否かを検出する検出手段と、検出手段による検出結果に基づいて、切り替え手段によるデバイス制御部と第1のデバイスとの電気的接続および切断の切り替えを制御する制御手段とを備え、デバイス制御部は、第1のデバイスを含むいずれかのデバイスとの接続を検出した場合、所定間隔で処理制御手段に割り込み信号を送出する。
【0011】
第1のデバイスには、他の第2のデバイスが接続可能であるものとすることができ、検出手段には、第1のデバイスに他の第2のデバイスが装着されているか否かに基づいて、第1のデバイスが使用されている状態であるか否かを検出させることができる。
【0013】
検出手段には、第1のデバイスに設けられている第2のデバイスと電気的に接続するための所定の端子の電位に基づいて、第 1 のデバイスが使用されている状態であるか否かを検出させるようにすることができる。
【0014】
ユーザの操作の入力を受ける入力手段と、入力手段により入力されたユーザの操作に基づいて、制御手段による切り替え手段による電気的接続の切り替えの制御を、常時接続状態に設定する設定手段とを更に備えさせるようにすることができる。
【0015】
デバイス制御部は、第1のデバイスとUSB規格を用いて接続されているものとすることができ、デバイス制御部は、USBホストコントローラであるものとすることができる。
【0016】
本発明の一側面の情報処理方法は、接続された所定のデバイスとの情報の授受を制御するデバイス制御部と、第1のデバイスと、デバイス制御部と第1のデバイスとの電気的接続および切断を切り替える切り替え部と、情報処理装置において実行される処理のうちの少なくとも一部を制御し、所定時間に供給される割り込み信号の回数に応じて遷移可能な低消費電力モードが定められている処理制御部とを有する情報処理装置の情報処理方法であって、第 1 のデバイスが使用されている状態であるか否かを検出する検出ステップと、検出ステップの処理による検出結果に基づいて、切り替え部によるデバイス制御部と第1のデバイスとの電気的接続および切断の切り替えを制御する制御ステップとを含み、デバイス制御部は、第1のデバイスを含むいずれかのデバイスとの接続を検出した場合、所定間隔で処理制御部に割り込み信号を送出する。
【0017】
本発明の一側面の情報処理方法は、接続された所定のデバイスとの情報の授受を制御するデバイス制御部と、第1のデバイスと、デバイス制御部と第1のデバイスとの電気的接続および切断を切り替える切り替え部と、情報処理装置において実行される処理のうちの少なくとも一部を制御し、所定時間に供給される割り込み信号の回数に応じて遷移可能な低消費電力モードが定められている処理制御部とを備える情報処理装置を制御するコンピュータが実行可能なプログラムであって、第 1 のデバイスが使用されている状態であるか否かを検出する検出ステップと、検出ステップの処理による検出結果に基づいて、切り替え部によるデバイス制御部と第1のデバイスとの電気的接続および切断の切り替えを制御する制御ステップとを含み、デバイス制御部は、第1のデバイスを含むいずれかのデバイスとの接続を検出した場合、所定間隔で処理制御部に割り込み信号を送出する処理をコンピュータに実行させる。
【0019】
本発明の一側面の情報処理装置および情報処理方法、並びにプログラムにおいては、情報処理装置は第1のデバイスを有し、デバイス制御部において、接続された所定のデバイスとの情報の授受が制御され、情報処理装置において実行される処理のうちの少なくとも一部が、所定時間に供給される割り込み信号の回数に応じて遷移可能な低消費電力モードが定められている処理制御手段(処理制御部)により制御され、デバイス制御部において、第1のデバイスを含むいずれかのデバイスとの接続が検出された場合、所定間隔で処理制御手段(処理制御部)に割り込み信号が送出され、デバイス制御部と第1のデバイスとの電気的接続および切断が切り替えられ、第1のデバイスが使用されている状態であるか否かの検出結果を基に、デバイス制御部と第1のデバイスとの電気的接続および切断の切り替えが制御される。
【0021】
【発明の実施の形態】
以下、図を参照して、本発明の実施の形態について説明する。
【0022】
図1乃至図4は、パーソナルコンピュータ1の外観を示している。
【0023】
パーソナルコンピュータ1は、基本的に、本体21と、本体21に対して開閉自在とされる表示部22により構成されている。図1は表示部22を本体21に対して開いた状態を示す外観斜視図である。図2は、本体21の平面図、図3は、本体21に設けられている後述するジョグダイヤル23の拡大図である。また、図4は、本体21に設けられているジョグダイヤル23の側面図である。
【0024】
本体21には、各種の文字や記号などを入力するとき操作されるキーボード24、LCD25に表示されるポインタ(マウスカーソル)を移動させるときなどに操作されるポインティングデバイスとしてのタッチパット26、および電源スイッチ27がその上面に設けられている。また、ジョグダイヤル23およびIEEE(Institute of Electrical and Electronics Engineers)1394ポート28等が、本体21の側面に設けられている。なお、タッチパット26に代えて、スティック式のポインティングデバイスを設けることも可能である。
【0025】
また、表示部22の正面には、画像を表示するLCD(Liquid Crystal Display)25、そして右上部には、電源ランプPL、電池ランプBL、必要に応じて設けられるメッセージランプML(図示せず)その他のLEDより成るランプが設けられている。更に、表示部22の上部中央部には、CCD(固体撮像素子)を備えるCCDビデオカメラ29を有する撮像部30、およびマイクロフォン31が設けられている。本体21の図1中の右上側にはCCDビデオカメラ29を操作するためのシャッタボタン32が設けられている。
【0026】
撮像部30は、回動自在に表示部22に固定されている。例えば、撮像部30は、使用者の操作により、CCDビデオカメラ29がパーソナルコンピュータ1を操作する使用者自身を撮像できる位置から、パーソナルコンピュータ1を操作する使用者の視線と同じ方向を撮像できる位置に回動される。
【0027】
次に、ジョグダイヤル23は、例えば、本体21上のキーボード24の図2中の右側に配置されているキーAおよびキーBの間に、その上面がキーAおよびキーBとほぼ同じ高さになるように取り付けられている。ジョグダイヤル23は、図3中の矢印aに示す回転操作に対応して所定の処理(例えば、画面のスクロールの処理)を実行し、同図中矢印bに示す移動操作に対応した処理(例えば、アイコンの選択の決定処理)を実行する。
【0028】
IEEE1394ポート28は、IEEE1394に規定されている規格に基づいた構造を有し、IEEE1394に規定されている規格に基づいたケーブルが接続される。
【0029】
次に、パーソナルコンピュータ1の内部の構成例について図5を参照して説明する。
【0030】
中央処理装置(CPU)51は、例えば、インテル(Intel)社製のペンティアム(登録商標)プロセッサ等で構成され、ホストバス52に接続されている。ホストバス52には、更に、ブリッジ53(いわゆる、ノースブリッジ)が接続されており、ブリッジ53は、AGP(Accelerated Graphics Port)50を有しているとともに、PCI(Peripheral Component Interconnect/Interface)バス56に接続されている。
【0031】
ブリッジ53は、例えば、インテル社製のAGP Host Bridge Controllerである440BXなどで構成されており、CPU51およびRAM(Random Access Memory)54(いわゆる、メインメモリ)等を制御する。更に、ブリッジ53は、AGP50を介して、ビデオコントローラ57を制御する。なお、このブリッジ53とブリッジ(いわゆる、サウスブリッジ(PCI−ISA Bridge))58とで、いわゆるチップセットが構成されている。
【0032】
ブリッジ53は、更に、キャッシュメモリ55とも接続されている。キャッシュメモリ55は、SRAM(Static RAM)などRAM54に比較して、より高速な書き込みまたは読み出しの動作を実行できるメモリで構成され、CPU51が使用するプログラムまたはデータをキャッシュする(一時的に記憶する)。
【0033】
なお、CPU51は、その内部に1次的な、キャッシュメモリ55に比較して、より高速に動作でき、CPU51自身が制御するキャッシュを有する。
【0034】
RAM54は、例えば、DRAM(Dynamic RAM)で構成され、CPU51が実行するプログラム、またはCPU51の動作に必要なデータを記憶する。具体的には、RAM54は、所定のタイミングでHDD67からロードされた、例えば、電子メールプログラム54A、オートパイロットプログラム54B、ジョグダイヤル状態監視プログラム54C、ジョグダイヤルドライバ54D、およびオペレーティングプログラム(OS)54E、コミュニケーションプログラム54F、ウェブブラウザ54G、およびその他のアプリケーションプログラム54H(後述するパワーパネル201、およびドライバ202を含む)を記憶する。
【0035】
電子メールプログラム54Aは、モデム75、公衆回線網5、インターネットサービスプロバイダ7、電子メールサーバ9、およびインターネット6を介して、通信文(電子メール)を授受するためのプログラムである。
【0036】
オートパイロットプログラム54Bは、予め設定された複数の処理(またはプログラム)などを、予め設定された順序で順次起動して、処理するプログラムである。
【0037】
ジョグダイヤル状態監視プログラム54Cは、上述した各アプリケーションプログラムから、ジョグダイヤル23に対応しているか否かの通知を受け取り、対応するアプリケーションがジョグダイヤル23に対応している場合、ジョグダイヤル23を操作することで何が行えるかをLCD25に表示させる。
【0038】
ジョグダイヤル状態監視プログラム54Cはまた、ジョグダイヤル23のイベント(ジョグダイヤル23が図3の矢印aに示す方向に回転される、または図3の矢印bに示す方向に押圧されるなどの操作)を検出し、検出したイベントに対応する処理を実行する。ジョグダイヤルドライバ54Dは、ジョグダイヤル23の操作に対応して各種機能を実行する。
【0039】
OS(Operating System)54Eは、例えばマイクロソフト社のいわゆるウィンドウズ(登録商標)95、ウィンドウズ(登録商標)98、ウィンドウズ(登録商標)2000、もしくは、ウィンドウズ(登録商標)ME、またはアップルコンピュータ社のいわゆるMac OS(登録商標)等に代表される、コンピュータの基本的な動作を制御するプログラムである。
【0040】
コミュニケーションプログラム54Fは、ピアツーピア通信のための処理を実行するとともに、その通信接続を確立するために、電子メールプログラム54Aを制御して、パーソナルコンピュータ1のIPアドレスが添付された電子メールを、通信相手に送信させたり、通信相手から送信されてきた所定の電子メールからIPアドレスを取得する。
【0041】
コミュニケーションプログラム54Fはまた、ウェブブラウザ54Gを制御して、ウェブブラウザ54Gの機能に基づく通信を行う。
【0042】
ウェブブラウザ54Gは、コミュニケーションプログラム54Fによる制御に従って、所定のウェブページのデータを閲覧する(表示部22に表示させる)ための処理を実行する。
【0043】
アプリケーションプログラム54Hは、例えば、後述するパワーパネル201、およびドライバ202などの各種アプリケーションプログラムやドライバなどにより構成される。パワーパネル201、およびドライバ202の処理については、後述する。
【0044】
ビデオコントローラ57は、AGP50を介してブリッジ53に接続されており、AGP50およびブリッジ53を介してCPU51から供給されるデータ(イメージデータまたはテキストデータなど)を受信して、受信したデータに対応するイメージデータを生成し、生成したイメージデータ、または受信したデータをそのまま、内蔵するビデオメモリに記憶する。ビデオコントローラ57は、表示部22のLCD25に、ビデオメモリに記憶されているイメージデータに対応する画像を表示させる。
【0045】
また、ビデオコントローラ57は、CCDビデオカメラ29から供給されたビデオデータを、PCIバス56を介して、RAM54に供給する。
【0046】
PCIバス56には、サウンドコントローラ64が接続されている。サウンドコントローラ64は、マイクロフォン31から音声を取り込み、その音声に対応するデータを生成して、RAM54に出力する。またサウンドコントローラ64は、スピーカ65を駆動して、スピーカ65に音声を出力させる。
【0047】
また、PCIバス56にはモデム75が接続されている。モデム75は、公衆回線網5に接続されており、公衆回線網5またはインターネット6を介する通信処理を実行する。
【0048】
PCカードスロットインターフェース111は、PCIバス56に接続され、スロット33に装着されたインターフェースカード112から供給されたデータを、CPU51またはRAM54に供給するとともに、CPU51から供給されたデータをインターフェースカード112に出力する。ドライブ113は、PCカードスロットインターフェース111およびインターフェースカード112を介して、PCIバス56に接続されている。
【0049】
ドライブ113は、装着されている磁気ディスク121、光ディスク122、光磁気ディスク123、または半導体メモリ124に記録されているデータを読み出し、読み出したデータを、インターフェースカード112、PCカードスロットインターフェース111、およびPCIバス56を介して、RAM54に供給する。また、CPU51の処理により生成されたデータを、ドライブ113に装着される磁気ディスク121、光ディスク122、光磁気ディスク123、または半導体メモリ124に記憶させることができる。
【0050】
また、PCIバス56にはブリッジ58(いわゆる、サウスブリッジ)も接続されている。ブリッジ58は、例えば、インテル社製のPIIX4Eなどで構成されており、IDE(Integrated Drive Electronics)コントローラ/コンフィギュレーションレジスタ59、IDEインターフェース61、およびUSBホストコントローラ68等を内蔵している。ブリッジ58は、IDEバス62に接続されるデバイス、またはISA/EIO(Industry Standard Architecture / Extended Input Output)バス63若しくはI/Oインターフェース69を介して接続されるデバイスの制御等、各種のI/O(Input / Output)を制御する。
【0051】
ブリッジ58のUSBホストコントローラ68には、USBポート107が接続され、各種USBデバイスが接続可能になされているとともに、USBバス131を介して、基板上に、USBメモリースティックスロット133が設けられている。USBバス131には、ハードウェアバススイッチ(S/W)132が設けられている。ハードウェアバススイッチ132は、EC130から供給される制御信号によってオンオフされ、USBバス131を電気的に接続もしくは切断する。
【0052】
USBホストコントローラ68は、USBポート107にUSBデバイスが接続されている場合、もしくは、USBバス131を介して、USBメモリースティックスロット133に電気的に接続されている場合(すなわち、ハードウェアバススイッチ132がオンされている場合)、USBデバイスが接続されている状態であるとして、CPU51に対して、例えば、1秒間に3000乃至4000回の割り込み処理を実行する。この場合、CPU51は、低消費電力モード(例えば、C3ステータス)に状態を変更することは出来ない。
【0053】
ここでは、CPU51がC0、C1、C2、およびC3の4つの動作モードを有するものとして説明するが、この動作モード、並びにそれぞれの動作モードに対応する割り込みの回数は、CPUおよびその周辺のシステムにより異なるので、この限りではない。
【0054】
ここでは、C0はフルスピードで動作している状態だが、C1はAutoHALTというモード、C2がQuickStart、C3がDeepSleepというモードであり、C1よりC2、C2よりC3の方が消費電力は少ないものとして説明する。このような低消費電力モードに状態を変更することにより、バッテリ74の持続時間を延ばすことが可能となる。CPU51が、C0乃至C3のうち、いずれの状態を取るかは、CPU51が実行する処理の状態によって決定され、例えば、C3モードに入るには、CPU51への割り込みが、1秒間に200回程度よりも少ない頻度でなければならないものとして説明する。
【0055】
ハードウェアバススイッチ132は、例えば、PCB(Print Circuit Board)リレー、リードリレー、もしくはウェットリレーなどの機械式リレースイッチや、トライアック、サイリスタ、フォトMOSリレー、もしくはフォトカプラなどの半導体リレー、あるいは、半導体スイッチなどで構成される。ハードウェアバススイッチ132は、a接点(ノーマルオープン)であっても、b接点(ノーマルクローズ)であっても良いが、故障時の動作を考慮すると、b接点であるほうが望ましい。
【0056】
IDEコントローラ/コンフィギュレーションレジスタ59は、いわゆるプライマリIDEコントローラとセカンダリIDEコントローラとの2つのIDEコントローラ、およびコンフィギュレーションレジスタ(configuration register)等から構成されている(いずれも図示せず)。
【0057】
プライマリIDEコントローラには、IDEバス62を介して、HDD67が接続されている。また、セカンダリIDEコントローラには、他のIDEバスに、図示しないCD ROMドライブまたはHDDなどの、いわゆるIDEデバイスが装着されたとき、その装着されたIDEデバイスが電気的に接続される。
【0058】
HDD67は、電子メールプログラム67A、オートパイロットプログラム67B、ジョグダイヤル状態監視プログラム67C、ジョグダイヤルドライバ67D、OS67E、コミュニケーションプログラム67F、ウェブブラウザ67G、およびその他のアプリケーションプログラム67H等を記録する。
【0059】
HDD67に記録されている電子メールプログラム67A乃至アプリケーションプログラム67H等は、RAM54に適宜ロードされる。
【0060】
ISA/EIOバス63には、更に、I/Oインターフェース69が接続されている。このI/Oインターフェース69は、EC(Embedded Controller:エンベディットコントローラ)130から構成され、その内部において、ROM70、RAM71、およびCPU72が相互に接続されている。
【0061】
ROM70は、IEEE1394インターフェースプログラム70A、LED制御プログラム70B、タッチパッド入力監視プログラム70C、キー入力監視プログラム70D、ウェイクアッププログラム70E、ジョグダイヤル状態監視プログラム70F、および、監視プログラム70G等を予め記憶している。CPU72は、IEEE1394インターフェースプログラム70A乃至監視プログラム70Gを実行する。
【0062】
IEEE1394インターフェースプログラム70Aは、IEEE1394ポート28を介して、IEEE1394の規格に準拠するデータ(パケットに格納されているデータ)を送受信する。LED制御プログラム70Bは、電源ランプPL、電池ランプBL、必要に応じて設けられるメッセージランプML、またはその他のLEDよりなるランプの点灯の制御を行う。タッチパッド入力監視プログラム70Cは、利用者の操作に対応したタッチパッド26からの入力を監視するプログラムである。
【0063】
キー入力監視プログラム70Dは、キーボード24またはその他のキースイッチからの入力を監視するプログラムである。ウェイクアッププログラム70Eは、ブリッジ58のタイマ回路(図示せず)から供給される現在時刻を示すデータに基づいて、予め設定された時刻になったかどうかをチェックして、設定された時刻になったとき、所定の処理(またはプログラム)等を起動するために、パーソナルコンピュータ1を構成する各チップの電源を管理するプログラムである。ジョグダイヤル状態監視プログラム70Fは、ジョグダイヤル23の回転型エンコーダが回転されたか否か、またはジョグダイヤル23が押されたか否かを常に監視するためのプログラムである。
【0064】
監視プログラム70Gは、USBメモリースティックスロット133の10本のピンのうち、所定のピン(ピン番号をnとする)の電位が、HiかLowかを監視するものであり、その処理の詳細については後述する。
【0065】
USBメモリースティックスロット133には、メモリースティック(商標)が装着可能である。メモリースティックは、本願出願人であるソニー株式会社によって開発されたフラッシュメモリカードの一種である。このメモリースティック131は、縦21.5×横50×厚さ2.8[mm]の小型薄型形状のプラスチックケース内に電気的に書換えや消去が可能な不揮発性メモリであるEEPROM(Electrically Erasable and Programmable Read Only Memory )の一種であるフラッシュメモリ素子を格納したものであり、10ピン端子を介して画像や音声、音楽等の各種データの書き込み及び読み出しが可能となっている。また、USBメモリースティックスロット133の10本のピンのうちn番目のピンは、信号線134を介して、EC130に接続されている。監視プログラム70Gは、信号線134の電位に基づき、USBメモリースティックスロット133のn番目のピンの電位が、HiかLowかを監視する。
【0066】
ROM70には更に、BIOS(Basic Input/Output System(基本入出力システム))70Hが書き込まれている。BIOS70Hは、OSまたはアプリケーションプログラムと周辺機器(タッチパッド26、キーボード24、またはHDD67等)との間でのデータの受け渡し(入出力)を制御する。
【0067】
RAM71は、LED制御、タッチパッド入力ステータス、キー入力ステータス、若しくは設定時刻用の各レジスタ、ジョグダイヤル状態監視用のI/Oレジスタ、IEEE1394I/Fレジスタ、または監視用レジスタ等を、レジスタ71A乃至71Gとして有している。例えば、LED制御レジスタには、ジョグダイヤル23が押されて、電子メールプログラム54Aが起動されたとき、所定の値が格納され、格納されている値に対応して、メッセージランプMLの点灯が制御される。キー入力ステータスレジスタには、ジョグダイヤル23が押圧されると、所定の操作キーフラグが格納される。設定時刻レジスタには、使用者によるキーボード24などの操作に対応して、所定の時刻が設定される。
【0068】
また、このI/Oインターフェース69には、図示せぬコネクタを介して、ジョグダイヤル23、タッチパッド26、キーボード24、IEEE1394ポート28、およびシャッタボタン32等が接続され、ジョグダイヤル23、タッチパッド26、キーボード24、またはシャッタボタン32それぞれに対する操作に対応した信号をISA/EIOバス63に出力する。また、I/Oインターフェース69は、IEEE1394ポート28を介して接続されている機器とのデータの送受信を制御する。更に、I/Oインターフェース69には、電源ランプPL、電池ランプBL、メッセージランプML、電源制御回路73、およびその他のLEDよりなるランプが接続されている。
【0069】
電源制御回路73は、内蔵バッテリ74またはAC電源に接続されており、各ブロックに、必要な電源を供給するとともに、内蔵バッテリ74または周辺装置のセカンドバッテリの充電のための制御を行う。また、I/Oインターフェース69は、電源をオンまたはオフするとき操作される電源スイッチ27を監視している。
【0070】
I/Oインターフェース69は、電源がオフの状態でも、内部に設けられた電源により、IEEE1394インターフェースプログラム70A乃至ジョグダイヤル状態監視プログラム70Fを実行する。すなわち、IEEE1394インターフェースプログラム70A乃至ジョグダイヤル状態監視プログラム70Fは、常時動作している。
【0071】
従って、電源スイッチ27がオフでCPU51がOS54Eを実行していない場合でも、I/Oインターフェース69は、ジョグダイヤル状態監視プログラム70Fを実行するので、例えば、省電力状態、または電源オフの状態で、ジョグダイヤル23が押圧されたとき、パーソナルコンピュータ1は、予め設定した所定のソフトウェアまたはスクリプトファイルの処理を起動する。
【0072】
このように、パーソナルコンピュータ1においては、ジョグダイヤル23がプログラマブルパワーキー(PPK)機能を有するので、専用のキーを設ける必要がない。
【0073】
図6は、メモリースティックの装着、もしくは抜去を検出する処理を説明するための第1の実施の形態を示す機能ブロック図である。
【0074】
パワーパネル(Power Panel)201は、OS54E上のアプリケーションであり、ユーザによる操作入力や、監視プログラム203から、ドライバ202を介して入力されるイベントやメッセージなどを基に、電源管理を行うものである。
【0075】
ドライバ202は、OS54E上のアプリケーションであるパワーパネル201と、EC130のCPU72が実行するアプリケーションである、後述する監視プログラム203とを通信させるためのドライバである。
【0076】
パワーパネル201およびドライバ202は、CPU51によって実行される。
【0077】
監視プログラム203は、図5を用いて説明した監視プログラム70Gに対応し、USBメモリースティックスロット133から入力されるn番目のピンの信号がHiであるかLowであるかを、ドライバ202を介して、パワーパネル201に出力したり、ドライバ202を介して、パワーパネル201から入力される制御信号に従って、ハードウェアバススイッチ132のオンオフを切り替える。監視プログラム203は、EC130のCPU72によって実行される。
【0078】
USBホストコントローラ68は、いずれかのUSBデバイスと電気的に接続されている場合、CPU51に対して、例えば、1秒間に3000乃至4000回程度の割り込み処理を実行する。この場合、CPU51は、低消費電力モード(例えば、C3ステータス)に状態を変更することは出来ない。
【0079】
ハードウェアバススイッチ132がオンされた場合、USBホストコントローラ68と、USBメモリースティックスロット133は、USBバス131を介して、電気的に接続される。すなわち、USBホストコントローラ68は、USBデバイスとしてのUSBメモリースティックスロット133を検出するので、他にUSBデバイスが接続されていなくても、CPU51に対する割り込み処理を実行する。
【0080】
ハードウェアバススイッチ132がオフされた場合、USBホストコントローラ68と、USBメモリースティックスロット133は、USBバス131を介して、電気的に切断される。すなわち、USBホストコントローラ68は、USBデバイスとしてのUSBメモリースティックスロット133を検出しないので、他にUSBデバイスが接続されていなければ、CPU51に対する割り込み処理を実行しない。
【0081】
次に、図7のフローチャートを参照して、メモリースティック装着検出処理1について説明する。
【0082】
なお、監視プログラム203は、初期状態において、メモリースティックがメモリースティックスロット133に装着されていない状態を検出しているので、ハードウェアバススイッチ132がオフ状態となるように制御している。
【0083】
ステップS1において、監視プログラム203は、メモリースティックスロット133のn番目のピンの電位の変化、すなわち、電位のHiからLowへの変化を検出したか否かを判断する。ここでは、メモリースティックが装着されていない場合、n番目のピンの電位はHiであり、メモリースティックが装着された場合、n番目のピンの電位はLowであるものとして説明するが、メモリースティック有り無しにおけるn番目のピンの論理は逆であってもかまわない。ステップS1において、n番目のピンの電位の変化を検出していないと判断された場合、n番目のピンの電位の変化を検出したと判断されるまで、ステップS1の処理が繰り返される。
【0084】
ステップS1において、n番目のピンの電位の変化が検出されたと判断された場合、ステップS2において、監視プログラム203は、メモリースティックがメモリースティックスロット133に装着されたことを検出する。
【0085】
ステップS3において、監視プログラム203は、メモリースティック装着イベントを、ドライバ202を介して、パワーパネル201に通達する。
【0086】
ステップS4において、パワーパネル201は、ハードウェアバススイッチ132のオンを指令するイベントを、ドライバ202を介して、監視プログラム203に通達する。
【0087】
ステップS5において、監視プログラム203は、ハードウェアバススイッチ132のオンを指令するイベントを、ドライバ202を介して、パワーパネル201から受信する。
【0088】
ステップS6において、監視プログラム203は、ハードウェアバススイッチ132をオンにするための制御信号を、ハードウェアバススイッチ132に出力する。
【0089】
ステップS7において、ハードウェアバススイッチ132は、監視プログラム203によって出力された制御信号に従って、オフ状態からオン状態に状態を変更し、USBバス131を電気的に接続する。
【0090】
ステップS7において、USBバス131が電気的に接続されたために、USBホストコントローラ68と、メモリースティックスロット133とは、電気的に接続された状態となる。従って、ステップS8において、USBホストコントローラ68は、メモリースティックスロット133ありを検出し、処理が終了される。
【0091】
USBホストコントローラ68は、メモリースティックスロット133にメモリースティックが装着されていない状態において、メモリースティックスロット133と電気的に接続されていない、すなわち、メモリースティックスロット133なしを検出している。すなわち、他にUSBデバイスが接続されていなければ、メモリースティックスロット133が接続されている場合に実行される、CPU51への割り込み処理が実行されないので、CUP51は、低消費電力モードに遷移することが可能である。
【0092】
そして、図7を用いて説明した処理により、メモリースティックスロット133にメモリースティックが装着された場合、監視プログラム203の処理により、ハードウェアバススイッチ132がオフ状態からオン状態に変更されるので、USBホストコントローラ68は、メモリースティックスロット133ありを検出する。従って、USBホストコントローラ68は、メモリースティックスロット133が基板上に実装されている状態であっても、メモリースティックスロット133にメモリースティックが装着されている場合にのみ、メモリースティックスロット133ありを検出することができる。従って、USBホストコントローラ68が、CPU51に対して、余分な割り込み処理を実行する必要がなくなるため、CPU51は、低消費電力モードに移行することができ、消費電力を抑えることができるので、例えば、バッテリ74を用いた駆動時間を延長することが可能となる。
【0093】
次に、図8のフローチャートを参照して、メモリースティック抜去検出処理1について説明する。
【0094】
なお、監視プログラム203は、初期状態において、メモリースティックがメモリースティックスロット133に装着されている状態を検出しているので、ハードウェアバススイッチ132がオン状態となるように制御している。
【0095】
ステップS21において、監視プログラム203は、メモリースティックスロット133のn番目のピンの電位の変化、すなわち、電位のLowからHiへの変化を検出したか否かを判断する。ここでは、メモリースティックが装着されていない場合、n番目のピンの電位はHiであり、メモリースティックが装着された場合、n番目のピンの電位はLowであるものとして説明するが、メモリースティック有り無しにおけるn番目のピンの論理は逆であってもかまわない。ステップS21において、n番目のピンの電位の変化を検出していないと判断された場合、n番目のピンの電位の変化を検出したと判断されるまで、ステップS21の処理が繰り返される。
【0096】
ステップS21において、n番目のピンの電位の変化を検出したと判断された場合、ステップS22において、監視プログラム203は、メモリースティックスロット133からの、メモリースティック抜去を検出する。
【0097】
ステップS23において、監視プログラム203は、メモリースティック抜去イベントを、ドライバ202を介して、パワーパネル201に通達する。
【0098】
ステップS24において、パワーパネル201は、ハードウェアバススイッチ132のオフを指令するイベントを、ドライバ202を介して、監視プログラム203に通達する。
【0099】
ステップS25において、監視プログラム203は、ハードウェアバススイッチ132のオフを指令するイベントを、ドライバ202を介して、パワーパネル201から受信する。
【0100】
ステップS26において、監視プログラム203は、ハードウェアバススイッチ132をオフにするための制御信号を、ハードウェアバススイッチ132に出力する。
【0101】
ステップS27において、ハードウェアバススイッチ132は、監視プログラム203によって出力された制御信号に従って、オン状態からオフ状態に状態を変更し、USBバス131を電気的に切断する。
【0102】
ステップS27において、USBバス131が電気的に切断されたために、USBホストコントローラ68と、メモリースティックスロット133とは、電気的に切断された状態となる。従って、ステップS28において、USBホストコントローラ68は、メモリースティックスロット133なしを検出し、処理が終了される。
【0103】
USBホストコントローラ68は、メモリースティックスロット133にメモリースティックが装着されている状態において、メモリースティックスロット133と電気的に接続され、メモリースティックスロット133ありを検出している。すなわち、USBホストコントローラ68は、他にUSBデバイスが接続されていなくても、メモリースティックスロット133が接続されていることにより、CPU51への割り込み処理を実行するので、CUP51は、低消費電力モードに遷移できない状態となる。
【0104】
そして、図8を用いて説明した処理により、メモリースティックスロット133からメモリースティックが抜き取られた場合、監視プログラム203の処理により、ハードウェアバススイッチ132がオン状態からオフ状態に変更されるので、USBホストコントローラ68は、メモリースティックスロット133なしを検出する。従って、USBホストコントローラ68は、メモリースティックスロット133が基板上に実装されている状態であっても、メモリースティックスロット133からメモリースティックが抜き取られた場合に、メモリースティックスロット133なしを検出することができる。
【0105】
従って、USBホストコントローラ68に他のUSBデバイスが接続されていなければ、USBホストコントローラ68が、CPU51に対して、余分な割り込み処理を実行する必要がなくなるため、CPU51は、低消費電力モードに移行することができ、消費電力を抑えることができるので、例えば、バッテリ74を用いた駆動時間を延長することが可能となる。
【0106】
図7および図8を用いて説明した処理を実行する場合、監視プログラム203の、メモリースティックの挿抜の検出結果により、ハードウェアバススイッチ132のオンオフが制御される。従って、メモリースティックがメモリースティックスロット133に装着されてから、メモリースティックとUSBホストコントローラ68との情報の授受が開始されるまでに、一定の時間が必要となる。従って、図7および図8を用いて説明した処理を実行する場合、メモリースティックスロット133が常時接続されている場合に対して、応答時間がかかってしまう。
【0107】
そこで、消費電力より、応答時間を優先したいユーザは、設定を、メモリースティックスロット133が常時接続されているモード(すなわち、ハードウェアバススイッチ132が常時オン状態であるモード)に変更することが可能であるようにすることができる。
【0108】
次に、図9のフローチャートを参照して、図7および図8を用いて説明した処理を実行する通常監視モードから、ハードウェアバススイッチ常時接続モードへ設定を変更する設定変更処理1について説明する。
【0109】
ユーザは、例えば、LCD25に表示される設定画面を参照して、モード変更のための操作を入力する。パワーパネル201は、ステップS41において、ユーザの操作入力を示す信号の入力を受け、ステップS42において、通常監視モードから、ハードウェアバススイッチ常時接続モードに設定変更するための操作が入力されたか否かを判断する。ステップS42において、通常監視モードから、ハードウェアバススイッチ常時接続モードに設定変更するための操作が入力されていないと判断された場合、設定変更するための操作が入力されたと判断されるまで、ステップS42の処理が繰り返される。
【0110】
ステップS42において、通常監視モードから、ハードウェアバススイッチ常時接続モードに設定変更するための操作が入力されたと判断された場合、ステップS43において、パワーパネル201は、ハードウェアバススイッチ132の常時オンを指令する(ハードウェアバススイッチ常時接続モードに設定変更する)イベントを、ドライバ202を介して、監視プログラム203に通達する。
【0111】
ステップS44において、監視プログラム203は、ドライバ202を介して、ハードウェアバススイッチ132の常時オンを指令するイベントを受信し、ハードウェアバススイッチ132の状態を検出する。
【0112】
ステップS45において、監視プログラム203は、ハードウェアバススイッチ132はオン状態であるか否かを判断する。
【0113】
ステップS45において、ハードウェアバススイッチ132はオン状態ではないと判断された場合、ステップS46において、監視プログラム203は、ハードウェアバススイッチ132をオンにするための制御信号を、ハードウェアバススイッチ132に出力する。
【0114】
ステップS47において、ハードウェアバススイッチ132は、監視プログラム203によって出力された制御信号に従って、オフ状態からオン状態に状態を変更し、USBバス131を電気的に接続する。
【0115】
ステップS47において、USBバス131が電気的に接続されたために、USBホストコントローラ68と、メモリースティックスロット133とは、電気的に接続された状態となる。従って、ステップS48において、USBホストコントローラ68は、メモリースティックスロット133ありを検出し、処理が終了される。
【0116】
ステップS45において、ハードウェアバススイッチ132はオン状態あると判断された場合、USBホストコントローラ68は、メモリースティックスロット133ありを検出している状態であるので、状態を変更する必要はない。従って、ステップS45において、ハードウェアバススイッチ132はオン状態あると判断された場合、処理が終了される。
【0117】
図9を用いて説明した処理により、現在の状態において、USBホストコントローラ68が、メモリースティックスロット133ありを検出している状態であっても、メモリースティックスロット133なしを検出している状態であっても、監視プログラム203によって、ハードウェアバススイッチ132はオン状態に固定され、ハードウェアバススイッチ常時接続モードに設定が変更される。
【0118】
次に、図10のフローチャートを参照して、設定がハードウェアバススイッチ常時接続モードである場合の、メモリースティック装着/抜去検出処理について説明する。
【0119】
図10を用いて説明する処理においては、その初期状態において、メモリースティックが装着されている状態であっても、装着されていない状態であっても、ハードウェアバススイッチ132はオン状態に固定されている。
【0120】
ステップS61において、監視プログラム203は、メモリースティックスロット133のn番目のピンの電位の変化を検出したか否かを判断する。ステップS61において、n番目のピンの電位の変化を検出していないと判断された場合、n番目のピンの電位の変化を検出したと判断されるまで、ステップS61の処理が繰り返される。
【0121】
ステップS61において、n番目のピンの電位の変化を検出したと判断された場合、ステップS62において、監視プログラム203は、n番目のピンの電位の変化に基づいて、メモリースティックスロット133へのメモリースティック装着、もしくはメモリースティックスロット133からのメモリースティック抜去を検出する。
【0122】
ステップS63において、監視プログラム203は、メモリースティック装着イベント、もしくは、メモリースティック抜去イベントを、ドライバ202を介して、パワーパネル201に通達して、処理が終了される。
【0123】
設定がハードウェアバススイッチ常時接続モードである場合、図10を用いて説明した処理により、メモリースティックの装着および抜去が検出され、パワーパネル201に通達されるが、この場合、図7および図8を用いて説明した処理を実行する場合より、応答時間が早くなる。
【0124】
次に、図11および図12のフローチャートを参照して、ハードウェアバススイッチ常時接続モードから、通常監視モードに設定を変更する場合の設定変更処理2について説明する。
【0125】
ユーザは、例えば、LCD25に表示される設定画面を参照して、モード変更のための操作を入力する。パワーパネル201は、ステップS71において、ユーザの操作入力を示す信号の入力を受け、ステップS72において、ハードウェアバススイッチ常時接続モードから、通常監視モードに設定変更するための操作が入力されたか否かを判断する。ステップS72において、ハードウェアバススイッチ常時接続モードから、通常監視モードに設定変更するための操作が入力されていないと判断された場合、設定変更するための操作が入力されたと判断されるまで、ステップS72の処理が繰り返される。
【0126】
ステップS72において、ハードウェアバススイッチ常時接続モードから、通常監視モードに設定変更するための操作が入力されたと判断された場合、ステップS73において、パワーパネル201は、通常監視モードへの設定変更イベントを、ドライバ202を介して、監視プログラム203に通達する。
【0127】
ステップS74において、パワーパネル201は、メモリースティックがメモリースティックスロット133に装着されているか否かを問い合わせるイベントを、ドライバ202を介して、監視プログラム203に通達する。
【0128】
ステップS75において、監視プログラム203は、ドライバ202を介して、問い合わせイベントを受信し、n番目のピンの電位がHiかLowかを検出する。
【0129】
ステップS76において、監視プログラム203は、ステップS75において検出されたn番目のピンの電位に基づいて、メモリースティックは装着されているか否かを判断する。
【0130】
ステップS76において、メモリースティックは装着されていないと判断された場合、ステップS77において、監視プログラム203は、メモリースティックなしのステータスを、ドライバ202を介して、パワーパネル201に返す。
【0131】
ステップS78において、パワーパネル201は、ハードウェアバススイッチ132のオフを指令するイベントを、監視プログラム203に通達する。
【0132】
ステップS79において、監視プログラム203は、ハードウェアバススイッチ132のオフを指令するイベントを受信し、ハードウェアバススイッチ132をオフにするための制御信号を生成して、ハードウェアバススイッチ132に出力する。
【0133】
ステップS80において、ハードウェアバススイッチ132は、監視プログラム203によって出力された制御信号に従って、オン状態からオフ状態に状態を変更し、USBバス131を電気的に切断する。
【0134】
ステップS80において、USBバス131が電気的に切断されたために、USBホストコントローラ68と、メモリースティックスロット133とは、電気的に切断された状態となる。従って、ステップS81において、USBホストコントローラ68は、メモリースティックスロット133なしを検出し、処理が終了される。
【0135】
ステップS76において、メモリースティックは装着されていると判断された場合、ステップS82において、監視プログラム203は、メモリースティックありのステータスを、ドライバ202を介して、パワーパネル201に返して、処理が終了される。
【0136】
図11および図12を用いて説明した処理により、メモリースティックスロット133にメモリースティックが装着されている状態であるか否かが、監視プログラム203によって検出され、その状態に基づいて、ハードウェアバススイッチ132のオンオフが決定されて、ハードウェアバススイッチ常時接続モードから、通常監視モードに設定が変更される。
【0137】
図13は、メモリースティックの装着、もしくは抜去を検出する処理を説明するための第2の実施の形態を示す機能ブロック図である。なお、図6における場合と対応する部分には同一の符号を付してあり、その説明は適宜省略する。
【0138】
図13の機能ブロック図においては、監視プログラム211が、第1の実施の形態におけるパワーパネル201のように、CPU51において実行されるプログラムと情報を授受することなく、メモリースティックスロット133にメモリースティックが装着されているか否かを判断し、ハードウェアバススイッチ132のオンオフを制御することが出来るようになされている。換言すれば、第2の実施の形態においては、第1の実施の形態において説明したパワーパネル201および監視プログラム203が実行する処理を、監視プログラム211のみで実行するようにするものである。
【0139】
次に、図14のフローチャートを参照して、メモリースティック装着検出処理2について説明する。
【0140】
なお、監視プログラム211は、初期状態において、メモリースティックがメモリースティックスロット133に装着されていない状態を検出しているので、ハードウェアバススイッチ132がオフ状態となるように制御している。
【0141】
ステップS91において、監視プログラム211は、メモリースティックスロット133のn番目のピンの電位の変化、すなわち、電位のHiからLowへの変化を検出したか否かを判断する。ここでは、メモリースティックなしの場合、n番目のピンの電位はHiであり、メモリースティックが装着された場合、n番目のピンの電位はLowであるものとして説明するが、メモリースティック有り無しにおけるn番目のピンの論理は逆であってもかまわない。ステップS91において、n番目のピンの電位の変化を検出していないと判断された場合、n番目のピンの電位の変化を検出したと判断されるまで、ステップS91の処理が繰り返される。
【0142】
ステップS91において、n番目のピンの電位の変化を検出したと判断された場合、ステップS92において、監視プログラム211は、メモリースティックがメモリースティックスロット133に装着されたことを検出する。
【0143】
ステップS93において、監視プログラム211は、ハードウェアバススイッチ132をオンにするための制御信号を、ハードウェアバススイッチ132に出力する。
【0144】
ステップS94において、ハードウェアバススイッチ132は、監視プログラム211によって出力された制御信号に従って、オフ状態からオン状態に状態を変更し、USBバス131を電気的に接続する。
【0145】
ステップS94において、USBバス131が電気的に接続されたために、USBホストコントローラ68と、メモリースティックスロット133とは、電気的に接続された状態となる。従って、ステップS95において、USBホストコントローラ68は、メモリースティックスロット133ありを検出し、処理が終了される。
【0146】
USBホストコントローラ68は、メモリースティックスロット133にメモリースティックが装着されていない状態において、メモリースティックスロット133と電気的に接続されていない、すなわち、メモリースティックスロット133なしを検出している。すなわち、メモリースティックスロット133が接続されている場合に実行される、CPU51への割り込み処理が実行されないので、CUP51は、低消費電力モードに遷移することが可能である。
【0147】
そして、図14を用いて説明した処理により、図7を用いて説明した場合と同様に、メモリースティックスロット133にメモリースティックが装着された場合、監視プログラム211の処理により、ハードウェアバススイッチ132がオフ状態からオン状態に変更されるので、USBホストコントローラ68は、メモリースティックスロット133ありを検出する。
【0148】
従って、図7を用いて説明した場合と同様に、USBホストコントローラ68は、メモリースティックスロット133が基板上に実装されている状態であっても、メモリースティックスロット133にメモリースティックが装着されている場合にのみ、メモリースティックスロット133ありを検出することができる。従って、メモリースティックスロット133にメモリースティックが装着されていない状態、かつ、USBホストコントローラ68に他のUSBデバイスが接続されていない場合、USBホストコントローラ68が、CPU51に対して、余分な割り込み処理を実行する必要がなくなるため、CPU51は、低消費電力モードに移行することができ、消費電力を抑えることができるので、例えば、バッテリ74を用いた駆動時間を延長することが可能となる。
【0149】
次に、図15のフローチャートを参照して、メモリースティック抜去検出処理2について説明する。
【0150】
なお、監視プログラム211は、初期状態において、メモリースティックがメモリースティックスロット133に装着されている状態を検出しているので、ハードウェアバススイッチ132がオン状態となるように制御している。
【0151】
ステップS101において、監視プログラム211は、メモリースティックスロット133のn番目のピンの電位の変化、すなわち、電位のLowからHiへの変化を検出したか否かを判断する。ここでは、メモリースティックなしの場合、n番目のピンの電位はHiであり、メモリースティックが装着された場合、n番目のピンの電位はLowであるものとして説明するが、メモリースティック有り無しにおけるn番目のピンの論理は逆であってもかまわない。ステップS101において、n番目のピンの電位の変化を検出していないと判断された場合、n番目のピンの電位の変化を検出したと判断されるまで、ステップS101の処理が繰り返される。
【0152】
ステップS101において、n番目のピンの電位の変化を検出したと判断された場合、ステップS102において、監視プログラム211は、メモリースティックスロット133からの、メモリースティック抜去を検出する。
【0153】
ステップS103において、監視プログラム211は、ハードウェアバススイッチ132をオフにするための制御信号を、ハードウェアバススイッチ132に出力する。
【0154】
ステップS104において、ハードウェアバススイッチ132は、監視プログラム211によって出力された制御信号に従って、オン状態からオフ状態に状態を変更し、USBバス131を電気的に切断する。
【0155】
ステップS104において、USBバス131が電気的に切断されたために、USBホストコントローラ68と、メモリースティックスロット133とは、電気的に切断された状態となる。従って、ステップS105において、USBホストコントローラ68は、メモリースティックスロット133なしを検出し、処理が終了される。
【0156】
USBホストコントローラ68は、メモリースティックスロット133にメモリースティックが装着されている状態において、メモリースティックスロット133と電気的に接続され、メモリースティックスロット133ありを検出している。すなわち、USBホストコントローラ68は、メモリースティックスロット133が接続されている場合に実行される、CPU51への割り込み処理を実行するので、CUP51は、低消費電力モードに遷移できない状態である。
【0157】
そして、図15を用いて説明した処理により、図8を用いて説明した場合と同様に、メモリースティックスロット133からメモリースティックが抜き取られた場合、監視プログラム211の処理により、ハードウェアバススイッチ132がオン状態からオフ状態に変更されるので、USBホストコントローラ68は、メモリースティックスロット133なしを検出する。従って、メモリースティックスロット133が基板上に実装されている状態であっても、USBホストコントローラ68は、メモリースティックスロット133にメモリースティックが抜き取られた場合には、メモリースティックスロット133なしを検出することができる。従って、メモリースティックスロット133にメモリースティックが装着されていない状態、かつ、USBホストコントローラ68に他のUSBデバイスが接続されていない場合、USBホストコントローラ68が、CPU51に対して、余分な割り込み処理を実行する必要がなくなるため、CPU51は、低消費電力モードに移行することができ、消費電力を抑えることができるので、例えば、バッテリ74を用いた駆動時間を延長することが可能となる。
【0158】
図14および図15を用いて説明した処理を実行する場合、監視プログラム211の、メモリースティックの挿抜の検出結果により、ハードウェアバススイッチ132のオンオフが制御される。従って、メモリースティックがメモリースティックスロット133に装着されてから、メモリースティックとUSBホストコントローラ68との情報の授受が開始されるまでに、一定の時間が必要となる。消費電力より、応答時間を優先したいユーザは、設定を、メモリースティックスロット133が常時接続されているモード(すなわち、ハードウェアバススイッチ132が常時オン状態であるモード)変更することが可能である。
【0159】
次に、図16のフローチャートを参照して、図14および図15を用いて説明した処理を実行する通常監視モードから、ハードウェアバススイッチ常時接続モードへ設定を変更する設定変更処理3について説明する。
【0160】
ユーザは、例えば、LCD25に表示される設定画面を参照して、モード変更のための操作を入力する。監視プログラム211は、ステップS111において、ユーザの操作入力を示す信号の入力を受け、ステップS112において、通常監視モードから、ハードウェアバススイッチ常時接続モードに設定変更するための操作が入力されたか否かを判断する。ステップS112において、通常監視モードから、ハードウェアバススイッチ常時接続モードに設定変更するための操作が入力されていないと判断された場合、設定変更するための操作が入力されたと判断されるまで、ステップS112の処理が繰り返される。
【0161】
ステップS112において、通常監視モードから、ハードウェアバススイッチ常時接続モードに設定変更するための操作が入力されたと判断された場合、ステップS113において、監視プログラム211は、常時接続モードに、設定を変更する。
【0162】
ステップS114において、監視プログラム211は、ハードウェアバススイッチ132の状態を検出する。
【0163】
ステップS115において、監視プログラム211は、ハードウェアバススイッチ132はオン状態であるか否かを判断する。
【0164】
ステップS115において、ハードウェアバススイッチ132はオン状態ではないと判断された場合、ステップS116において、監視プログラム211は、ハードウェアバススイッチ132をオンにするための制御信号を、ハードウェアバススイッチ132に出力する。
【0165】
ステップS117において、ハードウェアバススイッチ132は、監視プログラム211によって出力された制御信号に従って、オフ状態からオン状態に状態を変更し、USBバス131を電気的に接続する。
【0166】
ステップS117において、USBバス131が電気的に接続されたために、USBホストコントローラ68と、メモリースティックスロット133とは、電気的に接続された状態となる。従って、ステップS118において、USBホストコントローラ68は、メモリースティックスロット133ありを検出し、処理が終了される。
【0167】
ステップS115において、ハードウェアバススイッチ132はオン状態あると判断された場合、USBホストコントローラ68は、メモリースティックスロット133ありを検出している状態であるので、状態を変更する必要はない。従って、ステップS115において、ハードウェアバススイッチ132はオン状態あると判断された場合、処理が終了される。
【0168】
図16を用いて説明した処理により、図9を用いて説明した場合と同様に、現在の状態において、USBホストコントローラ68が、メモリースティックスロット133ありを検出している状態であっても、メモリースティックスロット133なしを検出している状態であっても、監視プログラム211によって、ハードウェアバススイッチ132はオン状態に固定され、ハードウェアバススイッチ常時接続モードに設定が変更される。
【0169】
なお、設定がハードウェアバススイッチ常時接続モードである場合、メモリースティックの装着、もしくは抜去が検出されても、監視プログラム211によって、ハードウェアバススイッチ132はオン状態に固定され変更されることはない。この場合、図14および図15を用いて説明した処理を実行する場合より、応答時間が早くなる。
【0170】
次に、図17のフローチャートを参照して、ハードウェアバススイッチ常時接続モードから、通常監視モードに設定を変更する場合の設定変更処理4について説明する。
【0171】
ユーザは、例えば、LCD25に表示される設定画面を参照して、モード変更のための操作を入力する。監視プログラム211は、ステップS131において、ユーザの操作入力を示す信号の入力を受け、ステップS132において、ハードウェアバススイッチ常時接続モードから、通常監視モードに設定変更するための操作が入力されたか否かを判断する。ステップS132において、ハードウェアバススイッチ常時接続モードから、通常監視モードに設定変更するための操作が入力されていないと判断された場合、設定変更するための操作が入力されたと判断されるまで、ステップS132の処理が繰り返される。
【0172】
ステップS132において、ハードウェアバススイッチ常時接続モードから、通常監視モードに設定変更するための操作が入力されたと判断された場合、ステップS133において、監視プログラム211は、通常監視モードに、設定を変更する。
【0173】
ステップS134において、監視プログラム211は、n番目のピンの電位がHiかLowかを検出する。
【0174】
ステップS135において、監視プログラム211は、ステップS134において検出されたn番目のピンの電位に基づいて、メモリースティックは装着されているか否かを判断する。
【0175】
ステップS135において、メモリースティックは装着されていないと判断された場合、ステップS136において、監視プログラム211は、ハードウェアバススイッチ132をオフにするための制御信号を生成して、ハードウェアバススイッチ132に出力する。
【0176】
ステップS137において、ハードウェアバススイッチ132は、監視プログラム211によって出力された制御信号に従って、オン状態からオフ状態に状態を変更し、USBバス131を電気的に切断する。
【0177】
ステップS137において、USBバス131が電気的に切断されたために、USBホストコントローラ68と、メモリースティックスロット133とは、電気的に切断された状態となる。従って、ステップS138において、USBホストコントローラ68は、メモリースティックスロット133なしを検出し、処理が終了される。
【0178】
ステップS135において、メモリースティックは装着されていると判断された場合、ハードウェアバススイッチ132は、その状態を変更する必要はない。従って、ステップS135において、メモリースティックは装着されていると判断された場合、処理が終了される。
【0179】
図17を用いて説明した処理により、監視プログラム211によってメモリースティックスロット133にメモリースティックが装着されている状態であるか否かが検出され、ハードウェアバススイッチ132のオンオフが決定されて、ハードウェアバススイッチ常時接続モードから、通常監視モードに設定が変更される。
【0180】
以上説明した処理により、メモリースティックスロット133が実際に動作している(使用されている)か否か、すなわち、メモリースティックが装着されているか否かが検出される。そして、その検出結果を基に、USBホストコントローラ68に、メモリースティックスロット133が接続されていること、もしくは、メモリースティックスロット133が接続されていないことを検出させるために、ハードウェアバススイッチ132のオンオフが制御される。従って、簡単な構成で、確実に、制御基板上に設けられたUSBデバイスであるメモリースティックスロット133が実際に使用されていない場合に、メモリースティックスロット133を取り外すことなく、USBホストコントローラ68に、メモリースティックスロット133が接続されていないことを検出させることが可能となる。
【0181】
このため、USBホストコントローラ68に他のUSBデバイスが接続されていない状態で、メモリースティックスロット133が実際に使用されていない場合には、USBホストコントローラ68は、CPU51に対する割り込み処理を行わないので、CPU51は、低消費電力モードに移行することが可能となる。
【0182】
更に、メモリースティックスロット133が実際に使用されていない場合、メモリースティックスロット133は、電気的に切断されるので、メモリースティックスロット133に対する電源の供給も中止される。従って、装置全体の消費電力が低減される。
【0183】
なお、第2の実施の形態においては、第1の実施の形態を用いて説明した場合と比較して、CPU51とEC130のCPU72との情報の授受を必要としない。本発明は、CPU51およびCPU72の処理能力などによって、適した形態を用いて実現することが可能である。
【0184】
また、第2の実施の形態において、EC130のCPU72が実行するとして説明した処理を、CPU51に実行させるようにしても良い。
【0185】
なお、本発明の第1の実施の形態、および第2の実施の形態においては、所定のピンの電位を検出することによって、メモリースティックスロット133にメモリースティックが装着されているか否かが検出されたが、例えば、機械的なスイッチや、光学センサ、その他の手段を用いて、メモリースティックが装着されているか否かを検出することができるのは言うまでもない。
【0186】
また、第1の実施の形態および第2の実施の形態においては、USBデバイスとして、メモリースティックスロット133を用いて説明したが、メモリースティック以外のデバイスを装着するためのスロットが基板上に設けられている場合や、他のUSBデバイスが、直接基板に接続されている場合など、あらゆる取り外し不可能なUSBデバイスが設けられている場合において、本発明を適用することが可能である。
【0187】
例えば、いわゆるメディアカードと称されるSDメモリーカード(商標)や、スマートメディア(商標)、あるいは、コンパクトフラッシュ(登録商標)などをはじめとする各種半導体メモリ、あるいは、これらの半導体メモリにコントローラモジュールを内蔵させた記憶装置を装着するためのスロットを、基板上に設けた場合においても、本発明は適用可能である。
【0188】
それ以外にも、例えば、LAN(Local area network)などの各種ネットワークを構築するためのネットワークカード、Bloothoothなどを利用した無線通信カードを装着するためのスロットを、基板上に設けた場合においても、本発明は適用可能である。あるいは、ネットワークカードや無線通信カードなどと同様の処理を実行可能でカードの形状を持たないネットワークモジュールもしくは無線通信モジュールなどが、予め制御基板に設けられている場合においても、それらのモジュールが使用状態であるか否かを検出し、その検出結果を基に、ハードウェアバススイッチをオンオフ制御することにより、同様の効果を得ることが可能であることは言うまでもない。
【0189】
更に、GPS(Global Positioning System)衛星からの電波を受信するGPSカード(モジュール)、例えばCCD(Charge-Coupled Devices)などを内蔵することによって、画像を撮像することが可能なカメラカード(モジュール)、指紋の画像情報を撮像するためのCCDおよび指を触れるための窓などを有し、指紋情報を取得することが可能な指紋照合カード(モジュール)など、さまざまな処理を実行することが可能なモジュール、あるいはカードを装着するためのスロットを、基板上に設けた場合においても、本発明は適用可能である。
【0190】
また、USBデバイス以外にも、所定の着脱可能なデバイスを装着もしくは接続するためのコネクタやスロットなどにおいても、本発明を適用可能である。
【0191】
また、第1の実施の形態および第2の実施の形態においては、パーソナルコンピュータ1を例として説明したが、例えば、PDA(Personal Digital(Data) Assistants)、携帯型電話機、PHS(Personal Handyphone System)、あるいは、カーナビゲーションシステムを始めとして、USBデバイスを接続することが可能なさまざまな装置において、本発明は適用可能である。
【0192】
上述した一連の処理を実行させるためのソフトウェアは、そのソフトウェアを構成するプログラムが、専用のハードウェアに組み込まれているコンピュータ、または、各種のプログラムをインストールすることで、各種の機能を実行することが可能な、例えば汎用のパーソナルコンピュータなどに、記録媒体からインストールされる。
【0193】
この記録媒体は、図5に示すように、コンピュータとは別に、ユーザにプログラムを提供するために配布される、プログラムが記録されている磁気ディスク121(フレキシブルディスクを含む)、光ディスク122(CD-ROM(Compact Disk-Read Only Memory),DVD(Digital Versatile Disk)を含む)、光磁気ディスク123(MD(Mini-Disk)(商標)を含む)、もしくは半導体メモリ124などよりなるパッケージメディアなどにより構成される。
【0194】
また、本明細書において、プログラムを記述するステップは、記載された順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理をも含むものである。
【0195】
【発明の効果】
本発明の一側面の情報処理装置、および、情報処理方法、並びにプログラムによれば、第 1 のデバイスが使用されている状態であるか否かに基づいて、第 1 のデバイスとデバイス制御部との接続の切り替えが制御され、デバイス制御部においては、いずれかのデバイスとの接続が検出されたとき、所定時間に供給される割り込み信号の回数に応じて遷移可能な低消費電力モードが定められている処理制御手段(処理制御部)への割り込み信号が送出される。これにより、例えば、コントローラにUSB機器が接続されている場合に主制御装置に対して割り込み処理を行うようになされている装置において、他にUSB機器が接続されていないときに、不必要な割り込み処理を行わせないようにすることが出来るので、主制御装置が低電力モードに移行することが可能になる。また、スロットが使用されていない状態において、スロットが電気的に切断されるので、スロットに対して不必要な電力供給を行わないようにすることが出来る。
【図面の簡単な説明】
【図1】図1のパーソナルコンピュータの外観斜視図である。
【図2】図1のパーソナルコンピュータの本体の平面図である。
【図3】図1のパーソナルコンピュータのジョグダイヤル付近の拡大図である。
【図4】図1のパーソナルコンピュータの右側面の構成を示す右側面図である。
【図5】図1のパーソナルコンピュータの内部の構成例を示すブロック図である。
【図6】本発明の第1の実施の形態について説明するための機能ブロック図である。
【図7】メモリースティック装着検出処理1について説明するためのフローチャートである。
【図8】メモリースティック抜去検出処理1について説明するためのフローチャートである。
【図9】設定変更処理1について説明するためのフローチャートである。
【図10】メモリースティック装着/抜去検出処理について説明するためのフローチャートである。
【図11】設定変更処理2について説明するためのフローチャートである。
【図12】設定変更処理2について説明するためのフローチャートである。
【図13】本発明の第2の実施の形態について説明するための機能ブロック図である。
【図14】メモリースティック装着検出処理2について説明するためのフローチャートである。
【図15】メモリースティック抜去検出処理2について説明するためのフローチャートである。
【図16】設定変更処理3について説明するためのフローチャートである。
【図17】設定変更処理4について説明するためのフローチャートである。
【符号の説明】
1 パーソナルコンピュータ, 51 CPU, 68 USSBホストコントローラ, 72 EC, 74 バッテリ, 131 USBバス, 132 ハードウェアバススイッチ, 133 USBメモリースティックスロット, 201 パワーパネル, 203,211 監視プログラム[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an information processing apparatus, an information processing method, and a program.An interrupt signal sent to a processing control means (processing control unit) in which a low power consumption mode that can be shifted according to the number of interrupt signals supplied for a predetermined time is determined based on the usage state of a predetermined device. It has been made to be as small as possible,The present invention relates to an information processing device, an information processing method, and a program.
[0002]
[Prior art]
In a personal computer capable of connecting a USB (Universal Serial Bus) device, a connection port of the USB device is connected to a USB host controller. When a USB device is connected to a connection port of a USB device (a USB connector is connected), the USB host controller is connected to a CPU (Central Processing Unit), for example, 3000 to 4000 times per second ( (Depending on personal computer) Interrupt processing is executed.
[0003]
In addition, in a small personal computer that can be driven by a battery, the user can freely carry it and use it in an arbitrary place for as long a time as possible. It has been demanded. Therefore, as disclosed in Japanese Patent Laid-Open No. 2000-10907, there is a technique for stopping the function of the USB host controller when a USB device is not connected to a USB port (not connected to a connector). According to this technology, it is possible to extend the operating time when the battery is driven while suppressing unnecessary power consumption of the USB host controller.
[0004]
[Problems to be solved by the invention]
In a personal computer, for example, when a USB device such as a slot for mounting a storage device is connected to a USB host controller and provided on the control board in advance, the USB device should be removed. Therefore, the USB host controller is always connected. Therefore, since the USB host controller always detects the USB device on the board regardless of whether the USB device is used or not, the CPU performs interrupt processing, for example, 3000 to 4000 times per second for the CPU. Execute.
[0005]
The CPU is provided with a plurality of operation modes in order to reduce power consumption. For example, in Pentium (registered trademark) II or Pentium (registered trademark) III, there are four operation modes of C0, C1, C2, and C3. Although C0 is operating at full speed, C1 is a mode called AutoHALT, C2 is a QuickStart mode, C3 is a DeepSleep mode, and C2 is less power than C1 and C3 is less power than C2. In order for the CPU to enter the C3 mode, the frequency of interruption to the CPU must be less than about 200 times per second, for example, depending on the type of CPU and the form of the surrounding system.
[0006]
Therefore, when the USB device is provided on the control board, the CPU cannot change the state to the low power consumption mode (for example, C3 status).
[0007]
The present invention has been made in view of such a situation,An interrupt signal sent to a processing control means (processing control unit) in which a low power consumption mode that can be shifted according to the number of interrupt signals supplied for a predetermined time is determined based on the usage state of a predetermined device. It is to be able to reduce as much as possible.
[0008]
[Means for Solving the Problems]
An information processing apparatus according to an aspect of the present invention is an information processing apparatus that includes a device control unit that controls transmission and reception of information with a predetermined device connected, and a first device, and is executed in the information processing apparatus. Processing control means for controlling at least a part of the processing to be performed and in which a low power consumption mode capable of transitioning according to the number of interrupt signals supplied for a predetermined time is defined; a device control unit; and a first device Switching means for switching between electrical connection and disconnection with the device, detection means for detecting whether or not the first device is in use, and a device control unit by the switching means based on the detection result by the detection means And control means for controlling switching between electrical connection and disconnection between the first device and the first device, wherein the device control unit includes any device including the first device; When detecting the connection, and sends an interrupt signal to the processing control means at predetermined intervals.
[0011]
The first device can be connected to another second device, and the detection means is based on whether or not the second device is attached to the first device. Thus, it is possible to detect whether or not the first device is being used.
[0013]
Detection means includePotential of a predetermined terminal for electrical connection with a second device provided in the first deviceOn the basis of the,First 1 DevicesIt can be made to detect whether it is the state currently used.
[0014]
An input unit that receives an input of a user operation and a control unit based on the user operation input by the input unitControl of switching of electrical connection by switching meansCan be further provided with setting means for setting to a constantly connected state.
[0015]
Device controllerIsFirst deviceConnect using USB standardDevice controller that can beCan be a USB host controller.
[0016]
An information processing method according to one aspect of the present invention includes a device control unit that controls transmission / reception of information to / from a connected predetermined device, a first device, an electrical connection between the device control unit and the first device, and A switching unit that switches disconnection and a low power consumption mode that controls at least a part of processing executed in the information processing apparatus and that can transition according to the number of interrupt signals supplied during a predetermined time period are defined. An information processing method for an information processing apparatus having a processing control unit, 1 A detection step for detecting whether or not the device is in use, and electrical connection and disconnection between the device control unit and the first device by the switching unit based on the detection result by the processing of the detection step When the device control unit detects connection with any device including the first device, the device control unit sends an interrupt signal to the processing control unit at a predetermined interval.
[0017]
An information processing method according to one aspect of the present invention includes a device control unit that controls transmission / reception of information to / from a connected predetermined device, a first device, an electrical connection between the device control unit and the first device, and A switching unit that switches disconnection and a low power consumption mode that controls at least a part of processing executed in the information processing apparatus and that can transition according to the number of interrupt signals supplied during a predetermined time period are defined. A program that can be executed by a computer that controls an information processing apparatus including a processing control unit; 1 A detection step for detecting whether or not the device is in use, and electrical connection and disconnection between the device control unit and the first device by the switching unit based on the detection result by the processing of the detection step A control step for controlling switching, and when the device control unit detects a connection with any device including the first device, the device executes a process of sending an interrupt signal to the process control unit at a predetermined interval Let
[0019]
In the information processing apparatus, the information processing method, and the program according to one aspect of the present invention, the information processing apparatus includes the first device, and the device control unit controls transmission / reception of information with a predetermined connected device. A processing control means (processing control unit) in which a low power consumption mode in which at least a part of processing executed in the information processing apparatus can transition according to the number of interrupt signals supplied in a predetermined time is defined When a connection with any device including the first device is detected in the device control unit, an interrupt signal is sent to the processing control unit (processing control unit) at a predetermined interval, and the device control unit Based on the detection result of whether or not the first device is in use, the electrical connection and disconnection with the first device is switched. Controller and switching of the electrical connection and disconnection of the first device is controlled.
[0021]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[0022]
1 to 4 show the appearance of the
[0023]
The
[0024]
The
[0025]
Further, an LCD (Liquid Crystal Display) 25 for displaying an image is displayed on the front of the display unit 22, and a power lamp PL, a battery lamp BL, and a message lamp ML (not shown) provided as necessary on the upper right part. A lamp made of other LEDs is provided. Furthermore, an imaging unit 30 having a CCD video camera 29 equipped with a CCD (solid-state imaging device) and a microphone 31 are provided in the upper central portion of the display unit 22. A shutter button 32 for operating the CCD video camera 29 is provided on the upper right side of the
[0026]
The imaging unit 30 is fixed to the display unit 22 so as to be rotatable. For example, the imaging unit 30 is capable of imaging the same direction as the line of sight of the user operating the
[0027]
Next, the
[0028]
The
[0029]
Next, an internal configuration example of the
[0030]
The central processing unit (CPU) 51 is composed of, for example, a Pentium (registered trademark) processor manufactured by Intel, and is connected to the host bus 52. Further, a bridge 53 (so-called north bridge) is connected to the host bus 52, and the
[0031]
The
[0032]
The
[0033]
Note that the CPU 51 has a cache that can operate at a higher speed than the
[0034]
The
[0035]
The
[0036]
The autopilot program 54B is a program for sequentially starting and processing a plurality of preset processes (or programs) in a preset order.
[0037]
The jog dial state monitoring program 54C receives a notification from each application program as to whether or not it corresponds to the
[0038]
The jog dial state monitoring program 54C also detects an event of the jog dial 23 (an operation in which the
[0039]
The OS (Operating System) 54E is, for example, a so-called Windows (registered trademark) 95, Windows (registered trademark) 98, Windows (registered trademark) 2000, or Windows (registered trademark) ME of Microsoft Corporation, or a so-called Mac of Apple Computer Corporation. It is a program for controlling basic operations of a computer, typified by OS (registered trademark).
[0040]
The
[0041]
The
[0042]
The web browser 54G executes processing for browsing data of a predetermined web page (displaying on the display unit 22) according to control by the
[0043]
The application program 54H includes, for example, various application programs and drivers such as a
[0044]
The video controller 57 is connected to the
[0045]
Further, the video controller 57 supplies the video data supplied from the CCD video camera 29 to the
[0046]
A
[0047]
A
[0048]
The PC
[0049]
The
[0050]
A bridge 58 (so-called south bridge) is also connected to the
[0051]
A
[0052]
The
[0053]
Here, the CPU 51 is described as having four operation modes of C0, C1, C2, and C3. However, the number of interrupts corresponding to each of these operation modes depends on the CPU and the surrounding system. This is not the case because it is different.
[0054]
Here, C0 is operating at full speed, but C1 is in AutoHALT mode, C2 is in QuickStart mode, C3 is in DeepSleep mode. To do. By changing the state to such a low power consumption mode, the duration of the battery 74 can be extended. Which of the states C0 to C3 the CPU 51 takes is determined by the state of processing executed by the CPU 51. For example, in order to enter the C3 mode, the interrupt to the CPU 51 is about 200 times per second. Will be described as having to be less frequent.
[0055]
The
[0056]
The IDE controller /
[0057]
An HDD 67 is connected to the primary IDE controller via an IDE bus 62. Further, when a so-called IDE device such as a CD ROM drive or HDD (not shown) is attached to the other IDE bus, the attached IDE device is electrically connected to the secondary IDE controller.
[0058]
The HDD 67 records an electronic mail program 67A, an autopilot program 67B, a jog dial status monitoring program 67C, a jog dial driver 67D, OS 67E, a
[0059]
The e-mail program 67A to the application program 67H and the like recorded in the HDD 67 are appropriately loaded into the
[0060]
An I / O interface 69 is further connected to the ISA /
[0061]
The ROM 70 stores in advance an IEEE1394 interface program 70A, an
[0062]
The IEEE1394 interface program 70A transmits and receives data (data stored in a packet) conforming to the IEEE1394 standard via the
[0063]
The key input monitoring program 70D is a program for monitoring input from the keyboard 24 or other key switches. The wake-up program 70E checks whether or not a preset time has been reached based on data indicating the current time supplied from a timer circuit (not shown) of the bridge 58, and has reached the preset time. At this time, it is a program that manages the power supply of each chip constituting the
[0064]
The monitoring program 70G monitors whether the potential of a predetermined pin (pin number is n) among the 10 pins of the USB
[0065]
A memory stick (trademark) can be mounted in the USB
[0066]
In addition, a BIOS (Basic Input / Output System) 70H is written in the ROM 70. The
[0067]
The
[0068]
The I / O interface 69 is connected to the
[0069]
The
[0070]
The I / O interface 69 executes the IEEE1394 interface program 70A to the jog dial state monitoring program 70F with the power supply provided therein even when the power is off. That is, the IEEE1394 interface program 70A to the jog dial state monitoring program 70F are always operating.
[0071]
Therefore, even when the power switch 27 is off and the CPU 51 is not executing the
[0072]
Thus, in the
[0073]
FIG. 6 is a functional block diagram showing a first embodiment for explaining processing for detecting whether a memory stick is attached or removed.
[0074]
The
[0075]
The
[0076]
The
[0077]
The
[0078]
When the
[0079]
When the
[0080]
When the
[0081]
Next, the memory stick
[0082]
Note that the
[0083]
In step S <b> 1, the
[0084]
If it is determined in step S <b> 1 that a change in the potential of the n-th pin has been detected, the
[0085]
In step S <b> 3, the
[0086]
In step S <b> 4, the
[0087]
In step S <b> 5, the
[0088]
In step S <b> 6, the
[0089]
In step S <b> 7, the
[0090]
In step S7, since the
[0091]
The
[0092]
When the memory stick is inserted into the
[0093]
Next, the memory stick
[0094]
Since the
[0095]
In step S21, the
[0096]
If it is determined in step S21 that a change in the potential of the nth pin has been detected, the
[0097]
In step S <b> 23, the
[0098]
In step S <b> 24, the
[0099]
In step S <b> 25, the
[0100]
In step S <b> 26, the
[0101]
In step S27, the
[0102]
In step S27, since the
[0103]
The
[0104]
When the memory stick is removed from the
[0105]
Therefore, if no other USB device is connected to the
[0106]
When the processing described with reference to FIGS. 7 and 8 is executed, on / off of the
[0107]
Therefore, a user who prefers response time over power consumption can change the setting to a mode in which the
[0108]
Next, the setting
[0109]
For example, the user refers to a setting screen displayed on the
[0110]
If it is determined in step S42 that an operation for changing the setting from the normal monitoring mode to the hardware bus switch always connection mode is input, the
[0111]
In step S <b> 44, the
[0112]
In step S45, the
[0113]
If it is determined in step S45 that the
[0114]
In step S47, the
[0115]
In step S47, since the
[0116]
If it is determined in step S45 that the
[0117]
With the processing described with reference to FIG. 9, whether the
[0118]
Next, with reference to the flowchart of FIG. 10, a description will be given of the memory stick insertion / removal detection process when the setting is the hardware bus switch always connection mode.
[0119]
In the processing described with reference to FIG. 10, in the initial state, the
[0120]
In step S <b> 61, the
[0121]
If it is determined in step S61 that a change in the potential of the nth pin has been detected, in step S62, the
[0122]
In step S63, the
[0123]
When the setting is the hardware bus switch always connection mode, the insertion and removal of the memory stick is detected and notified to the
[0124]
Next, with reference to the flowcharts of FIGS. 11 and 12, the setting change process 2 in the case where the setting is changed from the hardware bus switch constant connection mode to the normal monitoring mode will be described.
[0125]
For example, the user refers to a setting screen displayed on the
[0126]
In step S72, when it is determined that an operation for changing the setting from the hardware bus switch continuous connection mode to the normal monitoring mode is input, in step S73, the
[0127]
In step S 74, the
[0128]
In step S75, the
[0129]
In step S76, the
[0130]
If it is determined in step S76 that the memory stick is not attached, the
[0131]
In step S <b> 78, the
[0132]
In step S <b> 79, the
[0133]
In step S80, the
[0134]
In step S80, since the
[0135]
If it is determined in step S76 that the memory stick is attached, in step S82, the
[0136]
11 and 12, the
[0137]
FIG. 13 is a functional block diagram showing a second embodiment for explaining processing for detecting whether a memory stick is attached or removed. In addition, the same code | symbol is attached | subjected to the part corresponding to the case in FIG. 6, The description is abbreviate | omitted suitably.
[0138]
In the functional block diagram of FIG. 13, the
[0139]
Next, the memory stick attachment detection process 2 will be described with reference to the flowchart of FIG.
[0140]
Since the
[0141]
In step S91, the
[0142]
If it is determined in step S91 that a change in the potential of the nth pin has been detected, the
[0143]
In step S <b> 93, the
[0144]
In step S94, the
[0145]
In step S94, since the
[0146]
The
[0147]
14, when the memory stick is inserted into the
[0148]
Accordingly, as in the case described with reference to FIG. 7, the
[0149]
Next, the memory stick removal detection process 2 will be described with reference to the flowchart of FIG.
[0150]
Since the
[0151]
In step S101, the
[0152]
If it is determined in step S101 that a change in the potential of the nth pin has been detected, the
[0153]
In step S <b> 103, the
[0154]
In step S <b> 104, the
[0155]
In step S104, since the
[0156]
The
[0157]
15, when the memory stick is removed from the
[0158]
When the processing described with reference to FIGS. 14 and 15 is executed, on / off of the
[0159]
Next, the setting change process 3 for changing the setting from the normal monitoring mode for executing the process described with reference to FIGS. 14 and 15 to the hardware bus switch always connected mode will be described with reference to the flowchart of FIG. .
[0160]
For example, the user refers to a setting screen displayed on the
[0161]
If it is determined in step S112 that an operation for changing the setting from the normal monitoring mode to the hardware bus switch always connected mode is input, the
[0162]
In step S <b> 114, the
[0163]
In step S115, the
[0164]
If it is determined in step S115 that the
[0165]
In step S117, the
[0166]
In step S117, since the
[0167]
If it is determined in step S115 that the
[0168]
As in the case described with reference to FIG. 9, the processing described with reference to FIG. 16 can be performed even when the
[0169]
When the setting is the hardware bus switch continuous connection mode, the
[0170]
Next, the setting change process 4 when changing the setting from the hardware bus switch constant connection mode to the normal monitoring mode will be described with reference to the flowchart of FIG.
[0171]
For example, the user refers to a setting screen displayed on the
[0172]
If it is determined in step S132 that an operation for changing the setting from the hardware bus switch continuous connection mode to the normal monitoring mode is input, the
[0173]
In step S134, the
[0174]
In step S135, the
[0175]
If it is determined in step S135 that the memory stick is not attached, the
[0176]
In step S137, the
[0177]
In step S137, since the
[0178]
If it is determined in step S135 that the memory stick is attached, the
[0179]
By the processing described with reference to FIG. 17, it is detected by the
[0180]
By the processing described above, it is detected whether or not the
[0181]
For this reason, when no other USB device is connected to the
[0182]
Further, when the
[0183]
In the second embodiment, it is not necessary to exchange information between the CPU 51 and the
[0184]
In the second embodiment, the CPU 51 may execute the process described as being executed by the
[0185]
In the first embodiment and the second embodiment of the present invention, whether or not a memory stick is mounted in the
[0186]
In the first and second embodiments, the
[0187]
For example, various types of semiconductor memory such as SD memory card (trademark), so-called media card, smart media (trademark), compact flash (registered trademark), etc., or controller modules in these semiconductor memories The present invention can be applied even when a slot for mounting a built-in storage device is provided on a substrate.
[0188]
Other than that, for example, even when a slot for mounting a wireless communication card using a network card for constructing various networks such as a LAN (Local Area Network), a Bluetooth, etc. is provided on the substrate, The present invention is applicable. Alternatively, even when a network module or wireless communication module that can execute the same processing as a network card or wireless communication card and does not have a card shape is provided on the control board in advance, these modules are in use. It goes without saying that the same effect can be obtained by detecting whether or not the hardware bus switch is ON / OFF controlled based on the detection result.
[0189]
Furthermore, a GPS card (module) that receives radio waves from GPS (Global Positioning System) satellites, for example, a camera card (module) that can capture images by incorporating a CCD (Charge-Coupled Devices), etc. Module capable of executing various processes, such as a fingerprint verification card (module) that has a CCD for capturing fingerprint image information and a window for touching a finger and that can acquire fingerprint information Alternatively, the present invention is applicable even when a slot for mounting a card is provided on the substrate.
[0190]
In addition to USB devices, the present invention can also be applied to connectors and slots for attaching or connecting predetermined removable devices.
[0191]
In the first embodiment and the second embodiment, the
[0192]
The software for executing the above-described series of processing is to execute various functions by installing a computer in which the program constituting the software is installed in dedicated hardware or various programs. For example, it is installed from a recording medium in a general-purpose personal computer or the like.
[0193]
As shown in FIG. 5, this recording medium is distributed to provide a program to a user separately from a computer, and includes a magnetic disk 121 (including a flexible disk) on which a program is recorded, an optical disk 122 (CD- Consists of package media such as ROM (compact disk-read only memory), DVD (including digital versatile disk), magneto-optical disk 123 (including MD (mini-disk) (trademark)), or semiconductor memory 124 Is done.
[0194]
In addition, in this specification, the steps for describing a program include processes that are executed in parallel or individually even if they are not necessarily processed in time series, as well as processes that are executed in time series in the described order. Is also included.
[0195]
【The invention's effect】
Of the present inventionOne sideAccording to the information processing apparatus, the information processing method, and the program,
[Brief description of the drawings]
FIG. 1 is an external perspective view of the personal computer shown in FIG.
FIG. 2 is a plan view of the main body of the personal computer shown in FIG.
FIG. 3 is an enlarged view of the vicinity of the jog dial of the personal computer of FIG. 1;
4 is a right side view showing the configuration of the right side of the personal computer shown in FIG. 1;
5 is a block diagram illustrating an internal configuration example of the personal computer in FIG. 1;
FIG. 6 is a functional block diagram for explaining the first embodiment of the present invention.
FIG. 7 is a flowchart for explaining a memory stick
FIG. 8 is a flowchart for explaining memory stick
FIG. 9 is a flowchart for explaining setting
FIG. 10 is a flowchart for explaining memory stick attachment / removal detection processing;
FIG. 11 is a flowchart for explaining setting change processing 2;
FIG. 12 is a flowchart for explaining setting change processing 2;
FIG. 13 is a functional block diagram for explaining a second embodiment of the present invention.
FIG. 14 is a flowchart for explaining a memory stick attachment detection process 2;
FIG. 15 is a flowchart for explaining memory stick removal detection processing 2;
FIG. 16 is a flowchart for explaining setting change processing 3;
FIG. 17 is a flowchart for explaining setting change processing 4;
[Explanation of symbols]
1 personal computer, 51 CPU, 68 USSB host controller, 72 EC, 74 battery, 131 USB bus, 132 hardware bus switch, 133 USB memory stick slot, 201 power panel, 203, 211 monitoring program
Claims (7)
前記情報処理装置において実行される処理のうちの少なくとも一部を制御し、所定時間に供給される割り込み信号の回数に応じて遷移可能な低消費電力モードが定められている処理制御手段と、
前記デバイス制御部と前記第1のデバイスとの電気的接続および切断を切り替える切り替え手段と、
前記第1のデバイスが使用されている状態であるか否かを検出する検出手段と、
前記検出手段による検出結果に基づいて、前記切り替え手段による前記デバイス制御部と前記第1のデバイスとの電気的接続および切断の切り替えを制御する制御手段と
を備え、
前記デバイス制御部は、前記第1のデバイスを含むいずれかのデバイスとの接続を検出した場合、所定間隔で前記処理制御手段に割り込み信号を送出する
情報処理装置。An information processing apparatus having a device control unit that controls transmission and reception of information with a predetermined device connected, and a first device ,
Processing control means for controlling at least a part of the processing executed in the information processing apparatus, and in which a low power consumption mode is set that can be shifted according to the number of interrupt signals supplied for a predetermined time;
Switching means for switching electrical connection and disconnection between the device control unit and the first device ;
Detecting means for detecting whether or not the first device is in use;
Control means for controlling switching of electrical connection and disconnection between the device control unit and the first device by the switching means based on a detection result by the detection means ,
When the device control unit detects connection with any device including the first device, the device control unit sends an interrupt signal to the processing control unit at a predetermined interval.
Information processing device.
前記検出手段は、前記第1のデバイスに前記他の第2のデバイスが装着されているか否かに基づいて、前記第1のデバイスが使用されている状態であるか否かを検出する
ことを特徴とする請求項1に記載の情報処理装置。 Other first devices can be connected to the first device,
It said detection means detecting the first based on whether the other of the second device to the device is mounted, whether the first device is in a state being used The information processing apparatus according to claim 1.
ことを特徴とする請求項2に記載の情報処理装置。The detection means is in a state where the first device is used based on a potential of a predetermined terminal for electrical connection with the second device provided in the first device. The information processing apparatus according to claim 2 , wherein the information processing apparatus detects whether or not.
前記入力手段により入力された前記ユーザの操作に基づいて、前記制御手段による前記切り替え手段による電気的接続の切り替えの制御を、常時接続状態に設定する設定手段と
を更に備えることを特徴とする請求項1に記載の情報処理装置。An input means for receiving an input of a user operation;
The apparatus further comprises: a setting unit that sets a control of switching the electrical connection by the switching unit by the control unit to a constantly connected state based on an operation of the user input by the input unit. Item 4. The information processing apparatus according to Item 1.
前記デバイス制御部は、USBホストコントローラである
ことを特徴とする請求項1に記載の情報処理装置。The device control unit is connected to the first device using a USB standard ,
The information processing apparatus according to claim 1, wherein the device control unit is a USB host controller.
を有する情報処理装置の情報処理方法において、
前記第 1 のデバイスが使用されている状態であるか否かを検出する検出ステップと、
前記検出ステップの処理による検出結果に基づいて、前記切り替え部による前記デバイス制御部と前記第1のデバイスとの電気的接続および切断の切り替えを制御する制御ステップと
を含み、
前記デバイス制御部は、前記第1のデバイスを含むいずれかのデバイスとの接続を検出した場合、所定間隔で前記処理制御部に割り込み信号を送出する
情報処理方法。 A device control unit that controls transmission / reception of information to / from a predetermined device connected; a first device; a switching unit that switches electrical connection and disconnection between the device control unit and the first device; and the information A processing control unit that controls at least a part of the processing executed in the processing device, and in which a low power consumption mode that can transition according to the number of interrupt signals supplied in a predetermined time is defined;
In an information processing method of an information processing apparatus having
A detection step of detecting whether or not the first device is in use;
A control step for controlling switching of electrical connection and disconnection between the device control unit and the first device by the switching unit based on a detection result obtained by the processing of the detection step;
Including
When the device control unit detects connection with any device including the first device, the device control unit sends an interrupt signal to the processing control unit at a predetermined interval.
Information processing method.
を備える情報処理装置を制御するコンピュータが実行可能なプログラムであって、
前記第 1 のデバイスが使用されている状態であるか否かを検出する検出ステップと、
前記検出ステップの処理による検出結果に基づいて、前記切り替え部による前記デバイス制御部と前記第1のデバイスとの電気的接続および切断の切り替えを制御する制御ステップと
を含み、
前記デバイス制御部は、前記第1のデバイスを含むいずれかのデバイスとの接続を検出した場合、所定間隔で前記処理制御部に割り込み信号を送出する
処理をコンピュータに実行させるためのプログラム。 A device control unit that controls transmission / reception of information to / from a predetermined device connected; a first device; a switching unit that switches electrical connection and disconnection between the device control unit and the first device; and the information An information processing comprising: a processing control unit that controls at least a part of processing executed in the processing device and has a low power consumption mode that can be shifted according to the number of interrupt signals supplied in a predetermined time A computer executable program for controlling the device,
A detection step of detecting whether or not the first device is in use;
A control step for controlling switching of electrical connection and disconnection between the device control unit and the first device by the switching unit based on a detection result obtained by the processing of the detection step;
Including
When the device control unit detects connection with any device including the first device, the device control unit sends an interrupt signal to the processing control unit at a predetermined interval.
A program that causes a computer to execute processing.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002313695A JP3785641B2 (en) | 2001-10-30 | 2002-10-29 | Information processing apparatus, information processing method, and program |
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001-332392 | 2001-10-30 | ||
| JP2001332392 | 2001-10-30 | ||
| JP2002313695A JP3785641B2 (en) | 2001-10-30 | 2002-10-29 | Information processing apparatus, information processing method, and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2003202943A JP2003202943A (en) | 2003-07-18 |
| JP3785641B2 true JP3785641B2 (en) | 2006-06-14 |
Family
ID=27666649
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2002313695A Expired - Lifetime JP3785641B2 (en) | 2001-10-30 | 2002-10-29 | Information processing apparatus, information processing method, and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3785641B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| DE10333900A1 (en) * | 2003-07-21 | 2005-02-24 | Detewe Deutsche Telephonwerke Aktiengesellschaft & Co. Kg | telecommunication terminal |
| JP5681576B2 (en) | 2011-06-29 | 2015-03-11 | ルネサスエレクトロニクス株式会社 | Host controller device, information processing device, and event information output method |
-
2002
- 2002-10-29 JP JP2002313695A patent/JP3785641B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JP2003202943A (en) | 2003-07-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11715439B2 (en) | Dynamically controlling display mode of external device coupled to user equipment | |
| AU2022202072B2 (en) | Card holder and mobile terminal | |
| JPWO2004070593A1 (en) | Peripheral device and control method thereof, main body device and control method thereof, and program thereof | |
| CN215642735U (en) | Fingerprint Sensing Device | |
| CN103841258A (en) | Method for controlling portable device by using humidity sensor and portable device thereof | |
| US6877058B2 (en) | Information processing unit having a slot, information processing method for an information processing unit, and program that controls an information processing unit | |
| JP2001312410A (en) | Information processing apparatus and method, and program storage medium | |
| JP2000122756A (en) | Electronics | |
| JP3785641B2 (en) | Information processing apparatus, information processing method, and program | |
| JP2003195985A (en) | Electronic equipment system, electronic equipment, peripheral device, and power supply control method | |
| CN100346659C (en) | Hybrid mobile terminal and method for controlling the same | |
| EP1486856A1 (en) | Information processing device and method | |
| CN100429606C (en) | PC card and PC card control method | |
| US20070180284A1 (en) | Electronic device and operation control method | |
| CN101997905A (en) | Computer system and control method thereof | |
| KR20020074074A (en) | Information processing apparatus and method, recording medium product, and program | |
| CN101154132A (en) | Information processing device and mail receiving method | |
| JP2010055265A (en) | System lsi, control method of system lsi, program, and storage medium | |
| JP2000235433A (en) | Mobile phone communication control device | |
| CN115509558B (en) | A programming apparatus, method, electronic device, and readable storage medium | |
| CN114428534B (en) | Electronic equipment and control methods | |
| JP2001092584A (en) | Input device, information processing device, information processing method, and program storage medium | |
| KR20010011374A (en) | portable computer system having application program launcher for low power consumption and operating method therefor | |
| CN100461114C (en) | Linkage method and mobile communication terminal | |
| KR100560638B1 (en) | Computer System with Improved User Interface and Its Control Method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050523 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050531 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050801 |
|
| 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: 20060227 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20060312 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090331 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100331 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100331 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110331 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120331 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130331 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140331 Year of fee payment: 8 |
|
| 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 |
|
| 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 |