JP2002290490A - Electronic device - Google Patents

Electronic device

Info

Publication number
JP2002290490A
JP2002290490A JP2001092253A JP2001092253A JP2002290490A JP 2002290490 A JP2002290490 A JP 2002290490A JP 2001092253 A JP2001092253 A JP 2001092253A JP 2001092253 A JP2001092253 A JP 2001092253A JP 2002290490 A JP2002290490 A JP 2002290490A
Authority
JP
Japan
Prior art keywords
communication
interface
voltage
electronic device
terminal
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
JP2001092253A
Other languages
Japanese (ja)
Inventor
Toshiyuki Mizuno
敏之 水野
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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP2001092253A priority Critical patent/JP2002290490A/en
Publication of JP2002290490A publication Critical patent/JP2002290490A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To automatically recognize communication standards of the destination and carry out communication in compliance with the communication standards. SOLUTION: In an electronic device 1, a detection means 1a detects an interface specifications of an interface circuit 3a of a device 3 which carries out communication through a communication cable 2. A switching means 1b changes connections between the communication cable 2 and interface circuits 1d and 1e according to the interface specifications detected by the detection device 1a. At this time, the switching means 1b switches to the interface circuit 1d or 1e which complies with the communication standards of the device 3. The selecting means 1c changes over communication protocol of a software level in compliance with the communication standards of the device 3.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は電子機器に関し、特
に通信ケーブルを接続して通信する電子機器に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic device, and more particularly, to an electronic device that performs communication by connecting a communication cable.

【0002】[0002]

【従来の技術】PC(パーソナルコンピュータ)におい
て接続される周辺機器は、技術の進歩にしたがって種々
のインタフェース仕様が導入される。そのためPCと周
辺機器のインタフェースの仕様を対応させる必要があ
る。
2. Description of the Related Art Various interface specifications are introduced to peripheral devices connected to a PC (personal computer) as technology advances. Therefore, it is necessary to match the specifications of the interface between the PC and the peripheral device.

【0003】そこで、単一の電子機器で複数の通信規格
に対応させるために、各通信規格に対応する回路を搭載
し、適宜通信規格に合う回路と通信ケーブルをジャンパ
ー線等で接続する電子機器がある。例えば、特開平6−
90305号公報に示すような電子機器がある。
In order to cope with a plurality of communication standards with a single electronic device, a circuit corresponding to each communication standard is mounted, and a circuit conforming to the communication standard and a communication cable are appropriately connected by a jumper wire or the like. There is. For example, Japanese Unexamined Patent Publication
There is an electronic device as disclosed in JP-A-90305.

【0004】また、外部から通信ケーブルを介して電源
電圧を供給される電子機器においては、供給される電源
電圧の極性を利用した電子機器がある。例えば、ある通
信規格では、電源電圧の極性を反転させてないケーブル
を用い、また、ある通信規格では、極性を反転させたケ
ーブルを用いる。電子機器は、ケーブルから送られてき
た電圧極性を検出し、その結果に応じて、接続先の装置
に対応する通信規格の回路を選択し接続を切替える。
[0004] Further, among electronic devices to which a power supply voltage is externally supplied via a communication cable, there are electronic devices that use the polarity of the supplied power supply voltage. For example, a certain communication standard uses a cable in which the polarity of the power supply voltage is not inverted, and a certain communication standard uses a cable in which the polarity is inverted. The electronic device detects the voltage polarity sent from the cable, selects a circuit of a communication standard corresponding to the device to be connected, and switches the connection according to the result.

【0005】[0005]

【発明が解決しようとする課題】上記のように、1つの
電子機器で複数の通信規格に対応し通信を行うには、各
通信規格に対応する回路を搭載して、適宜使用する通信
規格に対応する回路を手動で切替えなければならず煩雑
である。
As described above, in order to perform communication in accordance with a plurality of communication standards with one electronic device, a circuit corresponding to each communication standard is mounted, and a communication standard used as appropriate is used. The corresponding circuit must be manually switched, which is complicated.

【0006】また、通信ケーブルを介して送られる電源
電圧の極性を検出し、通信規格を判別するため、複数の
専用のケーブルを用意しなければならず、ケーブルの誤
接続を生じる。
Further, in order to detect the polarity of the power supply voltage sent via the communication cable and determine the communication standard, a plurality of dedicated cables must be prepared, resulting in erroneous connection of the cables.

【0007】本発明はこのような点に鑑みてなされたも
のであり、通信ケーブルを接続した接続先の装置のイン
タフェースに自動的に対応できる電子機器を提供するこ
とを目的とする。
[0007] The present invention has been made in view of the above points, and it is an object of the present invention to provide an electronic apparatus which can automatically cope with an interface of a device to which a communication cable is connected.

【0008】また本発明の他の目的は、単一ケーブルで
接続先の装置のインタフェースに対応できる電子機器を
提供することを目的とする。
Another object of the present invention is to provide an electronic apparatus which can cope with an interface of a connection destination device with a single cable.

【0009】[0009]

【課題を解決するための手段】本発明では上記問題を解
決するために、異なる仕様のインタフェースに接続でき
る電子機器において、接続先の装置のインタフェースを
検出する検出手段と、前記インタフェースに対応したイ
ンタフェース回路と、前記検出手段により検出した前記
インタフェースの仕様に対応して、前記インタフェース
回路との接続を切替える切替え手段とを有することを特
徴とする電子機器が提供される。
According to the present invention, in order to solve the above-mentioned problems, in an electronic device which can be connected to an interface having a different specification, a detecting means for detecting an interface of a device to be connected, and an interface corresponding to the interface An electronic apparatus is provided, comprising: a circuit; and switching means for switching connection to the interface circuit in accordance with the specification of the interface detected by the detection means.

【0010】このような電子機器によれば、通信ケーブ
ルで他の装置と接続することにより、接続先の装置の通
信規格に自動的に切替え通信を行う。
According to such an electronic device, by connecting to another device with a communication cable, communication is automatically switched to the communication standard of the connected device and communication is performed.

【0011】[0011]

【発明の実施の形態】以下、本発明の実施の形態を図面
を参照して説明する。図1は、本発明の電子機器の動作
原理を説明する原理図である。この図に示すように本発
明の電子機器1は、検出手段1a、切替え手段1b、選
択手段1cおよび、インタフェース回路1d、1eから
構成される。通信ケーブル2は電子機器1、装置3間の
各種電気信号を伝達する通信線から構成される。装置3
は、インタフェース回路3aから構成される。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a principle diagram illustrating the operation principle of the electronic device of the present invention. As shown in this figure, the electronic device 1 of the present invention includes a detecting unit 1a, a switching unit 1b, a selecting unit 1c, and interface circuits 1d and 1e. The communication cable 2 includes a communication line for transmitting various electric signals between the electronic device 1 and the device 3. Device 3
Is composed of an interface circuit 3a.

【0012】検出手段1aは、接続先の装置3のインタ
フェースの仕様を検出する。切替え手段1bは、検出手
段1aにより検出した接続先のインタフェースの仕様に
対応して通信ケーブル2とインタフェース回路1d、1
eとの接続を切替える。
The detecting means 1a detects the specifications of the interface of the device 3 to be connected. The switching means 1b is connected to the communication cable 2 and the interface circuits 1d, 1d in accordance with the specification of the interface of the connection destination detected by the detection means 1a.
Switch the connection with e.

【0013】選択手段1cは、ソフトウェアレベルにお
ける通信プロトコルを搭載し、接続先の装置3のインタ
フェースに準拠した通信プロトコルを選択し実行する。
インタフェース回路1d、1e、3aは、電気的な通信
規格を満たし電子機器1、装置3間の信号の送信、受信
を行う。
The selecting means 1c is equipped with a communication protocol at the software level, and selects and executes a communication protocol conforming to the interface of the device 3 to be connected.
The interface circuits 1d, 1e, and 3a satisfy electrical communication standards and transmit and receive signals between the electronic device 1 and the device 3.

【0014】通信ケーブル2は、電子機器1と装置3の
各種信号を伝達し、検出手段1a、切替え手段1bに接
続される。次に以上の原理図の動作について説明する。
The communication cable 2 transmits various signals of the electronic device 1 and the device 3, and is connected to the detecting means 1a and the switching means 1b. Next, the operation of the above principle diagram will be described.

【0015】いま、電子機器1と装置3が、通信ケーブ
ル2によって接続されているとする。このとき、検出手
段1aは、装置3のインタフェースの仕様を検出する。
そこで、切替え手段1bは、検出したインタフェースの
仕様に対応して、通信ケーブル2とインタフェース回路
1d、または、インタフェース回路1eの接続を切替え
る。このとき、装置3の通信規格に合うインタフェース
回路に接続する。また、選択手段1cは、検出したイン
タフェースの仕様に対応して、ソフトウェアレベルにお
ける各通信規格に準拠したプロトコルを選択し実行す
る。
Now, it is assumed that the electronic device 1 and the device 3 are connected by the communication cable 2. At this time, the detecting means 1a detects the specifications of the interface of the device 3.
Therefore, the switching unit 1b switches the connection between the communication cable 2 and the interface circuit 1d or the interface circuit 1e according to the detected interface specification. At this time, it is connected to an interface circuit conforming to the communication standard of the device 3. The selecting means 1c selects and executes a protocol conforming to each communication standard at the software level in accordance with the detected interface specification.

【0016】上記の電子機器1では、インタフェース回
路の数を2つとしたが、これ以上の数であってもよい。
以上に示したように、電子機器1は、検出手段1aによ
り装置3のインタフェースの仕様を検出し、切替え手段
1bが、検出したインタフェースの仕様に対応するイン
タフェース回路1dまたはインタフェース回路1eと通
信ケーブル2を接続し、選択手段1cがソフトウェアレ
ベルにおける通信プロトコルを選択するようにしたの
で、どのような通信規格を使用する装置とでも自動的に
通信が可能となる。
In the above electronic device 1, the number of interface circuits is two, but may be more.
As described above, the electronic device 1 detects the interface specification of the device 3 by the detection unit 1a, and the switching unit 1b sets the interface cable 1d or the interface circuit 1e and the communication cable 2e corresponding to the detected interface specification. And the selecting means 1c selects a communication protocol at the software level, so that communication can be automatically performed with a device using any communication standard.

【0017】次に、本発明の実施の形態の一例について
説明する。図2は本発明の電子機器にUSB規格の装置
が接続された場合を示す回路図で、図3はUSB接続時
の検出電圧の回路図である。
Next, an example of an embodiment of the present invention will be described. FIG. 2 is a circuit diagram showing a case where a USB standard device is connected to the electronic apparatus of the present invention, and FIG. 3 is a circuit diagram of a detection voltage at the time of USB connection.

【0018】図2の本発明に係る電子機器10は、例え
ばPCに接続するデジタルカメラの通信インタフェース
部分で、制御装置11と、インタフェース回路12a、
12bと、スイッチSW1、SW2、SW3と、抵抗R
1、R2、R3、R4と、電圧源VCCから構成されて
いる。通信ケーブル20は、電子機器10および装置3
0間の各種電気信号を伝達するための通信線から構成さ
れ、図にはその中の信号線21、22が示してある。装
置30は、抵抗R5、R6、インタフェース回路31か
ら構成され、例えばPCで、デジタルカメラと通信する
インタフェース部分とする。
An electronic device 10 according to the present invention shown in FIG. 2 is a communication interface portion of a digital camera connected to, for example, a PC, and includes a control device 11, an interface circuit 12a,
12b, switches SW1, SW2, SW3, and a resistor R
1, R2, R3, R4 and a voltage source VCC. The communication cable 20 includes the electronic device 10 and the device 3
It is composed of communication lines for transmitting various electric signals between 0, and signal lines 21 and 22 therein are shown in the figure. The device 30 includes resistors R5 and R6 and an interface circuit 31, and is, for example, an interface portion of a PC that communicates with a digital camera.

【0019】制御装置11は、アナログ−デジタル変換
器を搭載し、アナログ信号の入力端子である端子A/D
入力を有し、端子A/D入力に入力される電圧をデジタ
ル信号に変換する。また、制御装置11は、制御信号を
出力する端子CONT1、CONT2、CONT3を有
し、端子A/D入力に入力された電圧のデジタル信号の
値によって電圧の“H”または“L”の状態を出力す
る。また、図には示さないがUSB規格、RS−232
規格に準拠したソフトウェアレベルの通信プロトコルを
搭載する。
The control device 11 has an analog-to-digital converter and a terminal A / D which is an input terminal of an analog signal.
It has an input and converts a voltage input to a terminal A / D input into a digital signal. The control device 11 has terminals CONT1, CONT2, and CONT3 that output control signals, and changes the state of the voltage “H” or “L” according to the value of the digital signal of the voltage input to the terminal A / D input. Output. Although not shown in the figure, the USB standard, RS-232
Equipped with a software protocol that conforms to the standard.

【0020】インタフェース回路12a、12bは、信
号の送受信を行う。インタフェース回路12aは、US
Bの通信規格を満たし、インタフェース回路12bは、
RS−232の通信規格を満たす。ここで、USB規格
には、高速デバイスと低速デバイスの2種類のカテゴリ
ーがあるが、高速デバイスを使用しているものとする。
The interface circuits 12a and 12b transmit and receive signals. The interface circuit 12a is a US
B, and the interface circuit 12b
Meets the RS-232 communication standard. Here, the USB standard has two types of categories, a high-speed device and a low-speed device, but it is assumed that a high-speed device is used.

【0021】スイッチSW1、SW2、SW3は、半導
体スイッチ等により構成されている。スイッチSW1、
SW2、SW3は、端子CONT1、CONT2、CO
NT3から印加される電圧が“H”の状態でON、
“L”の状態でOFFの状態となる。
The switches SW1, SW2, and SW3 are constituted by semiconductor switches and the like. Switch SW1,
SW2 and SW3 are terminals CONT1, CONT2, CO
ON when the voltage applied from NT3 is "H",
In the state of “L”, the state is OFF.

【0022】抵抗R1は、信号線21に電圧を供給する
ものであり15kΩとする。抵抗R2、R3は、プルダ
ウン抵抗として機能する。抵抗R4は、USB規格の高
速デバイスを使用するため電圧源VCC、信号線21間
に接続されるもので1.5kΩである。
The resistor R1 supplies a voltage to the signal line 21 and has a resistance of 15 kΩ. The resistors R2 and R3 function as pull-down resistors. The resistor R4 is connected between the voltage source VCC and the signal line 21 to use a USB standard high-speed device, and has a resistance of 1.5 kΩ.

【0023】電圧源VCCの電圧は3.3Vとする。装
置30は、USB規格のインタフェース回路31を搭載
する。インタフェース回路31は、信号の送受信を行う
端子D+、D−を有する。抵抗R5、R6は、USB規
格で規定される抵抗であり、端子D+とグランド間、端
子D−とグランド間に接続され、それぞれ15kΩの抵
抗である。
The voltage of the voltage source VCC is set to 3.3V. The device 30 has a USB standard interface circuit 31 mounted thereon. The interface circuit 31 has terminals D + and D- for transmitting and receiving signals. The resistors R5 and R6 are resistors defined by the USB standard, are connected between the terminal D + and the ground and between the terminal D- and the ground, and each have a resistance of 15 kΩ.

【0024】通信ケーブル20は、インタフェース回路
31の端子D+、D−とスイッチSW1、SW2、SW
3を信号線21、22で接続する。図3の回路は抵抗R
1、R5から構成される。スイッチSW1がONのとき
抵抗R1と抵抗R5は、電圧源VCCとグランド間に直
列に接続される。また、抵抗R1と抵抗R5の接続点は
制御装置11の端子A/D入力へと接続される。
The communication cable 20 is connected to terminals D + and D- of the interface circuit 31 and switches SW1, SW2 and SW.
3 are connected by signal lines 21 and 22. The circuit of FIG.
1, R5. When the switch SW1 is ON, the resistors R1 and R5 are connected in series between the voltage source VCC and the ground. The connection point between the resistors R1 and R5 is connected to a terminal A / D input of the control device 11.

【0025】以下、図2の回路図の動作を説明する。ま
ず、制御装置11は、電子機器10の電源投入と同時に
端子CONT2、CONT3を“L”状態にし、スイッ
チSW2、SW3をOFFにする。制御装置11が動作
し始める前でも端子CONT2、CONT3は抵抗R
2、R3を介してグランドに接続されるので“L”状態
にある。
Hereinafter, the operation of the circuit diagram of FIG. 2 will be described. First, the control device 11 sets the terminals CONT2 and CONT3 to the “L” state and turns off the switches SW2 and SW3 at the same time when the power of the electronic device 10 is turned on. Even before the control device 11 starts operating, the terminals CONT2 and CONT3 have the resistance R
2, since it is connected to the ground via R3, it is in the "L" state.

【0026】続いて端子CONT1を“H”状態にし、
スイッチSW1をONにする。このとき、電子機器10
が、通信ケーブル20を介して、装置30と接続されて
ない場合、端子A/D入力の電圧は、3.3Vとなる。
接続されている場合は、A/D変換器の入力端子は高入
力インピーダンスであるため、抵抗R1と抵抗R5の接
続関係は図3のようになる。このため端子A/D入力の
電圧は、電圧源VCCとグランド間の電圧を抵抗R1、
R5によって分圧された値となり、1.65Vとなる。
Subsequently, the terminal CONT1 is set to the "H" state,
The switch SW1 is turned on. At this time, the electronic device 10
However, when it is not connected to the device 30 via the communication cable 20, the voltage of the terminal A / D input is 3.3V.
If connected, the input terminal of the A / D converter has a high input impedance, and the connection relationship between the resistors R1 and R5 is as shown in FIG. For this reason, the voltage of the terminal A / D input is obtained by connecting the voltage between the voltage source VCC and the ground to the resistor R1,
It becomes a value divided by R5 and becomes 1.65V.

【0027】制御装置11は、端子A/D入力から入力
された電圧をデジタル変換し、3.3Vであれば、装置
30は未接続、1.65VならばUSB規格の装置30
が接続されたと判別する。このとき、ソフトウェアレベ
ルにおけるUSB規格に準拠した通信プロトコルを選択
し実行する。
The control device 11 converts the voltage input from the terminal A / D input into a digital signal. If the voltage is 3.3 V, the device 30 is not connected. If the voltage is 1.65 V, the device 30 conforms to the USB standard.
Is determined to be connected. At this time, a communication protocol conforming to the USB standard at the software level is selected and executed.

【0028】USB規格の装置30が接続されたと判別
した場合、制御装置11は、端子CONT1を“L”状
態にし、スイッチSW1をOFFにする。続いて制御装
置11は、端子CONT2を“H”状態にしスイッチS
W2をONにする。これにより、通信ケーブル20の通
信線は、インタフェース回路12aと接続され、装置3
0と通信を行う。
If it is determined that the USB standard device 30 is connected, the control device 11 sets the terminal CONT1 to the "L" state and turns off the switch SW1. Subsequently, the control device 11 sets the terminal CONT2 to the “H” state and sets the switch S
Turn W2 ON. Thus, the communication line of the communication cable 20 is connected to the interface circuit 12a, and the device 3
Communicates with 0.

【0029】以上の動作により、電子機器10は自動的
に装置30のUSBの通信規格に切替える。また、電子
機器10が備えていない通信規格をもつ装置を接続した
場合でも、電源投入時にスイッチSW2、SW3がOF
Fになるため電子機器10のインタフェース回路12
a、12bの破損を防ぐ。また、装置30を判別した
後、スイッチSW1をOFFにするため、抵抗R1がイ
ンタフェース回路31の端子D+の負荷とならない。
With the above operation, the electronic device 10 automatically switches to the USB communication standard of the device 30. Further, even when a device having a communication standard not provided in the electronic device 10 is connected, the switches SW2 and SW3 are turned off when the power is turned on.
Interface circuit 12 of the electronic device 10
a, 12b is prevented from being damaged. In addition, since the switch SW1 is turned off after the device 30 is determined, the resistor R1 does not load the terminal D + of the interface circuit 31.

【0030】図4は、本発明の電子機器にRS−232
規格の装置が接続された場合を示す回路図で、図5はR
S−232接続時の検出電圧の回路図である。電子機器
10は、図2の電子機器10と同じ構成である。図2と
同様のものには同じ符号を付し、説明を省く。
FIG. 4 is a block diagram showing an electronic device according to the present invention.
FIG. 5 is a circuit diagram showing a case where a standard device is connected, and FIG.
It is a circuit diagram of the detection voltage at the time of S-232 connection. The electronic device 10 has the same configuration as the electronic device 10 in FIG. The same components as those in FIG. 2 are denoted by the same reference numerals, and description thereof will be omitted.

【0031】装置40は、例えばPCで、デジタルカメ
ラと通信するRS−232規格のインタフェース回路4
1を搭載する。インタフェース回路41は、信号の送受
信を行う端子RxD、TxDを有する。また、RS−2
32規格より、端子RxDの入力インピーダンスは、3
k〜7kΩと規定されている。
The device 40 is, for example, a PC, and is an interface circuit 4 of the RS-232 standard for communicating with a digital camera.
1 is mounted. The interface circuit 41 has terminals RxD and TxD for transmitting and receiving signals. Also, RS-2
According to the 32 standard, the input impedance of the terminal RxD is 3
It is specified as k to 7 kΩ.

【0032】通信ケーブル20は、インタフェース回路
41の端子RxD、TxDとスイッチSW1、2、3を
信号線21、22で接続する。図5の回路図は抵抗R
1、インタフェース回路41から構成される。インタフ
ェース回路41の端子RxDは、入力インピーダンスZ
1を有する。端子TxDは省略する。スイッチSW1が
ONのとき電圧源VCCとグランド間に抵抗R1と入力
インピーダンスZ1は直列に接続される。また、抵抗R
1と入力インピーダンスZ1の接続点は制御装置11の
端子A/D入力へと接続される。
The communication cable 20 connects the terminals RxD, TxD of the interface circuit 41 and the switches SW1, SW2, SW3 with signal lines 21, 22. The circuit diagram of FIG.
1. An interface circuit 41 is provided. The terminal RxD of the interface circuit 41 has an input impedance Z
One. The terminal TxD is omitted. When the switch SW1 is ON, the resistor R1 and the input impedance Z1 are connected in series between the voltage source VCC and the ground. The resistance R
1 and the input impedance Z1 are connected to the terminal A / D input of the control device 11.

【0033】以下、図4の回路図の動作を説明する。ま
ず、制御装置11は、端子CONT2、CONT3を
“L”状態にしスイッチSW2、SW3をOFFにす
る。次に、端子CONT1を“H”状態にし、スイッチ
SW1をONにする。
Hereinafter, the operation of the circuit diagram of FIG. 4 will be described. First, the control device 11 sets the terminals CONT2 and CONT3 to the “L” state and turns off the switches SW2 and SW3. Next, the terminal CONT1 is set to the “H” state, and the switch SW1 is turned on.

【0034】このとき、電子機器10が、通信ケーブル
20を介して、装置40と接続されてない場合、端子A
/D入力の電圧は、3.3Vとなる。接続されている場
合は、A/D変換器の入力端子は高入力インピーダンス
であるため、抵抗R1と入力インピーダンスZ1の接続
関係は図5のようになる。端子A/D入力の電圧は、電
圧源VCCとグランド間の電圧を抵抗R1と端子RxD
の入力インピーダンスZ1(3k〜7kΩ)によって分
圧された値となり、0.55〜1.05Vとなる。
At this time, when the electronic device 10 is not connected to the device 40 via the communication cable 20, the terminal A
The voltage at the / D input is 3.3V. When connected, since the input terminal of the A / D converter has a high input impedance, the connection relationship between the resistor R1 and the input impedance Z1 is as shown in FIG. The voltage of the terminal A / D input is obtained by connecting the voltage between the voltage source VCC and the ground to the resistor R1 and the terminal RxD.
Is a value divided by the input impedance Z1 (3 k to 7 kΩ), which is 0.55 to 1.05 V.

【0035】制御装置11は、端子A/D入力から入力
された電圧をデジタル変換し、3.3Vであれば、装置
40は未接続、0.55〜1.05VならばRS−23
2規格の装置40が接続されたと判別する。このとき、
ソフトウェアレベルにおけるRS−232規格に準拠し
た通信プロトコルを選択し実行する。
The control device 11 converts the voltage input from the terminal A / D input into a digital signal. If the voltage is 3.3 V, the device 40 is not connected.
It is determined that the two-standard device 40 is connected. At this time,
A communication protocol conforming to the RS-232 standard at the software level is selected and executed.

【0036】RS−232規格の装置40が接続された
と判別した場合制御装置11は、端子CONT1を
“L”状態にし、スイッチSW1はOFFとする。続い
て、制御装置11は、端子CONT3を“H”状態に
し、スイッチSW3をONにする。これにより、通信ケ
ーブル20の通信線は、インタフェース回路12bと接
続され、装置40と通信を行う。
When it is determined that the RS-232 standard device 40 is connected, the control device 11 sets the terminal CONT1 to the "L" state, and turns off the switch SW1. Subsequently, the control device 11 sets the terminal CONT3 to the “H” state and turns on the switch SW3. Thus, the communication line of the communication cable 20 is connected to the interface circuit 12b, and communicates with the device 40.

【0037】以上の動作により、電子機器10は自動的
に装置40のRS−232の通信規格に切替える。ま
た、電子機器10が備えていない通信規格をもつ装置を
接続した場合でも、電源投入時にスイッチSW2、SW
3がOFFになるため電子機器10のインタフェース回
路12a、12bの破損を防ぐ。また、装置40を判別
した後、スイッチSW1をOFFにするため、抵抗R1
がインタフェース回路41の端子RxDの負荷とならな
い。
With the above operation, the electronic device 10 automatically switches to the RS-232 communication standard of the device 40. Further, even when a device having a communication standard not provided in the electronic device 10 is connected, the switches SW2, SW
Since 3 is turned off, the interface circuits 12a and 12b of the electronic device 10 are prevented from being damaged. After the device 40 is determined, the switch R1 is turned off.
Does not load the terminal RxD of the interface circuit 41.

【0038】図6は接続された装置と端子A/D入力の
電圧の関係を示した図である。電子機器10と装置3
0、40が未接続の場合の端子A/D入力の電圧は3.
3Vである。
FIG. 6 is a diagram showing the relationship between the connected device and the voltage of the terminal A / D input. Electronic equipment 10 and device 3
The voltage of the terminal A / D input when 0 and 40 are not connected is 3.
3V.

【0039】装置30が接続されている場合の端子A/
D入力の電圧は1.65Vである。装置40が接続され
ている場合の端子A/D入力の電圧は0.55〜1.0
5Vである。
The terminal A / when the device 30 is connected
The voltage at the D input is 1.65V. When the device 40 is connected, the voltage of the terminal A / D input is 0.55 to 1.0.
5V.

【0040】このようにインピーダンスの違いが電圧と
して検出でき、その値の違いにより接続の有無、およ
び、USB規格、RS−232規格の装置が接続されて
いるかを判別する。また制御装置11において、端子A
/D入力の電圧が1.3V未満ならば装置40の接続、
1.3V以上〜2.0V未満ならば装置30の接続、
2.0V以上ならば未接続と閾値を設定することにより
判別することも可能となる。
As described above, the difference in impedance can be detected as a voltage. Based on the difference in the value, it is determined whether or not there is a connection, and whether or not a USB standard or RS-232 standard device is connected. In the control device 11, the terminal A
If the voltage at the / D input is less than 1.3V, connect the device 40;
If the voltage is 1.3 V or more and less than 2.0 V, connect the device 30;
If it is 2.0 V or more, it is possible to determine that the connection is not established by setting a threshold value.

【0041】図7に制御装置の動作手順を示す。電子機
器10に電源が投入されると(S61)、制御装置11
は端子CONT2、CONT3を“L”の状態にし(S
62)、スイッチSW2、SW3をOFFにする。
FIG. 7 shows an operation procedure of the control device. When the electronic device 10 is turned on (S61), the control device 11
Sets the terminals CONT2 and CONT3 to the “L” state (S
62), switches SW2 and SW3 are turned off.

【0042】続いて制御装置11は、端子CONT1を
“H”の状態にし(S63)、スイッチSW1をONに
する。そこで制御装置11は、端子A/D入力の電圧を
デジタル信号で検出し(S64)、検出した電圧値によ
り、装置の通信規格を判別する。1.3V未満のとき
は、端子CONT1を“L”状態にし(S65)、スイ
ッチSW1をOFFにする。
Subsequently, the control device 11 sets the terminal CONT1 to "H" (S63), and turns on the switch SW1. Therefore, the control device 11 detects the voltage of the terminal A / D input as a digital signal (S64), and determines the communication standard of the device based on the detected voltage value. If the voltage is less than 1.3 V, the terminal CONT1 is set to the "L" state (S65), and the switch SW1 is turned off.

【0043】続いて制御装置11は、端子CONT3を
“H”状態にし(S66)、スイッチSW3をONにし
て終了する(S69)。一方、端子A/D入力の電圧が
1.3V以上2.0V未満の場合は、制御装置11は、
端子CONT1を“L”状態にし(S67)、スイッチ
SW1をOFFにする。
Subsequently, the control device 11 sets the terminal CONT3 to the "H" state (S66), turns on the switch SW3, and terminates (S69). On the other hand, when the voltage of the terminal A / D input is 1.3 V or more and less than 2.0 V, the control device 11
The terminal CONT1 is set to the “L” state (S67), and the switch SW1 is turned off.

【0044】続いて制御装置11は、CONT2を
“H”状態にし(S68)、スイッチSW2をONにし
て終了する(S69)。一方、端子A/D入力の電圧が
2.0V以上の場合は、端子A/D入力の電圧を検出す
る(S64)。
Subsequently, the controller 11 sets the CONT2 to the "H" state (S68), turns on the switch SW2, and terminates (S69). On the other hand, when the voltage of the terminal A / D input is 2.0 V or more, the voltage of the terminal A / D input is detected (S64).

【0045】このように、端子A/D入力の電圧が1.
3V未満の場合(S65)RS−232規格の装置40
の接続、1.3V以上〜2.0V未満の場合(S67)
USB規格の装置30の接続、2.0V以上の場合(S
64)未接続と閾値を設定することにより判別すること
もできる。
As described above, when the voltage of the terminal A / D input is 1.
If less than 3 V (S65): RS-232 standard device 40
Connection, 1.3V or more and less than 2.0V (S67)
USB device 30 connection, 2.0 V or more (S
64) It can also be determined by setting a threshold value as not connected.

【0046】また制御装置11は、端子A/D入力の電
圧により通信規格を判別したとき(S64)、ソフトウ
ェアレベルにおける各通信規格に準拠したプロトコルを
選択し実行する。
When the control device 11 determines the communication standard based on the voltage of the terminal A / D input (S64), it selects and executes a protocol conforming to each communication standard at the software level.

【0047】上記本発明の実施の形態の一例について本
発明はデジタルカメラとしたが、本発明はPCのその他
周辺機器、例えばPCのキーボードなどであってもよ
く、これらに限るものではない。
Although the present invention is a digital camera for an example of the embodiment of the present invention, the present invention may be other peripheral devices of a PC, for example, a keyboard of the PC, but is not limited to these.

【0048】また電圧源VCCを3.3V、抵抗R1を
15kΩとしたがこの値に限定されるものではない。ま
た電子機器10は、USB、RS−232の通信規格を
満たすインタフェース回路のみ搭載しているが、他の規
格のインタフェース回路を搭載することにより単一の電
子機器でさらに複数の通信規格に対応することが可能と
なる。
Although the voltage source VCC is set to 3.3 V and the resistor R1 is set to 15 kΩ, the values are not limited to these values. Further, the electronic device 10 has only an interface circuit that satisfies the communication standards of USB and RS-232, but a single electronic device can further support a plurality of communication standards by mounting an interface circuit of another standard. It becomes possible.

【0049】また、2つのインタフェース回路を用いて
説明したが、3つ以上のインタフェース回路を搭載して
もよい。さらに、閾値は、前述した値に限定されるもの
ではない。
Although the description has been made using two interface circuits, three or more interface circuits may be mounted. Further, the threshold value is not limited to the value described above.

【0050】以上から他の機器の通信規格を自動的に認
識し、複数の通信規格に対応することができ、容易に接
続を行うことができる。また、複数の装置と通信可能と
なるため、接続相手の装置の制限が少なくなる。
As described above, the communication standard of another device is automatically recognized, a plurality of communication standards can be supported, and connection can be easily performed. In addition, since communication with a plurality of devices becomes possible, restrictions on devices to be connected are reduced.

【0051】また、たとえば2個のコネクタを用いて2
種類の通信規格に対応する場合と比較すると、コネクタ
がひとつで済むことにより、機器サイズおよびコストの
低減を図ることができる。
Also, for example, using two connectors,
Compared to the case of supporting various types of communication standards, only one connector is required, so that the device size and cost can be reduced.

【0052】また、わずかな回路を追加するだけで既存
の機器と上位互換を保ったまま、数種類の通信仕様に対
応した製品を開発することが可能である。従って、少な
い開発コストで済み、開発スピードも短縮することがで
きる。
Further, it is possible to develop a product corresponding to several kinds of communication specifications while maintaining upward compatibility with existing equipment by adding only a few circuits. Therefore, the development cost can be reduced and the development speed can be reduced.

【0053】さらに、コネクタのピン数を必要最小限に
できることから、コネクタの大きさを小型化することが
できる。その結果、電子機器のサイズやケーブルのサイ
ズを小型化すると共に、ローコスト化に貢献することが
できる。
Further, since the number of pins of the connector can be minimized, the size of the connector can be reduced. As a result, the size of the electronic device and the size of the cable can be reduced, and the cost can be reduced.

【0054】[0054]

【発明の効果】以上説明したように本発明では、接続先
の装置のインタフェースを検出し、インタフェース回路
の接続を切替えるので、手動で対応するインタフェース
回路に接続することなく、接続先の装置と通信を行うこ
とができる。
As described above, according to the present invention, since the interface of the connected device is detected and the connection of the interface circuit is switched, the communication with the connected device can be performed without manually connecting to the corresponding interface circuit. It can be performed.

【0055】また、特別の通信ケーブルを必要とせず通
信を行うことができる。
Further, communication can be performed without requiring a special communication cable.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の電子機器の動作原理を説明する原理図
である。
FIG. 1 is a principle diagram illustrating an operation principle of an electronic device of the present invention.

【図2】電子機器にUSB規格の装置が接続された場合
を示す回路図である。
FIG. 2 is a circuit diagram illustrating a case where a USB standard device is connected to the electronic apparatus.

【図3】USB接続時の検出電圧の回路図である。FIG. 3 is a circuit diagram of a detection voltage at the time of USB connection.

【図4】電子機器にRS−232規格の装置が接続され
た場合を示す回路図である。
FIG. 4 is a circuit diagram showing a case where an RS-232 standard device is connected to the electronic apparatus.

【図5】RS−232接続時の検出電圧の回路図であ
る。
FIG. 5 is a circuit diagram of a detection voltage when RS-232 is connected.

【図6】接続された装置と端子A/D入力の電圧の関係
を示す図である。
FIG. 6 is a diagram illustrating a relationship between a connected device and a voltage of a terminal A / D input.

【図7】制御装置の動作手順を示す図である。FIG. 7 is a diagram showing an operation procedure of the control device.

【符号の説明】[Explanation of symbols]

1…電子機器、1a…検出手段、1b…切替え手段、1
c…選択手段、1d、1e…インタフェース回路、2…
通信ケーブル、3…装置、3a…インタフェース、10
…電子機器、11…制御装置、12a、12b…インタ
フェース回路、20…通信ケーブル、21、22…信号
線、30…装置、31…インタフェース回路、40…装
置、41…インタフェース回路
DESCRIPTION OF SYMBOLS 1 ... Electronic equipment, 1a ... Detection means, 1b ... Switching means, 1
c: selection means, 1d, 1e: interface circuit, 2 ...
Communication cable, 3 ... device, 3a ... interface, 10
... Electronic equipment, 11 ... Control device, 12a, 12b ... Interface circuit, 20 ... Communication cable, 21, 22 ... Signal line, 30 ... Device, 31 ... Interface circuit, 40 ... Device, 41 ... Interface circuit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 異なる仕様のインタフェースに接続でき
る電子機器において、 接続先の装置のインタフェースを検出する検出手段と、 前記インタフェースに対応したインタフェース回路と、 前記検出手段により検出した前記インタフェースの仕様
に対応して、前記インタフェース回路との接続を切替え
る切替え手段と、 前記インタフェース回路に対応する通信プロトコルと、 前記検出手段により検出した前記インタフェースの仕様
に対応して、前記通信プロトコルを選択する選択手段
と、 を有することを特徴とする電子機器。
1. An electronic device which can be connected to an interface having a different specification, a detection unit for detecting an interface of a device to be connected, an interface circuit corresponding to the interface, and a specification for the interface detected by the detection unit. Switching means for switching connection with the interface circuit; a communication protocol corresponding to the interface circuit; and a selection means for selecting the communication protocol in accordance with the specification of the interface detected by the detection means. An electronic device comprising:
【請求項2】 前記検出手段は接続先の装置と通信ケー
ブルで接続し、前記通信ケーブルの信号線とグランド線
との間のインピーダンスを検出するインピーダンス検出
手段を有することを特徴とする請求項1記載の電子機
器。
2. The apparatus according to claim 1, wherein said detecting means is connected to a device to be connected by a communication cable, and has impedance detecting means for detecting an impedance between a signal line and a ground line of said communication cable. Electronic device as described.
【請求項3】 前記インピーダンス検出手段は、 電圧源から抵抗を介して電圧を前記信号線に与える電圧
供給手段と、 前記信号線のインピーダンスの値に応じて変化する前記
信号線の電圧をデジタル信号に変換する制御装置と、 を有することを特徴とする請求項2記載の電子機器。
3. The impedance detection unit includes: a voltage supply unit that applies a voltage from a voltage source via a resistor to the signal line; and a digital signal that changes a voltage of the signal line according to an impedance value of the signal line. The electronic device according to claim 2, further comprising: a control device configured to convert the data into:
【請求項4】 前記インタフェースは、一方はUSBの
通信規格で他方はRS−232の通信規格であることを
特徴とする請求項1の電子機器。
4. The electronic device according to claim 1, wherein one of the interfaces is a USB communication standard and the other is an RS-232 communication standard.
JP2001092253A 2001-03-28 2001-03-28 Electronic device Pending JP2002290490A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001092253A JP2002290490A (en) 2001-03-28 2001-03-28 Electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001092253A JP2002290490A (en) 2001-03-28 2001-03-28 Electronic device

Publications (1)

Publication Number Publication Date
JP2002290490A true JP2002290490A (en) 2002-10-04

Family

ID=18946752

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001092253A Pending JP2002290490A (en) 2001-03-28 2001-03-28 Electronic device

Country Status (1)

Country Link
JP (1) JP2002290490A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008529352A (en) * 2005-01-25 2008-07-31 リニアー テクノロジー コーポレイション Dual-mode detection of power-receiving equipment in Power over Ethernet (registered trademark) system
JP2008529350A (en) * 2005-01-25 2008-07-31 リニアー テクノロジー コーポレイション Identifying network interface cards from a short-circuit condition in a Power over Ethernet system
JP2010119082A (en) * 2008-11-11 2010-05-27 Ic Plus Corp Network transmitting apparatus and power saving method thereof
JP2014115756A (en) * 2012-12-07 2014-06-26 Tamagawa Seiki Co Ltd Communication method selection circuit, and method of the same
JPWO2014087844A1 (en) * 2012-12-06 2017-01-05 コニカミノルタ株式会社 Pulse oximetry system, subsystem for its construction and communication converter
JP2017009204A (en) * 2015-06-23 2017-01-12 三菱電機株式会社 Air conditioner, air conditioning system, and communication method
JP2017112408A (en) * 2015-12-14 2017-06-22 株式会社テイエルブイ Relay device between devices having communication systems different from each other, and control method in relay device
JP2017163317A (en) * 2016-03-09 2017-09-14 三菱電機株式会社 Air conditioner and communication method
US10235184B2 (en) 2013-12-11 2019-03-19 Corning Optical Communications LLC Boot loader for active cable assemblies
CN110573926A (en) * 2017-04-28 2019-12-13 莱卡微系统Cms有限责任公司 Programmable microscope control unit with a disposable connection, microscope system with a microscope control unit, and method for operating a microscope control unit

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008529350A (en) * 2005-01-25 2008-07-31 リニアー テクノロジー コーポレイション Identifying network interface cards from a short-circuit condition in a Power over Ethernet system
JP2008529352A (en) * 2005-01-25 2008-07-31 リニアー テクノロジー コーポレイション Dual-mode detection of power-receiving equipment in Power over Ethernet (registered trademark) system
JP2010119082A (en) * 2008-11-11 2010-05-27 Ic Plus Corp Network transmitting apparatus and power saving method thereof
JPWO2014087844A1 (en) * 2012-12-06 2017-01-05 コニカミノルタ株式会社 Pulse oximetry system, subsystem for its construction and communication converter
JP2014115756A (en) * 2012-12-07 2014-06-26 Tamagawa Seiki Co Ltd Communication method selection circuit, and method of the same
US10235184B2 (en) 2013-12-11 2019-03-19 Corning Optical Communications LLC Boot loader for active cable assemblies
US10817306B2 (en) 2013-12-11 2020-10-27 Corning Optical Communications LLC Boot loader for active cable assemblies
JP2017009204A (en) * 2015-06-23 2017-01-12 三菱電機株式会社 Air conditioner, air conditioning system, and communication method
JP2017112408A (en) * 2015-12-14 2017-06-22 株式会社テイエルブイ Relay device between devices having communication systems different from each other, and control method in relay device
JP2017163317A (en) * 2016-03-09 2017-09-14 三菱電機株式会社 Air conditioner and communication method
CN110573926A (en) * 2017-04-28 2019-12-13 莱卡微系统Cms有限责任公司 Programmable microscope control unit with a disposable connection, microscope system with a microscope control unit, and method for operating a microscope control unit
JP2020518027A (en) * 2017-04-28 2020-06-18 ライカ マイクロシステムズ シーエムエス ゲゼルシャフト ミット ベシュレンクテル ハフツングLeica Microsystems CMS GmbH Programmable microscope control unit with freely usable connections, microscope system with microscope control unit and method of operating microscope control unit
US11550137B2 (en) 2017-04-28 2023-01-10 Leica Microsystems Cms Gmbh Programmable microscope control unit having freely usable connections, microscope system having a microscope control unit, and method for operating a microscope control unit

Similar Documents

Publication Publication Date Title
US7502949B2 (en) Data cable for automatically detecting power source with charger integrated circuit
US5935224A (en) Method and apparatus for adaptively coupling an external peripheral device to either a universal serial bus port on a computer or hub or a game port on a computer
US7293124B2 (en) Storage device with parallel interface connector
US7298765B2 (en) System and method for multiplexing digital and analog signals using a single electrical connector
US5909464A (en) Serial communications interface that supports multiple interface standards
US7085876B2 (en) USB controlling apparatus for data transfer between computers and method for the same
US5774741A (en) Portable computer having a port connector for communicating with a variety of optional extension modules
EP1771020B1 (en) Communication interface for an electric device
US20020169915A1 (en) USB connection-detection circuitry and operation methods of the same
JP3610424B2 (en) Electronic equipment and interface circuit
JP2002341982A (en) Universal serial bus circuit
JP2002290490A (en) Electronic device
US20050091437A1 (en) Multi-function universal serial bus wireless bridge
JP2003263253A (en) Usb device
JP2002116853A (en) Usb mounted electronic equipment and use cable to be used therefor
JP2002073219A (en) Interface device equipped with part for supplying power to external device and method for supplying power to external device
JPH01205222A (en) Connector sharing device
US6904478B2 (en) Transceiver interface reduction
US20010016890A1 (en) Interface distinguishing apparatus
JP2001306413A (en) Usb communication device
US7243269B2 (en) Electronic device
EP1636598B1 (en) Apparatus and method for sensing emulator cable orientation while providing signal drive capability
JP2001177543A (en) Device and system for bus connection
JP4547722B2 (en) Connection cables between devices according to different interface standards
JPH06309071A (en) Power saving circuit