CN105549708B - A kind of method of supplying power to and the first electronic equipment - Google Patents

A kind of method of supplying power to and the first electronic equipment Download PDF

Info

Publication number
CN105549708B
CN105549708B CN201510891938.1A CN201510891938A CN105549708B CN 105549708 B CN105549708 B CN 105549708B CN 201510891938 A CN201510891938 A CN 201510891938A CN 105549708 B CN105549708 B CN 105549708B
Authority
CN
China
Prior art keywords
state
electronic equipment
supply access
input interface
adjusted
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
CN201510891938.1A
Other languages
Chinese (zh)
Other versions
CN105549708A (en
Inventor
肖启华
莫志坚
徐晶
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510891938.1A priority Critical patent/CN105549708B/en
Publication of CN105549708A publication Critical patent/CN105549708A/en
Application granted granted Critical
Publication of CN105549708B publication Critical patent/CN105549708B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips

Abstract

The invention discloses a kind of method of supplying power to and the first electronic equipment, the method for supplying power to: the power supply priority for obtaining the first input interface of the first electronic equipment is the first priority, and the power supply priority of the second input interface is the second priority;When detecting that the second electronic equipment is connected to first electronic equipment by first input interface, control includes at least second electronic equipment and the first supply access of first input interface is in the conductive state, for first power electronic equipment;When detecting that third electronic equipment is connected to first electronic equipment by second input interface, and second priority be higher than first priority when, first supply access is controlled at the first moment, and off-state is adjusted to by the on state, and it is in the on state in the second supply access that first moment control includes at least the third electronic equipment and second input interface, for first power electronic equipment.

Description

A kind of method of supplying power to and the first electronic equipment
Technical field
The present invention relates to electronic technology field, in particular to a kind of method of supplying power to and the first electronic equipment.
Background technique
With the development of science and technology, such as laptop, the electronic equipments such as tablet computer are more and more frivolous and are convenient for It carries.But consequently also bring some problems, wherein the most typical problem are as follows: electronic equipment is few from port, is not able to satisfy The functionalization demand to electronic equipment of user.
In the prior art, above-mentioned few from port to solve the problems, such as, just there is docking station, the main function of docking station It is the function of extending electronic equipment, connects such as driver, large screen display, keyboard, printer, scanning with slot by interface A variety of external equipments such as instrument.
In the prior art, docking station extends except electronic functionalities except through connecting a variety of external equipments, also Power supply or charging can be provided for electronic equipment.After docking station is connected to electronic equipment, the power supply of docking station is electricity automatically Sub- equipment power supply.
When powering simultaneously by connecting a variety of external equipments to current electronic equipment, for example pass through docking station and electricity Sub- equipment is self-powered while being power electronic equipment, be easy to cause the technical problem of electronic apparatus system short circuit.For this purpose, in order to It solves the problems, such as system short-circuit, designs simple logic circuit frequently with fixed hardware in the prior art and cut to control power supply The priority changed.
In realizing the embodiment of the present application during technical solution, the discovery prior art at least exists present inventor Following technical problem:
In the prior art, when the external equipment by different power supply priority is powered current electronic device, There is technical issues that make current electronic device in handoff procedure.
Summary of the invention
The embodiment of the present invention provides a kind of method of supplying power to and the first electronic equipment, is passing through in the prior art for solving When the external equipment of difference power supply priority is powered current electronic device, existing in handoff procedure sets Current electronic The technical issues of standby power-off shutdown, the power-off shutdown that will not cause electronic equipment in handoff procedure is realized, in protection electronics While equipment, also ensure external equipment to the power supply effect of electronic equipment.
One, the embodiment of the present application provides a kind of method of supplying power to, comprising the following steps:
The power supply priority for obtaining the first input interface of the first electronic equipment is the first priority, the second input interface Power supply priority is the second priority;
When detecting that the second electronic equipment is connected to first electronic equipment by first input interface, control It is in the conductive state including at least the first supply access of second electronic equipment and first input interface, to be described First power electronic equipment;
When detecting that third electronic equipment is connected to first electronic equipment by second input interface, and it is described When second priority is higher than first priority, first supply access is controlled by the on state tune at the first moment Whole is off-state, and control includes at least the third electronic equipment and second input interface at first moment The second supply access be in the on state, for first power electronic equipment.
Optionally, the control includes at least second electronic equipment and the first power supply of first input interface is logical Road is in the conductive state, to specifically include for first power electronic equipment:
Controller in first electronic equipment is by the switch shape of the first switch mould group in first electronic equipment State is adjusted on state, and then makes to include at least second electronic equipment, and first input interface and described first open First supply access of Guan Mo group is the on state, for first power electronic equipment.
Optionally, the controller in first electronic equipment is by the first switch mould group in first electronic equipment Switch state is adjusted on state, specifically includes:
The controller controls at each switch element at least two switch elements in the first switch mould group In on state.
Optionally, the controller controls each of at least two switch elements in the first switch mould group and opens It is in the conductive state to close element, specifically includes:
The level state that the controller controls the first pin of the first switching element in the first switch mould group is The level state of the second pin of second switch element in high level state, and the control first switch mould group is described High level state, so that the first switch mould group is in the conductive state.
Optionally, described that off-state is adjusted to by state in the first moment control first supply access, with And control includes at least the second supply access of the third electronic equipment and second input interface at first moment It is in the conductive state, to specifically include for first power electronic equipment:
It is in fully on state in first supply access, and second supply access is in the off-state When, the level state that the controller controls the second pin is adjusted to low level state by the high level state, so that First supply access is adjusted to the one-way conduction state by the fully on state;
The controller keeps first supply access to be in the one-way conduction state, and control described second is opened The third pin of third switch element in Guan Mo group is adjusted to the high level state by the low level state, so that It obtains second supply access and the one-way conduction state is adjusted to by the off-state;
The controller keeps second supply access to be in the one-way conduction state, and control described first is drawn Foot is adjusted to the low level state by the high level state, so that first supply access is by the one-way conduction state It is adjusted to the off-state;
The controller keeps first supply access to be in the off-state, and the control second switch mould 4th pin of the 4th switch element in group is adjusted to the high level state by the low level state, so that described second Supply access is adjusted to the fully on state by the one-way conduction state, to first power electronic equipment.
Optionally, first input interface is specially the first power input interface, and second input interface is specially Second source input interface, when second electronic equipment is specially the first power supply adaptor, the third electronic equipment tool Body is the base apparatus that can extend first electronic functionalities;Or
When second electronic equipment is specially first power supply adaptor, the third electronic equipment is specially Second source adapter;Or
When second electronic equipment is specially the second source adapter, the third electronic equipment is specially institute State base apparatus.
Optionally, first electronic equipment is supplied by first supply access in second electronic equipment When electric, the method also includes:
By the third for including at least the 5th switch element in first input interface and first electronic equipment Supply access is powered the controller.
Two, the embodiment of the present application also provides a kind of first electronic equipments, comprising:
First input interface and the second input interface;
Controller is connect with first input interface and second input interface respectively;
Wherein, the controller is used for:
The power supply priority for obtaining first input interface is the first priority, and the power supply of second input interface is excellent First grade is the second priority;And
When detecting that the second electronic equipment is connected to first electronic equipment by first input interface, control It is in the conductive state including at least the first supply access of second electronic equipment and first input interface, to be described First power electronic equipment;
When detecting that third electronic equipment is connected to first electronic equipment by second input interface, and it is described When second priority is higher than first priority, first supply access is controlled by the on state tune at the first moment Whole is off-state, and control includes at least the third electronic equipment and second input interface at first moment The second supply access be in the on state, for first power electronic equipment.
Optionally, the controller is specifically used for:
The switch state of first switch mould group in first electronic equipment is adjusted on state, and then is made at least Comprising second electronic equipment, first supply access of first input interface and the first switch mould group is institute On state is stated, for first power electronic equipment.
Optionally, the controller is specifically used for:
The each switch element controlled at least two switch elements in the first switch mould group is in the conductive state.
Optionally, the controller is specifically used for:
The level state for controlling the first pin of the first switching element in the first switch mould group is high level state, And the level state of the second pin of the second switch element in the control first switch mould group is the high level state, So that the first switch mould group is in the conductive state.
Optionally, it is in fully on state in first supply access, and second supply access is in described When off-state, the controller is specifically used for:
The level state for controlling the second pin is adjusted to low level state by the high level state, so that described One supply access is adjusted to the one-way conduction state by the fully on state;
First supply access is kept to be in the one-way conduction state, and the control second switch mould group The third pin of third switch element is adjusted to the high level state by the low level state, so that described second Supply access is adjusted to the one-way conduction state by the off-state;
Second supply access is kept to be in the one-way conduction state, and control first pin by the height Level state is adjusted to the low level state, so that first supply access is adjusted to described by the one-way conduction state Off-state;
Keep the 4th that first supply access is in the off-state, and the control second switch mould group 4th pin of switch element is adjusted to the high level state by the low level state so that second supply access by The one-way conduction state is adjusted to the fully on state, to first power electronic equipment.
Optionally, first input interface is specially the first power input interface, and second input interface is specially Second source input interface, when second electronic equipment is specially the first power supply adaptor, the third electronic equipment tool Body is the base apparatus that can extend first electronic functionalities;Or
When second electronic equipment is specially first power supply adaptor, the third electronic equipment is specially Two power supply adaptors;Or
When second electronic equipment is specially the second source adapter, the third electronic equipment is specially The base apparatus.
Optionally, first electronic equipment is supplied by first supply access in second electronic equipment When electric, first electronic equipment further include:
5th switch element, wherein by including at least in first input interface and first electronic equipment The third supply access of 5th switch element is powered the controller.
Three, the embodiment of the present application also provides a kind of first electronic equipments, comprising:
First obtains unit, the power supply priority of the first input interface for obtaining the first electronic equipment are first preferential Grade, the power supply priority of the second input interface are the second priority;
First control unit, for when detecting that the second electronic equipment is connected to described the by first input interface When one electronic equipment, control includes at least second electronic equipment and the first supply access of first input interface is in On state, for first power electronic equipment;
Second control unit, for when detecting that third electronic equipment is connected to described the by second input interface One electronic equipment, and when second priority is higher than first priority, it is logical in the first moment control first power supply It routes the on state and is adjusted to off-state, and control includes at least the third electronic equipment at first moment And the second supply access of second input interface is in the on state, for first power electronic equipment.
Said one or multiple technical solutions in the embodiment of the present application at least have following one or more technology effects Fruit:
Due in the technical solution of the application, by using the power supply for the first input interface for obtaining the first electronic equipment Priority is the first priority, and the power supply priority of the second input interface is the second priority;When detecting the second electronic equipment When being connected to first electronic equipment by first input interface, control includes at least second electronic equipment and institute The first supply access for stating the first input interface is in the conductive state, for first power electronic equipment;When detecting Three electronic equipments are connected to first electronic equipment by second input interface, and second priority is higher than described When the first priority, first supply access is controlled at the first moment, off-state is adjusted to by the on state, and At first moment, control is included at least at the second supply access of the third electronic equipment and second input interface In the on state, for first power electronic equipment.That is, when simultaneously, there are two different power supply priority External equipment when being powered to first electronic equipment, Gao You directly can be switched to by the supply access of low priority The supply access of first grade, to efficiently solve in the prior art in the external equipment by different power supply priority to current electricity When sub- equipment is powered, there is technical issues that make current electronic device in handoff procedure, realizes and cutting The power-off shutdown that will not cause electronic equipment during changing also ensures external equipment to electricity while protecting electronic equipment The power supply effect of sub- equipment.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, will be described below to embodiment Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment.
Fig. 1 is a kind of method flow diagram for method of supplying power to that the embodiment of the present application one provides;
Fig. 2 is the method flow diagram of the step S103 in a kind of method of supplying power to that the embodiment of the present application one provides;
Fig. 3 is a kind of structure chart for power supply circuit that the embodiment of the present application one provides;
Fig. 4 is the structure chart for the first electronic equipment of one kind that the embodiment of the present application two provides;
Fig. 5 is the structure chart for the first electronic equipment of one kind that the embodiment of the present application three provides.
Specific embodiment
The embodiment of the present invention provides a kind of method of supplying power to and the first electronic equipment, for solving in the prior art by not When the external equipment of same power supply priority is powered current electronic device, existing in handoff procedure makes current electronic device The technical issues of power-off shutdown, realizes the power-off shutdown that will not cause electronic equipment in handoff procedure, sets in protection electronics While standby, also ensure external equipment to the power supply effect of electronic equipment.
In order to solve the above technical problems, general thought is as follows for technical solution in the embodiment of the present application:
A kind of method of supplying power to, comprising: the power supply priority for obtaining the first input interface of the first electronic equipment is first excellent First grade, the power supply priority of the second input interface are the second priority;
When detecting that the second electronic equipment is connected to first electronic equipment by first input interface, control It is in the conductive state including at least the first supply access of second electronic equipment and first input interface, to be described First power electronic equipment;
When detecting that third electronic equipment is connected to first electronic equipment by second input interface, and it is described When second priority is higher than first priority, first supply access is controlled by the on state tune at the first moment Whole is off-state, and control includes at least the third electronic equipment and second input interface at first moment The second supply access be in the on state, for first power electronic equipment.
In the technical solution of the application, the power supply by using the first input interface for obtaining the first electronic equipment is preferential Grade is the first priority, and the power supply priority of the second input interface is the second priority;When detecting that the second electronic equipment passes through When first input interface is connected to first electronic equipment, control includes at least second electronic equipment and described the First supply access of one input interface is in the conductive state, for first power electronic equipment;When detect third electricity Sub- equipment is connected to first electronic equipment by second input interface, and second priority is higher than described first When priority, first supply access is controlled at the first moment, off-state is adjusted to by the on state, and in institute It states the control of the first moment and is in institute including at least the second supply access of the third electronic equipment and second input interface On state is stated, for first power electronic equipment.That is, when simultaneously, there are two the external of different power supply priority When equipment is powered first electronic equipment, high priority directly can be switched to by the supply access of low priority Supply access, to efficiently solve in the prior art in the external equipment by different power supply priority to current electronic device When being powered, there is technical issues that make current electronic device in handoff procedure, realize in handoff procedure In the power-off shutdown of electronic equipment will not be caused to also ensure external equipment to electronic equipment while protecting electronic equipment Power supply effect.
The terms "and/or", only a kind of incidence relation for describing affiliated partner, indicates that there may be three kinds of passes System, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.In addition, herein Middle character "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or" in the case where not illustrating.
In order to better understand the above technical scheme, below by attached drawing and specific embodiment to technical solution of the present invention It is described in detail, it should be understood that the specific features in the embodiment of the present application and embodiment are to the detailed of technical solution of the present invention Thin explanation, rather than the restriction to technical solution of the present invention, in the absence of conflict, the embodiment of the present application and embodiment In technical characteristic can be combined with each other.
Embodiment one
In the embodiment of the present application, first electronic equipment can for laptop, desktop computer etc., described second Electronic equipment and the third electronic equipment can be respectively docking station, power supply adaptor, type-c equipment etc..Referring to FIG. 1, The embodiment of the present application one provides a kind of method of supplying power to, comprising:
S101: the power supply priority for obtaining the first input interface of the first electronic equipment is the first priority, the second input The power supply priority of interface is the second priority;
S102: when detecting that the second electronic equipment is connected to first electronic equipment by first input interface When, control includes at least second electronic equipment and the first supply access of first input interface is in the conductive state, Think first power electronic equipment;
S103: when detecting that third electronic equipment is connected to first electronic equipment by second input interface, And second priority controls first supply access by the conducting at the first moment when being higher than first priority State is adjusted to off-state, and includes at least the third electronic equipment and described second defeated in first moment control Second supply access of incoming interface is in the on state, for first power electronic equipment.
In the specific implementation process, step S101 to step S103's the specific implementation process is as follows:
When first electronic equipment there are multiple input interfaces, the confession of the first input interface of the first electronic equipment is obtained Electric priority is the first priority, and the power supply priority of the second input interface is the second priority.That is, obtaining each defeated The power supply priority of incoming interface.Then, when detecting that the second electronic equipment is connected to described by first input interface When one electronic equipment, control includes at least second electronic equipment and the first supply access of first input interface is in On state, for first power electronic equipment.For giving a concrete illustration, when the power supply of first electronic equipment When adapter is linked together by first input interface and first electronic equipment, control at least by the power adaptation The power supply circuit of device and the input interface is in the conductive state, sets to realize the power supply adaptor to first electronics Standby power supply.
During second electronic equipment is first power electronic equipment by first input interface, When detecting that third electronic equipment is connected to first electronic equipment by second input interface, and described second is preferential When grade is higher than first priority, first supply access is controlled at the first moment and is adjusted to disconnect by the on state State, and include at least the second of the third electronic equipment and second input interface in first moment control and supply Electric pathway is in the on state, for first power electronic equipment.For example, the third electronic equipment is extension Depressed place, during power supply adaptor is first power electronic equipment, the docking station by second input interface and First electronic equipment links together, when the corresponding power supply priority of second input interface is higher than first input When the corresponding power supply priority of interface, first supply access is disconnected, by second supply access to first electronics Equipment is powered.It is set that is, being connected with multiple and different power supply the external of priority simultaneously in first electronic equipment When standby, situation, current supply access is timely switched priority-based.
In the embodiment of the present application, in order to which first supply access is adjusted to the on state, especially by The switch state of first switch mould group in first electronic equipment is adjusted to conducting shape by the controller in one electronic equipment State, and then make to include at least second electronic equipment, described the of first input interface and the first switch mould group One supply access is the on state, for first power electronic equipment.Wherein, the control in first electronic equipment The switch state of first switch mould group in first electronic equipment is adjusted on state by device processed, specifically:
The controller controls at each switch element at least two switch elements in the first switch mould group In on state.
In the specific implementation process, step: the controller controls at least two switches in the first switch mould group Each switch element in element is in the conductive state, specifically:
The level state that the controller controls the first pin of the first switching element in the first switch mould group is The level state of the second pin of second switch element in high level state, and the control first switch mould group is institute High level state is stated, so that the first switch mould group is in the conductive state.
In the specific implementation process, each switch element specifically can be isolated gate FET, technotron etc.. The first switch mould group can be at least two switch elements of P-channel field-effect transistor (PEFT) pipe and/or N-channel field-effect tube composition. Specifically, when second electronic equipment is linked together by first input interface and first electronic equipment When, the level state of each field-effect tube pin on first supply access is controlled by the controller, so that often The level state of a pin is high level state, and further, the first switch mould group is in the on state, and then makes Obtaining first supply access is the on state, and second electronic equipment is to be first power electronic equipment. By taking the first switch mould group includes such as first switching element and second switch element the two switch elements as an example, described Second electronic equipment is linked together by first input interface and first electronic equipment, to first electronics When equipment is powered, the level state that the controller controls the first pin of the first switching element is the high level shape State, so that first switching element is on.The level state of the second pin of the second switch element is controlled simultaneously For the high level state, so that the second switch element is on, so that at the first switch mould group In on state.Further, so that first supply access is in the conductive state, and then guarantee second electronic equipment First electronic equipment is powered by first supply access.
In addition, in the embodiment of the present application, in order to guarantee to customize some input interface according to user's needs Power supply priority, and can need to adjust the power supply priority of some input interface according to user at any time, it can be by described Controller controls the level state of the pin of the switch element on every supply access.For giving a concrete illustration, when described First electronic equipment has three supply accesses A, B, C, controls each switch element on supply access A by the controller and draws The level state of foot be high level state, and on supply access B and supply access C the pin of each switch element level state For low level state, then it is logical to show that the power supply priority of the input interface connected on supply access A is greater than other two power supplies The power supply priority for the input interface that road is connected.Certainly, in the specific implementation process, can also be through the controller The level state for controlling the pin of each switch element on supply access A is low level state, and supply access B and supply access The level state of the pin of the upper each switch element of C is high level state, so that the supply access A input connected be connect The power supply priority of mouth is set greater than the power supply priority for the input interface that other two supply accesses are connected.Based on same Setting input interface principle, to realize to the input interface on each supply access on first electronic equipment The control for priority of powering.
In the embodiment of the present application, referring to FIG. 2, step S103: when detecting third electronic equipment by described second Input interface is connected to first electronic equipment, and when second priority is higher than first priority, at first It carves control first supply access and off-state is adjusted to by the on state, and controlled at least at first moment The second supply access comprising the third electronic equipment and second input interface is in the on state, to be described First power electronic equipment, specifically includes:
S201: it is in fully on state in first supply access, and second supply access is in described disconnected When open state, the level state that the controller controls the second pin is adjusted to low level shape by the high level state State, so that first supply access is adjusted to the one-way conduction state by the fully on state;
S202: the controller keeps first supply access to be in the one-way conduction state, and described in control The third pin of third switch element in second switch mould group is adjusted to the high level shape by the low level state State, so that second supply access is adjusted to the one-way conduction state by the off-state;
S203: the controller keeps second supply access to be in the one-way conduction state, and described in control First pin is adjusted to the low level state by the high level state, so that first supply access is unidirectionally led by described Logical state is adjusted to the off-state;
S204: the controller keeps first supply access to be in the off-state, and control described second 4th pin of the 4th switch element in switching molding group is adjusted to the high level state by the low level state, so that institute It states the second supply access and the fully on state is adjusted to by the one-way conduction state, to supply first electronic equipment Electricity.
It in the specific implementation process, include first switch member with the first switch mould group on first supply access Part and second switch element, the second switch mould group on second supply access includes third switch element and the 4th For switch element, in order to which the low priority power switching of first electronic equipment to high priority is powered, step S201 To step S204's the specific implementation process is as follows:
In the embodiment of the present application, firstly, since diode in the bidirectionally conductive characteristic and field-effect tube of field-effect tube One-way conduction characteristic, by the two neighboring field-effect tube differential concatenation in each switching molding group on every supply access one It rises.Then, it is in fully on state in first supply access, and second supply access is in the off-state When, the level state that the controller controls the second pin adjusts low level state by the high level state, so that institute It states the first supply access and the one-way conduction state is adjusted to by the fully on state;Specifically, due to described second Priority of powering is greater than the first power supply priority, when second electronic equipment and the third electronic equipment and described the One electronic equipment links together with to first electronic equipment while when powering, in order to guarantee to switch in supply access During, external equipment remains to be powered first electronic equipment, utilizes the unidirectional of switch element internal diode On state characteristic, the level state that the controller controls the second pin are adjusted to low level shape by the high level state State, since second switch element is in one-way conduction state at this time, second electronic equipment remains to power by described first Access is powered first electronic equipment, at this point, first supply access is adjusted to by the fully on state The one-way conduction state.
Then, the controller is while keeping first supply access to be in the one-way conduction state, control The third pin of third switch element is adjusted to the high level by the low level state in the second switch mould group State, so that second supply access is adjusted to the one-way conduction state by the off-state.At this point, described first Supply access is in the one-way conduction state.Simultaneously because by the level state of the third pin of the third switch element by The low level state is adjusted to the high level state, and the third switch element is in the conductive state;Again due at this time with The one-way conduction characteristic of diode inside the field-effect tube of the third switch element differential concatenation setting, second power supply Access will be adjusted to the one-way conduction state by the off-state.
Then, the controller keeps second supply access to be in the one-way conduction state, and described in control First pin is adjusted to the low level state by the high level state, so that first supply access is unidirectionally led by described Logical state is adjusted to the off-state.Specifically, it maintains second supply access to be in the controller to remain to pair When the one-way conduction state of first power electronic equipment, first pin is adjusted to institute by the high level state Low level state is stated, at this point, due to the one-way conduction characteristic of the first switching element internal diode, the first switch member Part is in an off state, so that first supply access is adjusted to off-state by the one-way conduction state.At this point, Second electronic equipment cannot be powered first electronic equipment by first supply access.
Then, in order to guarantee second supply access to first electronic equipment have preferably power supply effect.? In specific implementation process, while the controller keeps first supply access to be in the off-state, institute is controlled The 4th pin for stating the 4th switch element in second switch mould group is adjusted to the high level state by the low level state, So that second supply access is adjusted to the fully on state by the one-way conduction state, to first electronics Equipment power supply.Specifically, the level state that the 4th pin of the 4th switch element is controlled in the controller is in institute When stating high level state, the 4th switch element is in bidirectionally conductive state, so that second supply access is by institute It states one-way conduction state and is adjusted to fully on state, to be carried out by second electronic equipment to first electronic equipment Power supply, is switched to no obvious voltage drop and is powered by the third electronic equipment to first electronic equipment.
In addition, in the embodiment of the present application, the controller mainly adjusts switch element by logic control circuit Pin level state, that is to say, that the controller via some of logic control circuit and switch element pins connect Together, it is adjusted by level state of the logic control circuit to pin.
In the embodiment of the present application, first input interface is specially the first power input interface, second input Interface is specially second source input interface, when second electronic equipment is specially the first power supply adaptor, the third Electronic equipment is specially the base apparatus that can extend first electronic functionalities;Or
When second electronic equipment is specially first power supply adaptor, the third electronic equipment is specially Two power supply adaptors;Or
When second electronic equipment is specially the second source adapter, the third electronic equipment is specially institute State base apparatus.
In the embodiment of the present application, first electronic equipment can have different supply input interfaces, by different The external equipment that supply input interface is powered first electronic equipment can there are many.It external is set by different It is standby that the electronic equipment is powered, and be how to realize the process of switching between multiple powering modes, there are following three kinds Situation, but following three kinds of situations are not limited only to, those skilled in the art can design powering mode according to specific needs Between switching.
The first situation
In the first scenario, first input interface is specially the first power input interface, and second input connects Mouth is specially second source input interface, when second electronic equipment is specially the first power supply adaptor, the third electricity Sub- equipment is specially the base apparatus that can extend first electronic functionalities.For giving a concrete illustration, described Two electronic equipments are specially power supply adaptor, and the third electronic equipment is specially docking station, in first supply access and When being attached with a kind of connection type as shown in Figure 3 of switch element in second supply access, and the control It is described when the power supply priority for the second source input interface that device is determined is greater than the power supply priority of the first power input interface Controller will currently be powered laptop by power supply adaptor, is switched to and is powered by docking station to the laptop Detailed process is as follows.
Firstly, in only power supply adaptor by first power input interface to first power electronic equipment When, the controller controls the level state of the pin of the metal-oxide-semiconductor C being attached thereto and metal-oxide-semiconductor D on first supply access It is high level state, while the level state of the pin of the metal-oxide-semiconductor on other supply accesses is low level state.Since field is imitated Should in the bidirectionally conductive characteristic and field-effect tube of pipe diode one-way conduction characteristic, the MOS on first supply access Pipe C and metal-oxide-semiconductor D is in fully on state.Then, in the case where first supply access is in fully on state, the control Device control processed adjusts low level state by the high level state with the level state of the metal-oxide-semiconductor D pin connecting, at this point, due to Metal-oxide-semiconductor D is connect with metal-oxide-semiconductor C differential concatenation, and diode of the metal-oxide-semiconductor D in it is in one-way conduction state, so, institute at this time It states the first supply access and the one-way conduction state is adjusted to by the fully on state.Nevertheless, power supply adaptor is still It can be by being powered via first supply access of metal-oxide-semiconductor C and metal-oxide-semiconductor D to first electronic equipment.
Then, the controller is described while keeping first supply access to be in the one-way conduction state Controller controls the level state of the pin of the metal-oxide-semiconductor A being attached thereto in second supply access by original low level State is adjusted to the high level state, at this point, metal-oxide-semiconductor A is in bidirectionally conductive state, due to connecting with metal-oxide-semiconductor A differential concatenation Metal-oxide-semiconductor B its interior diode one-way conduction characteristic, so, second supply access is cut by original off-state at this time It is changed to one-way conduction state.
Then, when the controller keeps second supply access to be in the one-way conduction state, control and institute The level state for stating the pin of the metal-oxide-semiconductor C of controller connection is adjusted to low level state by original high level state, at this time Metal-oxide-semiconductor A is in an off state, so first supply access is switched to off-state by one-way conduction state.At this point, extension Depressed place will be powered laptop through second supply access by the second source input interface.That is, By the pattern switching powered by power supply adaptor to laptop in order to by docking station to laptop power.
In the embodiment of the present application, in order to guarantee the docking station power supply effect relatively stable to laptop.Then, exist While the controller keeps first supply access to be in the off-state, second power supply of controller control is logical The level state of the pin for being connected thereto metal-oxide-semiconductor B of road is adjusted to high level state by the low level state, at this point, MOS Pipe B is in bidirectionally conductive state, so that second supply access is adjusted to bidirectionally conductive by the one-way conduction state State realizes power supply of the docking station to laptop.
Second situation
In the latter case, second electronic equipment is specially the first power supply adaptor, the third electronic equipment Specially second source adapter.For giving a concrete illustration, second electronic equipment is specially to match with laptop The power supply adaptor of set, the third electronic equipment have the power supply adaptor of USB Type-C interface.Due to In the case of two kinds, the controller will be currently powered laptop by general power supply adaptor, is switched to and is passed through The specific switching of process and the first situation that the power supply adaptor of insertion USB Type-C interface powers to the laptop Process is similar, does not just repeat one by one herein.
The third situation
In a third case, second electronic equipment is specially second source adapter, the third electronic equipment The specially described base apparatus.For giving a concrete illustration, second electronic equipment is specifically by insertion USB Type- The power supply adaptor of C interface, the third electronic equipment is specifically by the docking station for being inserted into docking station interface.Due in third In the case of kind, the power supply adaptor for being currently inserted into USB Type-C interface is powered laptop by the controller, It is switched to process that the docking station by being inserted into docking station interface power to the laptop and the specific of the first situation cuts It is similar to change process, does not just repeat one by one herein.
In the embodiment of the present application, in order to guarantee first electronic equipment in the case where no electricity, the control Device remains to work normally.By including at least the 5th switch element in first input interface and first electronic equipment Third supply access the controller is powered.It, can be in first electronic equipment for giving a concrete illustration Input interface and controller between a switch element is set, in order to protect circuit safety, in order to avoid electric current adverse current influences external set The standby power supply effect to first electronic equipment, the 5th switch element specifically can be two with unidirectional conduction electric current Pole pipe.Certainly other structures with guiding conduction electric current be can also be, just different one had been illustrated herein.
In addition, in the embodiment of the present application, external equipment can be by different supply accesses to first electronic equipment Mainboard be powered, can also charge to the battery unit of first electronic equipment internal.For example, working as described in detection When the battery capacity of first electronic equipment internal is lower than a preset capacity threshold value, charged by external equipment to it.Thus into one Step improves external equipment to the power supply effect of first electronic equipment.
Embodiment two
Referring to FIG. 4, being based on inventive concept same as embodiment one, the embodiment of the present application two additionally provides one kind first Electronic equipment, comprising:
First input interface 10 and the second input interface 20;
Controller 30 is connect with the first input interface 10 and the second input interface 20 respectively;
Wherein, controller 30 is used for:
The power supply priority for obtaining the first input interface 10 is the first priority, the power supply priority of the second input interface 20 For the second priority;And
When detecting that the second electronic equipment is connected to first electronic equipment by the first input interface 10, control is extremely The first supply access less comprising second electronic equipment and the first input interface 10 is in the conductive state, for described first Power electronic equipment;
When detecting that third electronic equipment is connected to first electronic equipment by the second input interface 20, and described the When two priority are higher than first priority, first supply access is controlled at the first moment and is adjusted by the on state For off-state, and in first moment control include at least the of the third electronic equipment and the second input interface 20 Two supply accesses are in the on state, for first power electronic equipment.
In the embodiment of the present application, the input interface of first electronic equipment can also have except first input interface With other input interfaces outside second input interface, that is to say, that in the embodiment of the present application, first electronic equipment Input interface can have it is multiple.
In the embodiment of the present application, controller 30 is specifically used for:
The switch state of first switch mould group in first electronic equipment is adjusted on state, and then is made at least Comprising second electronic equipment, first supply access of the first input interface 10 and the first switch mould group is described On state, for first power electronic equipment.
In the embodiment of the present application, the controller is specifically used for:
The each switch element controlled at least two switch elements in the first switch mould group is in the conductive state.
In the embodiment of the present application, controller 30 is specifically used for:
The level state for controlling the first pin of the first switching element in the first switch mould group is high level state, And the level state of the second pin of the second switch element in the control first switch mould group is the high level state, So that the first switch mould group is in the conductive state.
In the embodiment of the present application, it is in fully on state in first supply access, and second power supply is logical When road is in the off-state, controller 30 is specifically used for:
The level state for controlling the second pin is adjusted to low level state by the high level state, so that described One supply access is adjusted to the one-way conduction state by the fully on state;
First supply access is kept to be in the one-way conduction state, and the control second switch mould group The third pin of third switch element is adjusted to the high level state by the low level state, so that described second Supply access is adjusted to the one-way conduction state by the off-state;
Second supply access is kept to be in the one-way conduction state, and control first pin by the height Level state is adjusted to the low level state, so that first supply access is adjusted to described by the one-way conduction state Off-state;
Keep the 4th that first supply access is in the off-state, and the control second switch mould group 4th pin of switch element is adjusted to the high level state by the low level state so that second supply access by The one-way conduction state is adjusted to the fully on state, to first power electronic equipment.
In the embodiment of the present application, the first input interface 10 is specially the first power input interface, the second input interface 20 Specially second source input interface, when second electronic equipment is specially the first power supply adaptor, the third electronics Equipment is specially the base apparatus that can extend first electronic functionalities;Or
When second electronic equipment is specially first power supply adaptor, the third electronic equipment is specially Two power supply adaptors;Or
When second electronic equipment is specially the second source adapter, the third electronic equipment is specially institute State base apparatus.
In the embodiment of the present application, pass through first supply access to first electronics in second electronic equipment When equipment is powered, first electronic equipment further include:
5th switch element, wherein by including at least the in the first input interface 10 and first electronic equipment The third supply access of five switch elements is powered the controller.
Embodiment three
Referring to FIG. 5, being based on the same inventive concept of the embodiment of the present application one, the embodiment of the present application also provides one kind First electronic equipment, comprising:
First obtains unit 40, the power supply priority of the first input interface for obtaining the first electronic equipment are first excellent First grade, the power supply priority of the second input interface are the second priority;
First control unit 50, for described in detect the second electronic equipment by first input interface and be connected to When the first electronic equipment, control is included at least at the first supply access of second electronic equipment and first input interface In on state, for first power electronic equipment;
Second control unit 60, for described in detect third electronic equipment by second input interface and be connected to First electronic equipment, and second priority be higher than first priority when, the first moment control it is described first power supply Access is adjusted to off-state by the on state, and includes at least the third electronics in first moment control and set Second supply access of standby and described second input interface is in the on state, for first power electronic equipment.
In the embodiment of the present application, first control unit 50 is specifically used for:
Pass through the opening the first switch mould group in first electronic equipment of the controller in first electronic equipment Off status is adjusted on state, and then makes to include at least second electronic equipment, first input interface and described the First supply access of one switching molding group is the on state, for first power electronic equipment.
In the embodiment of the present application, the first control unit 50 is specifically used for:
Each switch member at least two switch elements in the first switch mould group is controlled by the controller Part is in the conductive state.
In the embodiment of the present application, the first control unit 50 is specifically used for:
The level shape of the first pin of the first switching element in the first switch mould group is controlled by the controller State is high level state, and the level state of second pin of the second switch element in the control first switch mould group is The high level state, so that the first switch mould group is in the conductive state.
In the embodiment of the present application, the second control unit 60 is specifically used for:
It is in fully on state in first supply access, and second supply access is in the disconnection shape When state, low level shape is adjusted to by the high level state by the level state that the controller controls the second pin State, so that first supply access is adjusted to the one-way conduction state by the fully on state;
It keeps first supply access be in the one-way conduction state by the controller, and controls described the The third pin of third switch element in two switching molding groups is adjusted to the high level state by the low level state, So that second supply access is adjusted to the one-way conduction state by the off-state;
It keeps second supply access be in the one-way conduction state by the controller, and controls described the One pin is adjusted to the low level state by the high level state, so that first supply access is by the one-way conduction State is adjusted to the off-state;
The controller keeps first supply access to be in the off-state, and the control second switch mould 4th pin of the 4th switch element in group is adjusted to the high level state by the low level state, so that described second Supply access is adjusted to the fully on state by the one-way conduction state, to first power electronic equipment.
In the embodiment of the present application, first input interface is specially the first power input interface, second input Interface is specially second source input interface, when second electronic equipment is specially the first power supply adaptor, the third Electronic equipment is specially the base apparatus that can extend first electronic functionalities;Or
When second electronic equipment is specially first power supply adaptor, the third electronic equipment is specially Two power supply adaptors;Or
When second electronic equipment is specially the second source adapter, the third electronic equipment is specially institute State base apparatus.
In the embodiment of the present application, pass through first supply access to first electronics in second electronic equipment When equipment is powered, first electronic equipment further include:
Power supply unit, for being opened by including at least the in first input interface and first electronic equipment the 5th The third supply access for closing element is powered the controller.
By one or more technical solutions in the embodiment of the present application, following one or more technology effects may be implemented Fruit:
Due in the technical solution of the application, by using the power supply for the first input interface for obtaining the first electronic equipment Priority is the first priority, and the power supply priority of the second input interface is the second priority;When detecting the second electronic equipment When being connected to first electronic equipment by first input interface, control includes at least second electronic equipment and institute The first supply access for stating the first input interface is in the conductive state, for first power electronic equipment;When detecting Three electronic equipments are connected to first electronic equipment by second input interface, and second priority is higher than described When the first priority, first supply access is controlled at the first moment, off-state is adjusted to by the on state, and At first moment, control is included at least at the second supply access of the third electronic equipment and second input interface In the on state, for first power electronic equipment.That is, when simultaneously, there are two different power supply priority When external equipment is powered first electronic equipment, can directly it be switched to by the supply access of low priority high preferential The supply access of grade, to efficiently solve in the prior art in the external equipment by different power supply priority to Current electronic When equipment is powered, there is technical issues that make current electronic device in handoff procedure, realizes and switching The power-off shutdown that will not cause electronic equipment in the process also ensures external equipment to electronics while protecting electronic equipment The power supply effect of equipment.
Unification is carried out since controller in the technical solution of the application, can be used come the supply access to external equipment Control, it is middle compared to the prior art that supply access is controlled using the logic circuit of more physical device and complexity For, design is relatively simple, significantly reduces design cost, has saved resource.
Since the switch state of each switch element can be arranged by controller in the technical solution of the application, And then the power supply priority of the first electronic equipment input interface is set, so as to be needed that external equipment is arranged according to user The power supply priority that first electronic equipment is powered.
It, can be by including at least first input interface and first electricity due in the technical solution of the application The third supply access of the 5th switch element in sub- equipment is powered the controller, that is to say, that even described First electronic equipment internal can not provide the power supply unit of electricity for the controller, alternatively, first electronic equipment When the power is insufficient, micro electric current is provided for controller by external equipment, can guarantee the normal work of controller. Thus it is possible to which external equipment is effectively ensured to the power supply effect of the first electronic equipment.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Specifically, the corresponding computer program instructions of method of supplying power in the embodiment of the present application can be stored in light Disk, hard disk, on the storage mediums such as USB flash disk, when the computer program instructions corresponding with method of supplying power in storage medium are by an electronics Equipment reads or is performed, and includes the following steps: that the power supply priority for obtaining the first input interface of the first electronic equipment is First priority, the power supply priority of the second input interface are the second priority;
When detecting that the second electronic equipment is connected to first electronic equipment by first input interface, control It is in the conductive state including at least the first supply access of second electronic equipment and first input interface, to be described First power electronic equipment;
When detecting that third electronic equipment is connected to first electronic equipment by second input interface, and it is described When second priority is higher than first priority, first supply access is controlled by the on state tune at the first moment Whole is off-state, and control includes at least the third electronic equipment and second input interface at first moment The second supply access be in the on state, for first power electronic equipment.
In the embodiment of the present application, store in the storage medium and step, the control include at least described second First supply access of electronic equipment and first input interface is in the conductive state, for first electronic equipment confession Electricity specifically includes:
Controller in first electronic equipment is by the switch shape of the first switch mould group in first electronic equipment State is adjusted on state, and then makes to include at least second electronic equipment, and first input interface and described first open First supply access of Guan Mo group is the on state, for first power electronic equipment.
In the embodiment of the present application, stored in the storage medium and step, the control in first electronic equipment The switch state of first switch mould group in first electronic equipment is adjusted on state, corresponding computer program by device Instruction when executed, specifically includes:
The controller controls at each switch element at least two switch elements in the first switch mould group In on state.
In the embodiment of the present application, store in the storage medium and step, the controller control described first are opened Each switch element at least two switch elements in Guan Mo group is in the conductive state, and corresponding computer program instructions exist It is performed, specifically includes:
The level state that the controller controls the first pin of the first switching element in the first switch mould group is The level state of the second pin of second switch element in high level state, and the control first switch mould group is institute High level state is stated, so that the first switch mould group is in the conductive state.
In the embodiment of the present application, stored in the storage medium and step, it is described in the first moment control described the One supply access is adjusted to off-state by state, and control includes at least the third electronics at first moment Second supply access of equipment and second input interface is in the conductive state, right with for first power electronic equipment The computer program instructions answered when executed, specifically include:
It is in fully on state in first supply access, and second supply access is in the off-state When, the level state that the controller controls the second pin is adjusted to low level state by the high level state, so that First supply access is adjusted to the one-way conduction state by the fully on state;
The controller keeps first supply access to be in the one-way conduction state, and control described second is opened The third pin of third switch element in Guan Mo group is adjusted to the high level state by the low level state, so that It obtains second supply access and the one-way conduction state is adjusted to by the off-state;
The controller keeps second supply access to be in the one-way conduction state, and control described first is drawn Foot is adjusted to the low level state by the high level state, so that first supply access is by the one-way conduction state It is adjusted to the off-state;
The controller keeps first supply access to be in the off-state, and the control second switch mould 4th pin of the 4th switch element in group is adjusted to the high level state by the low level state, so that described second Supply access is adjusted to the fully on state by the one-way conduction state, to first power electronic equipment.
In the embodiment of the present application, store in the storage medium and step passes through institute in second electronic equipment When stating the first supply access and being powered to first electronic equipment, corresponding computer program instructions when executed, institute State method further include:
By the third for including at least the 5th switch element in first input interface and first electronic equipment Supply access is powered the controller.
Although preferred embodiments of the present invention have been described, once a person skilled in the art knows basic wounds The property made concept, then additional changes and modifications may be made to these embodiments.So the following claims are intended to be interpreted as includes Preferred embodiment and all change and modification for falling into the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (15)

1. a kind of method of supplying power to, comprising:
The power supply priority for obtaining the first input interface of the first electronic equipment is the first priority, the power supply of the second input interface Priority is the second priority;
When detecting that the second electronic equipment is connected to first electronic equipment by first input interface, control is at least The first supply access comprising second electronic equipment and first input interface is in the conductive state, for described first Power electronic equipment;
When detecting that third electronic equipment is connected to first electronic equipment, and described second by second input interface When priority is higher than first priority, first supply access is controlled at the first moment and is adjusted to by the on state Off-state, and the of the third electronic equipment and second input interface is included at least in first moment control Two supply accesses are in the on state, for first power electronic equipment;
Wherein, the on state is fully on state, and first moment to first supply access and Rate-determining steps of second supply access simultaneously when being controlled include:
It controls first supply access and one-way conduction state is adjusted to by the fully on state;
It keeps first supply access to be in the one-way conduction state, controls second supply access by the disconnection shape State is adjusted to the one-way conduction state;
It keeps second supply access to be in the one-way conduction state, controls first supply access and unidirectionally led by described Logical state is adjusted to the off-state;And
It keeps first supply access to be in the off-state, controls second supply access by the one-way conduction shape State is adjusted to the fully on state, to first power electronic equipment.
2. the method as described in claim 1, which is characterized in that the control includes at least second electronic equipment and described First supply access of the first input interface is in the conductive state, to specifically include for first power electronic equipment:
Controller in first electronic equipment is by the switch state tune of the first switch mould group in first electronic equipment Whole is on state, and then makes to include at least second electronic equipment, first input interface and the first switch mould First supply access of group is the on state, for first power electronic equipment.
3. method according to claim 2, which is characterized in that the controller in first electronic equipment is electric by described first The switch state of first switch mould group in sub- equipment is adjusted on state, specifically includes:
The controller control each switch element at least two switch elements in the first switch mould group be in lead Logical state.
4. method as claimed in claim 3, which is characterized in that the controller controls in the first switch mould group at least Each switch element in two switch elements is in the conductive state, specifically includes:
The controller controls the level state of the first pin of the first switching element in the first switch mould group as high electricity The level state of the second pin of second switch element in level state, and the control first switch mould group is the high electricity Level state, so that the first switch mould group is in the conductive state.
5. method as claimed in claim 4, which is characterized in that described to control first supply access by leading at the first moment Logical state is adjusted to off-state, and control includes at least the third electronic equipment and described second at first moment Second supply access of input interface is in the conductive state, to specifically include for first power electronic equipment:
It is in fully on state in first supply access, and when second supply access is in the off-state, The level state that the controller controls the second pin is adjusted to low level state by the high level state, so that described First supply access is adjusted to the one-way conduction state by the fully on state;
The controller keeps first supply access to be in the one-way conduction state, and control second switch mould group The third pin of third switch element the high level state is adjusted to by the low level state so that described second supplies Electric pathway is adjusted to the one-way conduction state by the off-state;
The controller keeps second supply access be in the one-way conduction state, and control first pin by The high level state is adjusted to the low level state, so that first supply access is adjusted by the one-way conduction state For the off-state;
The controller keeps first supply access to be in the off-state, and the control second switch mould group The 4th pin of the 4th switch element the high level state is adjusted to by the low level state so that second power supply Access is adjusted to the fully on state by the one-way conduction state, to first power electronic equipment.
6. method as claimed in claim 5, which is characterized in that first input interface is specially that the first power input connects Mouthful, second input interface is specially second source input interface, is specially that the first power supply is suitable in second electronic equipment When orchestration, the third electronic equipment is specially the base apparatus that can extend first electronic functionalities;Or
When second electronic equipment is specially first power supply adaptor, the third electronic equipment is specially the second electricity Source adapter;Or
When second electronic equipment is specially the second source adapter, the third electronic equipment is specially the bottom Seat apparatus.
7. the method as described in claim 1, which is characterized in that pass through first supply access in second electronic equipment When being powered to first electronic equipment, the method also includes:
By the third power supply for including at least the 5th switch element in first input interface and first electronic equipment Access is powered controller.
8. a kind of first electronic equipment, comprising:
First input interface and the second input interface;
Controller is connect with first input interface and second input interface respectively;
Wherein, the controller is used for:
The power supply priority for obtaining first input interface is the first priority, the power supply priority of second input interface For the second priority;And
When detecting that the second electronic equipment is connected to first electronic equipment by first input interface, control is at least The first supply access comprising second electronic equipment and first input interface is in the conductive state, for described first Power electronic equipment;
When detecting that third electronic equipment is connected to first electronic equipment, and described second by second input interface When priority is higher than first priority, first supply access is controlled at the first moment and is adjusted to by the on state Off-state, and the of the third electronic equipment and second input interface is included at least in first moment control Two supply accesses are in the on state, for first power electronic equipment;
Wherein, the on state is fully on state, and when first moment to first supply access with And second supply access, when being controlled, the controller proceeds as follows:
It controls first supply access and one-way conduction state is adjusted to by the fully on state;
It keeps first supply access to be in the one-way conduction state, controls second supply access by the disconnection shape State is adjusted to the one-way conduction state;
It keeps second supply access to be in the one-way conduction state, controls first supply access and unidirectionally led by described Logical state is adjusted to the off-state;
It keeps first supply access to be in the off-state, controls second supply access by the one-way conduction shape State is adjusted to the fully on state, to first power electronic equipment.
9. the first electronic equipment as claimed in claim 8, which is characterized in that the controller is specifically used for:
The switch state of first switch mould group in first electronic equipment is adjusted on state, and then makes to include at least First supply access of second electronic equipment, first input interface and the first switch mould group is described leads Logical state, for first power electronic equipment.
10. the first electronic equipment as claimed in claim 9, which is characterized in that the controller is specifically used for:
The each switch element controlled at least two switch elements in the first switch mould group is in the conductive state.
11. the first electronic equipment as claimed in claim 10, which is characterized in that the controller is specifically used for:
The level state for controlling the first pin of the first switching element in the first switch mould group is high level state, and The level state for controlling the second pin of the second switch element in the first switch mould group is the high level state, so that It is in the conductive state to obtain the first switch mould group.
12. the first electronic equipment as claimed in claim 11, which is characterized in that be in first supply access and lead completely Logical state, and when second supply access is in the off-state, the controller is specifically used for:
The level state for controlling the second pin is adjusted to low level state by the high level state, so that described first supplies Electric pathway is adjusted to the one-way conduction state by the fully on state;
The third switch for keeping first supply access to be in the one-way conduction state, and control second switch mould group The third pin of element is adjusted to the high level state by the low level state, so that second supply access is by institute It states off-state and is adjusted to the one-way conduction state;
Second supply access is kept to be in the one-way conduction state, and control first pin by the high level State is adjusted to the low level state, so that first supply access is adjusted to the disconnection by the one-way conduction state State;
Keep the 4th switch that first supply access is in the off-state, and the control second switch mould group 4th pin of element is adjusted to the high level state by the low level state, so that second supply access is by described One-way conduction state is adjusted to the fully on state, to first power electronic equipment.
13. the first electronic equipment as claimed in claim 12, which is characterized in that first input interface is specially the first electricity Source input interface, second input interface are specially second source input interface, are specially in second electronic equipment When one power supply adaptor, the third electronic equipment is specially the base apparatus that can extend first electronic functionalities; Or
When second electronic equipment is specially first power supply adaptor, the third electronic equipment is specially the second electricity Source adapter;Or
When second electronic equipment is specially the second source adapter, the third electronic equipment is specially the bottom Seat apparatus.
14. the first electronic equipment as claimed in claim 8, which is characterized in that pass through described the in second electronic equipment When one supply access is powered first electronic equipment, first electronic equipment further include:
5th switch element, wherein by including at least the 5th in first input interface and first electronic equipment The third supply access of switch element is powered controller.
15. a kind of first electronic equipment, comprising:
First obtains unit, the power supply priority of the first input interface for obtaining the first electronic equipment are the first priority, The power supply priority of second input interface is the second priority;
First control unit detects that the second electronic equipment is connected to first electricity by first input interface for working as When sub- equipment, control includes at least second electronic equipment and the first supply access of first input interface is on State, for first power electronic equipment;
Second control unit detects that third electronic equipment is connected to first electricity by second input interface for working as Sub- equipment, and when second priority is higher than first priority, the first moment control first supply access by The on state is adjusted to off-state, and control includes at least the third electronic equipment and institute at first moment The second supply access for stating the second input interface is in the on state, for first power electronic equipment;
Wherein, the on state is fully on state, and when first moment to first supply access with And second supply access, when being controlled, second control unit proceeds as follows:
It controls first supply access and one-way conduction state is adjusted to by the fully on state;
It keeps first supply access to be in the one-way conduction state, controls second supply access by the disconnection shape State is adjusted to the one-way conduction state;
It keeps second supply access to be in the one-way conduction state, controls first supply access and unidirectionally led by described Logical state is adjusted to the off-state;
It keeps first supply access to be in the off-state, controls second supply access by the one-way conduction shape State is adjusted to the fully on state, to first power electronic equipment.
CN201510891938.1A 2015-12-07 2015-12-07 A kind of method of supplying power to and the first electronic equipment Active CN105549708B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510891938.1A CN105549708B (en) 2015-12-07 2015-12-07 A kind of method of supplying power to and the first electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510891938.1A CN105549708B (en) 2015-12-07 2015-12-07 A kind of method of supplying power to and the first electronic equipment

Publications (2)

Publication Number Publication Date
CN105549708A CN105549708A (en) 2016-05-04
CN105549708B true CN105549708B (en) 2019-02-05

Family

ID=55828938

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510891938.1A Active CN105549708B (en) 2015-12-07 2015-12-07 A kind of method of supplying power to and the first electronic equipment

Country Status (1)

Country Link
CN (1) CN105549708B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108270255B (en) * 2016-12-30 2019-11-19 维沃移动通信有限公司 A kind of charging method and mobile terminal
CN108536627B (en) * 2018-03-30 2021-07-16 联想(北京)有限公司 Control method of electronic equipment and electronic equipment
CN109783269B (en) * 2019-01-30 2022-03-25 合肥联宝信息技术有限公司 Protection circuit and electronic device
CN110879792B (en) * 2019-11-13 2024-01-23 Oppo广东移动通信有限公司 Electronic equipment and interface control method thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203166610U (en) * 2013-03-07 2013-08-28 东莞宇龙通信科技有限公司 Charging device and electronic terminal
CN204243832U (en) * 2014-12-05 2015-04-01 重庆蓝岸通讯技术有限公司 A kind of charging and output compatible multiplex roles charging circuit

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7853818B2 (en) * 2005-02-25 2010-12-14 Intel Corporation Modifying power adapter output

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203166610U (en) * 2013-03-07 2013-08-28 东莞宇龙通信科技有限公司 Charging device and electronic terminal
CN204243832U (en) * 2014-12-05 2015-04-01 重庆蓝岸通讯技术有限公司 A kind of charging and output compatible multiplex roles charging circuit

Also Published As

Publication number Publication date
CN105549708A (en) 2016-05-04

Similar Documents

Publication Publication Date Title
CN105549708B (en) A kind of method of supplying power to and the first electronic equipment
JP6488369B2 (en) USB Type C-MHL Charging out of battery with M1 M1
CN102750248B (en) A kind of USB device Working mode switching method and USB device
CN105451076A (en) Adaptive power configuration for a mhl and hdmi combination multimedia device
CN103793037A (en) Device and method for electric power management of a plurality of peripheral interfaces
WO2016094063A1 (en) Techniques to route power to a usb host in dead battery condition
CN105426332B (en) Communication interface circuit, portable electronic device and electronic system
CN106095037B (en) Processing equipment and corresponding control methods
CN108228509A (en) A kind of USB interface switching device and electronic equipment
CN102593930A (en) Charging system of mobile terminal
JP2006262610A (en) Power supply circuit
CN207007249U (en) Connect equipment and field apparatus
TWI539718B (en) Charging circuit and charging method using the same
US20140285006A1 (en) Electric Energy Control Module, Apparatus and Device
JP6362448B2 (en) Power supply selection circuit, signal processing circuit using the same, and electronic equipment
KR20130006884U (en) Secondary battery with a charging data cable
KR102082422B1 (en) Battery, power supplying apparatus and electronic apparatus
US20170093181A1 (en) Charging control method and apparatus, terminal and computer storage medium
CN103513742B (en) Terminal device
CN104090860B (en) A kind of display device and its operating method
WO2016188301A1 (en) Charging detection circuit, mobile terminal and charging detection system
CN103997101B (en) A kind of charging circuit and a kind of electronic equipment
US20190157892A1 (en) Electronic device, control device, and method of controlling electronic device
CN205427710U (en) Start circuit, motherboard and computer of motherboard
CN209590835U (en) A kind of power-supply system and electronic equipment

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