JP2004110145A - Usb connector connecting device, usb connector connecting method, usb connector connecting program, and medium for recording usb connecting program - Google Patents

Usb connector connecting device, usb connector connecting method, usb connector connecting program, and medium for recording usb connecting program Download PDF

Info

Publication number
JP2004110145A
JP2004110145A JP2002268567A JP2002268567A JP2004110145A JP 2004110145 A JP2004110145 A JP 2004110145A JP 2002268567 A JP2002268567 A JP 2002268567A JP 2002268567 A JP2002268567 A JP 2002268567A JP 2004110145 A JP2004110145 A JP 2004110145A
Authority
JP
Japan
Prior art keywords
mode
mini
usb connector
usb
plug
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
JP2002268567A
Other languages
Japanese (ja)
Inventor
Kazue Miura
三浦 和恵
Hideo Imai
今井 秀夫
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2002268567A priority Critical patent/JP2004110145A/en
Publication of JP2004110145A publication Critical patent/JP2004110145A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To solve the problem of a possibility of causing incorrect connection although an OTG (On The Go) device equipped with a mini AB receptacle is usable as a host or a device. <P>SOLUTION: Control is performed to suppress the whole or a part of output to a USB (universal serial bus) connector connecting means when set to a host mode and determined that the mini B of the USB connector is connected, and when set to a device mode and determined that the mini A of the USB connector is connected. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明はパーソナルコンピュータを始めとする情報機器と各種周辺装置を接続し、データ通信するための一般的な方式の一である、USB:Universal Serial Bus(以後「USB」と言う)を使用するためのUSBコネクタと接続するためのUSBコネクタ接続手段を備えたUSBコネクタ接続装置に関するものである。
【0002】
特に、パーソナルコンピュータ等のホスト機器を必要とせず、周辺装置同士を接続するためのUSBオンザゴー:USB On The Go(以後「OTG」と言う)を使用するためのUSBコネクタと接続するためのUSBコネクタ接続手段を備えた、USBコネクタ接続装置に関するものである。
【0003】
またこのUSBコネクタが正常に接続されているか否かを判断するための手段、装置、あるいはこのための方法、更に正常に接続されていると判断される時にのみその接続されている装置を動作させ、正常に接続されていないと判断される時にはその装置を動作させないように抑制し、これによってその装置の異常動作や、異常動作によって発生する可能性のある種々の障害、例えば機器破損等を防止するための装置や方法、プログラムおよびプログラムを記録した媒体に関するものである。
【0004】
【従来の技術】
従来、パーソナルコンピュータを始めとする情報機器と各種周辺装置を接続し、データ通信するための一般的な方式の一としてUSBが規定され広く使用されている(例えば、下記非特許文献1参照)。
【0005】
このUSBを使用することによって、パソコンの電源を入れたままの状態でプリンタやデジタルカメラなど多くの周辺装置を簡単に接続したり切り離すことができ、これら周辺装置とパソコン間のデータ通信の利便性が著しく向上している。
【0006】
また、USBに対応した周辺装置をUSBによってパソコンと接続すると、その周辺装置の種類が自動的に認識され、その周辺装置とデータ通信するのに必要なドライバソフトウエアがパソコンに自動的にインストールされる方式も採用されている。この方式を使用すれば、ユーザは面倒なソフトウエアドライバのインストール作業から解放される。
【0007】
更に、USBではホストであるパソコンからデバイスである周辺装置に電源が供給される。従って特に、周辺装置が超小型で可搬性の高い装置であるような場合、周辺装置側で電源を用意する必要がないので、周辺装置を更に小型化することができ、可搬性をより一層向上させることができる。
【0008】
USBでは前記のようにホストとしてのパソコンとデバイスとしての周辺装置が接続され、ホストからデバイスに電力が供給される。そこでUSB接続に使用するUSBケーブルではその両端に、ホスト側と接続するためのコネクタAとデバイス側と接続するためのコネクタBを有し、コネクタAとコネクタBの形状を変えることによって、間違って逆に接続されることを防止し、電源供給線の誤接続による機器の破損等が発生しないようにしていた(下記非特許文献1参照)。
【0009】
しかしながら、このUSBはあくまでもホストとしてのパソコンと、デバイスとしての周辺装置との間を接続することを前提としたもので、ホストからの呼び出しによってデータ通信が起動されるように規定されており、周辺装置間で直接データ通信することはできなかった。
【0010】
そこでこの制限を解消し、周辺装置間で直接データ通信するためにOTGが規定された(例えば、下記非特許文献2参照)。
【0011】
このOTGを使用することにより、従来のUSBの有する様々なメリットをそのまま維持しながら、例えばデジタルカメラとプリンタを直接接続し、デジタルカメラで撮影した画像を直接プリンタで印刷するような使い方が可能になる。このような使い方をするならば、設置、接続、操作等が比較的面倒なパソコンを必要とせず、簡単にデジタルカメラで撮影した画像をプリンタで印刷することができる。
【0012】
あるいはまた、デジタルカメラと携帯電話を直接接続すれば、デジタルカメラで撮影した画像を直接携帯電話に送り、その画像をその携帯電話の通信機能を使い、遠隔地にある他の携帯電話やパソコンに送信することが可能になる。
【0013】
あるいはまた、携帯電話とプリンタを直接接続すれば、遠隔地にある他の携帯電話やパソコンから送信された情報をその携帯電話で受信し、その受信した情報をプリンタで印刷することが可能になる。
【0014】
更にまた、例えば2台のMP3プレーヤをOTGで直接接続すれば(著作権等の技術的な課題以外の課題は別の問題として存在するが、少なくとも技術的には)、互いのMP3プレーヤ同士が記憶している音楽コンテンツを交換するような使用方法も可能になる。
【0015】
これらのことが全てホストとしてのパソコンなしで実現可能であり、これら周辺装置の使用利便性が更に著しく向上する。
【0016】
このOTGでは、ホストとしての動作もペリフェラルとしての動作も行えることが規定されており、更に一連の動作中にホストとしての動作とペリフェラルとしての動作の切り替えが可能であることが規定されている。
【0017】
USBに対する電源供給は、USB2.0と同様にAコネクタ側が行うことになっている。
【0018】
また、OTGでは携帯端末などに実装することを考慮し、小型のミニAコネクタとミニBコネクタを使用することが規定されており、ミニAコネクタとミニBコネクタのどちらとも嵌合接続可能なミニABレセプタクルを実装することが規定されている。
【0019】
例えば、OTGモードとホストモードとを備えた装置では、OTGモード用のミニABレセプタクルとホストモード用のAレセプタクルを実装することがあり、OTGモードとデバイスモードとを備えた装置では、OTGモード用のミニABレセプタクルとデバイスモード用のBレセプタクルを実装することがある。
【0020】
【非特許文献1】
“Universal Serial Bus Specification. Revision 2.0”、[online]、USB Implementers Forum Inc.、[平成14年9月9日検索]、インターネット<URL:http://www.usb.org/developers/data/usb_20.zip>
【非特許文献2】
“On−The−Go Supplement to the USB 2.0 Specification. Revision 1.0”、[online]、USB Implementers Forum Inc.、[平成14年9月9日検索]、インターネット<URL:http://usb.org/developers/data/otg1_0.pdf>
【0021】
【発明が解決しようとする課題】
前記のような、ミニABレセプタクルを装備しているOTG対応装置は、ミニAプラグと接続されることも可能であるし、ミニBプラグと接続されることも可能である。
【0022】
ミニABレセプタクルに加え、通常のAレセプタクルやBレセプタクルを実装することは実装面積の無駄であり、ホストモードやデバイスモードの場合にもこのミニABレセプタクルが使用される。
【0023】
AレセプタクルやBレセプタクルを使用した場合には、動作モードと一致しないケーブルは物理的に挿入不可能であったため、誤挿入は発生しなかった。しかしながらミニABレセプタクルを使用するとケーブル誤挿入を防ぐことができず、動作モードと異なるケーブルを誤挿入する可能性が発生する。このような場合、電源衝突を始めとする出力信号の競合等の弊害が起り得る。
【0024】
ある周辺装置がデバイスとしてモード設定されデバイスとして使用されているにもかかわらず、そのミニABレセプタクルにミニAプラグが接続され、逆に他の周辺装置がホストとしてモード設定されホストとして使用されているにもかかわらずそのミニABレセプタクルにミニBプラグが接続されるような誤接続が行われると、各周辺装置が予め設定されている自分の使用状態(デバイスとして使用されているデバイスモードにあるか、ホストとして使用されているホストモードにあるか)と、接続されたプラグがミニAであるかミニBであるかのどちらを優先的に判断してUSBの通信制御を行うかによって、正常に通信ができなかったり、更にUSBに対する電源供給の誤制御が発生するとそのUSBに接続されたUSB接続装置を破損する可能性があった。
【0025】
更に、例えば、あるホストモードに設定された周辺装置にミニBプラグが接続されており、この周辺装置は自分自身がホストとして設定されていることを優先的に判断して電源供給を行ったところ、相手側の機器はOTGモードに設定されており、且つミニAプラグが接続されているので、ミニAプラグが接続されたことを優先的に判断して電源供給を行ったような場合、両周辺装置から電源供給が衝突を起こし、これらUSBを介して接続されたUSBコネクタ接続装置同士の一方あるいは両方の機器を破損する可能性もあった。
【0026】
【課題を解決するための手段】
上記課題を解決するため本願の請求項1に記載の発明は、ホストモードまたはデバイスモードまたはOTGモードに設定する手段と、USBコネクタのミニAとミニBのどちらでも接続可能なUSBコネクタ接続手段と、前記USBコネクタ接続手段にUSBコネクタのミニAが接続されたかミニBが接続されたかを判断する手段とを有し、前記設定する手段によって設定されたモードと前記判断する手段によって判断されたUSBコネクタに応じて前記USBコネクタ接続手段への出力の全部または一部を抑制する、USBコネクタ接続装置である。
【0027】
請求項2に記載の発明は、前記設定する手段によってホストモードに設定され且つ前記判断する手段によってUSBコネクタのミニBが接続されたと判断された時、および、前記設定する手段によってデバイスモードに設定され且つ前記判断する手段によってUSBコネクタのミニAが接続されたと判断された時に、前記USBコネクタ接続手段への出力の全部または一部を抑制する、請求項1に記載のUSBコネクタ接続装置である。
【0028】
請求項3に記載の発明は、前記ホストモードを行うホストモード動作手段と、前記デバイスモードを行うデバイスモード動作手段と、前記OTGモードを行うOTGモード動作手段と、前記ホストモード動作手段と前記デバイスモード動作手段と前記OTGモード動作手段と前記USBコネクタ接続手段間の信号を制御する第1の制御手段と、前記設定手段によって設定されたモードに応じて前記ホストモード動作手段と前記デバイスモード動作手段と前記OTGモード動作手段と前記第1の制御手段との1または2以上を制御する第2の制御手段と、を有する請求項1または請求項2に記載のUSBコネクタ接続装置である。
【0029】
請求項4に記載の発明は、前記USBコネクタ接続手段にUSBコネクタのミニAが接続されたかミニBが接続されたかを判断する手段は、USBコネクタのIDピンの信号によってUSBコネクタのミニAが接続されたかミニBが接続されたかを判断する手段である、請求項1から請求項3のいずれか1項に記載のUSBコネクタ接続装置である。
【0030】
請求項5に記載の発明は、前記抑制されるUSBコネクタ接続手段への出力の全部または一部は、USBへの電源供給を含む、請求項1から請求項4のいずれか1項に記載のUSBコネクタ接続装置である。
【0031】
請求項6に記載の発明は、ホストモードまたはデバイスモードまたはOTGモードのいずれかのモードに設定する手順と、USBコネクタ接続手段にUSBコネクタのミニAが接続されたかミニBが接続されたかを判断する手順と、前記モードに設定する手順によって設定されたモードと前記判断する手順によって判断されたUSBコネクタに応じてUSBコネクタ接続手段への出力の全部または一部を抑制する手順とを有する、USBコネクタ接続方法である。
【0032】
請求項7に記載の発明は、ホストモードまたはデバイスモードまたはOTGモードのいずれかのモードに設定するステップと、USBコネクタ接続手段にUSBコネクタのミニAが接続されたかミニBが接続されたかを判断するステップと、前記モードに設定するステップによって設定されたモードと前記判断するステップによって判断されたUSBコネクタに応じてUSBコネクタ接続手段への出力の全部または一部を抑制するステップとを有する、USBコネクタ接続プログラムである。
【0033】
請求項8に記載の発明は、請求項7に記載のプログラムを記録したコンピュータ読み取り可能な記録媒体である。
【0034】
【発明の実施の形態】
本発明の実施の形態を、図面を参照しながら説明する。なお、各図で同一符号を付したものは、同一のものである。
【0035】
(実施の形態1)
本願に係る発明であるUSBコネクタ接続装置およびUSBコネクタ接続方法を使用するための一実施の形態である装置311と装置321のブロック構成と、これらがUSBケーブル330で接続された状態を、図1に示す。
【0036】
装置311と装置321はこの発明の実施の形態にかかわる部分のブロック構成は同一であるので(その他の部分で、本発明の実施の形態にかかわらない部分や、その実施の形態の詳細な部分は異なる可能性があるが)、装置311についてのみそのブロック構成を説明する。
【0037】
装置311は、ホストモード動作部313、デバイスモード動作部315、OTGモード動作部317によって、ホストモード、デバイスモード、OTGモードのいずれか設定されたモードで動作する。
【0038】
またOTGモードには、OTGホストモードとOTGペリフェラルモードがあり、OTGモードに設定される時には、これもいずれかに設定されることがある。
【0039】
これらモードの設定はマイクロコンピュータ(以後「マイコン」と言う)とそのマイコンの動作を指定しているプログラムとそのプログラムを記録している記録媒体とを含む制御部314によって制御され、この制御部314は後述する接続プラグ判断部312とその全部または一部が同一であることも異なることもその一部が重複共有していることもある。
【0040】
またこれらモード設定は、ユーザの操作によって行われることもあり、アプリケーションソフトやOSやデバイスドライバやその他のソフトウエア(以後単に「ソフト」と呼ぶこともある)によって行われることもある。これらソフトは記録媒体に記録され、その記録媒体とこれらソフトを動作させるためのマイコンを装置311は有している。このマイコンや記録媒体は前記制御部314のマイコンや記録媒体と、その全部または一部が同じであることも同じでないこともその一部が重複共有していることもある。
【0041】
ユーザの操作によって行われる場合は、例えば装置311が図4の携帯電話121であるような時、ユーザが表示画面133に表示されるモードに関する情報を確認しながら、押しボタンスイッチ135を操作して行う。
【0042】
図1の装置311に備えられたミニABレセプタクル316は、本発明のUSBコネクタのミニAとミニBのどちらでも接続可能なUSBコネクタ接続手段である。このミニABレセプタクルの詳細については前記非特許文献2に記載されている。
【0043】
ミニAプラグ318は、この装置311の一部ではなく、USBケーブル330の一部であって、ミニABレセプタクル316と嵌合して接続され、USBケーブル330を経由して装置311と装置321間で情報を送受信するために使用される。
【0044】
接続プラグ判断部312は、装置311の一部であって、ミニABレセプタクル316にミニAプラグ318が接続されているか、ミニABレセプタクル316にミニBプラグ328が接続されているかを判断するための手段である。
【0045】
ミニABレセプタクル316はその形状によって、ミニAプラグ318もミニBプラグ328も嵌合して接続されることができるので、どちらが接続されているかを判断するためである。
【0046】
ミニABレセプタクルの形状と、ミニAプラグの形状、ミニBプラグの形状、ミニABレセプタクルとミニAプラグが嵌合した状態、ミニABレセプタクルとミニBプラグが嵌合した状態は、前記非特許文献2に図示されている。
【0047】
またこの接続プラグ判断部312は、ミニABレセプタクル316にミニAプラグ318が接続されているか、ミニABレセプタクル316にミニBプラグ328が接続されているかの判断を、ミニABレセプタクルのID信号ピンの状態によって判断する。
【0048】
このID信号ピンはミニABレセプタクルの第4番ピンであり、ミニABレセプタクルにミニAプラグが嵌合して接続されると「FALSE」の状態に設定され、ミニABレセプタクルにミニBプラグが嵌合して接続されると「TRUE」の状態に設定されることが前記非特許文献2に規定されている。
【0049】
従って、このID信号ピンの状態を判断することによって、ミニABレセプタクル316にミニAプラグ318が接続されているか、ミニABレセプタクル316にミニBプラグ328が接続されているかの判断を、接続プラグ判断部312は行うことができる。
【0050】
接続プラグ判断部312は、マイコンによって制御され、その全部または一部は前記制御部314や前記装置311のマイコンやプログラムと、同一であることも異なることもその一部が重複共有していることもある。
【0051】
ミニABレセプタクル316にミニAプラグ318が接続されているか、ミニABレセプタクル316にミニBプラグ328が接続されているかの判断を行った接続プラグ判断部312は、その判断結果情報を制御部314へ送る。
【0052】
制御部314は、接続プラグ判断部312が判断したミニABレセプタクル316にミニAプラグ318が接続されているか、ミニABレセプタクル316にミニBプラグ328が接続されているかに関する情報と、現在のモードに関する情報とに基づいて、切り替え出力部319の制御を行う。
【0053】
この制御の具体的な内容は、ミニABレセプタクルに出力する情報を切り替えたり、また所定の条件に適合する時、例えばホストモードに設定されており且つミニABレセプタクル316にミニBプラグ328が接続されている時や、例えばデバイスモードに設定されており且つミニABレセプタクル316にミニAプラグ318が接続されている時には、その出力の全部または一部を抑制するよう制御することである。
【0054】
各モードの状態と、ミニABレセプタクル316に接続されるプラグがミニAプラグ318であるかミニBプラグ328であるかに基づいて、制御部314が切り替え出力部319に対して行う出力制御の一実施の形態を図2に示す。
【0055】
図2の(A)に示すように、装置311がホストモードに設定され、ミニABレセプタクル316にはUSBケーブル330のミニAプラグ318が嵌合接続されていると、制御部314の制御によって、ホストモード動作部313の動作が行われ、切り替え出力部319はホストモード動作部313からの信号を切り替え選択して出力をイネーブルにし、ホストモードとしての信号の入出力が行われる。
【0056】
図2の(B)に示すように、装置311がホストモードに設定され、ミニABレセプタクル316にはUSBケーブル330のミニBプラグ328が嵌合接続されていると、制御部314の制御によって、切り替え出力部319は出力をディセーブルにし、信号や電源の出力が抑制される。
【0057】
図2の(C)に示すように、装置311がデバイスモードに設定され、ミニABレセプタクル316にはUSBケーブル330のミニAプラグ318が嵌合接続されていると、制御部314の制御によって、切り替え出力部319は出力をディセーブルにし、信号や電源の出力が抑制される。
【0058】
図2の(D)に示すように、装置311がデバイスモードに設定され、ミニABレセプタクル316にはUSBケーブル330のミニBプラグ328が嵌合接続されていると、制御部314の制御によって、デバイスモード動作部315の動作が行われ、切り替え出力部319はデバイスモード動作部315からの信号を切り替え選択して出力をイネーブルにし、デバイスモードとしての信号の入出力が行われる。
【0059】
図2の(E)に示すように、装置311がOTGモードに設定され、ミニABレセプタクル316にはUSBケーブル330のミニAプラグ318が嵌合接続されていると、制御部314の制御によって、OTGモード動作部317の動作が行われ、切り替え出力部319はOTGモード動作部317からの信号を切り替え選択して出力をイネーブルにし、OTGホストモードとしての信号の入出力が行われる。
【0060】
図2の(F)に示すように、装置311がOTGモードに設定され、ミニABレセプタクル316にはUSBケーブル330のミニBプラグ328が嵌合接続されていると、制御部314の制御によって、OTGモード動作部317の動作が行われ、切り替え出力部319はOTGモード動作部317からの信号を切り替え選択して出力をイネーブルにし、OTGペリフェラルモードとしての信号の入出力が行われる。
【0061】
OTGモードでは、ミニABレセプタクル316にミニAプラグ318が嵌合接続された場合にOTGホストモードとして動作を開始し、ミニABレセプタクル316にミニBプラグ328が嵌合接続された場合にOTGペリフェラルモードとして動作を開始する。
【0062】
装置311および装置321のモード設定と、USBケーブル330のミニAプラグ318およびミニBプラグ328の嵌合接続を誤った例を、図3に示す。
【0063】
例えば、図3の(A)に示すように、装置311のモード設定をホストモードとし、装置311のミニABレセプタクル316にはUSBケーブル330のミニBプラグ328を嵌合接続し、装置321のモード設定をデバイスモードとし、装置321のミニABレセプタクル326にはUSBケーブル330のミニAプラグ318を嵌合接続した時には、装置311の切り替え出力部319の出力はディセーブルに制御され、装置321の切り替え出力部329の出力もディセーブルに制御されるので、出力が競合して機器を破損することはない。
【0064】
例えば、図3の(B)に示すように、装置311のモード設定をホストモードとし、装置311のミニABレセプタクル316にはUSBケーブル330のミニBプラグ328を嵌合接続し、装置321のモード設定をOTGモードとし、装置321のミニABレセプタクル326にはUSBケーブル330のミニAプラグ318を嵌合接続した時には、装置311の切り替え出力部319の出力はディセーブルに制御されるので、装置321の切り替え出力部329の出力はOTGとしてイネーブルに制御されるが、出力が競合して機器を破損することはない。
【0065】
例えば、図3の(C)に示すように、装置311のモード設定をデバイスモードとし、装置311のミニABレセプタクル316にはUSBケーブル330のミニAプラグ318を嵌合接続し、装置321のモード設定をOTGモードとし、装置321のミニABレセプタクル326にはUSBケーブル330のミニBプラグ328を嵌合接続した時には、装置311の切り替え出力部319の出力はディセーブルに制御されるので、装置321の切り替え出力部329の出力はOTGとしてイネーブルに制御されるが、出力が競合して機器を破損することはない。
【0066】
例えば、図3の(D)に示すように、装置311のモード設定をOTGモードとし、装置311のミニABレセプタクル316にはUSBケーブル330のミニAプラグ318を嵌合接続し、装置321のモード設定をホストモードとし、装置321のミニABレセプタクル326にはUSBケーブル330のミニBプラグ328を嵌合接続した時には、装置311の切り替え出力部319の出力はOTGとしてイネーブルに制御されるが、装置321の切り替え出力部329の出力はディセーブルに制御されるので、出力が競合して機器を破損することはない。
【0067】
例えば、図3の(E)に示すように、装置311のモード設定をOTGモードとし、装置311のミニABレセプタクル316にはUSBケーブル330のミニBプラグ328を嵌合接続し、装置321のモード設定をデバイスモードとし、装置321のミニABレセプタクル326にはUSBケーブル330のミニAプラグ318を嵌合接続した時には、装置311の切り替え出力部319の出力はOTGとしてイネーブルに制御されるが、装置321の切り替え出力部329の出力はディセーブルに制御されるので、出力が競合して機器を破損することはない。
【0068】
以上説明したように、本発明のUSBコネクタ接続装置では、仮にUSBコネクタ接続装置のモード設定と、USBケーブルの接続を誤ったとしても、USBコネクタへの信号の出力が競合して機器を破損することは起らない。
【0069】
より具体的に本発明の実施の形態とその動作、利点を説明するため、具体的な装置と具体的な動作を示す実施の形態を次に説明する。
【0070】
(実施の形態2)
本願に係る発明であるUSBコネクタ接続装置、USBコネクタ接続方法、USBコネクタ接続プログラムおよびUSB接続プログラムを記録した媒体の、他の実施の形態である携帯電話121と、更に他の実施の形態であるプリンタ124がUSBケーブル147によって接続されている状態の外観を図4に示す。
【0071】
USBケーブル147の両端にはそれぞれミニAプラグ143と、ミニBプラグ146とが接続されている。
【0072】
正常ならばミニAプラグ143はホストモードに設定されたUSBコネクタ接続装置に接続され、ミニBプラグ146はデバイスモードに設定されたUSBコネクタ接続装置に接続される。
【0073】
USBコネクタ接続装置がOTGモードに設定された時には、接続されるミニプラグによりOTGホストモードあるいはOTGペリフェラルモードが決定されるため、ミニAプラグ143、ミニBプラグ146のどちらが接続されてもよい。
【0074】
この実施の形態では、ホストモードまたはOTGモードに設定されるUSBコネクタ接続装置は携帯電話121であり、デバイスモードまたはOTGモードに設定されるUSBコネクタ接続装置はプリンタ124である。
【0075】
従って正常ならば、USBケーブル147に接続されているミニAプラグ143はホストモードに設定された携帯電話と接続して使用され、ミニBプラグ146はデバイスモードに設定されたプリンタ124と接続して使用される。携帯電話121とプリンタ124がOTGモードに設定されて使用される時には、必ずしもミニAプラグ143とミニBプラグ146は、どちらの装置と接続されるかは確定していない。
【0076】
ホストモードまたはOTGモードに設定され、ホストとして動作する携帯電話121には、表示画面133、押しボタンスイッチ135、ミニABレセプタクル131、その他本発明を説明するために必要ないので記載しないが、マイク、スピーカー、アンテナ、その他通常の携帯電話に必要な部材が装備されている。
【0077】
この携帯電話121には、ミニABレセプタクル131が装備されているので、ミニAプラグ143でも、ミニBプラグ146でも接続することが可能である。
【0078】
正常ならば、この携帯電話121が前記のようにホストモードに設定され、ホストとして動作する時にはミニAプラグ143が接続され、デバイスモードに設定され、デバイスとして動作する時にはミニBプラグ146が接続される。この携帯電話121がOTGモードに設定された場合は、ミニAプラグ143、ミニBプラグ146のどちらが接続されてもよい。
【0079】
この携帯電話121は、押しボタンスイッチ135を装備しているので、この押しボタンスイッチ135を操作することによって、ホストモード、デバイスモード、OTGモードのいずれかの設定を切り替えて使用することができる。この切り替えの操作は、表示画面133に表示される内容を見ながら行うことができる。
【0080】
現在この携帯電話121がホストモード、デバイスモード、OTGモードのいずれの状態に設定されているのかは、押しボタンスイッチ135の操作によって、表示画面133に表示される内容で確認することができる。
【0081】
例えば、携帯電話121とプリンタ124をUSBケーブル147で接続し、携帯電話121で受信した情報をプリンタ124によって印刷しようとする時には、携帯電話121から起動をかけて、情報をプリンタ124に送信するので、通常は携帯電話121がホストモードまたはOTGモードに設定され、プリンタ124がデバイスモードまたはOTGモードに設定される。
【0082】
しかしながらアプリケーションソフトによっては必ずしもこの設定に限るものではなく、他の設定を行ってもかまわない。
【0083】
また、携帯電話121は必ずホストモードまたはOTGモードに設定されるとは限らず、例えば図5にその外観を示した後述する更に他の実施の形態のように、デジタルカメラ212で撮影した画像情報を携帯電話121に送信し、その携帯電話121から図示していないが他の携帯電話やパソコンにその画像情報を送信しようとする時には、デジタルカメラ212から起動をかけて、情報を携帯電話121に送信するので、通常はデジタルカメラ212がホストモードまたはOTGモードに設定され、携帯電話121がデバイスモードまたはOTGモードに設定される。
【0084】
プリンタ124には、表示画面136、押しボタンスイッチ138、ミニABレセプタクル134、その他本発明を説明するために必要ないので記載しないが、通常のプリンタに必要な部材が装備されている。
【0085】
このプリンタ124には、ミニABレセプタクル134が装備されているので、ミニAプラグ143でも、ミニBプラグ146でも接続することが可能である。
【0086】
正常ならば、このプリンタ124がホストモードに設定され、ホストとして動作する時にはミニAプラグ143が接続され、逆に、デバイスモードに設定され、デバイスとして動作する時にはミニBプラグ146が接続される。このプリンタ124がOTGモードに設定され動作する時には、必ずしもミニAプラグ143が接続されるかミニBプラグ146が接続されるかは確定していない。
【0087】
このプリンタ124は、押しボタンスイッチ138を装備しているので、この押しボタンスイッチ138を操作することによって、ホストモード、デバイスモード、OTGモードのいずれかの設定を切り替えて使用することができる。この切り替えの操作は、表示画面136に表示される内容を見ながら行うことができる。
【0088】
また、現在、このプリンタ124がホストモード、デバイスモード、OTGモードのいずれの状態に設定されているのかは、押しボタンスイッチ138の操作によって、表示画面136に表示される内容で確認することができる。
【0089】
このように接続された携帯電話121とプリンタ124にそれぞれアプリケーションソフトがインストールされ、そのソフトウエアが起動されると、そのアプリケーションソフトによって規定された動作が実行される。
【0090】
例えば、携帯電話121がホストモードまたはOTGモードに設定され、ミニABレセプタクル131にはミニAプラグ143が接続されていれば、USBケーブル147を経由してプリンタ124へ電源供給を行い、また例えば自分自身が遠隔地にある他の携帯電話やパソコンから受信した情報を印刷するため、アプリケーションソフトによってプリンタ124にその情報を送信することができる。
【0091】
また、今まで、携帯電話121の各モードの設定は、表示画面133を見ながら押しボタンスイッチ135を操作してユーザが行うように説明したが、このアプリケーションソフトが自動的に携帯電話121の各モードの設定を行ってもよい。この時にも、現在この携帯電話121がどのモードに設定されているかの確認は、前記の通り、ユーザが押しボタンスイッチ135を操作して表示画面133に表示される内容によって行うことができる。
【0092】
同様にプリンタ124は、デバイスモードまたはOTGモードに設定され、ミニABレセプタクル134にはミニBプラグ146が接続されているならば、USBケーブル147を経由して電源供給を行うことはなく、例えばUSBケーブル147を経由して受信した各種情報の印刷を、アプリケーションソフトによって行うことができる。
【0093】
このプリンタ124の各モードの設定も、必ずしも押しボタンスイッチ138と表示画面136を使ってユーザが行う方法だけに限らず、アプリケーションソフトによって自動的に行われてもよいこと、その設定内容は押しボタンスイッチ138と表示画面136を使ってユーザが確認できることは携帯電話121と同様である。
【0094】
ここでもしも、USBケーブル147の接続をユーザが間違えて、携帯電話121のミニABレセプタクル131にミニBプラグ146を接続し、プリンタ124のミニABレセプタクル134にミニAプラグ143を接続してしまったとする。
【0095】
前記のように、ミニABレセプタクル131、134には、ミニAプラグ143も、ミニBプラグ146も接続することができる(前記非特許文献2参照)から、このような間違いが発生する可能性はある。
【0096】
この場合には例えば、携帯電話121がホストモードに設定されているかOTGモードに設定されているか、プリンタ124がデバイスモードに設定されているかOTGに設定されているかによって、その結果が変わってくる。
【0097】
まず最初に、携帯電話121がホストモードに設定され、プリンタ124がデバイスモードに設定されていた場合を説明する。
【0098】
このケースで、ホストモードに設定された携帯電話121のミニABレセプタクル131に、USBケーブル147のミニBプラグ146が接続された場合、図2に示した切り替え出力制御に従って、携帯電話121のUSBへの出力はディセーブルに抑制制御される。
【0099】
同様に、デバイスモードに設定されたプリンタ124のミニABレセプタクル134に、USBケーブル147のミニAプラグ143が接続されるので、図2に示した切り替え出力制御に従って、プリンタ124のUSBへの出力もディセーブルに抑制制御される。
【0100】
従って、このUSB接続された両方の装置のUSBへの出力がディセーブルに抑制制御されるので、出力が競合して装置を破損することはない。当然、電源供給が競合して装置を破損することもない。
【0101】
次に、携帯電話121がホストモードに設定され、プリンタ124がOTGモードに設定されていた場合を説明する。
【0102】
このケースで、ホストモードに設定された携帯電話121のミニABレセプタクル131に、USBケーブル147のミニBプラグ146が接続された場合、図2に示した切り替え出力制御に従って、携帯電話121のUSBへの出力はディセーブルに抑制制御される。
【0103】
同様に、OTGモードに設定されたプリンタ124のミニABレセプタクル134に、USBケーブル147のミニAプラグ143が接続されるので、図2に示した切り替え出力制御に従って、OTGホストモードとして信号が入出力される。
【0104】
プリンタ124は、OTGホストとしてイネーブルとなり、さらに電源供給するが、携帯電話121はUSBへの出力がディセーブルに抑制制御されるので、出力が競合して装置を破損することはない。当然、電源供給が競合して装置を破損することもない。
【0105】
次に、携帯電話121がOTGモードに設定され、プリンタ124がデバイスモードに設定されていた場合を説明する。
【0106】
このケースで、OTGに設定された携帯電話121のミニABレセプタクル131に、USBケーブル147のミニBプラグ146が接続された場合、図2に示した切り替え出力制御に従って、OTGペリフェラルモードとしての信号が入出力される。
【0107】
同様に、デバイスモードに設定されたプリンタ124のミニABレセプタクル134に、USBケーブル147のミニAプラグ143が接続されるので、図2に示した切り替え出力制御に従って、プリンタ124のUSBへの出力はディセーブルに抑制制御される。
【0108】
携帯電話121はOTGペリフェラルとして動作を開始するが、プリンタ124はUSBへの出力がディセーブルに抑制制御されるので、出力が競合して装置を破損することはない。当然、電源供給が競合して装置を破損することもない。
【0109】
最後に、携帯電話121、プリンタ124共にOTGモードに設定された場合は、USBケーブル147の向きに関係なく、正常に動作を開始する。
【0110】
更に具体的に本発明の実施の形態とその動作、利点を説明するため、更にもう一組の具体的な装置と具体的な動作を示す実施の形態を次に説明する。
【0111】
(実施の形態3)
本願に係る発明であるUSBコネクタ接続装置およびUSBコネクタ接続方法の他の実施の形態である携帯電話121と、他の実施の形態であるデジタルカメラ212がUSBケーブル147によって接続されている状態の外観を図5に示す。
【0112】
USBケーブル147の両端にはそれぞれミニAプラグ246と、ミニBプラグ243とが接続されている。
【0113】
正常ならばミニAプラグ246はホストモードに設定されたUSBコネクタ接続装置に接続され、ミニBプラグ243はデバイスモードに設定されたUSBコネクタ接続装置に接続される。
【0114】
前記の通り、USBコネクタ接続装置がOTGモードに設定された時には、接続されるミニプラグによりOTGホストモードあるいはOTGペリフェラルモードが決定されるため、ミニAプラグ143、ミニBプラグ146のどちらが接続されてもよい。
【0115】
この実施の形態では、ホストモードまたはOTGモードに設定されるUSBコネクタ接続装置はデジタルカメラ212であり、デバイスモードまたはOTGモードに設定されるUSBコネクタ接続装置は携帯電話121である。
【0116】
この実施の形態では、前の実施の形態でホストモードまたはOTGモードで使用されていた携帯電話121が、今回はデバイスモードまたはOTGモードで使用されている。
【0117】
このように同じ一つのUSBコネクタ接続装置が、ホストモードまたはOTGモードで使用されたり、デバイスモードまたはOTGモードで使用されることもある。
【0118】
これはその利用目的、アプリケーションに応じて定まるからであり、これらUSBコネクタ接続装置がこれらの使用モードに適合可能であることと、アプリケーションソフトがこれらの各モードで使用されるようになっていることが前提である。
【0119】
正常ならば、USBケーブル147に接続されているミニAプラグ246はホストモードに設定されたデジタルカメラ212と接続して使用され、ミニBプラグ243はデバイスモードに設定された携帯電話121と接続して使用される。携帯電話121とデジタルカメラ212がOTGモードに設定されて使用される時には、必ずしもミニAプラグ246とミニBプラグ243は、どちらの装置と接続されるかは確定していない。
【0120】
ホストモードまたはOTGモードに設定され、ホストとして動作するデジタルカメラ212には、表示画面234、押しボタンスイッチ236、ミニABレセプタクル238、その他本発明を説明するために必要ないので記載しないが、レンズ、ファインダー、シャッタースイッチ、その他通常のデジタルカメラに必要な部材が装備されている。
【0121】
このデジタルカメラ212には、ミニABレセプタクル238が装備されているので、ミニAプラグ246でも、ミニBプラグ243でも接続することが可能である。
【0122】
正常ならば、このデジタルカメラ212が前記のようにホストモードに設定され、ホストとして動作する時にはミニAプラグ246が接続され、デバイスモードに設定され、デバイスとして動作する時にはミニBプラグ243が接続される。このデジタルカメラ212がOTGモードに設定され、
このデジタルカメラ212は、押しボタンスイッチ236を装備しているので、この押しボタンスイッチ236を操作することによって、ホストモード、デバイスモード、OTGモードのいずれかの設定を切り替えて使用することができる。この切り替えの操作は、表示画面234に表示される内容を見ながら行うことができる。
【0123】
また、現在、このデジタルカメラ212がホストモード、デバイスモード、OTGモードのいずれの状態に設定されているのかは、押しボタンスイッチ236の操作によって、表示画面234に表示される内容で確認することができる。
【0124】
例えば、デジタルカメラ212と携帯電話121をUSBケーブル147で接続し、デジタルカメラ212で撮影した画像情報を携帯電話121によって遠隔地にある他の携帯電話やパソコンに送信しようとする時には、デジタルカメラ212から起動をかけて、画像情報を携帯電話121に送信するので、通常はデジタルカメラ212がホストモードまたはOTGモードに設定され、携帯電話121がデバイスモードまたはOTGモードに設定される。
【0125】
しかしながらアプリケーションソフトによっては必ずしもこの設定に限るものではなく、他の設定を行ってもかまわない。
【0126】
デジタルカメラ212は必ずホストモードまたはOTGモードに設定されるとは限らないことは、前に説明した携帯電話121の例と同様である。
【0127】
このように接続されたデジタルカメラ212と携帯電話121にそれぞれアプリケーションソフトがインストールされ、そのソフトウエアが起動されると、そのアプリケーションソフトによって規定された動作が実行される。
【0128】
例えば、デジタルカメラ212がホストモードまたはOTGモードに設定され、ミニABレセプタクル238にはミニAプラグ246が接続されていれば、USBケーブル147を経由して携帯電話121へ電源供給を行い、また自分自身が撮影した画像情報を遠隔地にある他の携帯電話やパソコンに送信するため、アプリケーションソフトによって携帯電話121にその情報を送信することができる。
【0129】
今まで、デジタルカメラ212の各モードの設定は、表示画面234を見ながら押しボタンスイッチ236を操作してユーザが行うように説明したが、このアプリケーションソフトが自動的にデジタルカメラ212の各モードの設定を行ってもよい。この時にも、現在このデジタルカメラ212がどのモードに設定されているかの確認は、前記の通り、ユーザが押しボタンスイッチ236を操作して表示画面234に表示される内容によって行うことができる。
【0130】
同様に、携帯電話121は、デバイスモードまたはOTGモードに設定され、ミニABレセプタクル131にはミニBプラグ243が接続されているならば、USBケーブル147を経由して電源供給を行うことはなく、例えばUSBケーブル147を経由して送受信した各種情報の送受信を、アプリケーションソフトによって行うことができる。
【0131】
ここでもしも、USBケーブル147の接続をユーザが間違えて、デジタルカメラ212のミニABレセプタクル238にミニBプラグ243を接続し、携帯電話121のミニABレセプタクル131にミニAプラグ246を接続してしまったとする。
【0132】
前記のように、ミニABレセプタクル131、238には、ミニAプラグ246も、ミニBプラグ243も接続することができる(前記非特許文献2参照)から、このような間違いが発生する可能性はある。
【0133】
この場合には例えば、デジタルカメラ212がホストモードに設定されているかOTGモードに設定されているか、携帯電話121がデバイスモードに設定されているかOTGモードに設定されているかによって、その結果が変わってくる。
【0134】
まず最初に、デジタルカメラ212がホストモードに設定され、携帯電話121がデバイスモードに設定されていた場合を説明する。
【0135】
このケースで、ホストモードに設定されたデジタルカメラ212のミニABレセプタクル238に、USBケーブル147のミニBプラグ243が接続された場合、図2に示した切り替え出力制御に従って、デジタルカメラ212のUSBへの出力はディセーブルに抑制制御される。
【0136】
同様に、デバイスモードに設定された携帯電話121のミニABレセプタクル131に、USBケーブル147のミニAプラグ246が接続されるので、図2に示した切り替え出力制御に従って、携帯電話121のUSBへの出力もディセーブルに抑制制御される。
【0137】
従って、このUSB接続された両方の装置のUSBへの出力がディセーブルに抑制されるので、出力が競合して装置を破損することはない。当然、電源供給が競合して装置を破損することもない。
【0138】
次に、デジタルカメラ212がホストモードに設定され、携帯電話121がOTGモードに設定されていた場合を説明する。
【0139】
このケースで、ホストモードに設定されたデジタルカメラ212のミニABレセプタクル131に、USBケーブル147のミニBプラグ146が接続された場合、図2に示した切り替え出力制御に従って、デジタルカメラ212のUSBへの出力はディセーブルに抑制制御される。
【0140】
同様に、OTGモードに設定された携帯電話121のミニABレセプタクル134に、USBケーブル147のミニAプラグ143が接続されるので、図2に示した切り替え出力制御に従って、OTGホストモードとして信号が入出力される。
【0141】
携帯電話121は、OTGホストとしてイネーブルとなり、さらに電源供給するが、デジタルカメラ212はUSBへの出力がディセーブルに抑制制御されるので、出力が競合して装置を破損することはない。当然、電源供給が競合して装置を破損することもない。
【0142】
次に、デジタルカメラ212がOTGモードに設定され、携帯電話121がデバイスモードに設定されていた場合を説明する。
【0143】
このケースで、OTGに設定されたデジタルカメラ212のミニABレセプタクル131に、USBケーブル147のミニBプラグ146が接続された場合、図2に示した切り替え出力制御に従って、OTGペリフェラルモードとしての信号が入出力される。
【0144】
同様に、デバイスモードに設定された携帯電話121のミニABレセプタクル134に、USBケーブル147のミニAプラグ143が接続されるので、図2に示した切り替え出力制御に従って、携帯電話121のUSBへの出力はディセーブルに抑制制御される。
【0145】
デジタルカメラ212はOTGペリフェラルとして動作を開始するが、携帯電話121はUSBへの出力がディセーブルに抑制制御されるので、出力が競合して装置を破損することはない。当然、電源供給が競合して装置を破損することもない。
【0146】
最後に、デジタルカメラ212、携帯電話121共にOTGモードに設定された場合は、USBケーブル147の向きに関係なく、正常に動作を開始する。
【0147】
【発明の効果】
以上説明したように本発明に係るUSBコネクタ接続装置およびUSBコネクタ接続方法、USBコネクタ接続プログラム、このプログラムを記録した媒体によるならば、各USBコネクタ接続装置を接続してデータを送受信するためのUSBケーブルのプラグを誤って各装置のレセプタクルに嵌合接続された時には、自動的にその誤った接続を判断し、そのUSBコネクタへの信号や電源供給を抑制することで、信号や電源供給が競合、衝突することを防止し、誤った接続が行われたUSBコネクタ接続装置が破損することを防止することができ、その効果は極めて有効である。
【図面の簡単な説明】
【図1】本発明の一実施の形態のブロック構成とこれがUSBケーブルで接続された状態を示す図
【図2】本発明の一実施の形態の制御部が切り替え出力部に対して行う出力制御の状態を示す図
【図3】本発明の一実施の形態のモード設定とUSBケーブルのプラグの誤った嵌合接続例の状態を示す図
【図4】本発明の他の実施の形態である携帯電話と更に他の実施の形態であるプリンタがUSBケーブルによって接続されている状態の外観を示す図
【図5】本発明の他の実施の形態である携帯電話と更に他の実施の形態であるデジタルカメラがUSBケーブルによって接続されている状態の外観を示す図
【符号の説明】
121 携帯電話
124 プリンタ
131 ミニABレセプタクル
133 表示画面
134 ミニABレセプタクル
135 押しボタンスイッチ
136 表示画面
138 押しボタンスイッチ
143 ミニAプラグ
146 ミニBプラグ
147 USBケーブル
212 デジタルカメラ
234 表示画面
236 押しボタンスイッチ
238 ミニABレセプタクル
243 ミニBプラグ
246 ミニAプラグ
311 装置(USBコネクタ接続装置)
312 接続プラグ判断部
313 ホストモード動作部
314 制御部
315 デバイスモード動作部
316 ミニABレセプタクル
317 OTGモード動作部
318 ミニAプラグ
319 切り替え出力部
321 装置(USBコネクタ接続装置)
322 接続プラグ判断部
323 ホストモード動作部
324 制御部
325 デバイスモード動作部
326 ミニABレセプタクル
327 OTGモード動作部
328 ミニBプラグ
329 切り替え出力部
330 USBケーブル
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention uses a USB (Universal Serial Bus) (hereinafter referred to as "USB"), which is one of the general methods for connecting an information device such as a personal computer to various peripheral devices and performing data communication. The present invention relates to a USB connector connecting device provided with a USB connector connecting means for connecting to a USB connector.
[0002]
In particular, a USB connector for connecting peripheral devices without the need for a host device such as a personal computer, and a USB connector for using a USB On The Go (hereinafter referred to as "OTG"). The present invention relates to a USB connector connection device provided with connection means.
[0003]
Also, means, a device, or a method for determining whether or not the USB connector is normally connected, and operating the connected device only when it is determined that the USB connector is normally connected. When it is determined that the device is not properly connected, the device is prevented from being operated, thereby preventing abnormal operation of the device and various failures that may occur due to the abnormal operation, such as device damage. The present invention relates to an apparatus and a method for executing the program, a program, and a medium on which the program is recorded.
[0004]
[Prior art]
2. Description of the Related Art Conventionally, USB has been defined and widely used as one of general methods for connecting an information device such as a personal computer and various peripheral devices and performing data communication (for example, see Non-Patent Document 1 below).
[0005]
By using this USB, many peripheral devices such as printers and digital cameras can be easily connected and disconnected while the power of the personal computer is turned on, and the convenience of data communication between these peripheral devices and the personal computer. Is significantly improved.
[0006]
When a USB-compatible peripheral device is connected to a personal computer via USB, the type of the peripheral device is automatically recognized, and driver software necessary for data communication with the peripheral device is automatically installed on the personal computer. Is also adopted. By using this method, the user is free from troublesome software driver installation work.
[0007]
Further, in USB, power is supplied from a personal computer as a host to peripheral devices as devices. Therefore, especially when the peripheral device is an ultra-compact and highly portable device, there is no need to prepare a power supply on the peripheral device side, so that the peripheral device can be further miniaturized and the portability can be further improved. Can be done.
[0008]
In the USB, a personal computer as a host and a peripheral device as a device are connected as described above, and power is supplied from the host to the device. Therefore, a USB cable used for USB connection has a connector A for connecting to the host side and a connector B for connecting to the device side at both ends thereof. Conversely, connection is prevented so that damage to the device due to incorrect connection of the power supply line or the like does not occur (see Non-Patent Document 1 below).
[0009]
However, this USB is based on the premise that a personal computer as a host is connected to a peripheral device as a device, and it is stipulated that data communication is activated by a call from the host. No direct data communication was possible between the devices.
[0010]
Therefore, OTG has been defined for overcoming this limitation and performing direct data communication between peripheral devices (for example, see Non-Patent Document 2 below).
[0011]
By using this OTG, it is possible to connect the digital camera directly to the printer and print the images taken by the digital camera directly on the printer, while maintaining the various advantages of the conventional USB. Become. With such a usage, an image photographed by a digital camera can be easily printed by a printer without the need for a personal computer whose installation, connection, operation, and the like are relatively troublesome.
[0012]
Alternatively, if the digital camera is directly connected to the mobile phone, the image captured by the digital camera is sent directly to the mobile phone, and the image is transmitted to another mobile phone or personal computer at a remote location using the communication function of the mobile phone. It becomes possible to send.
[0013]
Alternatively, if the mobile phone and the printer are directly connected, the information transmitted from another mobile phone or a personal computer at a remote location can be received by the mobile phone, and the received information can be printed by the printer. .
[0014]
Furthermore, for example, if two MP3 players are directly connected by OTG (although there is another problem other than the technical problem such as copyright as another problem, at least technically), the MP3 players can communicate with each other. A usage method of exchanging stored music contents is also possible.
[0015]
All of these can be realized without a personal computer as a host, and the convenience of using these peripheral devices is further remarkably improved.
[0016]
The OTG specifies that both an operation as a host and an operation as a peripheral can be performed. Further, it is specified that the operation as a host and the operation as a peripheral can be switched during a series of operations.
[0017]
Power supply to the USB is to be performed on the A connector side as in USB 2.0.
[0018]
In addition, the OTG stipulates that a small mini-A connector and a mini-B connector be used in consideration of mounting on a portable terminal or the like. It is specified that an AB receptacle be mounted.
[0019]
For example, a device equipped with the OTG mode and the host mode may be equipped with a mini AB receptacle for the OTG mode and an A receptacle for the host mode, and a device equipped with the OTG mode and the device mode may be equipped with the OTG mode. Mini-AB receptacle and B receptacle for device mode may be mounted.
[0020]
[Non-patent document 1]
"Universal Serial Bus Specification. Revision 2.0", [online], USB Implementers Forum Inc. , [Searched September 9, 2002], Internet <URL: http: // www. usb. org / developers / data / usb — 20. zip>
[Non-patent document 2]
“On-The-Go Supplement to the USB 2.0 Specification. Revision 1.0”, [online], USB Implementers Forum Inc. , [Searched September 9, 2002], Internet <URL: http: // usb. org / developers / data / otg1_0. pdf>
[0021]
[Problems to be solved by the invention]
An OTG compatible device equipped with a mini AB receptacle as described above can be connected to a mini A plug or a mini B plug.
[0022]
Mounting a normal A receptacle or B receptacle in addition to the mini AB receptacle is a waste of mounting area, and the mini AB receptacle is used also in the host mode or the device mode.
[0023]
When the A receptacle and the B receptacle were used, cables that did not match the operation mode could not be physically inserted, so no erroneous insertion occurred. However, if a mini-AB receptacle is used, erroneous insertion of a cable cannot be prevented, and there is a possibility that a cable different from the operation mode may be erroneously inserted. In such a case, adverse effects such as output signal competition including power supply collision may occur.
[0024]
Although a certain peripheral device is set as a device and used as a device, a mini-A plug is connected to the mini-AB receptacle, and conversely, another peripheral device is set as a host and used as a host. Nevertheless, if an erroneous connection is made such that a mini-B plug is connected to the mini-AB receptacle, each peripheral device is set in its own use state (i.e., in a device mode used as a device). , In the host mode used as the host) and whether the connected plug is the mini-A or the mini-B and gives priority to the USB communication control. If communication is not possible or erroneous control of power supply to the USB occurs, the USB connection device connected to the USB will be broken. There is a possibility to be.
[0025]
Furthermore, for example, a mini-B plug is connected to a peripheral device set to a certain host mode, and this peripheral device supplies power by judging that itself is set as a host with priority. Since the other device is set to the OTG mode and the mini-A plug is connected, when the power is supplied by giving priority to the connection of the mini-A plug, There is a possibility that power supply from a peripheral device causes a collision, and one or both devices of the USB connector connection devices connected via the USB are damaged.
[0026]
[Means for Solving the Problems]
In order to solve the above-mentioned problem, the invention according to claim 1 of the present application comprises a means for setting a host mode, a device mode, or an OTG mode, and a USB connector connecting means that can be connected to either a mini-A or mini-B USB connector. Means for judging whether the USB connector mini-A or mini-B is connected to the USB connector connection means, and the mode set by the setting means and the USB judged by the judgment means. A USB connector connection device which suppresses all or a part of output to the USB connector connection means according to a connector.
[0027]
According to the invention described in claim 2, the setting mode is set to the host mode, and when it is determined that the mini-B of the USB connector is connected by the determining device, and the device mode is set by the setting device. 2. The USB connector connecting device according to claim 1, wherein when the judging means judges that the mini A of the USB connector is connected, all or a part of the output to the USB connector connecting means is suppressed. .
[0028]
The invention according to claim 3, wherein the host mode operating means for performing the host mode, the device mode operating means for performing the device mode, the OTG mode operating means for performing the OTG mode, the host mode operating means and the device First control means for controlling signals between the mode operation means, the OTG mode operation means and the USB connector connection means, the host mode operation means and the device mode operation means according to the mode set by the setting means 3. The USB connector connection device according to claim 1, further comprising: a second control unit configured to control one or more of the OTG mode operation unit and the first control unit. 4.
[0029]
According to a fourth aspect of the present invention, the means for judging whether the USB connector mini-A or the mini-B is connected to the USB connector connecting means is configured such that the mini-A of the USB connector is connected to the USB connector by an ID pin signal. 4. The USB connector connection device according to claim 1, wherein the device is a unit that determines whether a connection is made or a mini-B is connected. 5.
[0030]
The invention according to claim 5, wherein all or a part of the suppressed output to the USB connector connection means includes power supply to USB. It is a USB connector connection device.
[0031]
According to a sixth aspect of the present invention, there is provided a procedure for setting any one of the host mode, the device mode, and the OTG mode, and determining whether the USB connector mini-A or mini-B is connected to the USB connector connection means. And a step of suppressing all or a part of the output to the USB connector connection means in accordance with the mode set by the mode setting procedure and the USB connector determined by the determining procedure. This is the connector connection method.
[0032]
According to a seventh aspect of the present invention, there is provided a step of setting the mode to one of the host mode, the device mode, and the OTG mode, and determining whether the USB connector mini-A or mini-B is connected to the USB connector connection means. And a step of suppressing all or a part of the output to the USB connector connection means according to the mode set by the step of setting the mode and the USB connector determined by the determining step. This is a connector connection program.
[0033]
The invention according to claim 8 is a computer-readable recording medium recording the program according to claim 7.
[0034]
BEST MODE FOR CARRYING OUT THE INVENTION
Embodiments of the present invention will be described with reference to the drawings. It is to be noted that components denoted by the same reference numerals in each drawing are the same components.
[0035]
(Embodiment 1)
FIG. 1 shows a block configuration of a device 311 and a device 321 according to an embodiment for using the USB connector connection device and the USB connector connection method according to the invention of the present application, and a state in which they are connected by a USB cable 330. Shown in
[0036]
Since the device 311 and the device 321 have the same block configuration of the portion related to the embodiment of the present invention (the other portions that are not related to the embodiment of the present invention and the detailed portions of the embodiment are However, only the device 311 will be described in terms of its block configuration.
[0037]
The device 311 operates in one of the host mode, the device mode, and the OTG mode set by the host mode operation unit 313, the device mode operation unit 315, and the OTG mode operation unit 317.
[0038]
The OTG mode includes an OTG host mode and an OTG peripheral mode, and when the OTG mode is set, this may be set to any one.
[0039]
The setting of these modes is controlled by a control unit 314 including a microcomputer (hereinafter referred to as “microcomputer”), a program designating the operation of the microcomputer, and a recording medium recording the program. May or may not be the same as the whole or a part of the connection plug determination unit 312 described later, or a part thereof may be overlapped and shared.
[0040]
These mode settings may be performed by a user's operation, or may be performed by application software, an OS, a device driver, or other software (hereinafter sometimes simply referred to as “software”). The software is recorded on a recording medium, and the device 311 includes the recording medium and a microcomputer for operating the software. This microcomputer or recording medium may or may not be the same as the microcomputer or the recording medium of the control unit 314, or may be partly overlapped and shared.
[0041]
When the operation is performed by the user, for example, when the device 311 is the mobile phone 121 in FIG. 4, the user operates the push button switch 135 while checking the information on the mode displayed on the display screen 133. Do.
[0042]
The mini-AB receptacle 316 provided in the device 311 of FIG. 1 is a USB connector connecting means that can be connected to either the mini-A or mini-B USB connector of the present invention. Details of the mini AB receptacle are described in Non-Patent Document 2.
[0043]
The mini-A plug 318 is not a part of the device 311, but a part of the USB cable 330, which is connected to the mini-AB receptacle 316 by being fitted thereto, and is connected between the device 311 and the device 321 via the USB cable 330. Used for sending and receiving information.
[0044]
The connection plug determination unit 312 is a part of the device 311 and determines whether the mini A plug 318 is connected to the mini AB receptacle 316 or the mini B plug 328 is connected to the mini AB receptacle 316. Means.
[0045]
The mini-AB receptacle 316 can be connected by fitting both the mini-A plug 318 and the mini-B plug 328 depending on its shape, so that it is possible to determine which is connected.
[0046]
The shape of the mini-AB receptacle, the shape of the mini-A plug, the shape of the mini-B plug, the state in which the mini-AB receptacle and the mini-A plug are fitted, and the state in which the mini-AB receptacle and the mini-B plug are fitted are described in the non-patent document. 2 is shown.
[0047]
The connection plug determination unit 312 determines whether the mini-A plug 318 is connected to the mini-AB receptacle 316 or the mini-B plug 328 is connected to the mini-AB receptacle 316 by determining the ID signal pin of the mini-AB receptacle. Judge according to the state.
[0048]
This ID signal pin is the fourth pin of the mini AB receptacle. When the mini A plug is fitted and connected to the mini AB receptacle, it is set to the "FALSE" state, and the mini B plug is fitted to the mini AB receptacle. It is prescribed in the above-mentioned Non-Patent Document 2 that the connection is set to the “TRUE” state when connected.
[0049]
Therefore, by judging the state of the ID signal pin, it can be determined whether the mini-A plug 318 is connected to the mini-AB receptacle 316 or the mini-B plug 328 is connected to the mini-AB receptacle 316. The unit 312 can perform.
[0050]
The connection plug determination unit 312 is controlled by a microcomputer, and all or a part of the connection plug determination unit 312 is the same as or different from the control unit 314 or the microcomputer or the program of the device 311, or a part of the connection plug determination unit 312 is shared. There is also.
[0051]
The connection plug determination unit 312, which has determined whether the mini-A plug 318 is connected to the mini-AB receptacle 316 or the mini-B plug 328 is connected to the mini-AB receptacle 316, sends the determination result information to the control unit 314. send.
[0052]
The control unit 314 determines whether the mini A plug 318 is connected to the mini AB receptacle 316 determined by the connection plug determination unit 312 or whether the mini B plug 328 is connected to the mini AB receptacle 316 and the current mode. The switching output unit 319 is controlled based on the information.
[0053]
The specific contents of this control are as follows: when the information to be output to the mini AB receptacle is switched, or when a predetermined condition is met, for example, the host mode is set and the mini B plug 328 is connected to the mini AB receptacle 316. When, for example, the device mode is set and the mini-A plug 318 is connected to the mini-AB receptacle 316, the output is controlled so as to suppress all or a part of the output.
[0054]
One of the output controls performed by the control unit 314 on the switching output unit 319 based on the state of each mode and whether the plug connected to the mini AB receptacle 316 is the mini A plug 318 or the mini B plug 328. An embodiment is shown in FIG.
[0055]
As shown in FIG. 2A, when the device 311 is set to the host mode and the mini-A plug 318 of the USB cable 330 is fitted and connected to the mini-AB receptacle 316, the control of the control unit 314 causes The operation of the host mode operation unit 313 is performed, and the switching output unit 319 switches and selects the signal from the host mode operation unit 313 to enable the output, and performs input / output of the signal in the host mode.
[0056]
As shown in FIG. 2B, when the device 311 is set to the host mode and the mini-AB receptacle 316 is fitted with the mini-B plug 328 of the USB cable 330, the control of the control unit 314 causes The switching output unit 319 disables the output, and the output of the signal and the power is suppressed.
[0057]
As shown in FIG. 2C, when the device 311 is set to the device mode and the mini-A plug 318 of the USB cable 330 is fitted and connected to the mini-AB receptacle 316, the control of the control unit 314 causes The switching output unit 319 disables the output, and the output of the signal and the power is suppressed.
[0058]
As shown in FIG. 2D, when the device 311 is set to the device mode, and the mini-AB receptacle 316 is fitted with the mini-B plug 328 of the USB cable 330, the control of the control unit 314 causes The operation of the device mode operation unit 315 is performed, and the switching output unit 319 switches and selects the signal from the device mode operation unit 315 to enable the output, and performs input / output of the signal in the device mode.
[0059]
As shown in FIG. 2E, when the device 311 is set to the OTG mode and the mini-A plug 318 of the USB cable 330 is fitted and connected to the mini-AB receptacle 316, the control of the control unit 314 causes The operation of the OTG mode operation unit 317 is performed, and the switching output unit 319 switches and selects the signal from the OTG mode operation unit 317 to enable the output, and performs input / output of the signal in the OTG host mode.
[0060]
As shown in FIG. 2F, when the device 311 is set to the OTG mode, and the mini-B receptacle 316 is fitted with the mini-B plug 328 of the USB cable 330, the control of the control unit 314 causes The operation of the OTG mode operation unit 317 is performed, and the switching output unit 319 switches and selects the signal from the OTG mode operation unit 317 to enable the output, and performs input / output of the signal in the OTG peripheral mode.
[0061]
In the OTG mode, the operation starts as the OTG host mode when the mini A plug 318 is fitted and connected to the mini AB receptacle 316, and the OTG peripheral mode when the mini B plug 328 is fitted and connected to the mini AB receptacle 316. To start the operation.
[0062]
FIG. 3 shows an example in which the mode setting of the device 311 and the device 321 and the fitting connection of the mini A plug 318 and the mini B plug 328 of the USB cable 330 are incorrect.
[0063]
For example, as shown in FIG. 3A, the mode setting of the device 311 is set to the host mode, the mini-B receptacle 316 of the device 311 is fitted with the mini-B plug 328 of the USB cable 330, and the mode of the device 321 is set. When the setting is set to the device mode and the mini A plug 318 of the USB cable 330 is fitted and connected to the mini AB receptacle 326 of the device 321, the output of the switching output unit 319 of the device 311 is controlled to be disabled, and the switching of the device 321 is performed. Since the output of the output unit 329 is also controlled to be disabled, the output does not conflict and the device is not damaged.
[0064]
For example, as shown in FIG. 3B, the mode setting of the device 311 is set to the host mode, the mini AB plug 328 of the USB cable 330 is fitted and connected to the mini AB receptacle 316 of the device 311, and the mode of the device 321 is set. When the setting is set to the OTG mode and the mini A plug 318 of the USB cable 330 is fitted and connected to the mini AB receptacle 326 of the device 321, the output of the switching output unit 319 of the device 311 is controlled to be disabled. The output of the switching output unit 329 is controlled to be enabled as OTG, but the output does not conflict and the device is not damaged.
[0065]
For example, as shown in FIG. 3C, the mode setting of the device 311 is set to the device mode, the mini-A plug 318 of the USB cable 330 is fitted and connected to the mini-AB receptacle 316 of the device 311, and the mode of the device 321 is set. When the setting is set to the OTG mode and the mini B plug 328 of the USB cable 330 is fitted and connected to the mini AB receptacle 326 of the device 321, the output of the switching output unit 319 of the device 311 is controlled to be disabled. The output of the switching output unit 329 is controlled to be enabled as OTG, but the output does not conflict and the device is not damaged.
[0066]
For example, as shown in FIG. 3D, the mode setting of the device 311 is set to the OTG mode, the mini-A plug 318 of the USB cable 330 is fitted and connected to the mini-AB receptacle 316 of the device 311, and the mode of the device 321 is set. When the setting is set to the host mode and the mini-B plug 328 of the USB cable 330 is fitted and connected to the mini-AB receptacle 326 of the device 321, the output of the switching output unit 319 of the device 311 is controlled to be enabled as OTG. Since the output of the switching output unit 329 of the H.321 is controlled to be disabled, the output does not conflict and the device is not damaged.
[0067]
For example, as shown in FIG. 3E, the mode setting of the device 311 is set to the OTG mode, the mini-AB receptacle 316 of the device 311 is fitted with the mini-B plug 328 of the USB cable 330, and the mode of the device 321 is set. When the setting is set to the device mode and the mini A plug 318 of the USB cable 330 is fitted and connected to the mini AB receptacle 326 of the device 321, the output of the switching output unit 319 of the device 311 is controlled to be enabled as OTG. Since the output of the switching output unit 329 of the H.321 is controlled to be disabled, the output does not conflict and the device is not damaged.
[0068]
As described above, in the USB connector connection device of the present invention, even if the mode setting of the USB connector connection device and the connection of the USB cable are erroneous, the signal output to the USB connector conflicts and the device is damaged. That doesn't happen.
[0069]
In order to more specifically describe the embodiment of the present invention, its operation, and advantages, an embodiment showing a specific device and a specific operation will be described below.
[0070]
(Embodiment 2)
A mobile phone 121 as another embodiment of a USB connector connection device, a USB connector connection method, a USB connector connection program, and a medium recording a USB connection program according to the present invention, and still another embodiment. FIG. 4 shows an appearance in which the printer 124 is connected by the USB cable 147.
[0071]
A mini-A plug 143 and a mini-B plug 146 are connected to both ends of the USB cable 147, respectively.
[0072]
If normal, the mini-A plug 143 is connected to the USB connector connection device set to the host mode, and the mini-B plug 146 is connected to the USB connector connection device set to the device mode.
[0073]
When the USB connector connection device is set to the OTG mode, since the OTG host mode or the OTG peripheral mode is determined by the connected mini plug, either the mini A plug 143 or the mini B plug 146 may be connected.
[0074]
In this embodiment, the USB connector connection device set to the host mode or the OTG mode is the mobile phone 121, and the USB connector connection device set to the device mode or the OTG mode is the printer.
[0075]
Therefore, if normal, the mini A plug 143 connected to the USB cable 147 is used by connecting to a mobile phone set to the host mode, and the mini B plug 146 is connected to the printer 124 set to the device mode. used. When the mobile phone 121 and the printer 124 are used in the OTG mode, it is not always determined which device the mini-A plug 143 and the mini-B plug 146 are connected to.
[0076]
The mobile phone 121 which is set to the host mode or the OTG mode and operates as a host has a display screen 133, a push button switch 135, a mini AB receptacle 131, and other components that are not necessary for explaining the present invention. It is equipped with speakers, antennas, and other components necessary for ordinary mobile phones.
[0077]
Since the mobile phone 121 is equipped with the mini-AB receptacle 131, it is possible to connect with the mini-A plug 143 or the mini-B plug 146.
[0078]
If normal, the mobile phone 121 is set to the host mode as described above, the mini-A plug 143 is connected when operating as a host, and the mini-B plug 146 is connected when operating as a device. You. When the mobile phone 121 is set to the OTG mode, either the mini A plug 143 or the mini B plug 146 may be connected.
[0079]
Since the mobile phone 121 is equipped with the push button switch 135, any one of the host mode, the device mode, and the OTG mode can be switched and used by operating the push button switch 135. This switching operation can be performed while watching the contents displayed on the display screen 133.
[0080]
Whether the mobile phone 121 is currently set to the host mode, the device mode, or the OTG mode can be confirmed from the content displayed on the display screen 133 by operating the push button switch 135.
[0081]
For example, when the mobile phone 121 and the printer 124 are connected by the USB cable 147 and the information received by the mobile phone 121 is to be printed by the printer 124, the mobile phone 121 starts up and transmits the information to the printer 124. Normally, the mobile phone 121 is set to the host mode or the OTG mode, and the printer 124 is set to the device mode or the OTG mode.
[0082]
However, depending on the application software, the setting is not necessarily limited to this setting, and another setting may be performed.
[0083]
Further, the mobile phone 121 is not always set to the host mode or the OTG mode. For example, image information captured by the digital camera 212 as shown in FIG. Is transmitted from the mobile phone 121 to the mobile phone 121 (not shown). When the image information is to be transmitted to another mobile phone or a personal computer, the digital camera 212 is activated and the information is transmitted to the mobile phone 121. Normally, the digital camera 212 is set to the host mode or the OTG mode, and the mobile phone 121 is set to the device mode or the OTG mode.
[0084]
The printer 124 is provided with a display screen 136, a push button switch 138, a mini AB receptacle 134, and other members that are not necessary to explain the present invention and are not described, but are necessary for an ordinary printer.
[0085]
Since the printer 124 is equipped with the mini-AB receptacle 134, the mini-A plug 143 and the mini-B plug 146 can be connected.
[0086]
If normal, the printer 124 is set to the host mode, and the mini-A plug 143 is connected when operating as a host. Conversely, the mini-B plug 146 is connected when set to the device mode and operating as a device. When the printer 124 operates in the OTG mode, it is not always determined whether the mini-A plug 143 or the mini-B plug 146 is connected.
[0087]
Since the printer 124 has the push button switch 138, any one of the host mode, the device mode, and the OTG mode can be switched and used by operating the push button switch 138. This switching operation can be performed while looking at the content displayed on the display screen 136.
[0088]
Whether the printer 124 is currently set to the host mode, the device mode, or the OTG mode can be confirmed by operating the push button switch 138 on the content displayed on the display screen 136. .
[0089]
When application software is installed in each of the mobile phone 121 and the printer 124 connected as described above and the software is started, an operation specified by the application software is executed.
[0090]
For example, if the mobile phone 121 is set to the host mode or the OTG mode, and the mini A plug 143 is connected to the mini AB receptacle 131, the mobile phone 121 supplies power to the printer 124 via the USB cable 147, and In order to print information received from another mobile phone or personal computer at a remote location, the information can be transmitted to the printer 124 by application software.
[0091]
In addition, up to now, the setting of each mode of the mobile phone 121 has been described such that the user operates the push button switch 135 while watching the display screen 133. However, this application software automatically sets each mode of the mobile phone 121. The mode may be set. At this time as well, the user can confirm which mode the mobile phone 121 is currently set in, based on the contents displayed on the display screen 133 by operating the push button switch 135 by the user as described above.
[0092]
Similarly, if the printer 124 is set to the device mode or the OTG mode, and the mini-AB receptacle 134 is connected to the mini-B plug 146, the printer 124 does not supply power via the USB cable 147. Printing of various information received via the cable 147 can be performed by application software.
[0093]
The setting of each mode of the printer 124 is not necessarily limited to the method performed by the user using the push button switch 138 and the display screen 136, and may be automatically performed by application software. The fact that the user can confirm using the switch 138 and the display screen 136 is the same as that of the mobile phone 121.
[0094]
In this case, the user mistakenly connects the USB cable 147, connects the mini-B plug 146 to the mini-AB receptacle 131 of the mobile phone 121, and connects the mini-A plug 143 to the mini-AB receptacle 134 of the printer 124. I do.
[0095]
As described above, since the mini-A plug 143 and the mini-B plug 146 can be connected to the mini-AB receptacles 131 and 134 (see Non-Patent Document 2), there is no possibility that such an error will occur. is there.
[0096]
In this case, for example, the result varies depending on whether the mobile phone 121 is set to the host mode or the OTG mode, or whether the printer 124 is set to the device mode or the OTG.
[0097]
First, a case where the mobile phone 121 is set to the host mode and the printer 124 is set to the device mode will be described.
[0098]
In this case, when the mini-B plug 146 of the USB cable 147 is connected to the mini-AB receptacle 131 of the mobile phone 121 set to the host mode, the connection to the USB of the mobile phone 121 is performed according to the switching output control shown in FIG. Output is disabled and controlled.
[0099]
Similarly, since the mini-A plug 143 of the USB cable 147 is connected to the mini-AB receptacle 134 of the printer 124 set to the device mode, the output of the printer 124 to the USB is controlled according to the switching output control shown in FIG. The suppression control is disabled.
[0100]
Therefore, the output to the USB of both of the USB-connected devices is disabled and controlled, so that there is no conflict between the outputs and the devices are damaged. Naturally, there is no conflict between power supplies and damage to the device.
[0101]
Next, the case where the mobile phone 121 is set to the host mode and the printer 124 is set to the OTG mode will be described.
[0102]
In this case, when the mini-B plug 146 of the USB cable 147 is connected to the mini-AB receptacle 131 of the mobile phone 121 set to the host mode, the connection to the USB of the mobile phone 121 is performed according to the switching output control shown in FIG. Output is disabled and controlled.
[0103]
Similarly, since the mini-A plug 143 of the USB cable 147 is connected to the mini-AB receptacle 134 of the printer 124 set in the OTG mode, signals are input and output as the OTG host mode according to the switching output control shown in FIG. Is done.
[0104]
The printer 124 is enabled as an OTG host and further supplies power. However, since the output of the mobile phone 121 to the USB is controlled to be disabled, the output does not conflict and the device is not damaged. Naturally, there is no conflict between power supplies and damage to the device.
[0105]
Next, a case where the mobile phone 121 is set to the OTG mode and the printer 124 is set to the device mode will be described.
[0106]
In this case, when the mini-B plug 146 of the USB cable 147 is connected to the mini-AB receptacle 131 of the mobile phone 121 set to OTG, the signal in the OTG peripheral mode is output according to the switching output control shown in FIG. Input and output.
[0107]
Similarly, since the mini-A plug 143 of the USB cable 147 is connected to the mini-AB receptacle 134 of the printer 124 set in the device mode, the output of the printer 124 to the USB is controlled according to the switching output control shown in FIG. The suppression control is disabled.
[0108]
The mobile phone 121 starts operating as an OTG peripheral, but the printer 124 is controlled so that output to the USB is disabled, so that output does not conflict and the device is not damaged. Naturally, there is no conflict between power supplies and damage to the device.
[0109]
Finally, when the mobile phone 121 and the printer 124 are both set to the OTG mode, the operation starts normally regardless of the direction of the USB cable 147.
[0110]
In order to more specifically describe the embodiment of the present invention, its operation, and its advantages, an embodiment showing yet another set of specific devices and specific operations will be described below.
[0111]
(Embodiment 3)
Appearance of a state in which a mobile phone 121 as another embodiment of the USB connector connection device and the USB connector connection method according to the invention of the present application and a digital camera 212 as another embodiment are connected by a USB cable 147. Is shown in FIG.
[0112]
A mini A plug 246 and a mini B plug 243 are connected to both ends of the USB cable 147, respectively.
[0113]
If normal, the mini-A plug 246 is connected to the USB connector connecting device set to the host mode, and the mini-B plug 243 is connected to the USB connector connecting device set to the device mode.
[0114]
As described above, when the USB connector connection device is set to the OTG mode, since the OTG host mode or the OTG peripheral mode is determined by the connected mini plug, either the mini A plug 143 or the mini B plug 146 is connected. Is also good.
[0115]
In this embodiment, the USB connector connection device set to the host mode or the OTG mode is the digital camera 212, and the USB connector connection device set to the device mode or the OTG mode is the mobile phone 121.
[0116]
In this embodiment, the mobile phone 121 used in the host mode or the OTG mode in the previous embodiment is now used in the device mode or the OTG mode.
[0117]
Thus, the same one USB connector connection device may be used in the host mode or the OTG mode, or may be used in the device mode or the OTG mode.
[0118]
This is because it is determined according to the purpose of use and application, and these USB connector connection devices must be compatible with these use modes, and the application software must be used in each of these modes. Is a premise.
[0119]
If normal, the mini A plug 246 connected to the USB cable 147 is used by connecting to the digital camera 212 set to the host mode, and the mini B plug 243 is connected to the mobile phone 121 set to the device mode. Used. When the mobile phone 121 and the digital camera 212 are used in the OTG mode, it is not necessarily determined which device the mini-A plug 246 and the mini-B plug 243 are connected to.
[0120]
The digital camera 212 which is set to the host mode or the OTG mode and operates as a host includes a display screen 234, a push button switch 236, a mini AB receptacle 238, and a lens (not shown) which are not necessary for explaining the present invention. It has a viewfinder, shutter switch, and other components necessary for a normal digital camera.
[0121]
Since the digital camera 212 is equipped with the mini-AB receptacle 238, it is possible to connect with the mini-A plug 246 or the mini-B plug 243.
[0122]
If the digital camera 212 is normal, the digital camera 212 is set to the host mode as described above. When the digital camera 212 operates as a host, the mini A plug 246 is connected. When the digital camera 212 operates as a device, the mini B plug 243 is connected. You. This digital camera 212 is set to the OTG mode,
Since the digital camera 212 is equipped with the push button switch 236, any one of the host mode, the device mode, and the OTG mode can be switched and used by operating the push button switch 236. This switching operation can be performed while looking at the content displayed on the display screen 234.
[0123]
Whether the digital camera 212 is currently set to the host mode, the device mode, or the OTG mode can be confirmed by operating the push button switch 236 on the content displayed on the display screen 234. it can.
[0124]
For example, when the digital camera 212 is connected to the mobile phone 121 with a USB cable 147 and image information captured by the digital camera 212 is to be transmitted to another mobile phone or personal computer at a remote location by the mobile phone 121, the digital camera 212 is used. , The image information is transmitted to the mobile phone 121, so that the digital camera 212 is usually set to the host mode or the OTG mode, and the mobile phone 121 is set to the device mode or the OTG mode.
[0125]
However, depending on the application software, the setting is not necessarily limited to this setting, and another setting may be performed.
[0126]
The digital camera 212 is not always set to the host mode or the OTG mode, as in the case of the mobile phone 121 described above.
[0127]
When application software is installed in each of the digital camera 212 and the mobile phone 121 connected as described above, and the software is started, an operation specified by the application software is executed.
[0128]
For example, if the digital camera 212 is set to the host mode or the OTG mode, and the mini A plug 246 is connected to the mini AB receptacle 238, the digital camera 212 supplies power to the mobile phone 121 via the USB cable 147, and In order to transmit image information taken by the user to another mobile phone or personal computer at a remote location, the information can be transmitted to the mobile phone 121 by application software.
[0129]
Until now, the setting of each mode of the digital camera 212 has been described as being performed by the user by operating the push button switch 236 while looking at the display screen 234, but this application software automatically sets each mode of the digital camera 212. Settings may be made. Also at this time, the user can confirm which mode the digital camera 212 is currently set in, as described above, by operating the push button switch 236 and displaying the content on the display screen 234.
[0130]
Similarly, if the mobile phone 121 is set to the device mode or the OTG mode, and the mini-AB plug 131 is connected to the mini-AB receptacle 131, the mobile phone 121 does not supply power via the USB cable 147. For example, transmission and reception of various information transmitted and received via the USB cable 147 can be performed by application software.
[0131]
Here, if the user connects the USB cable 147 incorrectly, the user connects the mini-B plug 243 to the mini-AB receptacle 238 of the digital camera 212 and connects the mini-A plug 246 to the mini-AB receptacle 131 of the mobile phone 121. Suppose.
[0132]
As described above, both the mini-A plug 246 and the mini-B plug 243 can be connected to the mini-AB receptacles 131 and 238 (see Non-Patent Document 2). is there.
[0133]
In this case, for example, the result changes depending on whether the digital camera 212 is set to the host mode or the OTG mode, or whether the mobile phone 121 is set to the device mode or the OTG mode. come.
[0134]
First, a case where the digital camera 212 is set to the host mode and the mobile phone 121 is set to the device mode will be described.
[0135]
In this case, when the mini-B plug 243 of the USB cable 147 is connected to the mini-AB receptacle 238 of the digital camera 212 set to the host mode, the connection to the USB of the digital camera 212 is performed according to the switching output control shown in FIG. Output is disabled and controlled.
[0136]
Similarly, since the mini-A plug 246 of the USB cable 147 is connected to the mini-AB receptacle 131 of the mobile phone 121 set to the device mode, the mobile phone 121 is connected to the USB according to the switching output control shown in FIG. The output is also suppressed and controlled to be disabled.
[0137]
Therefore, the output to the USB of both of the USB-connected devices is suppressed to be disabled, so that there is no conflict between the outputs and the device is damaged. Naturally, there is no conflict between power supplies and damage to the device.
[0138]
Next, a case where the digital camera 212 is set to the host mode and the mobile phone 121 is set to the OTG mode will be described.
[0139]
In this case, when the mini-B plug 146 of the USB cable 147 is connected to the mini-AB receptacle 131 of the digital camera 212 set to the host mode, the connection to the USB of the digital camera 212 is performed according to the switching output control shown in FIG. Output is disabled and controlled.
[0140]
Similarly, since the mini-A plug 143 of the USB cable 147 is connected to the mini-AB receptacle 134 of the mobile phone 121 set to the OTG mode, a signal is input as the OTG host mode according to the switching output control shown in FIG. Is output.
[0141]
The mobile phone 121 is enabled as an OTG host and further supplies power. However, since the digital camera 212 is controlled so that the output to the USB is disabled, the output does not conflict and the device is not damaged. Naturally, there is no conflict between power supplies and damage to the device.
[0142]
Next, a case where the digital camera 212 is set to the OTG mode and the mobile phone 121 is set to the device mode will be described.
[0143]
In this case, when the mini-B plug 146 of the USB cable 147 is connected to the mini-AB receptacle 131 of the digital camera 212 set to OTG, the signal in the OTG peripheral mode is output according to the switching output control shown in FIG. Input and output.
[0144]
Similarly, since the mini-A plug 143 of the USB cable 147 is connected to the mini-AB receptacle 134 of the mobile phone 121 set to the device mode, the mobile phone 121 is connected to the USB according to the switching output control shown in FIG. The output is disabled and controlled.
[0145]
The digital camera 212 starts operating as an OTG peripheral, but since the output to the USB of the mobile phone 121 is disabled and controlled, the output does not conflict and the device is not damaged. Naturally, there is no conflict between power supplies and damage to the device.
[0146]
Finally, when the digital camera 212 and the mobile phone 121 are both set to the OTG mode, the operation starts normally regardless of the direction of the USB cable 147.
[0147]
【The invention's effect】
As described above, according to the USB connector connection device, the USB connector connection method, the USB connector connection program, and the medium on which the program is recorded according to the present invention, the USB for connecting each USB connector connection device to transmit and receive data. If the cable plug is mistakenly connected to the receptacle of each device, it automatically determines the incorrect connection and suppresses the signal and power supply to the USB connector. In addition, it is possible to prevent collision and prevent the USB connector connection device to which an incorrect connection has been made from being damaged, and the effect is extremely effective.
[Brief description of the drawings]
FIG. 1 is a diagram showing a block configuration according to an embodiment of the present invention and a state where the block configuration is connected with a USB cable.
FIG. 2 is a diagram illustrating a state of output control performed on a switching output unit by a control unit according to the embodiment of the present invention;
FIG. 3 is a diagram showing a mode setting and an incorrect connection example of a USB cable plug according to an embodiment of the present invention;
FIG. 4 is a diagram showing an appearance in which a mobile phone according to another embodiment of the present invention and a printer according to still another embodiment are connected by a USB cable.
FIG. 5 is a diagram showing an appearance in which a mobile phone according to another embodiment of the present invention and a digital camera according to still another embodiment are connected by a USB cable.
[Explanation of symbols]
121 mobile phone
124 printer
131 mini AB receptacle
133 display screen
134 mini AB receptacle
135 push button switch
136 Display screen
138 push button switch
143 mini A plug
146 mini B plug
147 USB cable
212 Digital Camera
234 Display screen
236 push button switch
238 mini AB receptacle
243 mini B plug
246 mini A plug
311 device (USB connector connection device)
312 Connection plug judgment unit
313 Host mode operation unit
314 control unit
315 Device mode operation section
316 mini AB receptacle
317 OTG mode operation section
318 mini A plug
319 Switching output unit
321 device (USB connector connection device)
322 connection plug judgment unit
323 Host mode operation unit
324 control unit
325 Device mode operation section
326 mini AB receptacle
327 OTG mode operation section
328 mini B plug
329 Switching output unit
330 USB cable

Claims (8)

ホストモードまたはデバイスモードまたはOTGモードに設定する手段と、
USBコネクタのミニAとミニBのどちらでも接続可能なUSBコネクタ接続手段と、
前記USBコネクタ接続手段にUSBコネクタのミニAが接続されたかミニBが接続されたかを判断する手段とを有し、
前記設定する手段によって設定されたモードと前記判断する手段によって判断されたUSBコネクタに応じて前記USBコネクタ接続手段への出力の全部または一部を抑制する、
USBコネクタ接続装置。
Means for setting to a host mode, a device mode, or an OTG mode;
USB connector connection means that can be connected to either a mini-A or mini-B USB connector,
Means for judging whether a USB connector mini-A or mini-B is connected to the USB connector connection means,
Suppressing all or a part of the output to the USB connector connection means according to the mode set by the setting means and the USB connector determined by the determination means,
USB connector connection device.
前記設定する手段によってホストモードに設定され且つ前記判断する手段によってUSBコネクタのミニBが接続されたと判断された時、および、前記設定する手段によってデバイスモードに設定され且つ前記判断する手段によってUSBコネクタのミニAが接続されたと判断された時に、前記USBコネクタ接続手段への出力の全部または一部を抑制する、
請求項1に記載のUSBコネクタ接続装置。
When the setting means sets the host mode and the judging means judges that the mini-B of the USB connector is connected, and when the setting means sets the device mode and the judging means judges the USB connector. When it is determined that the mini-A is connected, all or a part of the output to the USB connector connection unit is suppressed.
The USB connector connection device according to claim 1.
前記ホストモードを行うホストモード動作手段と、
前記デバイスモードを行うデバイスモード動作手段と、
前記OTGモードを行うOTGモード動作手段と、
前記ホストモード動作手段と前記デバイスモード動作手段と前記OTGモード動作手段と前記USBコネクタ接続手段間の信号を制御する第1の制御手段と、前記設定手段によって設定されたモードに応じて前記ホストモード動作手段と前記デバイスモード動作手段と前記OTGモード動作手段と前記第1の制御手段との1または2以上を制御する第2の制御手段と、
を有する請求項1または請求項2に記載のUSBコネクタ接続装置。
Host mode operating means for performing the host mode;
Device mode operation means for performing the device mode;
OTG mode operation means for performing the OTG mode;
First control means for controlling a signal between the host mode operation means, the device mode operation means, the OTG mode operation means, and the USB connector connection means; and the host mode in accordance with a mode set by the setting means. Second control means for controlling one or more of an operation means, the device mode operation means, the OTG mode operation means, and the first control means;
The USB connector connection device according to claim 1 or 2, further comprising:
前記USBコネクタ接続手段にUSBコネクタのミニAが接続されたかミニBが接続されたかを判断する手段は、USBコネクタのIDピンの信号によってUSBコネクタのミニAが接続されたかミニBが接続されたかを判断する手段である、
請求項1から請求項3のいずれか1項に記載のUSBコネクタ接続装置。
The means for determining whether the mini-A of the USB connector is connected to the USB connector connection means or the mini-B is connected depends on whether the mini-A of the USB connector is connected or the mini-B is connected according to the signal of the ID pin of the USB connector. Means to determine
The USB connector connection device according to any one of claims 1 to 3.
前記抑制されるUSBコネクタ接続手段への出力の全部または一部は、USBへの電源供給を含む、
請求項1から請求項4のいずれか1項に記載のUSBコネクタ接続装置。
All or a part of the output to the suppressed USB connector connection unit includes power supply to USB.
The USB connector connection device according to any one of claims 1 to 4.
ホストモードまたはデバイスモードまたはOTGモードのいずれかのモードに設定する手順と、
USBコネクタ接続手段にUSBコネクタのミニAが接続されたかミニBが接続されたかを判断する手順と、
前記モードに設定する手順によって設定されたモードと前記判断する手順によって判断されたUSBコネクタに応じてUSBコネクタ接続手段への出力の全部または一部を抑制する手順とを有する、
USBコネクタ接続方法。
A procedure for setting to any of the host mode, the device mode, and the OTG mode;
A procedure for determining whether the USB connector mini-A or mini-B is connected to the USB connector connection means;
A step of suppressing all or a part of the output to the USB connector connection unit according to the mode set by the procedure for setting the mode and the USB connector determined by the determining procedure.
USB connector connection method.
ホストモードまたはデバイスモードまたはOTGモードのいずれかのモードに設定するステップと、
USBコネクタ接続手段にUSBコネクタのミニAが接続されたかミニBが接続されたかを判断するステップと、
前記モードに設定するステップによって設定されたモードと前記判断するステップによって判断されたUSBコネクタに応じてUSBコネクタ接続手段への出力の全部または一部を抑制するステップとを有する、
USBコネクタ接続プログラム。
Setting the mode to one of the host mode, the device mode, and the OTG mode;
Determining whether the USB connector mini-A or mini-B is connected to the USB connector connection means;
Suppressing the whole or a part of the output to the USB connector connecting means according to the mode set by the step of setting the mode and the USB connector determined by the determining step.
USB connector connection program.
請求項7に記載のプログラムを記録したコンピュータ読み取り可能な記録媒体。A computer-readable recording medium on which the program according to claim 7 is recorded.
JP2002268567A 2002-09-13 2002-09-13 Usb connector connecting device, usb connector connecting method, usb connector connecting program, and medium for recording usb connecting program Pending JP2004110145A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002268567A JP2004110145A (en) 2002-09-13 2002-09-13 Usb connector connecting device, usb connector connecting method, usb connector connecting program, and medium for recording usb connecting program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002268567A JP2004110145A (en) 2002-09-13 2002-09-13 Usb connector connecting device, usb connector connecting method, usb connector connecting program, and medium for recording usb connecting program

Publications (1)

Publication Number Publication Date
JP2004110145A true JP2004110145A (en) 2004-04-08

Family

ID=32266756

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002268567A Pending JP2004110145A (en) 2002-09-13 2002-09-13 Usb connector connecting device, usb connector connecting method, usb connector connecting program, and medium for recording usb connecting program

Country Status (1)

Country Link
JP (1) JP2004110145A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007213557A (en) * 2006-01-13 2007-08-23 Canon Inc Electronic apparatus and control method therefor
JP2008535459A (en) * 2005-04-01 2008-08-28 フリースケール セミコンダクター インコーポレイテッド System and method for protecting a low voltage transceiver
WO2011101977A1 (en) * 2010-02-19 2011-08-25 富士通株式会社 Wireless communication device and function switching method
CN102544920A (en) * 2010-12-22 2012-07-04 昆达电脑科技(昆山)有限公司 Cable
JP2012168691A (en) * 2011-02-14 2012-09-06 Nikon Corp Interface system, imaging apparatus, and host device
KR101298643B1 (en) * 2006-11-29 2013-08-21 삼성전자주식회사 A digital terminal and the method thereof

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008535459A (en) * 2005-04-01 2008-08-28 フリースケール セミコンダクター インコーポレイテッド System and method for protecting a low voltage transceiver
JP2007213557A (en) * 2006-01-13 2007-08-23 Canon Inc Electronic apparatus and control method therefor
KR101298643B1 (en) * 2006-11-29 2013-08-21 삼성전자주식회사 A digital terminal and the method thereof
WO2011101977A1 (en) * 2010-02-19 2011-08-25 富士通株式会社 Wireless communication device and function switching method
JP5648678B2 (en) * 2010-02-19 2015-01-07 富士通株式会社 Wireless communication apparatus and function switching method
CN102544920A (en) * 2010-12-22 2012-07-04 昆达电脑科技(昆山)有限公司 Cable
JP2012168691A (en) * 2011-02-14 2012-09-06 Nikon Corp Interface system, imaging apparatus, and host device

Similar Documents

Publication Publication Date Title
US7411607B2 (en) Electronic equipment and data transfer method
US9154651B2 (en) Configuring apparatus, image output apparatus, methods of controlling the same, and program
JP5129669B2 (en) Image forming apparatus and control method thereof, image supply apparatus and control method thereof
US20070058190A1 (en) Multi-function printer
JPWO2005001701A1 (en) Slave device, communication setting method
JP2008158840A (en) Electronic equipment
US20080162955A1 (en) Usb host, usb device, and methods of controlling the host and the device
US8953198B2 (en) Communication system, communication apparatus, and communication control method
US20070058031A1 (en) Wireless communication device
JP6727798B2 (en) Information processing apparatus, control method thereof, and program
JP2006343993A (en) Radio communication device and method for controlling it
US8468257B2 (en) Communication system, communication apparatus, and control method thereof
JP2004110145A (en) Usb connector connecting device, usb connector connecting method, usb connector connecting program, and medium for recording usb connecting program
JP4514604B2 (en) USB device system, digital printer and digital camera
US9661167B2 (en) Communication apparatus configured to perform non-contact communication with external device
JP2003345500A (en) Electronic apparatus with detachable display unit
JP2005103992A (en) Printer
JP2012063851A (en) Peripheral device control circuit and information processor including the same
JP2004029885A (en) Connecting device
US8774376B2 (en) Data transmission apparatus and data reception apparatus
US11322970B2 (en) Device with power-off charging capability
JP2002229673A (en) Information processing system having extension unit
US10205848B2 (en) Printing apparatus serving as an access point based on authentication information for a wireless connection, printing system including the printing apparatus, and control method of the printing apparatus
JP2003241867A (en) Portable terminal, communication cable and interface switching method
JP2006085248A (en) Portable apparatus having host function