JP5089415B2 - Peripheral device, control method thereof and program - Google Patents

Peripheral device, control method thereof and program Download PDF

Info

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
Application number
JP2008028031A
Other languages
Japanese (ja)
Other versions
JP2009187396A (en
Inventor
裕司 小出
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2008028031A priority Critical patent/JP5089415B2/en
Publication of JP2009187396A publication Critical patent/JP2009187396A/en
Application granted granted Critical
Publication of JP5089415B2 publication Critical patent/JP5089415B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy 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.

特開2001−67156号公報JP 2001-67156 A 特開2002−175127号公報JP 2002-175127 A

さて、従来の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 host device 60 such as a PC is connected to the digital camera 10 via a USB cable 50. The digital camera 10 operates as a USB device (peripheral device) of HS (High Speed) and FS (Full Speed).

USBホスト機器60は、VBUS線上に電源を供給する電源回路(不図示)を備えている。USBケーブル50は、VBUS線、GND線、D+線及びD−線を具備する信号ケーブルと、その両側のコネクタ(不図示)とからなる。   The USB host device 60 includes a power supply circuit (not shown) that supplies power to the VBUS line. The USB cable 50 includes a signal cable having a VBUS line, a GND line, a D + line, and a D− line, and connectors (not shown) on both sides thereof.

デジタルカメラ10は、以下の要素を具備する。即ち、デジタルカメラ10において、11はUSB PHY(physical layer)、12はUSBプロトコルに従ってデータ送受信を制御するUSBコントローラである。   The digital camera 10 includes the following elements. That is, in the digital camera 10, 11 is a USB PHY (physical layer), and 12 is a USB controller that controls data transmission / reception according to the USB protocol.

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を介して接続する。   Reference numeral 13 denotes a system control unit for controlling the digital camera 10, reference numeral 14 denotes a RAM serving as a work memory for the system control unit 13, and reference numeral 15 denotes a flash ROM for holding a program for controlling the digital camera 10, which holds camera state information. A region 33 is provided. Reference numeral 16 denotes an imaging unit that includes a photographic lens (not shown), an imaging device, an analog / digital (A / D) conversion circuit, and the like, and outputs a subject image formed via the photographic lens as a digital image signal. A signal processing unit 17 performs camera signal processing on the digital image signal from the imaging unit 16. Reference numeral 18 denotes a detachable memory card that finally stores a photographed digital image signal. Reference numeral 19 denotes a port control circuit that controls input from an operation unit 20 and a main SW 21 described later. The system control unit 13, the RAM 14, the flash ROM 15, the signal processing unit 17, the memory card 18, and the port control circuit 19 are connected via a system bus 34.

20はデジタルカメラ10を操作するための操作部であり、具体的にはMENUボタンや十字キー、シャッターボタン等、ユーザからの所定の指示を受け付けるためのものである。21はメインスイッチ(メインSW)であり、ユーザからの電源切り替えの指示を受け付けるためのものである。   Reference numeral 20 denotes an operation unit for operating the digital camera 10, specifically for receiving predetermined instructions from the user such as a MENU button, a cross key, a shutter button, and the like. Reference numeral 21 denotes a main switch (main SW) for receiving an instruction to switch the power supply from the user.

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 battery 24 serves as a power source for the digital camera 10, and a DC / DC converter circuit 23 generates a predetermined power supply voltage from the output voltage of the battery 24 and supplies it to the main system portion surrounded by a broken line 35. Reference numeral 22 denotes a DC / DC control unit that controls driving of the DC / DC converter circuit 23. When a power control signal (hereinafter referred to as PWCTL) which is a control signal from the DC / DC control unit 22 becomes H level, the DC / DC converter circuit 23 is activated, and power is supplied to the system control unit 13, the USB controller 12, the RAM 14, and the like. Supplied. The system control unit 13 controls driving of the DC / DC converter circuit 23 via the DC / DC control unit 22 using the output signal (hereinafter referred to as CPU-PWCTL). The VBUS line of the USB cable 50 is input to the DC / DC control unit 22 via the buffer 38 for preventing latch-up. Reference numeral 37 denotes a USB mini-B receptacle, into which a mini-B connector (not shown) of the USB cable 50 is inserted.

また、上述したUSB PHY11は独立した一部品として構成され、その内部構成は下記の通りである。即ち、USB PHY11において、27はUSBアナログフロントエンド部であり、FS(Full Speed)やHS(High Speed)でのデータの送受信を行うためのドライバやレシーバを含む。USBではD+とD−の信号線を用いた作動信号によりデータが送受信される。   The USB PHY 11 described above is configured as an independent component, and the internal configuration is as follows. That is, in the USB PHY 11, reference numeral 27 denotes a USB analog front end unit, which includes a driver and a receiver for transmitting and receiving data in FS (Full Speed) and HS (High Speed). In USB, data is transmitted and received by an operation signal using D + and D− signal lines.

28はUSBアナログフロントエンド部27からのUSBシリアル信号をパラレル信号に変換、若しくはその逆変換するSIE回路である。25はULPI(UTMI+ Low Pin Interface)規格に準拠したULPIインターフェイスコントローラである。ULPI規格は、USBコントローラ12とUSB PHY11との間のインターフェイス規格であり、下記の8本又は12本の配線で両者を接続できる。   An SIE circuit 28 converts a USB serial signal from the USB analog front end unit 27 into a parallel signal or vice versa. Reference numeral 25 denotes an ULPI interface controller conforming to the ULPI (UTMI + Low Pin Interface) standard. The ULPI standard is an interface standard between the USB controller 12 and the USB PHY 11 and can be connected by the following eight or twelve wires.

・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 USB controller 12.

ULPIインターフェイスコントローラ25は、ULPI規格のプロトコルに従ってUSBコントローラ12から送られてくるデータをSIE回路28に送信する。また逆に、SIE回路28から送られたデータをULPI規格のプロトコルに従ってUSBコントローラ12に送信する。このようにして通信制御を行うことで、USBコントローラ12とUSB PHY11との間においても通信が行われる。なお、具体的な通信の一例を挙げれば、USBコントローラ12がコマンド形式でChirp信号の送信を指示したり、USB PHY11を低消費電力モードに設定したりする。   The ULPI interface controller 25 transmits data sent from the USB controller 12 to the SIE circuit 28 in accordance with the protocol of the ULPI standard. Conversely, the data sent from the SIE circuit 28 is sent to the USB controller 12 in accordance with the ULPI standard protocol. By performing communication control in this way, communication is also performed between the USB controller 12 and the USB PHY 11. As an example of specific communication, the USB controller 12 instructs the transmission of the Chirp signal in a command format, or sets the USB PHY 11 to the low power consumption mode.

また、26はレジューム監視部であり、サスペンド状態にあるときに、D+線、D−線がサスペンド状態からの復帰信号(復帰命令)であるレジューム状態になったことを示す信号を監視する。31は外部水晶発振子(XTAL)、30は外部水晶発振子31からのsin波形を方形波に変換するクリスタルオシレータ(OSC)である。29はPLL回路であり、USB PHY11内部で使用する60MHzや480MHzといった周波数のクロックを生成する。32はレギュレータ回路であり、USBのVBUS線を介してUSBホスト機器60から供給される電源から所定の電源電圧を生成して、USB PHY11における破線36で囲んだ部分に存在する各部に供給する。   Reference numeral 26 denotes a resume monitoring unit that monitors a signal indicating that the D + line and the D− line are in a resume state (return command) from the suspend state when in the suspend state. 31 is an external crystal oscillator (XTAL), and 30 is a crystal oscillator (OSC) that converts a sin waveform from the external crystal oscillator 31 into a square wave. Reference numeral 29 denotes a PLL circuit that generates a clock having a frequency of 60 MHz or 480 MHz used in the USB PHY 11. A regulator circuit 32 generates a predetermined power supply voltage from the power supplied from the USB host device 60 via the USB VBUS line, and supplies the generated power supply voltage to each part existing in the portion surrounded by the broken line 36 in the USB PHY 11.

また、図示していないが、VBUS線はラッチアップ防止のバッファを介してポート制御回路19に接続される。システム制御部13は、電池24により動作電力を供給されている状態で、VBUS線に所定以上の電圧が印加されているかどうかを、ポート制御回路19を介して知ることができる。   Although not shown, the VBUS line is connected to the port control circuit 19 via a latch-up prevention buffer. The system control unit 13 can know through the port control circuit 19 whether or not a predetermined voltage or higher is applied to the VBUS line in a state where the operating power is supplied from the battery 24.

図2、図3は、以上のような構成を具備したデジタルカメラ10の動作を説明するフローチャートである。   2 and 3 are flowcharts for explaining the operation of the digital camera 10 having the above-described configuration.

まず図2は、デジタルカメラ10がUSBホスト機器60からサスペンド信号を受信してメインシステム部分(破線35内)への電源供給を停止する動作を説明するフローチャートである。本処理においては、デジタルカメラ10はUSBホスト機器60と通信確立状態にあることを前提とする。以下、詳細を説明する。   First, FIG. 2 is a flowchart for explaining the operation in which the digital camera 10 receives the suspend signal from the USB host device 60 and stops the power supply to the main system portion (inside the broken line 35). In this process, it is assumed that the digital camera 10 is in a communication established state with the USB host device 60. Details will be described below.

まずステップ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 USB controller 12 monitors the generation of a suspend signal (Suspend signal). The USB controller 12 determines that the signal is a suspend signal when no signal is generated on the USB bus for 3 ms or longer. When the suspend signal is detected, in step S203, the USB controller 12 instructs the USB PHY 11 to shift to the low power consumption mode. As a result, the USB PHY 11 stops the internal PLL circuit 29 and the like so as to draw only the suspend current from the VBUS line (in other words, a part of communication is stopped). In the USB standard, in the suspended state, the current consumption from VBUS is determined to be 500 μA or less, so control is performed so as to satisfy the requirement. Note that the processing in step S203 is an example of processing in the mode transition means of the present invention.

次にステップS204において、システム制御部13は現在のデジタルカメラ10の状態に関する状態情報をフラッシュROM15の領域33に保持する。例えばデジタルカメラ10の液晶表示部(不図示)に表示している内容や、USBホスト機器60との通信状態等を保持する。   Next, in step S <b> 204, the system control unit 13 holds state information regarding the current state of the digital camera 10 in the area 33 of the flash ROM 15. For example, the contents displayed on the liquid crystal display unit (not shown) of the digital camera 10 and the communication state with the USB host device 60 are stored.

次にステップS205において、システム制御部13は、レジューム監視部26に復帰信号であるレジューム信号(Resume信号)の発生を監視するように指示する。レジューム監視部26は、FSデバイス又はHSデバイスのレジューム信号を、D+線がLレベル、D−線がHレベルに変化したことで判断する。レジューム監視部26はまた、BUS RESET信号の発生も同時に監視しており、BUS RESET信号を、D+線がLレベル、D−線がLレベルに変化したことで判断する。   In step S205, the system control unit 13 instructs the resume monitoring unit 26 to monitor the generation of a resume signal (Resume signal) that is a return signal. The resume monitoring unit 26 determines the resume signal of the FS device or the HS device when the D + line changes to the L level and the D− line changes to the H level. The resume monitoring unit 26 also monitors the generation of the BUS RESET signal at the same time, and determines the BUS RESET signal when the D + line changes to the L level and the D− line changes to the L level.

図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 resume monitoring unit 26 according to the USB communication status. The resume monitoring unit 26 determines the USB communication status based on the state of the Suspend State bit held in the D + line, the D− line, and the USB PHY 11 of the USB cable 50, and outputs PHY-PWCTL corresponding thereto. Is configured to do.

図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 resume monitoring unit 26 accordingly. Each state will be described in detail. Reference numeral 801 denotes a state in which the USB cable 50 is not connected, or a state in which the USB cable 50 is connected but the USB host device 60 does not supply power to the VBUS line. . Reference numeral 802 denotes a state in which the digital camera 10 is connected to the USB host device 60, the power supply is supplied via the VBUS line, and the USB PHY 11 is initialized by the operation of the internal RESET. Reference numeral 803 denotes a state in which the digital camera 10 is communicating with the USB host device 60. Reference numeral 804 denotes that the digital camera 10 is in the suspended state. Reference numeral 805 denotes a state in which the digital camera 10 receives a resume signal in the suspended state 804. Reference numeral 806 denotes a state in which the digital camera 10 receives a BUS RESET signal in the suspended state 804.

以上のように、レジューム監視部26はUSB通信状況に応じて、PHY−PWCTLをHi−Z(ハイインピーダンス)、L又はHに変化させて出力する。詳細には、サスペンド状態でレジューム信号又はBUS RESET信号を受信したときには、PHY−PWCTLをHレベルで出力する。なお、ステップS205の段階では、サスペンド状態804であるため、PHY−PWCTLのLレベルを出力する。   As described above, the resume monitoring unit 26 changes PHY-PWCTL to Hi-Z (high impedance), L, or H and outputs it according to the USB communication status. Specifically, when a resume signal or a BUS RESET signal is received in the suspended state, PHY-PWCTL is output at the H level. Since the suspended state 804 is in the stage of step S205, the L level of PHY-PWCTL is output.

次にステップS206において、システム制御部13はUSBコントローラ12を介して、USB PHY11の出力端子をHi−Z(ハイインピーダンス)状態、入力端子をLレベルに固定するよう指示する。これによって、DC/DCコンバータ回路23からの電源供給を停止したときに、USBコントローラ12に流れ込む電流を排除するとともに、誤作動の発生を回避する。   In step S206, the system control unit 13 instructs the USB PHY 11 to fix the output terminal of the USB PHY 11 to the Hi-Z (high impedance) state and the input terminal to the L level via the USB controller 12. As a result, when the power supply from the DC / DC converter circuit 23 is stopped, the current flowing into the USB controller 12 is eliminated and the occurrence of malfunction is avoided.

次にステップS207において、システム制御部13はでシャットダウン処理を実行する。シャットダウン処理では、例えば撮影レンズ等の各部の終了動作や、各種設定値等をフラッシュROM15に記憶する処理や、USBコントローラ12の終了動作である。またシステム制御部13の出力端子をHi−Zに設定する処理も含む。   Next, in step S207, the system control unit 13 executes a shutdown process. The shutdown process includes, for example, an end operation of each unit such as a photographing lens, a process of storing various setting values and the like in the flash ROM 15, and an end operation of the USB controller 12. Moreover, the process which sets the output terminal of the system control part 13 to Hi-Z is also included.

次にステップS208において、システム制御部13は出力信号であるCPU−PWCTLをLレベルに制御して、DC/DCコンバータ回路23をオフにし、ステップS209において、メインシステム部分(破線35内)への電源供給をオフにする。なお、ステップS208、S209の処理は、本発明でいう電源制御手段の一処理例である。   Next, in step S208, the system control unit 13 controls the CPU-PWCTL, which is an output signal, to L level to turn off the DC / DC converter circuit 23. Turn off the power supply. Note that the processing of steps S208 and S209 is an example of processing of the power control means referred to in the present invention.

このように、本実施の形態のデジタルカメラ10はサスペンド状態ではメインシステム部分への電源供給をオフにするため、消費電力を大幅に低減し、電池24の消耗を防いでいる。一方、USB PHY11は、メインシステム部分とは電源分離されている構成であり、サスペンド状態であってもVBUS線からの電源供給を受けて低消費電力モードで動作することができる。これにより、サスペンド状態の間、通信状態のときよりも低消費電力の状態で、レジューム監視部26においてレジューム信号の発生を監視することができる。   Thus, since the digital camera 10 of the present embodiment turns off the power supply to the main system portion in the suspended state, the power consumption is greatly reduced and the battery 24 is prevented from being consumed. On the other hand, the USB PHY 11 has a configuration in which power is separated from the main system portion, and can operate in a low power consumption mode by receiving power supply from the VBUS line even in the suspended state. Thereby, during the suspend state, the resume monitoring unit 26 can monitor the generation of the resume signal in a state of lower power consumption than in the communication state.

次に図3は、デジタルカメラ10がレジューム信号を受信して、再起動する動作を説明するフローチャートである。   Next, FIG. 3 is a flowchart for explaining an operation in which the digital camera 10 receives a resume signal and restarts.

まずステップS302において、レジューム監視部26はレジューム信号(復帰信号)の発生を監視する。図8で説明したとおり、レジューム監視部26はサスペンド状態で復帰信号を検知すると、出力信号であるPHY−PWCTLをHレベルで出力する。なお、ステップS302の処理は、本発明でいう検知手段の一処理例である。   First, in step S302, the resume monitoring unit 26 monitors the generation of a resume signal (return signal). As described with reference to FIG. 8, when the resume monitoring unit 26 detects the return signal in the suspended state, the resume monitoring unit 26 outputs the output signal PHY-PWCTL at the H level. Note that the processing in step S302 is an example of processing of the detection means referred to in the present invention.

図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 / DC control unit 22 and the main SW 21. In FIG. 9, an AND circuit 91 is a 2-input AND gate. Signals input to the AND circuit 91 are VBUS-PWCTL that is a signal that has passed through the latch-up prevention buffer 38 via the VBUS line, and PHY-PWCTL that is an output signal of the resume monitoring unit 26. The OR circuit 92 is a three-input OR gate, and an input signal is an output of the AND circuit 91, connected to the main SW 21 (MAIN-PWCTL), and an output signal of the system control unit 13 is CPU-PWCTL. is there. PWCTL that is an output signal of the OR circuit 92 is connected to the DC / DC converter circuit 23. That is, when the power is supplied to the VBUS line and the resume monitoring unit 26 detects a return signal, the main SW 21 is operated, or the CPU-PWCTL is controlled to the H level, the DC / DC converter The circuit 23 is configured to start supplying power.

ステップ302で復帰信号を受信するとステップS303において、レジューム監視部26はPHY−PWCTLをHレベルで出力し、DC/DCコンバータ回路23をオン(駆動)させて電源供給を開始する。なお、ステップS303の処理は、本発明でいう電源制御手段の一処理例である。   When the return signal is received in step 302, in step S303, the resume monitoring unit 26 outputs PHY-PWCTL at H level, turns on (drives) the DC / DC converter circuit 23, and starts supplying power. Note that the process of step S303 is an example of a process of the power supply control means referred to in the present invention.

電源が供給されることでステップS304において、システム制御部13は起動されて、プログラムの実行が開始され、ステップS305において、CPU−PWCTLをHレベルに制御する。これによって、以降でUSB通信が再開してPHY−PWCTLがLレベルで出力されても、メインシステム部分への電源供給がオフされることはない。   When the power is supplied, the system control unit 13 is activated in step S304, and the execution of the program is started. In step S305, the CPU-PWCTL is controlled to the H level. Thus, even if USB communication is restarted and PHY-PWCTL is output at the L level thereafter, the power supply to the main system portion is not turned off.

次にステップS306において、システム制御部13はデジタルカメラ10の状態情報を領域33から読み出して(取得して)、サスペンド状態に移行する前の状態にデジタルカメラ10を復帰させる。   In step S306, the system control unit 13 reads (acquires) the state information of the digital camera 10 from the area 33, and returns the digital camera 10 to the state before the transition to the suspend state.

次にステップS307において、USBコントローラ12はUSB PHY11に対して低消費電力モードからの復帰を指示し、ステップ308においてUSBホスト機器60とのUSB通信が再開される。なお、ステップS303〜S308の処理は、本発明でいうモード復帰手段の一処理例である。   In step S307, the USB controller 12 instructs the USB PHY 11 to return from the low power consumption mode. In step 308, USB communication with the USB host device 60 is resumed. Note that the processing of steps S303 to S308 is an example of processing of the mode return means referred to in the present invention.

ところで、デジタルカメラ10がサスペンド状態に移行してメインシステム部分への電源供給をオフした場合に、図9で説明した通りメインSW21を操作することによってもデジタルカメラを再起動することができる。その場合、図3のステップS307の後に、USBホスト機器60に対して、USB規格で定義されているRemote Wakeup信号を発行することによって、USBデバイス機器であるデジタルカメラ10からUSB通信を再開することができる。   By the way, when the digital camera 10 shifts to the suspended state and the power supply to the main system portion is turned off, the digital camera can also be restarted by operating the main SW 21 as described in FIG. In that case, after step S307 in FIG. 3, by issuing a Remote Wakeup signal defined in the USB standard to the USB host device 60, the USB communication is resumed from the digital camera 10 which is the USB device device. Can do.

以上、本実施の形態のデジタルカメラ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 digital camera 10 according to the present embodiment, the power supply to the main system part is turned off in the suspended state, and the USB PHY 11 separated from the main system part receives the power supply from the VBUS line and is in the low power consumption mode. Made to work.
Even when the power supply to the main system portion is turned off, the return signal from the USB host device 60 is detected so that the USB communication can be resumed, and the main SW 21 that is an operation member of the digital camera 10 is also turned on. USB communication can be resumed even if operated.
Further, when the return signal is received, the main system portion operates by receiving power supply from the battery 24 of the digital camera 10.
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 digital camera 10 before shifting to the suspend state and returning to the state after the return from the suspend state, the same screen is displayed on the liquid crystal display unit before and after the return of communication. Can be displayed. In addition, when the screen is displayed, it is possible to explicitly indicate to the user that the user has returned from the suspended state.
Further, by maintaining the communication state with the USB host device 60 in the state information, it is not necessary to repeat the negotiation procedure for establishing a connection after returning from the suspended state, and the time until returning can be shortened. it can.
In addition, the digital camera 10 can operate without depending on the limit of the current value that can be supplied by the USB host device 60, and the data in the memory card is destroyed due to the malfunction of the power supply circuit of the USB host device 60. Can be avoided.

(第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 digital camera 10 according to the second embodiment.

まず図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 digital camera 10 receives a suspend signal from the USB host device 60 and stops supplying power to the main system portion (inside the broken line 35). In this process, it is assumed that the digital camera 10 is in a communication established state with the USB host device 60. In addition, when the digital camera 10 is in a communication established state with the USB host device 60, the digital camera 10 periodically transmits state information regarding the state of the digital camera 10 to the USB host device 60. Details will be described below.

まずステップS402において、システム制御部13は内部に有するタイマーを監視して、一定時間経過したかどうかを確認する。一定時間経過すると、ステップS404でデジタルカメラ10の状態情報をUSBホスト機器60に送信する。なお、状態情報の種類としては、第1実施の形態と同様である。また、一定時間については任意に定められたものとする。なお、ステップS404の処理は、本発明でいう状態情報送受信手段の一処理例である。   First, in step S402, the system control unit 13 monitors an internal timer to check whether or not a predetermined time has elapsed. When the predetermined time has elapsed, the status information of the digital camera 10 is transmitted to the USB host device 60 in step S404. Note that the type of status information is the same as in the first embodiment. In addition, the fixed time is arbitrarily determined. Note that the processing in step S404 is an example of processing in the state information transmitting / receiving means referred to in the present invention.

またステップ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 USB controller 12 monitors the generation of the suspend signal. The USB controller 12 determines that the signal is a suspend signal when no signal is generated on the USB bus for 3 ms or longer. When the suspend signal is detected, in step S405, the USB controller 12 instructs the USB PHY 11 to shift to the low power consumption mode. As a result, the USB PHY 11 operates to stop the internal PLL circuit 29 and the like and draw only the suspend current from the VBUS line. In the USB standard, in the suspended state, the current consumption from VBUS is determined to be 500 μA or less, so control is performed so as to satisfy the requirement.

次にステップS406において、システム制御部13は、レジューム監視部26にレジューム信号(復帰信号)の発生を監視するように指示する。   In step S406, the system control unit 13 instructs the resume monitoring unit 26 to monitor the generation of the resume signal (return signal).

次にステップS407において、システム制御部13はUSBコントローラ12を介して、USB PHY11の出力端子をHi−Z(ハイインピーダンス)状態、入力端子をLレベルに固定するよう指示する。これによって、DC/DCコンバータ回路23からの電源供給を停止したときに、USBコントローラ12に流れ込む電流を排除するとともに、誤作動の発生を回避する。   In step S407, the system control unit 13 instructs the USB PHY 11 to fix the output terminal of the USB PHY 11 to the Hi-Z (high impedance) state and the input terminal to the L level via the USB controller 12. As a result, when the power supply from the DC / DC converter circuit 23 is stopped, the current flowing into the USB controller 12 is eliminated and the occurrence of malfunction is avoided.

次にステップS408において、システム制御部13はシャットダウン処理を実行し、ステップS409においてCPU−PWCTL信号をLレベルに制御して、DC/DCコンバータ回路23をオフさせる。その後ステップS410でメインシステム部分への電源供給をオフにする。   Next, in step S408, the system control unit 13 executes a shutdown process, and in step S409, controls the CPU-PWCTL signal to L level to turn off the DC / DC converter circuit 23. In step S410, the power supply to the main system portion is turned off.

次に図5は、デジタルカメラ10がレジューム信号を受信して、再起動する動作を説明するフローチャートである。   Next, FIG. 5 is a flowchart for explaining an operation in which the digital camera 10 receives a resume signal and restarts.

ステップS502において、レジューム監視部26はレジューム信号(復帰信号)の発生を監視する。図8で説明したとおり、レジューム監視部26は、サスペンド状態で復帰信号を検知すると、出力信号であるPHY−PWCTLをHレベルで出力する。   In step S502, the resume monitoring unit 26 monitors the generation of a resume signal (return signal). As described with reference to FIG. 8, when the resume monitoring unit 26 detects the return signal in the suspended state, the resume monitoring unit 26 outputs the output signal PHY-PWCTL at the H level.

ステップ502で復帰信号を受信するとステップS503において、レジューム監視部26はPHY−PWCTLをHレベルで出力し、DC/DCコンバータ回路23をオン(駆動)させて電源供給を開始する。   When the return signal is received at step 502, at step S503, the resume monitoring unit 26 outputs PHY-PWCTL at H level, turns on (drives) the DC / DC converter circuit 23, and starts supplying power.

電源が供給されることでステップS504において、システム制御部13は起動されて、プログラムの実行が開始され、ステップS505において、CPU−PWCTLをHレベルに制御する。これによって、以降でUSB通信が再開してPHY−PWCTLがLレベルで出力されても、メインシステム部分への電源供給がオフされることはない。   When the power is supplied, the system control unit 13 is activated and starts executing the program in step S504, and the CPU-PWCTL is controlled to the H level in step S505. Thus, even if USB communication is restarted and PHY-PWCTL is output at the L level thereafter, the power supply to the main system portion is not turned off.

次にステップS506において、USBコントローラ12はUSB PHY11に対して低消費電力モードからの復帰を指示し、ステップS507においてUSBホスト機器60とのUSB通信が再開される。   Next, in step S506, the USB controller 12 instructs the USB PHY 11 to return from the low power consumption mode, and in step S507, USB communication with the USB host device 60 is resumed.

次にステップS508において、図4のステップS404でUSBホスト機器60に送信したカメラの状態情報のうち、最新のものをUSBホスト機器60から受信して、サスペンド状態に移行する前の状態にデジタルカメラ10を復帰させる。なお、ステップS508の処理は、本発明でいう状態情報送受信手段の一処理例である。   Next, in step S508, the latest camera status information transmitted from the USB host device 60 to the USB host device 60 in step S404 in FIG. 4 is received from the USB host device 60, and the digital camera is returned to the state before shifting to the suspend state. 10 is restored. Note that the processing in step S508 is an example of processing of the state information transmitting / receiving means referred to in the present invention.

以上、本実施の形態のデジタルカメラ10では、サスペンド状態に移行する前のデジタルカメラ10の状態を、サスペンド状態から復帰した後にUSBホスト機器60から受信して、もとの状態に戻すことができる。そのため、第1実施の形態と同様に、復帰前と復帰後で液晶表示部に同じ画面を表示したり、サスペンド状態から復帰したことをユーザに明示的に示したりすることができる。また、USBホスト機器60との通信状態を保持させることによって、サスペンド状態から復帰した後に、接続確立のためのネゴシエーション手続等を繰り返す必要がなく、復帰するまでの時間を短縮することができる。
また、USBホスト機器60に保持するデジタルカメラ10の情報としては、例えば撮影に使用する各種撮影設定値であってもよい。例えばUSBホスト機器60から一定時間ごとにデジタルカメラ10を起動させて、同一の撮影設定値を使って撮影をするような場合に、デジタルカメラ10のフラッシュROM15を消費せずにサスペンド状態に移行する前の撮影設定値に戻すことができる。
As described above, in the digital camera 10 of the present embodiment, the state of the digital camera 10 before the transition to the suspend state can be received from the USB host device 60 after returning from the suspend state and returned to the original state. . Therefore, as in the first embodiment, the same screen can be displayed on the liquid crystal display unit before and after the return, or the user can be explicitly shown that the display has returned from the suspended state. In addition, by maintaining the communication state with the USB host device 60, it is not necessary to repeat the negotiation procedure for establishing a connection after returning from the suspended state, and the time to return can be shortened.
The information of the digital camera 10 held in the USB host device 60 may be various shooting setting values used for shooting, for example. For example, when the digital camera 10 is activated from the USB host device 60 at regular intervals and shooting is performed using the same shooting setting value, the flash ROM 15 of the digital camera 10 is not consumed, and the suspend state is entered. It is possible to return to the previous shooting setting value.

(第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 USB PHY 11 temporarily responds to a USB packet transmitted from a USB host device until the digital camera can resume USB communication, that is, during recovery. Since the configuration of the digital camera according to the third 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. The description of this part is omitted.

図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 NAK response unit 39 is provided inside the ULPI interface controller 25. Except for this point, the configuration shown in this figure is the same as the configuration of the block diagram shown in FIG.

ULPIインターフェイスコントローラ25は、USBホスト機器60からUSBパケット(通信パケット)を受信した際に、SIE回路28から送られたトークンパケットやデータパケットを送信する。この送信においては、ULPI規格のプロトコルに従ってUSBコントローラ12に送信するモードと、NAK応答部39でNAK応答のハンドシェークパケット(応答パケット)を生成してSIE回路28に送信するモードとがある。   When the ULPI interface controller 25 receives a USB packet (communication packet) from the USB host device 60, the ULPI interface controller 25 transmits a token packet or a data packet sent from the SIE circuit 28. In this transmission, there are a mode in which the NAK response unit 39 generates a NAK response handshake packet (response packet) and transmits the NAK response to the SIE circuit 28 in accordance with the protocol of the ULPI standard.

図7は、デジタルカメラ10がレジューム信号を受信して再起動する動作を説明するフローチャートである。なお、デジタルカメラ10がサスペンド信号を受信してメインシステム部分への電源供給を停止する動作フローは、図2と同様であるため説明は省略する。   FIG. 7 is a flowchart for explaining the operation in which the digital camera 10 receives the resume signal and restarts. The operation flow in which the digital camera 10 receives the suspend signal and stops the power supply to the main system portion is the same as that in FIG.

まずステップ702において、レジューム監視部26はレジューム信号(復帰信号)の発生を監視する。図8で説明したとおり、レジューム監視部26は、サスペンド状態で復帰信号を検知すると、出力信号であるPHY−PWCTLをHレベルで出力する。   First, in step 702, the resume monitoring unit 26 monitors the generation of a resume signal (return signal). As described with reference to FIG. 8, when the resume monitoring unit 26 detects the return signal in the suspended state, the resume monitoring unit 26 outputs the output signal PHY-PWCTL at the H level.

ステップ702で復帰信号を受信するとステップS703において、レジューム監視部26はUSB PHY11が自動的に低消費電力モードから復帰するよう動作させる。低消費電力モードから復帰処理では、内部のPLL回路29等を稼動させて、D+とD−の信号線を用いた作動信号が受信できる状態に復帰する。   When the return signal is received in step 702, in step S703, the resume monitoring unit 26 operates the USB PHY 11 to automatically return from the low power consumption mode. In the return processing from the low power consumption mode, the internal PLL circuit 29 and the like are operated to return to a state in which an operation signal using the D + and D− signal lines can be received.

次にステップ704において、ULPIインターフェイスコントローラ25は、USBホスト機器60からUSBパケットを受信した際にNAK応答部39でNAK応答のハンドシェークパケットを生成してSIE回路28に送信するモードに切り替える。具体的には、INトークンパケット、SETUPトークンパケット、OUTトークンパケットを受信するとデバイスアドレスフィールドを調べる。そして、デジタルカメラ10に割り当てられたデバイスアドレスであった場合にNAKハンドシェークパケットを送信するよう動作する。   Next, in step 704, the ULPI interface controller 25 switches to a mode in which when the USB packet is received from the USB host device 60, the NAK response unit 39 generates a NAK response handshake packet and transmits it to the SIE circuit 28. Specifically, when an IN token packet, a SETUP token packet, or an OUT token packet is received, the device address field is examined. Then, when the device address is assigned to the digital camera 10, the NAK handshake packet is transmitted.

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 digital camera 10 resumes power supply to the main system portion and can resume USB communication. According to this configuration, even in such a case, the USB PHY 11 can transmit the NAK handshake packet and continue the communication state, thereby preventing the USB host device 60 from releasing the connection state with the digital camera 10.

また、本実施の形態においては、USB PHY11がNAK応答のハンドシェークパケットを生成して送信するモードに設定されている間は、PHY−PWCTLをHレベルで出力するよう制御するものとする。   Further, in the present embodiment, while the USB PHY 11 is set to a mode for generating and transmitting a NAK response handshake packet, control is performed so that PHY-PWCTL is output at H level.

次にステップ705において、レジューム監視部26はPHY−PWCTLをHレベルで出力し、DC/DCコンバータ回路23をオンさせて電源供給を開始する。   In step 705, the resume monitoring unit 26 outputs PHY-PWCTL at H level, turns on the DC / DC converter circuit 23, and starts supplying power.

電源が供給されることでステップ706において、システム制御部13は起動されて、プログラムの実行が開始され、ステップS707において、CPU−PWCTLをHレベルに制御する。これによって、以降でUSB通信が再開してPHY−PWCTLがLレベルで出力されても、メインシステム部分への電源供給がオフされることはない。   When the power is supplied, the system control unit 13 is activated in step 706 to start the execution of the program. In step S707, the CPU-PWCTL is controlled to the H level. Thus, even if USB communication is restarted and PHY-PWCTL is output at the L level thereafter, the power supply to the main system portion is not turned off.

次にステップS708において、システム制御部13はデジタルカメラ10の状態情報を領域33から読み出して、サスペンド状態に移行する前の状態にデジタルカメラ10を復帰させる。   Next, in step S708, the system control unit 13 reads the status information of the digital camera 10 from the area 33, and returns the digital camera 10 to the state before the transition to the suspend state.

次にステップS709において、ULPIインターフェイスコントローラ25は、PHY通信モードに切り替える。即ち、USBホスト機器60からUSBパケットを受信した際に、SIE回路28から送られたトークンパケットやデータパケットをULPI規格のプロトコルに従ってUSBコントローラ12に送信するモードに切り替える。そしてステップS710においてUSBホスト機器60とのUSB通信が再開される。   Next, in step S709, the ULPI interface controller 25 switches to the PHY communication mode. That is, when a USB packet is received from the USB host device 60, the mode is switched to a mode in which the token packet or data packet sent from the SIE circuit 28 is transmitted to the USB controller 12 according to the protocol of the ULPI standard. In step S710, USB communication with the USB host device 60 is resumed.

以上、本実施の形態のデジタルカメラ10では、メインシステム部分が再起動するまでの間、USB PHY11が一時的にUSBホスト機器60から送信されたUSBパケットに対して応答する。
これにより、USBホスト機器60との接続状態を継続することができ、復帰信号を受信してからUSB通信を再開するまでに時間がかかり、USBホスト機器60の動作によって接続状態が解除されてしまう可能性を排除できる。
また、メインシステム部分の起動時間の制約が緩和されるため、DC/DCコンバータ回路23がメインシステム部分を駆動させるために必要な規定電圧に達するまでの時間をより長くするように設計することができる。これにより、例えばシステム制御部13でのプログラムの実行速度をより遅くするようにして起動時の消費電力を少なくするように設計したりすることができる。またRAM14、フラッシュROM15の性能に関して高速なものでなくても構成可能になったりするため、より安価にシステム設計をしたりすることができる。
As described above, in the digital camera 10 of the present embodiment, the USB PHY 11 responds temporarily to the USB packet transmitted from the USB host device 60 until the main system portion is restarted.
As a result, the connection state with the USB host device 60 can be continued, and it takes time until the USB communication is resumed after the return signal is received, and the connection state is released by the operation of the USB host device 60. The possibility can be excluded.
In addition, since the restriction on the start-up time of the main system part is relaxed, the time until the DC / DC converter circuit 23 reaches the specified voltage required for driving the main system part can be designed to be longer. it can. Thereby, for example, it is possible to design the system control unit 13 so as to reduce the power consumption at the start-up by further reducing the execution speed of the program. In addition, the performance of the RAM 14 and the flash ROM 15 can be configured even if they are not high-speed, so that the system can be designed at a lower cost.

なお、以上で説明した本発明の第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.

本発明の実施の形態に係るデジタルカメラの概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the digital camera which concerns on embodiment of this invention. 本発明の第1の実施の形態に係るデジタルカメラがサスペンド信号を受信したときの動作を説明するフローチャートである。It is a flowchart explaining operation | movement when the digital camera which concerns on the 1st Embodiment of this invention receives a suspend signal. 本発明の第1の実施の形態に係るデジタルカメラがレジューム信号を受信したときの動作を説明するフローチャートである。It is a flowchart explaining operation | movement when the digital camera which concerns on the 1st Embodiment of this invention receives a resume signal. 本発明の第2の実施の形態に係るデジタルカメラがサスペンド信号を受信したときの動作を説明するフローチャートである。It is a flowchart explaining operation | movement when the digital camera which concerns on the 2nd Embodiment of this invention receives a suspend signal. 本発明の第2の実施の形態に係るデジタルカメラがレジューム信号を受信したときの動作を説明するフローチャートである。It is a flowchart explaining operation | movement when the digital camera which concerns on the 2nd Embodiment of this invention receives a resume signal. 本発明の第3の実施の形態に係るデジタルカメラの概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the digital camera which concerns on the 3rd Embodiment of this invention. 本発明の第3の実施の形態に係るデジタルカメラがレジューム信号を受信したときの動作を説明するフローチャートである。It is a flowchart explaining operation | movement when the digital camera which concerns on the 3rd Embodiment of this invention receives a resume signal. 本発明の実施の形態に係るデジタルカメラが出力する信号について説明する図である。It is a figure explaining the signal which the digital camera which concerns on embodiment of this invention outputs. 本発明の実施の形態に係るデジタルカメラの要部の構成を示した図である。It is the figure which showed the structure of the principal part of the digital camera which concerns on embodiment of this invention.

符号の説明Explanation of symbols

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 Digital camera 11 USB PHY
12 USB controller 13 System control unit 14 RAM
15 Flash ROM
16 Image pickup unit 17 Signal processing unit 18 Memory card 19 Port control circuit 20 Operation unit 21 Main switch (main SW)
22 DC / DC control unit 23 DC / DC converter circuit 24 Battery 25 ULPI interface controller 26 Resume monitoring unit 27 USB analog front end unit 28 SIE circuit 29 PLL circuit 30 Crystal oscillator 31 External crystal oscillator 32 Regulator circuit 33 Region 34 System bus 37 USB mini-B receptacle 38 buffer 39 NAK response unit 50 USB cable 60 USB host device

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 .
前記電源制御手段は、前記検知手段が前記復帰命令を検知した場合に、前記電源手段による電源供給を開始し、
前記取得手段は、前記電源制御手段により前記電源手段による電源供給を開始した後、前記保持手段により前記記録媒体に保持した前記状態情報を取得することを特徴とする請求項に記載の周辺機器。
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. .
前記低消費電力モードからの復帰中に前記ホスト機器からの通信パケットを受信した場合は、前記ホスト機器に応答するための応答パケットを生成し、前記応答パケットを前記ホスト機器に送信する通信制御手段をさらに有することを特徴とする請求項に記載の周辺機器。 Communication control means for generating a response packet for responding to the host device and transmitting the response packet to the host device when a communication packet is received from the host device during return from the low power consumption mode The peripheral device according to claim 2 , further comprising: 当該周辺機器の状態に関する状態情報を前記ホスト機器との間で送受信する状態情報送受信手段を備え、
前記低消費電力モードへの移行の際に、前記状態情報を前記ホスト機器に送信し、前記低消費電力モードからの復帰の際に、前記ホスト機器から前記状態情報を受信することを特徴とする請求項1〜のいずれか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 .
当該周辺機器は撮像装置であることを特徴とする請求項1〜のいずれか1項に記載の周辺機器。 Peripheral device according to any one of claims 1 to 4, characterized in that the peripheral device is an image pickup device. ホスト機器と接続可能であり、前記ホスト機器と通信するトランシーバ手段と、当該周辺機器に電源を供給する電源手段とを備えた周辺機器の制御方法であって、
前記ホスト機器からの命令に応じて、当該周辺機器を低消費電力モードへ移行させるモード移行ステップと、
前記低消費電力モードへの以降の際に、前記トランシーバ手段が前記ホスト機器から前記低消費電力モードにおける電力供給を受けるよう制御する電力制御ステップと、
前記電力制御ステップで前記トランシーバ手段が前記ホスト機器から前記低消費電力モードにおける電力供給を受けるよう制御した後、前記周辺機器の状態に関する状態情報を記録媒体に保持する保持ステップと、
前記保持ステップで前記状態情報を前記記録媒体に保持した後、前記電源手段による電源供給を停止する電源制御ステップと、
前記低消費電力モードの間、前記ホスト機器から電源供給を受けて、前記ホスト機器から送信される前記低消費電力モードからの復帰命令を前記トランシーバ手段に含まれる検知手段により検知する検知ステップと、
前記検知ステップで前記復帰命令を検知した場合に、当該周辺機器を前記低消費電力モードから復帰させるモード復帰ステップと
前記低消費電力モードからの復帰の際に、前記保持ステップで前記記録媒体に保持した前記状態情報を取得する取得ステップとを有すること特徴とする周辺機器の制御方法。
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 .
請求項に記載の周辺機器の制御方法の各ステップをコンピュータに実行させるためのプログラム。 The program for making a computer perform each step of the control method of the peripheral device of Claim 6 .
JP2008028031A 2008-02-07 2008-02-07 Peripheral device, control method thereof and program Expired - Fee Related JP5089415B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

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
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
US7076683B2 (en) Clock control circuit for controlling an oscillation circuit in a data transfer control device according to states of a first device and a second 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
JP2007102370A (en) Electronic device, method for controlling operation mode executed thereby, and electronic device system
US20050188142A1 (en) Information processing apparatus and 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 processor, and electronic equipment
JP4485113B2 (en) PC adapter for small cards
JP2010015429A (en) Storage device controller, information processor, and electronic equipment
JP2010015427A (en) Storage device controller, information processing apparatus, electronic equipment and method for accessing storage device
JP2012061048A (en) Data storage device
JP2003323395A (en) Data transfer control device, electronic equipment and data transfer control method

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