JP5089415B2 - Peripheral device, control method thereof and program - Google Patents
Peripheral device, control method thereof and program Download PDFInfo
- Publication number
- JP5089415B2 JP5089415B2 JP2008028031A JP2008028031A JP5089415B2 JP 5089415 B2 JP5089415 B2 JP 5089415B2 JP 2008028031 A JP2008028031 A JP 2008028031A JP 2008028031 A JP2008028031 A JP 2008028031A JP 5089415 B2 JP5089415 B2 JP 5089415B2
- Authority
- JP
- Japan
- Prior art keywords
- host device
- power supply
- power consumption
- consumption mode
- 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 - Fee Related
Links
- 230000002093 peripheral effect Effects 0.000 title claims description 50
- 238000000034 method Methods 0.000 title claims description 28
- 238000004891 communication Methods 0.000 claims description 40
- 230000004044 response Effects 0.000 claims description 12
- 230000007704 transition Effects 0.000 claims description 11
- 238000001514 detection method Methods 0.000 claims description 10
- 238000012544 monitoring process Methods 0.000 description 27
- 238000012545 processing Methods 0.000 description 19
- 230000006870 function Effects 0.000 description 13
- 230000008569 process Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 239000013078 crystal Substances 0.000 description 5
- 230000010355 oscillation Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000003384 imaging method Methods 0.000 description 3
- 239000004973 liquid crystal related substance Substances 0.000 description 3
- 230000007257 malfunction Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000002265 prevention Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Power Sources (AREA)
- Information Transfer Systems (AREA)
- Studio Devices (AREA)
Description
本発明は、例えばUSBでホストと接続する周辺機器の省電力化を図る技術に関する。 The present invention relates to a technique for reducing power consumption of peripheral devices connected to a host by, for example, USB.
PC(パーソナルコンピュータ)にその周辺機器を接続する方法として、近年、USB(Universal Serial Bus)が実用化された。 In recent years, USB (Universal Serial Bus) has been put to practical use as a method for connecting peripheral devices to a PC (personal computer).
USBは、パーソナルコンピュータと複数の周辺機器との間をシリアル通信で接続するものであり、複数の機能を有している。USBが有する機能としては、プラグアンドプレイ(周辺機器を新たに接続したり取り外したりする場合に自動的に接続関係を認識する機能)、ホットインサーション(電源を入れたまま接続及び取り外しができる機能)、活線挿抜機能、電源供給機能等がある。このような機能により、USBでは、ユーザが接続の際にアドレス及びID番号等の設定について煩わされることが無いよう考慮されている。 USB connects a personal computer and a plurality of peripheral devices by serial communication and has a plurality of functions. USB functions include plug-and-play (a function that automatically recognizes connection relationships when peripheral devices are newly connected or removed), hot insertion (a function that can be connected and disconnected while the power is on) ), Hot-swap function, power supply function, etc. With such a function, in USB, it is considered that the user is not bothered about setting of an address, an ID number, and the like when connecting.
USBでは、VBUSと称される5V電源線、GND線、並びに、D+及びD−という2本の信号線の合計4本の配線を専用コネクタで着脱する。電源線で供給できる電流値には限界があり、USBの規格上は100mA〜500mAに制限されている。
またUSBでは、ホスト機器の命令により周辺機器がサスペンド状態にならなければいけないと定義されており、このサスペンド状態では、VBUSからの電流消費は500μAと小さくしなくてはならない。また、サスペンド状態からの復帰に際しては、ホスト機器からレジューム命令が発行される。
In USB, a total of four wires of a 5V power supply line called VBUS, a GND line, and two signal lines D + and D− are attached and detached with a dedicated connector. There is a limit to the current value that can be supplied through the power line, and the USB standard limits the current value to 100 mA to 500 mA.
In USB, it is defined that a peripheral device must be in a suspended state by a command from a host device. In this suspended state, current consumption from VBUS must be reduced to 500 μA. When returning from the suspended state, a resume command is issued from the host device.
このようなUSBに関連する技術としては、例えば特許文献1に、ホスト機器との通信接続を自在に管理することによって、低消費電力を実現する技術が開示されている。この技術では、一定時間通信が行われないとホスト機器に通信終了を通知して、D+線のプルアップ抵抗への印加レベルをLレベル又はHiZに移行して、低クロック周波数のスリープモードに移行するようにして低消費電力化を図るようにしている。 As a technique related to such USB, for example, Patent Document 1 discloses a technique for realizing low power consumption by freely managing communication connection with a host device. In this technology, if communication is not performed for a certain period of time, the end of communication is notified to the host device, the level applied to the pull-up resistor of the D + line is shifted to L level or HiZ, and the sleep mode is shifted to the low clock frequency. In this way, low power consumption is achieved.
また特許文献2には、USB制御部を備えたマイクロコントローラ(MCU)に関する技術が開示されている。この技術では、USB制御部がD+とD−の状態の監視結果から出力する信号と、MCUがサスペンド中か否かによって出力する信号とを使って、発振回路の発振動作を制御して低消費電力化を図るようにしている。 Patent Document 2 discloses a technique related to a microcontroller (MCU) including a USB control unit. This technology uses the signal output from the monitoring result of the D + and D− states by the USB control unit and the signal output depending on whether the MCU is suspended or not to control the oscillation operation of the oscillation circuit and reduce power consumption. I try to use electric power.
さて、従来のUSB周辺機器では、以下のような問題点があった。
まずUSBに限らず、ホスト側から電源の供給を受ける場合、当然、供給電流に制限がある。従って、周辺機器には、供給電流の制限値を越す大きな電流を流す高速な回路又は機構を設けることができない。例えばデジタルカメラでは、ストロボの充電及びシャッタバネの蓄勢に一時的に大きな電流が必要になる。そのため、デジタルカメラをホスト機器から電源を供給されるUSB周辺機器として扱うことは難しかった。
The conventional USB peripheral device has the following problems.
First, not only the USB but also the power supply is received from the host side, naturally there is a limit to the supply current. Therefore, the peripheral device cannot be provided with a high-speed circuit or mechanism for flowing a large current exceeding the limit value of the supply current. For example, in a digital camera, a large current is temporarily required for charging the strobe and storing the shutter spring. For this reason, it has been difficult to handle the digital camera as a USB peripheral device to which power is supplied from the host device.
またUSB周辺機器は、ホスト機器からサスペンド命令があった場合、速やかに電源電流を抑えなくてはならない。例えばデジタルカメラでは、メモリカードにデータを書いている途中に電源を遮断すると、最悪の場合、メモリカード内のデータが破壊されてしまうという問題がある。従って、デジタルカメラのようにメモリカードに何らかのデータ、特に大量のデータを書き込む装置をUSB周辺装置として扱うことは難しかった。 The USB peripheral device must quickly suppress the power supply current when a suspend command is issued from the host device. For example, in a digital camera, if the power is turned off while data is being written to the memory card, there is a problem that the data in the memory card is destroyed in the worst case. Therefore, it has been difficult to treat a device that writes some data, particularly a large amount of data, as a digital camera, as a USB peripheral device.
また周辺機器自身が電源を持つような機器、例えばカメラの様に携帯を前提とした機器では電池を内蔵することになる。しかし、特にUSBでは、接続中、周辺機器側の通信回路は常に動作していなくてはならない。これは、ホスト機器が常にパケット信号を発しており、これが自分に対してのパケットであるかどうかを判断し、自分に対しての命令等である場合には所定時間内に反応しなくてはならないからである。従って、電池駆動の装置をUSBの周辺機器としてUSBに接続すると、省電力モードに移行することもできずに短時間で電池を消耗してしまうという問題があった。 In addition, in a device whose peripheral device itself has a power source, for example, a device such as a camera that is assumed to be portable, a battery is built in. However, especially in USB, the communication circuit on the peripheral device side must always operate during connection. This is because the host device always issues a packet signal, determines whether this is a packet for itself, and if it is a command for itself, it must react within a predetermined time. Because it will not be. Therefore, when a battery-powered device is connected to a USB as a peripheral device of the USB, there is a problem that the battery is consumed in a short time without being able to shift to the power saving mode.
上述した特許文献1及び特許文献2に記載の技術は、このような問題を解消することを目的としている。
しかしながら、特許文献1に開示された技術では、スリープモードからの復帰の指示を検知する回路を動作させておくために電池を用いており、スリープモードにおける消費電流を十分に抑えていない。また、サスペンド状態における省電力について言及していない。更には、スリープモードに移行するためには、一旦ホストとの通信接続状態を解除する必要があり、再度通信を再開する際には決められたネゴシエーション手順を踏む必要もある。
また、特許文献2に開示された技術では、発振回路の発振を停止することによって低消費電力化を図る方法であるため、回路のリーク電流が発生し、十分に消費電流を抑えることはできない。
The techniques described in Patent Document 1 and Patent Document 2 described above are intended to solve such problems.
However, in the technique disclosed in Patent Document 1, a battery is used to operate a circuit that detects an instruction to return from the sleep mode, and current consumption in the sleep mode is not sufficiently suppressed. It does not mention power saving in the suspended state. Further, in order to shift to the sleep mode, it is necessary to once cancel the communication connection state with the host, and when restarting communication again, it is necessary to follow a predetermined negotiation procedure.
Further, since the technique disclosed in Patent Document 2 is a method for reducing power consumption by stopping oscillation of the oscillation circuit, a leakage current of the circuit is generated and the current consumption cannot be sufficiently suppressed.
本発明は係る実情に鑑みてなされたものであり、電源を有する周辺機器における省電力効果を向上させることを目的とする。 The present invention has been made in view of such a situation, and an object thereof is to improve a power saving effect in a peripheral device having a power source.
本発明の周辺機器は、ホスト機器と接続可能な周辺機器であって、前記ホスト機器と通信するトランシーバ手段と、当該周辺機器に電源を供給する電源手段と、前記ホスト機器からの命令に応じて、当該周辺機器を低消費電力モードへ移行させるモード移行手段と、前記低消費電力モードへの以降の際に、前記トランシーバ手段が前記ホスト機器から前記低消費電力モードにおける電力供給を受けるよう制御する電力制御手段と、前記電力制御手段により前記トランシーバ手段が前記ホスト機器から前記低消費電力モードにおける電力供給を受けるよう制御した後、前記周辺機器の状態に関する状態情報を記録媒体に保持する保持手段と、前記保持手段により前記状態情報を前記記録媒体に保持した後、前記電源手段による電源供給を停止する電源制御手段と、前記低消費電力モードの間、前記ホスト機器から電源供給を受けて、前記ホスト機器から送信される前記低消費電力モードからの復帰命令を検知する前記トランシーバ手段に含まれる検知手段と、前記検知手段が前記復帰命令を検知した場合に、当該周辺機器を前記低消費電力モードから復帰させるモード復帰手段と、前記低消費電力モードからの復帰の際に、前記保持手段により前記記録媒体に保持した前記状態情報を取得する取得手段とを有すること特徴とする。
また、本発明の周辺機器の制御方法は、ホスト機器と接続可能であり、前記ホスト機器と通信するトランシーバ手段と、当該周辺機器に電源を供給する電源手段とを備えた周辺機器の制御方法であって、前記ホスト機器からの命令に応じて、当該周辺機器を低消費電力モードへ移行させるモード移行ステップと、前記低消費電力モードへの以降の際に、前記トランシーバ手段が前記ホスト機器から前記低消費電力モードにおける電力供給を受けるよう制御する電力制御ステップと、前記電力制御ステップで前記トランシーバ手段が前記ホスト機器から前記低消費電力モードにおける電力供給を受けるよう制御した後、前記周辺機器の状態に関する状態情報を記録媒体に保持する保持ステップと、前記保持ステップで前記状態情報を前記記録媒体に保持した後、前記電源手段による電源供給を停止する電源制御ステップと、前記低消費電力モードの間、前記ホスト機器から電源供給を受けて、前記ホスト機器から送信される前記低消費電力モードからの復帰命令を前記トランシーバ手段に含まれる検知手段により検知する検知ステップと、前記検知ステップで前記復帰命令を検知した場合に、当該周辺機器を前記低消費電力モードから復帰させるモード復帰ステップと、前記低消費電力モードからの復帰の際に、前記保持ステップで前記記録媒体に保持した前記状態情報を取得する取得ステップとを有すること特徴とする。
また、本発明のプログラムは、上記に記載の周辺機器の制御方法の各ステップをコンピュータに実行させるためのプログラムである。
A peripheral device according to the present invention is a peripheral device connectable to a host device, a transceiver means for communicating with the host device, a power supply means for supplying power to the peripheral device, and a command from the host device And a mode transition means for causing the peripheral device to transition to the low power consumption mode, and controlling the transceiver means to receive power supply from the host device in the low power consumption mode after the transition to the low power consumption mode. Power control means, and holding means for holding status information regarding the status of the peripheral device in a recording medium after the transceiver means has been controlled by the power control means to receive power supply in the low power consumption mode from the host device. , After the state information is held in the recording medium by the holding means, the power supply by the power supply means is stopped. And power control means, during the low power consumption mode, by receiving power supply from the host apparatus, detecting means included in said transceiver means for detecting the return instruction from the low power consumption mode is transmitted from the host device And a mode return means for returning the peripheral device from the low power consumption mode when the detection means detects the return command, and the recording means by the holding means upon return from the low power consumption mode. Obtaining means for obtaining the state information held in the medium .
The peripheral device control method of the present invention is a peripheral device control method that is connectable to a host device and includes transceiver means for communicating with the host device and power supply means for supplying power to the peripheral device. And a mode transition step of shifting the peripheral device to the low power consumption mode in response to a command from the host device, and the transceiver means from the host device to the low power consumption mode in the subsequent steps. A power control step for controlling the power supply in the low power consumption mode, and the state of the peripheral device after controlling the transceiver means to receive the power supply in the low power consumption mode from the host device in the power control step Holding state information on the recording medium, and holding the state information in the recording medium in the holding step After holding in the power supply control step of stopping the power supply by the power supply means, during the low power consumption mode, by receiving power supply from the host device, wherein the low power consumption mode is transmitted from the host device A detection step of detecting a return instruction of the peripheral means by a detection means included in the transceiver means, and a mode return step of returning the peripheral device from the low power consumption mode when the return instruction is detected in the detection step ; An acquisition step of acquiring the state information held in the recording medium in the holding step when returning from the low power consumption mode .
The program of the present invention is a program for causing a computer to execute each step of the peripheral device control method described above.
本発明によれば、電源を有する周辺機器における省電力効果を向上させることができる。 ADVANTAGE OF THE INVENTION According to this invention, the power saving effect in the peripheral device which has a power supply can be improved.
以下、図面を参照して本発明の実施の形態を詳細に説明する。
(第1の実施の形態)
図1は、本発明の第1の実施の形態に係るデジタルカメラの概略構成を示すブロック図である。図1において、PC等のUSBホスト機器60はUSBケーブル50を介してデジタルカメラ10と接続する。デジタルカメラ10はHS(High Speed)及びFS(Full Speed)のUSBデバイス機器(周辺機器)として動作する。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
(First embodiment)
FIG. 1 is a block diagram showing a schematic configuration of a digital camera according to the first embodiment of the present invention. In FIG. 1, a
USBホスト機器60は、VBUS線上に電源を供給する電源回路(不図示)を備えている。USBケーブル50は、VBUS線、GND線、D+線及びD−線を具備する信号ケーブルと、その両側のコネクタ(不図示)とからなる。
The
デジタルカメラ10は、以下の要素を具備する。即ち、デジタルカメラ10において、11はUSB PHY(physical layer)、12はUSBプロトコルに従ってデータ送受信を制御するUSBコントローラである。
The
13はデジタルカメラ10を制御するシステム制御部、14はシステム制御部13のワークメモリとなるRAM、15はデジタルカメラ10を制御するためのプログラムを保持するフラッシュROMであり、カメラの状態情報を保持するための領域33を有する。16は撮像部であり、撮影レンズ(図示せず)、撮像素子及びアナログ/デジタル(A/D)変換回路等を含み、撮影レンズを介して結像した被写体像をデジタル画像信号として出力する。17は撮像部16からのデジタル画像信号にカメラ信号処理を施す信号処理部である。18は撮影したデジタル画像信号を最終的に記憶する着脱式のメモリカードである。19はポート制御回路であり、後述の操作部20及びメインSW21からの入力を制御する。なお、システム制御部13、RAM14、フラッシュ ROM15、信号処理部17、メモリカード18、及びポート制御回路19はシステムバス34を介して接続する。
20はデジタルカメラ10を操作するための操作部であり、具体的にはMENUボタンや十字キー、シャッターボタン等、ユーザからの所定の指示を受け付けるためのものである。21はメインスイッチ(メインSW)であり、ユーザからの電源切り替えの指示を受け付けるためのものである。
24はデジタルカメラ10の電源となる電池、23はDC/DCコンバータ回路であり、電池24の出力電圧から所定の電源電圧を生成し、破線35で囲んだメインシステム部分に供給する。22はDC/DCコンバータ回路23の駆動を制御するDC/DC制御部である。DC/DC制御部22からの制御信号であるパワーコントロール信号(以下、PWCTL)がHレベルになると、DC/DCコンバータ回路23が起動し、システム制御部13やUSBコントローラ12、RAM14等に電源が供給される。システム制御部13は、その出力信号(以下、CPU−PWCTL)を使って、DC/DC制御部22を介してDC/DCコンバータ回路23の駆動を制御する。またUSBケーブル50のVBUS線はラッチアップ防止のバッファ38を介してDC/DC制御部22に入力される。37はUSB mini−Bレセプタクルであり、USBケーブル50のmini−Bコネクタ(不図示)が挿入される。
A
また、上述したUSB PHY11は独立した一部品として構成され、その内部構成は下記の通りである。即ち、USB PHY11において、27はUSBアナログフロントエンド部であり、FS(Full Speed)やHS(High Speed)でのデータの送受信を行うためのドライバやレシーバを含む。USBではD+とD−の信号線を用いた作動信号によりデータが送受信される。
The
28はUSBアナログフロントエンド部27からのUSBシリアル信号をパラレル信号に変換、若しくはその逆変換するSIE回路である。25はULPI(UTMI+ Low Pin Interface)規格に準拠したULPIインターフェイスコントローラである。ULPI規格は、USBコントローラ12とUSB PHY11との間のインターフェイス規格であり、下記の8本又は12本の配線で両者を接続できる。
An
・CLOCK:60MHzのクロック線であり、ULPI BUSの同期クロックである。USB PHY11の出力信号である。
・DATA:双方向データバス信号であり、4本又は8本で構成される。
・DIR:DIRECTION信号であり、データバスの方向を制御する。USB PHY11の出力信号である。
・NXT:次データ要求の信号であり、USB PHY11の出力信号である。
・STP:STOP信号であり、USBコントローラ12の出力信号である。
CLOCK: 60 MHz clock line, ULPI BUS synchronous clock. This is an output signal of USB PHY11.
DATA: Bidirectional data bus signal, consisting of 4 or 8.
DIR: DIRECTION signal that controls the direction of the data bus. This is an output signal of USB PHY11.
NXT: Next data request signal, output signal of USB PHY11.
STP: STOP signal, which is an output signal of the
ULPIインターフェイスコントローラ25は、ULPI規格のプロトコルに従ってUSBコントローラ12から送られてくるデータをSIE回路28に送信する。また逆に、SIE回路28から送られたデータをULPI規格のプロトコルに従ってUSBコントローラ12に送信する。このようにして通信制御を行うことで、USBコントローラ12とUSB PHY11との間においても通信が行われる。なお、具体的な通信の一例を挙げれば、USBコントローラ12がコマンド形式でChirp信号の送信を指示したり、USB PHY11を低消費電力モードに設定したりする。
The
また、26はレジューム監視部であり、サスペンド状態にあるときに、D+線、D−線がサスペンド状態からの復帰信号(復帰命令)であるレジューム状態になったことを示す信号を監視する。31は外部水晶発振子(XTAL)、30は外部水晶発振子31からのsin波形を方形波に変換するクリスタルオシレータ(OSC)である。29はPLL回路であり、USB PHY11内部で使用する60MHzや480MHzといった周波数のクロックを生成する。32はレギュレータ回路であり、USBのVBUS線を介してUSBホスト機器60から供給される電源から所定の電源電圧を生成して、USB PHY11における破線36で囲んだ部分に存在する各部に供給する。
また、図示していないが、VBUS線はラッチアップ防止のバッファを介してポート制御回路19に接続される。システム制御部13は、電池24により動作電力を供給されている状態で、VBUS線に所定以上の電圧が印加されているかどうかを、ポート制御回路19を介して知ることができる。
Although not shown, the VBUS line is connected to the
図2、図3は、以上のような構成を具備したデジタルカメラ10の動作を説明するフローチャートである。
2 and 3 are flowcharts for explaining the operation of the
まず図2は、デジタルカメラ10がUSBホスト機器60からサスペンド信号を受信してメインシステム部分(破線35内)への電源供給を停止する動作を説明するフローチャートである。本処理においては、デジタルカメラ10はUSBホスト機器60と通信確立状態にあることを前提とする。以下、詳細を説明する。
First, FIG. 2 is a flowchart for explaining the operation in which the
まずステップ202において、USBコントローラ12はサスペンド信号(Suspend信号)の発生を監視する。USBコントローラ12は3ms以上USBバス上に信号が発生しなかったことにより、サスペンド信号と判断する。サスペンド信号を検知すると、ステップS203において、USBコントローラ12はUSB PHY11に対して低消費電力モードへの移行を指示する。これによって、USB PHY11は内部のPLL回路29等を停止して、VBUS線からサスペンド電流だけを引き出すようにする(換言すれば一部通信が停止される)。USB規格では、サスペンド状態では、VBUSからの電流消費は500μA以下と定められているため、その要件を満たすよう制御する。なお、ステップS203の処理は、本発明いうモード移行手段の一処理例である。
First, in step 202, the
次にステップS204において、システム制御部13は現在のデジタルカメラ10の状態に関する状態情報をフラッシュROM15の領域33に保持する。例えばデジタルカメラ10の液晶表示部(不図示)に表示している内容や、USBホスト機器60との通信状態等を保持する。
Next, in step S <b> 204, the
次にステップS205において、システム制御部13は、レジューム監視部26に復帰信号であるレジューム信号(Resume信号)の発生を監視するように指示する。レジューム監視部26は、FSデバイス又はHSデバイスのレジューム信号を、D+線がLレベル、D−線がHレベルに変化したことで判断する。レジューム監視部26はまた、BUS RESET信号の発生も同時に監視しており、BUS RESET信号を、D+線がLレベル、D−線がLレベルに変化したことで判断する。
In step S205, the
図8はUSB通信状況に応じてレジューム監視部26が出力する出力信号であるPHY−PWCTLについて説明する図である。レジューム監視部26は、USB通信状況を、USBケーブル50のD+線、D−線、及びUSB PHY11内部で保持しているSuspend Stateビットの状態を基に判断し、それに応じたPHY−PWCTLを出力するように構成されている。
FIG. 8 is a diagram for explaining PHY-PWCTL, which is an output signal output from the
図8においては、D+線、D−線、及びSuspend Stateビットの状態と、それに応じてレジューム監視部26が出力するPHY−PWCTLとの関係を示している。各状態を具体的に説明すると、801はUSBケーブル50が接続されていない状態、或いはUSBケーブル50が接続されているがUSBホスト機器60がVBUS線上に電源を供給していない状態を示している。802はデジタルカメラ10がUSBホスト機器60に接続されて、VBUS線を介して電源の供給を受けて内部RESETの動作により、USB PHY11が初期化された状態を示している。803はデジタルカメラ10がUSBホスト機器60と通信中である状態を示している。804はデジタルカメラ10がサスペンド状態であることを示している。805はデジタルカメラ10がサスペンド状態804でレジューム信号を受信した状態を示している。806はデジタルカメラ10がサスペンド状態804でBUS RESET信号を受信した状態を示している。
FIG. 8 shows the relationship between the states of the D + line, the D− line, and the Suspend State bit, and the PHY-PWCTL output by the
以上のように、レジューム監視部26はUSB通信状況に応じて、PHY−PWCTLをHi−Z(ハイインピーダンス)、L又はHに変化させて出力する。詳細には、サスペンド状態でレジューム信号又はBUS RESET信号を受信したときには、PHY−PWCTLをHレベルで出力する。なお、ステップS205の段階では、サスペンド状態804であるため、PHY−PWCTLのLレベルを出力する。
As described above, the
次にステップS206において、システム制御部13はUSBコントローラ12を介して、USB PHY11の出力端子をHi−Z(ハイインピーダンス)状態、入力端子をLレベルに固定するよう指示する。これによって、DC/DCコンバータ回路23からの電源供給を停止したときに、USBコントローラ12に流れ込む電流を排除するとともに、誤作動の発生を回避する。
In step S206, the
次にステップS207において、システム制御部13はでシャットダウン処理を実行する。シャットダウン処理では、例えば撮影レンズ等の各部の終了動作や、各種設定値等をフラッシュROM15に記憶する処理や、USBコントローラ12の終了動作である。またシステム制御部13の出力端子をHi−Zに設定する処理も含む。
Next, in step S207, the
次にステップS208において、システム制御部13は出力信号であるCPU−PWCTLをLレベルに制御して、DC/DCコンバータ回路23をオフにし、ステップS209において、メインシステム部分(破線35内)への電源供給をオフにする。なお、ステップS208、S209の処理は、本発明でいう電源制御手段の一処理例である。
Next, in step S208, the
このように、本実施の形態のデジタルカメラ10はサスペンド状態ではメインシステム部分への電源供給をオフにするため、消費電力を大幅に低減し、電池24の消耗を防いでいる。一方、USB PHY11は、メインシステム部分とは電源分離されている構成であり、サスペンド状態であってもVBUS線からの電源供給を受けて低消費電力モードで動作することができる。これにより、サスペンド状態の間、通信状態のときよりも低消費電力の状態で、レジューム監視部26においてレジューム信号の発生を監視することができる。
Thus, since the
次に図3は、デジタルカメラ10がレジューム信号を受信して、再起動する動作を説明するフローチャートである。
Next, FIG. 3 is a flowchart for explaining an operation in which the
まずステップS302において、レジューム監視部26はレジューム信号(復帰信号)の発生を監視する。図8で説明したとおり、レジューム監視部26はサスペンド状態で復帰信号を検知すると、出力信号であるPHY−PWCTLをHレベルで出力する。なお、ステップS302の処理は、本発明でいう検知手段の一処理例である。
First, in step S302, the
図9はDC/DC制御部22及びメインSW21の詳細な構成図である。図9において、AND回路91は2入力のANDゲートである。AND回路91に入力される信号は、VBUS線を介してラッチアップ防止のバッファ38を通った信号であるVBUS−PWCTLと、レジューム監視部26の出力信号であるPHY−PWCTLである。OR回路92は3入力のORゲートであり、入力される信号は、AND回路91の出力、メインSW21に接続されている(MAIN−PWCTL)、システム制御部13の出力信号であるCPU−PWCTLである。OR回路92の出力信号であるPWCTLはDC/DCコンバータ回路23に接続されている。即ち、VBUS線に電源が供給され、かつレジューム監視部26が復帰信号を検知するか、或いはメインSW21が操作されるか、或いはCPU−PWCTLがHレベルに制御された場合に、DC/DCコンバータ回路23の電源供給を開始するように構成されている。
FIG. 9 is a detailed configuration diagram of the DC /
ステップ302で復帰信号を受信するとステップS303において、レジューム監視部26はPHY−PWCTLをHレベルで出力し、DC/DCコンバータ回路23をオン(駆動)させて電源供給を開始する。なお、ステップS303の処理は、本発明でいう電源制御手段の一処理例である。
When the return signal is received in step 302, in step S303, the
電源が供給されることでステップS304において、システム制御部13は起動されて、プログラムの実行が開始され、ステップS305において、CPU−PWCTLをHレベルに制御する。これによって、以降でUSB通信が再開してPHY−PWCTLがLレベルで出力されても、メインシステム部分への電源供給がオフされることはない。
When the power is supplied, the
次にステップS306において、システム制御部13はデジタルカメラ10の状態情報を領域33から読み出して(取得して)、サスペンド状態に移行する前の状態にデジタルカメラ10を復帰させる。
In step S306, the
次にステップS307において、USBコントローラ12はUSB PHY11に対して低消費電力モードからの復帰を指示し、ステップ308においてUSBホスト機器60とのUSB通信が再開される。なお、ステップS303〜S308の処理は、本発明でいうモード復帰手段の一処理例である。
In step S307, the
ところで、デジタルカメラ10がサスペンド状態に移行してメインシステム部分への電源供給をオフした場合に、図9で説明した通りメインSW21を操作することによってもデジタルカメラを再起動することができる。その場合、図3のステップS307の後に、USBホスト機器60に対して、USB規格で定義されているRemote Wakeup信号を発行することによって、USBデバイス機器であるデジタルカメラ10からUSB通信を再開することができる。
By the way, when the
以上、本実施の形態のデジタルカメラ10では、サスペンド状態ではメインシステム部分への電源供給をオフにし、メインシステム部分と電源分離したUSB PHY11がVBUS線からの電源供給を受けて低消費電力モードで動作するようにした。
そして、メインシステム部分への電源供給をオフにした場合であってもUSBホスト機器60からの復帰信号を検知してUSB通信を再開できるようにし、またデジタルカメラ10の操作部材であるメインSW21を操作してもUSB通信を再開できるようにした。
また、復帰信号を受信した場合は、メインシステム部分がデジタルカメラ10の電池24から電源供給を受けて動作するようした。
これにより、サスペンド状態においてメインシステム部分への電源供給をオフにできるため、大幅に消費電力を抑えることができ、省電力効果を向上させることができる。
また、更に、サスペンド状態に移行する前にデジタルカメラ10の状態を保持してサスペンド状態から復帰後に保持した状態に戻すようにすることで、通信の復帰前と復帰後で液晶表示部に同じ画面を表示したりすることができる。また、画面の表示の際には、サスペンド状態から復帰したことをユーザに明示的に示したりすることもできる。
また、状態情報においてUSBホスト機器60との通信状態を保持させることによって、サスペンド状態から復帰した後に、接続確立のためのネゴシエーション手続等を繰り返す必要がなく、復帰するまでの時間を短縮することができる。
また、USBホスト機器60が供給できる電流値の制限に依存することなくデジタルカメラ10は動作することができ、USBホスト機器60の電源回路の不具合に起因してメモリカード内のデータが破壊されてしまう、といった問題も回避することができる。
As described above, in the
Even when the power supply to the main system portion is turned off, the return signal from the
Further, when the return signal is received, the main system portion operates by receiving power supply from the
Thereby, since the power supply to the main system part can be turned off in the suspended state, the power consumption can be significantly suppressed, and the power saving effect can be improved.
Furthermore, by holding the state of the
Further, by maintaining the communication state with the
In addition, the
(第2の実施の形態)
次に本発明の第2の実施の形態を説明する。本実施の形態においては、デジタルカメラの状態をUSBホスト機器に保持する場合について説明する。なお、第2実施の形態に係るデジタルカメラの構成は第1実施の形態に係るデジタルカメラと同様であるため、以下では、第1実施の形態と異なる部分を中心に説明し、同様の部分に関しては説明を省略する。
(Second Embodiment)
Next, a second embodiment of the present invention will be described. In this embodiment, a case where the state of the digital camera is held in the USB host device will be described. Since the configuration of the digital camera according to the second embodiment is the same as that of the digital camera according to the first embodiment, the following description will focus on parts that are different from the first embodiment. Will not be described.
図4、図5は、第2の実施の形態に係るデジタルカメラ10の動作を説明するフローチャートである。
4 and 5 are flowcharts for explaining the operation of the
まず図4は、デジタルカメラ10がUSBホスト機器60からサスペンド信号を受信してメインシステム部分(破線35内)への電源供給を停止する動作を説明するフローチャートである。本処理においては、デジタルカメラ10はUSBホスト機器60と通信確立状態にあることを前提とする。また、デジタルカメラ10はUSBホスト機器60と通信確立状態にある場合、定期的にデジタルカメラ10の状態に関する状態情報をUSBホスト機器60に送信する。以下、詳細を説明する。
First, FIG. 4 is a flowchart for explaining an operation in which the
まずステップS402において、システム制御部13は内部に有するタイマーを監視して、一定時間経過したかどうかを確認する。一定時間経過すると、ステップS404でデジタルカメラ10の状態情報をUSBホスト機器60に送信する。なお、状態情報の種類としては、第1実施の形態と同様である。また、一定時間については任意に定められたものとする。なお、ステップS404の処理は、本発明でいう状態情報送受信手段の一処理例である。
First, in step S402, the
またステップS402と同時にステップS403において、USBコントローラ12はサスペンド信号の発生を監視する。USBコントローラ12は3ms以上USBバス上に信号が発生しなかったことにより、サスペンド信号と判断する。サスペンド信号を検知すると、ステップS405において、USBコントローラ12はUSB PHY11に対して低消費電力モードへの移行を指示する。これによって、USB PHY11は内部のPLL回路29等を停止して、VBUS線からサスペンド電流だけを引き出すよう動作する。USB規格では、サスペンド状態では、VBUSからの電流消費は500μA以下と定められているため、その要件を満たすよう制御する。
In step S403 simultaneously with step S402, the
次にステップS406において、システム制御部13は、レジューム監視部26にレジューム信号(復帰信号)の発生を監視するように指示する。
In step S406, the
次にステップS407において、システム制御部13はUSBコントローラ12を介して、USB PHY11の出力端子をHi−Z(ハイインピーダンス)状態、入力端子をLレベルに固定するよう指示する。これによって、DC/DCコンバータ回路23からの電源供給を停止したときに、USBコントローラ12に流れ込む電流を排除するとともに、誤作動の発生を回避する。
In step S407, the
次にステップS408において、システム制御部13はシャットダウン処理を実行し、ステップS409においてCPU−PWCTL信号をLレベルに制御して、DC/DCコンバータ回路23をオフさせる。その後ステップS410でメインシステム部分への電源供給をオフにする。
Next, in step S408, the
次に図5は、デジタルカメラ10がレジューム信号を受信して、再起動する動作を説明するフローチャートである。
Next, FIG. 5 is a flowchart for explaining an operation in which the
ステップS502において、レジューム監視部26はレジューム信号(復帰信号)の発生を監視する。図8で説明したとおり、レジューム監視部26は、サスペンド状態で復帰信号を検知すると、出力信号であるPHY−PWCTLをHレベルで出力する。
In step S502, the
ステップ502で復帰信号を受信するとステップS503において、レジューム監視部26はPHY−PWCTLをHレベルで出力し、DC/DCコンバータ回路23をオン(駆動)させて電源供給を開始する。
When the return signal is received at
電源が供給されることでステップS504において、システム制御部13は起動されて、プログラムの実行が開始され、ステップS505において、CPU−PWCTLをHレベルに制御する。これによって、以降でUSB通信が再開してPHY−PWCTLがLレベルで出力されても、メインシステム部分への電源供給がオフされることはない。
When the power is supplied, the
次にステップS506において、USBコントローラ12はUSB PHY11に対して低消費電力モードからの復帰を指示し、ステップS507においてUSBホスト機器60とのUSB通信が再開される。
Next, in step S506, the
次にステップS508において、図4のステップS404でUSBホスト機器60に送信したカメラの状態情報のうち、最新のものをUSBホスト機器60から受信して、サスペンド状態に移行する前の状態にデジタルカメラ10を復帰させる。なお、ステップS508の処理は、本発明でいう状態情報送受信手段の一処理例である。
Next, in step S508, the latest camera status information transmitted from the
以上、本実施の形態のデジタルカメラ10では、サスペンド状態に移行する前のデジタルカメラ10の状態を、サスペンド状態から復帰した後にUSBホスト機器60から受信して、もとの状態に戻すことができる。そのため、第1実施の形態と同様に、復帰前と復帰後で液晶表示部に同じ画面を表示したり、サスペンド状態から復帰したことをユーザに明示的に示したりすることができる。また、USBホスト機器60との通信状態を保持させることによって、サスペンド状態から復帰した後に、接続確立のためのネゴシエーション手続等を繰り返す必要がなく、復帰するまでの時間を短縮することができる。
また、USBホスト機器60に保持するデジタルカメラ10の情報としては、例えば撮影に使用する各種撮影設定値であってもよい。例えばUSBホスト機器60から一定時間ごとにデジタルカメラ10を起動させて、同一の撮影設定値を使って撮影をするような場合に、デジタルカメラ10のフラッシュROM15を消費せずにサスペンド状態に移行する前の撮影設定値に戻すことができる。
As described above, in the
The information of the
(第3の実施の形態)
次に本発明の第3の実施の形態を説明する。第1実施の形態において、デジタルカメラがサスペンド状態で復帰信号を受信してからUSB通信を再開するまでに時間がかかる場合、USBホスト機器が送信するUSBパケットに対して応答ができない。そのため、USBホスト機器の動作によっては接続状態が解除される可能性がある。本実施の形態においては、デジタルカメラがUSB通信を再開可能になるまでの間、即ち復帰中の間、USB PHY11が一時的にUSBホスト機器から送信されるUSBパケットに対して応答する場合について説明する。なお、第3の実施の形態に係るデジタルカメラの構成は第1の実施の形態に係るデジタルカメラと同様であるため、以下では、第1の実施の形態と異なる部分を中心に説明し、同様の部分に関しては説明を省略する。
(Third embodiment)
Next, a third embodiment of the present invention will be described. In the first embodiment, when it takes time until the USB communication is resumed after the digital camera receives the return signal in the suspended state, it cannot respond to the USB packet transmitted by the USB host device. Therefore, the connection state may be released depending on the operation of the USB host device. In the present embodiment, a case will be described in which the
図6は、本発明の第3の実施の形態に係るデジタルカメラの概略構成を示すブロック図である。ULPIインターフェイスコントローラ25の内部に、NAK応答部39を備えている。この点を除いて、本図に示す構成は図1で示したブロック図の構成と同様である。
FIG. 6 is a block diagram showing a schematic configuration of a digital camera according to the third embodiment of the present invention. A
ULPIインターフェイスコントローラ25は、USBホスト機器60からUSBパケット(通信パケット)を受信した際に、SIE回路28から送られたトークンパケットやデータパケットを送信する。この送信においては、ULPI規格のプロトコルに従ってUSBコントローラ12に送信するモードと、NAK応答部39でNAK応答のハンドシェークパケット(応答パケット)を生成してSIE回路28に送信するモードとがある。
When the
図7は、デジタルカメラ10がレジューム信号を受信して再起動する動作を説明するフローチャートである。なお、デジタルカメラ10がサスペンド信号を受信してメインシステム部分への電源供給を停止する動作フローは、図2と同様であるため説明は省略する。
FIG. 7 is a flowchart for explaining the operation in which the
まずステップ702において、レジューム監視部26はレジューム信号(復帰信号)の発生を監視する。図8で説明したとおり、レジューム監視部26は、サスペンド状態で復帰信号を検知すると、出力信号であるPHY−PWCTLをHレベルで出力する。
First, in step 702, the
ステップ702で復帰信号を受信するとステップS703において、レジューム監視部26はUSB PHY11が自動的に低消費電力モードから復帰するよう動作させる。低消費電力モードから復帰処理では、内部のPLL回路29等を稼動させて、D+とD−の信号線を用いた作動信号が受信できる状態に復帰する。
When the return signal is received in step 702, in step S703, the
次にステップ704において、ULPIインターフェイスコントローラ25は、USBホスト機器60からUSBパケットを受信した際にNAK応答部39でNAK応答のハンドシェークパケットを生成してSIE回路28に送信するモードに切り替える。具体的には、INトークンパケット、SETUPトークンパケット、OUTトークンパケットを受信するとデバイスアドレスフィールドを調べる。そして、デジタルカメラ10に割り当てられたデバイスアドレスであった場合にNAKハンドシェークパケットを送信するよう動作する。
Next, in step 704, the
USB規格では、レジューム信号期間は短い場合20msであり、デジタルカメラ10がメインシステム部分への電源供給を再開してUSB通信を再開可能になるまでにそれ以上の時間がかかることが考えられる。本構成によれば、そのような場合でも、USB PHY11がNAKハンドシェークパケットを送信して通信状態を継続することによって、USBホスト機器60がデジタルカメラ10との接続状態を解除することを回避できる。
According to the USB standard, the resume signal period is 20 ms when it is short, and it may take more time before the
また、本実施の形態においては、USB PHY11がNAK応答のハンドシェークパケットを生成して送信するモードに設定されている間は、PHY−PWCTLをHレベルで出力するよう制御するものとする。
Further, in the present embodiment, while the
次にステップ705において、レジューム監視部26はPHY−PWCTLをHレベルで出力し、DC/DCコンバータ回路23をオンさせて電源供給を開始する。
In step 705, the
電源が供給されることでステップ706において、システム制御部13は起動されて、プログラムの実行が開始され、ステップS707において、CPU−PWCTLをHレベルに制御する。これによって、以降でUSB通信が再開してPHY−PWCTLがLレベルで出力されても、メインシステム部分への電源供給がオフされることはない。
When the power is supplied, the
次にステップS708において、システム制御部13はデジタルカメラ10の状態情報を領域33から読み出して、サスペンド状態に移行する前の状態にデジタルカメラ10を復帰させる。
Next, in step S708, the
次にステップS709において、ULPIインターフェイスコントローラ25は、PHY通信モードに切り替える。即ち、USBホスト機器60からUSBパケットを受信した際に、SIE回路28から送られたトークンパケットやデータパケットをULPI規格のプロトコルに従ってUSBコントローラ12に送信するモードに切り替える。そしてステップS710においてUSBホスト機器60とのUSB通信が再開される。
Next, in step S709, the
以上、本実施の形態のデジタルカメラ10では、メインシステム部分が再起動するまでの間、USB PHY11が一時的にUSBホスト機器60から送信されたUSBパケットに対して応答する。
これにより、USBホスト機器60との接続状態を継続することができ、復帰信号を受信してからUSB通信を再開するまでに時間がかかり、USBホスト機器60の動作によって接続状態が解除されてしまう可能性を排除できる。
また、メインシステム部分の起動時間の制約が緩和されるため、DC/DCコンバータ回路23がメインシステム部分を駆動させるために必要な規定電圧に達するまでの時間をより長くするように設計することができる。これにより、例えばシステム制御部13でのプログラムの実行速度をより遅くするようにして起動時の消費電力を少なくするように設計したりすることができる。またRAM14、フラッシュROM15の性能に関して高速なものでなくても構成可能になったりするため、より安価にシステム設計をしたりすることができる。
As described above, in the
As a result, the connection state with the
In addition, since the restriction on the start-up time of the main system part is relaxed, the time until the DC /
なお、以上で説明した本発明の第1〜3の実施の形態では、デジタルカメラを例に挙げたが、本発明はこれに限定されることはなく、デジタルビデオカメラ、携帯型情報端末(PDA)、携帯電話、携帯型オーディオプレーヤー等の電子機器にも適用できる。 In the first to third embodiments of the present invention described above, a digital camera has been described as an example. However, the present invention is not limited to this, and a digital video camera, a portable information terminal (PDA) ), And can also be applied to electronic devices such as mobile phones and portable audio players.
また、本発明を実現するために、上述した実施形態の機能を実現するソフトウェアのプログラムコード(コンピュータプログラム)を記録した記憶媒体を用いても良い。この場合には記憶媒体をシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(又はCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによって本発明の目的が達成される。 In order to realize the present invention, a storage medium in which a program code (computer program) of software that realizes the functions of the above-described embodiments may be used. In this case, the object of the present invention is achieved by supplying the storage medium to the system or apparatus, and the computer (or CPU or MPU) of the system or apparatus reads and executes the program code stored in the storage medium.
この場合、記憶媒体から読み出されたプログラムコード自体が上述した実施形態の機能を実現することになり、プログラムコード自体及びそのプログラムコードを記憶した記憶媒体は本発明を構成することになる。 In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the program code itself and the storage medium storing the program code constitute the present invention.
プログラムコードを供給するための記憶媒体としては、例えば、フレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、磁気テープ、不揮発性のメモリカード、ROM等を用いることができる。 As a storage medium for supplying the program code, for example, a flexible disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.
また、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(基本システム或いはオペレーティングシステム)等が実際の処理の一部又は全部を行う場合も含まれることは言うまでもない。 Needless to say, the OS (basic system or operating system) running on the computer performs part or all of the actual processing based on the instruction of the program code.
さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれてもよい。この場合には、書き込まれたプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部又は全部を行ってもよい。 Furthermore, the program code read from the storage medium may be written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. In this case, based on the instruction of the written program code, the CPU or the like provided in the function expansion board or function expansion unit may perform part or all of the actual processing.
10 デジタルカメラ
11 USB PHY
12 USBコントローラ
13 システム制御部
14 RAM
15 フラッシュROM
16 撮像部
17 信号処理部
18 メモリカード
19 ポート制御回路
20 操作部
21 メインスイッチ(メインSW)
22 DC/DC制御部
23 DC/DCコンバータ回路
24 電池
25 ULPIインターフェイスコントローラ
26 レジューム監視部
27 USBアナログフロントエンド部
28 SIE回路
29 PLL回路
30 クリスタルオシレータ
31 外部水晶発振子
32 レギュレータ回路
33 領域
34 システムバス
37 USB mini−Bレセプタクル
38 バッファ
39 NAK応答部
50 USBケーブル
60 USBホスト機器
10
12
15 Flash ROM
16
22 DC /
Claims (7)
前記ホスト機器と通信するトランシーバ手段と、
当該周辺機器に電源を供給する電源手段と、
前記ホスト機器からの命令に応じて、当該周辺機器を低消費電力モードへ移行させるモード移行手段と、
前記低消費電力モードへの以降の際に、前記トランシーバ手段が前記ホスト機器から前記低消費電力モードにおける電力供給を受けるよう制御する電力制御手段と、
前記電力制御手段により前記トランシーバ手段が前記ホスト機器から前記低消費電力モードにおける電力供給を受けるよう制御した後、前記周辺機器の状態に関する状態情報を記録媒体に保持する保持手段と、
前記保持手段により前記状態情報を前記記録媒体に保持した後、前記電源手段による電源供給を停止する電源制御手段と、
前記低消費電力モードの間、前記ホスト機器から電源供給を受けて、前記ホスト機器から送信される前記低消費電力モードからの復帰命令を検知する前記トランシーバ手段に含まれる検知手段と、
前記検知手段が前記復帰命令を検知した場合に、当該周辺機器を前記低消費電力モードから復帰させるモード復帰手段と、
前記低消費電力モードからの復帰の際に、前記保持手段により前記記録媒体に保持した前記状態情報を取得する取得手段とを有すること特徴とする周辺機器。 A peripheral device that can be connected to a host device,
Transceiver means for communicating with the host device;
Power supply means for supplying power to the peripheral device;
In accordance with a command from the host device, mode transition means for transitioning the peripheral device to a low power consumption mode;
Power control means for controlling the transceiver means to receive power supply in the low power consumption mode from the host device in the subsequent to the low power consumption mode;
Holding means for holding state information about the state of the peripheral device in a recording medium after controlling the transceiver means to receive power supply in the low power consumption mode from the host device by the power control means;
Power supply control means for stopping power supply by the power supply means after holding the state information in the recording medium by the holding means;
Detecting means included in the transceiver means for receiving a power supply from the host device during the low power consumption mode and detecting a return instruction from the low power consumption mode transmitted from the host device;
Mode return means for returning the peripheral device from the low power consumption mode when the detection means detects the return instruction ;
A peripheral device comprising: an acquisition unit configured to acquire the state information held in the recording medium by the holding unit when returning from the low power consumption mode .
前記取得手段は、前記電源制御手段により前記電源手段による電源供給を開始した後、前記保持手段により前記記録媒体に保持した前記状態情報を取得することを特徴とする請求項1に記載の周辺機器。 The power supply control means starts power supply by the power supply means when the detection means detects the return command ,
2. The peripheral device according to claim 1 , wherein the acquisition unit acquires the state information held in the recording medium by the holding unit after the power supply unit starts power supply by the power source control unit. .
前記低消費電力モードへの移行の際に、前記状態情報を前記ホスト機器に送信し、前記低消費電力モードからの復帰の際に、前記ホスト機器から前記状態情報を受信することを特徴とする請求項1〜3のいずれか1項に記載の周辺機器。 Comprising status information transmitting / receiving means for transmitting / receiving status information regarding the status of the peripheral device to / from the host device;
The status information is transmitted to the host device upon transition to the low power consumption mode, and the status information is received from the host device upon return from the low power consumption mode. The peripheral device according to any one of claims 1 to 3 .
前記ホスト機器からの命令に応じて、当該周辺機器を低消費電力モードへ移行させるモード移行ステップと、
前記低消費電力モードへの以降の際に、前記トランシーバ手段が前記ホスト機器から前記低消費電力モードにおける電力供給を受けるよう制御する電力制御ステップと、
前記電力制御ステップで前記トランシーバ手段が前記ホスト機器から前記低消費電力モードにおける電力供給を受けるよう制御した後、前記周辺機器の状態に関する状態情報を記録媒体に保持する保持ステップと、
前記保持ステップで前記状態情報を前記記録媒体に保持した後、前記電源手段による電源供給を停止する電源制御ステップと、
前記低消費電力モードの間、前記ホスト機器から電源供給を受けて、前記ホスト機器から送信される前記低消費電力モードからの復帰命令を前記トランシーバ手段に含まれる検知手段により検知する検知ステップと、
前記検知ステップで前記復帰命令を検知した場合に、当該周辺機器を前記低消費電力モードから復帰させるモード復帰ステップと、
前記低消費電力モードからの復帰の際に、前記保持ステップで前記記録媒体に保持した前記状態情報を取得する取得ステップとを有すること特徴とする周辺機器の制御方法。 A peripheral device control method comprising a transceiver means that can be connected to a host device and communicates with the host device, and a power source means for supplying power to the peripheral device,
In accordance with a command from the host device, a mode transition step for shifting the peripheral device to a low power consumption mode;
A power control step of controlling the transceiver means to receive power supply in the low power consumption mode from the host device in the subsequent time to the low power consumption mode;
A holding step of holding state information about the state of the peripheral device in a recording medium after controlling the transceiver means to receive power supply in the low power consumption mode from the host device in the power control step;
A power control step of stopping power supply by the power supply means after holding the state information in the recording medium in the holding step;
A detection step of receiving a power supply from the host device during the low power consumption mode and detecting a return instruction from the low power consumption mode transmitted from the host device by a detection unit included in the transceiver unit ;
A mode return step for returning the peripheral device from the low power consumption mode when the return command is detected in the detection step ;
A method for controlling a peripheral device, comprising: an acquisition step of acquiring the state information held in the recording medium in the holding step when returning from the low power consumption mode .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008028031A JP5089415B2 (en) | 2008-02-07 | 2008-02-07 | Peripheral device, control method thereof and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008028031A JP5089415B2 (en) | 2008-02-07 | 2008-02-07 | Peripheral device, control method thereof and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009187396A JP2009187396A (en) | 2009-08-20 |
JP5089415B2 true JP5089415B2 (en) | 2012-12-05 |
Family
ID=41070552
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008028031A Expired - Fee Related JP5089415B2 (en) | 2008-02-07 | 2008-02-07 | Peripheral device, control method thereof and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5089415B2 (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5678765B2 (en) * | 2010-08-17 | 2015-03-04 | 株式会社デンソーウェーブ | Mobile device |
JP2013093829A (en) * | 2011-10-05 | 2013-05-16 | Sanyo Electric Co Ltd | Electronic apparatus |
JP5932346B2 (en) * | 2012-01-18 | 2016-06-08 | ルネサスエレクトロニクス株式会社 | Semiconductor device, radio communication terminal and inter-circuit communication system using the same |
JP6261156B2 (en) | 2012-03-06 | 2018-01-17 | キヤノン株式会社 | Image forming apparatus |
JP6240627B2 (en) * | 2015-02-27 | 2017-11-29 | 株式会社ソニー・インタラクティブエンタテインメント | Information processing apparatus and screen generation method |
WO2018221591A1 (en) * | 2017-05-31 | 2018-12-06 | キヤノン株式会社 | Accessory device, camera, and communication control program |
JP7427385B2 (en) | 2019-07-31 | 2024-02-05 | キヤノン株式会社 | Electronic equipment and its control method |
JP7293986B2 (en) * | 2019-08-27 | 2023-06-20 | 沖電気工業株式会社 | data processor |
JP7032497B1 (en) | 2020-09-11 | 2022-03-08 | レノボ・シンガポール・プライベート・リミテッド | Information processing device and control method |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0855073A (en) * | 1994-08-08 | 1996-02-27 | Hitachi Ltd | Network system and information processor |
JP2001067156A (en) * | 1999-08-27 | 2001-03-16 | Canon Inc | Peripheral equimenht of computer, control method therefor, image pickup device, and storage medium |
JP2002175127A (en) * | 2000-09-29 | 2002-06-21 | Oki Electric Ind Co Ltd | Microcontroller |
JP2003223247A (en) * | 2002-01-30 | 2003-08-08 | Sony Corp | Electric equipment and communication method |
JP2005275612A (en) * | 2004-03-23 | 2005-10-06 | Sony Corp | Electronic equipment |
KR101128352B1 (en) * | 2005-02-18 | 2012-03-26 | 삼성전자주식회사 | Usb controller and method for controlling the suspend mode of the same |
-
2008
- 2008-02-07 JP JP2008028031A patent/JP5089415B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2009187396A (en) | 2009-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5089415B2 (en) | Peripheral device, control method thereof and program | |
JP3722217B2 (en) | Data transfer control device, electronic device, and data transfer control method | |
EP1847911B1 (en) | Electronic device, and external device control method using said electronic device | |
JP3632695B2 (en) | Data transfer control device, electronic device, and data transfer control method | |
JP5454224B2 (en) | Storage device and storage system | |
US7337382B2 (en) | Data transfer control device, electronic instrument, and data transfer control method | |
JP3726898B2 (en) | Data transfer control device, electronic device, and data transfer control method | |
JP2001067156A (en) | Peripheral equimenht of computer, control method therefor, image pickup device, and storage medium | |
JP3685151B2 (en) | Clock control circuit, data transfer control device, and electronic device | |
JP2001067156A5 (en) | Computer peripherals and their control methods, imaging devices and their control methods, and computer-readable storage media | |
JP3685150B2 (en) | Clock control circuit, data transfer control device, and electronic device | |
JP4239930B2 (en) | Data transfer control system, electronic device and program | |
JP2004194257A (en) | Control apparatus and control method | |
JP2003122458A (en) | Computer device, controller, and method of controlling computer device | |
JP4497587B2 (en) | Computer system, computer, message processing method, and computer-readable storage medium | |
JP2008211761A (en) | Image forming apparatus and connection notification method | |
JP2013101520A (en) | Peripheral device and its power supply control method | |
TWI484348B (en) | Controller, systems and methods for transferring data | |
JP2007280211A (en) | Print system, printer, printer control method and program | |
JP2008287578A (en) | Memory controller, information processing apparatus, and electronic device | |
JP2007102370A (en) | Electronic device, method for controlling operation mode executed thereby, and electronic device system | |
JP4485113B2 (en) | PC adapter for small cards | |
JP2003323395A (en) | Data transfer control device, electronic device, and data transfer control method | |
JP2010015429A (en) | Storage device controller, information processing apparatus, and electronic apparatus | |
JP2012061048A (en) | Data storage device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20101210 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20111104 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20111115 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120113 |
|
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: 20120814 |
|
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: 20120911 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150921 Year of fee payment: 3 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 5089415 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150921 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |