JP2018005807A - Electronic apparatus - Google Patents
Electronic apparatus Download PDFInfo
- Publication number
- JP2018005807A JP2018005807A JP2016135725A JP2016135725A JP2018005807A JP 2018005807 A JP2018005807 A JP 2018005807A JP 2016135725 A JP2016135725 A JP 2016135725A JP 2016135725 A JP2016135725 A JP 2016135725A JP 2018005807 A JP2018005807 A JP 2018005807A
- Authority
- JP
- Japan
- Prior art keywords
- usb
- connector
- voltage
- attached
- 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
Links
Images
Landscapes
- Details Of Connecting Devices For Male And Female Coupling (AREA)
- Power Sources (AREA)
Abstract
Description
本発明は、電子機器に関し、特に、コントローラー(例えば、USBホストコントローラー)への電源供給を完全に停止した状態であっても、デバイス(例えば、USBデバイス)のコネクタへの装着を検出できる電子機器に関する。 The present invention relates to an electronic device, and in particular, an electronic device that can detect attachment of a device (for example, a USB device) to a connector even when power supply to a controller (for example, a USB host controller) is completely stopped. About.
従来、USBデバイスが着脱可能に装着されるコネクタと、当該コネクタに装着(接続)されたUSBデバイスとの間でデータの送受信等を行うUSBホストコントローラーと、を備え、コネクタにUSBデバイスが装着されていない場合、USBホストコントローラーの機能を停止する電子機器が存在する(例えば、特許文献1参照)。 2. Description of the Related Art Conventionally, a USB device is provided with a connector to which a USB device is detachably attached and a USB host controller that transmits and receives data between the USB device that is attached (connected) to the connector. If not, there is an electronic device that stops the function of the USB host controller (see, for example, Patent Document 1).
しかしながら、上記従来の電子機器においては、USBデバイスのコネクタへの装着を検出するため、USBホストコントローラーがD+/D−信号の変化を検出しなければならならず、これを実現するため、USBホストコントローラーへの電源供給を完全に停止することができないという課題がある。 However, in the above-described conventional electronic device, in order to detect the attachment of the USB device to the connector, the USB host controller must detect a change in the D + / D− signal. There is a problem that power supply to the host controller cannot be completely stopped.
本発明は、上記事情に鑑みてなされたものであり、コントローラー(例えば、USBホストコントローラー)への電源供給を完全に停止した状態であっても、デバイス(例えば、USBデバイス)のコネクタへの装着を検出できる電子機器を提供することを目的とする。 The present invention has been made in view of the above circumstances, and even when the power supply to a controller (for example, a USB host controller) is completely stopped, the device (for example, a USB device) is attached to a connector. It is an object of the present invention to provide an electronic device that can detect the above.
上記目的を達成するために、本発明の一つの側面は、デバイスが着脱可能に装着されるコネクタと、前記デバイスが装着された際にONとなり、前記デバイスが取り外された際にOFFとなるメカニカルスイッチと、前記メカニカルスイッチのON/OFFによって変化する電圧ラインの電圧状態を監視する電圧監視部と、前記電圧監視部によって監視される前記電圧ラインの電圧状態に基づき、前記デバイスが前記コネクタに装着されたか否かを判定するデバイス装着判定部と、を備えたことを特徴とする。 In order to achieve the above object, one aspect of the present invention includes a connector to which a device is detachably attached, and a mechanical that is turned on when the device is attached and turned off when the device is removed. A switch, a voltage monitoring unit that monitors a voltage state of a voltage line that changes depending on ON / OFF of the mechanical switch, and the device is attached to the connector based on the voltage state of the voltage line monitored by the voltage monitoring unit And a device attachment determining unit that determines whether or not the device has been used.
この側面によれば、コントローラー(例えば、USBホストコントローラー)への電源供給を完全に停止した状態であっても、デバイス(例えば、USBデバイス)のコネクタへの装着を検出できる電子機器を提供することができる。 According to this aspect, it is possible to provide an electronic device that can detect attachment of a device (for example, a USB device) to a connector even when power supply to the controller (for example, a USB host controller) is completely stopped. Can do.
これは、デバイスがコネクタに装着されたか否かを、コントローラーではなく、デバイス装着判定部が、電圧監視部によって監視される電圧ラインの電圧状態に基づき判定(検出)することによるものである。 This is because whether the device is mounted on the connector is determined (detected) by the device mounting determination unit, not the controller, based on the voltage state of the voltage line monitored by the voltage monitoring unit.
また、上記発明において、好ましい態様は、前記コネクタに装着された前記デバイスとの間で通信を行うコントローラーと、前記デバイス装着判定部によって前記デバイスが前記コネクタに装着されたと判定された場合、前記コントローラーに電源供給し、前記デバイス装着判定部によって前記デバイスが前記コネクタに装着されていないと判定された場
合、前記コントローラーへの電源供給を停止する電源制御部と、をさらに備えたことを特徴とする。
Further, in the above invention, a preferable aspect is that a controller that communicates with the device mounted on the connector and the controller when the device mounting determination unit determines that the device is mounted on the connector. And a power control unit that stops power supply to the controller when the device mounting determination unit determines that the device is not mounted on the connector. .
この態様によれば、次の効果を奏することができる。 According to this aspect, the following effects can be achieved.
第1に、デバイス装着判定部によってデバイスがコネクタに装着されていないと判定された場合、電源制御部の作用により、コントローラーへの電源供給を完全に停止することができる。 First, when the device mounting determination unit determines that the device is not mounted on the connector, the power supply to the controller can be completely stopped by the action of the power control unit.
第2に、コントローラーへの電源供給を完全に停止した状態であっても、デバイス装着判定部の作用により、デバイスがコネクタに装着されたか否かを判定(検出)することができる。 Second, even when the power supply to the controller is completely stopped, it is possible to determine (detect) whether or not the device is mounted on the connector by the action of the device mounting determination unit.
第3に、デバイス装着判定部によってデバイスがコネクタに装着されたと判定された場合、電源制御部の作用により、コントローラーに電源供給することができる。これにより、コントローラーを起動させて、コネクタに装着されたデバイスとの間で通信を行うことができる。 Third, when the device attachment determination unit determines that the device is attached to the connector, power can be supplied to the controller by the action of the power supply control unit. As a result, the controller can be activated to communicate with the device attached to the connector.
第4に、デバイスがコネクタに装着されていない場合、上記のようにコントローラーへの電源供給を完全に停止することができるため、コントローラーへの電源供給を完全に停止することができない従来技術と比べ、省電力を実現することができる。 Fourth, when the device is not attached to the connector, the power supply to the controller can be completely stopped as described above, so compared to the conventional technology in which the power supply to the controller cannot be completely stopped. Power saving can be realized.
また、上記発明において、好ましい態様は、前記メカニカルスイッチは、第1端子、及び第2端子を含み、前記デバイスが前記コネクタに装着された際に前記デバイスの一部が当該メカニカルスイッチに当接して前記第1端子と前記第2端子とが導通することでONとなり、一方、前記デバイスが前記コネクタから取り外された際に当該当接が解除されて前記第1端子と前記第2端子とが導通しなくなることでOFFとなる位置に設けられ、前記メカニカルスイッチの前記第1端子は、前記電圧ラインを介して前記電圧監視部に電気的に接続されており、前記メカニカルスイッチの前記第2端子は、グランドに電気的に接続されていることを特徴とする。 In the above invention, a preferred aspect is that the mechanical switch includes a first terminal and a second terminal, and when the device is attached to the connector, a part of the device comes into contact with the mechanical switch. The first terminal and the second terminal are turned on when they are conducted. On the other hand, when the device is detached from the connector, the contact is released and the first terminal and the second terminal are conducted. The first terminal of the mechanical switch is electrically connected to the voltage monitoring unit via the voltage line, and the second terminal of the mechanical switch is And electrically connected to the ground.
この態様によれば、デバイスがコネクタに装着されていない場合と装着された場合とで、電圧ラインの電圧状態を異ならせることができる。したがって、電圧監視部によって監視される電圧ラインの電圧状態に基づき、デバイスがコネクタに装着されたか否かを判定(検出)することができる。 According to this aspect, the voltage state of the voltage line can be made different between when the device is not attached to the connector and when the device is attached. Therefore, it is possible to determine (detect) whether or not the device is attached to the connector based on the voltage state of the voltage line monitored by the voltage monitoring unit.
また、上記発明において、好ましい態様は、前記デバイスは、USBデバイスであり、前記コントローラーは、USBホストコントローラーであることを特徴とする。 In the above invention, a preferred aspect is characterized in that the device is a USB device and the controller is a USB host controller.
この態様によれば、USBホストコントローラーへの電源供給を完全に停止した状態であっても、USBデバイスのコネクタへの装着を検出できる電子機器を提供することができる。 According to this aspect, it is possible to provide an electronic device that can detect the attachment of the USB device to the connector even when the power supply to the USB host controller is completely stopped.
また、上記発明において、好ましい態様は、前記電圧ラインの電圧をプルアップする回路をさらに備えたことを特徴とする。 In the above invention, a preferred aspect is further characterized by further comprising a circuit for pulling up the voltage of the voltage line.
この態様によれば、デバイスがコネクタに装着されていない場合と装着された場合とで、電圧ラインの電圧状態を異ならせることができる。したがって、電圧監視部によって監視される電圧ラインの電圧状態に基づき、デバイスがコネクタに装着されたか否かを判定することができる。 According to this aspect, the voltage state of the voltage line can be made different between when the device is not attached to the connector and when the device is attached. Therefore, based on the voltage state of the voltage line monitored by the voltage monitoring unit, it can be determined whether or not the device is attached to the connector.
また、上記発明において、好ましい態様は、前記メカニカルスイッチは、前記コネクタの両側にそれぞれ配置されていることを特徴とする。 In the above invention, a preferred aspect is characterized in that the mechanical switches are arranged on both sides of the connector.
この態様によれば、電圧監視部によって監視される電圧ラインの電圧状態に基づき、デバイスがコネクタに正しく装着されているか否かを判定することができる。 According to this aspect, it is possible to determine whether or not the device is correctly attached to the connector based on the voltage state of the voltage line monitored by the voltage monitoring unit.
また、上記発明において、好ましい態様は、前記電子機器は、印刷装置であることを特徴とする。 In the above invention, a preferred embodiment is characterized in that the electronic device is a printing apparatus.
この態様によれば、コントローラー(例えば、USBホストコントローラー)への電源供給を完全に停止した状態であっても、デバイス(例えば、USBデバイス)のコネクタへの装着を検出できる印刷装置を提供することができる。 According to this aspect, it is possible to provide a printing apparatus that can detect attachment of a device (for example, a USB device) to a connector even when power supply to the controller (for example, a USB host controller) is completely stopped. Can do.
以下、本発明の電子機器を適用したプリンター10について添付図面を参照しながら説明する。各図において対応する構成要素には同一の符号が付され、重複する説明は省略される。
Hereinafter, a
図1は、プリンター10の概略構成図である。図2は、USBデバイス20がUSBコネクタ30に装着されたプリンター10の例である。
FIG. 1 is a schematic configuration diagram of the
図1に示すように、本実施形態のプリンター10は、ハード構成として、USBデバイス20(デバイス)が着脱可能に装着されるUSBコネクタ30(コネクタ)、制御部40、メカニカルスイッチ50等を備える。なお、プリンター10は、実際には印刷機構等も備えているが、各図では省略されている。
As shown in FIG. 1, the
USBデバイス20は、例えば、USBメモリーで、デバイス側金属シェル22、デバイス側端子24a〜24d等を備えている。デバイス側金属シェル22とデバイス側端子24d(4番ピン)とは、電気的に接続されていてもよいし、接続されていなくてもよい。
The
USBコネクタ30は、USBデバイス20が着脱可能に装着される一般的なUSBコネクタで、ホスト側金属シェル32、ホスト側端子34a〜34d等を備える。
The
USBデバイス20は、ホスト側端子34a〜34dとデバイス側端子24a〜24dとがそれぞれ電気的に接続され、かつ、ホスト側金属シェル32とデバイス側金属シェル22とが電気的に接続された状態で、USBコネクタ30に装着される。
In the
ホスト側端子34aは、VBUSラインL1に電気的に接続されている。ホスト側端子
34bは、D+ラインL2に電気的に接続されている。D+ラインL2は、ホスト側端子34bとUSBホストコントローラー44とを電気的に接続している。ホスト側端子34cは、D−ラインL3に電気的に接続されている。D−ラインL3は、ホスト側端子34cとUSBホストコントローラー44とを電気的に接続している。ホスト側端子34dは、GNDラインL4を介してグランドに電気的に接続されている。
The
メカニカルスイッチ50は、第1端子50a、及び第2端子50bを含むスイッチで、例えば、マイクロスイッチによって構成される。メカニカルスイッチ50は、USBコネクタ30の近傍、又はUSBコネクタ30内部に設けられる。具体的には、メカニカルスイッチ50は、USBデバイス20がUSBコネクタ30に装着された際に当該USBデバイス20の一部がメカニカルスイッチ50に当接して第1端子50aと第2端子50bとが導通することでONとなり(図2参照)、一方、USBデバイス20がUSBコネクタ30から取り外された際に当該当接が解除されて第1端子50aと第2端子50bとが導通しなくなることでOFFとなる(図1参照)位置に設けられる。
The
メカニカルスイッチ50の第1端子50aは、電圧ラインL5を介して監視ポート42(及び電圧監視部40a)に電気的に接続されている。また、メカニカルスイッチ50の第2端子50bは、GNDラインL6を介してグランドに電気的に接続されている。
The
電圧ラインL5には、プルアップ抵抗R(電圧ラインL5の電圧をプルアップする回路)が接続されている。したがって、USBコネクタ30にUSBデバイス20が装着されていない場合(図1参照)、電圧ラインL5の電圧は、プルアップ抵抗RによってプルアップされてHレベル(例えば、3.3V)となる。
A pull-up resistor R (a circuit that pulls up the voltage of the voltage line L5) is connected to the voltage line L5. Therefore, when the
一方、USBコネクタ30にUSBデバイス20が装着された場合(図2参照)、電圧ラインL5の電圧は、Lレベル(例えば、0V)となる。これは、USBコネクタ30にUSBデバイス20が装着された場合、当該USBデバイス20の一部がメカニカルスイッチ50に当接して第1端子50aと第2端子50bとが導通することでONとなり(図2参照)、電圧ラインL5がグランドに電気的に接続されることによるものである。
On the other hand, when the
制御部40は、監視ポート42、USBホストコントローラー44(コントローラー)、さらに、図示しないが、CPU、RAM、ROM等が一つの半導体チップ上に集積(実装)されたSoC(System-On-a-Chip)によって構成される。
The
監視ポート42は、割り込み検出が可能なポートで、これに電気的に接続された電圧ラインL5の電圧状態を監視するために用いられる。
The
USBホストコントローラー44は、USBコネクタ30に装着されたUSBデバイス20との間で、D+ラインL2及びD−ラインL3を介して通信を行う。USBホストコントローラー44は、後述の電源制御部40cによって電源(電力)供給され、又は電源(電力)供給が完全に停止される。
The
図1に示すように、プリンター10は、機能構成として、電圧監視部40a、デバイス装着判定部40b、電源制御部40c等を備える。電圧監視部40a、デバイス装着判定部40b、及び電源制御部40cは、制御部40(CPU)が制御プログラム(ファームウエア)を実行することによって実現される。
As shown in FIG. 1, the
電圧監視部40aは、メカニカルスイッチ50のON/OFFによって変化する、監視ポート42に入力される電圧ラインL5の電圧状態を監視する。
The
デバイス装着判定部40bは、電圧監視部40aによって監視される電圧ラインL5の電圧状態に基づき、USBデバイス20がUSBコネクタ30に装着されたか否かを判定する。
The device
上記のように、USBコネクタ30にUSBデバイス20が装着されていない場合(図1参照)、電圧ラインL5の電圧は、プルアップ抵抗RによってプルアップされてHレベル(例えば、3.3V)となる。一方、USBコネクタ30にUSBデバイス20が装着された場合(図2参照)、電圧ラインL5がグランドに電気的に接続されるため、電圧ラインL5の電圧は、Lレベル(例えば、0V)となる。このように、USBデバイス20がUSBコネクタ30に装着されていない場合と装着された場合とで、電圧ラインL5の電圧状態は異なる。
As described above, when the
以上のように、メカニカルスイッチ50のON/OFFにより、監視ポート42に入力される電圧ラインL5の電圧が変化するため、電圧監視部40aによって監視される電圧ラインL5の電圧状態に基づき、USBデバイス20がUSBコネクタ30に装着(接続)されたか否かを判定(検出)することができる。
As described above, since the voltage of the voltage line L5 input to the
電源制御部40cは、デバイス装着判定部40bによってUSBデバイス20がUSBコネクタ30に装着されたと判定された場合、USBホストコントローラー44に電源供給する。一方、電源制御部40cは、デバイス装着判定部40bによってUSBデバイス20がUSBコネクタ30に装着されていないと判定された場合、USBホストコントローラー44への電源供給を完全に停止する。
The power
次に、本実施形態のプリンター10の動作の一例について図3を参照しながら説明する。
Next, an example of the operation of the
図3は、本実施形態のプリンター10の動作の一例を説明するためのフローチャートである。
FIG. 3 is a flowchart for explaining an example of the operation of the
以下の処理は、主に、制御部40(CPU)が制御プログラム(ファームウエア)を実行することによって実現される。 The following processing is mainly realized by the control unit 40 (CPU) executing a control program (firmware).
まず、プリンター10の電源スイッチ(図示せず)がオンされると、制御部40が起動する(ステップS10)。
First, when a power switch (not shown) of the
次に、電圧監視部40aが、監視ポート42に入力される電圧ラインL5の電圧状態を監視する(ステップS12)。
Next, the
次に、デバイス装着判定部40bが、電圧監視部40aによって監視される電圧ラインL5の電圧状態に基づき、監視ポート42に入力される電圧ラインL5の電圧がLレベルか否かを判定する(ステップS14)。すなわち、USBデバイス20がUSBコネクタ30に装着されたか否かを判定する。
Next, based on the voltage state of the voltage line L5 monitored by the
ここで、USBコネクタ30にUSBデバイス20が装着されていない場合(図1参照)、監視ポート42には、電圧ラインL5の電圧状態としてHレベル(例えば、3.3V)が入力される。
Here, when the
この場合、デバイス装着判定部40bは、監視ポート42に入力される電圧ラインL5の電圧状態がLレベルではないと判定する(ステップS14:No)。すなわち、USBコネクタ30にUSBデバイス20が装着されていないと判定する。
In this case, the device
監視ポート42に入力される電圧ラインL5の電圧状態がLレベルではないと判定した場合(ステップS14:No)、すなわち、USBコネクタ30にUSBデバイス20が装着されていないと判定した場合、電源制御部40cは、USBホストコントローラー44への電源(電力)供給を完全に停止する(ステップS16)。その際、制御部40(CPU等)は、自身の状態によっては、省電力状態へ移行してもよい。
When it is determined that the voltage state of the voltage line L5 input to the
次に、USBホストコントローラー44への電源供給を完全に停止した状態で、USBコネクタ30にUSBデバイス20が装着されたとする(図2参照)。この場合、USBコネクタ30に装着されたUSBデバイス20の一部がメカニカルスイッチ50に当接することで当該メカニカルスイッチ50がONとなり、これにより、メカニカルスイッチ50の第1端子50aと第2端子50bとが導通して電圧ラインL5がグランドに電気的に接続されるため、監視ポート42には、電圧ラインL5の電圧状態としてLレベル(例えば、0V)が入力される。
Next, it is assumed that the
この場合、制御部40が省電力状態へ移行していたとしても、デバイス装着判定部40bは、監視ポート42に入力される電圧ラインL5の電圧変化を割り込みにて判定(検出)する。具体的には、デバイス装着判定部40bは、監視ポート42に入力される電圧ラインL5の電圧状態がLレベルであると判定する(ステップS14:Yes)。すなわち、USBコネクタ30にUSBデバイス20が装着されたと判定する。
In this case, even if the
監視ポート42に入力される電圧ラインL5の電圧状態がLレベルであると判定した場合(ステップS14:Yes)、すなわち、USBコネクタ30にUSBデバイス20が装着されたと判定した場合、電源制御部40cは、USBホストコントローラー44への電源(電力)供給を開始する(ステップS18)。
When it is determined that the voltage state of the voltage line L5 input to the
次に、USBホストコントローラー44は、電源供給によって起動され、USBコネクタ30に装着(接続)されたUSBデバイス20との接続を確立させる前処理として、エニュメレーションといわれる相互認証処理を実行し(ステップS20)、次いで、USBコネクタ30に装着されたUSBデバイス20と通信(USB通信)を行う(ステップS22)。
Next, the
以上説明したように、本実施形態によれば、USBホストコントローラー44への電源供給を完全に停止した状態であっても、USBデバイス20のUSBコネクタ30への装着(接続)を検出できるプリンター10を提供することができる。
As described above, according to the present embodiment, the
これは、USBデバイス20がUSBコネクタ30に装着されたか否かを、USBホストコントローラー44ではなく、デバイス装着判定部40bが、電圧監視部40aによって監視される電圧ラインL5の電圧状態に基づき判定(検出)することによるものである。
This is based on the voltage state of the voltage line L5 monitored by the
また、本実施形態によれば、次の効果を奏することができる。 Moreover, according to this embodiment, the following effects can be produced.
第1に、デバイス装着判定部40bによってUSBデバイス20がUSBコネクタ30に装着されていないと判定された場合、電源制御部40cの作用により、USBホストコントローラー44への電源供給を完全に停止することができる。
First, when the device
第2に、USBホストコントローラー44への電源供給を完全に停止した状態であっても、デバイス装着判定部40bの作用により、USBデバイス20がUSBコネクタ30に装着されたか否かを判定(検出)することができる。
Second, even when the power supply to the
第3に、デバイス装着判定部40bによってUSBデバイス20がUSBコネクタ30に装着されたと判定された場合、電源制御部40cの作用により、USBホストコントローラー44に電源供給することができる。これにより、USBホストコントローラー44を起動させて、USBコネクタ30に装着されたUSBデバイス20との間で通信(USB通信)を行うことができる。
Third, when the device
第4に、USBデバイス20がUSBコネクタ30に装着されていない場合、上記のようにUSBホストコントローラー44への電源供給を完全に停止することができるため、USBホストコントローラーへの電源供給を完全に停止することができない従来技術と比べ、省電力を実現することができる。
Fourth, when the
次に、変形例について説明する。 Next, a modified example will be described.
図4は、第1変形例であるプリンター10Aの概略構成図である。
FIG. 4 is a schematic configuration diagram of a
図4に示すように、本変形例のプリンター10Aは、上記実施形態のプリンター10と比べ、USBホストコントローラー44が制御部40の外部に設けられている点(つまり、制御部40とUSBホストコントローラー44とが別チップで構成されている点)、制御部40が制御端子46を備えている点、制御端子46とUSBホストコントローラー44とが制御ラインL7によって電気的に接続されている点、電源制御部40cが、制御端子46(及び制御ラインL7)を介してUSBホストコントローラー44へ直接、電源供給(又は電源供給を完全に停止)する点が相違し、それ以外、上記実施形態と同様の構成である。
As shown in FIG. 4, the
本変形例によっても、上記実施形態と同様の効果を奏することができる。 Also by this modification, the same effect as the above-mentioned embodiment can be produced.
図5は、第2変形例であるプリンター10Bの概略構成図である。
FIG. 5 is a schematic configuration diagram of a
図5に示すように、本変形例のプリンター10Bは、上記第1変形例のプリンター10Aと比べ、制御端子46とUSBホストコントローラー44との間にロードスイッチSWを設けた点、電源制御部40cが、制御端子46(及び制御ラインL7)を介してロードスイッチSWを制御することで、USBホストコントローラー44へ電源供給(又は電源供給を完全に停止)する点が相違し、それ以外、上記実施形態と同様の構成である。
As shown in FIG. 5, the
本変形例によっても、上記実施形態と同様の効果を奏することができる。 Also by this modification, the same effect as the above-mentioned embodiment can be produced.
図6は、第3変形例であるプリンター10Cの概略構成図である。
FIG. 6 is a schematic configuration diagram of a
図6に示すように、本変形例のプリンター10Cは、上記実施形態のプリンター10と比べ、USBコネクタ30の他方の側に追加メカニカルスイッチ50C(メカニカルスイッチ50と同様の構成)を追加配置した点(すなわち、USBコネクタ30の両側(長手方向に関する両側)にそれぞれメカニカルスイッチ50を配置した点)、制御部40に追加監視ポート42C(監視ポート42と同様の構成)を追加した点、追加メカニカルスイッチ50Cの第1端子50aと追加監視ポート42Cとを電気的に接続する追加電圧ラインL5Cを追加した点、さらに、追加電圧ラインL5Cに接続され、当該追加電圧ラインL5Cの電圧をプルアップする追加プルアップ抵抗RCを追加した点が相違し、それ以外、上記実施形態と同様の構成である。
As shown in FIG. 6, the
なお、メカニカルスイッチ50、50Cは、USBデバイス20がUSBコネクタ30
に正しく装着された場合(真っ直ぐ装着された場合)、USBデバイス20の一部がメカニカルスイッチ50、50Cに当接することで当該メカニカルスイッチ50、50CがONとなる位置に設けられる(図6参照)。
The mechanical switches 50 and 50C are configured so that the
If the
本変形例によれば、上記実施形態と同様の効果に加え、さらに、電圧監視部40aによって監視される電圧ラインL5、L5Cの電圧状態に基づき、USBデバイス20がUSBコネクタ30に正しく装着されているか否かを判定することができる。
According to this modification, in addition to the same effects as the above embodiment, the
例えば、USBコネクタ30に装着されたUSBデバイス20の一部がメカニカルスイッチ50、50Cに当接することで当該メカニカルスイッチ50、50CがいずれもONとなり、デバイス装着判定部40bによって電圧ラインL5、L5Cの電圧がいずれもLレベルであると判定された場合、USBデバイス20がUSBコネクタ30に正しく装着されていると判定することができる。
For example, when a part of the
一方、USBコネクタ30に装着されたUSBデバイス20の一部がメカニカルスイッチ50、50Cのうち少なくとも一方に当接しないことでメカニカルスイッチ50、50Cのうち少なくとも一方がOFFとなり、デバイス装着判定部40bによって電圧ラインL5、L5Cのうち少なくとも一方がHレベルであると判定された場合、USBデバイス20がUSBコネクタ30に正しく装着されていない(傾いて装着されている)と判定することができる。
On the other hand, when a part of the
また、上記実施形態では、本発明の電子機器をプリンター10に適用した例について説明したが、これに限らず、プリンター10以外の電子機器、例えば、パーソナルコンピューターにも、本発明の電子機器を適用してもよいのは無論である。
In the above-described embodiment, the example in which the electronic device of the present invention is applied to the
また、上記実施形態では、デバイスとしてUSBデバイス20を用い、コネクタとしてUSBコネクタ30を用い、コントローラーとしてUSBホストコントローラー44を用いた例について説明したがこれに限らず、USBデバイス20以外の他のデバイスを用い、USBコネクタ30以外の他のコネクタを用い、USBホストコントローラー44以外の他のコントローラーを用いてもよい。
In the above-described embodiment, the example in which the
また、上記実施形態では、監視ポート42に入力される電圧ラインL5の電圧がHレベルの場合、USBデバイス20がUSBコネクタ30に装着されていないと判定し、一方、監視ポート42に入力される電圧ラインL5の電圧がLレベルの場合、USBデバイス20がUSBコネクタ30に装着されていると判定する例について説明したが、これに限らない。すなわち、構成によって、論理が反転しても構わない。すなわち、上記実施形態とは逆に、監視ポート42に入力される電圧ラインL5の電圧がLレベルの場合、USBデバイス20がUSBコネクタ30に装着されていないと判定し、一方、監視ポート42に入力される電圧ラインL5の電圧がHレベルの場合、USBデバイス20がUSBコネクタ30に装着されていると判定してもよい。
In the above embodiment, when the voltage of the voltage line L5 input to the
また、上記実施形態では、電圧ラインL5の電圧をプルアップする例について説明したが、これに限らず、電圧ラインL5の電圧をプルダウンしてもよい。 Moreover, although the said embodiment demonstrated the example which pulls up the voltage of the voltage line L5, you may pull down not only this but the voltage of the voltage line L5.
上記実施形態はあらゆる点で単なる例示にすぎない。上記実施形態の記載によって本発明は限定的に解釈されるものではない。本発明はその精神または主要な特徴から逸脱することなく他の様々な形で実施することができる。 The above embodiment is merely an example in all respects. The present invention is not construed as being limited by the description of the above embodiment. The present invention can be implemented in various other forms without departing from the spirit or main features thereof.
10、10A、10B…プリンター、20…USBデバイス、22…デバイス側金属シ
ェル、24a…デバイス側端子、24b…デバイス側端子、24c…デバイス側端子、24d…デバイス側端子、30…USBコネクタ、30b…デバイス装着判定部、30c…電源制御部、32…ホスト側金属シェル、34a〜34d…ホスト側端子、40…制御部、40a…電圧監視部、40b…デバイス装着判定部、40c…電源制御部、42…監視ポート、44…USBホストコントローラー、46…制御端子、GND…グランド、L1…グランドライン、L2…VBUSライン、L3…D+ライン、L4…D−ライン、L5…電圧ライン、L6…制御ライン、R…プルアップ抵抗、SW…ロードスイッチ。
10, 10A, 10B ... Printer, 20 ... USB device, 22 ... Device side metal shell, 24a ... Device side terminal, 24b ... Device side terminal, 24c ... Device side terminal, 24d ... Device side terminal, 30 ... USB connector, 30b ... Device mounting determination unit, 30c ... Power source control unit, 32 ... Host side metal shell, 34a to 34d ... Host side terminal, 40 ... Control unit, 40a ... Voltage monitoring unit, 40b ... Device mounting determination unit, 40c ... Power source control unit , 42 ... monitoring port, 44 ... USB host controller, 46 ... control terminal, GND ... ground, L1 ... ground line, L2 ... VBUS line, L3 ... D + line, L4 ... D- line, L5 ... voltage line, L6 ... Control line, R ... pull-up resistor, SW ... load switch.
Claims (7)
前記デバイスが装着された際にONとなり、前記デバイスが取り外された際にOFFとなるメカニカルスイッチと、
前記メカニカルスイッチのON/OFFによって変化する電圧ラインの電圧状態を監視する電圧監視部と、
前記電圧監視部によって監視される前記電圧ラインの電圧状態に基づき、前記デバイスが前記コネクタに装着されたか否かを判定するデバイス装着判定部と、を備えた電子機器。 A connector to which the device is detachably mounted;
A mechanical switch that is turned on when the device is attached and turned off when the device is removed;
A voltage monitoring unit for monitoring a voltage state of a voltage line that changes depending on ON / OFF of the mechanical switch;
An electronic apparatus comprising: a device attachment determination unit that determines whether the device is attached to the connector based on a voltage state of the voltage line monitored by the voltage monitoring unit.
前記デバイス装着判定部によって前記デバイスが前記コネクタに装着されたと判定された場合、前記コントローラーに電源供給し、前記デバイス装着判定部によって前記デバイスが前記コネクタに装着されていないと判定された場合、前記コントローラーへの電源供給を停止する電源制御部と、をさらに備えた請求項1に記載の電子機器。 A controller for communicating with the device attached to the connector;
When it is determined that the device is mounted on the connector by the device mounting determination unit, power is supplied to the controller, and when the device mounting determination unit determines that the device is not mounted on the connector, The electronic device according to claim 1, further comprising: a power control unit that stops power supply to the controller.
前記メカニカルスイッチの前記第1端子は、前記電圧ラインを介して前記電圧監視部に電気的に接続されており、
前記メカニカルスイッチの前記第2端子は、グランドに電気的に接続されている請求項1又は2に記載の電子機器。 The mechanical switch includes a first terminal and a second terminal, and when the device is attached to the connector, a part of the device comes into contact with the mechanical switch, and the first terminal and the second terminal On the other hand, when the device is removed from the connector, the contact is released and the first terminal and the second terminal are not connected to each other so that they are turned off. And
The first terminal of the mechanical switch is electrically connected to the voltage monitoring unit via the voltage line,
The electronic device according to claim 1, wherein the second terminal of the mechanical switch is electrically connected to a ground.
前記コントローラーは、USBホストコントローラーである請求項2に記載の電子機器。 The device is a USB device;
The electronic device according to claim 2, wherein the controller is a USB host controller.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016135725A JP2018005807A (en) | 2016-07-08 | 2016-07-08 | Electronic apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016135725A JP2018005807A (en) | 2016-07-08 | 2016-07-08 | Electronic apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2018005807A true JP2018005807A (en) | 2018-01-11 |
JP2018005807A5 JP2018005807A5 (en) | 2019-06-27 |
Family
ID=60946594
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2016135725A Pending JP2018005807A (en) | 2016-07-08 | 2016-07-08 | Electronic apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2018005807A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109861038A (en) * | 2018-12-11 | 2019-06-07 | 苏州佳世达电通有限公司 | It can automatically switch the USB Port and its control method of connection mode |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004130561A (en) * | 2002-10-08 | 2004-04-30 | Canon Inc | Image processor |
JP2005242476A (en) * | 2004-02-24 | 2005-09-08 | Sony Corp | Usb connector and reproducing device |
JP2006179254A (en) * | 2004-12-22 | 2006-07-06 | Sharp Corp | Connector for electrical circuit connection, and electronic equipment |
JP2006269214A (en) * | 2005-03-23 | 2006-10-05 | Nec Corp | Method for preventing incomplete insertion of card |
JP2009223522A (en) * | 2008-03-14 | 2009-10-01 | Mitsubishi Electric Corp | Usb connection equipment |
JP2011079313A (en) * | 2009-10-06 | 2011-04-21 | Toshiba Corp | Image forming apparatus |
-
2016
- 2016-07-08 JP JP2016135725A patent/JP2018005807A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004130561A (en) * | 2002-10-08 | 2004-04-30 | Canon Inc | Image processor |
JP2005242476A (en) * | 2004-02-24 | 2005-09-08 | Sony Corp | Usb connector and reproducing device |
JP2006179254A (en) * | 2004-12-22 | 2006-07-06 | Sharp Corp | Connector for electrical circuit connection, and electronic equipment |
JP2006269214A (en) * | 2005-03-23 | 2006-10-05 | Nec Corp | Method for preventing incomplete insertion of card |
JP2009223522A (en) * | 2008-03-14 | 2009-10-01 | Mitsubishi Electric Corp | Usb connection equipment |
JP2011079313A (en) * | 2009-10-06 | 2011-04-21 | Toshiba Corp | Image forming apparatus |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109861038A (en) * | 2018-12-11 | 2019-06-07 | 苏州佳世达电通有限公司 | It can automatically switch the USB Port and its control method of connection mode |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100386360B1 (en) | Power-on device in computer | |
JP2008158840A (en) | Electronic equipment | |
KR101952831B1 (en) | Electronic apparatus, external apparatus and method for controlling the same | |
US20150143138A1 (en) | System for detecting universal serial bus (usb) device and method thereof | |
JP2000105638A (en) | Usb device and usb connection system | |
JP5609810B2 (en) | Electronic equipment, image forming device | |
JP2019128761A (en) | Electronic device, and control method therefor and program | |
JP6003171B2 (en) | Electronics | |
JP2018005807A (en) | Electronic apparatus | |
JP2007102444A (en) | Electronic equipment, method for controlling electronic equipment and control program | |
JP2008134765A (en) | Information processor | |
JP2017224219A (en) | Electronic apparatus | |
JP2011070261A (en) | Information processing system, information processing device, relay device, connection wire, and program | |
JP2010008178A (en) | Apparatus, method and program for controlling connector connection | |
JP2007094659A (en) | Electronic apparatus and power saving control method | |
KR101276840B1 (en) | A USB device sensing USB connection | |
JP2005250943A (en) | External connection equipment and processor capable of being supplied with power via interface means | |
EP3451182A1 (en) | Connection circuit | |
WO2018195992A1 (en) | Control method, usb system and electronic apparatus | |
JP7522370B1 (en) | Electronics | |
JP2002163051A (en) | Electronic apparatus, usb connector structure, and usb device connecting cable | |
JP2015215643A (en) | Electronic equipment and recovery control method from power saving state | |
JP2013156911A (en) | Device equipment and method for controlling the same | |
JP2007034803A (en) | Electronic device and power saving control method | |
JP6181933B2 (en) | Control device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD05 | Notification of revocation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7425 Effective date: 20180910 |
|
RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20190402 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190520 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20190520 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20200625 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20200721 |
|
RD07 | Notification of extinguishment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7427 Effective date: 20200803 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20200917 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20210302 |