JP2014102693A - Portable terminal apparatus and power supply method - Google Patents

Portable terminal apparatus and power supply method Download PDF

Info

Publication number
JP2014102693A
JP2014102693A JP2012254392A JP2012254392A JP2014102693A JP 2014102693 A JP2014102693 A JP 2014102693A JP 2012254392 A JP2012254392 A JP 2012254392A JP 2012254392 A JP2012254392 A JP 2012254392A JP 2014102693 A JP2014102693 A JP 2014102693A
Authority
JP
Japan
Prior art keywords
signal
power supply
usb
power
control unit
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
JP2012254392A
Other languages
Japanese (ja)
Inventor
Koki Sano
弘毅 佐野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Platforms Ltd
Original Assignee
NEC AccessTechnica Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC AccessTechnica Ltd filed Critical NEC AccessTechnica Ltd
Priority to JP2012254392A priority Critical patent/JP2014102693A/en
Publication of JP2014102693A publication Critical patent/JP2014102693A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Power Sources (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a portable terminal apparatus and a power supply method capable of supplying the power to a peripheral device using a supply current appropriate to the peripheral device.SOLUTION: The portable terminal apparatus is connected to a peripheral device via an USB cable using an USB connector 3. When a control section 2 determines that the peripheral device has no power supply function based on a first signal on the power supply between the peripheral device and the connected USB connector 3, the control section 2 determines whether the peripheral device has a USB communication function based on a second signal on a piece of identification on the peripheral devices of the USB connector 3, which is transmitted via a signal line different from a signal line of the USB cable on which first signal is transmitted. The control section 2 identifies the model of the peripheral device based on the determination result and supplies the power to the peripheral device using an upper limit supply current according to the peripheral device of the identified model.

Description

本発明は、携帯端末機器及び給電方法に関し、データ処理方式を切り替える際に、装置の規模や消費電力が節約できる携帯端末機器及び給電方法に関する。   The present invention relates to a mobile terminal device and a power supply method, and more particularly to a mobile terminal device and a power supply method that can save the scale of the device and power consumption when switching data processing methods.

携帯電話等の携帯端末機器は、自身の有する電池を充電するためのインタフェースとしてUSB(Universal Serial Bus:ホスト機器と周辺機器を接続するシリアルバスの規格)を使用していることが多い。そして、携帯端末機器の使用しているこのUSBインタフェースは充電専用のものが多い。しかし、この携帯端末機器は、USBインタフェースがUSB通信機能を備えている場合でも、通常、USBインタフェースを有するUSBメモリ、USBキーボード、USBマウス等の周辺機器と同様に給電機能を備えていないUSBデバイスとして動作する。このため、この携帯端末機器にUSBマウス等の周辺機器を接続しても、携帯端末機器からこの周辺機器にUSBインタフェースを介して電力を供給できないのでこの周辺機器を使用することができないという問題があった。   Mobile terminal devices such as mobile phones often use USB (Universal Serial Bus: a serial bus standard for connecting host devices and peripheral devices) as an interface for charging their own batteries. Many of the USB interfaces used by mobile terminal devices are dedicated to charging. However, even when the USB interface has a USB communication function, this mobile terminal device usually does not have a power supply function like peripheral devices such as a USB memory, a USB keyboard, and a USB mouse having a USB interface. Works as. For this reason, even if a peripheral device such as a USB mouse is connected to the mobile terminal device, power cannot be supplied from the mobile terminal device to the peripheral device via the USB interface, so that the peripheral device cannot be used. there were.

この問題を解決する技術として、携帯端末機器から周辺機器にUSBインタフェースを介して電力を供給できるようにした技術が特許文献1に開示されている。特許文献1に開示の携帯端末機器は、USB端子と、電圧検出回路と、ID(IDentity)端子検出回路と、制御部とを備えている。携帯端末機器には、USBケーブルによりUSBインタフェースを備えた周辺機器(例えば、USBマウス)を含む対向機器が接続される。USB端子は、規格に基づき、携帯端末機器に接続された対向機器から電力を受ける、あるいは対向機器に電力を供給するためのVBUS端子と、対向機器がホスト機器かスレーブ機器かを識別するためのUSB_ID端子を備えている。ここでは、ホスト機器は対向機器に給電する給電側の機器を示し、スレーブ機器は対向機器から受電する受電側の機器を示す。電圧検出回路は、対向機器からVBUS端子を介して供給される電圧の有無を検出し、電圧が供給されているときにはHighレベルを出力し、電圧が供給されていないときにはLowレベルを出力する。ID端子検出回路は、対向機器からUSB_ID端子に入力された信号のレベルを検出し、この信号がHighレベルのときには対向機器はホスト機器であると判定しHighレベルを出力する。また、この信号がLowレベルのときには対向機器はスレーブ機器であると判定しLowレベル出力する。制御部は、電圧検出回路とID端子検出回路の出力を検出し、これらの出力が共にLowレベルの場合、すなわち、対向機器から電力が供給されておらず、対向機器がスレーブ機器である場合、対向機器をUSBマウスと判定する。そして、VBUS端子を介して5Vの電圧を対向機器に供給する。   As a technique for solving this problem, Patent Document 1 discloses a technique that enables power to be supplied from a mobile terminal device to a peripheral device via a USB interface. The portable terminal device disclosed in Patent Literature 1 includes a USB terminal, a voltage detection circuit, an ID (IDentity) terminal detection circuit, and a control unit. The mobile terminal device is connected to a counter device including a peripheral device (for example, a USB mouse) having a USB interface by a USB cable. Based on the standard, the USB terminal receives power from the opposing device connected to the mobile terminal device or supplies power to the opposing device, and identifies whether the opposing device is a host device or a slave device A USB_ID terminal is provided. Here, the host device indicates a power supply side device that supplies power to the opposite device, and the slave device indicates a power reception side device that receives power from the opposite device. The voltage detection circuit detects the presence or absence of a voltage supplied from the opposite device via the VBUS terminal, and outputs a high level when the voltage is supplied, and outputs a low level when the voltage is not supplied. The ID terminal detection circuit detects the level of the signal input from the opposite device to the USB_ID terminal. When this signal is at the high level, the opposite device is determined to be a host device and outputs the high level. When this signal is at a low level, it is determined that the opposite device is a slave device, and a low level is output. The control unit detects the outputs of the voltage detection circuit and the ID terminal detection circuit, and when both of these outputs are at a low level, that is, when power is not supplied from the opposing device and the opposing device is a slave device, The opposing device is determined as a USB mouse. Then, a voltage of 5V is supplied to the opposing device via the VBUS terminal.

ここで、携帯端末機器に、USBケーブルによりUSBインタフェースを備えた周辺機器(例えば、USBマウス)を接続する。USBマウスは、電力の供給機能を備えていない周辺機器である。したがって、携帯端末機器にVBUS端子を介して電圧を供給していない。このため、電圧検出回路は、USBマウスからVBUS端子を介して電圧を供給されていないのでLowレベルを出力する。また、USBマウスは対向機器から受電するスレーブ機器である。このため、ID端子検出回路は、USBマウスからUSB_ID端子を介してLowレベルの信号を受けるので、Lowレベルを出力する。制御部は、電圧検出回路からLowレベル、また、ID端子検出回路からLowレベルの出力を受け、対向機器はUSBマウスであると判定し、VBUS端子を介して5Vの電圧を対向機器に供給する。このように、携帯端末機器は、USBケーブルにより接続したUSBマウスに給電することができるので、周辺機器としてUSBマウスを使用することができる。   Here, a peripheral device (for example, a USB mouse) having a USB interface is connected to the mobile terminal device by a USB cable. The USB mouse is a peripheral device that does not have a power supply function. Therefore, no voltage is supplied to the mobile terminal device via the VBUS terminal. For this reason, the voltage detection circuit outputs a low level because no voltage is supplied from the USB mouse via the VBUS terminal. The USB mouse is a slave device that receives power from the opposite device. For this reason, the ID terminal detection circuit receives a Low level signal from the USB mouse via the USB_ID terminal, and therefore outputs a Low level. The control unit receives the low level output from the voltage detection circuit and the low level output from the ID terminal detection circuit, determines that the counter device is a USB mouse, and supplies a voltage of 5 V to the counter device via the VBUS terminal. . As described above, since the mobile terminal device can supply power to the USB mouse connected by the USB cable, the USB mouse can be used as the peripheral device.

特開2010−9208号公報JP 2010-9208 A

上述した特許文献1に記載の携帯端末機器は、USBケーブルによりUSBインタフェースを備えた対向機器を接続した場合、電圧検出回路により、対向機器からVBUS端子を介して供給される電圧の有無を検出し、Highレベル又はLowレベルを出力する。また、ID端子検出回路により、対向機器からUSB_ID端子に入力された信号のレベルを検出し、Highレベル又はLowレベルを出力する。そして、制御部により、電圧検出回路とID端子検出回路とから共にLowレベルの出力があった場合、すなわち、対向機器はUSBマウスであると判定し、VBUS端子を介して5Vの電圧を対向機器(USBマウス)に供給している。   The portable terminal device described in Patent Document 1 described above detects the presence or absence of a voltage supplied from the opposite device via the VBUS terminal by the voltage detection circuit when the opposite device having the USB interface is connected by the USB cable. , High level or Low level is output. The ID terminal detection circuit detects the level of the signal input from the opposite device to the USB_ID terminal, and outputs a high level or a low level. When the control unit outputs Low level from both the voltage detection circuit and the ID terminal detection circuit, that is, it is determined that the opposing device is a USB mouse, and a voltage of 5 V is applied to the opposing device via the VBUS terminal. (USB mouse).

このように、特許文献1に記載の携帯端末機器は、対向機器からVBUS端子を介して供給される電圧の有無、及び、対向機器からUSB_ID端子に入力された信号のレベルに基づいて、対向機器がUSBマウス(すなわち、給電機能を備えていないUSBデバイス)であるか否かを判定し、USBマウスの場合、VBUS端子を介してUSBマウスに電力を供給するようしている。   As described above, the mobile terminal device described in Patent Literature 1 is based on the presence / absence of a voltage supplied from the opposing device via the VBUS terminal and the level of the signal input from the opposing device to the USB_ID terminal. Is a USB mouse (that is, a USB device that does not have a power feeding function), and in the case of a USB mouse, power is supplied to the USB mouse via the VBUS terminal.

しかし、特許文献1に記載の携帯端末機器は、USB端子の電圧や信号のレベルに基づいて判定したUSBマウスに5Vの電圧を給電しているのみであり、給電電流の大きさについては言及されていない。このため、USBマウスに対する給電電流は、通常小さなもの(例えば500mA)であるので、仮に、特許文献1に記載の携帯端末機器は、USBマウスに対してこの小さな給電電流で給電しているものと仮定する。すると、特許文献1に記載の携帯端末機器は、USBマウスの給電電流よりも大きな給電電流で給電可能な対向機器に対して、USBマウスの給電電流よりも大きな給電電流で給電できないという問題がある。   However, the portable terminal device described in Patent Document 1 only supplies a voltage of 5 V to the USB mouse determined based on the voltage of the USB terminal and the signal level, and the magnitude of the supply current is mentioned. Not. For this reason, since the feeding current to the USB mouse is usually small (for example, 500 mA), it is assumed that the portable terminal device described in Patent Document 1 feeds the USB mouse with this small feeding current. Assume. Then, the portable terminal device described in Patent Document 1 has a problem that power cannot be supplied with a power supply current larger than the power supply current of the USB mouse to an opposite device that can be supplied with a power supply current larger than the power supply current of the USB mouse. .

本発明の目的は、上記課題を解決して、対向機器に適合した給電電流で対向機器に給電できる携帯端末機器及び給電方法を提供することである。   An object of the present invention is to solve the above-described problems and provide a mobile terminal device and a power supply method that can supply power to the opposite device with a supply current suitable for the opposite device.

本発明の携帯端末機器は、
対向機器とUSB(Universal Serial Bus)ケーブルを介して接続するUSBコネクタと、前記対向機器と接続された前記USBコネクタの電力の供給に関連する第1の信号に基づいて前記対向機器に給電機能がないと判断した場合、前記USBケーブルの前記第1の信号の送信される信号線と異なる信号線を介して送信され、前記USBコネクタの前記対向機器の識別に関連する第2の信号に基づいて前記対向機器がUSB通信機能を持つか否かを判断し、この判断結果に基づいて前記対向機器の種別を同定し、この同定した種別の前記対向機器に応じた上限値の給電電流によって前記対向機器に給電する制御部と、を備えている。
The mobile terminal device of the present invention is
The counter device has a power supply function based on a USB connector connected to the counter device via a USB (Universal Serial Bus) cable and a first signal related to power supply of the USB connector connected to the counter device. If not, based on a second signal transmitted through a signal line different from the signal line through which the first signal of the USB cable is transmitted and related to the identification of the opposing device of the USB connector. It is determined whether or not the opposing device has a USB communication function, and the type of the opposing device is identified based on the determination result, and the opposing device is identified by an upper limit feeding current corresponding to the opposing device of the identified type. And a control unit for supplying power to the device.

本発明の給電方法は、USBケーブルにより対向機器と接続されたUSBコネクタの電力の供給に関連する第1の信号に基づいて前記対向機器に給電機能がないと判断した場合、前記USBケーブルの前記第1の信号の送信される信号線と異なる信号線を介して送信され、前記USBコネクタの前記対向機器の識別に関連する第2の信号に基づいて前記対向機器がUSB通信機能を持つか否かを判断し、この判断結果に基づいて前記対向機器の種別を同定し、この同定した種別の前記対向機器に応じた上限値の給電電流によって前記対向機器に給電ようにしている。   When the power supply method of the present invention determines that the counter device does not have a power supply function based on the first signal related to the power supply of the USB connector connected to the counter device by the USB cable, the power supply method of the USB cable Whether or not the opposite device has a USB communication function based on a second signal transmitted through a signal line different from the signal line to which the first signal is transmitted and related to the identification of the opposite device of the USB connector Based on the determination result, the type of the opposing device is identified, and power is supplied to the opposing device by a power supply current of an upper limit value corresponding to the identified type of the opposing device.

本発明によれば、対向機器に適合した給電電流で対向機器に給電できる携帯端末機器及び給電方法を提供することができる。   ADVANTAGE OF THE INVENTION According to this invention, the portable terminal device and electric power feeding method which can be electrically fed to an opposing apparatus with the feeding current suitable for the opposing apparatus can be provided.

本発明の第1の実施の形態に係る携帯端末機器の一例を示す図である。It is a figure which shows an example of the portable terminal device which concerns on the 1st Embodiment of this invention. 本発明の第2の実施の形態に係る携帯端末機器の一例を示す図である。It is a figure which shows an example of the portable terminal device which concerns on the 2nd Embodiment of this invention. 本発明の第2の実施の形態の携帯端末機器の動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation | movement of the portable terminal device of the 2nd Embodiment of this invention. 本発明の第3の実施の形態に係る携帯端末機器の一例を示す図である。It is a figure which shows an example of the portable terminal device which concerns on the 3rd Embodiment of this invention. 本発明の第3の実施の形態の携帯端末機器の動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation | movement of the portable terminal device of the 3rd Embodiment of this invention. 本発明の第4の実施の形態に係る携帯端末機器の一例を示す図である。It is a figure which shows an example of the portable terminal device which concerns on the 4th Embodiment of this invention. 本発明の第4の実施の形態の携帯端末機器の動作の一例を示す第1フローチャートである。It is a 1st flowchart which shows an example of operation | movement of the portable terminal device of the 4th Embodiment of this invention. 本発明の第4の実施の形態の携帯端末機器の動作の一例を示す第2フローチャートである。It is a 2nd flowchart which shows an example of operation | movement of the portable terminal device of the 4th Embodiment of this invention.

次に、本発明の実施の形態について図面を参照して説明する。
(第1の実施の形態)
図1は、本発明の第1の実施の形態に係る携帯端末機器の一例を示す図である。
Next, embodiments of the present invention will be described with reference to the drawings.
(First embodiment)
FIG. 1 is a diagram illustrating an example of a mobile terminal device according to the first embodiment of the present invention.

本実施の形態に係る携帯端末機器1は、USBコネクタ3と、制御部2とにより構成される。   A mobile terminal device 1 according to the present embodiment includes a USB connector 3 and a control unit 2.

USBコネクタ3は、対向機器とUSBケーブルを介して接続する。制御部2は、対向機器と接続されたUSBコネクタ3の電力の供給に関連する第1の信号に基づいて対向機器に給電機能があるか否かを調べる。そして、対向機器に給電機能がないと判断した場合、USBコネクタ3の対向機器の識別に関連する第2の信号に基づいて対向機器がUSB通信機能を持つか否かを判断する。第1の信号と第2の信号は、USBケーブルの別々の信号線を介して互いに独立して送信される信号である。そして、この判断結果に基づいて対向機器の種別を同定し、この同定した種別の対向機器に応じた上限値の給電電流によって対向機器に給電する。   The USB connector 3 is connected to the opposite device via a USB cable. The control unit 2 checks whether or not the opposing device has a power supply function based on the first signal related to the power supply of the USB connector 3 connected to the opposing device. If it is determined that the opposing device does not have a power supply function, it is determined whether the opposing device has a USB communication function based on the second signal related to identification of the opposing device of the USB connector 3. The first signal and the second signal are signals that are transmitted independently from each other via separate signal lines of the USB cable. Then, the type of the opposing device is identified based on the determination result, and power is supplied to the opposing device with an upper limit supply current corresponding to the identified type of the opposing device.

ここで、本発明の第1の実施の形態に係る携帯端末機器の動作を説明する。   Here, the operation of the portable terminal device according to the first embodiment of the present invention will be described.

携帯端末機器1が、USBコネクタ3に接続されたUSBケーブルにより対向機器と接続される。すると、制御部2が、対向機器と接続されたUSBコネクタ3の第1の信号を調べる。第1の信号とは、電力の供給に関連する信号であり、対向機器が電力の供給可能な機器の場合、例えば所定の電圧(例えば5V)である。すなわち、制御部2は、第1の信号がHighレベル(例えば5V)かLowレベル(例えば0V)かを調べ、調べた結果、第1の信号がLowレベルである場合、対向機器に給電機能がないと判断する。そして、制御部2は、USBコネクタ3の第2の信号を調べる。第2の信号とは、対向機器の識別に関連する信号であり、対向機器がホスト機器の場合は、対向機器からHighレベル(例えば5V)で供給される。また、対向機器がスレーブ機器の場合は、対向機器からLowレベル(例えば0V)で供給される。すなわち、制御部2は、第2の信号がHighレベルかLowレベルかを調べることによって、対向機器がホスト機器かスレーブ機器かを調べる。調べた結果、第2の信号がHighレベルの場合、制御部2は、対向機器は、給電機能を持たずUSB通信機能を持たないホスト機器であると判断する。そして、例えば、USB BC規格に従い、上限値を1500mAと定める。そして、制御部2は、Highレベル(例えば5V)の第2の信号を作成し、この作成した信号を、1500mAを上限値とした給電電流でUSBコネクタ3に出力して対向機器に給電する。また、調べた結果、第2の信号がLowレベルの場合、制御部2は、対向機器は、給電機能を持たずUSB通信機能を持つスレーブ機器であると判断する。そして、例えば、USB2.0規格に従い上限値を500mAと定める。そして、制御部2は、Highレベル(例えば5V)の第2の信号を作成し、この作成した信号を、500mAを上限値とした給電電流でUSBコネクタ3に出力して対向機器に給電する。   The mobile terminal device 1 is connected to the opposite device by a USB cable connected to the USB connector 3. Then, the control unit 2 checks the first signal of the USB connector 3 connected to the opposite device. The first signal is a signal related to power supply, and is, for example, a predetermined voltage (for example, 5 V) when the opposite device is a device capable of supplying power. That is, the control unit 2 checks whether the first signal is at a high level (for example, 5V) or a low level (for example, 0V), and if the first signal is at the low level as a result of checking, Judge that there is no. Then, the control unit 2 examines the second signal of the USB connector 3. The second signal is a signal related to identification of the opposing device. When the opposing device is a host device, the second signal is supplied from the opposing device at a high level (for example, 5 V). When the opposing device is a slave device, it is supplied at a low level (for example, 0 V) from the opposing device. That is, the control unit 2 checks whether the opposite device is a host device or a slave device by checking whether the second signal is High level or Low level. As a result of the examination, when the second signal is at a high level, the control unit 2 determines that the opposite device is a host device that does not have a power supply function and does not have a USB communication function. For example, the upper limit value is set to 1500 mA in accordance with the USB BC standard. And the control part 2 produces | generates the 2nd signal of High level (for example, 5V), and outputs this produced signal to the USB connector 3 with the electric power feeding electric current which used 1500 mA as an upper limit, and supplies electric power to an opposing apparatus. Further, as a result of the examination, when the second signal is at the low level, the control unit 2 determines that the opposite device is a slave device that does not have a power supply function but has a USB communication function. For example, the upper limit value is set to 500 mA in accordance with the USB 2.0 standard. And the control part 2 produces | generates the 2nd signal of a High level (for example, 5V), and outputs this produced signal to the USB connector 3 with the electric power feeding electric current which made 500 mA an upper limit, and it supplies electric power to an opposing apparatus.

このように、本発明の第1の実施の形態によれば、制御部により、対向機器と接続されたUSBコネクタの電力の供給に関連する第1の信号に基づいて対向機器に給電機能があるか否かを調べる。そして、対向機器に給電機能がないと判断した場合、USBコネクタの対向機器の識別に関連する第2の信号に基づいて対向機器がUSB通信機能を持つか否かを判断する。そして、この判断結果に基づいて対向機器の種別を同定し、この同定した種別の対向機器に応じた上限値の給電電流によって対向機器に給電する。   Thus, according to the first embodiment of the present invention, the opposing device has a power supply function based on the first signal related to the power supply of the USB connector connected to the opposing device by the control unit. Check whether or not. When it is determined that the opposing device does not have a power supply function, it is determined whether the opposing device has a USB communication function based on a second signal related to identification of the opposing device of the USB connector. Then, the type of the opposing device is identified based on the determination result, and power is supplied to the opposing device with an upper limit supply current corresponding to the identified type of the opposing device.

このため、本発明の第1の実施の形態によれば、対向機器に適合した給電電流で対向機器に給電することができる。
(第2の実施の形態)
図2は、本発明の第2の実施の形態に係る携帯端末機器の一例を示す図である。
For this reason, according to the first embodiment of the present invention, it is possible to supply power to the opposite device with a supply current suitable for the opposite device.
(Second Embodiment)
FIG. 2 is a diagram illustrating an example of a mobile terminal device according to the second embodiment of the present invention.

本第2の実施の形態は、第1の実施の形態の携帯端末機器の動作をより具体化したものである。したがって、主に第1の実施の形態と相違する部分について説明する。   The second embodiment is a more specific operation of the mobile terminal device of the first embodiment. Therefore, the difference from the first embodiment will be mainly described.

本実施の形態に係る携帯端末機器1は、USBコネクタ3と、制御部2とにより構成される。   A mobile terminal device 1 according to the present embodiment includes a USB connector 3 and a control unit 2.

USBコネクタ3は、対向機器にUSBケーブルを介して接続される。USBコネクタ3は、USB2.0規格に基づき、VBUS端子、USB_D−端子、USB_D+端子、及びUSB_ID端子の各端子を有する。VBUS端子は、対向機器に電力を供給する、あるいは対向機器から電力の供給を受けるための信号(VBUS)を扱う端子である。USB_D−端子及びUSB_/D+端子は、対向機器との間で通信を行うための信号(USB_D−、USB_/D+)を扱う端子である。また、携帯端末機器1側で、USB_D−信号とUSB_D+信号とがショートされていることを検出すると、USB BC(USB Battery Charging Specification Revision 1.2)規格に従い、携帯端末機器1は、対向機器を給電機器と判断する。また、携帯端末機器1側で、USB_D−信号とUSB_D+信号とをショートすると、USB BC規格に従い、対向機器は本携帯端末機器1を給電機器と判断する。USB_ID端子は、対向機器がホスト機器かスレーブ機器かを識別するための信号(USB_ID)を扱う端子である。そして、この信号(USB_ID)は、対向機器に給電機能がなく、対向機器がUSB通信機能を持つ場合、対向機器からLowレベルとして供給される。また、対向機器に給電機能がなく、対向機器がUSB通信機能を持たない場合、対向機器からHighレベル(例えば5V)として供給される。   The USB connector 3 is connected to the opposite device via a USB cable. The USB connector 3 has terminals of VBUS terminal, USB_D− terminal, USB_D + terminal, and USB_ID terminal based on the USB 2.0 standard. The VBUS terminal is a terminal that handles a signal (VBUS) for supplying power to or receiving power from the opposing device. The USB_D− terminal and the USB_ / D + terminal are terminals that handle signals (USB_D−, USB_ / D +) for performing communication with the opposite device. In addition, when the mobile terminal device 1 detects that the USB_D− signal and the USB_D + signal are short-circuited, the mobile terminal device 1 sets the opposite device in accordance with the USB BC (USB Battery Charging Specification Revision 1.2) standard. Judged as power supply equipment. Further, when the USB_D− signal and the USB_D + signal are short-circuited on the mobile terminal device 1 side, the opposite device determines that the mobile terminal device 1 is a power supply device according to the USB BC standard. The USB_ID terminal is a terminal that handles a signal (USB_ID) for identifying whether the opposite device is a host device or a slave device. This signal (USB_ID) is supplied as a low level from the opposing device when the opposing device does not have a power supply function and the opposing device has a USB communication function. When the opposite device does not have a power supply function and the opposite device does not have a USB communication function, the opposite device is supplied as a high level (for example, 5 V).

対向機器は、USBインタフェースを有するUSB機器であり、一般的に次の(a)から(d)の種別がある。(a)給電専用機器(例えば、ACアダプタ:給電機能のみ有する)。(b)パーソナルコンピュータ(PC)等のUSBホスト機器(給電機能及びUSB通信機能を持つ)。(c)USBデバイス(例えば、USBメモリ、USBマウス等のUSB通信機能を持つスレーブ機器。給電機能はない。電池を有する場合は、充電対象となる。)。(d)USB通信機能を持たないホスト機器(例えば、携帯電話、スマートフォン等。給電機能はない。電池を有する場合は、対象となる。)。   The opposing device is a USB device having a USB interface, and generally has the following types (a) to (d). (A) A dedicated power supply device (for example, an AC adapter: having only a power supply function). (B) A USB host device (having a power supply function and a USB communication function) such as a personal computer (PC). (C) A USB device (for example, a slave device having a USB communication function such as a USB memory or a USB mouse. There is no power supply function. If a battery is included, it is charged.) (D) A host device that does not have a USB communication function (for example, a mobile phone, a smartphone, etc., which does not have a power feeding function.

次に、本発明の第2の実施の形態に係る携帯端末機器1の動作を、図3を参照して詳細に説明する。   Next, the operation of the mobile terminal device 1 according to the second embodiment of the present invention will be described in detail with reference to FIG.

図3は、本発明の第2の実施の形態の携帯端末機器の動作の一例を示すフローチャートである。   FIG. 3 is a flowchart showing an example of the operation of the mobile terminal device according to the second embodiment of the present invention.

携帯端末機器1は、電源として例えば充電可能な電池(不図示)を備えている。携帯端末機器1が、USBコネクタ3に接続されたUSBケーブルにより対向機器と接続される。   The mobile terminal device 1 includes, for example, a rechargeable battery (not shown) as a power source. The mobile terminal device 1 is connected to the opposite device by a USB cable connected to the USB connector 3.

すると、図3のステップS1では、制御部2が、対向機器と接続されたUSBコネクタ3の第1の信号を調べる。第1の信号とは、VBUS端子の信号(VBUS)であり、対向機器が電力の供給可能な機器の場合、このVBUS端子を介して対向機器から所定の電圧(例えば5V)が供給される。すなわち、制御部2は、VBUSがHighレベル(例えば5V)かLowレベル(例えば0V)かを調べ、対向機器から供給される電圧の有無を検出する。調べた結果、VBUSがHighレベルである場合、対向機器に給電機能があると判断し、ステップS5へ進む。調べた結果、VBUSがLowレベルである場合、対向機器に給電機能がないと判断し、ステップS2へ進む。   Then, in step S1 of FIG. 3, the control unit 2 checks the first signal of the USB connector 3 connected to the opposite device. The first signal is a signal (VBUS) at the VBUS terminal. When the opposite device is a device capable of supplying power, a predetermined voltage (for example, 5 V) is supplied from the opposite device via the VBUS terminal. That is, the control unit 2 checks whether VBUS is a high level (for example, 5 V) or a low level (for example, 0 V), and detects the presence or absence of a voltage supplied from the opposite device. As a result of the examination, if VBUS is at a high level, it is determined that the opposing device has a power supply function, and the process proceeds to step S5. As a result of the examination, if VBUS is at the low level, it is determined that the opposing device does not have a power supply function, and the process proceeds to step S2.

図3のステップS2では、制御部2は、USBコネクタ3の第2の信号を調べる。第2の信号とは、USB_ID端子の信号(USB_ID)である。対向機器がホスト機器の場合は、対向機器からUSB_ID端子にHighレベル(例えば5V)が供給される。また、対向機器がスレーブ機器の場合は、対向機器からUSB_ID端子にLowレベル(例えば0V)が供給される。すなわち、制御部2は、USB_IDがHighレベルかLowレベルかを調べることによって、対向機器がホスト機器かスレーブ機器かを調べる。調べた結果、USB_ID端子にHighレベルが供給されている場合、ステップS3へ進む。調べた結果、USB_ID端子にLowレベルが供給されている場合、ステップS4へ進む。   In step S <b> 2 of FIG. 3, the control unit 2 examines the second signal of the USB connector 3. The second signal is a signal (USB_ID) of the USB_ID terminal. When the opposite device is a host device, a high level (for example, 5 V) is supplied from the opposite device to the USB_ID terminal. When the opposite device is a slave device, a low level (for example, 0 V) is supplied from the opposite device to the USB_ID terminal. That is, the control unit 2 checks whether the opposite device is a host device or a slave device by checking whether the USB_ID is a high level or a low level. As a result of the examination, if the High level is supplied to the USB_ID terminal, the process proceeds to step S3. As a result of the examination, if the Low level is supplied to the USB_ID terminal, the process proceeds to step S4.

図3のステップS3では、制御部2は、対向機器は、給電機能を持たずUSB通信機能を持たないホスト機器であり、例えば携帯電話、スマートフォン等である(種別(d)の対向機器)と判断する。そして、例えば、上限値を1500mAと定める。このとき、制御部2は、USB_D−信号とUSB_D+信号とショートさせる。このようにすると、対向機器は、USB BC規格に従い、携帯端末機器1を給電機器と判断し、携帯端末機器1から最大1500mAの給電電流が供給されると想定する。そして、制御部2は、Highレベル(例えば5V)のVBUS信号を作成し、この作成した信号を、1500mAを上限値とした給電電流でUSBコネクタ3(VBUS端子)に出力して対向機器に給電し、終了する。   In step S3 of FIG. 3, the control unit 2 determines that the opposite device is a host device that does not have a power supply function and does not have a USB communication function, such as a mobile phone or a smartphone (type (d) opposite device). to decide. For example, the upper limit value is set to 1500 mA. At this time, the control unit 2 short-circuits the USB_D− signal and the USB_D + signal. In this way, it is assumed that the opposing device determines that the mobile terminal device 1 is a power supply device in accordance with the USB BC standard, and a power supply current of up to 1500 mA is supplied from the mobile terminal device 1. Then, the control unit 2 creates a high-level (for example, 5V) VBUS signal, outputs the created signal to the USB connector 3 (VBUS terminal) with a feeding current with 1500 mA as the upper limit, and feeds power to the opposite device. And exit.

図3のステップS4では、制御部2は、対向機器は、給電機能を持たずUSB通信機能を持つスレーブ機器であり、例えばUSBメモリ等のUSBデバイスである(種別(c)の対向機器)と判断し、例えば、USB2.0規格に従い上限値を500mAと定める。そして、Highレベル(例えば5V)のVBUS信号を作成し、この作成した信号を、500mAを上限値とした給電電流でUSBコネクタ3(VBUS端子)に出力して対向機器に給電し、終了する。   In step S4 in FIG. 3, the control unit 2 determines that the opposing device is a slave device that does not have a power feeding function and has a USB communication function, such as a USB device such as a USB memory (type (c) opposing device). For example, the upper limit value is set to 500 mA in accordance with the USB 2.0 standard. Then, a VBUS signal having a high level (for example, 5 V) is generated, and the generated signal is output to the USB connector 3 (VBUS terminal) with a power supply current having an upper limit of 500 mA to supply power to the opposite device, and the process ends.

図3のステップS5では、制御部2は、対向機器は、給電機能を持つ対向機器(種別(a)又は(b))であると判断し、対向機器からVBUS端子に供給されたHighレベル(例えば5V)のVBUS信号により、自身の携帯端末機器1の電源である電池(不図示)を充電し、終了する。   In step S5 in FIG. 3, the control unit 2 determines that the opposing device is an opposing device (type (a) or (b)) having a power feeding function, and the High level (from the opposing device to the VBUS terminal) ( For example, the battery (not shown) which is the power source of the mobile terminal device 1 is charged by the VBUS signal of 5 V) and the process is terminated.

このように、本発明の第2の実施の形態によれば、制御部により、対向機器と接続されたUSBコネクタの電力の供給に関連する第1の信号に基づいて対向機器に給電機能があるか否かを調べる。そして、対向機器に給電機能がないと判断した場合、USBコネクタの対向機器の識別に関連する第2の信号に基づいて対向機器がUSB通信機能を持つか否かを判断する。そして、この判断結果に基づいて対向機器の種別を同定し、この同定した種別の対向機器に応じた上限値の給電電流によって対向機器に給電する。   Thus, according to the second embodiment of the present invention, the opposing device has a power supply function based on the first signal related to the power supply of the USB connector connected to the opposing device by the control unit. Check whether or not. When it is determined that the opposing device does not have a power supply function, it is determined whether the opposing device has a USB communication function based on a second signal related to identification of the opposing device of the USB connector. Then, the type of the opposing device is identified based on the determination result, and power is supplied to the opposing device with an upper limit supply current corresponding to the identified type of the opposing device.

このため、本発明の第2の実施の形態によれば、対向機器に適合した給電電流で対向機器に給電することができる。
(第3の実施の形態)
図4は、本発明の第3の実施の形態に係る携帯端末機器の一例を示す図である。
For this reason, according to the 2nd Embodiment of this invention, it can supply electric power to an opposing apparatus with the feeding current suitable for the opposing apparatus.
(Third embodiment)
FIG. 4 is a diagram illustrating an example of a mobile terminal device according to the third embodiment of the present invention.

この図4は、図2で示した携帯端末機器1に電池を付加したものである。また、制御部2を具体化している。   In FIG. 4, a battery is added to the mobile terminal device 1 shown in FIG. Further, the control unit 2 is embodied.

本第3の実施の形態は、第2の実施の形態の携帯端末機器の動作をより具体化したものである。したがって、主に第2の実施の形態と相違する部分について説明する。   The third embodiment is a more specific operation of the mobile terminal device of the second embodiment. Therefore, the difference from the second embodiment will be mainly described.

本実施の形態に係る携帯端末機器1は、USBコネクタ3と、制御部2と、電池6とにより構成される。制御部2は、第1の制御部4と、第2の制御部5により構成される。   The mobile terminal device 1 according to the present embodiment includes a USB connector 3, a control unit 2, and a battery 6. The control unit 2 includes a first control unit 4 and a second control unit 5.

電池6は、充電可能であり、自身の携帯端末機器1の電源として稼働する。   The battery 6 can be charged and operates as a power source for its own mobile terminal device 1.

第1の制御部4は、第1の信号が所定のLowレベルの場合、対向機器が電力の供給が可能又は不能な機器であることを示す供給可否通知信号を、対向機器が電力の供給が不能な機器であることを示すLowレベルとして出力し、この出力に対応して対向機器に対する給電を指示する給電指示信号と給電電流の上限値を受ける。そして、所定のHighレベルの第1の信号を作成し、この作成した第1の信号を上限値の給電電流でUSBコネクタ3に出力して対向機器に給電する。   When the first signal is at a predetermined low level, the first control unit 4 provides a supply availability notification signal indicating that the opposite device is a device that can supply power or cannot supply power, and the opposite device supplies power. A low level indicating that the device is not possible is output, and a power supply instruction signal for instructing power supply to the opposite device and an upper limit value of the power supply current are received corresponding to this output. Then, a first signal having a predetermined high level is generated, and the generated first signal is output to the USB connector 3 with an upper limit supply current to supply power to the opposite device.

第2の制御部5は、Lowレベルの供給可否通知信号を受けて対向機器に給電機能がないと判断し、第1の制御部4に給電指示信号を出力する。そして、第2の信号の状態に基づいて対向機器がUSB通信機能を持つか否かを判断し、この判断結果に基づいて給電電流の上限値を定める。そして、この定めた上限値を第1の制御部4に出力する。   The second control unit 5 receives the Low level supply availability notification signal, determines that the opposing device has no power supply function, and outputs a power supply instruction signal to the first control unit 4. Then, based on the state of the second signal, it is determined whether the opposing device has a USB communication function, and the upper limit value of the feeding current is determined based on the determination result. The determined upper limit value is output to the first control unit 4.

次に、本発明の第3の実施の形態に係る携帯端末機器1の動作を、図5を参照して詳細に説明する。   Next, the operation of the mobile terminal device 1 according to the third embodiment of the present invention will be described in detail with reference to FIG.

図5は、本発明の第2の実施の形態の携帯端末機器の動作の一例を示すフローチャートである。   FIG. 5 is a flowchart showing an example of the operation of the mobile terminal device according to the second embodiment of the present invention.

携帯端末機器1が、USBコネクタ3に接続されたUSBケーブルにより対向機器と接続される。   The mobile terminal device 1 is connected to the opposite device by a USB cable connected to the USB connector 3.

すると、図5のステップS1では、第1の制御部4が、対向機器と接続されたUSBコネクタ3の第1の信号(VBUS)がHighレベル(例えば5V)かLowレベル(例えば0V)かを調べ、対向機器から供給される電圧の有無を検出する。調べた結果、VBUSがHighレベルである場合、対向機器に給電機能があると判断し、ステップS8へ進む。調べた結果、VBUSがLowレベルである場合、対向機器に給電機能がないと判断し、ステップS2へ進む。   Then, in step S1 of FIG. 5, the first control unit 4 determines whether the first signal (VBUS) of the USB connector 3 connected to the opposite device is High level (for example, 5V) or Low level (for example, 0V). Examine and detect the presence or absence of voltage supplied from the opposite device. As a result of the examination, if VBUS is at a high level, it is determined that the opposing device has a power supply function, and the process proceeds to step S8. As a result of the examination, if VBUS is at the low level, it is determined that the opposing device does not have a power supply function, and the process proceeds to step S2.

図5のステップS2では、第1の制御部4は、Lowレベルの供給可否通知信号を出力し、ステップS3へ進む。   In Step S2 of FIG. 5, the first control unit 4 outputs a Low level supply availability notification signal, and proceeds to Step S3.

図5のステップS3では、第2の制御部5は、Lowレベルの供給可否通知信号を受け、対向機器に給電機能がないと判断し、第1の制御部4に給電指示信号を出力しステップS4へ進む。   In step S3 of FIG. 5, the second control unit 5 receives the low level supply availability notification signal, determines that the opposing device does not have a power supply function, and outputs a power supply instruction signal to the first control unit 4. Proceed to S4.

図5のステップS4では、第2の制御部5は、第2の信号(USB_ID)がHighレベルかLowレベルかを調べ、対向機器がホスト機器かスレーブ機器かを調べる。調べた結果、USB_ID端子にHighレベルが供給されている場合、ステップS5へ進む。調べた結果、USB_ID端子にLowレベルが供給されている場合、ステップS6へ進む。   In step S4 in FIG. 5, the second control unit 5 checks whether the second signal (USB_ID) is a high level or a low level, and checks whether the opposite device is a host device or a slave device. As a result of checking, if the High level is supplied to the USB_ID terminal, the process proceeds to step S5. As a result of the examination, if the Low level is supplied to the USB_ID terminal, the process proceeds to step S6.

図5のステップS5では、第2の制御部5は、対向機器は、給電機能を持たずUSB通信機能を持たないホスト機器であり、例えば携帯電話、スマートフォン等である(種別(d)の対向機器)と判断し、例えば、上限値を1500mAと定める。そして、第2の制御部5は、USB_D−信号とUSB_D+信号とをショートさせる。このようにすると、対向機器は、USB BC規格に従い、携帯端末機器1を給電機器と判断し、携帯端末機器1から最大1500mAの給電電流が供給されると想定する。そして、第2の制御部5は、この上限値(1500mA)を第1の制御部4に出力する。そして、ステップS7へ進む。   In step S5 of FIG. 5, the second control unit 5 is a host device that does not have a power supply function and does not have a USB communication function, such as a mobile phone or a smartphone (type (d) facing). For example, the upper limit value is set to 1500 mA. Then, the second control unit 5 short-circuits the USB_D− signal and the USB_D + signal. In this way, it is assumed that the opposing device determines that the mobile terminal device 1 is a power supply device in accordance with the USB BC standard, and a power supply current of up to 1500 mA is supplied from the mobile terminal device 1. Then, the second control unit 5 outputs this upper limit value (1500 mA) to the first control unit 4. Then, the process proceeds to step S7.

図5のステップS6では、第2の制御部5は、対向機器は、給電機能を持たずUSB通信機能を持つスレーブ機器であり、例えばUSBメモリ等のUSBデバイスである(種別(c)の対向機器)と判断し、例えば、USB2.0規格に従い上限値を500mAと定める。そして、この上限値(500mA)を第1の制御部4に出力し、ステップS7へ進む。   In step S6 of FIG. 5, the second control unit 5 is a slave device having a USB communication function without a power supply function, for example, a USB device such as a USB memory (type (c) facing For example, the upper limit value is set to 500 mA in accordance with the USB 2.0 standard. And this upper limit (500 mA) is output to the 1st control part 4, and it progresses to step S7.

図5のステップS7では、第1の制御部4は、第2の制御部5がステップS3で出力した給電指示信号と、ステップS5又はステップS6で出力した上限値(1500mA又は500mA)を第2の制御部5から受け、Highレベル(例えば5V)のVBUS信号を作成し、この作成した信号を、第2の制御部5から受けた上限値を上限とした給電電流でUSBコネクタ3(VBUS端子)に出力して対向機器に給電する。   In step S7 of FIG. 5, the first control unit 4 outputs the power supply instruction signal output by the second control unit 5 in step S3 and the upper limit value (1500 mA or 500 mA) output in step S5 or step S6. The VBUS signal of high level (for example, 5V) is generated from the control unit 5 of the USB connector 3 (VBUS terminal 3) with a power supply current whose upper limit is the upper limit value received from the second control unit 5. ) To supply power to the opposite device.

第1の制御部4は、対向機器に給電しているとき、給電電流を監視し、給電電流が所定時間、所定値より高い場合給電を停止する。ここで、所定時間は、例えば、30秒である。また、所定値は、上限値の例えば95%の値である。この所定時間及び所定値は、これらの値にこだわることなく、携帯端末機器により適宜変更して良い。また、第1の制御部4は、対向機器に給電しているとき、電池6の残量(例えば電池6の電圧)を監視し、電池6の残量が所定値より低くなった場合給電を停止する。この所定値は、例えば、満充電時の残量(例えば5V)の70%の値である。この値にこだわることなく、携帯端末機器により適宜変更して良い。   The first control unit 4 monitors the feeding current when feeding power to the opposite device, and stops feeding when the feeding current is higher than a predetermined value for a predetermined time. Here, the predetermined time is, for example, 30 seconds. The predetermined value is, for example, 95% of the upper limit value. The predetermined time and the predetermined value may be appropriately changed depending on the mobile terminal device without being particular about these values. Further, the first control unit 4 monitors the remaining amount of the battery 6 (for example, the voltage of the battery 6) when supplying power to the opposite device, and supplies power when the remaining amount of the battery 6 becomes lower than a predetermined value. Stop. This predetermined value is, for example, a value of 70% of the remaining amount (for example, 5 V) at the time of full charge. You may change suitably with a portable terminal device, without sticking to this value.

図5のステップS8では、第1の制御部4は、対向機器は給電機能を持つ機器(種別(a)又は(b))であると判断し、対向機器からVBUS端子に供給されたHighレベル(例えば5V)のVBUS信号により、自身の携帯端末機器1の電源である電池6を充電する。   In step S8 of FIG. 5, the first control unit 4 determines that the opposing device is a device having the power feeding function (type (a) or (b)), and is at the High level supplied from the opposing device to the VBUS terminal. The battery 6 that is the power source of the mobile terminal device 1 is charged by a VBUS signal (for example, 5 V).

このように、本発明の第3の実施の形態によれば、第2の制御部により、対向機器と接続されたUSBコネクタの電力の供給に関連する第1の信号に基づいて対向機器に給電機能があるか否かを調べる。そして、対向機器に給電機能がないと判断した場合、USBコネクタの対向機器の識別に関連する第2の信号に基づいて対向機器がUSB通信機能を持つか否かを判断する。そして、この判断結果に基づいて対向機器の種別を同定し、この同定した種別の対向機器に応じた給電電流の上限値を定める。そして、第1の制御部により、第2の制御部が定めた給電電流の上限値を上限とした給電電流によって対向機器に給電する。   As described above, according to the third embodiment of the present invention, the second control unit supplies power to the opposing device based on the first signal related to the power supply of the USB connector connected to the opposing device. Check for functionality. When it is determined that the opposing device does not have a power supply function, it is determined whether the opposing device has a USB communication function based on a second signal related to identification of the opposing device of the USB connector. Then, the type of the opposing device is identified based on the determination result, and an upper limit value of the feeding current according to the identified type of the opposing device is determined. Then, the first control unit supplies power to the opposing device with a supply current whose upper limit is the upper limit value of the supply current determined by the second control unit.

このため、本発明の第3の実施の形態によれば、対向機器に適合した給電電流で対向機器に給電することができる。
(第4の実施の形態)
図6は、本発明の第4の実施の形態に係る携帯端末機器の一例を示す図である。
For this reason, according to the 3rd Embodiment of this invention, it can supply electric power to an opposing apparatus with the feeding current suitable for the opposing apparatus.
(Fourth embodiment)
FIG. 6 is a diagram illustrating an example of a mobile terminal device according to the fourth embodiment of the present invention.

この図6は、図4で示した携帯端末機器1の第1の制御部4を具体化したものである。したがって、本第4の実施の形態は、第3の実施の形態の携帯端末機器1の動作をより具体化したものである。このため、主に第3の実施の形態と相違する部分について説明する。   FIG. 6 illustrates the first control unit 4 of the mobile terminal device 1 shown in FIG. Therefore, the fourth embodiment is a more specific operation of the mobile terminal device 1 according to the third embodiment. For this reason, the difference from the third embodiment will be mainly described.

本実施の形態に係る携帯端末機器1は、USBコネクタ3と、第1の制御部4と、第2の制御部5と、電池6とにより構成される。第1の制御部4は、充電部7と、給電部8とにより構成される。図6には、USBコネクタ3のUSB_D−信号とUSB_D+信号を第2の制御部5に接続するバススイッチ9と、充電部7から受けた電力に基づいて本携帯端末機器1全体に電力を供給する電源部10も記載してある。   The mobile terminal device 1 according to the present embodiment includes a USB connector 3, a first control unit 4, a second control unit 5, and a battery 6. The first control unit 4 includes a charging unit 7 and a power feeding unit 8. In FIG. 6, power is supplied to the entire mobile terminal device 1 based on the power received from the bus switch 9 that connects the USB_D− signal and the USB_D + signal of the USB connector 3 to the second control unit 5 and the charging unit 7. A power supply 10 to be supplied is also described.

電池6は、充電部7に電圧VBAT(例えば、満充電時に5V。この値にこだわらず、携帯端末機器に応じて変更して良い。)の電力を供給する。そして、充電部7は、この供給された電力を携帯端末機器1の内部用のシステム電圧VSYS(例えば、2.5V。この値にこだわらず、携帯端末機器に応じて変更して良い。)に変えて給電部8と電源部10に供給する。電源部10はこのVSYSを本携帯端末機器1内部の各所で必要な電力にそれぞれ変換し、この電力を本携帯端末機器1全体へ供給する。   The battery 6 supplies power to the charging unit 7 with a voltage VBAT (for example, 5 V when fully charged. This value may be changed according to the mobile terminal device regardless of this value). Then, the charging unit 7 changes the supplied power to the internal system voltage VSYS (for example, 2.5 V. The value may be changed according to the mobile terminal device regardless of this value). It changes and supplies to the electric power feeding part 8 and the power supply part 10. FIG. The power supply unit 10 converts this VSYS into necessary power at various locations inside the mobile terminal device 1 and supplies this power to the entire mobile terminal device 1.

充電部7は、第1の信号(UBUS)を、USBコネクタ3を介して受け、このUBUS信号が所定のLowレベルの場合、供給可否通知信号をLowレベルにして第2の制御部5に出力する。また、このUBUS信号が所定のHighレベルの場合、供給可否通知信号を、対向機器が電力の供給が可能な機器であることを示すHighレベルにして第2の制御部5に出力する。そして、第2の制御部5から、充電指示信号を受け、対向機器からVBUS端子に供給されたHighレベル(例えば5V)のVBUS信号により、電池6を充電する。   The charging unit 7 receives the first signal (UBUS) via the USB connector 3, and when the UBUS signal is at a predetermined low level, sets the supply availability notification signal to the low level and outputs it to the second control unit 5. To do. When the UBUS signal is at a predetermined high level, the supply availability notification signal is set to a high level indicating that the opposite device is a device capable of supplying power and is output to the second control unit 5. Then, the battery 6 is charged by a High level (for example, 5 V) VBUS signal supplied from the opposite device to the VBUS terminal upon receiving a charge instruction signal from the second control unit 5.

給電部8は、第2の制御部5から、充電部7が出力したLowレベルの供給可否通知信号に対応して給電を指示する給電指示信号と給電電流の上限値を受け、所定のHighレベルの第1の信号(UBUS)を作成する。そして、この作成した第1の信号(UBUS)を、上限値を上限とした給電電流でUSBコネクタ3に出力して対向機器に給電する。   The power supply unit 8 receives a power supply instruction signal instructing power supply and an upper limit value of the power supply current in response to the Low level supply availability notification signal output from the charging unit 7 from the second control unit 5, and receives a predetermined High level. The first signal (UBUS) is generated. Then, the created first signal (UBUS) is output to the USB connector 3 with a feeding current having an upper limit as an upper limit to feed the opposing device.

次に、本発明の第4の実施の形態に係る携帯端末機器1の動作を、図7及び図8を参照して詳細に説明する。   Next, the operation of the mobile terminal device 1 according to the fourth embodiment of the present invention will be described in detail with reference to FIG. 7 and FIG.

図7は、本発明の第4の実施の形態の携帯端末機器の動作の一例を示す第1フローチャートである。   FIG. 7 is a first flowchart showing an example of the operation of the mobile terminal device according to the fourth embodiment of the present invention.

図8は、本発明の第4の実施の形態の携帯端末機器の動作の一例を示す第2フローチャートである。   FIG. 8 is a second flowchart showing an example of the operation of the mobile terminal device according to the fourth embodiment of the present invention.

携帯端末機器1が、USBコネクタ3に接続されたUSBケーブルにより対向機器と接続される。   The mobile terminal device 1 is connected to the opposite device by a USB cable connected to the USB connector 3.

すると、図7のステップS1では、充電部7が、対向機器と接続されたUSBコネクタ3の第1の信号(VBUS)がHighレベル(例えば5V)かLowレベル(例えば0V)かを調べ、対向機器から供給される電圧の有無を検出する。調べた結果、VBUSがHighレベルである場合、図8のステップS12へ進む。調べた結果、VBUSがLowレベルである場合、ステップS2へ進む。   Then, in step S1 of FIG. 7, the charging unit 7 checks whether the first signal (VBUS) of the USB connector 3 connected to the opposite device is a high level (for example, 5V) or a low level (for example, 0V). Detects the presence or absence of voltage supplied from the device. As a result of the examination, if VBUS is at the high level, the process proceeds to step S12 in FIG. As a result of the examination, if VBUS is at the low level, the process proceeds to step S2.

図7のステップS2では、充電部7は、対向機器に給電機能がないと判断(対向機器は種別(c)又は(d)の機器であると判断)し、Lowレベルの供給可否通知信号を第2の制御部5に出力し、ステップS3へ進む。   In step S2 of FIG. 7, the charging unit 7 determines that the opposing device does not have a power supply function (determines that the opposing device is a device of type (c) or (d)), and outputs a Low level supply availability notification signal. The data is output to the second control unit 5, and the process proceeds to step S3.

図7のステップS3では、第2の制御部5は、Lowレベルの供給可否通知信号を受け、対向機器に給電機能がないと判断し、第1の制御部4の給電部8に給電指示信号を出力しステップS4へ進む。   In step S3 of FIG. 7, the second control unit 5 receives the low level supply availability notification signal, determines that the opposing device does not have a power supply function, and supplies a power supply instruction signal to the power supply unit 8 of the first control unit 4. And proceeds to step S4.

図7のステップS4では、第2の制御部5は、第2の信号(USB_ID)がHighレベルかLowレベルかを調べ、対向機器がホスト機器かスレーブ機器かを調べる。調べた結果、USB_ID端子にHighレベルが供給されている場合、ステップS5へ進む。調べた結果、USB_ID端子にLowレベルが供給されている場合、ステップS6へ進む。   In step S4 in FIG. 7, the second control unit 5 checks whether the second signal (USB_ID) is a high level or a low level, and checks whether the opposite device is a host device or a slave device. As a result of checking, if the High level is supplied to the USB_ID terminal, the process proceeds to step S5. As a result of the examination, if the Low level is supplied to the USB_ID terminal, the process proceeds to step S6.

図7のステップS5では、第2の制御部5は、対向機器は、給電機能を持たずUSB通信機能を持たないホスト機器であり、例えば携帯電話、スマートフォン等である(種別(d)の対向機器)と判断し、例えば、上限値を1500mAと定める。そして、第2の制御部5は、例えば、第1の制御部4のバススイッチ9にUSB_D−信号とUSB_D+信号をショートさせる信号を送り、バススイッチ9にUSB_D−信号とUSB_D+信号とをショートさせる。このようにすると、対向機器は、USB BC規格に従い、携帯端末機器1を給電機器と判断し、携帯端末機器1から最大1500mAの給電電流が供給されると想定する。そして、第2の制御部5は、この上限値(1500mA)を給電部8に出力する。そして、ステップS7へ進む。   In step S5 in FIG. 7, the second control unit 5 is a host device that does not have a power supply function and does not have a USB communication function, such as a mobile phone or a smartphone (type (d) facing). For example, the upper limit value is set to 1500 mA. Then, for example, the second control unit 5 sends a signal for shorting the USB_D− signal and the USB_D + signal to the bus switch 9 of the first control unit 4 and shorts the USB_D− signal and the USB_D + signal to the bus switch 9. . In this way, it is assumed that the opposing device determines that the mobile terminal device 1 is a power supply device in accordance with the USB BC standard, and a power supply current of up to 1500 mA is supplied from the mobile terminal device 1. Then, the second control unit 5 outputs this upper limit value (1500 mA) to the power supply unit 8. Then, the process proceeds to step S7.

図7のステップS6では、第2の制御部5は、対向機器は、給電機能を持たずUSB通信機能を持つスレーブ機器であり、例えばUSBメモリ等のUSBデバイスである(種別(c)の対向機器)と判断し、例えば、USB2.0規格に従い上限値を500mAと定める。そして、第2の制御部5は、この上限値(500mA)を給電部8に出力する。そして、ステップS7へ進む。   In step S6 of FIG. 7, the second control unit 5 is a slave device having a USB communication function without a power supply function, such as a USB device such as a USB memory (type (c) facing). For example, the upper limit value is set to 500 mA in accordance with the USB 2.0 standard. Then, the second control unit 5 outputs this upper limit value (500 mA) to the power supply unit 8. Then, the process proceeds to step S7.

図7のステップS7では、給電部8は、第2の制御部5がステップS3で出力した給電指示信号と、ステップS5又はステップS6で出力した上限値(1500mA又は500mA)を第2の制御部5から受ける。そして、給電部8は、充電部7が受けた電池6の電圧(VBAT)に基づいて作成したシステム電圧(VSYS)を、例えば昇圧電源(不図示)により昇圧して、所定のHighレベル(例えば5V)のVBUS信号を作成する。そして、この作成した信号を、第2の制御部5から受けた上限値を上限とした給電電流でUSBコネクタ3(VBUS端子)に出力して対向機器に給電する。   In step S7 of FIG. 7, the power supply unit 8 uses the power supply instruction signal output by the second control unit 5 in step S3 and the upper limit value (1500 mA or 500 mA) output in step S5 or step S6 as the second control unit. Receive from 5. Then, the power supply unit 8 boosts the system voltage (VSYS) created based on the voltage (VBAT) of the battery 6 received by the charging unit 7 by, for example, a boost power source (not shown), to a predetermined High level (for example, 5V) VBUS signal is created. Then, the generated signal is output to the USB connector 3 (VBUS terminal) with a feeding current having an upper limit value received from the second control unit 5 as an upper limit, and is fed to the opposite device.

図7のステップS8では、給電部8は、対向機器に給電しているとき、給電電流を監視し、給電電流が所定時間、所定値より高いか否かを調べる。調べた結果、所定時間、所定値より高くない場合、ステップS9へ進む。調べた結果、所定時間、所定値より高い場合、異常と判断し、ステップS11へ進む。   In step S8 of FIG. 7, when the power supply unit 8 supplies power to the opposite device, the power supply unit 8 monitors the power supply current and checks whether the power supply current is higher than a predetermined value for a predetermined time. As a result of the examination, if it is not higher than the predetermined value for a predetermined time, the process proceeds to step S9. As a result of the examination, if it is higher than the predetermined value for a predetermined time, it is determined that there is an abnormality, and the process proceeds to step S11.

ここで、給電電流が所定時間、所定値より高いか否かは、例えば次のように調べる。すなわち、給電電流を流す経路に、例えば、電流制限機能を有するパワースイッチ(不図示)を設ける。そして、このパワースイッチにより、対向機器の給電中に給電電流を監視し、給電電流が所定値よりも多い期間の間例えば給電電流オーバー信号(Highレベルの信号)を出力し、タイマ(不図示)にこの期間を測定させる。そして、この期間が所定時間より多くなった場合、パワースイッチを遮断し、対向機器への給電を停止する。このことにより、給電電流が、充電部7や昇圧電源の最大出力電流値を超えないようにすることができ、充電部7や昇圧電源を保護することができる。ここで、所定時間は、例えば、30秒である。また、所定値は、上限値の例えば95%の値である。この所定時間及び所定値は、これらの値にこだわることなく、携帯端末機器により適宜変更して良い。   Here, whether or not the feeding current is higher than a predetermined value for a predetermined time is examined as follows, for example. That is, for example, a power switch (not shown) having a current limiting function is provided in a path through which a feeding current flows. The power switch monitors the feeding current during feeding of the opposing device, and outputs, for example, a feeding current over signal (High level signal) during a period when the feeding current is greater than a predetermined value, and a timer (not shown). Let this measure this period. And when this period becomes longer than predetermined time, a power switch is interrupted | blocked and the electric power feeding to an opposing apparatus is stopped. Thus, the feeding current can be prevented from exceeding the maximum output current value of the charging unit 7 and the boost power source, and the charging unit 7 and the boost power source can be protected. Here, the predetermined time is, for example, 30 seconds. The predetermined value is, for example, 95% of the upper limit value. The predetermined time and the predetermined value may be appropriately changed depending on the mobile terminal device without being particular about these values.

図7のステップS9では、給電部8は、対向機器に給電しているとき、電池残量(電池6の電圧(VBAT)が所定値より低いか否かを調べる。調べた結果、所定時間より低くない場合、ステップS10へ進む。調べた結果、所定値より低い場合、異常と判断し、ステップS11へ進む。この所定値は、例えば、満充電時の残量(例えば5V)の70%の値である。この値にこだわることなく、携帯端末機器により適宜変更して良い。   In step S9 of FIG. 7, the power supply unit 8 checks whether the remaining battery level (the voltage (VBAT) of the battery 6 is lower than a predetermined value) when supplying power to the opposing device. If it is not lower, the process proceeds to step S10, and if the result is less than a predetermined value, it is determined that there is an abnormality and the process proceeds to step S11, which is, for example, 70% of the remaining amount at full charge (for example, 5V) Without being particular about this value, it may be changed appropriately depending on the mobile terminal device.

図7のステップS10では、給電部8は、対向機器に給電しているとき、給電電流を測定し、給電電流が所定の値(例えば“0.1V“)以下になったか否かを調べる。調べた結果、所定の値以下でない場合、ステップS8へ進む。調べた結果、所定の値以下になった場合、USBケーブルがUSBコネクタ3から抜かれたと判断し、終了する。給電電流の測定は、ステップS8で使用したパワースイッチ(不図示)により行っても良いし、あるいは、給電電流を流す経路に、他の電流検出回路を設け、この回路により測定しても良い。所定の値、“0.1V“は、この値にこだわることなく、携帯端末機器により適宜変更して良い。   In step S10 of FIG. 7, the power supply unit 8 measures the power supply current when supplying power to the opposite device, and checks whether the power supply current has become a predetermined value (for example, “0.1 V”) or less. As a result of the examination, if it is not less than the predetermined value, the process proceeds to step S8. As a result of the examination, if it is below a predetermined value, it is determined that the USB cable has been disconnected from the USB connector 3, and the process ends. The measurement of the feed current may be performed by a power switch (not shown) used in step S8, or another current detection circuit may be provided in a path through which the feed current flows, and the measurement may be performed by this circuit. The predetermined value, “0.1 V”, may be appropriately changed depending on the mobile terminal device without being particular about this value.

図7のステップS11では、給電部8は、給電電流を流す経路を遮断して給電を停止し、昇圧電源(不図示)にシステム電圧(VSYS)の昇圧を停止させ、アラームを表示部(不図示)に表示し、終了する。給電電流を流す経路の遮断は、ステップS8で使用したパワースイッチ(不図示)により行っても良いし、あるいは、給電電流を流す経路に、例えばFET(Field Effect Transistor)を設け、このFETにより遮断しても良い。   In step S11 of FIG. 7, the power supply unit 8 stops the power supply by interrupting the path through which the power supply current flows, stops the boosting power source (not shown) from boosting the system voltage (VSYS), and displays an alarm (not shown) Display in the figure) and finish. The path for supplying the feeding current may be interrupted by the power switch (not shown) used in step S8. Alternatively, for example, an FET (Field Effect Transistor) is provided in the path for supplying the feeding current, and this FET is used for blocking. You may do it.

図8のステップS12では、充電部7は、対向機器に給電機能があると判断(対向機器は種別(a)又は(b)の機器あると判断)し、Highレベルの供給可否通知信号を第2の制御部5に出力し、ステップS13へ進む。   In step S12 of FIG. 8, the charging unit 7 determines that the opposing device has a power supply function (determines that the opposing device is a device of type (a) or (b)), and sends a High level supply availability notification signal. 2 to the control unit 5 and proceeds to step S13.

図8のステップS13では、第2の制御部5は、Highレベルの供給可否通知信号を受け、対向機器は給電機能を有すると判断し、第1の制御部4のバススイッチ9を介して送られるUSBコネクタ3のUSB_D−信号とUSB_D+信号がショートしているか否かを調べる。調べた結果、USB_D−信号とUSB_D+信号がショートしている場合、ステップS14へ進む。調べた結果、USB_D−信号とUSB_D+信号がショートしていない場合、ステップS15へ進む。   In step S13 of FIG. 8, the second control unit 5 receives the High level supply availability notification signal, determines that the opposite device has a power supply function, and transmits the signal via the bus switch 9 of the first control unit 4. It is checked whether the USB_D− signal and the USB_D + signal of the USB connector 3 to be connected are short-circuited. As a result of the examination, if the USB_D− signal and the USB_D + signal are short-circuited, the process proceeds to step S14. As a result of the examination, if the USB_D− signal and the USB_D + signal are not short-circuited, the process proceeds to step S15.

図8のステップS14では、第2の制御部5は、対向機器は、給電機能のみ有する給電専用機器であり、例えば、ACアダプタである(種別(a)の対向機器である)と判断し、第1の制御部4の充電部7に充電指示信号を出力し、ステップS16へ進む。   In step S14 of FIG. 8, the second control unit 5 determines that the opposite device is a power supply dedicated device having only a power supply function, for example, an AC adapter (a type (a) opposite device), A charge instruction signal is output to the charging unit 7 of the first control unit 4, and the process proceeds to step S16.

図8のステップS15では、第2の制御部5は、対向機器は、給電機能及びUSB通信機能を持つPC等のUSBホスト機器(種別(b)の対向機器)であると判断し、第1の制御部4の充電部7に充電指示信号を出力し、ステップS16へ進む。   In step S15 of FIG. 8, the second control unit 5 determines that the opposing device is a USB host device (type (b) opposing device) such as a PC having a power feeding function and a USB communication function. The charging instruction signal is output to the charging unit 7 of the control unit 4 and the process proceeds to step S16.

図8のステップS16では、第1の制御部4の充電部7は充電指示信号を受け、対向機器からVBUS端子に供給されたHighレベルのVBUS信号により、電池6を充電する。このとき、ステップS14で第2の制御部5が、対向機器をACアダプタである(種別(a)の対向機器)と判断した場合には、USB BC規格に従い、対向機器から最大1500mAの給電電流が供給されると想定される。また、ステップS15で第2の制御部5が、対向機器をPC等のUSBホスト機器(種別(b)の対向機器)と判断した場合には、USB2.0規格に従い、対向機器から最大500mAの給電電流が供給されると想定される。   In step S <b> 16 of FIG. 8, the charging unit 7 of the first control unit 4 receives the charging instruction signal, and charges the battery 6 by the high-level VBUS signal supplied from the opposite device to the VBUS terminal. At this time, if the second control unit 5 determines in step S14 that the opposing device is an AC adapter (type (a) opposing device), a feeding current of a maximum of 1500 mA from the opposing device according to the USB BC standard. Is assumed to be supplied. If the second control unit 5 determines in step S15 that the opposing device is a USB host device (type (b) opposing device) such as a PC, the maximum of 500 mA from the opposing device is determined according to the USB 2.0 standard. It is assumed that a feeding current is supplied.

図8のステップS17では、充電部7は、対向機器から給電され、電池6を充電しているとき、USBコネクタ3の第1の信号(UBUS)を監視し、このUBUSが所定の値(例えば“0.1V“)以下になったか否かを調べる。調べた結果、所定の値以下でない場合、充電を続ける。調べた結果、所定の値以下になった場合、USBケーブルがUSBコネクタ3から抜かれたと判断し、充電を終了する。所定の値、“0.1V“は、この値にこだわることなく、携帯端末機器1により適宜変更して良い。   In step S17 of FIG. 8, when the charging unit 7 is fed with power from the opposite device and is charging the battery 6, the charging unit 7 monitors the first signal (UBUS) of the USB connector 3, and this UBUS is a predetermined value (for example, It is checked whether or not “0.1V”) or less. As a result of checking, if it is not less than the predetermined value, the charging is continued. As a result of the examination, if it is below a predetermined value, it is determined that the USB cable has been removed from the USB connector 3, and charging is terminated. The predetermined value “0.1 V” may be appropriately changed by the mobile terminal device 1 without being particular about this value.

このように、本発明の第4の実施の形態によれば、第2の制御部により、対向機器と接続されたUSBコネクタの電力の供給に関連する第1の信号に基づいて対向機器に給電機能があるか否かを調べる。そして、対向機器に給電機能がないと判断した場合、USBコネクタの対向機器の識別に関連する第2の信号に基づいて対向機器がUSB通信機能を持つか否かを判断する。そして、この判断結果に基づいて対向機器の種別を同定し、この同定した種別の対向機器に応じた給電電流の上限値を定める。そして、第1の制御部により、第2の制御部が定めた給電電流の上限値を上限とした給電電流によって対向機器に給電する。   As described above, according to the fourth embodiment of the present invention, the second control unit supplies power to the opposing device based on the first signal related to the power supply of the USB connector connected to the opposing device. Check for functionality. When it is determined that the opposing device does not have a power supply function, it is determined whether the opposing device has a USB communication function based on a second signal related to identification of the opposing device of the USB connector. Then, the type of the opposing device is identified based on the determination result, and an upper limit value of the feeding current according to the identified type of the opposing device is determined. Then, the first control unit supplies power to the opposing device with a supply current whose upper limit is the upper limit value of the supply current determined by the second control unit.

このため、本発明の第4の実施の形態によれば、対向機器に適合した給電電流で対向機器に給電することができる。   For this reason, according to the 4th Embodiment of this invention, it can supply electric power to an opposing apparatus with the feeding current suitable for the opposing apparatus.

上記の実施形態の一部または全部は、以下の付記のように記載され得るが、以下には限られない。
(付記1)
対向機器とUSB(Universal Serial Bus)ケーブルを介して接続するUSBコネクタと、
前記対向機器と接続された前記USBコネクタの電力の供給に関連する第1の信号に基づいて前記対向機器に給電機能がないと判断した場合、前記USBケーブルの前記第1の信号の送信される信号線と異なる信号線を介して送信され、前記USBコネクタの前記対向機器の識別に関連する第2の信号に基づいて前記対向機器がUSB通信機能を持つか否かを判断し、この判断結果に基づいて前記対向機器の種別を同定し、この同定した種別の前記対向機器に応じた上限値の給電電流によって前記対向機器に給電する制御部と、
を備えたことを特徴とする携帯端末機器。
(付記2)
前記制御部は、
前記第1の信号が所定のLowレベルの場合、対向機器が電力の供給が可能又は不能な機器であることを示す供給可否通知信号を、対向機器が電力の供給が不能な機器であることを示すLowレベルにして出力し、この出力に対応して給電を指示する給電指示信号と給電電流の前記上限値を受け、所定のHighレベルの前記第1の信号を作成し、この作成した前記第1の信号を前記上限値の給電電流で前記USBコネクタに出力して前記対向機器に給電する第1の制御部と、
Lowレベルの前記供給可否通知信号を受けて前記対向機器に給電機能がないと判断し、前記第1の制御部に前記給電指示信号を出力するとともに、前記第2の信号の状態に基づいて前記対向機器がUSB通信機能を持つか否かを判断し、この判断結果に基づいて給電電流の前記上限値を定めこの定めた前記上限値を前記第1の制御部に出力する第2の制御部と、
を備えたことを特徴とする付記1記載の携帯端末機器。
(付記3)
前記第1の制御部は、前記対向機器に給電しているとき、給電電流が所定時間、所定値より高い場合給電を停止する、ことを特徴とする付記2記載の携帯端末機器。
(付記4)
自身の携帯端末機器の電源である電池を更に有し、
前記第1の制御部は、前記対向機器に給電しているとき、前記電池の残量が所定値より低くなった場合給電を停止する、ことを特徴とする付記2又は3記載の携帯端末機器。
(付記5)
前記第1の制御部は、前記第1の信号を、前記USBコネクタを介して受け、この第1の信号が所定のLowレベルの場合、前記供給可否通知信号をLowレベルにして前記第2の制御部に出力し、この第1の信号が所定のHighレベルの場合、前記供給可否通知信号を、対向機器が電力の供給が可能な機器であることを示すHighレベルにして前記第2の制御部に出力し、前記第2の制御部から、充電指示信号を受け、対向機器からVBUS端子に供給されたHighレベルのVBUS信号により、前記電池を充電する充電部と、
前記第2の制御部から、充電部が出力したLowレベルの前記供給可否通知信号に対応して給電を指示する給電指示信号と給電電流の前記上限値を受け、所定のHighレベルの前記第1の信号を作成し、この作成した前記第1の信号を前記上限値の給電電流で前記USBコネクタに出力して前記対向機器に給電する給電部と、
を備えたことを特徴とする付記4記載の携帯端末機器。
(付記6)
前記給電部は、前記充電部が受けた前記電池電圧(VBAT)に基づいて作成したシステム電圧(VSYS)を昇圧して、所定のHighレベルの前記第1の信号を作成する、ことを特徴とする付記5記載の携帯端末機器。
(付記7)
前記給電部は、前記対向機器に給電しているとき、給電電流が所定時間、所定値より高い場合給電を停止する、ことを特徴とする付記5又は6記載の携帯端末機器。
(付記8)
前記給電部は、前記対向機器に給電しているとき、前記電池残量が所定値より低くなった場合給電を停止する、ことを特徴とする付記5、6又は7記載の携帯端末機器。
(付記9)
前記第2の制御部は、前記第2の信号が所定のLowレベルの場合、500mAを給電電流の前記上限値と定め、前記第2の信号が所定のHighレベルの場合、1500mAを給電電流の前記上限値と定める、ことを特徴とする付記2から8のいずれか一項に記載の携帯端末機器。
(付記10)
前記第1の信号は、対向機器に電力を供給する、あるいは対向機器から電力の供給を受けるためのUSB2.0規格に基づくVBUS端子の信号(VBUS)であり、前記第2の信号は、対向機器がホスト機器かスレーブ機器かを識別するためのUSB2.0規格に基づくUSB_ID端子の信号(USB_ID)である、ことを特徴とする付記1から9のいずれか一項に記載の携帯端末機器。
(付記11)
対向機器と接続されたUSBコネクタの電力の供給に関連する第1の信号に基づいて前記対向機器に給電機能がないと判断した場合、前記USBケーブルの前記第1の信号の送信される信号線と異なる信号線を介して送信され、前記USBコネクタの前記対向機器の識別に関連する第2の信号に基づいて前記対向機器がUSB通信機能を持つか否かを判断し、
この判断結果に基づいて前記対向機器の種別を同定し、
この同定した種別の前記対向機器に応じた上限値の給電電流によって前記対向機器に給電する、ことを特徴とする給電方法。
(付記12)
前記第1の信号が所定のLowレベルの場合、対向機器が電力の供給が可能又は不能な機器であることを示す供給可否通知信号を、対向機器が電力の供給が不能な機器であることを示すLowレベルにして出力し、
このLowレベルの前記供給可否通知信号の出力に応じて給電を指示する給電指示信号を出力するとともに、前記第2の信号の状態に基づいて前記対向機器がUSB通信機能を持つか否かを判断し、
この判断結果に基づいて給電電流の前記上限値を定めこの定めた前記上限値を出力し、
この出力された前記給電指示信号と前記上限値を受け、所定のHighレベルの前記第1の信号を作成し、この作成した前記第1の信号を前記上限値の給電電流で前記USBコネクタに出力して前記対向機器に給電する、ことを特徴とする付記11記載の給電方法。
(付記13)
前記対向機器に給電しているとき、給電電流が所定時間、所定値より高い場合給電を停止する、ことを特徴とする付記12記載の給電方法。
(付記14)
前記第2の信号が所定のLowレベルの場合、500mAを給電電流の前記上限値と定め、前記第2の信号が所定のHighレベルの場合、1500mAを給電電流の前記上限値と定める、ことを特徴とする付記12又は13記載の給電方法。
(付記15)
前記第1の信号は、対向機器に電力を供給する、あるいは対向機器から電力の供給を受けるためのUSB2.0規格に基づくVBUS端子の信号(VBUS)であり、前記第2の信号は、対向機器がホスト機器かスレーブ機器かを識別するためのUSB2.0規格に基づくUSB_ID端子の信号(USB_ID)である、ことを特徴とする付記11から14のいずれか一項に記載の給電方法。
Part or all of the above-described embodiments can be described as in the following supplementary notes, but is not limited thereto.
(Appendix 1)
A USB connector connected to the opposite device via a USB (Universal Serial Bus) cable;
When it is determined that the counter device does not have a power supply function based on a first signal related to power supply of the USB connector connected to the counter device, the first signal of the USB cable is transmitted. Based on a second signal transmitted via a signal line different from the signal line and related to identification of the opposing device of the USB connector, it is determined whether or not the opposing device has a USB communication function. A control unit that identifies the type of the opposite device based on the power supply, and supplies power to the opposite device with a power supply current of an upper limit value according to the identified type of the opposite device;
A mobile terminal device characterized by comprising:
(Appendix 2)
The controller is
When the first signal is at a predetermined low level, a supply availability notification signal indicating that the opposite device is a device that can supply power or cannot supply power is used, and that the opposite device is a device that cannot supply power. The power supply instruction signal for instructing power supply and the upper limit value of the power supply current are received in response to the output, and the first signal having a predetermined high level is generated. A first control unit that outputs a signal of 1 to the USB connector with a power supply current of the upper limit value and supplies power to the opposing device;
In response to the Low level supply availability notification signal, it is determined that the opposing device does not have a power supply function, and the power supply instruction signal is output to the first control unit, and based on the state of the second signal A second control unit that determines whether or not the opposing device has a USB communication function, determines the upper limit value of the feeding current based on the determination result, and outputs the determined upper limit value to the first control unit; When,
The mobile terminal device according to appendix 1, characterized by comprising:
(Appendix 3)
The mobile terminal device according to appendix 2, wherein the first control unit stops power supply when the power supply current is higher than a predetermined value for a predetermined time when power is supplied to the opposite device.
(Appendix 4)
It further has a battery that is the power source of its own mobile terminal device,
The mobile terminal device according to appendix 2 or 3, wherein the first control unit stops power supply when power is supplied to the opposite device and the remaining amount of the battery becomes lower than a predetermined value. .
(Appendix 5)
The first control unit receives the first signal via the USB connector, and when the first signal is at a predetermined low level, sets the supply availability notification signal to the low level and sets the second signal to the second control unit. When the first signal is output to the control unit and the first signal is a predetermined high level, the second control is performed by setting the supply availability notification signal to a high level indicating that the opposite device is a device capable of supplying power. A charging unit that receives the charging instruction signal from the second control unit and charges the battery with a high-level VBUS signal supplied from the opposite device to the VBUS terminal;
The second control unit receives a power supply instruction signal instructing power supply in response to the low level supply availability notification signal output from the charging unit and the upper limit value of the power supply current, and receives the first value of a predetermined high level. A power supply unit that outputs the generated first signal to the USB connector with a power supply current of the upper limit value and supplies power to the opposing device;
The mobile terminal device according to appendix 4, characterized by comprising:
(Appendix 6)
The power feeding unit boosts a system voltage (VSYS) created based on the battery voltage (VBAT) received by the charging unit, and creates the first signal having a predetermined high level. The mobile terminal device according to appendix 5.
(Appendix 7)
The mobile terminal device according to appendix 5 or 6, wherein the power feeding unit stops power feeding when the power feeding current is higher than a predetermined value for a predetermined time when power is supplied to the opposite device.
(Appendix 8)
The mobile terminal device according to appendix 5, 6 or 7, wherein when the power supply unit supplies power to the opposing device, power supply is stopped when the remaining battery level becomes lower than a predetermined value.
(Appendix 9)
The second control unit determines 500 mA as the upper limit value of the feeding current when the second signal is at a predetermined low level, and 1500 mA as the feeding current when the second signal is at a predetermined high level. The mobile terminal device according to any one of supplementary notes 2 to 8, wherein the mobile terminal device is defined as the upper limit value.
(Appendix 10)
The first signal is a signal (VBUS) of a VBUS terminal based on the USB 2.0 standard for supplying power to or receiving power from the opposite device, and the second signal is opposite. The portable terminal device according to any one of appendices 1 to 9, wherein the device is a USB_ID terminal signal (USB_ID) based on the USB 2.0 standard for identifying whether the device is a host device or a slave device.
(Appendix 11)
When it is determined that the opposing device has no power supply function based on the first signal related to the power supply of the USB connector connected to the opposing device, the signal line through which the first signal of the USB cable is transmitted Determining whether or not the opposite device has a USB communication function based on a second signal related to the identification of the opposite device of the USB connector.
Identify the type of the opposite device based on the determination result,
A power feeding method characterized in that power is fed to the opposing device by a feeding current of an upper limit value corresponding to the identified type of the opposing device.
(Appendix 12)
When the first signal is at a predetermined low level, a supply availability notification signal indicating that the opposite device is a device that can supply power or cannot supply power is used, and that the opposite device is a device that cannot supply power. Output at the low level shown,
A power supply instruction signal for instructing power supply is output in response to the output of the Low level supply enable / disable notification signal, and it is determined whether the opposing device has a USB communication function based on the state of the second signal. And
Based on the determination result, the upper limit value of the feeding current is determined and the determined upper limit value is output,
The output power supply instruction signal and the upper limit value are received, the first signal having a predetermined high level is generated, and the generated first signal is output to the USB connector with the power supply current of the upper limit value. The power supply method according to appendix 11, wherein power is supplied to the opposite device.
(Appendix 13)
13. The power feeding method according to appendix 12, wherein power feeding is stopped when a power feeding current is higher than a predetermined value for a predetermined time when power is supplied to the opposite device.
(Appendix 14)
When the second signal is at a predetermined low level, 500 mA is defined as the upper limit value of the feeding current, and when the second signal is at a predetermined high level, 1500 mA is defined as the upper limit value of the feeding current. 14. The power feeding method according to appendix 12 or 13, which is a feature.
(Appendix 15)
The first signal is a signal (VBUS) of a VBUS terminal based on the USB 2.0 standard for supplying power to or receiving power from the opposite device, and the second signal is opposite. 15. The power supply method according to any one of appendices 11 to 14, wherein the power supply method is a USB_ID terminal signal (USB_ID) based on the USB 2.0 standard for identifying whether the device is a host device or a slave device.

1 携帯端末機器
2 制御部
3 USBコネクタ
4 第1の制御部
5 第2の制御部
6 電池
7 充電部
8 給電部
9 バススイッチ
10 電源部
DESCRIPTION OF SYMBOLS 1 Portable terminal device 2 Control part 3 USB connector 4 1st control part 5 2nd control part 6 Battery 7 Charging part 8 Electric power feeding part 9 Bus switch 10 Power supply part

Claims (10)

対向機器とUSB(Universal Serial Bus)ケーブルを介して接続するUSBコネクタと、
前記対向機器と接続された前記USBコネクタの電力の供給に関連する第1の信号に基づいて前記対向機器に給電機能がないと判断した場合、前記USBケーブルの前記第1の信号の送信される信号線と異なる信号線を介して送信され、前記USBコネクタの前記対向機器の識別に関連する第2の信号に基づいて前記対向機器がUSB通信機能を持つか否かを判断し、この判断結果に基づいて前記対向機器の種別を同定し、この同定した種別の前記対向機器に応じた上限値の給電電流によって前記対向機器に給電する制御部と、
を備えたことを特徴とする携帯端末機器。
A USB connector connected to the opposite device via a USB (Universal Serial Bus) cable;
When it is determined that the counter device does not have a power supply function based on a first signal related to power supply of the USB connector connected to the counter device, the first signal of the USB cable is transmitted. Based on a second signal transmitted via a signal line different from the signal line and related to identification of the opposing device of the USB connector, it is determined whether or not the opposing device has a USB communication function. A control unit that identifies the type of the opposite device based on the power supply, and supplies power to the opposite device with a power supply current of an upper limit value according to the identified type of the opposite device;
A mobile terminal device characterized by comprising:
前記制御部は、
前記第1の信号が所定のLowレベルの場合、対向機器が電力の供給が可能又は不能な機器であることを示す供給可否通知信号を、対向機器が電力の供給が不能な機器であることを示すLowレベルにして出力し、この出力に対応して給電を指示する給電指示信号と給電電流の前記上限値を受け、所定のHighレベルの前記第1の信号を作成し、この作成した前記第1の信号を前記上限値の給電電流で前記USBコネクタに出力して前記対向機器に給電する第1の制御部と、
Lowレベルの前記供給可否通知信号を受けて前記対向機器に給電機能がないと判断し、前記第1の制御部に前記給電指示信号を出力するとともに、前記第2の信号の状態に基づいて前記対向機器がUSB通信機能を持つか否かを判断し、この判断結果に基づいて給電電流の前記上限値を定めこの定めた前記上限値を前記第1の制御部に出力する第2の制御部と、
を備えたことを特徴とする請求項1記載の携帯端末機器。
The controller is
When the first signal is at a predetermined low level, a supply availability notification signal indicating that the opposite device is a device that can supply power or cannot supply power is used, and that the opposite device is a device that cannot supply power. The power supply instruction signal for instructing power supply and the upper limit value of the power supply current are received in response to the output, and the first signal having a predetermined high level is generated. A first control unit that outputs a signal of 1 to the USB connector with a power supply current of the upper limit value and supplies power to the opposing device;
In response to the Low level supply availability notification signal, it is determined that the opposing device does not have a power supply function, and the power supply instruction signal is output to the first control unit, and based on the state of the second signal A second control unit that determines whether or not the opposing device has a USB communication function, determines the upper limit value of the feeding current based on the determination result, and outputs the determined upper limit value to the first control unit; When,
The mobile terminal device according to claim 1, further comprising:
前記第1の制御部は、前記対向機器に給電しているとき、給電電流が所定時間、所定値より高い場合給電を停止する、ことを特徴とする請求項2記載の携帯端末機器。   3. The mobile terminal device according to claim 2, wherein when the power is supplied to the opposite device, the first control unit stops power supply when a power supply current is higher than a predetermined value for a predetermined time. 自身の携帯端末機器の電源である電池を更に有し、
前記第1の制御部は、前記対向機器に給電しているとき、前記電池の残量が所定値より低くなった場合給電を停止する、ことを特徴とする請求項2又は3記載の携帯端末機器。
It further has a battery that is the power source of its own mobile terminal device,
4. The mobile terminal according to claim 2, wherein the first control unit stops power supply when the remaining battery level is lower than a predetermined value when power is supplied to the opposite device. 5. machine.
前記第1の制御部は、前記第1の信号を、前記USBコネクタを介して受け、この第1の信号が所定のLowレベルの場合、前記供給可否通知信号をLowレベルにして前記第2の制御部に出力し、この第1の信号が所定のHighレベルの場合、前記供給可否通知信号を、対向機器が電力の供給が可能な機器であることを示すHighレベルにして前記第2の制御部に出力し、前記第2の制御部から、充電指示信号を受け、対向機器からVBUS端子に供給されたHighレベルのVBUS信号により、前記電池を充電する充電部と、
前記第2の制御部から、充電部が出力したLowレベルの前記供給可否通知信号に対応して給電を指示する給電指示信号と給電電流の前記上限値を受け、所定のHighレベルの前記第1の信号を作成し、この作成した前記第1の信号を前記上限値の給電電流で前記USBコネクタに出力して前記対向機器に給電する給電部と、
を備えたことを特徴とする請求項4記載の携帯端末機器。
The first control unit receives the first signal via the USB connector, and when the first signal is at a predetermined low level, sets the supply availability notification signal to the low level and sets the second signal to the second control unit. When the first signal is output to the control unit and the first signal is a predetermined high level, the second control is performed by setting the supply availability notification signal to a high level indicating that the opposite device is a device capable of supplying power. A charging unit that receives the charging instruction signal from the second control unit and charges the battery with a high-level VBUS signal supplied from the opposite device to the VBUS terminal;
The second control unit receives a power supply instruction signal instructing power supply in response to the low level supply availability notification signal output from the charging unit and the upper limit value of the power supply current, and receives the first value of a predetermined high level. A power supply unit that outputs the generated first signal to the USB connector with a power supply current of the upper limit value and supplies power to the opposing device;
The mobile terminal device according to claim 4, further comprising:
前記給電部は、前記充電部が受けた前記電池電圧(VBAT)に基づいて作成したシステム電圧(VSYS)を昇圧して、所定のHighレベルの前記第1の信号を作成する、ことを特徴とする請求項5記載の携帯端末機器。   The power feeding unit boosts a system voltage (VSYS) created based on the battery voltage (VBAT) received by the charging unit, and creates the first signal having a predetermined high level. The mobile terminal device according to claim 5. 前記給電部は、前記対向機器に給電しているとき、給電電流が所定時間、所定値より高い場合給電を停止する、ことを特徴とする請求項5又は6記載の携帯端末機器。   7. The mobile terminal device according to claim 5, wherein when the power feeding unit feeds power to the opposite device, power feeding is stopped when a power feeding current is higher than a predetermined value for a predetermined time. 前記給電部は、前記対向機器に給電しているとき、前記電池残量が所定値より低くなった場合給電を停止する、ことを特徴とする請求項5、6又は7記載の携帯端末機器。   8. The mobile terminal device according to claim 5, wherein the power supply unit stops power supply when power is supplied to the opposite device and the remaining battery level becomes lower than a predetermined value. 9. 前記第2の制御部は、前記第2の信号が所定のLowレベルの場合、500mAを給電電流の前記上限値と定め、前記第2の信号が所定のHighレベルの場合、1500mAを給電電流の前記上限値と定める、ことを特徴とする請求項2から8のいずれか一項に記載の携帯端末機器。   The second control unit determines 500 mA as the upper limit value of the feeding current when the second signal is at a predetermined low level, and 1500 mA as the feeding current when the second signal is at a predetermined high level. The mobile terminal device according to claim 2, wherein the mobile terminal device is defined as the upper limit value. USBケーブルにより対向機器と接続されたUSBコネクタの電力の供給に関連する第1の信号に基づいて前記対向機器に給電機能がないと判断した場合、前記USBケーブルの前記第1の信号の送信される信号線と異なる信号線を介して送信され、前記USBコネクタの前記対向機器の識別に関連する第2の信号に基づいて前記対向機器がUSB通信機能を持つか否かを判断し、
この判断結果に基づいて前記対向機器の種別を同定し、
この同定した種別の前記対向機器に応じた上限値の給電電流によって前記対向機器に給電する、ことを特徴とする給電方法。
When it is determined that the counter device does not have a power supply function based on a first signal related to the power supply of the USB connector connected to the counter device by the USB cable, the first signal of the USB cable is transmitted. Determining whether or not the opposing device has a USB communication function based on a second signal related to the identification of the opposing device of the USB connector.
Identify the type of the opposite device based on the determination result,
A power feeding method characterized in that power is fed to the opposing device by a feeding current of an upper limit value corresponding to the identified type of the opposing device.
JP2012254392A 2012-11-20 2012-11-20 Portable terminal apparatus and power supply method Pending JP2014102693A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012254392A JP2014102693A (en) 2012-11-20 2012-11-20 Portable terminal apparatus and power supply method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012254392A JP2014102693A (en) 2012-11-20 2012-11-20 Portable terminal apparatus and power supply method

Publications (1)

Publication Number Publication Date
JP2014102693A true JP2014102693A (en) 2014-06-05

Family

ID=51025146

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012254392A Pending JP2014102693A (en) 2012-11-20 2012-11-20 Portable terminal apparatus and power supply method

Country Status (1)

Country Link
JP (1) JP2014102693A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017525053A (en) * 2014-08-05 2017-08-31 テキサス インスツルメンツ インコーポレイテッド Method, electronic device, and charger apparatus for rapid USB charging
CN109976492A (en) * 2017-12-28 2019-07-05 佳能株式会社 Electronic equipment and its control method and storage medium
CN117520234A (en) * 2023-11-16 2024-02-06 苏州元脑智能科技有限公司 Automatic identification circuit of Type-C interface external equipment and related equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017525053A (en) * 2014-08-05 2017-08-31 テキサス インスツルメンツ インコーポレイテッド Method, electronic device, and charger apparatus for rapid USB charging
US10014703B2 (en) 2014-08-05 2018-07-03 Texas Instruments Incorporated USB charging with separate controller bidirectional communication of charging capabilities
US11646585B2 (en) 2014-08-05 2023-05-09 Texas Instruments Incorporated Methods, electronic devices, and charger apparatus for quick USB charging
CN109976492A (en) * 2017-12-28 2019-07-05 佳能株式会社 Electronic equipment and its control method and storage medium
CN109976492B (en) * 2017-12-28 2023-12-22 佳能株式会社 Electronic device, control method thereof, and storage medium
CN117520234A (en) * 2023-11-16 2024-02-06 苏州元脑智能科技有限公司 Automatic identification circuit of Type-C interface external equipment and related equipment
CN117520234B (en) * 2023-11-16 2024-04-05 苏州元脑智能科技有限公司 Automatic identification circuit of Type-C interface external equipment and related equipment

Similar Documents

Publication Publication Date Title
US10181742B2 (en) Electronic device, charger within the electronic device, and detecting method for detecting abnormal status of connector of electronic device
TWI573368B (en) Portable electronic device and charging method therefor
CN103618356B (en) The charging system of a kind of mobile terminal and charging method thereof
US20100060233A1 (en) Charger with USB detection
US10658860B2 (en) Electronic device, charger within the electronic device, and detecting method for detecting abnormal status of connector of electronic device
EP2383861A2 (en) Battery charger for portable electronic equipment
JP2018174699A (en) Power supply adapter, terminal, and method of handling impedance abnormalities of charging circuit
CN105518967B (en) Apparatus and method for changing current limit
US20130049680A1 (en) Electronic device
TW201319603A (en) Method and apparatus for performing charging port detection control
CN103064489A (en) Method for selecting internal circuit according to conditions of universal serial bus (USB) interface and terminal
EP3543827A1 (en) Electronic device, charger, charging system and charging method
JP2015534449A (en) High voltage dedicated charging port
KR20160100973A (en) Method and apparatus for charging electronic device with usb connection
CN105137356A (en) Method and device for detecting charging state
US20160072319A1 (en) Electronic Device And Method Of Charging Electronic Device
JP2014102693A (en) Portable terminal apparatus and power supply method
US20170063105A1 (en) Charging method, charging controller and charging system
CN107112471B (en) Battery module with detection connector and related system
CN106797414A (en) The leakage current detection circuit and terminal of a kind of terminal
EP3082213B1 (en) Charger control circuit and method for charger control
CN108988498B (en) Non-contact power receiving apparatus and non-contact power receiving method
KR20130006884U (en) Secondary battery with a charging data cable
CN106329625B (en) charging method and device
JP2014135895A (en) Charge control system and method