CN107104478A - A kind of information processing method and electronic equipment - Google Patents

A kind of information processing method and electronic equipment Download PDF

Info

Publication number
CN107104478A
CN107104478A CN201710198867.6A CN201710198867A CN107104478A CN 107104478 A CN107104478 A CN 107104478A CN 201710198867 A CN201710198867 A CN 201710198867A CN 107104478 A CN107104478 A CN 107104478A
Authority
CN
China
Prior art keywords
electronic equipment
working condition
charger chip
control model
target interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710198867.6A
Other languages
Chinese (zh)
Other versions
CN107104478B (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 CN201710198867.6A priority Critical patent/CN107104478B/en
Publication of CN107104478A publication Critical patent/CN107104478A/en
Application granted granted Critical
Publication of CN107104478B publication Critical patent/CN107104478B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0068Battery or charger load switching, e.g. concurrent charging and load supply
    • 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
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/425Structural combination with electronic components, e.g. electronic circuits integrated to the outside of the casing
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/425Structural combination with electronic components, e.g. electronic circuits integrated to the outside of the casing
    • H01M2010/4271Battery management systems including electronic circuits, e.g. control of current or voltage to keep battery in healthy state, cell balancing
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • H02J7/0048Detection of remaining charge capacity or state of charge [SOC]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Abstract

The invention discloses a kind of information processing method and electronic equipment, methods described includes:Detect the dump energy of the electronic equipment, obtain the working condition of the electronic equipment, wherein, the electronic equipment at least includes characterizing the first working condition that the electronic equipment is in the operational order that can receive at least one peripheral hardware, and the electronic equipment is in can only receive the second working condition for opening operational order;Dump energy and working condition based on the electronic equipment, obtain the switching state of the control model of the charger chip of the electronic equipment;When the control model of the charger chip needs to switch between standard down port controlling pattern and charging downlink port control model, transition mode of the increase for the charger chip;Wherein, the transition mode is the pattern for only providing charging current.

Description

A kind of information processing method and electronic equipment
Technical field
Set the present invention relates to the device management techniques in the communications field, more particularly to a kind of information processing method and electronics It is standby.
Background technology
In the usage scenario of existing electronic equipment, USB port is controlled by charger chip, still, charging at present In the control process of device chip, in the port for supporting USB charger (USB charger), after battery electric quantity is less than 20%, System will not pass through mouse, and keyboard wakes up;Reason is only to be powered when in use by battery and electronic equipment normal work In the state of S0, using the control model of charging downlink port (CDP), and in the case of S3 (sleep pattern), if electricity Less than 20%, standard down port (SDP) 1 is set to disable charge function, now due to the control model of charger chip Switching, it is possible to USB port power down can be caused, so as to influence the normal work of electronic equipment and its external equipment.
The content of the invention
It is a primary object of the present invention to propose a kind of information processing method and electronic equipment, it is intended to solve in the prior art The above mentioned problem of presence.
To achieve the above object, the present invention provides a kind of information processing method, applied to electronic equipment, including:
The dump energy of the electronic equipment is detected, the working condition of the electronic equipment is obtained, wherein, the electronics is set It is few to the utmost to include characterizing the first working condition that the electronic equipment is in the operational order that receive at least one peripheral hardware, with And the electronic equipment be in can only receive open operational order the second working condition;
Dump energy and working condition based on the electronic equipment, obtain the charger chip of the electronic equipment Control model switching state;
When the control model of the charger chip is needed in standard down port controlling pattern and charging downlink port control When switching between molding formula, transition mode of the increase for the charger chip;Wherein, the transition mode fills only to provide The pattern of electric current.
The embodiment of the present invention additionally provides a kind of electronic equipment, including:
Detection unit, the dump energy for detecting the electronic equipment obtains the working condition of the electronic equipment, its In, the electronic equipment at least includes characterizing that the electronic equipment is in the operational order that can receive at least one peripheral hardware One working condition, and the electronic equipment be in can only receive open operational order the second working condition;
Charger chip controls unit, for dump energy and working condition based on the electronic equipment, obtains institute State the switching state of the control model of the charger chip of electronic equipment;When the control model of the charger chip is needed in mark When switching between quasi- downlink port control model and charging downlink port control model, mistake of the increase for the charger chip Cross pattern;Wherein, the transition mode is the pattern for only providing charging current.
A kind of information processing method and electronic equipment proposed by the present invention, detect dump energy and its work of electronic equipment Pattern, the control model for based on dump energy and mode of operation, determining charger chip need two target patterns it Between when switch, increase by one only provides the transition mode of charging current, so as to avoid being controlled mould in charger chip When formula switches, it is impossible to the problem of being powered by USB port, it is ensured that the service behaviour of electronic equipment.
Brief description of the drawings
Fig. 1 is information processing method schematic flow sheet of the embodiment of the present invention;
Fig. 2 is state of electronic equipment of the embodiment of the present invention and charger chip controls pattern correspondence schematic diagram 1;
Fig. 3 is chip pin schematic diagram of the embodiment of the present invention;
Fig. 4 is state of electronic equipment of the embodiment of the present invention and charger chip controls pattern correspondence schematic diagram 2;
Fig. 5 is that electronic equipment of the embodiment of the present invention constitutes structural representation.
Embodiment
The present invention is described in further detail with specific embodiment below in conjunction with the accompanying drawings.
Embodiment one,
The embodiments of the invention provide a kind of information processing method, applied to electronic equipment, as shown in figure 1, including:
Step 101:The dump energy of the electronic equipment is detected, the working condition of the electronic equipment is obtained, wherein, institute Stating electronic equipment at least includes characterizing the first work that the electronic equipment is in the operational order that can receive at least one peripheral hardware Make state, and the electronic equipment is in can only receive the second working condition for opening operational order;
Step 102:Dump energy and working condition based on the electronic equipment, obtain filling for the electronic equipment The switching state of the control model of electrical equipment chip;
Step 103:When the control model of the charger chip is needed under standard down port controlling pattern and charging When switching between row port controlling pattern, transition mode of the increase for the charger chip;Wherein, the transition mode is The pattern of charging current is only provided.
The present embodiment is mainly used in the system for the electronic equipment for possessing charger chip, wherein, the charger core The acting as of piece is managed for charging process.Specifically, to pass through the charging valve of charger chip controls USB interface Reason.
In above-mentioned steps 101, the dump energy of the electronic equipment is detected, can be detection battery electric quantity, electronic equipment In power supply unit can be the battery that can charge, or the voltage transformation unit being connected with AC power, as long as can enter Row power supply, which can just be detected, obtains current battery electric quantity.
The working condition of electronic equipment is obtained, the electronic equipment at least includes the sign electronic equipment and is in and can connect The first working condition of the operational order of at least one peripheral hardware is received, and the electronic equipment is in only receive and opens operation Second working condition of instruction.Below with ACPI (Advanced Configuration and Power Interface, ACPI) specification for.This energy management can control " switch " system by such as software, can also use Modem signals wake up and closed system.ACPI has following several modes in operation:
S0:Normally;S1:CPU is stopped.Wakeup time:0 second;S2:CPU is closed, wakeup time:0.1 second;S3:Except Part outside internal memory is all stopped, wakeup time:0.5 second;S4:Memory information writes hard disk, and all parts are stopped, called out The time of waking up:30 seconds, (resting state);S5:Close.
S1=>Standby.Refer to system and be in low power supply supply status, firefly can be set in windows or BIOS Curtain signal output is closed, hard disc shuts down is in flicker state into armed state, power supply cresset.Now make a motion slide-mouse, Any key of keypad can wake computer.
S2=>Power Standby.
S3=>Suspend to RAM.It is that all data windows existed now in memory body preserve motionless, Subsequently into " vacation shutdown ".Now except memory body needs power supply come in addition to keeping data, other units are wholly off Power supply.
S4=>Suspend to Disk.In being the presence hard disc the complete data in windows memory bodys.Etc. opening Just directly memory body is read during machine from the place for depositing these data is directly complete, it is not necessary to run application.
S5=>Shutdown.
Furthermore, it is understood that judge the working condition of electronic equipment, or, it is to be in S1 patterns also specifically to judge system It is the method in S3 patterns, can be with the situation of detecting system:Such as, under ACPI S1 park modes, only CPU stops work Make, other equipment is still in powering state.And in S3 patterns (BIOS->Power management->Suspend to RAM are set to Enable, other equipment is in off-position in addition to internal memory).Or, under S3 patterns, system is entirely quiet, is owned The wholly off work of fan, now system can not be waken up from keyboard, by hand wake up method can only be by the power supply on front panel Button.
In above-mentioned steps 102, dump energy and working condition based on the electronic equipment obtain the electronics and set The mode of the control model of standby charger chip, Ke Yiwei determined based on default rule, the dump energy of electronic equipment And its working condition, the control model of corresponding charger chip.
Specifically, may refer to Fig. 2, project therein characterize the power supply mode of different electrical power, the dump energy of power supply, And the working condition of electronic equipment, the control model of corresponding different charger chips;Such as, AC-mode-S0 tables Show, when power supply is powered using alternating current AC, during electronic equipment processing S0 working conditions (normal operating conditions), charger chip Control model be CDP patterns, that is, charge downlink port control model;In addition, DC-mode-S0IN battery>20%, I.e. power supply is powered using direct current DC, is operated in the dump energy of S0 working conditions and power supply>When 20%, corresponding charger The control model of chip is CDP patterns etc., and the presentation content and Explanation way of sundry item are identical with both of the aforesaid, here No longer carry out exhaustive.
The switching state of the control model of the charger chip of the electronic equipment is obtained, can be the residue electricity when power supply Changing of volume production, and/or, when the working condition of electronic equipment changes, the control model of corresponding charger chip also can Send switching;See also Fig. 2, it is assumed that electronic equipment equally in direct current supply and is operated under S3 patterns (sleep state), When power supply dump energy by>20% switches to<When 20%, that is, from project DC-mode-S3in battery>20%, institute Corresponding control model CDP, switches to project DC-mode-S3in battery<20%, corresponding control model SDP when Wait, for the switching state for the control model for occurring in that charger chip.It is, of course, also possible to there is the control mould that SDP is switched to CDP Switching state of formula etc., disparity items that specifically can be with reference to shown in Fig. 2, which is compared, obtains a variety of switching states, here not Exhaustion is carried out again.
It is described when the control model of the charger chip is needed in standard down port controlling mould in above-mentioned steps 103 When switching between formula and charging downlink port control model, transition mode of the increase for the charger chip, that is to say, that When switching between standard down port controlling pattern and charging downlink port control model, increase one kind only provides charging current Pattern, the problem of to avoid occurring charge port power down in control mode switch, that is, the problem of avoiding Vbus power down.
Specifically, it is several that several control models that foregoing charger chip possesses can include CDP, SDP and DCP etc. Kind;BC1.2 specifications briefly define three kinds of different types of USB ports and two kinds of key objects." charging " port is to provide The port of more than 500mA electric currents;Data are transmitted according to USB2.0 specifications in " descending " port.BC1.2 specifications also determine each end How mouth should be enumerated to terminal device, and recognize the agreement of application port type.Three kinds of USB BC1.2 port types be SDP, DCP and CDP:
There is 15k Ω pull down resistors on SDP, D+ the and D- lines of this port.It is 2.5mA during hang-up, is during connection 100mA, it is 500mA to connect and be configured to during higher-wattage;
Special charging port (DCP), this port does not support any data transfer, but can provide more than 1.5A electricity Stream.
Large current charge is both supported in CDP, this port, also supports completely compatible USB 2.0 data transfer.Port has 15k Ω pull down resistors necessary to D+ and D- communications, it may have the internal circuit of charger detection-phase switching.
By using aforementioned manner, the dump energy and its mode of operation of electronic equipment can be detected, based on remaining electricity Amount and mode of operation, when determining that the control model needs of charger chip switch between two target patterns, increase One only provide charging current transition mode, so as to avoid when charger chip is controlled pattern switching, it is impossible to The problem of being powered by USB port, it is ensured that the service behaviour of electronic equipment.
Embodiment two,
The embodiments of the invention provide a kind of information processing method, applied to electronic equipment, as shown in figure 1, including:
Step 101:The dump energy of the electronic equipment is detected, the working condition of the electronic equipment is obtained, wherein, institute Stating electronic equipment at least includes characterizing the first work that the electronic equipment is in the operational order that can receive at least one peripheral hardware Make state, and the electronic equipment is in can only receive the second working condition for opening operational order;
Step 102:Dump energy and working condition based on the electronic equipment, obtain filling for the electronic equipment The switching state of the control model of electrical equipment chip;
Step 103:When the control model of the charger chip is needed under standard down port controlling pattern and charging When switching between row port controlling pattern, transition mode of the increase for the charger chip;Wherein, the transition mode is The pattern of charging current is only provided.
The present embodiment is mainly used in the system for the electronic equipment for possessing charger chip, wherein, the charger core The acting as of piece is managed for charging process.Specifically, to pass through the charging valve of charger chip controls USB interface Reason.
In above-mentioned steps 101, the dump energy of the electronic equipment is detected, can be detection battery electric quantity, electronic equipment In power supply unit can be the battery that can charge, or the voltage transformation unit being connected with AC power, as long as can enter Row power supply, which can just be detected, obtains current battery electric quantity.
The working condition of electronic equipment is obtained, the electronic equipment at least includes the sign electronic equipment and is in and can connect The first working condition of the operational order of at least one peripheral hardware is received, and the electronic equipment is in only receive and opens operation Second working condition of instruction.Below with ACPI specification for.This energy management " can be opened by the control of such as software Pass " system, can also wake up and close system with Modem signals.ACPI has following several modes in operation:
S0:Normally;S1:CPU is stopped.Wakeup time:0 second;S2:CPU is closed, wakeup time:0.1 second;S3:Except Part outside internal memory is all stopped, wakeup time:0.5 second;S4:Memory information writes hard disk, and all parts are stopped, called out The time of waking up:30 seconds, (resting state);S5:Close.
In above-mentioned steps 102, dump energy and working condition based on the electronic equipment obtain the electronics and set The mode of the control model of standby charger chip, can include:
When the working condition of the electronic equipment is switched over and institute between the first working condition and the second working condition Electronic equipment is stated when the dump energy of second working condition is the second dump energy, determine the electronic equipment need from Switched between standard down port mode and charging downlink port pattern;
When the electronic equipment is in the dump energy of the second working condition and the electronic equipment in the first dump energy When switching between the second dump energy, determine that the electronic equipment is needed in standard down port mode and charging downlink port Switched between pattern.
It should be noted that the second dump energy is the electricity less than predetermined threshold value;First dump energy is more than pre- The electricity of gating limit value;Wherein, the predetermined threshold value can be ratio value, be configured according to actual conditions, generally set For 20%.
Specifically, may refer to Fig. 2, project therein characterize the power supply mode of different electrical power, the dump energy of power supply, And the working condition of electronic equipment, the control model of corresponding different charger chips;Such as, AC-mode-S0 tables Show, when power supply is powered using alternating current AC, during electronic equipment processing S0 working conditions (normal operating conditions), charger chip Control model be CDP patterns, that is, charge downlink port control model;In addition, DC-mode-S0IN battery>20%, I.e. power supply is powered using direct current DC, is operated in the dump energy of S0 working conditions and power supply>When 20%, corresponding charger The control model of chip is CDP patterns etc., and the presentation content and Explanation way of sundry item are identical with both of the aforesaid, here No longer carry out exhaustive.
The switching state of the control model of the charger chip of the electronic equipment is obtained, can be the residue electricity when power supply Changing of volume production, and/or, when the working condition of electronic equipment changes, the control model of corresponding charger chip also can Send switching;See also Fig. 2, it is assumed that electronic equipment equally in direct current supply and is operated under S3 patterns (sleep state), When power supply dump energy by>20% switches to<When 20%, that is, from project DC-mode-S3in battery>20%, institute Corresponding control model CDP, switches to project DC-mode-S3in battery<20%, corresponding control model SDP when Wait, for the switching state for the control model for occurring in that charger chip.It is, of course, also possible to there is the control mould that SDP is switched to CDP Switching state of formula etc., disparity items that specifically can be with reference to shown in Fig. 2, which is compared, obtains a variety of switching states, here not Exhaustion is carried out again.
It is described when the control model of the charger chip is needed in standard down port controlling mould in above-mentioned steps 103 When switching between formula and charging downlink port control model, transition mode of the increase for the charger chip, that is to say, that When switching between standard down port controlling pattern and charging downlink port control model, increase one kind only provides charging current Pattern, the problem of to avoid occurring charge port power down in control mode switch, that is, the problem of avoiding Vbus power down.
Specifically, it is several that several control models that foregoing charger chip possesses can include CDP, SDP and DCP etc. Kind;BC1.2 specifications briefly define three kinds of different types of USB ports and two kinds of key objects." charging " port is to provide The port of more than 500mA electric currents;Data are transmitted according to USB2.0 specifications in " descending " port.BC1.2 specifications also determine each end How mouth should be enumerated to terminal device, and recognize the agreement of application port type.Three kinds of USB BC1.2 port types be SDP, DCP and CDP:
There is 15k Ω pull down resistors on SDP, D+ the and D- lines of this port.It is 2.5mA during hang-up, is during connection 100mA, it is 500mA to connect and be configured to during higher-wattage;
DCP, this port does not support any data transfer, but can provide more than 1.5A electric current.
Large current charge is both supported in CDP, this port, also supports completely compatible USB 2.0 data transfer.Port has 15k Ω pull down resistors necessary to D+ and D- communications, it may have the internal circuit of charger detection-phase switching.
Further, methods described also includes:By at least one target interface, correspondence is inputted to the charger chip Control model.
Specifically, at least one described target interface includes:First object interface, the second target interface and the 3rd mesh Tag splice mouthful;Wherein, each described target interface obtains control signal by receiving high level or low level;
Accordingly,
It is described that the control model for the charger chip is received by least one target interface, including:
Based on the first object interface, the second target interface and the 3rd target interface, the high level being respectively received Or low level control signal;
The control signal received by the first object interface, the second target interface and the 3rd target interface is made For control instruction, the control model for the charger chip is adjusted based on the control instruction.
Such as, referring to Fig. 3, chip shown in figure can be understood as charger chip, it can be seen that chip shown in figure has Only to therein 6,7,8, these three pins are illustrated in standby multiple pins, the present embodiment, and foregoing three target interfaces can divide 6th, 7,8 these three pins.
The control signal for charger chip is received by 6 shown in Fig. 3,7,8 these three pins, specifically, pipe Pin 6,7,8 receives CTL1, CTL2 and CTL3 these three signals respectively.
For further, CTL1,2,3 can be understood as information input interface, be mainly used in receiving control model Switching command.
The control signal that will be received by the first object interface, the second target interface and the 3rd target interface, For adjusting the control model for the charger chip, in processes, the control of three target interfaces can be believed respectively Number it is ranked up, the full control signal after sequence is used as adjusting the control model for the charger chip Control instruction.Generally can be according to the target interface of target interface-the 3rd of first object interface-second, this sequentially comes to control Signal processed is ranked up.
Referring still to Fig. 3, the signal that CTL1,2,3 are received is ranked up according to the corresponding order in CTL1,2,3, obtained To corresponding control instruction to switch the control model of charger chip.
Different dump energy, mode of operation, the control instruction of corresponding control model, and control model, can be with Referring to Fig. 4, CTL1,2,3 regard high level H as 1, low level conduct respectively using high level H or low level L as control signal 0;Such as, when entering SDP from CDP, or during from SDP into CDP, carried out using Dcp_Auto excessive;
Specifically:
By using aforementioned manner, the dump energy and its mode of operation of electronic equipment can be detected, based on remaining electricity Amount and mode of operation, when determining that the control model needs of charger chip switch between two target patterns, increase One only provide charging current transition mode, so as to avoid when charger chip is controlled pattern switching, it is impossible to The problem of being powered by USB port, it is ensured that the service behaviour of electronic equipment.
Embodiment three,
The embodiments of the invention provide a kind of electronic equipment, as shown in figure 5, the electronic equipment includes:
Detection unit 51, the dump energy for detecting the electronic equipment obtains the working condition of the electronic equipment, Wherein, the electronic equipment at least includes characterizing the electronic equipment in the operational order that can receive at least one peripheral hardware First working condition, and the electronic equipment be in can only receive open operational order the second working condition;
Charger chip controls unit 52, for dump energy and working condition based on the electronic equipment, is obtained The switching state of the control model of the charger chip of the electronic equipment;When the control model of the charger chip needs When switching between standard down port controlling pattern and charging downlink port control model, increase is for the charger chip Transition mode;Wherein, the transition mode is the pattern for only providing charging current.
The present embodiment is mainly used in the system for the electronic equipment for possessing charger chip, wherein, the charger core The acting as of piece is managed for charging process.Specifically, to pass through the charging valve of charger chip controls USB interface Reason.
Detection unit 51, the dump energy for detecting the electronic equipment can be detection battery electric quantity, electronic equipment In power supply unit can be the battery that can charge, or the voltage transformation unit being connected with AC power, as long as can enter Row power supply, which can just be detected, obtains current battery electric quantity.
The working condition of electronic equipment is obtained, the electronic equipment at least includes the sign electronic equipment and is in and can connect The first working condition of the operational order of at least one peripheral hardware is received, and the electronic equipment is in only receive and opens operation Second working condition of instruction.Below with ACPI specification for.This energy management " can be opened by the control of such as software Pass " system, can also wake up and close system with Modem signals.ACPI has following several modes in operation:
S0:Normally;S1:CPU is stopped.Wakeup time:0 second;S2:CPU is closed, wakeup time:0.1 second;S3:Except Part outside internal memory is all stopped, wakeup time:0.5 second;S4:Memory information writes hard disk, and all parts are stopped, called out The time of waking up:30 seconds, (resting state);S5:Close.
S1=>Standby.Refer to system and be in low power supply supply status, firefly can be set in windows or BIOS Curtain signal output is closed, hard disc shuts down is in flicker state into armed state, power supply cresset.Now make a motion slide-mouse, Any key of keypad can wake computer.
S2=>Power Standby.
S3=>Suspend to RAM.It is that all data windows existed now in memory body preserve motionless, Subsequently into " vacation shutdown ".Now except memory body needs power supply come in addition to keeping data, other units are wholly off Power supply.
S4=>Suspend to Disk.In being the presence hard disc the complete data in windows memory bodys.Etc. opening Just directly memory body is read during machine from the place for depositing these data is directly complete, it is not necessary to run application.
S5=>Shutdown.
Furthermore, it is understood that judge the working condition of electronic equipment, or, it is to be in S1 patterns also specifically to judge system It is the method in S3 patterns, can be with the situation of detecting system:Such as, under ACPI S1 park modes, only CPU stops work Make, other equipment is still in powering state.And in S3 patterns (BIOS->Power management->Suspend to RAM are set to Enable, other equipment is in off-position in addition to internal memory).Or, under S3 patterns, system is entirely quiet, is owned The wholly off work of fan, now system can not be waken up from keyboard, by hand wake up method can only be by the power supply on front panel Button.
Charger chip controls unit 52, for being determined based on default rule, the dump energy of electronic equipment and its Working condition, the control model of corresponding charger chip.
Specifically, may refer to Fig. 2, project therein characterize the power supply mode of different electrical power, the dump energy of power supply, And the working condition of electronic equipment, the control model of corresponding different charger chips;Such as, AC-mode-S0 tables Show, when power supply is powered using alternating current AC, during electronic equipment processing S0 working conditions (normal operating conditions), charger chip Control model be CDP patterns, that is, charge downlink port control model;In addition, DC-mode-S0IN battery>20%, I.e. power supply is powered using direct current DC, is operated in the dump energy of S0 working conditions and power supply>When 20%, corresponding charger The control model of chip is CDP patterns etc., and the presentation content and Explanation way of sundry item are identical with both of the aforesaid, here No longer carry out exhaustive.
The switching state of the control model of the charger chip of the electronic equipment is obtained, can be the residue electricity when power supply Changing of volume production, and/or, when the working condition of electronic equipment changes, the control model of corresponding charger chip also can Send switching;See also Fig. 2, it is assumed that electronic equipment equally in direct current supply and is operated under S3 patterns (sleep state), When power supply dump energy by>20% switches to<When 20%, that is, from project DC-mode-S3in battery>20%, institute Corresponding control model CDP, switches to project DC-mode-S3in battery<20%, corresponding control model SDP when Wait, for the switching state for the control model for occurring in that charger chip.It is, of course, also possible to there is the control mould that SDP is switched to CDP Switching state of formula etc., disparity items that specifically can be with reference to shown in Fig. 2, which is compared, obtains a variety of switching states, here not Exhaustion is carried out again.
The control model when the charger chip is needed in standard down port controlling pattern and charging downstream end When switching between mouth control model, transition mode of the increase for the charger chip, that is to say, that in standard down port When switching between control model and charging downlink port control model, increase a kind of pattern that charging current is only provided, to avoid The problem of occurring charge port power down in control mode switch, that is, the problem of avoiding Vbus power down.
Specifically, it is several that several control models that foregoing charger chip possesses can include CDP, SDP and DCP etc. Kind;BC1.2 specifications briefly define three kinds of different types of USB ports and two kinds of key objects." charging " port is to provide The port of more than 500mA electric currents;Data are transmitted according to USB2.0 specifications in " descending " port.BC1.2 specifications also determine each end How mouth should be enumerated to terminal device, and recognize the agreement of application port type.Three kinds of USB BC1.2 port types be SDP, DCP and CDP:
There is 15k Ω pull down resistors on SDP, D+ the and D- lines of this port.It is 2.5mA during hang-up, is during connection 100mA, it is 500mA to connect and be configured to during higher-wattage;
DCP, this port does not support any data transfer, but can provide more than 1.5A electric current.
Large current charge is both supported in CDP, this port, also supports completely compatible USB 2.0 data transfer.Port has 15k Ω pull down resistors necessary to D+ and D- communications, it may have the internal circuit of charger detection-phase switching.
By using aforementioned manner, the dump energy and its mode of operation of electronic equipment can be detected, based on remaining electricity Amount and mode of operation, when determining that the control model needs of charger chip switch between two target patterns, increase One only provide charging current transition mode, so as to avoid when charger chip is controlled pattern switching, it is impossible to The problem of being powered by USB port, it is ensured that the service behaviour of electronic equipment.
Example IV,
Based on the identical structure of embodiment three, the present embodiment illustrates the switching for how being controlled pattern, and How the acquisition of signal is controlled.
Charger chip controls unit 52, for by least one target interface, to charger chip input pair The control model answered.
Specifically, at least one described target interface includes:First object interface, the second target interface and the 3rd mesh Tag splice mouthful;Wherein, each described target interface obtains control signal by receiving high level or low level;
Accordingly,
The charger chip controls unit 52, for based on the first object interface, the second target interface and Three target interfaces, the high level being respectively received or low level control signal;
The control signal received by the first object interface, the second target interface and the 3rd target interface is made For control instruction, the control model for the charger chip is adjusted based on the control instruction.
Such as, referring to Fig. 3, chip shown in figure can be understood as charger chip, it can be seen that chip shown in figure has Only to therein 6,7,8, these three pins are illustrated in standby multiple pins, the present embodiment, and foregoing three target interfaces can divide 6th, 7,8 these three pins.
The control signal for charger chip is received by 6 shown in Fig. 3,7,8 these three pins, specifically, pipe Pin 6,7,8 receives CTL1, CTL2 and CTL3 these three signals respectively.
For further, CTL1,2,3 can be understood as information input interface, be mainly used in receiving control model Switching command.
The control signal that will be received by the first object interface, the second target interface and the 3rd target interface, For adjusting the control model for the charger chip, in processes, the control of three target interfaces can be believed respectively Number it is ranked up, the full control signal after sequence is used as adjusting the control model for the charger chip Control instruction.Generally can be according to the target interface of target interface-the 3rd of first object interface-second, this sequentially comes to control Signal processed is ranked up.
Referring still to Fig. 3, the signal that CTL1,2,3 are received is ranked up according to the corresponding order in CTL1,2,3, obtained To corresponding control instruction to switch the control model of charger chip.
Different dump energy, mode of operation, the control instruction of corresponding control model, and control model, can be with Referring to Fig. 4, CTL1,2,3 regard high level H as 1, low level conduct respectively using high level H or low level L as control signal 0;Such as, when entering SDP1 from CDP, or during from SDP1 into CDP, carried out using Dcp_Auto excessive;
Specifically:
By using aforementioned manner, the dump energy and its mode of operation of electronic equipment can be detected, based on remaining electricity Amount and mode of operation, when determining that the control model needs of charger chip switch between two target patterns, increase One only provide charging current transition mode, so as to avoid when charger chip is controlled pattern switching, it is impossible to The problem of being powered by USB port, it is ensured that the service behaviour of electronic equipment.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there is other identical element in process, method, article or the device of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal equipment (can be mobile phone, computer, dress Put, air conditioner, or the network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of information processing method, applied to electronic equipment, it is characterised in that methods described includes:
The dump energy of the electronic equipment is detected, the working condition of the electronic equipment is obtained, wherein, the electronic equipment is extremely It is few to include characterizing the first working condition that the electronic equipment is in the operational order that receive at least one peripheral hardware, Yi Jisuo State electronic equipment be in can only receive open operational order the second working condition;
Dump energy and working condition based on the electronic equipment, obtain the control of the charger chip of the electronic equipment The switching state of molding formula;
When the control model of the charger chip is needed in standard down port controlling pattern and charging downlink port control mould When switching between formula, transition mode of the increase for the charger chip;Wherein, the transition mode is electric only to provide charging The pattern of stream.
2. according to the method described in claim 1, it is characterised in that the dump energy based on the electronic equipment and Working condition, obtains the switching state of the control model of the charger chip of the electronic equipment, including:
When the working condition of the electronic equipment is switched over and the electricity between the first working condition and the second working condition Sub- equipment determines that the electronic equipment is needed from standard when the dump energy of second working condition is the second dump energy Switched between downlink port pattern and charging downlink port pattern.
3. according to the method described in claim 1, it is characterised in that the dump energy based on the electronic equipment and Working condition, obtains the switching state of the control model of the charger chip of the electronic equipment, including:
When the electronic equipment is in the dump energy of the second working condition and the electronic equipment in the first dump energy and the When switching between two dump energies, determine that the electronic equipment is needed in standard down port mode and charging downlink port pattern Between switch over.
4. the method according to claim any one of 1-3, it is characterised in that methods described also includes:
By at least one target interface, corresponding control model is inputted to the charger chip.
5. method according to claim 4, it is characterised in that
At least one described target interface includes:First object interface, the second target interface and the 3rd target interface;Wherein, Each described target interface obtains control signal by receiving high level or low level;
Accordingly,
It is described that the control model for the charger chip is received by least one target interface, including:
Based on the first object interface, the second target interface and the 3rd target interface, the high level being respectively received or low The control signal of level;
It regard the control signal received by the first object interface, the second target interface and the 3rd target interface as control System instruction, the control model for the charger chip is adjusted based on the control instruction.
6. a kind of electronic equipment, it is characterised in that the electronic equipment includes:
Detection unit, the dump energy for detecting the electronic equipment obtains the working condition of the electronic equipment, wherein, The electronic equipment at least includes characterizing the electronic equipment is in the operational order that can receive at least one peripheral hardware first Working condition, and the electronic equipment be in can only receive open operational order the second working condition;
Charger chip controls unit, for dump energy and working condition based on the electronic equipment, obtains the electricity The switching state of the control model of the charger chip of sub- equipment;When the control model of the charger chip is needed under standard When switching between row port controlling pattern and charging downlink port control model, stage die of the increase for the charger chip Formula;Wherein, the transition mode is the pattern for only providing charging current.
7. electronic equipment according to claim 6, it is characterised in that the charger chip controls unit, for working as The working condition for stating electronic equipment is switched over and the electronic equipment exists between the first working condition and the second working condition When the dump energy of second working condition is the second dump energy, determine that the electronic equipment is needed from standard down port Switched between pattern and charging downlink port pattern.
8. electronic equipment according to claim 6, it is characterised in that the charger chip controls unit, for working as State electronic equipment and be in the dump energy of the second working condition and the electronic equipment in the first dump energy and the second remaining electricity When switching between amount, determine that the electronic equipment needs to carry out between standard down port mode and charging downlink port pattern Switching.
9. the electronic equipment according to claim any one of 6-8, it is characterised in that the charger chip controls unit, For by least one target interface, corresponding control model to be inputted to the charger chip.
10. electronic equipment according to claim 9, it is characterised in that at least one described target interface includes:First mesh Tag splice mouthful, the second target interface and the 3rd target interface;Wherein, each described target interface by receive high level or Low level obtains control signal;
The charger chip controls unit, for based on the first object interface, the second target interface and the 3rd target Interface, the high level being respectively received or low level control signal;
It regard the control signal received by the first object interface, the second target interface and the 3rd target interface as control System instruction, the control model for the charger chip is adjusted based on the control instruction.
CN201710198867.6A 2017-03-29 2017-03-29 Information processing method and electronic equipment Active CN107104478B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710198867.6A CN107104478B (en) 2017-03-29 2017-03-29 Information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710198867.6A CN107104478B (en) 2017-03-29 2017-03-29 Information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN107104478A true CN107104478A (en) 2017-08-29
CN107104478B CN107104478B (en) 2020-05-26

Family

ID=59675160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710198867.6A Active CN107104478B (en) 2017-03-29 2017-03-29 Information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN107104478B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108536267A (en) * 2018-03-30 2018-09-14 联想(北京)有限公司 Information processing method and electronic equipment
CN111782286A (en) * 2020-06-30 2020-10-16 联想(北京)有限公司 Control method and electronic equipment
CN112332513A (en) * 2020-10-12 2021-02-05 合肥联宝信息技术有限公司 Electronic equipment and power control method thereof
CN113422411A (en) * 2021-06-29 2021-09-21 百富计算机技术(深圳)有限公司 PD charging circuit and POS machine

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103080868A (en) * 2010-09-02 2013-05-01 惠普发展公司,有限责任合伙企业 Charging port
US20140223200A1 (en) * 2013-02-01 2014-08-07 Broadcom Corporation Charger detection and optimization prior to host control

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103080868A (en) * 2010-09-02 2013-05-01 惠普发展公司,有限责任合伙企业 Charging port
US20140223200A1 (en) * 2013-02-01 2014-08-07 Broadcom Corporation Charger detection and optimization prior to host control

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108536267A (en) * 2018-03-30 2018-09-14 联想(北京)有限公司 Information processing method and electronic equipment
CN108536267B (en) * 2018-03-30 2021-07-16 联想(北京)有限公司 Information processing method and electronic device
CN111782286A (en) * 2020-06-30 2020-10-16 联想(北京)有限公司 Control method and electronic equipment
CN112332513A (en) * 2020-10-12 2021-02-05 合肥联宝信息技术有限公司 Electronic equipment and power control method thereof
CN112332513B (en) * 2020-10-12 2022-03-29 合肥联宝信息技术有限公司 Electronic equipment and power control method thereof
CN113422411A (en) * 2021-06-29 2021-09-21 百富计算机技术(深圳)有限公司 PD charging circuit and POS machine

Also Published As

Publication number Publication date
CN107104478B (en) 2020-05-26

Similar Documents

Publication Publication Date Title
TWI461891B (en) Power managing circuit and the method thereof
CN105375549B (en) For controlling the method, system and battery of battery status
EP2545631B1 (en) External power source voltage drop compensation for portable devices
CN104062914B (en) Electronic installation
CN107104478A (en) A kind of information processing method and electronic equipment
CN103080868B (en) Charging port
CN103246335B (en) Condition control method and electronic equipment
US9966781B2 (en) Apparatus for battery charger with controlled charge current and associated methods
CN102236405A (en) Information equipment capable of reducing standby power and power control method
CN103872719A (en) Method for reducing power consumption of static battery
CN103326078A (en) Mobile device charging method and system
CN102609071B (en) Bridge device and power-saving operation method thereof
CN103970248A (en) power management circuit and method and computer system
CN105186598A (en) USB insertion automatic identification and power supply system and chip integrated with the same
CN103677199B (en) The method of information processing and the first electronic equipment
CN103809129A (en) Hierarchical electric quantity prompt method and electronic device
CN104485712B (en) Charging method and electronic equipment
CN101788842A (en) Power management device for computer system and related method thereof and computer system
CN103915864B (en) Electronic device with power supply control function
CN106921192A (en) Terminal and electricity sharing method
CN106292989A (en) A kind of information processing method and electronic equipment
CN104486089B (en) A kind of computer network awakening method and device
CN103135739B (en) power consumption control method of electronic system and related electronic system
CN104124718B (en) Electric supply installation and method of supplying power to
CN103164014A (en) Power supply method, system and electronic terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant