CN104345859B - The method and power supply unit of a kind of power supply and the method and electronic equipment of a kind of charging - Google Patents

The method and power supply unit of a kind of power supply and the method and electronic equipment of a kind of charging Download PDF

Info

Publication number
CN104345859B
CN104345859B CN201310322973.2A CN201310322973A CN104345859B CN 104345859 B CN104345859 B CN 104345859B CN 201310322973 A CN201310322973 A CN 201310322973A CN 104345859 B CN104345859 B CN 104345859B
Authority
CN
China
Prior art keywords
voltage
value
power supply
data transmission
supply unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310322973.2A
Other languages
Chinese (zh)
Other versions
CN104345859A (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 CN201310322973.2A priority Critical patent/CN104345859B/en
Publication of CN104345859A publication Critical patent/CN104345859A/en
Application granted granted Critical
Publication of CN104345859B publication Critical patent/CN104345859B/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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

This application discloses a kind of method of power supply and power supply unit and the method and electronic equipment of a kind of charging, applied in the power supply unit with first data transmission port, methods described includes:It is the first supply voltage in the supply voltage of the power supply unit, and when the first data transmission port is connected with the first equipment, detects whether the first data transmission port receives first voltage signal;When receiving the first voltage signal in the first data transmission port, whether the first voltage value that judging the first voltage signal has is equal to first voltage switching value;When the first voltage value is equal to the first voltage switching value, the supply voltage is adjusted to second voltage value different from first voltage value from first voltage value, so that the power supply unit can power for first equipment.

Description

The method and power supply unit of a kind of power supply and the method and electronic equipment of a kind of charging
Technical field
The application belongs to electronic technology field, and in particular to the method and power supply unit of a kind of power supply and a kind of side of charging Method and electronic equipment.
Background technology
In order to improve experience of the user to electronic equipment, the design of notebook is increasingly frivolous, meanwhile, the design of adapter Also updating.In the prior art, if using USB PD schemes (USB Power between electronic equipment and adapter Delivery, USB power output), then adapter can power for various electronic, such as mobile phone, notebook electricity Brain etc..
, it is necessary to set a communication chip respectively for adapter and electronic equipment in USB PD schemes, communicate core at two Each an EPROM is integrated with piece(Erarable Programmable Read only Memory), one is all each preserved in two EPROM Password is verified, when adapter is connected with electronic equipment, two passwords in communication chip can be matched, when two passwords After success, adapter is by changing supply voltage for corresponding power electronic equipment.
Present inventor has found exist in the prior art during the embodiment of the present application technical scheme is realized, at least Following technical problem:
In the prior art, due to needing to add communication chip, and the side for passing through password authentification for adapter and electronic equipment Formula is powered the conversion of voltage, there is the complicated technical problem of supply voltage transfer process;
And then, because adapter and electronic equipment need the communication chip with same type, difference is employed in manufacturer General-purpose chip in the case of, can have the technical problem of the poor compatibility of adapter and each electric room, for example, one is suitable Orchestration is only corresponding this charging of particular note;
Also, due to needing to use communication chip, and adapter needs the communication core with same type with electronic equipment Piece can be just powered so that adapter is that the cost of implementation that various electronic is powered is high.
The content of the invention
The embodiment of the present invention provides a kind of method and power supply unit and the method and electronic equipment of a kind of charging of power supply, uses In solving in the prior art when using USB PD schemes, due to needing to add communication chip for adapter and electronic equipment, and The conversion of voltage is powered by way of password authentification, there is the complicated technical problem of supply voltage transfer process, realize Specific chip need not be added, the skill of the conversion for the supply voltage that can be realized as power supply unit is only triggered by voltage signal Art effect so that supply voltage transfer process is simple.
The application provides following technical scheme by the embodiment of the application one:
A kind of method of power supply, applied in the power supply unit with first data transmission port, methods described includes:
It is the first supply voltage in the supply voltage of the power supply unit, and when the first data transmission port is connected with During the first equipment, detect whether the first data transmission port receives first voltage signal;
When receiving the first voltage signal in the first data transmission port, the first voltage signal tool is judged Whether some first voltage values are equal to first voltage switching value;
When the first voltage value is equal to the first voltage switching value, the supply voltage is powered from described first Magnitude of voltage is adjusted to second voltage value different from first voltage value, so that the power supply unit can be institute The first equipment is stated to power.
Further, the first data transmission port has the first identification pin, and at the first data transmission end Mouth is connected with before first equipment, and the magnitude of voltage of the first identification pin is operational voltage value.
Further, it is described when receiving the first voltage signal in the first data transmission port, judge described Whether the first voltage value that first voltage signal has is equal to first voltage switching value, specifically includes:
When receiving the first voltage signal in the first data transmission port, the first identification pin is controlled Magnitude of voltage is adjusted to the first voltage value different from the operational voltage value from the operational voltage value;
Judge whether the first voltage value is equal to first voltage switching value.
Further, the supply voltage is adjusted to and the described first power supply from first voltage value described After the second different voltage value of magnitude of voltage, methods described also includes:
Detect whether the magnitude of voltage of the first identification pin is adjusted to the work electricity from the first voltage switching value Pressure value;
When the magnitude of voltage of the described first identification pin is adjusted to the operational voltage value from the first voltage switching value, The supply voltage is adjusted to first voltage value from second voltage value.
Further, first voltage value is less than second voltage value.
The application provides following technical scheme by another embodiment of the application:
A kind of method of charging, applied in the first equipment with the second data transmission port, methods described includes:
When the mode of operation of first equipment is in data-transmission mode, detect that second data transmission port is It is no to be connected with power supply unit;
When second data transmission port is connected with the power supply unit, the mode of operation is passed from the data Defeated pattern switching is to powering mode;
A first voltage switching signal with first voltage switching value is generated and sent to the power supply unit, so that institute It can be first equipment charge after the first voltage switching signal is received to state power supply unit.
Further, second data transmission port has the second identification pin, and detection second data are passed Whether defeated port is connected with power supply unit, is specially:
Detect whether the first data transmission port for having in the power supply unit contacted with the described second identification pin In first identification pin, wherein, when exist it is described first identification pin when, show that second data transmission port is connected with Power supply unit.
Further, it is described when second data transmission port is connected with the power supply unit, by the Working mould Formula is switched to powering mode from the data-transmission mode, specifically includes:
When second data transmission port is connected with the power supply unit, the pattern of the first user is judged whether Handover operation;
When there is the mode switching operation, the mode of operation is switched to power supply mould from the data-transmission mode Formula.
Further, the voltage switch signal with first voltage switching value that generates and sends is set to the power supply It is standby, be specially:
The magnitude of voltage for controlling the second identification pin is first voltage switching value, so that the electricity of the first identification pin Pressure value can be adjusted to the first voltage switching value from operational voltage value.
Further, in the voltage switch signal with first voltage switching value that generates and sends to the power supply After equipment, methods described also includes:
Obtain the first charge value for characterizing the first equipment current power state;
Judge whether first charge value is equal to default charge value;
When first charge value is equal to the default charge value, the mode of operation is switched from the powering mode To the data-transmission mode;
Second voltage switching signal is generated and sent to the power supply unit, so that the power supply unit can received Stop being first equipment charge after the second voltage switching signal.
The application provides following technical scheme by another embodiment of the application:
A kind of power supply unit, the power supply unit has first data transmission port, and power supply unit includes:
First detection unit, for being the first supply voltage in the supply voltage of the power supply unit, and when described first When data transmission port is connected with the first equipment, detect whether the first data transmission port receives first voltage signal;
First judging unit, during for receiving the first voltage signal in the first data transmission port, judges Whether the first voltage value that the first voltage signal has is equal to first voltage switching value;
First supply voltage switch unit, for when the first voltage value is equal to the first voltage switching value, inciting somebody to action The supply voltage is adjusted to second supply voltage different from first voltage value from first voltage value Value, so that the power supply unit can power for first equipment.
Further, the first data transmission port has the first identification pin, and at the first data transmission end Mouth is connected with before first equipment, and the magnitude of voltage of the first identification pin is operational voltage value.
Further, the judging unit is specifically included:
First control subelement, during for receiving the first voltage signal in the first data transmission port, control The magnitude of voltage for making the first identification pin is adjusted to first electricity different from the operational voltage value from the operational voltage value Pressure value;
First judgment sub-unit, for judging whether the first voltage value is equal to first voltage switching value.
Further, the electronic equipment also includes:
Second detection unit, detects whether the magnitude of voltage of the first identification pin is electric from described first for detection unit Pressure switching value is adjusted to the operational voltage value;
Second supply voltage switch unit, for switching in the magnitude of voltage of the described first identification pin from the first voltage When value is adjusted to the operational voltage value, the supply voltage is adjusted to first power supply from second voltage value Magnitude of voltage.
Further, first voltage value is less than second voltage value.
The application provides following technical scheme by another embodiment of the application:
A kind of electronic equipment, the electronic equipment has the second data transmission port, and the electronic equipment includes:
First detection unit, for when the mode of operation of first equipment is in data-transmission mode, detection to be described Whether the second data transmission port is connected with power supply unit;
First mode switch unit, for when second data transmission port is connected with the power supply unit, by institute State mode of operation and be switched to powering mode from the data-transmission mode;
First signal generation unit, has the first voltage switching signal of first voltage switching value for generating and sending one To the power supply unit, so that the power supply unit can be described first after the first voltage switching signal is received Equipment charge.
Further, second data transmission port has the second identification pin, and first detection unit is specifically used In:
Detect whether the first data transmission port for having in the power supply unit contacted with the described second identification pin In first identification pin, wherein, when exist it is described first identification pin when, show that second data transmission port is connected with Power supply unit.
Further, the first mode switch unit is specifically included:
First judgment sub-unit, for when second data transmission port is connected with the power supply unit, judgement to be The no mode switching operation that there is the first user;
First mode switching subelement, for when there is the mode switching operation, by the mode of operation from described Data-transmission mode is switched to powering mode.
Further, the signal generation unit specifically for:
The magnitude of voltage for controlling the second identification pin is first voltage switching value, so that the electricity of the first identification pin Pressure value can be adjusted to the first voltage switching value from operational voltage value.
Further, the electronic equipment also includes:
Obtaining unit, for obtaining the first charge value for being used for characterizing the first equipment current power state;
Second judging unit, for judging whether first charge value is equal to default charge value;
Second mode switch unit, for when first charge value is equal to the default charge value, by the work Pattern is switched to the data-transmission mode from the powering mode;
Secondary signal generation unit, for generating and sending second voltage switching signal to the power supply unit, so that institute Stating power supply unit can stop being first equipment charge after the second voltage switching signal is received.
The one or more technical schemes provided in the embodiment of the present application, have at least the following technical effects or advantages:
In the embodiment of the present invention, by when the first equipment is connected with power supply unit, when the first equipment mode of operation from When data-transmission mode is switched to powering mode, the first equipment generates and sends voltage switch signal to power supply unit, and power supply is set It is standby that supply voltage is switched to the second voltage value from the first voltage value when receiving voltage switch signal, power Equipment is powered with the second voltage value to the first equipment, is solved in the prior art when using USB PD schemes, due to needing To be adapter and electronic equipment addition communication chip, and the conversion of voltage is powered by way of password authentification, exist The complicated technical problem of supply voltage transfer process, specific chip need not be added by realizing, only by voltage signal triggering just The technique effect of the conversion of the supply voltage of power supply unit can be realized so that supply voltage transfer process is simple;
Also, by being that first data transmission port and the second data transmission port increase the first identification pin and second respectively Pin is recognized, to realize the transmission of voltage switch signal, solves and is fitted present in prior art in supply voltage transfer process Orchestration and the technical problem of the poor compatibility of each electric room, realize the electricity that a power supply unit can be different vendor The technique effect that sub- equipment is powered, improves compatibility;
Also, be less than the second voltage value by the first voltage value of power supply unit, it is to avoid power supply unit to During distinct electronic apparatuses crossfeed with different power voltage, due to providing big for the small electronic equipment of voltage value Voltage value, and then the electronic equipment for causing voltage value small is the problem of damage, it is ensured that power supply unit is electronic equipment During crossfeed, the security of electronic equipment;
Also, due to specific chip need not be increased, reduce the realization that power supply unit is powered for various electronic into This.
Brief description of the drawings
Fig. 1 is a kind of workflow diagram of the method for power supply in one embodiment of the invention;
Fig. 2 is a kind of workflow diagram of the method for charging in one embodiment of the invention;
Fig. 3 is working timing figure when power supply unit is connected with first equipment described in one embodiment of the invention;
Fig. 4 is work schedule when power supply unit is disconnected with first equipment described in one embodiment of the invention Figure;
Fig. 5 is a kind of structural representation of power supply unit in one embodiment of the invention;
Fig. 6 is the structural representation of a kind of electronic equipment in one embodiment of the invention.
Embodiment
The embodiment of the present invention provides a kind of method and power supply unit and the method and electronic equipment of a kind of charging of power supply, uses In solving in the prior art when using USB PD schemes, due to needing to add communication chip for adapter and electronic equipment, and The conversion of voltage is powered by way of password authentification, there is the complicated technical problem of supply voltage transfer process, realize Specific chip need not be added, the skill of the conversion for the supply voltage that can be realized as power supply unit is only triggered by voltage signal Art effect so that supply voltage transfer process is simple.
Technical scheme in the embodiment of the present invention is to solve the above problems, general thought is as follows:
The present invention is described applied in the power supply unit with first data transmission port by a kind of method of power supply Method includes:It is the first supply voltage in the supply voltage of the power supply unit, and when first data transmission port connection When having the first equipment, detect whether the first data transmission port receives first voltage signal, passed in first data When defeated port receives the first voltage signal, judge whether first voltage value that the first voltage signal has is equal to the One voltage switching value, when the first voltage value is equal to the first voltage switching value, by the supply voltage from described the One voltage value is adjusted to second voltage value different from first voltage value, so that the power supply unit energy Enough powered for first equipment;And a kind of method of charging, applied in the first equipment with the second data transmission port, Methods described includes:When the mode of operation of first equipment is in data-transmission mode, second data transfer is detected Whether port is connected with power supply unit, when second data transmission port is connected with the power supply unit, by the work Pattern is switched to powering mode from the data-transmission mode, and generating and sending one has the first voltage of first voltage switching value Switching signal gives the power supply unit, so that the power supply unit can be after the first voltage switching signal is received First equipment charge, is solved in the prior art when using USB PD schemes, due to needing to be that adapter and electronics are set Standby addition communication chip, and the conversion of voltage is powered by way of password authentification, there is supply voltage transfer process and answer Miscellaneous technical problem, specific chip need not be added by realizing, and only can be realized as power supply unit by voltage signal triggering The technique effect of the conversion of supply voltage so that supply voltage transfer process is simple.
In order to be better understood from above-mentioned technical proposal, below in conjunction with Figure of description and specific embodiment to upper Technical scheme is stated to be described in detail.
The application provides a kind of method of power supply, applied in the power supply unit with first data transmission port, wherein, The power supply unit can at least provide the first supply voltage and the second supply voltage, specifically, the power supply unit can be suitable Orchestration, or notebook computer, can be specially with the electronic equipments such as refrigerator, the data transmission port of the power supply unit USB port, in addition, those of ordinary skill in the art can also can realize the interface of data or signal transmission using other, this Application is not specifically limited.
Below only using the power supply unit as adapter, the data transmission port be USB port exemplified by, in the application Method of supplying power to be described in detail, those of ordinary skill in the art can according to the other power supply units of following process choosings and Data transmission port is implemented accordingly.
In the embodiment of the present application, as shown in figure 1, methods described includes:
Step 101:It is the first supply voltage in the supply voltage of the power supply unit, and when the first data transmission end When mouth is connected with the first equipment, detect whether the first data transmission port receives first voltage signal.
In specific implementation process, the first USB port of adapter has the first identification pin ID PIN1, as the first USB Port is accessed before the first equipment, and ID PIN1 magnitude of voltage is operational voltage value, it is preferred that the operational voltage value selects 5V, Certain those of ordinary skill in the art are also an option that other other magnitudes of voltage for not affecting electronic equipment normal work, this Application is not specifically limited.
Before the first USB port accesses the first equipment, to avoid interference and voltage of the adapter by other equipment The interference that shakiness is brought is prevent ID PIN1 can detect ID PIN1 magnitude of voltage in real time, work as ID from normally exporting 5V, adapter When PIN1 magnitude of voltage is not equal to 5V, it can be adjusted, to control ID PIN1 to be maintained at 5V.
In the embodiment of the present application, after step 101 is completed, step 102 is performed:In the first data transmission port When receiving the first voltage signal, whether the first voltage value that judging the first voltage signal has is equal to first voltage Switching value.
In the embodiment of the present application, step 102 is specifically included:
When receiving the first voltage signal in the first data transmission port, the first identification pin is controlled Magnitude of voltage is adjusted to the first voltage value different from the operational voltage value from the operational voltage value;
Judge whether the first voltage value is equal to first voltage switching value.
Wherein, have and first data transmission port in the electronic equipment that the first equipment is powered for needs, the first equipment Corresponding second data transmission port, when first data transmission port is the first USB port, second data transmission port For the second USB port, second USB port has the second identification pin ID PIN2.
In the embodiment of the present application, after the first USB port accesses the first equipment, sent if receiving by the first equipment For the first signal for being changed the supply voltage of adapter, ID PIN1 can be by the first coupled equipment Set is first voltage value to ID PIN2 with first voltage value by force, next, it is determined that whether first voltage value is equal to the first electricity Switching value is pressed, wherein, the first voltage switching value is magnitude of voltage set in advance, it is preferred that the first voltage switching value Can be 3.3V, when first voltage switching value is 3.3V, voltage switching process will not receive the influence of other pin voltages, and And pin is not interfered with yet, and then, the normal work of other functions of electronic equipment is not interfered with yet, certainly, this area is general Logical technical staff can also select other voltage switching values, such as 3.5V or 3V in the case where meeting certain secure threshold, this Application is not specifically limited.
In the embodiment of the present application, complete after step 102, perform step 103:It is equal in the first voltage value described During first voltage switching value, the supply voltage is adjusted to and first voltage value from first voltage value The second different voltage value, so that the power supply unit can power for first equipment.
In specific implementation process, ID PIN1 magnitude of voltage is set to after 3.3V, and adapter supplies supply voltage from first Piezoelectric voltage value is adjusted to the second voltage value, wherein, to ensure adapter to the different electronics with different power voltage Be not in provide big voltage value for the small electronic equipment of voltage value, and then cause to supply during equipment crossfeed Piezoelectric voltage is worth small electronic equipment and damaged, it is preferred that the first voltage value of adapter is less than the second voltage value, when When adapter does not access the first equipment, less first voltage value of output voltage values, wherein, the first voltage value can To select 5V, the second voltage value can be selected as 20V, and the second supply voltage can set for the first of such as notebook computer Available electricity, the first supply voltage can power for the first equipment of such as mobile phone, in addition, those of ordinary skill in the art can be with According to the selection output of the particular type of the first equipment there are other magnitudes of voltage to obtain supply voltage, the application is not specifically limited.
In the embodiment of the present application, complete after step 103, methods described also includes:
Detect whether the magnitude of voltage of the first identification pin is adjusted to the work electricity from the first voltage switching value Pressure value;
When the magnitude of voltage of the described first identification pin is adjusted to the operational voltage value from the first voltage switching value, The supply voltage is adjusted to first voltage value from second voltage value.
In specific implementation process, when ID PIN1 magnitude of voltage is adjusted to 5V from 3.3V, adapter by supply voltage from 20V is adjusted to 5V.
It should be noted that in the embodiment of the present application, when the first equipment is that mobile phone etc. has the first voltage value During electronic equipment, power supply unit can not deposited directly using the first supply voltage during normal work as the power electronic equipment Operational voltage value, such as ID PIN1 magnitude of voltage one are always maintained in the magnitude of voltage of the process of voltage switching, and the first identification pin It is straight to keep 5V,
Another embodiment of the application provides a kind of method of charging, the method for supplying power to that the charging method is provided with the application Correspondence, applied in the first equipment with the second data transmission port, first equipment can be the tool such as notebook computer There is an electronic equipment of second voltage values different from the first voltage value, second data transmission port and above-mentioned the One data transmission port correspondence.
Below only using first equipment as notebook computer, the data transmission port be USB port exemplified by, to this Shen Please in method of supplying power to be described in detail, this area ordinary person can according to other first equipment of following process choosings and Data transmission port is implemented accordingly.
In the embodiment of the present application, as shown in Fig. 2 methods described includes:
Step 201:When the mode of operation of first equipment is in data-transmission mode, detect that second data are passed Whether defeated port is connected with power supply unit.
In the embodiment of the present application, step 201 is specially:
Detect whether the first data transmission port for having in the power supply unit contacted with the described second identification pin In first identification pin, wherein, when exist it is described first identification pin when, show that second data transmission port is connected with Power supply unit.
In specific implementation process, the second USB port of notebook computer has the second identification pin ID PIN2, when the When one USB port is connected with the second USB port, ID PIN1 can be contacted with ID PIN2, and then, notebook computer is identified It is connected with power supply unit.
In the embodiment of the present application, after step 201 is completed, step 202 is performed:In second data transmission port When being connected with the power supply unit, the mode of operation is switched to powering mode from the data-transmission mode.
, can be with employing mode one when notebook computer is identified and is connected with power supply unit in specific implementation process: Mode of operation is directly switched to powering mode from data-transmission mode, can be with employing mode two:Cut by the pattern of user Change operation to switch over mode of operation, when using the second way, step 202 is specifically included:
When second data transmission port is connected with the power supply unit, the pattern of the first user is judged whether Handover operation;
When there is the mode switching operation, the mode of operation is switched to power supply mould from the data-transmission mode Formula.
In the embodiment of the present application, after step 202 is completed, step 203 is performed:Generating and sending one has the first electricity The first voltage switching signal of switching value is pressed to the power supply unit, so that the power supply unit can receive described first It is first equipment charge after voltage switch signal.
In the embodiment of the present application, step 203 is specially:
The magnitude of voltage for controlling the second identification pin is first voltage switching value, so that the electricity of the first identification pin Pressure value can be adjusted to the first voltage switching value from operational voltage value.
Wherein, in no access power supply unit, notebook computer is in data-transmission mode.When notebook computer is in During data-transmission mode, when the second USB port accesses USB device, notebook computer can by the port and USB device it Between carry out data transmission, when notebook computer be in powering mode when, can power supply unit provide voltage in the state of enter Row charging.
In specific implementation process, when notebook computer is switched to powering mode from data-transmission mode, notebook electricity Brain is by ID PIN2 set 3.3V, then, the ID PIN1 contacted with ID PIN2 can set 3.3V by force, as the ID of power supply unit When PIN2 magnitude of voltage is 3.3V, supply voltage from the first voltage value can be adjusted to the second supply voltage by power supply unit Value, is such as adjusted to 20V so that notebook computer can be charged with 20V supply voltage from 5V.
In the embodiment of the present application, after step 203 is completed, methods described also includes:
Obtain the first charge value for characterizing the first equipment current power state;
Judge whether first charge value is equal to default charge value;
When first charge value is equal to the default charge value, the mode of operation is switched from the powering mode To the data-transmission mode;
Second voltage switching signal is generated and sent to the power supply unit, so that the power supply unit can received Stop being first equipment charge after the second voltage switching signal.
In specific implementation process, when the electricity of notebook computer is charged to default charge value, it is preferred that notebook computer Can be automatically by mode of operation from powering mode switch data transmission mode, and no longer control ID PIN2 set 3.3V, power supply unit ID PIN1 magnitude of voltage recover 5V, the supply voltage of power supply unit is adjusted to the first supply voltage from the second voltage value Value, no longer powers for notebook, and then, when notebook computer is no longer connected with power supply unit, ID PIN2 magnitude of voltage is 0V。
It should be noted that in the embodiment of the present application, the first identification pin and the second identification pin can pass for data The pin newly increased in defeated port, this area ordinary person can also be by the way that other existing pins be multiplexed, to realize With the first identification pin and the second identification pin identical function, the application is not specifically limited.
For clearer explanation power supply unit and the respective workflow of the first equipment, as shown in Figures 3 and 4, this Shen The working timing figure that power supply unit is connected with the first equipment please be each provide, and power supply unit and the first equipment complete to power And working timing figure when not reconnected after charging.Wherein, the power supply unit is specially adapter, and the first equipment is specially pen Remember this computer, ID PIN1 are the first identification pin, and ID PIN2 are the second identification pin, and the operating voltage of the first identification pin is 5V, first voltage switching value be 3.3V, the first supply voltage be 5V, the second supply voltage be 20V, T1 moment notebook computer with Adapter is not connected with, and T2 moment notebook computer and adapter are in connection status, and notebook computer mode of operation from Data-transmission mode is switched to powering mode, and T3 moment adapters terminate to power for notebook computer, and notebook computer is with fitting Orchestration is not reconnected,
Based on the same inventive concept of a kind of method of supplying power to the application, the application provides a kind of power supply unit, such as Fig. 5 institutes Show, the power supply unit has first data transmission port, power supply unit includes:
First detection unit 501, for being the first supply voltage in the supply voltage of the power supply unit, and when described the When one data transmission port is connected with the first equipment, detect whether the first data transmission port receives first voltage letter Number;
First judging unit 502, is connected with first detection unit 501, in the first data transmission port When receiving the first voltage signal, whether the first voltage value that judging the first voltage signal has is equal to first voltage Switching value;
First supply voltage switch unit 503, is connected with first judging unit 502, in the first voltage When value is equal to the first voltage switching value, the supply voltage is adjusted to and described first from first voltage value The second different voltage value of voltage value, so that the power supply unit can power for first equipment.
Further, the first data transmission port has the first identification pin, and at the first data transmission end Mouth is connected with before first equipment, and the magnitude of voltage of the first identification pin is operational voltage value.
Further, the judging unit is specifically included:
First control subelement, during for receiving the first voltage signal in the first data transmission port, control The magnitude of voltage for making the first identification pin is adjusted to first electricity different from the operational voltage value from the operational voltage value Pressure value;
First judgment sub-unit, for judging whether the first voltage value is equal to first voltage switching value.
Further, the electronic equipment also includes:
Second detection unit, detects whether the magnitude of voltage of the first identification pin is electric from described first for detection unit Pressure switching value is adjusted to the operational voltage value;
Second supply voltage switch unit, for switching in the magnitude of voltage of the described first identification pin from the first voltage When value is adjusted to the operational voltage value, the supply voltage is adjusted to first power supply from second voltage value Magnitude of voltage.
Further, first voltage value is less than second voltage value.
Based on a kind of charging method identical inventive concept of the application, the application provide a kind of electronic equipment, such as Fig. 6 institutes Show, the electronic equipment has the second data transmission port, the electronic equipment includes:
First detection unit 601, for when the mode of operation of first equipment is in data-transmission mode, detecting institute State whether the second data transmission port is connected with power supply unit;
First mode switch unit 602, is connected with first detection unit 601, in second data transfer When port is connected with the power supply unit, the mode of operation is switched to powering mode from the data-transmission mode;
First signal generation unit 603, is connected with the first mode switch unit 602, for generating and sending a tool There is the first voltage switching signal of first voltage switching value to the power supply unit, so that the power supply unit can received It is first equipment charge after the first voltage switching signal.
Further, second data transmission port has the second identification pin, and first detection unit is specifically used In:
Detect whether the first data transmission port for having in the power supply unit contacted with the described second identification pin In first identification pin, wherein, when exist it is described first identification pin when, show that second data transmission port is connected with Power supply unit.
Further, the first mode switch unit is specifically included:
First judgment sub-unit, for when second data transmission port is connected with the power supply unit, judgement to be The no mode switching operation that there is the first user;
First mode switching subelement, for when there is the mode switching operation, by the mode of operation from described Data-transmission mode is switched to powering mode.
Further, the signal generation unit specifically for:
The magnitude of voltage for controlling the second identification pin is first voltage switching value, so that the electricity of the first identification pin Pressure value can be adjusted to the first voltage switching value from operational voltage value.
Further, the electronic equipment also includes:
Obtaining unit, for obtaining the first charge value for being used for characterizing the first equipment current power state;
Second judging unit, for judging whether first charge value is equal to default charge value;
Second mode switch unit, for when first charge value is equal to the default charge value, by the work Pattern is switched to the data-transmission mode from the powering mode;
Secondary signal generation unit, for generating and sending second voltage switching signal to the power supply unit, so that institute Stating power supply unit can stop being first equipment charge after the second voltage switching signal is received.
Implement information processing method in the embodiment of the present application by the electronic equipment that the present embodiment is introduced to be used Electronic equipment, so based on information processing method in the embodiment of the present application, those skilled in the art can understand the application The embodiment of electronic equipment and its various change form in embodiment, so no longer detailed for the electronic equipment herein It is thin to introduce.As long as those skilled in the art implement the electronic equipment that information processing method in the embodiment of the present application is used, Belong to the scope to be protected of the application.
The one or more technical schemes provided in the embodiment of the present application, have at least the following technical effects or advantages:
In the embodiment of the present invention, by when the first equipment is connected with power supply unit, when the first equipment mode of operation from When data-transmission mode is switched to powering mode, the first equipment generates and sends voltage switch signal to power supply unit, and power supply is set It is standby that supply voltage is switched to the second voltage value from the first voltage value when receiving voltage switch signal, power Equipment is powered with the second voltage value to the first equipment, is solved in the prior art when using USB PD schemes, due to needing To be adapter and electronic equipment addition communication chip, and the conversion of voltage is powered by way of password authentification, exist The complicated technical problem of supply voltage transfer process, specific chip need not be added by realizing, only by voltage signal triggering just The technique effect of the conversion of the supply voltage of power supply unit can be realized so that supply voltage transfer process is simple;
Also, by being that first data transmission port and the second data transmission port increase the first identification pin and second respectively Pin is recognized, to realize the transmission of voltage switch signal, solves and is fitted present in prior art in supply voltage transfer process Orchestration and the technical problem of the poor compatibility of each electric room, realize the electricity that a power supply unit can be different vendor The technique effect that sub- equipment is powered, improves compatibility;
Also, be less than the second voltage value by the first voltage value of power supply unit, it is to avoid power supply unit to During distinct electronic apparatuses crossfeed with different power voltage, due to providing big for the small electronic equipment of voltage value Voltage value, and then the electronic equipment for causing voltage value small is the problem of damage, it is ensured that power supply unit is electronic equipment During crossfeed, the security of electronic equipment;
Also, due to specific chip need not be increased, reduce the realization that power supply unit is powered for various electronic into This.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (14)

1. a kind of method of power supply, applied in the power supply unit with first data transmission port, it is characterised in that the side Method includes:
It is the first supply voltage in the supply voltage of the power supply unit, and when the first data transmission port is connected with first During equipment, detect whether the first data transmission port receives first voltage signal;
When receiving the first voltage signal in the first data transmission port, judge what the first voltage signal had Whether first voltage value is equal to first voltage switching value;
When the first voltage value is equal to the first voltage switching value, by the supply voltage from first supply voltage Value is adjusted to second voltage value different from first voltage value, so that the power supply unit can be described the One equipment is powered;
The first data transmission port has the first identification pin, and is connected with the first data transmission port described the Before one equipment, the magnitude of voltage of the first identification pin is operational voltage value;
It is described when receiving the first voltage signal in the first data transmission port, judge the first voltage signal tool Whether some first voltage values are equal to first voltage switching value, specifically include:
When receiving the first voltage signal in the first data transmission port, the voltage of the first identification pin is controlled Value is adjusted to the first voltage value different from the operational voltage value from the operational voltage value;
Judge whether the first voltage value is equal to first voltage switching value.
2. the method as described in claim 1, it is characterised in that it is described by the supply voltage from first supply voltage Value is adjusted to after the second voltage value different from first voltage value, and methods described also includes:
Detect whether the magnitude of voltage of the first identification pin is adjusted to the operational voltage value from the first voltage switching value;
When the magnitude of voltage of the described first identification pin is adjusted to the operational voltage value from the first voltage switching value, by institute State supply voltage and be adjusted to first voltage value from second voltage value.
3. the method as described in any claim in claim 1-2, it is characterised in that first voltage value is less than described Second voltage value.
4. a kind of method of charging, applied in the first equipment with the second data transmission port, it is characterised in that the side Method includes:
When the mode of operation of first equipment is in data-transmission mode, detect whether second data transmission port connects It is connected to power supply unit;
When second data transmission port is connected with the power supply unit, by the mode of operation from the data transfer mould Formula is switched to powering mode;
A first voltage switching signal with first voltage switching value is generated and sent to the power supply unit, so that described supply Electric equipment can be first equipment charge after the first voltage switching signal is received;
Second data transmission port has in the first data transmission port in the second identification pin, the power supply unit and had There is the first identification pin;
It is described generate and send one have first voltage switching value voltage switch signal give the power supply unit, be specially:
The magnitude of voltage for controlling the second identification pin is first voltage switching value, so that the magnitude of voltage of the first identification pin The first voltage switching value can be adjusted to from operational voltage value.
5. method as claimed in claim 4, it is characterised in that second data transmission port has the second identification pin, Whether detection second data transmission port is connected with power supply unit, is specially:
Detect whether that there is described first contact with the described second identification pin recognizes pin, wherein, when having described first When recognizing pin, show that second data transmission port is connected with power supply unit.
6. method as claimed in claim 4, it is characterised in that described to be connected with the confession in second data transmission port During electric equipment, the mode of operation is switched to powering mode from the data-transmission mode, specifically included:
When second data transmission port is connected with the power supply unit, the pattern switching of the first user is judged whether Operation;
When there is the mode switching operation, the mode of operation is switched to powering mode from the data-transmission mode.
7. method as claimed in claim 6, it is characterised in that generate and send one described there is first voltage switching value Voltage switch signal is given after the power supply unit, and methods described also includes:
Obtain the first charge value for characterizing the first equipment current power state;
Judge whether first charge value is equal to default charge value;
When first charge value is equal to the default charge value, the mode of operation is switched to institute from the powering mode State data-transmission mode;
Second voltage switching signal is generated and sent to the power supply unit so that the power supply unit can receive it is described Stop being first equipment charge after second voltage switching signal.
8. a kind of power supply unit, the power supply unit has first data transmission port, it is characterised in that power supply unit includes:
First detection unit, for being the first supply voltage in the supply voltage of the power supply unit, and when first data When transmission port is connected with the first equipment, detect whether the first data transmission port receives first voltage signal;
First judging unit, during for receiving the first voltage signal in the first data transmission port, judges described Whether the first voltage value that first voltage signal has is equal to first voltage switching value;
First supply voltage switch unit, for when the first voltage value is equal to the first voltage switching value, by described in Supply voltage is adjusted to second voltage value different from first voltage value from first voltage value, with The power supply unit is set to be powered for first equipment;
The first data transmission port has the first identification pin, and is connected with the first data transmission port described the Before one equipment, the magnitude of voltage of the first identification pin is operational voltage value;
The judging unit is specifically included:
First control subelement, during for receiving the first voltage signal in the first data transmission port, controls institute The magnitude of voltage for stating the first identification pin is adjusted to the first voltage value different from the operational voltage value from the operational voltage value;
First judgment sub-unit, for judging whether the first voltage value is equal to first voltage switching value.
9. power supply unit as claimed in claim 8, it is characterised in that the power supply unit also includes:
Whether the second detection unit, the magnitude of voltage for detecting the first identification pin for detection unit is cut from the first voltage Change value and be adjusted to the operational voltage value;
Second supply voltage switch unit, for being adjusted in the magnitude of voltage of the described first identification pin from the first voltage switching value It is whole arrive the operational voltage value when, the supply voltage is adjusted to first supply voltage from second voltage value Value.
10. the power supply unit as described in any claim in claim 8-9, it is characterised in that first voltage value is small In second voltage value.
11. a kind of electronic equipment, the electronic equipment has the second data transmission port, it is characterised in that the electronic equipment Including:
First detection unit, for when the mode of operation of the first equipment is in data-transmission mode, detecting second data Whether transmission port is connected with power supply unit;
First mode switch unit, for when second data transmission port is connected with the power supply unit, by the work Operation mode is switched to powering mode from the data-transmission mode;
First signal generation unit, has the first voltage switching signal of first voltage switching value to institute for generating and sending one Power supply unit is stated, so that the power supply unit can be first equipment after the first voltage switching signal is received Charging;
Second data transmission port has in the first data transmission port in the second identification pin, the power supply unit and had There is the first identification pin;
The signal generation unit specifically for:
The magnitude of voltage for controlling the second identification pin is first voltage switching value, so that the magnitude of voltage of the first identification pin The first voltage switching value can be adjusted to from operational voltage value.
12. electronic equipment as claimed in claim 11, it is characterised in that first detection unit specifically for:
Detect whether that there is described first contact with the described second identification pin recognizes pin, wherein, when having described first When recognizing pin, show that second data transmission port is connected with power supply unit.
13. electronic equipment as claimed in claim 11, it is characterised in that the first mode switch unit is specifically included:
First judgment sub-unit, for when second data transmission port is connected with the power supply unit, judging whether to deposit In the mode switching operation of the first user;
First mode switching subelement, for when there is the mode switching operation, by the mode of operation from the data Transmission mode is switched to powering mode.
14. electronic equipment as claimed in claim 12, it is characterised in that the electronic equipment also includes:
Obtaining unit, for obtaining the first charge value for being used for characterizing the first equipment current power state;
Second judging unit, for judging whether first charge value is equal to default charge value;
Second mode switch unit, for when first charge value is equal to the default charge value, by the mode of operation The data-transmission mode is switched to from the powering mode;
Secondary signal generation unit, for generating and sending second voltage switching signal to the power supply unit, so that described supply Electric equipment can stop being first equipment charge after the second voltage switching signal is received.
CN201310322973.2A 2013-07-29 2013-07-29 The method and power supply unit of a kind of power supply and the method and electronic equipment of a kind of charging Active CN104345859B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310322973.2A CN104345859B (en) 2013-07-29 2013-07-29 The method and power supply unit of a kind of power supply and the method and electronic equipment of a kind of charging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310322973.2A CN104345859B (en) 2013-07-29 2013-07-29 The method and power supply unit of a kind of power supply and the method and electronic equipment of a kind of charging

Publications (2)

Publication Number Publication Date
CN104345859A CN104345859A (en) 2015-02-11
CN104345859B true CN104345859B (en) 2017-09-01

Family

ID=52501676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310322973.2A Active CN104345859B (en) 2013-07-29 2013-07-29 The method and power supply unit of a kind of power supply and the method and electronic equipment of a kind of charging

Country Status (1)

Country Link
CN (1) CN104345859B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10545907B2 (en) 2015-12-24 2020-01-28 Intel Corporation Adjustable power delivery scheme for universal serial bus
CN110248149B (en) * 2018-10-19 2022-07-19 浙江大华技术股份有限公司 Method and device for supplying power to DVR (digital video recorder)
CN109580997A (en) * 2018-11-30 2019-04-05 泸州威恩德科技有限公司 Test fixture, test device and test macro
CN117420900B (en) * 2023-12-19 2024-04-02 合肥联宝信息技术有限公司 Circuit device and electronic apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1900861A (en) * 2005-07-21 2007-01-24 三星电子株式会社 Electronic equipment system and control method thereof
CN101021741A (en) * 2006-02-16 2007-08-22 中芯国际集成电路制造(上海)有限公司 Power-saving system and method used for equipment based on universal series bus
US7447922B1 (en) * 2004-06-23 2008-11-04 Cypress Semiconductor Corp. Supplying power from peripheral to host via USB
CN102033590A (en) * 2009-09-27 2011-04-27 联想(北京)有限公司 Method, device and data processing equipment for supplying power to communication interface
CN102301305A (en) * 2011-06-09 2011-12-28 华为终端有限公司 Method and system for powering USB device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7447922B1 (en) * 2004-06-23 2008-11-04 Cypress Semiconductor Corp. Supplying power from peripheral to host via USB
CN1900861A (en) * 2005-07-21 2007-01-24 三星电子株式会社 Electronic equipment system and control method thereof
CN101021741A (en) * 2006-02-16 2007-08-22 中芯国际集成电路制造(上海)有限公司 Power-saving system and method used for equipment based on universal series bus
CN102033590A (en) * 2009-09-27 2011-04-27 联想(北京)有限公司 Method, device and data processing equipment for supplying power to communication interface
CN102301305A (en) * 2011-06-09 2011-12-28 华为终端有限公司 Method and system for powering USB device

Also Published As

Publication number Publication date
CN104345859A (en) 2015-02-11

Similar Documents

Publication Publication Date Title
CN105453372B (en) The method and apparatus of fast battery charging is carried out using general high power input source
CN104967200B (en) A kind of fast charge method and mobile terminal
CN106537719B (en) Electronic device, charger, charging system and charging method
CN201392501Y (en) Electronic equipment, cable system and system
CN105140583B (en) Fast charge method based on USB port
CN104345859B (en) The method and power supply unit of a kind of power supply and the method and electronic equipment of a kind of charging
CN105896655B (en) Method for charging for electronic equipment and electronic equipment
CN105896679B (en) A kind of charge control method and the electronic equipment using this method
WO2016003831A1 (en) Charging card using power harvested from reader
TW200908509A (en) Power source detection system, charger can provide power source detection and the detection method thereof
CN104007801A (en) Method and apparatus for providing power to an electronic device
CN105281398A (en) Portable device, cable assembly, and USB system
TW201012024A (en) Battery system and controlling method thereof and the charger for the battery system
CN105932733B (en) OTG power supply and its method of supplying power to, OTG equipment and mobile communication equipment
CN105449731A (en) Portable power source device and charge-discharge processing method
US9812861B2 (en) Power adapter and method of adapting power for electronic devices
CN101853970A (en) Method and device for charging through universal serial bus (USB) interface
CN105762883B (en) Method and electronic equipment for charging for electronic equipment
CN105932729A (en) Charger authentication method and device for electronic equipment and electronic equipment
CN104426186B (en) A kind of charge control method and electronic equipment
CN110492562B (en) Mobile power supply equipment, power supply control method and device thereof, and power supply equipment
CN101228701A (en) System and method for protecting low voltage transceiver
CN104268110B (en) A kind of device identification method, processor and equipment identifying system
CN106164686B (en) A kind of leakage current test system of terminal
CN103810464A (en) Fingerprint identification terminal

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