CN104932615A - Universal serial bus expansion seat and method for charging portable device by using same - Google Patents

Universal serial bus expansion seat and method for charging portable device by using same Download PDF

Info

Publication number
CN104932615A
CN104932615A CN201510264753.8A CN201510264753A CN104932615A CN 104932615 A CN104932615 A CN 104932615A CN 201510264753 A CN201510264753 A CN 201510264753A CN 104932615 A CN104932615 A CN 104932615A
Authority
CN
China
Prior art keywords
usb
mancarried device
seat
otg
master mode
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.)
Granted
Application number
CN201510264753.8A
Other languages
Chinese (zh)
Other versions
CN104932615B (en
Inventor
许锦松
T.S.希
潘利峰
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.)
Wei Feng Electronic Ltd By Share Ltd
Original Assignee
Via Technologies Inc
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
Priority claimed from US14/692,155 external-priority patent/US9772653B2/en
Application filed by Via Technologies Inc filed Critical Via Technologies Inc
Publication of CN104932615A publication Critical patent/CN104932615A/en
Application granted granted Critical
Publication of CN104932615B publication Critical patent/CN104932615B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

A universal serial bus docking station and a method for charging a portable device. The invention provides a Universal Serial Bus (USB) expansion seat, comprising: a plurality of downstream ports; an up port for connecting the USB docking station to a portable device, wherein the up port comprises an OTG ID pin and a differential pair; and a microcontroller for detecting a plurality of operating states of the portable device. When the microcontroller detects that the portable device is in a USB OTG (on the go) master mode and enters a suspend (suspend) state, the microcontroller controls the portable device to be switched from the USB OTG master mode to a USB device mode by switching the state of the OTG ID pin, so that the portable device is charged through the uplink port.

Description

The method that USB (universal serial bus) expands seat and charges to mancarried device
Technical field
The present invention relates to the expansion seat (dock) for mancarried device, particularly can expand seat according to the operating state of detected mancarried device to a kind of USB (universal serial bus) (USB) that this mancarried device charges.
Background technology
In recent years, for the New function of computer system demand and peripheral unit to computer system can be connected simply have several new development.Wherein one develops into general-purpose serial bus USB (UniversalSerial Bus).The development of USB specification is to provide external expansion, can allow to increase peripheral unit just simple as hung up by telephone set receiver.After the invention of USB specification, just widely market accepted.
USB On-the-Go (OTG) specification two kinds of roles of device are such as OTG A device and OTG B device.Which limit of this term definition provides power supply to this link, and whichever is initially main control end (host).OTG A device is a power supply supplier, and OTG B device is power supply user.The link preset is configured to OTG A device and plays the part of USB main control end, and OTG B device is a USB peripheral unit.USB OTG specification opens the role that a device can play the part of main side (master) and subordinate end (slave), therefore changes above-mentioned term dexterously.After having OTG, when playing the part of the main side of connection, a USB device can be a main control end, maybe when playing the part of the subordinate end of connection, can be a peripheral unit.Select whether by main control end or peripheral unit are that one end of inserting cable by this USB device is completely determined.When USB device is connected to the A end of cable, this USB device is A device, plays the part of default main control end.When USB device is connected to the B end of cable, this USB device is B device, plays the part of default peripheral unit.
In USB battery charging specification, USB device always extracts (draw) power supply by USB main control end.If user wants to use its mancarried device to be a USB main control end, need to use the cable with the special type of an ID pin.Therefore, normal use has the USB micro A/B cable of OTG ID pin.When a USB device utilizes USB micro A/B cable to be connected to a mancarried device, this mancarried device can switch to USB OTG master mode by USB device pattern, and this mancarried device can provide the USB device of power supply to connecting.
Utilizing in the situation expanding seat one, user's possibility static a very long time, and need to use large-scale and traditional input media, such as, is keyboard and mouse.When mancarried device is in USB OTG master mode, USB expands seat can provide required video and USB input/memory function.But when mancarried device is in USB OTG master mode, mancarried device can use power supply own.Although USB expands the power source that seat has oneself, the power supply that USB expands seat also cannot be shared with mancarried device, because this function is not defined in USB battery charging specification.
Summary of the invention
The invention provides a kind of USB (universal serial bus) (USB) and expand seat, comprising: multiple downlink port; One uplink port, is connected to a mancarried device in order to this USB is expanded seat, and wherein this uplink port comprises an OTG ID pin and differential right; And a microcontroller, in order to detect multiple modes of operation of this mancarried device.When this microcontroller detects that this mancarried device is in a USB OTG master mode and has entered a time-out (suspend) state, this microcontroller switches to a USB device pattern to control this mancarried device by this USB OTG master mode by the state switching this OTG ID pin, uses and is charged to this mancarried device by this uplink port.
The method that the present invention also provides one to utilize a USB (universal serial bus) (USB) to expand seat to charge to a mancarried device, wherein this USB expansion seat comprises multiple downlink port and a uplink port, the method comprises: by this uplink port, this USB is expanded seat and be connected to this mancarried device, and wherein this uplink port comprises an OTG ID pin and differential right; Detect multiple modes of operation of this mancarried device; And when detecting that this mancarried device is in a USB OTG master mode and has entered a time-out (suspend) state, switch to a USB device pattern to control this mancarried device by this USBOTG master mode by the state switching this OTG ID pin, use and by this uplink port, this mancarried device is charged.
Accompanying drawing explanation
The calcspar of Fig. 1 to be display according to USB one of in one embodiment of the invention expand seat.
[symbol description]
100 ~ USB expands seat;
110 ~ microcontroller;
120 ~ downlink port;
130 ~ uplink port;
140 ~ button;
150 ~ mancarried device;
D+, D-, VBUS, OTG ID, GND ~ pin.
Embodiment
For making above-mentioned purpose of the present invention, feature and advantage become apparent, a preferred embodiment cited below particularly, and coordinate accompanying drawing, be described in detail below.
Fig. 1 is that display expands the calcspar of seat according to the USB in one embodiment of the invention.In one embodiment, USB expansion seat 100 comprises a microcontroller 110, multiple downlink port (downstreamport) 120 and a uplink port (upstream port) 130.USB can be expanded seat 100 and be coupled to a mancarried device 150 by uplink port 130, such as, be a mobile phone or a flat computer.USB can be expanded seat 100 and be coupled to other USB device by downlink port 120, such as, be a screen, keyboard or mouse, and it can assist the information that inputs or outputs to the mancarried device being connected to USB expansion seat 100.In one embodiment, uplink port 130 is a USB micro A/B connector, that includes one differential to (D+ and D-pin), a VBUS power pins, a ground connection (GND) pin and an OTG ID pin.Microcontroller 110 can according to the state of OTG ID pin to detect the mode of operation of mancarried device 150.For example, when OTG ID pin is when one first state (such as: ground connection), microcontroller 110 can learn that mancarried device 150 is in a duty (working state).In another embodiment, uplink port 130 is compatible with USB micro A/B interface, and it comprises one differential to (D+ and D-pin), a VBUS power pins, a ground connection (GND) pin and an OTG ID pin.Further, above-mentioned main USB pin is all equipped with having eurypalynous USB connector perhaps on the market, but they.
As a user, mancarried device 150 is being connected in the situation of USB expansion seat 100, USB expands seat 100 can USB OTG master control (host) pattern of activation (enable) mancarried device 150, use activation and be connected to the use that USB expands the USB periphery of the downlink port 120 of seat 100, and carry out the normal data transfer between mancarried device 150 and USB periphery.Should be noted that mancarried device 150 also cannot utilize uplink port 130 to charge, because mancarried device 150 plays the part of one " main control end " under USB OTG master mode under USB OTG master mode.
When mancarried device 150 utilize this differential to send a time-out (suspend) instruction to USB expand seat 100, the state of OTG ID pin can be set as one second state (such as: suspension joint (floating)) by the microcontroller 110 that USB expands seat 100, make mancarried device 150 enter a USB (device) device pattern by USB OTG master mode, also make USB expand seat 100 and uplink port 130 pairs of mancarried devices 150 can be utilized to charge.It is noted that when mancarried device 150 leaves unused a schedule time, mancarried device 150 can enter a time-out (suspend) state automatically.Optionally, when user manually closes the power supply of the screen of mancarried device 150, mancarried device 150 also can enter halted state, but the present invention is not limited to this.When entering halted state, mancarried device 150 can send a pause instruction and expand seat 100 to USB.
Further, when USB expands the pause instruction of seated connection receipts from mancarried device 150, USB expansion seat 100 disconnects (disconnect), and this is differential right, and then short circuit (short) this is differential right, make mancarried device 150 as detected that uplink port 130 is physically disconnected and is again inserted into mancarried device 150.Then, USB expands seat 100 can be set as one second state by the state of OTG ID pin, enters USB device (device) pattern to force mancarried device 150 by USB OTG master mode.It is noted that USB expanding seat 100 when being in USB device pattern when mancarried device 150, can set differential right voltage, using and providing multiple fast charge mode to charge to mancarried device 150.For example, fast charge mode can be the power supply transfer mode (power delivery mode), an Apple pattern or another fast charge mode that define in USB battery rechargeable standard v1.2 version, but the present invention is not limited to this.
In one embodiment, USB expands seat 100 and also comprises a button 140, and it is an entity button, in order to utilize GPIO interface to switch the USB operator scheme of mancarried device 150.For example, when user needs mancarried device 100 to switch back USB OTG master mode by USB device pattern, user can press the button 140.Then, microcontroller 110 detects that button 140 is pressed, and utilize setting GPIO interface that the state of OTG ID pin is set as the first state (such as: ground connection), use notice mancarried device 150 and enter USB OTG master mode by USB device pattern.
In another embodiment, when user needs mancarried device to switch back USB OTG master mode by USB device pattern, user can utilize and be connected to one of them of peripheral unit that USB expands seat 100 and send a trigger pip, make USB expand seat 100 can by differential to open circuit to leave USB device pattern.Then, USB expand seat 100 can start this differential to and the first state that the state of OTG ID pin is set as to notify that mancarried device 150 enters USB OTG master mode.
In another embodiment, replace and wait for that mancarried device 150 enters halted state, the virtual endpoint (virtual endpoint) that USB expansion seat 100 expands seat 100 predefineds by USB sends a specific pause instruction, uses and allows USB expansion seat 100 force mancarried device 150 to enter halted state by duty on one's own initiative.This specific pause instruction can be pressed another button (not illustrating in Fig. 1) by user and triggered.In one embodiment, this virtual endpoint belongs to a virtual link device of the virtual port being coupled to USB expansion seat 100.For example, this virtual endpoint is in order to simulation (emulate) keyboard, and it can send a pause instruction to mancarried device 150.This means, this virtual endpoint is the predefined end points expanded at this USB in seat 100, in order to suspend this mancarried device 150.According to aforesaid way, then do not need to wait for mancarried device 150 automatic pause.In other words, when whenever user needs to charge to mancarried device, aforesaid way more provides elasticity to user.
In another embodiment, this specific pause instruction can be triggered by previously described button 140.In the case, button 140 can have several functions according to the state of mancarried device 150.When mancarried device 150 is in USB OTG master mode, when pressing the button 140, mancarried device 150 enters halted state.When mancarried device 150 is in USB device pattern, when pressing the button 140, mancarried device 150 can be switched to USB OTG master mode by USB device pattern.
In sum, when USB OTG master mode is opened, USB expands the duty that seat 100 can detect mancarried device 150.USB expands seat 100 more can switch to USB device pattern to control mancarried device 150 by USB OTG master mode by the state switching OTG ID pin.In addition, USB expansion seat 100 more can be charged by uplink port 130 pairs of mancarried devices 150.The above-mentioned feature that USB expands seat 100 is non-obvious, because this feature does not define in USB standard.Present invention utilizes hardware and firmware function to start above-mentioned feature, when user do not need to use USB peripheral and mancarried device 150 be still connected on USB expand on seat time, above-mentioned feature can allow mancarried device 150 carry out rapid charge.
Method of the present invention, or specific modality or its part, tangible media can be contained in the form of program code, as floppy disk, CD, hard disk or any other machine-readable (as embodied on computer readable) storage medium, wherein, when program code is by machine, as computing machine be loaded into and perform time, this machine becomes to participate in device of the present invention or system.Method of the present invention, system and device also can with program code form by some transmission mediums, as electric wire or cable, optical fiber or any transport-type transmit, wherein, when program code is by machine, as computing machine receive, be loaded into and perform time, this machine becomes to participate in device of the present invention or system.When general service processor implementation, program code associative processor provides a class of operation to be similar to the unique apparatus of application particular logic circuit.
Though the present invention with embodiment openly as above; so itself and be not used to limit scope of the present invention; those skilled in the art are without departing from the spirit and scope of the present invention when doing a little change and retouching, and therefore protection scope of the present invention is when being as the criterion depending on appended claims confining spectrum.

Claims (18)

1. general-purpose serial bus USB expands a seat, comprising:
Multiple downlink port;
Uplink port, be connected to mancarried device in order to this USB is expanded seat, wherein this uplink port comprises OTG ID pin and differential right; And
Microcontroller, in order to detect multiple modes of operation of this mancarried device,
Wherein when this microcontroller detects that this mancarried device is in USB OTG master mode and enters halted state, this microcontroller switches to USB device pattern to control this mancarried device by this USB OTG master mode by the state switching this OTG ID pin, uses and is charged to this mancarried device by this uplink port.
2. USB as claimed in claim 1 expands seat, and wherein this uplink port is by USB micro A/B Interface realization.
3. USB as claimed in claim 1 expands seat, and wherein this uplink port is compatible to USB microA/B interface.
4. USB as claimed in claim 1 expands seat, also comprises: the first button, in order to this mancarried device is switched to this USB OTG master mode by this USB device pattern.
5. USB as claimed in claim 1 expands seat, also comprises: the second button, enters this halted state in order to control this mancarried device when being in this USB OTG master mode when this mancarried device.
6. USB as claimed in claim 1 expands seat, wherein when this mancarried device is in this USBOTG master mode, this microcontroller carry out this mancarried device and be connected to this USB expand seat the plurality of downlink port multiple USB peripheral units between data transmission.
7. USB as claimed in claim 1 expands seat, wherein when this mancarried device has entered this halted state, this mancarried device sends pause instruction to this microcontroller, and when this microcontroller receives this pause instruction, this microcontroller interrupt this differential to and then restart that this is differential right, make this mancarried device enter this USB device pattern by this USB OTG master mode.
8. USB as claimed in claim 1 expands seat, wherein when this mancarried device enters this USB device pattern, this microcontroller also by this differential to short circuit to start fast charge mode.
9. USB as claimed in claim 6 expands seat, wherein when user utilizes one in the plurality of USB peripheral unit to send trigger pip, this USB expands seat and enters this USB OTG master mode to control this mancarried device by this USB device pattern according to this trigger pip.
10. utilize the method that general-purpose serial bus USB expansion seat charges to mancarried device, wherein this USB expansion seat comprises multiple downlink port and uplink port, and the method comprises:
By this uplink port, this USB is expanded seat and be connected to this mancarried device, wherein this uplink port comprises OTG ID pin and differential right;
Detect multiple modes of operation of this mancarried device; And
When detecting that this mancarried device is in USB OTG master mode and enters halted state, switch to USB device pattern to control this mancarried device by this USB OTG master mode by the state switching this OTG ID pin, use and by this uplink port, this mancarried device is charged.
11. methods as claimed in claim 10, wherein this uplink port is by USB micro A/B Interface realization.
12. methods as claimed in claim 10, wherein this uplink port is compatible to USB micro A/B interface.
13. methods as claimed in claim 10, wherein this USB expansion seat also comprises: the first button, and the method also comprises:
By this first button of pressing so that this mancarried device is switched to this USB OTG master mode by this USB device pattern.
14. methods as claimed in claim 10, wherein this USB expansion seat also comprises: the second button, and the method also comprises:
This halted state is entered to control this mancarried device when being in this USB OTG master mode when this mancarried device by this second button of pressing.
15. methods as claimed in claim 10, also comprise:
When this mancarried device is in this USB OTG master mode, carry out this mancarried device and be connected to this USB expand seat the plurality of downlink port multiple USB peripheral units between data transmission.
16. methods as claimed in claim 10, also comprise:
When this mancarried device has entered this halted state, send pause instruction to this mancarried device;
When this mancarried device receives this pause instruction, interrupt this differential to and then restart that this is differential right, just must enter this USB device pattern by this USB OTG master mode by this mancarried device.
17. methods as claimed in claim 10, also comprise:
When this mancarried device enters this USB device pattern, by this differential to short circuit to start a fast charge mode.
18. methods as claimed in claim 15, also comprise:
When user utilizes in the plurality of USB peripheral unit one to send trigger pip, expand seat according to this trigger pip and control this mancarried device to control this USB and enter this USB OTG master mode by this USB device pattern.
CN201510264753.8A 2014-05-22 2015-05-22 Universal serial bus expansion seat and method for charging portable device by using same Active CN104932615B (en)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
US201462001811P 2014-05-22 2014-05-22
US62/001,811 2014-05-22
US14/692,155 2015-04-21
US14/692,155 US9772653B2 (en) 2014-05-22 2015-04-21 Mechanism for charging portable device with USB dock
TW104116187A TWI553486B (en) 2014-05-22 2015-05-21 Universal serial bus dock and associated method for charging a portable device
TW104116187 2015-05-21

Publications (2)

Publication Number Publication Date
CN104932615A true CN104932615A (en) 2015-09-23
CN104932615B CN104932615B (en) 2019-03-05

Family

ID=54119815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510264753.8A Active CN104932615B (en) 2014-05-22 2015-05-22 Universal serial bus expansion seat and method for charging portable device by using same

Country Status (1)

Country Link
CN (1) CN104932615B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106532310A (en) * 2016-12-13 2017-03-22 北京小米移动软件有限公司 Improved standard USB interface, USB structure and terminal
CN111061665A (en) * 2019-12-05 2020-04-24 深圳票联金融服务有限公司 Interface function switching equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1672139A (en) * 2002-07-26 2005-09-21 摩托罗拉公司 Dual-role compatible USB hub device and method
CN101097561A (en) * 2006-06-28 2008-01-02 巨盛电子股份有限公司 Multi-card device and host information sharing system
CN101752760A (en) * 2008-12-11 2010-06-23 富士康(昆山)电脑接插件有限公司 Multiplex USB cable connector
US20100169534A1 (en) * 2006-12-08 2010-07-01 Nokia Corporation Multiple connections to a single serial interface
US20130151749A1 (en) * 2011-12-07 2013-06-13 Via Technologies, Inc. Apparatus for coupling to a usb device and a host and method thereof
CN103309408A (en) * 2013-06-06 2013-09-18 天津大学 Function extension combination module for intelligent terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1672139A (en) * 2002-07-26 2005-09-21 摩托罗拉公司 Dual-role compatible USB hub device and method
CN101097561A (en) * 2006-06-28 2008-01-02 巨盛电子股份有限公司 Multi-card device and host information sharing system
US20100169534A1 (en) * 2006-12-08 2010-07-01 Nokia Corporation Multiple connections to a single serial interface
CN101752760A (en) * 2008-12-11 2010-06-23 富士康(昆山)电脑接插件有限公司 Multiplex USB cable connector
US20130151749A1 (en) * 2011-12-07 2013-06-13 Via Technologies, Inc. Apparatus for coupling to a usb device and a host and method thereof
CN103309408A (en) * 2013-06-06 2013-09-18 天津大学 Function extension combination module for intelligent terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106532310A (en) * 2016-12-13 2017-03-22 北京小米移动软件有限公司 Improved standard USB interface, USB structure and terminal
CN111061665A (en) * 2019-12-05 2020-04-24 深圳票联金融服务有限公司 Interface function switching equipment

Also Published As

Publication number Publication date
CN104932615B (en) 2019-03-05

Similar Documents

Publication Publication Date Title
TWI553486B (en) Universal serial bus dock and associated method for charging a portable device
JP6083878B2 (en) Method and apparatus for determining the direction of power supply
WO2018176901A1 (en) Adapter, terminal device and adapter system
TWI648635B (en) Universal serial bus hub and operation method thereof
US10162788B2 (en) USB on the go (OTG) multi-hub endpoint reflector hub
CN111697663B (en) Charging circuit and charging cable
CN102820682B (en) A kind of communicated by USB interface and be external equipment charging device and method
US20160004287A1 (en) Portable electronic device and power management method thereof
US10025351B2 (en) System for controlling peripherals connected to a docking station
CN101601001A (en) A plurality of connections to single serial interface
CN102880238A (en) Interface expanding method and device for tablet personal computer
CN109672950B (en) Power saving circuit and power saving method based on Type-C earphone
CN109921481A (en) To the OTG equipment and method of supplying power to of communication object power supply when USB is communicated
CN106104504A (en) The system and method disconnecting detection on the double mode port of usb hub
CN105868140A (en) A mobile apparatus
CN106340780A (en) Terminal device and control method thereof
CN104932615A (en) Universal serial bus expansion seat and method for charging portable device by using same
CN104915310A (en) Electronic system
CN112166422B (en) Mobile terminal
CN106774769B (en) Terminal working mode switching method and device and handheld terminal
CN103559149A (en) Method and system for working mode switchover of universal serial bus on-the-go (USB OTG) dual-role devices
TWM496204U (en) Universal power delivery cable, power delivery controller applied to a universal serial bus cable, and universal serial bus cable
CN209297282U (en) A kind of device for supporting mobile phone and PC to switch
CN103605624A (en) Communication device
WO2017132864A1 (en) Method and system for usb host-client mode switching of vr device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20191119

Address after: Chinese Taiwan New Taipei City

Patentee after: Wei Feng electronic Limited by Share Ltd

Address before: Chinese Taiwan New Taipei City

Patentee before: VIA Technologies