patents.google.com

JP5907550B2 - USB device and method for controlling USB device - Google Patents

  • ️Tue Apr 26 2016

JP5907550B2 - USB device and method for controlling USB device - Google Patents

USB device and method for controlling USB device Download PDF

Info

Publication number
JP5907550B2
JP5907550B2 JP2011188657A JP2011188657A JP5907550B2 JP 5907550 B2 JP5907550 B2 JP 5907550B2 JP 2011188657 A JP2011188657 A JP 2011188657A JP 2011188657 A JP2011188657 A JP 2011188657A JP 5907550 B2 JP5907550 B2 JP 5907550B2 Authority
JP
Japan
Prior art keywords
usb
peripheral device
power supply
dual
role
Prior art date
2011-08-31
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.)
Active
Application number
JP2011188657A
Other languages
Japanese (ja)
Other versions
JP2013050859A (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.)
NEC Platforms Ltd
Original Assignee
NEC Platforms 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.)
2011-08-31
Filing date
2011-08-31
Publication date
2016-04-26
2011-08-31 Application filed by NEC Platforms Ltd filed Critical NEC Platforms Ltd
2011-08-31 Priority to JP2011188657A priority Critical patent/JP5907550B2/en
2013-03-14 Publication of JP2013050859A publication Critical patent/JP2013050859A/en
2016-04-26 Application granted granted Critical
2016-04-26 Publication of JP5907550B2 publication Critical patent/JP5907550B2/en
Status Active legal-status Critical Current
2031-08-31 Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Bus Control (AREA)
  • Information Transfer Systems (AREA)

Description

本発明はUSB機器およびUSB機器の制御方法に関する。   The present invention relates to a USB device and a method for controlling the USB device.

ホスト機器(例えばパソコン)に様々な周辺機器を接続するためのバス規格としてUSB規格がある。
さらに、近年では、周辺機器同士でもUSB接続ができるようにするための規格としてUSB OTG(ON-THE GO)規格も設けられている(例えば、特開2004-295333号公報、特開2005-25405号公報、特開2004-110145号公報、特開2006-99354号公報)。
携帯電話機や携帯音楽プレーヤーなどのモバイル機器にOTG対応のUSBポートが設けられることが多い。
また、モバイル機器では、USB電源アダプターを用いて充電することが一般的となってきている(例えば、特開2007-68333号公報、特開2007-52968号公報、特開2003-331928号公報)。
There is a USB standard as a bus standard for connecting various peripheral devices to a host device (for example, a personal computer).
Further, in recent years, a USB OTG (ON-THE GO) standard is also provided as a standard for enabling USB connection between peripheral devices (for example, Japanese Patent Laid-Open No. 2004-295333, Japanese Patent Laid-Open No. 2005-25405). No., JP-A-2004-110145, JP-A-2006-99354).
OTG compatible USB ports are often provided on mobile devices such as mobile phones and portable music players.
In mobile devices, it has become common to charge using a USB power adapter (for example, JP 2007-68333 A, JP 2007-52968 A, JP 2003-331928 A). .

USB周辺機器を使用する場合、一般的には、USB周辺機器をパソコンのUSBポートに接続する。
すると、パソコンがホストとなり、USB周辺機器がスレーブとして動作する。
また、モバイル機器がOTG対応のUSBポートを有していれば、このOTG対応のUSBポートに周辺機器を接続する。
すると、モバイル機器がホストとなり、周辺機器がスレーブとして動作する。
When using a USB peripheral device, generally connect the USB peripheral device to the USB port of the computer.
Then, the PC becomes the host and the USB peripheral device operates as a slave.
If the mobile device has an OTG compatible USB port, connect the peripheral device to the OTG compatible USB port.
Then, the mobile device acts as a host and the peripheral device operates as a slave.

特開2004-295333号公報JP 2004-295333 A 特開2005-25405号公報JP 2005-25405 A 特開2004-110145号公報JP 2004-110145 A 特開2006-99354号公報JP 2006-99354 A 特開2007-68333号公報JP 2007-68333 JP 特開2007-52968号公報Japanese Unexamined Patent Publication No. 2007-52968 特開2003-331928号公報JP2003-331928

さて、パソコンやモバイル機器のUSBポートに第1の周辺機器を接続して使用した後、続けて第2の周辺機器を使用したくなる場合がしばしば生じる。
例えば、最初はUSBハードディスクを使用していたが、その後、プリンターを使用する必要が生じた、といったケースがある。
USBポートが空いていれば、第2のUSB周辺機器をその空いているUSBポートに繋げばよい。
しかし、USBポートが総て使用済みで塞がっていた場合、どれかを抜いてから空いたUSBポートに第2の周辺機器を接続しなければならないことになる。
このような作業は大変面倒なものである。
Now, after using the first peripheral device connected to the USB port of the personal computer or mobile device, it often happens that the user wants to continue using the second peripheral device.
For example, there was a case where a USB hard disk was used at first, but then a printer had to be used.
If the USB port is free, you can connect a second USB peripheral to the free USB port.
However, if all the USB ports are used and plugged, you will have to disconnect one and then connect a second peripheral to the free USB port.
Such work is very troublesome.

また、モバイル機器にUSB周辺機器を接続して使用していると、モバイル機器のバッテリ残量が少なくなってくる。
モバイル機器の充電が必要なのであるが、モバイル機器ではその大きさの制約からUSBポートが一つしかないことが多く、したがって、USB周辺機器を一旦取り外してからUSB電源アダプターを繋いで充電しなければならなくなる。
USBコネクタの抜き差しを行ってUSB電源アダプターに繋ぎ替えることも面倒な作業である。
さらには、USB電源アダプターに繋ぎ替えると、USB周辺機器を用いた作業が一時中断されてしまい、利便性が良くないという問題がある。
In addition, when a USB peripheral device is connected to a mobile device, the remaining battery level of the mobile device decreases.
Mobile devices need to be charged, but mobile devices often have only one USB port due to their size restrictions. Therefore, you must remove the USB peripheral device and connect the USB power adapter before charging. No longer.
It is also a tedious task to plug in and unplug the USB connector and plug it into a USB power adapter.
Furthermore, if the USB power adapter is connected, the work using the USB peripheral device is temporarily suspended, which is not convenient.

本発明の目的は、接続相手の変更を行う場合でもわずらわしい繋ぎ替えが必要なく、ユーザの利便性が向上するUSBデバイス、USBデバイスの制御方法を提供することにある。
あわせて、このUSBデバイスと接続されるUSBホスト装置およびデュアルロールUSBデバイス機器の制御方法を提供する。
SUMMARY OF THE INVENTION An object of the present invention is to provide a USB device and a USB device control method that do not require troublesome reconnection even when a connection partner is changed and improve user convenience.
In addition, a USB host device connected to the USB device and a method for controlling the dual role USB device are provided.

本発明のUSBデバイスは、USBインターフェースを介して他の機器と接続するUSBデバイスであって、
メインUSBポートと補助USBポートとを有し、
前記メインUSBポートにUSBホスト装置が接続され、かつ、前記補助USBポートに何も接続されていない場合にはこのUSBホスト装置と電気的および信号的に接続を確立し、
前記メインUSBポートにUSBホスト装置が接続され、かつ、前記補助USBポートに第2USBデバイスが接続された場合には、前記USBホスト装置と前記USBデバイスとを中継する
ことを特徴とする。
The USB device of the present invention is a USB device connected to another device via a USB interface,
It has a main USB port and an auxiliary USB port,
When a USB host device is connected to the main USB port and nothing is connected to the auxiliary USB port, establish a connection electrically and signally with this USB host device,
When a USB host device is connected to the main USB port and a second USB device is connected to the auxiliary USB port, the USB host device and the USB device are relayed.

本発明のUSBデバイスの制御方法は、
前記メインUSBポートにUSBホスト装置が接続された状態でさらに前記補助USBポートに第2USBデバイスが接続されたことを検出した場合には、前記USBホスト装置に新しい機器の接続を通知し、
前記USBホスト装置からの接続先変更の指示を受けた場合には、前記USBホスト装置と前記USBデバイスとを中継する
ことを特徴とする。
The control method of the USB device of the present invention is:
If it is detected that a second USB device is connected to the auxiliary USB port while a USB host device is connected to the main USB port, the USB host device is notified of the connection of a new device,
When an instruction to change the connection destination is received from the USB host device, the USB host device and the USB device are relayed.

また、本発明のUSBホスト装置の制御方法は、
前記USBデバイスのメインUSBポートに接続されたUSBホスト装置の動作を制御する制御方法であって、
前記USBデバイスから新しい機器の接続が通知された場合には、ユーザに接続先の変更の是非を問い、
ユーザから接続先の変更の指示を得た場合には、前記USBデバイスに当該USBホスト装置と前記新しい機器との接続を中継させる指示を与える
ことを特徴とする。
Further, the control method of the USB host device of the present invention is as follows:
A control method for controlling the operation of a USB host device connected to the main USB port of the USB device,
When a connection of a new device is notified from the USB device, ask the user whether to change the connection destination,
When receiving an instruction to change the connection destination from the user, the USB device is given an instruction to relay the connection between the USB host device and the new device.

また、本発明のデュアルロールUSBデバイス機器の制御方法は、
前記USBデバイスから新しい機器の接続が通知された場合には、ユーザに接続先の変更の是非を問い、
ユーザから接続先の変更の指示を得た場合には、前記USBデバイスに当該デュアルロールUSBデバイス機器と前記新しい機器との接続を中継させる指示を与える
ことを特徴とする。
このとき、前記新しい機器がUSBホスト装置である場合には、当該デュアルロールUSBデバイス機器はスレーブとなる。
In addition, the control method of the dual role USB device device of the present invention,
When a connection of a new device is notified from the USB device, ask the user whether to change the connection destination,
When receiving an instruction to change the connection destination from the user, the USB device is given an instruction to relay the connection between the dual-role USB device device and the new device.
At this time, if the new device is a USB host device, the dual-role USB device device becomes a slave.

第1実施形態として想定するケースを示す図。The figure which shows the case assumed as 1st Embodiment. 第1USB周辺機器の構成を示す図。The figure which shows the structure of a 1st USB peripheral device. パソコンと第1USB周辺機器とをUSBケーブルで接続した状態を示す図。The figure which shows the state which connected the personal computer and the 1st USB peripheral device with the USB cable. 第1USB周辺機器に加えて、第2USB周辺機器が使用されている状態を示す図。The figure which shows the state in which the 2nd USB peripheral device is used in addition to the 1st USB peripheral device. 第1USB周辺機器のスイッチ切替え動作を示すフローチャート。The flowchart which shows the switch switching operation | movement of a 1st USB peripheral device. パソコンの動作手順を示すフローチャート。The flowchart which shows the operation | movement procedure of a personal computer. 接続先の変更を尋ねるメッセージの例を示す図。The figure which shows the example of the message which asks the change of a connecting point. 第2実施形態において、モバイル機器と第1USB周辺機器とを接続した状態を示す図。The figure which shows the state which connected the mobile apparatus and the 1st USB peripheral device in 2nd Embodiment. 第2実施形態において、第1USB周辺機器の補助USBポートにパソコンを接続した状態を示す図。The figure which shows the state which connected the personal computer to the auxiliary | assistant USB port of the 1st USB peripheral device in 2nd Embodiment. 第2実施形態において、第1USB周辺機器のスイッチ切替え動作を示すフローチャート。9 is a flowchart showing a switch switching operation of the first USB peripheral device in the second embodiment. 第2実施形態において、モバイル機器の動作手順を示すフローチャート。9 is a flowchart showing an operation procedure of a mobile device in the second embodiment. 第3実施形態に係る第1USB周辺機器の構成を示す図。The figure which shows the structure of the 1st USB peripheral device which concerns on 3rd Embodiment. 第3実施形態において、第1USB周辺機器にUSB電源アダプターを接続した状態を示す図。The figure which shows the state which connected the USB power adapter to the 1st USB peripheral device in 3rd Embodiment. 第3実施形態において、第1USB周辺機器のスイッチ切替え動作を示すフローチャート。9 is a flowchart showing a switch switching operation of the first USB peripheral device in the third embodiment. 第3実施形態において、モバイル機器の動作手順を示すフローチャート。9 is a flowchart showing an operation procedure of a mobile device in the third embodiment. 充電の是非を尋ねるメッセージの例を示す図。The figure which shows the example of the message which asks the right or wrong of charge.

本発明の実施の形態を図示するとともに図中の各要素に付した符号を参照して説明する。
(第1実施形態)
本発明の第1実施形態を説明する。
まず図1を用い、第1実施形態として想定するケースを説明する。
パソコン10に第1USB周辺機器100を接続して使用しているとする。
第1USB周辺機器100として、例えばUSBハードディスクを想定してもよい。
第1USB周辺機器100を使用したあと、さらに第2USB周辺機器20を使用する必要が生じたとする。
第2USB周辺機器20として、例えばプリンタを想定してもよい。
このような場合に、第1実施形態においては、第1USB周辺機器100をパソコン10から抜脱せずともよく、第2USB周辺機器を第1周辺機器のUSBポートに差し込めばパソコン10と第2USB周辺機器とが電気的に接続されるようになっている。
すなわち、第1実施形態は、上記の動作を可能にするための第1USB周辺機器100の構成、第1USB周辺機器100の制御方法、パソコン10の制御方法、および、接続シーケンス制御、に特徴を有する。
以下、具体的に説明していく。
Embodiments of the present invention will be illustrated and described with reference to reference numerals attached to respective elements in the drawings.
(First embodiment)
A first embodiment of the present invention will be described.
First, the case assumed as the first embodiment will be described with reference to FIG.
It is assumed that the first USB peripheral device 100 is connected to the personal computer 10 and used.
As the first USB peripheral device 100, for example, a USB hard disk may be assumed.
Assume that after using the first USB peripheral device 100, it becomes necessary to use the second USB peripheral device 20.
For example, a printer may be assumed as the second USB peripheral device 20.
In such a case, in the first embodiment, it is not necessary to remove the first USB peripheral device 100 from the personal computer 10, and if the second USB peripheral device is inserted into the USB port of the first peripheral device, the personal computer 10 and the second USB peripheral device are connected. The device is electrically connected.
That is, the first embodiment is characterized by the configuration of the first USB peripheral device 100 for enabling the above operation, the control method of the first USB peripheral device 100, the control method of the personal computer 10, and the connection sequence control. .
This will be specifically described below.

図2は、第1USB周辺機器100の構成を示す図である。
第1USB周辺機器100は、接続相手に対してスレーブとして動作する。
第1USB周辺機器100としては、USBチューナーや外付けUSBハードディスク、さらには、スピーカーや、入力補助装置(キーボード、マウス)、カードリーダーなどなど、各種の入出力装置が挙げられる。
FIG. 2 is a diagram showing the configuration of the first USB peripheral device 100. As shown in FIG.
The first USB peripheral device 100 operates as a slave to the connection partner.
Examples of the first USB peripheral device 100 include various input / output devices such as a USB tuner, an external USB hard disk, a speaker, an input auxiliary device (keyboard, mouse), a card reader, and the like.

第1USB周辺機器100は、二つのUSBポート110、120と、制御回路130と、機能回路部140と、電源部150と、切替えスイッチ部160、170と、を備える。USBポートとしては、メインUSBポート110と、補助USBポート120と、を有する。制御回路130は、第1USB周辺機器100の全体動作を制御するものであり、USBドライバを含んでいてもよい。   The first USB peripheral device 100 includes two USB ports 110 and 120, a control circuit 130, a functional circuit unit 140, a power supply unit 150, and changeover switch units 160 and 170. The USB port includes a main USB port 110 and an auxiliary USB port 120. The control circuit 130 controls the entire operation of the first USB peripheral device 100, and may include a USB driver.

機能回路部140は、USB周辺機器としての機能を発揮するための各種回路であり、第1USB周辺機器100がUSBハードディスクやUSBメモリであれば機能回路部140は記憶回路部であり、第1USB周辺機器100がUSBチューナーであれば機能回路部140は内蔵アンテナや送受信回路である。電源部は、バッテリと、電源回路と、を有し、電源回路はバッテリの充電状態を監視するとともにバッテリの電力を制御回路や機能回路部に供給する。   The functional circuit unit 140 is various circuits for performing functions as a USB peripheral device. If the first USB peripheral device 100 is a USB hard disk or USB memory, the functional circuit unit 140 is a storage circuit unit, and the first USB peripheral device If the device 100 is a USB tuner, the functional circuit unit 140 is a built-in antenna or a transmission / reception circuit. The power supply unit includes a battery and a power supply circuit. The power supply circuit monitors the state of charge of the battery and supplies the battery power to the control circuit and the functional circuit unit.

次に、第1USB周辺機器100内の信号線および電源線の配線と、切替えスイッチ部の構成と、について説明する。メインUSBポート110と補助USBポート120との間に信号切替えスイッチ160が配置されている。
信号切替えスイッチ160は、コモン信号接点161と、信号接続接点162と、信号中継接点163と、を有する。そして、コモン信号接点161はメインUSBポート110の信号線111に繋がっており、信号接続接点162は制御回路130に繋がっており、信号中継接点163は補助USBポート120の信号線121に繋がっている。
Next, the wiring of signal lines and power lines in the first USB peripheral device 100 and the configuration of the changeover switch unit will be described. A signal changeover switch 160 is disposed between the main USB port 110 and the auxiliary USB port 120.
The signal changeover switch 160 includes a common signal contact 161, a signal connection contact 162, and a signal relay contact 163. The common signal contact 161 is connected to the signal line 111 of the main USB port 110, the signal connection contact 162 is connected to the control circuit 130, and the signal relay contact 163 is connected to the signal line 121 of the auxiliary USB port 120. .

電源切替えスイッチ170は、コモン電源接点171と、電源受給接点172と、電源中継接点173と、を有する。
コモン電源接点171はメインUSBポート110の電源線112に繋がっており、電源受給接点172は電源部150に繋がっており、電源中継接点173は補助USBポート120の電源線122に繋がっている。
The power switch 170 has a common power contact 171, a power supply contact 172, and a power relay contact 173.
The common power contact 171 is connected to the power line 112 of the main USB port 110, the power supply contact 172 is connected to the power supply unit 150, and the power relay contact 173 is connected to the power line 122 of the auxiliary USB port 120.

補助USBポート120の信号線121および電源線122は分岐されて制御回路130にも接続されており、補助USBポート120の信号線121、電源線122に電圧変化等があればそれを制御回路130で検出できるようになっている。   The signal line 121 and the power line 122 of the auxiliary USB port 120 are branched and connected to the control circuit 130. If there is a voltage change or the like in the signal line 121 and the power line 122 of the auxiliary USB port 120, the control circuit 130 Can be detected.

信号切替えスイッチ160および電源切替えスイッチ170のスイッチング動作は制御回路130によって制御されるものであるが、フローチャートを参照して後述する。   Switching operations of the signal selector switch 160 and the power source selector switch 170 are controlled by the control circuit 130, and will be described later with reference to a flowchart.

次に、パソコン10と第1USB周辺機器100とをUSBケーブルで接続して使用する場合について説明する。
図3は、パソコン10と第1USB周辺機器100とをUSBケーブルで接続した状態を示す図である。
この場合、パソコン10がホスト側として動作し、第1USB周辺機器100がスレーブ側として動作する。
第1USB周辺機器100としては、パソコン10から電源の供給を受けるため、電源切替えスイッチ170を電源受給接点172に投入する。また、信号線をパソコン10のCPUと繋いでデータ交換を行うため、信号切替えスイッチ160を信号接続接点162に投入する。
これにより、パソコン10と第1USB周辺機器100とは電気的に接続され、パソコン10をホストとし、第1USB周辺機器100をスレーブとした動作ができるようになる。
Next, a case where the personal computer 10 and the first USB peripheral device 100 are used by connecting with a USB cable will be described.
FIG. 3 is a diagram showing a state in which the personal computer 10 and the first USB peripheral device 100 are connected by a USB cable.
In this case, the personal computer 10 operates as the host side, and the first USB peripheral device 100 operates as the slave side.
As the first USB peripheral device 100, in order to receive the power supply from the personal computer 10, the power switch 170 is turned on the power supply contact 172. Further, in order to exchange data by connecting the signal line to the CPU of the personal computer 10, the signal changeover switch 160 is inserted into the signal connection contact 162.
As a result, the personal computer 10 and the first USB peripheral device 100 are electrically connected, and an operation can be performed with the personal computer 10 as a host and the first USB peripheral device 100 as a slave.

次に、図4は、第1USB周辺機器100に加えて、第2USB周辺機器20が使用されている状態を示す図である。
例えば、図3のようにパソコン10と第1USB周辺機器100とを接続して使用していたが、次に別のUSB周辺機器を使用したくなったとする。この場合、ユーザは、第1USB周辺機器100をパソコン10から抜脱しないで、使用したい第2USB周辺機器20を第1USB周辺機器100の補助USBポート120に接続する。すると、第1USB周辺機器100が中継器になり、パソコン10と第2USB周辺機器20とが電気的に接続されるようになる。
ここで、第2USB周辺機器20は、本発明の特徴を持たない通常のUSB周辺機器であってもよく、あるいは、第1USB周辺機器100と同じ構成を有していてもよく、あるいは、OTG対応USB機器であってもよい。
Next, FIG. 4 is a diagram showing a state where the second USB peripheral device 20 is used in addition to the first USB peripheral device 100.
For example, suppose that the personal computer 10 and the first USB peripheral device 100 are connected and used as shown in FIG. 3, but then it is desired to use another USB peripheral device. In this case, the user connects the second USB peripheral device 20 to be used to the auxiliary USB port 120 of the first USB peripheral device 100 without removing the first USB peripheral device 100 from the personal computer 10. Then, the first USB peripheral device 100 becomes a repeater, and the personal computer 10 and the second USB peripheral device 20 are electrically connected.
Here, the second USB peripheral device 20 may be a normal USB peripheral device not having the features of the present invention, or may have the same configuration as the first USB peripheral device 100, or may be OTG compatible. It may be a USB device.

具体的に第1USB周辺機器100の内部変化を説明すると、第1USB周辺機器100において、信号切替えスイッチ160は信号中継接点163に投入され、電源切替えスイッチ170は電源中継接点173に投入される。すると、パソコン10からの電源が第2USB周辺機器20の電源部に供給されるようになる。
また、第2USB周辺機器20の制御回路は、第1USB周辺機器100を経由してパソコン10の制御回路部(CPU)と繋がり、互いにデータ交換できるようになる。
Specifically, the internal changes of the first USB peripheral device 100 will be described. In the first USB peripheral device 100, the signal changeover switch 160 is turned on to the signal relay contact 163, and the power supply changeover switch 170 is turned on to the power supply relay contact 173. Then, the power from the personal computer 10 is supplied to the power supply unit of the second USB peripheral device 20.
Further, the control circuit of the second USB peripheral device 20 is connected to the control circuit unit (CPU) of the personal computer 10 via the first USB peripheral device 100 so that data can be exchanged with each other.

(制御動作の説明)
切替えスイッチのスイッチング動作を説明する。
まず、図3のようにパソコン10と第1USB周辺機器100とがUSB接続されている場合、第1USB周辺機器100内においては、電源切替えスイッチ170を電源受給接点172に投入し、信号切替えスイッチ160を信号接続接点162に投入する。
これは、第1USB周辺機器100の初期的状態として、電源切替えスイッチ170を電源受給接点172に投入しておき、信号切替えスイッチ160を信号接続接点162に投入おけばよい。
メインUSBポート110がパソコン10と接続された場合には、内部のスイッチ状態を切り替えないでパソコン10との接続シーケンスを行えばよい。
これは通常のUSBホストとUSBデバイスとの接続制御と同じであり、これ以上の詳細な説明は省略する。
(Description of control operation)
The switching operation of the changeover switch will be described.
First, when the personal computer 10 and the first USB peripheral device 100 are connected by USB as shown in FIG. 3, in the first USB peripheral device 100, the power switch 170 is turned on to the power supply contact 172, and the signal switch 160. To the signal connection contact 162.
As an initial state of the first USB peripheral device 100, the power switch 170 may be turned on the power supply contact 172, and the signal switch 160 may be turned on the signal connection contact 162.
When the main USB port 110 is connected to the personal computer 10, the connection sequence with the personal computer 10 may be performed without switching the internal switch state.
This is the same as the connection control between a normal USB host and a USB device, and further detailed description is omitted.

さて、ここで、図3の状態から第1USB周辺機器100の補助USBポート120に第2USB周辺機器20を接続すると、切替えスイッチ160、170の接続は前述の図4のパターンになるのであるが、この移行プロセスを説明する。   Now, when the second USB peripheral device 20 is connected to the auxiliary USB port 120 of the first USB peripheral device 100 from the state of FIG. 3, the connection of the changeover switches 160 and 170 becomes the pattern shown in FIG. This migration process will be described.

図5、図6は、スイッチ切替え制御の動作手順を示すフローチャートである。
図5は第1USB周辺機器100のスイッチ切替え動作を示すフローチャートであり、図6はパソコン10の動作手順を示すフローチャートである。
第1USB周辺機器100は、補助USBポート120を監視する(ST110)。そして、図4のように第1USB周辺機器100の補助USBポート120に第2USB周辺機器20が接続されたとする。
すると、第1USB周辺機器100の制御回路130が第2USB周辺機器を検出する(ST120:YES)。
5 and 6 are flowcharts showing the operation procedure of the switch switching control.
FIG. 5 is a flowchart showing the switching operation of the first USB peripheral device 100, and FIG. 6 is a flowchart showing the operation procedure of the personal computer 10.
The first USB peripheral device 100 monitors the auxiliary USB port 120 (ST110). Assume that the second USB peripheral device 20 is connected to the auxiliary USB port 120 of the first USB peripheral device 100 as shown in FIG.
Then, the control circuit 130 of the first USB peripheral device 100 detects the second USB peripheral device (ST120: YES).

ここで、第2USB周辺機器20が補助USBポート120に接続されたときに第1USB周辺機器100の制御回路130がこの第2USB周辺機器20を検出する方法については様々考えられる。
例えば、第1USB周辺機器100の制御回路130が補助USBポート120の電源線122または信号線121を監視するとする。そして、第2USB周辺機器がセルフパワーのデバイスであるとする。
このとき、第2USB周辺機器20が補助USBポート120に接続されると電源線122または信号線121の電圧が変化するので、第1USB周辺機器100の制御回路130は第2USB周辺機器20が接続されたことを認識できる。
Here, various methods can be considered for the control circuit 130 of the first USB peripheral device 100 to detect the second USB peripheral device 20 when the second USB peripheral device 20 is connected to the auxiliary USB port 120.
For example, assume that the control circuit 130 of the first USB peripheral device 100 monitors the power supply line 122 or the signal line 121 of the auxiliary USB port 120. The second USB peripheral device is assumed to be a self-powered device.
At this time, when the second USB peripheral device 20 is connected to the auxiliary USB port 120, the voltage of the power line 122 or the signal line 121 changes, so that the control circuit 130 of the first USB peripheral device 100 is connected to the second USB peripheral device 20. I can recognize that.

あるいは、第2USB周辺機器20がバスパワーであってもこれが補助USBポート120に接続されたことを自動検出できるようにしてもよい。
この方法も様々考えられるところであるが、例えば、補助USBポート120に機械的または電気的な検出スイッチや検出端子を設けておき、これら検出スイッチや検出端子の状態を第1USB周辺機器100の制御回路130が監視するようにしてもよい。
Alternatively, it may be possible to automatically detect that the second USB peripheral device 20 is connected to the auxiliary USB port 120 even if it is bus-powered.
There are various methods for this. For example, a mechanical or electrical detection switch or detection terminal is provided in the auxiliary USB port 120, and the state of the detection switch or detection terminal is controlled by the control circuit of the first USB peripheral device 100. 130 may be monitored.

制御回路が第2USB周辺機器の接続を検出すると(ST120:YES)、制御回路130は信号線111を介してパソコン10にその旨を通知する(ST140)。   When the control circuit detects the connection of the second USB peripheral device (ST120: YES), the control circuit 130 notifies the personal computer 10 via the signal line 111 (ST140).

ここで、パソコン10側の動作の説明に移る(図6)。
パソコン10は第1USB周辺機器100からの通知を受信する(ST210)。
第1USB周辺機器100からの通知が、第2USB周辺機器20の接続を知らせる通知である場合(ST220:YES)、パソコン10はユーザに接続先の切替え判断を要求する(ST230)。
これは、例えば図7のように、接続先の変更を尋ねるメッセージを表示画面上に表示するという方法が例として挙げられる。
Now, let's move on to the operation of the PC 10 side (FIG. 6).
The personal computer 10 receives the notification from the first USB peripheral device 100 (ST210).
When the notification from the first USB peripheral device 100 is a notification notifying the connection of the second USB peripheral device 20 (ST220: YES), the personal computer 10 requests the user to determine the connection destination (ST230).
For example, as shown in FIG. 7, for example, a method of displaying a message asking for a change of the connection destination on the display screen is given.

接続先を第1USB周辺機器100から第2USB周辺機器20に変更するユーザ許可が得られた場合(ST240:YES)、パソコン10は第1USB周辺機器100にスイッチ切り替え動作の実行を指示する(ST250)。   When the user permission to change the connection destination from the first USB peripheral device 100 to the second USB peripheral device 20 is obtained (ST240: YES), the personal computer 10 instructs the first USB peripheral device 100 to execute the switch switching operation (ST250). .

再び、第1USB周辺機器100の動作説明に戻る(図5)。
パソコン10からの指示を受信し(ST150)、それがスイッチ切替え指示であった場合(ST160:YES)、第1USB周辺機器100はスイッチ切替え動作を実行する(ST170)。
すなわち、信号切替えスイッチ160は信号中継接点163に投入し、電源切替えスイッチ170は電源中継接点173に投入する。この段階で、図4に示したように、第1USB周辺機器100を間にして、パソコン10と第2USB周辺機器20とが電気的、信号的に接続される。そして、パソコン10が第2USB周辺機器20と接続シーケンスを実行して、パソコン10と第2USB周辺機器20とが接続される(図6のST260)。
Returning to the operation of the first USB peripheral device 100 again (FIG. 5).
When an instruction from the personal computer 10 is received (ST150) and it is a switch switching instruction (ST160: YES), the first USB peripheral device 100 executes a switch switching operation (ST170).
That is, the signal changeover switch 160 is turned on at the signal relay contact 163, and the power supply changeover switch 170 is turned on at the power supply relay contact 173. At this stage, as shown in FIG. 4, the personal computer 10 and the second USB peripheral device 20 are electrically and signalally connected with the first USB peripheral device 100 therebetween. Then, the personal computer 10 executes the connection sequence with the second USB peripheral device 20, and the personal computer 10 and the second USB peripheral device 20 are connected (ST260 in FIG. 6).

このような構成によれば、パソコンの接続相手を第1USB周辺機器から第2USB周辺機器に変更する場合であってもUSBコネクタの抜脱は必要なく、補助USBポートに第2USB周辺機器をするだけでよい。
したがって、接続相手の変更を行う場合でもわずらわしい繋ぎ替えが必要なく、ユーザの利便性が向上する。
According to such a configuration, even when the connection partner of the personal computer is changed from the first USB peripheral device to the second USB peripheral device, it is not necessary to remove the USB connector, and only the second USB peripheral device is connected to the auxiliary USB port. It's okay.
Therefore, even when the connection partner is changed, there is no need for troublesome reconnection, and the convenience for the user is improved.

(第2実施形態)
次に、本発明の第2実施形態について説明する。
上記第1実施形態では、第1USB周辺機器100のメインUSBポート110にパソコン10が接続されて、補助USBポート120に第2USB周辺機器20が接続されるという場合を説明した。
第2実施形態としては、第1USB周辺機器100のメインUSBポート110にOTG対応のモバイル機器が接続され、補助USBポート120にパソコン10が接続される形態を説明する。
第2実施形態では、モバイル機器200は当初はホストとして動作するが、パソコン10と接続されるとスレーブに移行する必要が生じる。
(Second embodiment)
Next, a second embodiment of the present invention will be described.
In the first embodiment, the case where the personal computer 10 is connected to the main USB port 110 of the first USB peripheral device 100 and the second USB peripheral device 20 is connected to the auxiliary USB port 120 has been described.
As a second embodiment, a mode in which an OTG compatible mobile device is connected to the main USB port 110 of the first USB peripheral device 100 and the personal computer 10 is connected to the auxiliary USB port 120 will be described.
In the second embodiment, the mobile device 200 initially operates as a host, but when connected to the personal computer 10, it is necessary to shift to a slave.

図8は、モバイル機器200と第1USB周辺機器100とを接続した状態を示す図である。
第1USB周辺機器100の構成は第1実施形態と同じである。
モバイル機器200は、USB OTG機能を有する。すなわち、接続相手によってホストにもなりスレーブにもなるデュアルロール機能を有する。
モバイル機器200は、制御回路210、機能回路部220および電源部230に加えて、電源切替えスイッチ240を有する。
電源切替えスイッチ240は、コモン電源接点241、電源供給接点242および電源受給接点243を有している。
コモン電源接点241はUSBポート250の電源線251に繋がっている。
電源供給接点242および電源受給接点243は電源回路231に繋がっているが、電源供給接点242は電源部230からUSBポート250に電源を送出するラインに繋がり、電源受給接点243はUSBポート250から電源を受給するラインに繋がっている。
FIG. 8 is a diagram illustrating a state in which the mobile device 200 and the first USB peripheral device 100 are connected.
The configuration of the first USB peripheral device 100 is the same as that of the first embodiment.
The mobile device 200 has a USB OTG function. That is, it has a dual roll function that becomes both a host and a slave depending on the connection partner.
The mobile device 200 includes a power supply switch 240 in addition to the control circuit 210, the function circuit unit 220, and the power supply unit 230.
The power supply changeover switch 240 has a common power contact 241, a power supply contact 242 and a power supply contact 243.
The common power contact 241 is connected to the power line 251 of the USB port 250.
The power supply contact 242 and the power supply contact 243 are connected to the power supply circuit 231. However, the power supply contact 242 is connected to a line for sending power from the power supply unit 230 to the USB port 250, and the power supply contact 243 is supplied from the USB port 250. It is connected to the line to receive.

図8のようにモバイル機器200と第1USB周辺機器100とが繋がっている場合、モバイル機器200がホストであり、第1USB周辺機器100はスレーブである。
したがって、モバイル機器200は、第1USB周辺機器100に電源を供給できるように、電源切替えスイッチ240を電源供給接点242に投入する。
When the mobile device 200 and the first USB peripheral device 100 are connected as shown in FIG. 8, the mobile device 200 is a host and the first USB peripheral device 100 is a slave.
Therefore, the mobile device 200 turns on the power supply switch 240 at the power supply contact 242 so that power can be supplied to the first USB peripheral device 100.

一方、図9は、第1USB周辺機器100の補助USBポート120にパソコン10を接続した状態を示す図である。すると、パソコン10がホストとなり、モバイル機器200がスレーブに移行する。
このとき、モバイル機器200の電源切替えスイッチ240においては、電源供給接点242から電源受給接点243にスイッチングし、パソコン10からの電源供給を受けるように内部状態が変化する。
第1周辺機器100としては、第1実施形態と同様に中継器として機能するため、信号切替えスイッチ160を信号中継接点163に投入し、電源切替えスイッチ170を電源中継接点173に投入する。
これにより、第1USB周辺機器100を間にしてモバイル機器とパソコン10とが信号的、電気的に接続される。
On the other hand, FIG. 9 is a diagram showing a state in which the personal computer 10 is connected to the auxiliary USB port 120 of the first USB peripheral device 100. Then, the personal computer 10 becomes a host, and the mobile device 200 shifts to a slave.
At this time, in the power supply changeover switch 240 of the mobile device 200, the internal state changes so as to switch from the power supply contact 242 to the power supply contact 243 and to receive power supply from the personal computer 10.
Since the first peripheral device 100 functions as a repeater as in the first embodiment, the signal changeover switch 160 is turned on to the signal relay contact 163 and the power supply changeover switch 170 is turned on to the power supply relay contact 173.
Thereby, the mobile device and the personal computer 10 are connected in a signal and electrical manner with the first USB peripheral device 100 interposed therebetween.

(制御動作の説明)
第2実施形態におけるスイッチング動作を説明する。
図8のようにモバイル機器200と第1USB周辺機器100とが接続されるケースは通常のOTG対応機器とUSBデバイスとの接続である。
図8の状態から第1USB周辺機器100の補助USBポート120にパソコン10を接続すると切替えスイッチの接続は前述の図9のパターンになるのであるが、この移行プロセスを説明する。
(Description of control operation)
A switching operation in the second embodiment will be described.
The case where the mobile device 200 and the first USB peripheral device 100 are connected as shown in FIG. 8 is a connection between a normal OTG compatible device and a USB device.
When the personal computer 10 is connected to the auxiliary USB port 120 of the first USB peripheral device 100 from the state of FIG. 8, the connection of the changeover switch becomes the pattern of FIG. 9 described above. This transition process will be described.

まず、図10は第1USB周辺機器100のスイッチ切替え動作を示すフローチャートであるが、これは第1実施形態の図5においてパソコン10をモバイル機器200と読み替えるだけである(ST340、ST350)。したがってこれ以上の説明は第1実施形態と重複するので割愛する。   First, FIG. 10 is a flowchart showing the switch switching operation of the first USB peripheral device 100. This only replaces the personal computer 10 with the mobile device 200 in FIG. 5 of the first embodiment (ST340, ST350). Therefore, further explanation will be omitted because it overlaps with the first embodiment.

次に、図11はモバイル機器200の動作手順を示すフローチャートである。
この動作も第1実施形態で説明したパソコン10の動作と基本的に同じである。
ただし、モバイル機器は、第1USB周辺機器100と接続しているときはホストとなって電源を供給する側になるが、パソコン10と接続されたときにはスレーブとなって電源受給を受ける側となる。
したがって、ST451に示すように、パソコン10との接続(ST460)に先立って、電源切替えスイッチ240を電源供給接点242から電源受給接点243に切り替えることが必要になる。
Next, FIG. 11 is a flowchart showing an operation procedure of the mobile device 200.
This operation is basically the same as the operation of the personal computer 10 described in the first embodiment.
However, the mobile device serves as a host to supply power when connected to the first USB peripheral device 100, but serves as a slave to receive power supply when connected to the personal computer 10.
Therefore, as shown in ST451, prior to connection with the personal computer 10 (ST460), it is necessary to switch the power supply switch 240 from the power supply contact 242 to the power supply contact 243.

このような構成においても前記第1実施形態と同様の作用効果を奏し、USB装置を使用する際のユーザの利便性が向上する。   Even in such a configuration, the same operational effects as those of the first embodiment can be obtained, and the convenience of the user when using the USB device is improved.

(第3実施形態)
次に、本発明の第3実施形態について説明する。
第3実施形態の基本的構成は第1実施形態および第2実施形態と同様であるが、第3実施形態においては第1USB周辺機器100にさらに電源引き込みスイッチ180を追加した点に特徴を有する。
図12に示すように、電源引き込みスイッチ180は、補助USBポート120の電源配線122と電源回路151との間に配置されており、言い換えると、補助USBポート120の電源配線122と電源受給接点172とをバイパスしている。
電源引き込みスイッチ180は、ONとOFFとの2ステートスイッチである。
(Third embodiment)
Next, a third embodiment of the present invention will be described.
The basic configuration of the third embodiment is the same as that of the first and second embodiments, but the third embodiment is characterized in that a power pull-in switch 180 is further added to the first USB peripheral device 100.
As shown in FIG. 12, the power pull-in switch 180 is disposed between the power supply wiring 122 of the auxiliary USB port 120 and the power supply circuit 151. In other words, the power supply wiring 122 of the auxiliary USB port 120 and the power supply contact 172 And bypass.
The power pull-in switch 180 is a two-state switch of ON and OFF.

図12のように、メインUSBポート110にモバイル機器が接続され、補助USBポート120に何も接続されていないときは、電源引き込みスイッチ180はOFFであり、そのほかは図8と同じである。
ここで、モバイル機器200を使用しているうちにモバイル機器200のバッテリ残量が少なくなってくる。
このような場合、USB電源アダプター30で充電する必要があるが、従来は、USB電源アダプター30を接続するには第1USB周辺機器100を外さなくてはならなかった。
この点、本実施形態においては、補助USBポート120にUSB電源アダプター30を差し込めばよい。
As shown in FIG. 12, when the mobile device is connected to the main USB port 110 and nothing is connected to the auxiliary USB port 120, the power pull-in switch 180 is OFF, and the rest is the same as FIG.
Here, the remaining battery level of the mobile device 200 decreases while the mobile device 200 is used.
In such a case, it is necessary to charge with the USB power adapter 30, but conventionally, the first USB peripheral device 100 had to be removed to connect the USB power adapter 30.
In this regard, in the present embodiment, the USB power adapter 30 may be inserted into the auxiliary USB port 120.

図13は、補助USBポート120にUSB電源アダプター30を接続した状態を示す図である。
このときの第1USB周辺機器100およびモバイル機器200の内部変化を説明すると、第1USB周辺機器100では電源引き込みスイッチ180がONになっただけである。
一方、モバイル機器200では、電源切替えスイッチ240が電源受給接点243に投入される。
これにより、モバイル機器200も第1USB周辺機器100も電源アダプター30からの電源によって動作を継続でき、かつ、バッテリ232、152の充電もできる。そして、信号切替えスイッチ160はそのままであるからモバイル機器200と第1USB周辺機器100とは信号的に接続を継続し、モバイル機器200は第1USB周辺機器100を用いた動作を継続することができる。
FIG. 13 is a diagram showing a state in which the USB power adapter 30 is connected to the auxiliary USB port 120. As shown in FIG.
The internal changes of the first USB peripheral device 100 and the mobile device 200 at this time will be described. In the first USB peripheral device 100, the power supply pull-in switch 180 is only turned on.
On the other hand, in the mobile device 200, the power changeover switch 240 is input to the power supply contact 243.
As a result, both the mobile device 200 and the first USB peripheral device 100 can continue to operate with the power from the power adapter 30, and the batteries 232 and 152 can be charged. Since the signal changeover switch 160 remains unchanged, the mobile device 200 and the first USB peripheral device 100 can be connected in a signal manner, and the mobile device 200 can continue the operation using the first USB peripheral device 100.

(制御動作の説明)
第3実施形態のスイッチング動作を説明する。
図12のようにモバイル機器と第1USB周辺機器100とが接続されるケースは通常のOTG対応機器とUSBデバイスとの接続である。
図12の状態から第1USB周辺機器100の補助USBポート120に電源アダプター30を接続すると切替えスイッチの接続は前述の図13のパターンになるのであるが、この移行プロセスを説明する。
(Description of control operation)
The switching operation of the third embodiment will be described.
The case where the mobile device and the first USB peripheral device 100 are connected as shown in FIG. 12 is a connection between a normal OTG compatible device and a USB device.
When the power adapter 30 is connected to the auxiliary USB port 120 of the first USB peripheral device 100 from the state of FIG. 12, the connection of the changeover switch becomes the pattern of FIG. 13 described above, and this transition process will be described.

図14は第1USB周辺機器100のスイッチ切替え動作を示すフローチャートであり、図15はモバイル機器の動作手順を示すフローチャートである。
まず、図14において第1USB周辺機器100が補助USBポート120に新しい接続を検出すると(ST520)、この新しい接続をモバイル機器200に通知する(ST540)。
このとき、第1USB周辺機器100は、補助USBポート120に接続された機器がUSBデバイス20なのか、パソコン10なのか、USB電源アダプター30なのか、は区別ができないとする。
FIG. 14 is a flowchart showing the switching operation of the first USB peripheral device 100, and FIG. 15 is a flowchart showing the operation procedure of the mobile device.
First, in FIG. 14, when the first USB peripheral device 100 detects a new connection to the auxiliary USB port 120 (ST520), the mobile device 200 is notified of this new connection (ST540).
At this time, it is assumed that the first USB peripheral device 100 cannot distinguish whether the device connected to the auxiliary USB port 120 is the USB device 20, the personal computer 10, or the USB power adapter 30.

図15のモバイル機器200の動作において、第1USB周辺機器100から新しい機器が接続された旨の通知を受けると、モバイル機器200はユーザに切替え判断を要求する(ST630)。
これは、まず、第1実施形態の図7で説明したように、接続先を変更してもよいかどうかをユーザに尋ねる。
ここで、ユーザとしては、接続先は第1USB周辺機器100のままで維持したいとすると、接続先の変更は許可しない(ST640:NO)。
第3実施形態においては、接続先の変更が許可されなかった場合に、さらに追加して、充電を行うかどうかをユーザに尋ねる(ST641、図16参照)。
充電指示があった場合(ST641:YES)、第1USB周辺機器100に充電を行うためのスイッチ動作を指示する。
In the operation of the mobile device 200 of FIG. 15, when receiving a notification that a new device has been connected from the first USB peripheral device 100, the mobile device 200 requests the user to make a switching decision (ST630).
First, as described with reference to FIG. 7 of the first embodiment, the user is asked whether the connection destination may be changed.
Here, if the user wants to maintain the connection destination as the first USB peripheral device 100, the change of the connection destination is not permitted (ST640: NO).
In the third embodiment, when the change of the connection destination is not permitted, the user is further asked whether or not to perform charging (see ST641, FIG. 16).
If there is a charging instruction (ST641: YES), the first USB peripheral device 100 is instructed to perform a switch operation for charging.

第1USB周辺機器(図14)100としては、モバイル機器200からの指示が接続先の切替えではないが(ST560:NO)、充電の指示であるので(ST561)、スイッチ動作としては電源引き込みスイッチ180をONにする(ST570)。そして、モバイル機器(図15)200としても電源切替えスイッチ240を電源受給接点に切り替える。   As the first USB peripheral device (FIG. 14) 100, since the instruction from the mobile device 200 is not switching the connection destination (ST560: NO), but is a charging instruction (ST561), the power pull-in switch 180 is used as the switch operation. Set to ON (ST570). Then, the mobile device (FIG. 15) 200 also switches the power switch 240 to the power supply contact.

このような構成によれば、モバイル機器の充電が必要になった場合でも、補助USBポートにUSB電源アダプタを接続することで、充電しながらモバイル機器200と第1USB周辺機器100との信号的接続を継続できる。すなわち、モバイル機器200は、第1USB周辺機器100を用いた動作を継続することができる。   According to such a configuration, even when the mobile device needs to be charged, by connecting the USB power adapter to the auxiliary USB port, signal connection between the mobile device 200 and the first USB peripheral device 100 while charging. Can continue. That is, the mobile device 200 can continue the operation using the first USB peripheral device 100.

なお、本発明は上記実施の形態に限られたものではなく、趣旨を逸脱しない範囲で適宜変更することが可能である。例えば、
第1実施形態においては、パソコンが第1USB周辺機器から新しい機器の接続の通知を受けると(ST220:YES)、ユーザに接続切替えの是非を尋ねる構成を説明した。
この例に限らず、第1USB周辺機器からの通知が無くても、ユーザがパソコンを操作して第1USB周辺機器のスイッチ切替え動作を自発的に指示してもよい。
同様に、第2実施形態および第3実施形態においても、第1USB周辺機器からの通知が無くても、ユーザがモバイル機器を操作して第1USB周辺機器のスイッチ切替え動作を自発的に指示してもよい。
Note that the present invention is not limited to the above-described embodiment, and can be changed as appropriate without departing from the spirit of the present invention. For example,
In the first embodiment, the configuration has been described in which when the personal computer receives a notification of connection of a new device from the first USB peripheral device (ST220: YES), the user is asked whether to switch the connection.
Without being limited to this example, even if there is no notification from the first USB peripheral device, the user may voluntarily instruct a switch switching operation of the first USB peripheral device by operating the personal computer.
Similarly, in the second and third embodiments, even when there is no notification from the first USB peripheral device, the user voluntarily instructs the switch operation of the first USB peripheral device by operating the mobile device. Also good.

10…パソコン、20…第2USB周辺機器、30…電源アダプター、100…第1USB周辺機器、110…メインUSBポート、120…補助USBポート、130…制御回路、140…機能回路部、150…電源部、160…信号切替えスイッチ、161…コモン信号接点、162…信号接続接点、163…信号中継接点、170…電源切替えスイッチ、171…コモン電源接点、172…電源受給接点、173…電源中継接点、180…電源引き込みスイッチ、200…モバイル機器、240…電源切替えスイッチ、241…コモン電源接点、242…電源供給接点、243…電源受給接点。 10 ... PC, 20 ... second USB peripheral device, 30 ... power adapter, 100 ... first USB peripheral device, 110 ... main USB port, 120 ... auxiliary USB port, 130 ... control circuit, 140 ... functional circuit part, 150 ... power supply part , 160 ... Signal switch, 161 ... Common signal contact, 162 ... Signal connection contact, 163 ... Signal relay contact, 170 ... Power switch, 171 ... Common power contact, 172 ... Power supply contact, 173 ... Power relay contact, 180 Power supply pull-in switch, 200 Mobile device, 240 Power switch, 241 Common power contact, 242 Power supply contact, 243 Power supply contact

Claims (4)

USBインターフェースを介して他の機器と接続するUSBデバイスであって、
メインUSBポートと補助USBポートと、信号切替えスイッチと、電源切替えスイッチと、電源引き込みスイッチと、内部制御部と、内部電源部と、
を有し、
前記信号切替えスイッチは、前記内部制御部に繋がる信号接続接点と、前記補助USBポートの信号線に繋がる信号中継接点と、を有し、前記メインUSBポートの信号線を、前記信号接続接点と前記信号中継接点との間で切り替えし、
前記電源切替えスイッチは、前記内部電源部に繋がる電源受給接点と、前記補助USBポートの電源線に繋がる電源中継接点と、を有し、前記メインUSBポートの電源線を、前記電源受給接点と前記電源中継接点との間で切り替えし、
前記電源引き込みスイッチは、前記補助USBポートの電源線と前記電源受給接点との間に配置され、前記補助USBポートの電源線と前記電源受給接点との間の、通電と非通電との切替えが可能であり、
前記メインUSBポートにUSBインターフェースを用いてOTG(On-The-Go)規格に法った情報のやり取りをするデュアルロールUSBデバイス機器が接続され、かつ、前記補助USBポートに何も接続されていない場合にはこのデュアルロールUSBデバイス機器と電気的および信号的に接続を確立し、
前記メインUSBポートに前記デュアルロールUSBデバイス機器が接続され、かつ、前記補助USBポートに第2USBデバイスが接続された場合には、前記デュアルロールUSBデバイス機器と前記第2USBデバイスとを中継する
ことを特徴とするUSBデバイス。
A USB device that connects to other devices via a USB interface,
Main USB port , auxiliary USB port, signal changeover switch, power supply changeover switch, power supply pull-in switch, internal control unit, internal power supply unit,
Have
The signal changeover switch has a signal connection contact connected to the internal control unit and a signal relay contact connected to a signal line of the auxiliary USB port, and the signal line of the main USB port is connected to the signal connection contact and the signal. Switch between signal relay contacts,
The power supply switch has a power supply contact point connected to the internal power supply unit and a power relay contact point connected to a power line of the auxiliary USB port, and the power line of the main USB port is connected to the power supply contact point and the power supply contact point. Switch between the power relay contact and
The power pull-in switch is disposed between the power line of the auxiliary USB port and the power supply contact, and switching between energization and non-energization between the power line of the auxiliary USB port and the power supply contact is performed. Is possible,
A dual-role USB device that exchanges information according to the OTG (On-The-Go) standard using a USB interface is connected to the main USB port, and nothing is connected to the auxiliary USB port In case you establish an electrical and signal connection with this dual-role USB device equipment ,
When the dual-role USB device device is connected to the main USB port and the second USB device is connected to the auxiliary USB port, the dual-role USB device device and the second USB device are relayed. USB device characterized by.
請求項1に記載のUSBデバイスのメインUSBポートに接続されデュアルロールUSBデバイス機器の制御方法であって、
前記USBデバイスから新しい機器の接続が当該デュアルロールUSBデバイス機器に通知された場合には、前記デュアルロールUSBデバイス機器がユーザに接続先の変更の是非を問い、
ユーザから接続先の変更の指示を前記デュアルロールUSBデバイス機器が得た場合には、前記USBデバイスに当該デュアルロールUSBデバイス機器と前記新しい機器との接続を中継させる指示を前記デュアルロールUSBデバイス機器が与える
ことを特徴とするデュアルロールUSBデバイス機器の制御方法。
A control method of dual-role USB device connected to the main USB port of the USB device according to claim 1,
When the connection of a new device is notified from the USB device to the dual role USB device device, the dual role USB device device asks the user whether to change the connection destination,
When the dual-role USB device device receives an instruction to change the connection destination from the user, the dual-role USB device device instructs the USB device to relay the connection between the dual-role USB device device and the new device. A method for controlling a dual-role USB device, characterized by:
請求項に記載のデュアルロールUSBデバイス機器の制御方法において、
前記新しい機器がUSBホスト装置である場合には、当該デュアルロールUSBデバイス機器はスレーブとなる
ことを特徴とするデュアルロールUSBデバイス機器の制御方法。
In the control method of the dual role USB device apparatus according to claim 2 ,
When the new device is a USB host device, the dual-role USB device device is a slave.
請求項に記載のUSBデバイスの制御方法であって、
前記メインUSBポートにデュアルロールUSBデバイス機器が接続された状態でさらに前記補助USBポートに新たな機器が接続されたことを前記内部制御部が検出した場合には、前記内部制御部が前記デュアルロールUSBデバイス機器に新しい機器の接続を通知し、
前記デュアルロールUSBデバイス機器からの充電の指示を前記内部制御部が受けた場合には、前記内部制御部が前記電源引き込みスイッチをオンにする
ことを特徴とするUSBデバイスの制御方法。
A control method of a USB device according to claim 1,
When the internal control unit detects that a new device is connected to the auxiliary USB port while a dual-role USB device device is connected to the main USB port, the internal control unit Notify USB device device of new device connection,
When the internal control unit receives an instruction to charge from the dual-role USB device, the internal control unit turns on the power pull-in switch.

JP2011188657A 2011-08-31 2011-08-31 USB device and method for controlling USB device Active JP5907550B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011188657A JP5907550B2 (en) 2011-08-31 2011-08-31 USB device and method for controlling USB device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011188657A JP5907550B2 (en) 2011-08-31 2011-08-31 USB device and method for controlling USB device

Publications (2)

Publication Number Publication Date
JP2013050859A JP2013050859A (en) 2013-03-14
JP5907550B2 true JP5907550B2 (en) 2016-04-26

Family

ID=48012850

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011188657A Active JP5907550B2 (en) 2011-08-31 2011-08-31 USB device and method for controlling USB device

Country Status (1)

Country Link
JP (1) JP5907550B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455465A (en) * 2013-09-05 2013-12-18 锐思设计有限公司 Universal Serial Bus device
JP5880905B1 (en) * 2014-12-11 2016-03-09 富士ゼロックス株式会社 Connection control device and USB connection device
CN104503654B (en) * 2014-12-30 2017-08-04 京东方科技集团股份有限公司 Touch-control sensing unit, touch base plate and preparation method thereof and touch-control display panel
JP6516511B2 (en) * 2015-03-03 2019-05-22 センスシングスジャパン株式会社 Electronics
WO2016194631A1 (en) * 2015-06-01 2016-12-08 ソニー株式会社 Electronic device and connection method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004005283A (en) * 2002-06-03 2004-01-08 Matsushita Electric Ind Co Ltd Usb host/device connecting mechanism
JP2004029885A (en) * 2002-06-21 2004-01-29 Sharp Corp Connecting device
JP2004102716A (en) * 2002-09-10 2004-04-02 Seiko Epson Corp Electronic device having a serial interface
DE60310586T2 (en) * 2002-09-24 2007-10-11 Koninklijke Philips Electronics N.V. CONNECTION SYSTEM
JP2005208942A (en) * 2004-01-22 2005-08-04 Seiko Epson Corp SYSTEM, ELECTRONIC DEVICE, PROGRAM, AND DATA TRANSMISSION CONTROL METHOD
JP2007179093A (en) * 2005-12-26 2007-07-12 Toshiba Corp Usb device, and control method for usb device

Also Published As

Publication number Publication date
JP2013050859A (en) 2013-03-14

Similar Documents

Publication Publication Date Title
JP5907550B2 (en) 2016-04-26 USB device and method for controlling USB device
JP5548238B2 (en) 2014-07-16 Power system comprising two units and charging method
CN102810880A (en) 2012-12-05 Power supply control method, power supply control device and electronic device
US10025351B2 (en) 2018-07-17 System for controlling peripherals connected to a docking station
JP2016537749A (en) 2016-12-01 Power management for accessory devices
JP5918934B2 (en) 2016-05-18 Media player device and wake-up method
JP2008097298A (en) 2008-04-24 Electronic equipment, connection equipment identification method for electronic equipment, and control system
JP6949792B2 (en) 2021-10-13 Devices, control modules, controllers
TW201014052A (en) 2010-04-01 Detachable host accessory and portable system
CN103988572B (en) 2017-12-01 Near-field communication for Wireless Display/docking triggers
JP5058083B2 (en) 2012-10-24 Interface device
JP2014068526A (en) 2014-04-17 Host device connectable to user terminal device, and charging method therefor
JP6974886B2 (en) 2021-12-01 A connector, and a second electronic device that includes the connector
KR20140071180A (en) 2014-06-11 Electronic apparatus, external apparatus and method for controlling the same
CN110247264B (en) 2020-09-25 Connector and method for controlling charging by using connector
CN110879792A (en) 2020-03-13 Electronic equipment and interface control method thereof
CN104638711A (en) 2015-05-20 Mobile equipment and charging system for same
CN102572063B (en) 2014-11-05 System state control method and portable terminal
CN105491185A (en) 2016-04-13 Portable electronic equipment
JP2007058310A (en) 2007-03-08 Usb switch and kvm switch
JP2018113759A (en) 2018-07-19 Information processor provided with chargeable battery and charging device
JP6712062B2 (en) 2020-06-17 Electronic device, electronic system, and power supply control method
JP6669969B2 (en) 2020-03-18 Function expansion device, electronic circuit, electronic system, and power control program
JP2011129061A (en) 2011-06-30 Information processor
KR101414025B1 (en) 2014-07-02 Media player device and method for wake-up thereof

Legal Events

Date Code Title Description
2014-07-12 A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140711

2014-08-08 A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20140807

2015-04-10 A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150410

2015-06-03 A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150602

2015-07-30 A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150730

2016-02-12 TRDD Decision of grant or rejection written
2016-02-24 A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160223

2016-03-24 A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160317

2016-04-01 R150 Certificate of patent or registration of utility model

Ref document number: 5907550

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150