JP2017224219A - Electronic apparatus - Google Patents

Electronic apparatus Download PDF

Info

Publication number
JP2017224219A
JP2017224219A JP2016120505A JP2016120505A JP2017224219A JP 2017224219 A JP2017224219 A JP 2017224219A JP 2016120505 A JP2016120505 A JP 2016120505A JP 2016120505 A JP2016120505 A JP 2016120505A JP 2017224219 A JP2017224219 A JP 2017224219A
Authority
JP
Japan
Prior art keywords
terminal
usb
connector
host
voltage
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
JP2016120505A
Other languages
Japanese (ja)
Other versions
JP2017224219A5 (en
Inventor
眞也 岡崎
Masaya Okazaki
眞也 岡崎
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2016120505A priority Critical patent/JP2017224219A/en
Publication of JP2017224219A publication Critical patent/JP2017224219A/en
Publication of JP2017224219A5 publication Critical patent/JP2017224219A5/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Power Sources (AREA)
  • Information Transfer Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an electronic apparatus that can detect connection to a connector of a device (for example, USB device) even when power supply to a controller (for example, USB host controller) is completely stopped.SOLUTION: An electronic apparatus 10 comprises: a connector 30 to which a device 20 is detachably attached; a voltage monitoring part 40a that is electrically connected to a host via a voltage line L5 and monitors a voltage state of the voltage line L5; and a device attachment determination part 40b that determines whether or not the device 20 is attached to the connector 30 on the basis of the voltage state of the voltage line L5 monitored by the voltage monitoring part 40a.SELECTED DRAWING: Figure 1

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).

特開2000−10907号公報Japanese Patent Laid-Open No. 2000-10907

しかしながら、上記従来の電子機器においては、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.

上記目的を達成するために、本発明の一つの側面は、デバイスが着脱可能に装着されるコネクタと、ホストに電圧ラインを介して電気的に接続され、前記電圧ラインの電圧状態を監視する電圧監視部と、前記電圧監視部によって監視される前記電圧ラインの電圧状態に基づき、前記デバイスが前記コネクタに装着されたか否かを判定するデバイス装着判定部と、を備えたことを特徴とする。   To achieve the above object, according to one aspect of the present invention, there is provided a connector for detachably mounting a device and a voltage that is electrically connected to a host via a voltage line and monitors a voltage state of the voltage line. And a device mounting determination unit that determines whether the device is mounted on the connector based on a voltage state of the voltage line monitored by the voltage monitoring unit.

この側面によれば、コントローラー(例えば、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端子と、前記デバイス側第1端子に電気的に接続されたデバイス側第2端子と、を備え、前記コネクタは、少なくとも、ホスト側第1端子と、接地されたホスト側第2端子と、を備え、前記デバイスは、前記ホスト側第1端子と前記デバイス側第1端子とを電気的に接続し、かつ、前記ホスト側第2端子と前記デバイス側第2端子とを電気的に接続することによって前記コネクタに装着され、前記電圧監視部は、前記電圧ラインによって前記ホスト側第1端子と電気的に接続されることを特徴とする。   In the above invention, a preferable aspect is that the device includes at least a device-side first terminal and a device-side second terminal electrically connected to the device-side first terminal, and the connector includes: At least a host-side first terminal and a grounded host-side second terminal, wherein the device electrically connects the host-side first terminal and the device-side first terminal, and The host side second terminal and the device side second terminal are electrically connected to be attached to the connector, and the voltage monitoring unit is electrically connected to the host side first terminal via the voltage line. It is characterized by that.

この態様によれば、デバイスがコネクタに装着されていない場合と装着された場合とで、電圧ラインの電圧状態を異ならせることができる。したがって、電圧監視部によって監視される電圧ラインの電圧状態に基づき、デバイスがコネクタに装着されたか否かを判定(検出)することができる。   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デバイスであり、前記デバイス側第1端子は、デバイス側GND端子であり、前記デバイス側第2端子は、デバイス側金属シェルであり、前記ホスト側第1端子は、ホスト側GND端子であり、前記ホスト側第2端子は、ホスト側金属シェルであり、前記コントローラーは、USBホストコントローラーであることを特徴とする。   In the above invention, a preferable aspect is that the device is a USB device, the device-side first terminal is a device-side GND terminal, the device-side second terminal is a device-side metal shell, The host-side first terminal is a host-side GND terminal, the host-side second terminal is a host-side metal shell, 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.

これは、USBデバイスがコネクタに装着されたか否かを、USBホストコントローラーではなく、デバイス装着判定部が、電圧監視部によって監視される電圧ラインの電圧状態に基づき判定(検出)することによるものである。   This is because whether the USB device is attached to the connector is determined (detected) by the device attachment determination unit, not by the USB host controller, based on the voltage state of the voltage line monitored by the voltage monitoring unit. is there.

また、上記発明において、好ましい態様は、前記電圧ラインの電圧をプルアップする回路をさらに備えたことを特徴とする。   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.

プリンター10の概略構成図である。1 is a schematic configuration diagram of a printer 10. FIG. USBデバイス20がUSBコネクタ30に装着されたプリンター10の例である。This is an example of the printer 10 in which the USB device 20 is attached to the USB connector 30. 本実施形態のプリンター10の動作の一例を説明するためのフローチャートである。4 is a flowchart for explaining an example of an operation of the printer 10 of the present embodiment. 第1変形例であるプリンター10Aの概略構成図である。It is a schematic block diagram of printer 10A which is a 1st modification. 第2変形例であるプリンター10Bの概略構成図である。It is a schematic block diagram of the printer 10B which is a 2nd modification.

以下、本発明の電子機器を適用したプリンター10について添付図面を参照しながら説明する。各図において対応する構成要素には同一の符号が付され、重複する説明は省略される。   Hereinafter, a printer 10 to which an electronic apparatus of the present invention is applied will be described with reference to the accompanying drawings. In each figure, corresponding components are denoted by the same reference numerals, and redundant description is omitted.

図1は、プリンター10の概略構成図である。図2は、USBデバイス20がUSBコネクタ30に装着されたプリンター10の例である。   FIG. 1 is a schematic configuration diagram of the printer 10. FIG. 2 is an example of the printer 10 in which the USB device 20 is attached to the USB connector 30.

図1に示すように、本実施形態のプリンター10は、ハード構成として、USBデバイス20(デバイス)が着脱可能に装着されるUSBコネクタ30(コネクタ)、制御部40等を備える。なお、プリンター10は、実際には印刷機構等も備えているが、各図では省略されている。   As shown in FIG. 1, the printer 10 of the present embodiment includes a USB connector 30 (connector) to which a USB device 20 (device) is detachably attached, a control unit 40, and the like as hardware configurations. The printer 10 actually includes a printing mechanism and the like, but is omitted in each drawing.

USBデバイス20は、例えば、USBメモリーで、デバイス側金属シェル22、デバイス側端子24a〜24d等を備えており、デバイス側金属シェル22とデバイス側端子24d(4番ピン)とが電気的に接続された特定USBデバイスである。デバイス側金属シェル22が本発明のデバイス側第2端子に相当し、デバイス側端子24dが本発明のデバイス側第1端子(デバイス側GND端子)に相当する。   The USB device 20 is, for example, a USB memory and includes a device-side metal shell 22 and device-side terminals 24a to 24d. The device-side metal shell 22 and the device-side terminal 24d (No. 4 pin) are electrically connected. Specific USB device. The device side metal shell 22 corresponds to the device side second terminal of the present invention, and the device side terminal 24d corresponds to the device side first terminal (device side GND terminal) of the present invention.

USBコネクタ30は、USBデバイス20が着脱可能に装着される一般的なUSBコネクタで、ホスト側金属シェル32、ホスト側端子34a〜34d等を備える。ホスト側金属シェル32が本発明のホスト側第2端子に相当し、ホスト側端子34dが本発明のホスト側第1端子(ホスト側GND端子)に相当する。   The USB connector 30 is a general USB connector to which the USB device 20 is detachably attached, and includes a host-side metal shell 32, host-side terminals 34a to 34d, and the like. The host side metal shell 32 corresponds to the host side second terminal of the present invention, and the host side terminal 34d corresponds to the host side first terminal (host side GND terminal) of the present invention.

USBデバイス20は、ホスト側端子34a〜34dとデバイス側端子24a〜24dとがそれぞれ電気的に接続され、かつ、ホスト側金属シェル32とデバイス側金属シェル22とが電気的に接続された状態で、USBコネクタ30に装着される。   In the USB device 20, the host side terminals 34a to 34d and the device side terminals 24a to 24d are electrically connected, and the host side metal shell 32 and the device side metal shell 22 are electrically connected. The USB connector 30 is attached.

ホスト側金属シェル32は、グランドラインL1(GND信号線)を介してグランドGNDに接続されている。ホスト側端子34aは、VBUSラインL2に電気的に接続されている。ホスト側端子34bは、D+ラインL3に電気的に接続されている。D+ラインL3は、ホスト側端子34bとUSBホストコントローラー44とを電気的に接続している。ホスト側端子34cは、D−ラインL4に電気的に接続されている。D−ラインL4は、ホスト側端子34cとUSBホストコントローラー44とを電気的に接続している。ホスト側端子34dは、電圧ラインL5に電気的に接続されている。電圧ラインL5は、ホ
スト側端子34dと監視ポート42とを電気的に接続している。
The host side metal shell 32 is connected to the ground GND via a ground line L1 (GND signal line). The host side terminal 34a is electrically connected to the VBUS line L2. The host side terminal 34b is electrically connected to the D + line L3. The D + line L3 electrically connects the host side terminal 34b and the USB host controller 44. The host side terminal 34c is electrically connected to the D-line L4. The D-line L4 electrically connects the host side terminal 34c and the USB host controller 44. The host side terminal 34d is electrically connected to the voltage line L5. The voltage line L5 electrically connects the host side terminal 34d and the monitoring port 42.

電圧ライン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 device 20 is not attached to the USB connector 30 (see FIG. 1), the voltage of the voltage line L5 is pulled up by the pull-up resistor R and becomes H level (for example, 3.3 V).

一方、USBコネクタ30にUSBデバイス20が装着された場合(図2参照)、電圧ラインL5の電圧は、Lレベル(例えば、0V)となる。これは、USBコネクタ30にUSBデバイス20が装着された場合、電圧ラインL5がグランドGNDに電気的に接続されることによるものである。すなわち、USBコネクタ30にUSBデバイス20が装着された場合、図2中点線の矢印で示すように、デバイス側金属シェル22とホスト側金属シェル32とが電気的に接続され、かつ、デバイス側端子24dとホスト側端子34dとが電気的に接続されることとなり、これにより、電圧ラインL5が、ホスト側端子34d、デバイス側端子24d、デバイス側金属シェル22、ホスト側金属シェル32、グランドラインL1を介してグランドGNDに電気的に接続されることによるものである。   On the other hand, when the USB device 20 is attached to the USB connector 30 (see FIG. 2), the voltage of the voltage line L5 becomes L level (for example, 0 V). This is because when the USB device 20 is attached to the USB connector 30, the voltage line L5 is electrically connected to the ground GND. That is, when the USB device 20 is attached to the USB connector 30, the device side metal shell 22 and the host side metal shell 32 are electrically connected as shown by the dotted arrows in FIG. 24d and the host-side terminal 34d are electrically connected, so that the voltage line L5 becomes the host-side terminal 34d, the device-side terminal 24d, the device-side metal shell 22, the host-side metal shell 32, and the ground line L1. This is because it is electrically connected to the ground GND via the pin.

制御部40は、監視ポート42、USBホストコントローラー44(コントローラー)、さらに、図示しないが、CPU、RAM、ROM等が一つの半導体チップ上に集積(実装)されたSoC(System-On-a-Chip)によって構成される。   The control unit 40 includes a monitoring port 42, a USB host controller 44 (controller), and although not shown, a SoC (System-On-a-) in which a CPU, RAM, ROM, and the like are integrated (mounted) on one semiconductor chip. Chip).

監視ポート42は、割り込み検出が可能なポートで、これに電気的に接続された電圧ラインL5の電圧状態を監視するために用いられる。   The monitoring port 42 is a port capable of detecting an interrupt, and is used for monitoring the voltage state of the voltage line L5 electrically connected thereto.

USBホストコントローラー44は、USBコネクタ30に装着されたUSBデバイス20との間で、D+ラインL3及びD−ラインL4を介して通信を行う。USBホストコントローラー44は、D+ラインL3及びD−ラインL4を介してUSBコネクタ30のホスト側端子34b、34cに電気的に接続されている。USBホストコントローラー44は、後述の電源制御部40cによって電源(電力)供給され、又は電源(電力)供給が完全に停止される。   The USB host controller 44 communicates with the USB device 20 attached to the USB connector 30 via the D + line L3 and the D- line L4. The USB host controller 44 is electrically connected to the host side terminals 34b and 34c of the USB connector 30 via the D + line L3 and the D- line L4. The USB host controller 44 is supplied with power (electric power) by a power supply control unit 40c described later, or power supply (electric power) supply is completely stopped.

図1に示すように、プリンター10は、機能構成として、電圧監視部40a、デバイス装着判定部40b、電源制御部40c等を備える。電圧監視部40a、デバイス装着判定部40b、及び電源制御部40cは、制御部40(CPU)が制御プログラム(ファームウエア)を実行することによって実現される。   As shown in FIG. 1, the printer 10 includes a voltage monitoring unit 40a, a device attachment determination unit 40b, a power supply control unit 40c, and the like as functional configurations. The voltage monitoring unit 40a, the device attachment determination unit 40b, and the power supply control unit 40c are realized by the control unit 40 (CPU) executing a control program (firmware).

電圧監視部40aは、監視ポート42に入力される電圧ラインL5の電圧状態を監視する。電圧監視部40aは、電圧ラインL5によってホスト側端子34dと電気的に接続されている。また、電圧監視部40aは、USBデバイス20(ホスト)に電圧ラインL5を介して電気的に接続される。   The voltage monitoring unit 40a monitors the voltage state of the voltage line L5 input to the monitoring port 42. The voltage monitoring unit 40a is electrically connected to the host side terminal 34d through the voltage line L5. The voltage monitoring unit 40a is electrically connected to the USB device 20 (host) via the voltage line L5.

デバイス装着判定部40bは、電圧監視部40aによって監視される電圧ラインL5の電圧状態に基づき、USBデバイス20がUSBコネクタ30に装着されたか否かを判定する。   The device attachment determination unit 40b determines whether or not the USB device 20 is attached to the USB connector 30 based on the voltage state of the voltage line L5 monitored by the voltage monitoring unit 40a.

上記のように、USBコネクタ30にUSBデバイス20が装着されていない場合(図1参照)、電圧ラインL5の電圧は、プルアップ抵抗RによってプルアップされてHレベル(例えば、3.3V)となる。一方、USBコネクタ30にUSBデバイス20が装着された場合(図2参照)、電圧ラインL5がグランドGNDに電気的に接続されるため、電圧ラインL5の電圧は、Lレベル(例えば、0V)となる。このように、USBデバイ
ス20がUSBコネクタ30に装着されていない場合と装着された場合とで、電圧ラインL5の電圧状態は異なる。したがって、電圧監視部40aによって監視される電圧ラインL5の電圧状態に基づき、USBデバイス20がUSBコネクタ30に装着(接続)されたか否かを判定(検出)することができる。
As described above, when the USB device 20 is not attached to the USB connector 30 (see FIG. 1), the voltage of the voltage line L5 is pulled up by the pull-up resistor R and becomes H level (for example, 3.3 V). Become. On the other hand, when the USB device 20 is attached to the USB connector 30 (see FIG. 2), since the voltage line L5 is electrically connected to the ground GND, the voltage of the voltage line L5 is L level (for example, 0V). Become. Thus, the voltage state of the voltage line L5 differs depending on whether the USB device 20 is not attached to the USB connector 30 or not. Accordingly, it can be determined (detected) whether or not the USB device 20 is attached (connected) to the USB connector 30 based on the voltage state of the voltage line L5 monitored by the voltage monitoring unit 40a.

電源制御部40cは、デバイス装着判定部40bによってUSBデバイス20がUSBコネクタ30に装着されたと判定された場合、USBホストコントローラー44に電源供給する。一方、電源制御部40cは、デバイス装着判定部40bによってUSBデバイス20がUSBコネクタ30に装着されていないと判定された場合、USBホストコントローラー44への電源供給を完全に停止する。   The power supply control unit 40 c supplies power to the USB host controller 44 when the device mounting determination unit 40 b determines that the USB device 20 is mounted on the USB connector 30. On the other hand, when the device attachment determination unit 40b determines that the USB device 20 is not attached to the USB connector 30, the power supply controller 40c completely stops supplying power to the USB host controller 44.

次に、本実施形態のプリンター10の動作の一例について図3を参照しながら説明する。   Next, an example of the operation of the printer 10 of this embodiment will be described with reference to FIG.

図3は、本実施形態のプリンター10の動作の一例を説明するためのフローチャートである。   FIG. 3 is a flowchart for explaining an example of the operation of the printer 10 of the present embodiment.

以下の処理は、主に、制御部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 printer 10 is turned on, the control unit 40 is activated (step S10).

次に、電圧監視部40aが、監視ポート42に入力される電圧ラインL5の電圧状態を監視する(ステップS12)。   Next, the voltage monitoring unit 40a monitors the voltage state of the voltage line L5 input to the monitoring port 42 (step S12).

次に、デバイス装着判定部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 voltage monitoring unit 40a, the device attachment determination unit 40b determines whether or not the voltage of the voltage line L5 input to the monitoring port 42 is L level (step). S14). That is, it is determined whether or not the USB device 20 is attached to the USB connector 30.

ここで、USBコネクタ30にUSBデバイス20が装着されていない場合(図1参照)、監視ポート42には、電圧ラインL5の電圧状態としてHレベル(例えば、3.3V)が入力される。   Here, when the USB device 20 is not attached to the USB connector 30 (see FIG. 1), an H level (for example, 3.3 V) is input to the monitoring port 42 as the voltage state of the voltage line L5.

この場合、デバイス装着判定部40bは、監視ポート42に入力される電圧ラインL5の電圧状態がLレベルではないと判定する(ステップS14:No)。すなわち、USBコネクタ30にUSBデバイス20が装着されていないと判定する。   In this case, the device attachment determination unit 40b determines that the voltage state of the voltage line L5 input to the monitoring port 42 is not at the L level (step S14: No). That is, it is determined that the USB device 20 is not attached to the USB connector 30.

監視ポート42に入力される電圧ラインL5の電圧状態がLレベルではないと判定した場合(ステップS14:No)。すなわち、USBコネクタ30にUSBデバイス20が装着されていないと判定した場合、電源制御部40cは、USBホストコントローラー44への電源(電力)供給を完全に停止する(ステップS16)。その際、制御部40(CPU等)は、自身の状態によっては、省電力状態へ移行してもよい。   When it determines with the voltage state of the voltage line L5 input into the monitoring port 42 not being L level (step S14: No). That is, when it is determined that the USB device 20 is not attached to the USB connector 30, the power supply control unit 40c completely stops the power supply (power) supply to the USB host controller 44 (step S16). At that time, the control unit 40 (CPU or the like) may shift to a power saving state depending on its own state.

次に、USBホストコントローラー44への電源供給を完全に停止した状態で、USBコネクタ30にUSBデバイス20が装着されたとする(図2参照)。この場合、電圧ラインL5がグランドGNDに電気的に接続されるため、監視ポート42には、電圧ラインL5の電圧状態としてLレベル(例えば、0V)が入力される。   Next, it is assumed that the USB device 20 is attached to the USB connector 30 with the power supply to the USB host controller 44 completely stopped (see FIG. 2). In this case, since the voltage line L5 is electrically connected to the ground GND, an L level (for example, 0 V) is input to the monitoring port 42 as the voltage state of the voltage line L5.

この場合、制御部40が省電力状態へ移行していたとしても、デバイス装着判定部40bは、監視ポート42に入力される電圧ラインL5の電圧変化を割り込みにて判定(検出)する。具体的には、デバイス装着判定部40bは、監視ポート42に入力される電圧ラインL5の電圧状態がLレベルであると判定する(ステップS14:Yes)。すなわち、USBコネクタ30にUSBデバイス20が装着されたと判定する。   In this case, even if the control unit 40 shifts to the power saving state, the device attachment determination unit 40b determines (detects) the voltage change of the voltage line L5 input to the monitoring port 42 by interruption. Specifically, the device attachment determination unit 40b determines that the voltage state of the voltage line L5 input to the monitoring port 42 is L level (step S14: Yes). That is, it is determined that the USB device 20 is attached to the USB connector 30.

監視ポート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 monitoring port 42 is L level (step S14: Yes), that is, when it is determined that the USB device 20 is attached to the USB connector 30, the power control unit 40c Starts supplying power (electric power) to the USB host controller 44 (step S18).

次に、USBホストコントローラー44は、電源供給によって起動され、USBコネクタ30に装着(接続)されたUSBデバイス20との接続を確立させる前処理として、エニュメレーションといわれる相互認証処理を実行し(ステップS20)、次いで、USBコネクタ30に装着されたUSBデバイス20と通信(USB通信)を行う(ステップS22)。   Next, the USB host controller 44 executes a mutual authentication process called enumeration as a pre-process for establishing a connection with the USB device 20 that is activated by power supply and attached (connected) to the USB connector 30 ( Next, communication (USB communication) is performed with the USB device 20 attached to the USB connector 30 (step S22).

以上説明したように、本実施形態によれば、USBホストコントローラー44への電源供給を完全に停止した状態であっても、USBデバイス20のUSBコネクタ30への装着(接続)を検出できるプリンター10を提供することができる。   As described above, according to the present embodiment, the printer 10 that can detect the mounting (connection) of the USB device 20 to the USB connector 30 even when the power supply to the USB host controller 44 is completely stopped. Can be provided.

これは、USBデバイス20がUSBコネクタ30に装着されたか否かを、USBホストコントローラー44ではなく、デバイス装着判定部40bが、電圧監視部40aによって監視される電圧ラインL5の電圧状態に基づき判定(検出)することによるものである。   This is based on the voltage state of the voltage line L5 monitored by the voltage monitoring unit 40a, not by the USB host controller 44, but by whether or not the USB device 20 is mounted on the USB connector 30 ( Is detected).

また、本実施形態によれば、次の効果を奏することができる。   Moreover, according to this embodiment, the following effects can be produced.

第1に、デバイス装着判定部40bによってUSBデバイス20がUSBコネクタ30に装着されていないと判定された場合、電源制御部40cの作用により、USBホストコントローラー44への電源供給を完全に停止することができる。   First, when the device attachment determining unit 40b determines that the USB device 20 is not attached to the USB connector 30, the power supply to the USB host controller 44 is completely stopped by the action of the power control unit 40c. Can do.

第2に、USBホストコントローラー44への電源供給を完全に停止した状態であっても、デバイス装着判定部40bの作用により、USBデバイス20がUSBコネクタ30に装着されたか否かを判定(検出)することができる。   Second, even when the power supply to the USB host controller 44 is completely stopped, it is determined (detected) whether or not the USB device 20 is mounted on the USB connector 30 by the action of the device mounting determination unit 40b. can do.

第3に、デバイス装着判定部40bによってUSBデバイス20がUSBコネクタ30に装着されたと判定された場合、電源制御部40cの作用により、USBホストコントローラー44に電源供給することができる。これにより、USBホストコントローラー44を起動させて、USBコネクタ30に装着されたUSBデバイス20との間で通信(USB通信)を行うことができる。   Third, when the device attachment determination unit 40b determines that the USB device 20 is attached to the USB connector 30, power can be supplied to the USB host controller 44 by the action of the power supply control unit 40c. As a result, the USB host controller 44 is activated and communication (USB communication) can be performed with the USB device 20 attached to the USB connector 30.

第4に、USBデバイス20がUSBコネクタ30に装着されていない場合、上記のようにUSBホストコントローラー44への電源供給を完全に停止することができるため、USBホストコントローラーへの電源供給を完全に停止することができない従来技術と比べ、省電力を実現することができる。   Fourth, when the USB device 20 is not attached to the USB connector 30, the power supply to the USB host controller 44 can be completely stopped as described above, so that the power supply to the USB host controller is completely stopped. Compared with the prior art that cannot be stopped, power saving can be realized.

次に、変形例について説明する。   Next, a modified example will be described.

図4は、第1変形例であるプリンター10Aの概略構成図である。   FIG. 4 is a schematic configuration diagram of a printer 10A that is a first modification.

図4に示すように、本変形例のプリンター10Aは、上記実施形態のプリンター10と比べ、USBホストコントローラー44が制御部40の外部に設けられている点(つまり、制御部40とUSBホストコントローラー44とが別チップで構成されている点)、制御部40が制御端子46を備えている点、制御端子46とUSBホストコントローラー44とが制御ラインL6によって電気的に接続されている点、電源制御部40cが、制御端子46(及び制御ラインL6)を介してUSBホストコントローラー44へ直接、電源供給(又は電源供給を完全に停止)する点が相違し、それ以外、上記実施形態と同様の構成である。   As shown in FIG. 4, the printer 10 </ b> A of this modification example is different from the printer 10 of the above embodiment in that the USB host controller 44 is provided outside the control unit 40 (that is, the control unit 40 and the USB host controller). 44 is configured as a separate chip), the control unit 40 includes a control terminal 46, the control terminal 46 and the USB host controller 44 are electrically connected by a control line L6, The control unit 40c is different in that it supplies power (or completely stops power supply) directly to the USB host controller 44 via the control terminal 46 (and the control line L6). It is a configuration.

本変形例によっても、上記実施形態と同様の効果を奏することができる。   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 printer 10B that is a second modification.

図5に示すように、本変形例のプリンター10Bは、上記第1変形例のプリンター10Aと比べ、制御端子46とUSBホストコントローラー44との間にロードスイッチSWを設けた点、電源制御部40cが、制御端子46(及び制御ラインL6)を介してロードスイッチSWを制御することで、USBホストコントローラー44へ電源供給(又は電源供給を完全に停止)する点が相違し、それ以外、上記実施形態と同様の構成である。   As shown in FIG. 5, the printer 10B according to the present modification is different from the printer 10A according to the first modification in that a load switch SW is provided between the control terminal 46 and the USB host controller 44, and the power control unit 40c. However, by controlling the load switch SW via the control terminal 46 (and the control line L6), the difference is that the power is supplied to the USB host controller 44 (or the power supply is completely stopped). It is the structure similar to a form.

本変形例によっても、上記実施形態と同様の効果を奏することができる。   Also by this modification, the same effect as the above-mentioned embodiment can be produced.

また、上記実施形態では、本発明の電子機器をプリンター10に適用した例について説明したが、これに限らず、プリンター10以外の電子機器、例えば、パーソナルコンピューターにも、本発明の電子機器を適用してもよいのは無論である。   In the above-described embodiment, the example in which the electronic device of the present invention is applied to the printer 10 has been described. However, the present invention is not limited to this, and the electronic device of the present invention is also applied to electronic devices other than the printer 10, for example, personal computers. Of course, you can do it.

また、上記実施形態では、デバイスとしてUSBデバイス20を用い、コネクタとしてUSBコネクタ30を用い、コントローラーとしてUSBホストコントローラー44を用いた例について説明したがこれに限らず、USBデバイス20以外の他のデバイスを用い、USBコネクタ30以外の他のコネクタを用い、USBホストコントローラー44以外の他のコントローラーを用いてもよい。   In the above-described embodiment, the example in which the USB device 20 is used as a device, the USB connector 30 is used as a connector, and the USB host controller 44 is used as a controller is not limited thereto. A connector other than the USB connector 30 may be used, and a controller other than the USB host controller 44 may be used.

また、上記実施形態では、電圧ライン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 (5)

デバイスが着脱可能に装着されるコネクタと、
ホストに電圧ラインを介して電気的に接続され、前記電圧ラインの電圧状態を監視する電圧監視部と、
前記電圧監視部によって監視される前記電圧ラインの電圧状態に基づき、前記デバイスが前記コネクタに装着されたか否かを判定するデバイス装着判定部と、を備えた電子機器。
A connector to which the device is detachably mounted;
A voltage monitoring unit that is electrically connected to the host via a voltage line and monitors the voltage state of the voltage line;
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端子と、前記デバイス側第1端子に電気的に接続されたデバイス側第2端子と、を備え、
前記コネクタは、少なくとも、ホスト側第1端子と、接地されたホスト側第2端子と、を備え、
前記デバイスは、前記ホスト側第1端子と前記デバイス側第1端子とを電気的に接続し、かつ、前記ホスト側第2端子と前記デバイス側第2端子とを電気的に接続することによって前記コネクタに装着され、
前記電圧監視部は、前記電圧ラインによって前記ホスト側第1端子と電気的に接続される請求項2に記載の電子機器。
The device includes at least a device-side first terminal and a device-side second terminal electrically connected to the device-side first terminal,
The connector includes at least a host-side first terminal and a grounded host-side second terminal,
The device electrically connects the host-side first terminal and the device-side first terminal, and electrically connects the host-side second terminal and the device-side second terminal. Attached to the connector,
The electronic device according to claim 2, wherein the voltage monitoring unit is electrically connected to the host-side first terminal through the voltage line.
前記デバイスは、USBデバイスであり、
前記デバイス側第1端子は、デバイス側GND端子であり、
前記デバイス側第2端子は、デバイス側金属シェルであり、
前記ホスト側第1端子は、ホスト側GND端子であり、
前記ホスト側第2端子は、ホスト側金属シェルであり、
前記コントローラーは、USBホストコントローラーである請求項3に記載の電子機器。
The device is a USB device;
The device side first terminal is a device side GND terminal;
The device side second terminal is a device side metal shell,
The host side first terminal is a host side GND terminal;
The host-side second terminal is a host-side metal shell;
The electronic device according to claim 3, wherein the controller is a USB host controller.
前記電圧ラインの電圧をプルアップする回路をさらに備えた請求項1から4のいずれか1項に記載の電子機器。   The electronic device according to claim 1, further comprising a circuit that pulls up a voltage of the voltage line.
JP2016120505A 2016-06-17 2016-06-17 Electronic apparatus Pending JP2017224219A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016120505A JP2017224219A (en) 2016-06-17 2016-06-17 Electronic apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016120505A JP2017224219A (en) 2016-06-17 2016-06-17 Electronic apparatus

Publications (2)

Publication Number Publication Date
JP2017224219A true JP2017224219A (en) 2017-12-21
JP2017224219A5 JP2017224219A5 (en) 2019-06-06

Family

ID=60686907

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016120505A Pending JP2017224219A (en) 2016-06-17 2016-06-17 Electronic apparatus

Country Status (1)

Country Link
JP (1) JP2017224219A (en)

Similar Documents

Publication Publication Date Title
KR102044898B1 (en) Method for sensing connection of USB device and image forming apparatus performing the same
US10042801B2 (en) System for detecting universal serial bus (USB) device and method thereof
US9104396B2 (en) Electronic apparatus, charging control device, and charging control method
KR100626359B1 (en) Method for power management of computer system
JP2008158840A (en) Electronic equipment
CN106687941B (en) Method and apparatus to control a mode of a device
TWI571734B (en) Power management circuit and method thereof and computer system
JP5609810B2 (en) Electronic equipment, image forming device
KR101640584B1 (en) A method for controlling power supply utilizing the PIC
JP6003171B2 (en) Electronics
US20140157012A1 (en) Information processing apparatus and power supplying method
JP2018005807A (en) Electronic apparatus
JP2017224219A (en) Electronic apparatus
JP2008134765A (en) Information processor
JP2007094659A (en) Electronic apparatus and power saving control method
KR101276840B1 (en) A USB device sensing USB connection
JP2017117003A (en) Control device and start-up control method
JP2021105597A (en) Inspection device and inspection method
US20190123496A1 (en) Hub apparatus
JP6181933B2 (en) Control device
CN108513656B (en) Control method, USB system and electronic device
JP5939878B2 (en) Display control apparatus and display control method
JP4507777B2 (en) Power control device
JP6901695B2 (en) Wireless module, information processing device and communication control program
JP2007034803A (en) Electronic device and power saving control method

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: 20181120

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190423

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190423

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200515

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200714

RD07 Notification of extinguishment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7427

Effective date: 20200803

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200909

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20201110