JP2004213392A - Usb device and control method thereof - Google Patents

Usb device and control method thereof Download PDF

Info

Publication number
JP2004213392A
JP2004213392A JP2003000060A JP2003000060A JP2004213392A JP 2004213392 A JP2004213392 A JP 2004213392A JP 2003000060 A JP2003000060 A JP 2003000060A JP 2003000060 A JP2003000060 A JP 2003000060A JP 2004213392 A JP2004213392 A JP 2004213392A
Authority
JP
Japan
Prior art keywords
power
supply
power supply
bus
usb device
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.)
Pending
Application number
JP2003000060A
Other languages
Japanese (ja)
Inventor
Satoshi Shiga
聡 志賀
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2003000060A priority Critical patent/JP2004213392A/en
Publication of JP2004213392A publication Critical patent/JP2004213392A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a USB device and a control method thereof capable of supporting a single operation of a plurality of kinds of storage media and improving a user convenience as well as saving power. <P>SOLUTION: The USB device comprises a bus switching means, a detection means, an auxiliary power unit and a power control means. The bus switching means controls a USB connection between a storage medium and a host so that they are physically engaged or disengaged. The detection means detects the storage medium that has been switched and engaged by the bus switching means. The auxiliary power unit is a power source capable of supplying power to the USB device in a system different from that for power supply for the bus. The power control means controls supply by power supply of the bus and the auxiliary power so that in the state before the storage medium is engaged, power supply inside is made only to a minimum functional block based on the detection result by the detection means. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明はUSBデバイス及びUSBデバイスの制御方法に関し、詳細には複数種のストレージデバイスのサポートを装着可能とし、かつ安定した電源供給を行うことができるUSBデバイス及びUSBデバイスの制御方法に関する。
【0002】
【従来の技術】
【特許文献1】特開2000−29544号公報
近年、複数種のストレージメディアをサポートした外部接続用のUSBデバイスが多く見られる。デジタルカメラ等の小型携帯機器の普及に伴い、記憶媒体としてメモリスティックやコンパクトフラッシュ(登録商標)(以下CFと略す)など複数種のストレージメディアを扱えるコンパクトなUSBデバイスの需要が増えてきたためである。外部接続用のUSBデバイスの中には、電源をホスト(USBデバイスを接続されるシステム本体)より供給される形態を取り、AC/DC変換用の電源回路やケーブルを省いているものがある。それらのUSBデバイスは、ホストより、供給可能な電流容量は制限されるため(USB規格上500mV/5V)、当然USBデバイスは電流容量内での実現できる機能に制限をされる。例えば複数種のストレージメディアの制御には大電流が必要なこともあり、実現が難しい面がある。
【0003】
そこで、上記特許文献1によれば、充電可能なバッテリ装置をUSBデバイス内に持ち、USBデバイス動作中に、過渡的に電流が不足した時にバッテリ装置より電源供給を行っている。
【0004】
【発明が解決しようとする課題】
しかしながら、上記特許文献1では、省電力を意識した、電源マネージメントではなく、携帯端末などには考慮が足りない。複数種のストレージメディアそれぞれ、単独で動作をサポートしたものの、同時に動作を実現することに対しては、サポートができなかった。また、ホストからUSBインターフェースを介して、供給される電源供給能力の範囲を超えるもの使われ方への対応に不備があった。
【0005】
本発明はこれらの問題点を解決するためのものであり、複数種のストレージメディア各々単独の動作をサポートでき、同時にユーザの使い勝手を向上できると共に省電力化が図れる、USBデバイス及びUSBデバイスの制御方法を提供することを目的とする。
【0006】
【課題を解決するための手段】
前記問題点を解決するために、複数種のストレージメディアがホストとの間でUSB接続による装着可能であり、装着されたストレージメディアとホストとの間の通信を行い、バスからのバス電源の供給により動作する、本発明のUSBデバイスは、ストレージメディアとホストとの間のUSB接続をハードウェア的に接合あるいは離脱可能に制御するバス切替手段と、バス切替手段により切替えられ、かつ装着されたストレージメディアを検出する検出手段と、バス電源と別系統でUSBデバイスへの電源供給可能な補助電源と、ストレージメディアの装着前の状態では内部での電源供給を検出手段による検出結果に基づいて最小限の機能ブロックに対してのみ行うために、バス電源及び補助電源による供給を制御する電源制御手段とを具備することに特徴がある。よって、ストレージメディアが装着されるまでデバイスへの通電を最小限に抑えられ、省電力化によりバッテリ駆動のパーソナルコンピュータの長時間駆動が可能となり、複数種のストレージメディア各々単独の動作をサポートでき、同時にユーザの使い勝手を向上できると共に省電力化が図れる。
【0007】
また、ストレージメディアが複数装着された際に、必要な電流容量を計算する電流値算出手段を有する。そして、電源制御手段は、電流値算出手段により得られた総電流容量がホストから供給可能なバス電源の供給を上回る場合に補助電源の供給電力をバス電源の供給電力に加えてストレージメディアに供給し、下回る場合にはバス電源の供給電力のみでまかなうようにバス電源及び補助電源による供給を制御する。よって、複数のストレージメディアが装着され、制御に必要な電源がホストからのバス電源の供給でまかなうには不十分な場合でも補助電源をバス電源の供給と合せて使用することにより動作できると共に、ストレージメディアが装着されていない時は余計なホストの電力消費を削減することが可能となる。
【0008】
更に、補助電源を二次電池により構成することにより、USBデバイスをコンパクトに構成できる。また、補助電源を充電する充電手段を備えたことにより、ホストからUSBインターフェースを利用して補助電源の充電を行えられるので、充電が簡単に行えられる。更に、充電手段によって行われる充電は総電流容量がホストから供給可能なバス電源の供給電力を下回る際にUSBデバイスに供給される分以外の余剰の電流を用いて行い、または充電手段によって行われる充電はストレージメディアが装着されてない時に実施されるので、バス電源の供給の空いている電流容量を用いて自動的に充電されるのでユーザの操作が省ける。
【0009】
また、別の発明としてのUSBデバイスの制御方法によれば、ストレージメディアとホストとの間のUSB接続をハードウェア的に接合あるいは離脱可能に制御するバス切替工程と、バス切替工程により切替えられ、かつ装着されたストレージメディアを検出する検出工程と、ストレージメディアの装着前の状態では内部での電源供給を検出工程による検出結果に基づいて最小限の機能ブロックに対してのみ行うために、バス電源、及びバス電源と別系統でUSBデバイスへの電源供給可能な補助電源による供給を制御する電源制御工程とを有する。よって、複数種のストレージメディア各々単独の動作をサポートでき、同時にユーザの使い勝手を向上できると共に省電力化が図れる。
【0010】
更に、ストレージメディアが複数装着された際に、必要な電流容量を計算する電流値算出工程を有する。そして、電源制御工程において電流値算出工程により得られた総電流容量がホストから供給可能なバス電源の供給を上回る場合に補助電源の供給電力をバス電源の供給電力に加えてストレージメディアに供給し、下回る場合にはバス電源の供給電力のみでまかなうようにバス電源及び補助電源による供給を制御する。よって、複数のストレージメディアが装着され、制御に必要な電源がホストからのバス電源の供給でまかなうには不十分な場合でも補助電源をバス電源の供給と合せて使用することにより動作できると共に、ストレージメディアが装着されていない時は余計なホストの電力消費を削減することが可能となる。
【0011】
【発明の実施の形態】
本発明のUSBデバイスは、ストレージメディアとホストとの間のUSB接続をハードウェア的に接合あるいは離脱可能に制御するバス切替手段と、バス切替手段により切替えられ、かつ装着されたストレージメディアを検出する検出手段と、バス電源と別系統でUSBデバイスへの電源供給可能な補助電源と、ストレージメディアの装着前の状態では内部での電源供給を検出手段による検出結果に基づいて最小限の機能ブロックに対してのみ行うために、バス電源及び補助電源による供給を制御する電源制御手段とを具備する。
【0012】
【実施例】
図1は本発明の一実施例に係るUSBデバイスの構成を示すブロック図である。同図において、本実施例のUSBデバイス100は、複数種のストレージメディア200、例えばメモリスティック201、CF202、スマートメディア203、PCカード204、FDD205などを制御可能な機能を持ったUSBデバイスを想定している。このUSBデバイス100は、CPU101をコアに持ち、USB規格に準拠したコミュニケーション・フローをサポートしたUSBインターフェース部102により、ホスト300とのUSBインターフェース部102による通信、各ストレージ制御部105〜109へのデータ送受信を行う。
また、コードROM103は、USBデバイス100を動作させるためのファームウェアが各ストレージ制御用にそれぞれ保持されている。RAM104は、ファームウェアの実行領域と、コードROM103よりUSBインターフェース部102を介してダウンロードされたファームウェアプログラムが保管される領域とがある。通常、ファームウェアプログラムの実行時間を短縮する目的でROM領域からRAM領域に移動される。メモリスティック制御部105、CF制御部106、スマートメディア制御部107、PCカード制御部108、FDD制御部109は、それぞれメモリスティック201、CF202、スマートメディア203、PCカード204、FDD205のストレージメディア200の制御を行い、バス切替制御部110へと接続される。バス切替制御部110は複数種のストレージメディア200中の一つのストレージメディアとUSBインターフェース部102への接続をハードウェア的に実現する。インターフェースコネクタ111は、それぞれメモリスティック201、CF202、スマートメディア203、PCカード204、FDD205のストレージメディア200のインターフェースコネクタであり、各ストレージメディアが装着されたことを検出し、その情報をUSBインターフェース部102及び電源制御部112へ伝達する機能を具備する。電源制御部112はUSBポート113より、電源供給され、USBデバイス100の機能ブロックへそれぞれ個別に供給する機能を具備する。また、電源制御部112は、USBポート113から電源供給を受けると共に、補助電源115から補助パワーを受け取るように2系統の電源入力ラインを持ち、電源入力ラインの制御を行う。補助電源115は二次電池として構成され、充電制御部116から充電可能である。USBポート113から、電源ラインはバスパワーと呼ばれ、USB規格により、最大500mAと規定されている。電流容量テーブル114は、図2に示すように、ストレージメディアそれぞれの制御に必要な電流容量の一覧が列挙されており、電流容量テーブルの情報を参照することにより、USBデバイスとして、必要な電流容量の総和が算出できる仕組みをもつ。
【0013】
次に、本実施例のUSBデバイスにおける制御フローを示す図3に従って本実施例の制御動作について説明する。先ず、図1のホストに電源が投入されると(ステップS101)。この時バスパワーを通じて、図1の電源制御部112とインターフェースコネクタ111のストレージメディア200の装着を検出する回路のみ稼動し、その他のブロックでの電流消費はない。インターフェースコネクタ111にメディア各種が装着されると(ステップS102;YES)、メディア検出信号が電源制御部112に通知され(ステップS103)、その情報を基に電源制御部112が電流容量テーブル114より、対象となるストレージデバイス200の電流容量を参照し、USBデバイス100としての必要電流容量を算出する(ステップS104)。例えば、メモリスティック201とPCカード204が装着された場合は、図2に示す電流容量テーブルより、100mA+200mA+300mA=600mAと算出できる。そして、電源制御部112は、この時の電流容量の総和が、前述のUSB規格500mAの上限を上回るか否かを判断し(ステップS105)、下回った時(ステップS105;NO)は、バスパワーのみでUSBデバイス100の電源をまかない(ステップS106)、上回った場合(ステップS105;YES)は、補助電源115からの補助パワーもバスパワーに付加して、USBデバイス100の電源として供給を行う(ステップS107)。電源供給は、装着されたストレージメディア200の駆動に不必要なブロックはオフしておくため、余計な電流消費を抑えることが可能となる。その後、ホスト300から、USBデバイス100の初期化を行い、使用可能となる(ステップS108)。一方、図1の充電制御部116による補助電源115への充電はバスパワーを利用する。特にストレージメディアに何も装着されてない時の余剰電流を使用し行う。補助電源115が十分に充電されているかどうかの判断をし(ステップS109)、十分でなければ(ステップS109;NO)、パスパワーを用いて充電を行い(ステップS110)、十分であれば(ステップS109;YES)、USBデバイス100の初期化フローに移行する(ステップS108)。USBデバイス100の初期化が終わった後も、メディアの装着を常に監視し(ステップS111)変化が生じた場合(ステップS111;YES)は随時ステップS102に戻り、装着されているメディアの種類を確認する。
【0014】
なお、本発明は上記実施例に限定されるものではなく、特許請求の範囲内の記載であれば多種の変形や置換可能であることは言うまでもない。
【0015】
【発明の効果】
以上説明したように、複数種のストレージメディアがホストとの間でUSB接続による装着可能であり、装着されたストレージメディアとホストとの間の通信を行い、バスからのバス電源の供給により動作する、本発明のUSBデバイスは、ストレージメディアとホストとの間のUSB接続をハードウェア的に接合あるいは離脱可能に制御するバス切替手段と、バス切替手段により切替えられ、かつ装着されたストレージメディアを検出する検出手段と、バス電源と別系統でUSBデバイスへの電源供給可能な補助電源と、ストレージメディアの装着前の状態では内部での電源供給を検出手段による検出結果に基づいて最小限の機能ブロックに対してのみ行うために、バス電源及び補助電源による供給を制御する電源制御手段とを具備することに特徴がある。よって、ストレージメディアが装着されるまでデバイスへの通電を最小限に抑えられ、省電力化によりバッテリ駆動のパーソナルコンピュータの長時間駆動が可能となり、複数種のストレージメディア各々単独の動作をサポートでき、同時にユーザの使い勝手を向上できると共に省電力化が図れる。
【0016】
また、ストレージメディアが複数装着された際に、必要な電流容量を計算する電流値算出手段を有する。そして、電源制御手段は、電流値算出手段により得られた総電流容量がホストから供給可能なバス電源の供給を上回る場合に補助電源の供給電力をバス電源の供給電力に加えてストレージメディアに供給し、下回る場合にはバス電源の供給電力のみでまかなうようにバス電源及び補助電源による供給を制御する。よって、複数のストレージメディアが装着され、制御に必要な電源がホストからのバス電源の供給でまかなうには不十分な場合でも補助電源をバス電源の供給と合せて使用することにより動作できると共に、ストレージメディアが装着されていない時は余計なホストの電力消費を削減することが可能となる。
【0017】
更に、補助電源を二次電池により構成することにより、USBデバイスをコンパクトに構成できる。また、補助電源を充電する充電手段を備えたことにより、ホストからUSBインターフェースを利用して補助電源の充電を行えられるので、充電が簡単に行えられる。更に、充電手段によって行われる充電は総電流容量がホストから供給可能なバス電源の供給電力を下回る際にUSBデバイスに供給される分以外の余剰の電流を用いて行い、または充電手段によって行われる充電はストレージメディアが装着されてない時に実施されるので、バス電源の供給の空いている電流容量を用いて自動的に充電されるのでユーザの操作が省ける。
【0018】
また、別の発明としてのUSBデバイスの制御方法によれば、ストレージメディアとホストとの間のUSB接続をハードウェア的に接合あるいは離脱可能に制御するバス切替工程と、バス切替工程により切替えられ、かつ装着されたストレージメディアを検出する検出工程と、ストレージメディアの装着前の状態では内部での電源供給を検出工程による検出結果に基づいて最小限の機能ブロックに対してのみ行うために、バス電源、及びバス電源と別系統でUSBデバイスへの電源供給可能な補助電源による供給を制御する電源制御工程とを有する。よって、複数種のストレージメディア各々単独の動作をサポートでき、同時にユーザの使い勝手を向上できると共に省電力化が図れる。
【0019】
更に、ストレージメディアが複数装着された際に、必要な電流容量を計算する電流値算出工程を有する。そして、電源制御工程において電流値算出工程により得られた総電流容量がホストから供給可能なバス電源の供給を上回る場合に補助電源の供給電力をバス電源の供給電力に加えてストレージメディアに供給し、下回る場合にはバス電源の供給電力のみでまかなうようにバス電源及び補助電源による供給を制御する。よって、複数のストレージメディアが装着され、制御に必要な電源がホストからのバス電源の供給でまかなうには不十分な場合でも補助電源をバス電源の供給と合せて使用することにより動作できると共に、ストレージメディアが装着されていない時は余計なホストの電力消費を削減することが可能となる。
【図面の簡単な説明】
【図1】本発明の一実施例に係るUSBデバイスの構成を示すブロック図である。
【図2】電流容量テーブルの情報を示す図である。
【図3】本実施例のUSBデバイスにおける制御動作を示すフローチャートである。
【符号の説明】
100;USBデバイス、101;CPU、
102;USBインターフェース部、103;コードROM、
104;RAM、105;メモリスティック制御部、
106;CF制御部、107;スマートメディア制御部、
108;PCカード制御部、109;FDD制御部、
110;バス切替制御部、111;インターフェースコネクタ、
112;電源制御部、113;USBポート、114;電流容量テーブル、
115;補助電源、116;充電制御部、200;ストレージメディア、
201;メモリスティック、202;CF、
203;スマートメディア、204;PCカード、205;FDD、
300;ホスト。
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a USB device and a method for controlling a USB device, and more particularly, to a USB device and a method for controlling a USB device that can be equipped with a support for a plurality of types of storage devices and can supply power stably.
[0002]
[Prior art]
[Patent Document 1] Japanese Patent Application Laid-Open No. 2000-29544 In recent years, many USB devices for external connection that support a plurality of types of storage media have been found. This is because with the spread of small portable devices such as digital cameras, the demand for compact USB devices capable of handling a plurality of types of storage media such as a memory stick and a compact flash (registered trademark) (hereinafter abbreviated as CF) as storage media has increased. . Some USB devices for external connection take a form in which power is supplied from a host (a system main body to which the USB device is connected), and omit a power supply circuit and a cable for AC / DC conversion. Since the current capacity that can be supplied to these USB devices by the host is limited (500 mV / 5 V according to the USB standard), the functions that can be realized within the current capacity of the USB device are naturally limited. For example, control of a plurality of types of storage media requires a large current, which is difficult to realize.
[0003]
Therefore, according to Patent Literature 1, a rechargeable battery device is provided in a USB device, and power is supplied from the battery device when the current is insufficient during the operation of the USB device.
[0004]
[Problems to be solved by the invention]
However, in Patent Document 1, power management is not conscious of power saving, and consideration is not given to a portable terminal or the like. Although each type of storage media supported operation independently, it could not support simultaneous operation. In addition, there is an inadequacy in coping with a usage exceeding a range of power supply capability supplied from a host via a USB interface.
[0005]
The present invention has been made to solve these problems. A USB device and a control of a USB device which can support independent operation of each of a plurality of types of storage media, can improve user-friendliness at the same time, and can save power. The aim is to provide a method.
[0006]
[Means for Solving the Problems]
In order to solve the above-mentioned problem, a plurality of types of storage media can be mounted to the host by USB connection, and communication between the mounted storage media and the host is performed, and bus power is supplied from the bus. The USB device of the present invention is operated by a bus switching means for controlling a USB connection between a storage medium and a host so that the USB connection can be joined or detached from hardware, and a storage device switched and mounted by the bus switching means. Detecting means for detecting the media, auxiliary power capable of supplying power to the USB device in a system separate from the bus power supply, and minimizing internal power supply based on the detection result by the detecting means before the storage medium is mounted. Power supply control means for controlling the supply by the bus power supply and the auxiliary power supply so as to perform only the It is characterized in that. Therefore, the power supply to the device is minimized until the storage medium is mounted, and the battery-powered personal computer can be driven for a long time by saving power, and the operation of each of a plurality of types of storage media can be supported independently. At the same time, user convenience can be improved and power consumption can be reduced.
[0007]
Further, it has a current value calculating means for calculating a required current capacity when a plurality of storage media are mounted. When the total current capacity obtained by the current value calculation means exceeds the supply of the bus power that can be supplied from the host, the power supply control means adds the supply power of the auxiliary power to the supply power of the bus power and supplies the power to the storage medium. If the power is less than the above, the supply by the bus power and the auxiliary power is controlled so that only the supply power of the bus power is sufficient. Therefore, even when a plurality of storage media are mounted and the power required for control is not sufficient to be supplied by the bus power supply from the host, the operation can be performed by using the auxiliary power supply together with the bus power supply, When the storage medium is not mounted, unnecessary power consumption of the host can be reduced.
[0008]
Further, by configuring the auxiliary power supply with a secondary battery, the USB device can be compactly configured. In addition, the provision of the charging means for charging the auxiliary power supply allows the host to use the USB interface to charge the auxiliary power supply, thereby facilitating charging. Further, the charging performed by the charging unit is performed using an excess current other than that supplied to the USB device when the total current capacity is lower than the supply power of the bus power supply that can be supplied from the host, or performed by the charging unit. Since the charging is performed when the storage medium is not mounted, the charging is automatically performed using the vacant current capacity of the bus power supply, so that the operation of the user can be omitted.
[0009]
Further, according to the USB device control method as another invention, the USB connection between the storage medium and the host is controlled by a bus switching step of controlling the USB connection to be connectable or detachable by hardware, and a bus switching step, A bus power supply for detecting a mounted storage medium and a power supply for supplying only internal power to a minimum number of functional blocks based on a detection result of the detection step before the storage medium is mounted. And a power supply control step of controlling the supply of auxiliary power that can supply power to the USB device in a system different from the bus power supply. Therefore, the independent operation of each of the plurality of types of storage media can be supported, and at the same time, the usability of the user can be improved and the power can be saved.
[0010]
Further, the method includes a current value calculating step of calculating a required current capacity when a plurality of storage media are mounted. Then, when the total current capacity obtained in the current value calculation step in the power supply control step exceeds the supply of the bus power supply that can be supplied from the host, the supply power of the auxiliary power supply is supplied to the storage medium in addition to the supply power of the bus power supply. If it is less than the above, the supply by the bus power and the auxiliary power is controlled so that only the supply power of the bus power is sufficient. Therefore, even when a plurality of storage media are mounted and the power required for control is not sufficient to be supplied by the bus power supply from the host, the operation can be performed by using the auxiliary power supply together with the bus power supply, When the storage medium is not mounted, unnecessary power consumption of the host can be reduced.
[0011]
BEST MODE FOR CARRYING OUT THE INVENTION
The USB device of the present invention detects a mounted storage medium which is switched by the bus switching means for controlling the USB connection between the storage medium and the host so that the USB connection can be connected or detached by hardware, and which is mounted. A detection unit, an auxiliary power supply that can supply power to the USB device in a system separate from the bus power supply, and an internal power supply into a minimum functional block based on a detection result by the detection unit before the storage medium is mounted. Power supply control means for controlling the supply by the bus power supply and the auxiliary power supply.
[0012]
【Example】
FIG. 1 is a block diagram showing a configuration of a USB device according to one embodiment of the present invention. In the figure, the USB device 100 of the present embodiment is assumed to be a USB device having a function of controlling a plurality of types of storage media 200, for example, a memory stick 201, a CF 202, a smart media 203, a PC card 204, an FDD 205, and the like. ing. The USB device 100 has a CPU 101 as a core, communicates with the host 300 through the USB interface unit 102 that supports a communication flow conforming to the USB standard, and transmits data to each of the storage control units 105 to 109. Send and receive.
The code ROM 103 holds firmware for operating the USB device 100 for each storage control. The RAM 104 has an area for executing firmware and an area for storing a firmware program downloaded from the code ROM 103 via the USB interface unit 102. Normally, the firmware program is moved from the ROM area to the RAM area in order to reduce the execution time of the firmware program. The memory stick control unit 105, the CF control unit 106, the smart media control unit 107, the PC card control unit 108, and the FDD control unit 109 correspond to the storage media 200 of the memory stick 201, the CF 202, the smart media 203, the PC card 204, and the FDD 205, respectively. It performs control and is connected to the bus switching control unit 110. The bus switching control unit 110 implements a connection to one of the plurality of types of storage media 200 and the USB interface unit 102 by hardware. The interface connector 111 is an interface connector of the storage media 200 of the memory stick 201, CF 202, smart media 203, PC card 204, and FDD 205, respectively, detects that each storage medium is mounted, and transmits the information to the USB interface unit 102. And a function of transmitting power to the power supply control unit 112. The power control unit 112 has a function of being supplied with power from the USB port 113 and individually supplying the functional blocks of the USB device 100 individually. The power control unit 112 has two power input lines so as to receive power supply from the USB port 113 and receive auxiliary power from the auxiliary power supply 115, and controls the power input lines. The auxiliary power supply 115 is configured as a secondary battery, and can be charged by the charge control unit 116. From the USB port 113, the power supply line is called bus power, and is specified by the USB standard to have a maximum of 500 mA. As shown in FIG. 2, the current capacity table 114 enumerates a list of current capacities required for controlling each storage medium, and refers to the information in the current capacity table to determine the necessary current capacities as USB devices. Has a mechanism to calculate the sum of
[0013]
Next, a control operation of the present embodiment will be described with reference to FIG. 3 showing a control flow in the USB device of the present embodiment. First, when power is turned on to the host in FIG. 1 (step S101). At this time, only the circuit for detecting the attachment of the storage medium 200 of the power supply control unit 112 and the interface connector 111 of FIG. 1 is operated through the bus power, and the other blocks do not consume current. When various media are attached to the interface connector 111 (Step S102; YES), a media detection signal is notified to the power control unit 112 (Step S103), and based on the information, the power control unit 112 The required current capacity of the USB device 100 is calculated with reference to the current capacity of the target storage device 200 (step S104). For example, when the memory stick 201 and the PC card 204 are mounted, it is possible to calculate 100 mA + 200 mA + 300 mA = 600 mA from the current capacity table shown in FIG. Then, the power control unit 112 determines whether or not the total of the current capacities at this time exceeds the upper limit of the aforementioned USB standard of 500 mA (step S105). If the power is not supplied by the USB device 100 alone (step S106) and exceeds the power (step S105; YES), the auxiliary power from the auxiliary power supply 115 is also added to the bus power to supply the power to the USB device 100 (step S106). Step S107). As for the power supply, blocks unnecessary for driving the attached storage medium 200 are turned off, so that unnecessary current consumption can be suppressed. After that, the USB device 100 is initialized from the host 300 and becomes usable (Step S108). On the other hand, the charging of the auxiliary power supply 115 by the charging control unit 116 in FIG. 1 uses bus power. In particular, the surplus current is used when nothing is attached to the storage medium. It is determined whether or not the auxiliary power supply 115 is sufficiently charged (step S109). If it is not enough (step S109; NO), charging is performed using the pass power (step S110). S109; YES), the process proceeds to the initialization flow of the USB device 100 (step S108). Even after the initialization of the USB device 100 is completed, the mounting of the medium is constantly monitored (step S111). If a change occurs (step S111; YES), the process returns to step S102 as needed to confirm the type of the mounted medium. I do.
[0014]
It should be noted that the present invention is not limited to the above embodiment, and it goes without saying that various modifications and substitutions can be made within the scope of the claims.
[0015]
【The invention's effect】
As described above, a plurality of types of storage media can be mounted to the host by USB connection, perform communication between the mounted storage media and the host, and operate by supplying bus power from the bus. A USB device according to the present invention includes a bus switching unit that controls a USB connection between a storage medium and a host so that the USB connection can be joined or detached by hardware, and detects the mounted storage medium switched by the bus switching unit. Detection means, an auxiliary power supply that can supply power to the USB device in a system separate from the bus power supply, and a minimum functional block based on the detection result of the detection means by the internal power supply before the storage medium is mounted. Power supply control means for controlling the supply by the bus power supply and the auxiliary power supply. It is characterized in. Therefore, the power supply to the device is minimized until the storage medium is mounted, and the battery-powered personal computer can be driven for a long time by saving power, and the operation of each of a plurality of types of storage media can be supported independently. At the same time, user convenience can be improved and power consumption can be reduced.
[0016]
Further, it has a current value calculating means for calculating a required current capacity when a plurality of storage media are mounted. When the total current capacity obtained by the current value calculation means exceeds the supply of the bus power that can be supplied from the host, the power supply control means adds the supply power of the auxiliary power to the supply power of the bus power and supplies the power to the storage medium. If the power is less than the above, the supply by the bus power and the auxiliary power is controlled so that only the supply power of the bus power is sufficient. Therefore, even when a plurality of storage media are mounted and the power required for control is not sufficient to be supplied by the bus power supply from the host, the operation can be performed by using the auxiliary power supply together with the bus power supply, When the storage medium is not mounted, unnecessary power consumption of the host can be reduced.
[0017]
Further, by configuring the auxiliary power supply with a secondary battery, the USB device can be compactly configured. In addition, the provision of the charging means for charging the auxiliary power supply allows the host to use the USB interface to charge the auxiliary power supply, thereby facilitating charging. Further, the charging performed by the charging unit is performed using an excess current other than that supplied to the USB device when the total current capacity is lower than the supply power of the bus power supply that can be supplied from the host, or performed by the charging unit. Since the charging is performed when the storage medium is not mounted, the charging is automatically performed using the vacant current capacity of the bus power supply, so that the operation of the user can be omitted.
[0018]
Further, according to the USB device control method as another invention, the USB connection between the storage medium and the host is controlled by a bus switching step of controlling the USB connection to be connectable or detachable by hardware, and a bus switching step, A bus power supply for detecting a mounted storage medium and a power supply for supplying only internal power to a minimum number of functional blocks based on a detection result of the detection step before the storage medium is mounted. And a power supply control step of controlling the supply of auxiliary power that can supply power to the USB device in a system different from the bus power supply. Therefore, the independent operation of each of the plurality of types of storage media can be supported, and at the same time, the usability of the user can be improved and the power can be saved.
[0019]
Further, the method includes a current value calculating step of calculating a required current capacity when a plurality of storage media are mounted. Then, when the total current capacity obtained in the current value calculation step in the power supply control step exceeds the supply of the bus power supply that can be supplied from the host, the supply power of the auxiliary power supply is supplied to the storage medium in addition to the supply power of the bus power supply. If it is less than the above, the supply by the bus power and the auxiliary power is controlled so that only the supply power of the bus power is sufficient. Therefore, even when a plurality of storage media are mounted and the power required for control is insufficient to be supplied by the bus power supply from the host, the operation can be performed by using the auxiliary power supply together with the bus power supply, When the storage medium is not mounted, unnecessary power consumption of the host can be reduced.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a USB device according to one embodiment of the present invention.
FIG. 2 is a diagram showing information of a current capacity table.
FIG. 3 is a flowchart illustrating a control operation in the USB device of the present embodiment.
[Explanation of symbols]
100; USB device, 101; CPU,
102; USB interface unit, 103; code ROM,
104; RAM, 105; Memory Stick control unit,
106; CF control unit, 107; smart media control unit,
108; PC card control unit; 109; FDD control unit;
110: bus switching control unit, 111: interface connector,
112: power supply control unit, 113: USB port, 114: current capacity table,
115; auxiliary power supply; 116; charging control unit; 200; storage medium;
201; memory stick, 202; CF,
203; smart media, 204; PC card, 205; FDD,
300; host.

Claims (8)

複数種のストレージメディアがホストとの間でUSB接続による装着可能であり、装着されたストレージメディアとホストとの間の通信を行い、バスからのバス電源の供給により動作するUSBデバイスにおいて、
ストレージメディアとホストとの間のUSB接続をハードウェア的に接合あるいは離脱可能に制御するバス切替手段と、
該バス切替手段により切替えられ、かつ装着されたストレージメディアを検出する検出手段と、
前記バス電源と別系統でUSBデバイスへの電源供給可能な補助電源と、
ストレージメディアの装着前の状態では内部での電源供給を前記検出手段による検出結果に基づいて最小限の機能ブロックに対してのみ行うために、前記バス電源及び前記補助電源による供給を制御する電源制御手段とを具備することを特徴とするUSBデバイス。
In a USB device, a plurality of types of storage media can be mounted to the host by USB connection, and communication between the mounted storage medium and the host is performed, and the USB device operates by supplying bus power from the bus.
Bus switching means for controlling a USB connection between the storage medium and the host so that the USB connection can be joined or detached by hardware;
Detecting means for detecting a storage medium switched and mounted by the bus switching means;
An auxiliary power supply capable of supplying power to a USB device in a separate system from the bus power supply;
Power supply control for controlling the supply of the bus power and the auxiliary power in order to supply the internal power to only the minimum function blocks based on the detection result by the detection means in a state before the storage medium is mounted. A USB device.
前記ストレージメディアが複数装着された際に、必要な電流容量を計算する電流値算出手段を有し、前記電源制御手段は、前記電流値算出手段により得られた総電流容量が前記ホストから供給可能なバス電源の供給を上回る場合に前記補助電源の供給電力をバス電源の供給電力に加えて前記ストレージメディアに供給し、下回る場合にはバス電源の供給電力のみでまかなうように前記バス電源及び前記補助電源による供給を制御する請求項1記載のUSBデバイス。When a plurality of storage media are mounted, the storage medium has a current value calculation unit for calculating a required current capacity, and the power supply control unit can supply the total current capacity obtained by the current value calculation unit from the host. The power supply of the auxiliary power supply is supplied to the storage medium in addition to the supply power of the bus power supply when the supply power of the bus power supply exceeds the supply power of the bus power supply. The USB device according to claim 1, wherein the USB device controls supply by an auxiliary power supply. 前記補助電源を二次電池により構成する請求項1又は2に記載のUSBデバイス。The USB device according to claim 1, wherein the auxiliary power supply includes a secondary battery. 前記補助電源を充電する充電手段を備えた請求項1〜3のいずれかに記載のUSBデバイス。The USB device according to claim 1, further comprising a charging unit that charges the auxiliary power. 前記充電手段によって行われる充電は、前記総電流容量が前記ホストから供給可能なバス電源の供給電力を下回る際に、USBデバイスに供給される分以外の余剰の電流を用いて行う請求項4記載のUSBデバイス。The charging performed by the charging unit is performed using an excess current other than that supplied to a USB device when the total current capacity is lower than the supply power of a bus power supply that can be supplied from the host. USB device. 前記充電手段によって行われる充電は、前記ストレージメディアが装着されてない時に実施される請求項5記載のUSBデバイス。The USB device according to claim 5, wherein the charging performed by the charging unit is performed when the storage medium is not mounted. 複数種のストレージメディアがホストとの間でUSB接続による装着可能であり、装着されたストレージメディアとホストとの間の通信を行い、バスからのバス電源の供給による動作を制御するUSBデバイスの制御方法において、
ストレージメディアとホストとの間のUSB接続をハードウェア的に接合あるいは離脱可能に制御するバス切替工程と、
該バス切替工程により切替えられ、かつ装着されたストレージメディアを検出する検出工程と、
ストレージメディアの装着前の状態では内部での電源供給を前記検出工程による検出結果に基づいて最小限の機能ブロックに対してのみ行うために、前記バス電源、及び前記バス電源と別系統でUSBデバイスへの電源供給可能な補助電源による供給を制御する電源制御工程とを有することを特徴とするUSBデバイスの制御方法。
A plurality of types of storage media can be mounted to the host by USB connection, and communication between the mounted storage media and the host is performed, and a USB device that controls operation by supplying bus power from the bus is controlled. In the method,
A bus switching step of controlling a USB connection between the storage medium and the host so that the USB connection can be joined or detached by hardware;
A detecting step of detecting a storage medium switched and attached by the bus switching step;
In order to supply power internally only to the minimum function blocks based on the detection result of the detection step before the storage medium is mounted, the bus power supply, and a USB device in a different system from the bus power supply. A power control step of controlling the supply of the auxiliary power capable of supplying power to the USB device.
前記ストレージメディアが複数装着された際に、必要な電流容量を計算する電流値算出工程を有し、前記電源制御工程において前記電流値算出工程により得られた総電流容量が前記ホストから供給可能なバス電源の供給を上回る場合に前記補助電源の供給電力をバス電源の供給電力に加えて前記ストレージメディアに供給し、下回る場合にはバス電源の供給電力のみでまかなうように前記バス電源及び前記補助電源による供給を制御する請求項7記載のUSBデバイスの制御方法。A current value calculating step of calculating a required current capacity when a plurality of the storage media are mounted, wherein a total current capacity obtained by the current value calculating step in the power control step can be supplied from the host; The supply power of the auxiliary power supply is supplied to the storage medium in addition to the supply power of the bus power supply when the supply power of the bus power supply is exceeded, and the supply of the bus power supply and the auxiliary The method for controlling a USB device according to claim 7, wherein the supply by a power supply is controlled.
JP2003000060A 2003-01-06 2003-01-06 Usb device and control method thereof Pending JP2004213392A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003000060A JP2004213392A (en) 2003-01-06 2003-01-06 Usb device and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003000060A JP2004213392A (en) 2003-01-06 2003-01-06 Usb device and control method thereof

Publications (1)

Publication Number Publication Date
JP2004213392A true JP2004213392A (en) 2004-07-29

Family

ID=32818501

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003000060A Pending JP2004213392A (en) 2003-01-06 2003-01-06 Usb device and control method thereof

Country Status (1)

Country Link
JP (1) JP2004213392A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7871278B1 (en) 2009-12-15 2011-01-18 International Business Machines Corporation Connector blocking with automatic power management and balancing
WO2013073267A1 (en) * 2011-11-18 2013-05-23 ソニー株式会社 Electronic apparatus, charge control method, charging system, and data transfer system
KR101499309B1 (en) * 2013-01-17 2015-03-06 성지산업 주식회사 Usb hub can multi-charge mobile equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7871278B1 (en) 2009-12-15 2011-01-18 International Business Machines Corporation Connector blocking with automatic power management and balancing
WO2013073267A1 (en) * 2011-11-18 2013-05-23 ソニー株式会社 Electronic apparatus, charge control method, charging system, and data transfer system
JP2013110823A (en) * 2011-11-18 2013-06-06 Sony Corp Electronic apparatus, charge control method, charging system, and data transfer system
CN103918157A (en) * 2011-11-18 2014-07-09 索尼公司 Electronic apparatus, charge control method, charging system, and data transfer system
EP2782211A4 (en) * 2011-11-18 2015-07-01 Sony Corp Electronic apparatus, charge control method, charging system, and data transfer system
US10122197B2 (en) 2011-11-18 2018-11-06 Sony Corporation Controlling a display based on different modes of operation
KR101499309B1 (en) * 2013-01-17 2015-03-06 성지산업 주식회사 Usb hub can multi-charge mobile equipment

Similar Documents

Publication Publication Date Title
US6151652A (en) I/O card, electronic equipment using I/O card, and procedure of starting up such electronic equipment
JP5394400B2 (en) Power adapter
KR101445011B1 (en) Power converter with reduced power consumption when toggling between sleep and normal modes during device charging
US20100280676A1 (en) Multi-functional Bi-directional Communication and Bias Power Architecture for Power Supply Control
JP4980735B2 (en) Power supply apparatus and power supply system
US20050033996A1 (en) Method and apparatus for a communication hub
CN101902056A (en) Uninterruptable power supply and method for saving electricity of same
JP2009009532A5 (en)
KR101134743B1 (en) Apparatus and method for downloading or transmitting data under the condition of battery power deficit in portable electronic device
JP2003509763A (en) Apparatus and method for supplying power to a computer auxiliary device via a computer bus system
KR20190000379A (en) Power delivery system for an electronic device
US6199168B1 (en) Personal computer card power management system
JP2003032910A (en) Terminal unit
JP2005258526A (en) Desk holder and portable terminal device system
JP2013054463A (en) Image processing apparatus and control method thereof
JP2004213392A (en) Usb device and control method thereof
JPH11143591A (en) Power unit
TWM563667U (en) Removable mobile battery management device
JP2005033987A (en) Computer system
JP2004118343A (en) Electronic apparatus
EP2725680B1 (en) Electronic device and power supplying control method thereof
JP5608695B2 (en) Information processing apparatus and battery management method for information processing apparatus
JP4329371B2 (en) Power supply device, electronic device, power supply method and charging method
JP2004215464A (en) Electronic apparatus
JP2006101583A (en) Battery charger and battery charging system