CN104932615B - 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
CN104932615B
CN104932615B CN201510264753.8A CN201510264753A CN104932615B CN 104932615 B CN104932615 B CN 104932615B CN 201510264753 A CN201510264753 A CN 201510264753A CN 104932615 B CN104932615 B CN 104932615B
Authority
CN
China
Prior art keywords
usb
mancarried device
seat
otg
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.)
Active
Application number
CN201510264753.8A
Other languages
Chinese (zh)
Other versions
CN104932615A (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 universal serial bus expands seat and its charges to mancarried device
Technical field
The present invention relates to the expansion seats (dock) for mancarried device, in particular to can be according to detected portable The operating state of device and a kind of universal serial bus (USB) to charge to the mancarried device expands seat.
Background technique
In recent years, the demand for the new function of computer system and peripheral unit can simply be connected to department of computer science System has several new developments.One of which development is general-purpose serial bus USB (Universal Serial Bus).USB specification Development be to provide for external expansion, can allow increase peripheral unit it is equally simple just as telephone set is hung up earpiece.From USB After specification invention, just widely market is received.
USB On-the-Go (OTG) specification two kinds of roles of device, e.g. OTG A device and OTG B dress It sets.Which side this term defines and provides power supply to the connection, and whichever is initially main control end (host).OTG A device is One power supply supplier, and OTG B device is power supply user.Preset connection is configured to OTG A device and plays the part of USB main control end, And OTG B device is a USB peripheral device.USB OTG specification, which opens a device, can play the part of main side (master) and subordinate The role of (slave) is held, therefore dexterously changes above-mentioned term.After OTG, when playing the part of the main side of connection, a USB device It can be a main control end, or can be a peripheral unit when playing the part of the subordinate end of connection.It chooses whether as main control end or peripheral unit It is to be determined completely by that one end of USB device insertion cable.When USB device is connected to the end A of cable, the USB device As A device plays the part of preset main control end.When USB device is connected to the end B of cable, which is B device, is played the part of Preset peripheral unit.
In USB battery Charging Specification, USB device always extracts (draw) power supply by USB main control end.If user wants The use of its mancarried device is a USB main control end, needs using the particular type of cable with an ID pin.Therefore, often make With the USB micro A/B cable with OTG ID pin.When a USB device is connected to one using USB micro A/B cable When mancarried device, which can be by USB device pattern switching to USB OTG master mode, and the mancarried device Power supply can be provided to the USB device connected.
In a situation using expansion seat, user's possible static a very long time, and need using large-scale and biography The input unit of system, e.g. keyboard and mouse.When mancarried device is in USB OTG master mode, USB, which expands seat, to be mentioned For required video and USB input/store function.However, when mancarried device is in USB OTG master mode, it is portable Device will use the power supply of itself.Although USB expands the power source that seat tool has oneself, the power supply that USB expands seat can not also divide It enjoys to mancarried device, because the function is not defined in USB battery Charging Specification.
Summary of the invention
The present invention provides a kind of universal serial bus (USB) expansion seat, comprising: multiple downlink ports;One uplink port is used USB expansion seat is connected to a mancarried device, wherein the uplink port includes an OTG ID pin and a differential pair; And a microcontroller, to detect multiple modes of operation of the mancarried device.When the microcontroller detects that this is portable Device is in a USB OTG master mode and has entered pause (suspend) state, and the microcontroller is by the switching OTG The state of ID pin switches to a USB device mode to control the mancarried device by the USB OTG master mode, uses by this Uplink port charges to the mancarried device.
Expand what seat charged to a mancarried device using a universal serial bus (USB) the present invention also provides a kind of Method, it includes multiple downlink ports and a uplink port that wherein the USB, which expands seat, this method comprises: passing through the uplink port USB expansion seat is connected to the mancarried device, wherein the uplink port includes an OTG ID pin and a differential pair;Inspection Survey multiple modes of operation of the mancarried device;And works as and detect that the mancarried device is in a USB OTG master mode simultaneously Entered one pause (suspend) state, by switch the OTG ID pin state to control the mancarried device by this USBOTG master mode switches to a USB device mode, uses and is charged by the uplink port to the mancarried device.
Detailed description of the invention
Fig. 1 is the block diagram for showing one of embodiment USB expansion seat according to the present invention.
[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.
Specific embodiment
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, a preferred embodiment is cited below particularly, and match Attached drawing is closed, is described in detail below.
Fig. 1 is to show that the USB in an embodiment according to the present invention expands the block diagram of seat.In one embodiment, USB expands Filling seat 100 includes a microcontroller 110, multiple downlink ports (downstream port) 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, and e.g. one Mobile phone or a tablet computer.USB can be expanded seat 100 and be coupled to other USB devices, e.g. one by downlink port 120 Screen, keyboard or mouse can assist input or output information to the mancarried device for having been connected to USB expansion seat 100.? In one embodiment, uplink port 130 is a USB micro A/B connector comprising a differential pair (D+ and D- pin), one VBUS power pins, ground connection (GND) pin and an OTG ID pin.Microcontroller 110 can be according to the shape of OTG ID pin State is to detect the mode of operation of mancarried device 150.For example, when OTG ID pin is a first state (such as: ground connection) When, microcontroller 110 is it can be seen that mancarried device 150 is in a working condition (working state).In another embodiment In, uplink port 130 is compatible with USB micro A/B interface comprising a differential pair (D+ and D- pin), a VBUS power supply draw Foot, ground connection (GND) pin and an OTG ID pin.Still further, there are many USB connections of type in the market Device, but they are equipped with above-mentioned main USB pin.
Expand in the situation of seat 100 when a user connects mancarried device 150 to USB, USB expands seat 100 can USB OTG master control (host) mode of enable (enable) mancarried device 150 uses enable and is connected to USB expansion seat 100 The use of the periphery USB of downlink port 120, and carry out the normal data transfer between mancarried device 150 and the periphery USB. It should be noted that mancarried device 150 is under USB OTG master mode and can not be charged using uplink port 130, because Mancarried device 150 plays the part of one " main control end " under USB OTG master mode.
Expand seat 100 when mancarried device 150 is sent a pause (suspend) using the differential pair and instructed to USB, USB expand seat 100 microcontroller 110 state of OTG ID pin can be set as one second state (such as: suspension joint (floating)), so that mancarried device 150 enters a USB (device) device mode by USB OTG master mode, also make Obtaining USB expansion seat 100 can charge to mancarried device 150 using uplink port 130.It is noted that working as portable dress Set 150 left unused a predetermined time when, mancarried device 150 can automatically into one pause (suspend) state.Selectivity Ground, when user manually closes the power supply of the screen of mancarried device 150, mancarried device 150 can also pass through pause shape State, but the present invention is not limited thereto.When entering halted state, a pause instruction is can be transmitted to USB expansion seat in mancarried device 150 100。
Still further, the pause instruction from mancarried device 150 is received when USB expands seated connection, USB expands seat 100 (disconnect) differential pair is disconnected, and then short-circuit (short) differential pair, so that mancarried device 150 is such as detection It is physically disconnected to uplink port 130 and is inserted into mancarried device 150 again.Then, USB expands seat 100 and can incite somebody to action The state of OTG ID pin is set as one second state, to force mancarried device 150 to enter USB by USB OTG master mode Device (device) mode.It is noted that USB expand seat 100 can when mancarried device 150 is in USB device mode, The voltage for setting differential pair uses a variety of fast charge modes of offer and charges to mancarried device 150.For example, fastly Fast charge mode can be a power supply transfer mode (power delivery defined in USB battery rechargeable standard v1.2 editions Mode), an Apple mode or another fast charge mode, but the present invention is not limited thereto.
In one embodiment, it further includes a button 140 that USB, which expands seat 100, is an entity button, to utilize GPIO Interface is to switch the USB operation mode of mancarried device 150.For example, when user need by mancarried device 100 by When USB device pattern switching returns USB OTG master mode, user can be by lower button 140.Then, microcontroller 110 detects Button 140 is pressed, and the state of OTG ID pin is set as first state (such as: ground connection) using setting GPIO interface, It uses notice mancarried device 150 and USB OTG master mode is entered by USB device mode.
In another embodiment, when user needs mancarried device returning USB OTG master control by USB device pattern switching When mode, one trigger signal of one of transmission that user expands the peripheral unit of seat 100 using USB is connected to, so that USB, which expands seat 100, can leave differential pair open circuit USB device mode.Then, USB, which expands seat 100, can start the differential pair simultaneously The state of OTG ID pin is set as first state to notify mancarried device 150 to enter USB OTG master mode.
In another embodiment, replace and mancarried device 150 is waited to enter halted state, USB expands seat 100 by USB The virtual endpoint (virtual endpoint) for expanding 100 predefineds of seat sends a specific pause instruction, uses allowing USB Expanding seat 100 initiatively forces mancarried device 150 to enter halted state by working condition.The specific pause instruction can be by using Person presses another button (not being painted in Fig. 1) and is triggered.In one embodiment, which, which belongs to, is coupled to USB expansion seat One virtual link device of 100 virtual port.For example, the virtual endpoint is to simulate (emulate) keyboard, and A pause instruction can be transmitted to mancarried device 150 in it.This means, the virtual endpoint is preparatory for one in USB expansion seat 100 The endpoint of definition, to suspend the mancarried device 150.It is according to aforesaid way, then automatic temporarily without waiting for mancarried device 150 Stop.In other words, when whenever user needs to charge to mancarried device, aforesaid way more provide elasticity to User.
In another embodiment, which can be triggered by previously described button 140.In the case, Button 140 can according to mancarried device 150 state and have multiple functions.When mancarried device 150 is in USB OTG master control Mode, when pressing lower button 140, mancarried device 150 enters halted state.When mancarried device 150 is in USB device mould Formula, when pressing lower button 140, mancarried device 150 can be switched to USB OTG master mode by USB device mode.
In conclusion USB, which expands seat 100, can detect the work of mancarried device 150 when USB OTG master mode is opened Make state.USB expands seat 100 more can be by the state of switching OTG ID pin to control mancarried device 150 by USB OTG master Pattern switching is controlled to USB device mode.In addition to this, USB expansion seat 100 more can be by uplink port 130 to mancarried device 150 It charges.USB expands the features described above right and wrong of seat 100 it will be apparent that because this feature does not define in USB standard. Present invention utilizes hardware and firmware function to start features described above, when user does not need using the periphery USB and portable dress It sets 150 still to connect when USB expands on seat, features described above can allow mancarried device 150 to carry out quick charge.
Method or specific modality of the invention or part thereof can be contained in tangible media, such as in the form of program code Floppy disk, CD, hard disk or any other machine-readable (such as computer-readable) storage medium, wherein work as program code By machine, when being loaded into and execute such as computer, this machine becomes to participate in the device of the invention or system.Side of the invention Method, system and device can also be in the form of program codes through some transmission mediums, such as electric wire or cable, optical fiber or any Transport-type is transmitted, wherein when program code is by machine, when receiving, be loaded into and execute such as computer, this machine becomes to use To participate in the device of the invention or system.In general service processor implementation, program code combination processing device provides a behaviour Make to be similar to the unique apparatus using particular logic circuit.
Though the present invention is disclosed as above with embodiment, the range that however, it is not to limit the invention, those skilled in the art Without departing from the spirit and scope of the present invention when can do a little change and retouching, therefore protection scope of the present invention is when view institute Subject to attached claims confining spectrum.

Claims (16)

1. a kind of general-purpose serial bus USB expands seat, comprising:
Multiple downlink ports;
Uplink port, USB expansion seat is connected to mancarried device, wherein the uplink port include OTG ID pin with And differential pair;And
Microcontroller, to detect multiple modes of operation of the mancarried device,
It, should wherein when the microcontroller detects that the mancarried device is in USB OTG master mode and has entered halted state Microcontroller is switched to by the state for switching the OTG ID pin with controlling the mancarried device by the USB OTG master mode USB device mode is used and is charged by the uplink port to the mancarried device,
Wherein when the mancarried device has entered the halted state, which sends pause instruction to the microcontroller Device, and when the microcontroller receives the pause instruction, the microcontroller interrupt differential pair simultaneously then restarts the difference Dynamic pair, so that the mancarried device enters the USB device mode by the USB OTG master mode.
2. USB as described in claim 1 expands seat, wherein the uplink port is realized by USB micro A/B interface.
3. USB as described in claim 1 expands seat, wherein the uplink port is compatible to USB micro A/B interface.
4. USB as described in claim 1 expands seat, further includes: the first button, the mancarried device to be filled by the USB Pattern switching is set to the USB OTG master mode.
5. USB as described in claim 1 expands seat, further includes: the second button, to be somebody's turn to do when the mancarried device is in The mancarried device is controlled when USB OTG master mode into the halted state.
6. USB as described in claim 1 expands seat, wherein when the mancarried device is in the USB OTG master mode, it should Microcontroller carries out the mancarried device and is connected to multiple USB peripheral equipments that the USB expands multiple downlink port of seat Data transmission between setting.
7. USB as described in claim 1 expands seat, wherein when the mancarried device enters the USB device mode, the micro-control Device processed is also by the differential pair short circuit to start fast charge mode.
8. USB as claimed in claim 6 expands seat, wherein when user utilizes a hair in multiple USB peripheral device Trigger signal is sent, USB expansion seat controls the mancarried device according to the trigger signal should by USB device mode entrance USB OTG master mode.
9. a kind of expand the method that seat charges to mancarried device using general-purpose serial bus USB, wherein the USB expands seat Including multiple downlink ports and uplink port, this method comprises:
USB expansion seat is connected to the mancarried device by the uplink port, wherein the uplink port includes that OTG ID draws Foot and differential pair;
Detect multiple modes of operation of the mancarried device;And
When detecting that the mancarried device is in USB OTG master mode and entered halted state, by switching the OTG ID The state of pin switches to USB device mode to control the mancarried device by the USB OTG master mode, uses by the uplink Port charges to the mancarried device,
This method further include:
When the mancarried device has entered the halted state, pause instruction is sent to a microcontroller by the mancarried device;
It when the microcontroller receives the pause instruction, interrupts the differential pair and then restarts the differential pair, so that should Mancarried device enters the USB device mode by the USB OTG master mode.
10. method as claimed in claim 9, wherein the uplink port is realized by USB micro A/B interface.
11. method as claimed in claim 9, wherein the uplink port is compatible to USB micro A/B interface.
12. method as claimed in claim 9, wherein the USB expands seat further include: the first button, and this method further include:
By press first button with by the mancarried device by the USB device pattern switching to the USB OTG master mode.
13. method as claimed in claim 9, wherein the USB expands seat further include: the second button, and this method further include:
By press second button to control the portable dress when the mancarried device is in the USB OTG master mode It sets and enters the halted state.
14. method as claimed in claim 9, further includes:
When the mancarried device is in the USB OTG master mode, carries out the mancarried device and be connected to USB expansion Data transmission between multiple USB peripheral devices of multiple downlink port of seat.
15. method as claimed in claim 9, further includes:
When the mancarried device enters the USB device mode, by the differential pair short circuit to start a fast charge mode.
16. method as claimed in claim 14, further includes:
When user utilizes a transmission trigger signal in multiple USB peripheral device, according to the trigger signal to control USB expansion seat controls the mancarried device and enters the USB OTG master mode by the USB device mode.
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 US9772653B2 (en) 2014-05-22 2015-04-21 Mechanism for charging portable device with USB dock
US14/692,155 2015-04-21
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 CN104932615A (en) 2015-09-23
CN104932615B true 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)

Families Citing this family (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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101097561A (en) * 2006-06-28 2008-01-02 巨盛电子股份有限公司 Multi-card device and host information sharing system
CN103309408A (en) * 2013-06-06 2013-09-18 天津大学 Function extension combination module for intelligent terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6732218B2 (en) * 2002-07-26 2004-05-04 Motorola, Inc. Dual-role compatible USB hub device and method
CN101601001B (en) * 2006-12-08 2012-07-18 诺基亚公司 Multiple connections to a single serial interface
CN101752760A (en) * 2008-12-11 2010-06-23 富士康(昆山)电脑接插件有限公司 Multiplex USB cable connector
EP2602722B1 (en) * 2011-12-07 2020-04-08 VIA Technologies, Inc. USB charging module

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101097561A (en) * 2006-06-28 2008-01-02 巨盛电子股份有限公司 Multi-card device and host information sharing system
CN103309408A (en) * 2013-06-06 2013-09-18 天津大学 Function extension combination module for intelligent terminal

Also Published As

Publication number Publication date
CN104932615A (en) 2015-09-23

Similar Documents

Publication Publication Date Title
TWI553486B (en) Universal serial bus dock and associated method for charging a portable device
EP2879014B1 (en) Tablet interface extension method and device
WO2018176901A1 (en) Adapter, terminal device and adapter system
EP2650752B1 (en) Terminal device and power supply method for terminal device
CN102820682B (en) A kind of communicated by USB interface and be external equipment charging device and method
JP6552517B2 (en) Port disconnection charge function for USB hub
CN108885601B (en) USB multi-host endpoint reflector hub
CN106502939B (en) USB adapter and data transmission equipment
US20160004287A1 (en) Portable electronic device and power management method thereof
CN102054370B (en) USB (universal serial bus) cable controller and electronic reading device using same
CN107707000B (en) OTG power supply and wireless charging compatible circuit, related method and terminal equipment
CN104063348B (en) Realize the device and method of compatible USB communications and voice communication
US8458376B1 (en) USB peripheral device with automatic mode switch
WO2017161750A1 (en) Mobile apparatus
CN105302750A (en) Interface function configuration method and electronic equipment
CN106104504A (en) The system and method disconnecting detection on the double mode port of usb hub
US9590441B2 (en) Multi-standard compliant USB battery charging scheme with detection of host disconnection in ACA-DOCK mode
CN104932615B (en) Universal serial bus expansion seat and method for charging portable device by using same
TWI554889B (en) Electric system
WO2016141572A1 (en) Leakage current detection circuit of terminal, and terminal
CN203691642U (en) Mobile terminal provided with multiplex interface
CN108563537A (en) A kind of USB principals and subordinates detection device and method
JP7064052B2 (en) mobile computer
CN106774769B (en) Terminal working mode switching method and device and handheld terminal
CN106856289B (en) Electronic equipment and circuit thereof, switching equipment and circuit thereof and signal processing system

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

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

TR01 Transfer of patent right