Summary of the invention
The embodiment of the present application, by a kind of method for managing power supply and power-supply management system are provided, have solved in prior art and cannot, in the situation that additionally not increasing RTC wake-up circuit, wake the technical matters of the controller in deep sleep up.
The embodiment of the present application provides a kind of method for managing power supply, be applied in the power-supply management system of electronic equipment, wherein, described power-supply management system comprises a power module and a controller, described power module comprises again a battery core and a power circuit being connected with described battery core, and described method comprises:
First constantly, when described electronic equipment is in holding state and described controller during in sleep state, by described power circuit, obtain for representing that described battery core is at described first the first charge value constantly;
By described power circuit, judge whether described the first charge value is less than a default charge value;
When described the first charge value is less than described default charge value, the first interface by described power circuit sends the first instruction to described controller, and described the first instruction is used for waking up described controller;
Described controller, after receiving described the first instruction, based on described the first instruction, switches to duty by the state of described controller from described sleep state.
Preferably, described sleep state, is specially: deep sleep, wherein, the power consumption of described controller when in described deep sleep is less than 1mW.
Preferably, described default charge value, is specially:
The second charge value 3% to 8% between arbitrary charge value, described the second charge value be when described battery core Full Charge Capacity described in the charge value of battery core.
Preferably, described power module be one can separate from described electronic equipment module time, described first interface also for:
When described power module is connected with described electronic equipment, to described electronic equipment, send the first information, the described first information is for representing described power module and the information of described electronic equipment in connection status.
Preferably, at described controller, receiving after described the first instruction, based on described the first instruction, by the state of described controller, after described sleep state switches to duty, described method also comprises:
Described controller is based on described the first instruction; control described electronic equipment and enter low electric quantity protective state, wherein, described electronic equipment is in described low electric quantity protective state time; can at least to user, send low electric weight warning message, and storage in time needs the data of storage.
Based on same inventive concept, the embodiment of the present application also provides a kind of power-supply management system, be applied in electronic equipment, wherein, described power-supply management system comprises a power module and a controller, described power module comprises again a battery core and a power circuit being connected with described battery core, and described power circuit comprises:
First interface, is arranged in described power circuit, for first constantly, when described electronic equipment is in holding state and described controller during in sleep state, obtains for representing that described battery core is at described first the first charge value constantly;
One processor, for judging whether described the first charge value is less than a default charge value; When described the first charge value is less than described default charge value, to described controller, send the first instruction, described the first instruction is used for waking up described controller, described controller is after receiving described the first instruction, can, based on described the first instruction, the state of described controller be switched to duty from described sleep state.
Preferably, described sleep state, is specially: deep sleep, wherein, the power consumption of described controller when in described deep sleep is less than 1mW.
Preferably, described default charge value, is specially:
The second charge value 3% to 8% between arbitrary charge value, described the second charge value be when described battery core Full Charge Capacity described in the charge value of battery core.
Preferably,, described power module be one can separate from described electronic equipment module time, described first interface also for:
When described power module is connected with described electronic equipment, to described electronic equipment, send the first information, the described first information is for representing described power module and the information of described electronic equipment in connection status.
Preferably, at described controller, receiving after described the first instruction, based on described the first instruction, by the state of described controller after described sleep state switches to duty, described controller also for:
Based on described the first instruction, control described electronic equipment and enter low electric quantity protective state, wherein, described electronic equipment in described low electric quantity protective state time, can at least send low electric weight warning message to user, and storage in time needs the data of storage.
The one or more technical schemes that provide in the embodiment of the present application, at least have following technique effect or advantage:
1, in the embodiment of the present application, by first constantly, when described electronic equipment is in holding state and described controller during in deep sleep, by described power circuit, obtain for representing that described battery core is at described first the first charge value constantly, by described power circuit, judge whether described the first charge value is less than a default charge value, when described the first charge value is less than described default charge value, the first interface by described power circuit sends the first instruction to described controller, and described the first instruction is used for waking up described controller, described controller is after receiving described the first instruction, based on described the first instruction, the state of described controller is switched to duty from described sleep state, and described first interface is that described electronic equipment is original in inform the data-interface that described power module has been connected with described electronic equipment to described electronic equipment, so do not need to increase extra PCB circuit, thereby, efficiently solving cannot be in the situation that additionally increasing PCB circuit in prior art, wake the technical matters of the controller in deep sleep up, realized at controller during in penetration depth sleep state (power consumption is less than 1mW), in the situation that additionally not increasing PCB circuit, can wake described controller up, further make described controller control the technique effect that described electronic equipment enters low electric quantity protective state.
2, in the embodiment of the present application, the power-supply management system of introducing is safe and reliable, and it is little to consume energy, so reduce the requirement to battery core.
Embodiment
The embodiment of the present application, by a kind of method for managing power supply and power-supply management system are provided, have solved in prior art and cannot, in the situation that additionally not increasing PCB circuit, wake the technical matters in the EC of deep sleep controller up.
Technical scheme in the embodiment of the present application is for solving the above problems, and general thought is as follows:
A kind of method for managing power supply, be applied in the power-supply management system of electronic equipment, wherein, described power-supply management system comprises a power module and a controller, described power module comprises again a battery core and a power circuit being connected with described battery core, and described method comprises:
First, first constantly, when described electronic equipment is in holding state and described controller during in sleep state, by described power circuit, obtain for representing that described battery core is at described first the first charge value constantly;
Then, by described power circuit, judge whether described the first charge value is less than a default charge value;
Again, when described the first charge value is less than described default charge value, the first interface by described power circuit sends the first instruction to described controller, and described the first instruction is used for waking up described controller;
Finally, described controller, after receiving described the first instruction, based on described the first instruction, switches to duty by the state of described controller from described sleep state.
In order better to understand technique scheme, below in conjunction with Figure of description and concrete embodiment, technique scheme is described in detail.
Embodiment mono-
As shown in Figure 1, a kind of method for managing power supply, is applied in the power-supply management system of electronic equipment, wherein, described power-supply management system comprises a power module and a controller, and described power module comprises again a battery core and a power circuit being connected with described battery core, and described method comprises:
Execution step S101, that is:, first constantly, when described electronic equipment is in holding state and described controller during in sleep state, by described power circuit, obtain for representing that described battery core is at described first the first charge value constantly;
In specific implementation process, described electronic equipment can be notebook computer, camera, game machine etc., portable and need to use the electronic equipment of battery, and for described electronic equipment which kind of electronic equipment specifically, the embodiment of the present application is not done concrete restriction.
In specific implementation process, described sleep state, be specially: deep sleep, wherein, the power consumption of described controller when in described deep sleep is less than 1mW, described controller is an EC controller, at described EC controller in described deep sleep mode (deep sleep mode), now, the power consumption of described EC controller is less than 1mW, and in the EC of described deep sleep controller, can not arouse voluntarily oneself, now need the extraneous Enable Pin pin to described EC controller to send a trigger pip, wake described EC up and control controller.
In specific implementation process, described power circuit has a processor, for constantly obtaining the current electric quantity value of described battery core in described first moment described first, described processor can be a small-sized single-chip microcomputer or simple logic gate array processor, for described processor which kind of processor specifically, the embodiment of the present application is not done concrete restriction.
After executing described step S101, just can perform step S102, that is: by described power circuit, judge whether described the first charge value is less than a default charge value;
In specific implementation process, described default charge value, is specially: the second charge value 3% to 8% between arbitrary charge value, described the second charge value be when described battery core Full Charge Capacity described in the charge value of battery core; Described default charge value can be: 3% charge value of described battery core Full Charge Capacity; or 5% charge value of described battery core Full Charge Capacity; 8% charge value of described battery core Full Charge Capacity; for described default charge value, specifically why be worth; the embodiment of the present application is not done concrete restriction; as long as meet the value of the requirement of method for managing power supply in the application, in the application's protection domain.
After executing described step S102, just can perform step S103, that is: when described the first charge value is less than described default charge value, the first interface by described power circuit sends the first instruction to described controller, and described the first instruction is used for waking up described controller;
In specific implementation process, described first interface also for: when described power module is connected with described electronic equipment, to described electronic equipment, send the first information, the described first information is for representing described power module and the information of described electronic equipment in connection status.
In the prior art, in notebook computer, there is the power module that can freely separate from described notebook computer more, in the power circuit of such power module, there is a pin A, identical with second effect of described first interface, when described power module is connected with described electronic equipment, to described electronic equipment, send the first information, the described first information is for representing described power module and the information of described electronic equipment in connection status.
In the embodiment of the present application, can utilize pin A described in the power circuit in existing notebook, as the circuit pin of described first interface, described first interface is connected with described EC controller.When the described processor in described power circuit is judged described the first charge value and is less than described default charge value, utilize the described first interface being connected with described processor, to described EC controller, send the first instruction, wake described EC controller up.
In specific implementation process, can arrange and enter before described deep sleep mode as described control EC, first the level of the pin of the described first interface being connected with described EC controller is drawn high, now the current potential at described first interface place is high level, and then described EC controller enters described deep sleep mode; The first instruction that described processor sends by described first interface is a low level signal; When described low level signal is the trigger pip that enables of described EC controller, when the current potential of the pin connecting in described first interface of described EC controller is dragged down, described EC controller is waken up, and carries out duty.
In specific implementation process, described first interface is connected with the universal input/output interface GPIO of described electronic equipment, by described universal input/output interface GPIO, described the first instruction is sent to described EC controller.
After executing described step S103, just can perform step S104, that is: described controller, after receiving described the first instruction, based on described the first instruction, switches to duty by the state of described controller from described sleep state.
In specific implementation process, when the triggering of described EC controller based on described the first instruction, enter after duty, described EC controller can be initiated the request for the current electric quantity value of battery core described in active inquiry to described power circuit, to reaffirm the current electric quantity value of described battery core.
At described controller, receiving after described the first instruction, based on described the first instruction, by the state of described controller, after described sleep state switches to duty, described method also comprises:
Described controller is based on described the first instruction; control described electronic equipment and enter low electric quantity protective state, wherein, described electronic equipment is in described low electric quantity protective state time; can at least to user, send low electric weight warning message, and storage in time needs the data of storage.
In specific implementation process; when described EC controller confirms that the current electric quantity value of described battery core is less than described default charge value; can control described electronic equipment and enter low electric quantity protective state; protection is at the hardware circuit of the described electronic equipment of low electric weight operation; and preserve in time the data that described electronic equipment is not preserved; to user, sending low electric weight reports to the police; user can be reported to the police based on this low electric weight; described battery core for described electronic equipment provides charging in time; or manually preserve in time the described data of not preserving that need preservation, and close in time described electronic equipment.
Should indicate: in the power module of main flow notebook now, all have a power circuit, the application just utilizes this power circuit herein, judge whether described the first charge value is less than a default charge value; When described the first charge value is less than described default charge value, the first interface by described power circuit sends the first instruction to described controller, and described the first instruction is used for waking up described controller; This shows, the embodiment of the present application is just in a processor of existing laptop circuit, introduced the application's described method for managing power supply, in fact not newly-increased other PCB circuit or RTC wake-up circuit, so solved in prior art and cannot, in the situation that additionally not increasing RTC wake-up circuit, wake the technical matters of the controller in deep sleep up.
Based on same inventive concept, the embodiment of the present application also provides following technical scheme:
As shown in Figure 2, a kind of power-supply management system, be applied in electronic equipment, wherein, described power-supply management system comprises a power module 201 and a controller 202, described power module 201 comprises again a battery core 2011 and a power circuit being connected with described battery core 2011, and described power circuit comprises:
First interface 2013, is arranged in described power circuit, for first constantly, when described electronic equipment is in holding state and described controller during in sleep state, obtains for representing that described battery core is at described first the first charge value constantly;
One processor 2012, for judging whether described the first charge value is less than a default charge value; When described the first charge value is less than described default charge value, to described controller, send the first instruction, described the first instruction is used for waking up described controller, described controller is after receiving described the first instruction, can, based on described the first instruction, the state of described controller be switched to duty from described sleep state.
Described sleep state, is specially: deep sleep, wherein, the power consumption of described controller when in described deep sleep is less than 1mW.
Described default charge value, is specially:
The second charge value 3% to 8% between arbitrary charge value, described the second charge value be when described battery core Full Charge Capacity described in the charge value of battery core.
Described power module 201 be one can separate from described electronic equipment module time, described first interface also for:
When described power module 201 is connected with described electronic equipment, to described electronic equipment, send the first information, the described first information is for representing described power module 201 and the information of described electronic equipment in connection status.
At described controller 202, receiving after described the first instruction, based on described the first instruction, by the state of described controller 202 after described sleep state switches to duty, described controller 202 also for:
Based on described the first instruction, control described electronic equipment and enter low electric quantity protective state, wherein, described electronic equipment in described low electric quantity protective state time, can at least send low electric weight warning message to user, and storage in time needs the data of storage.
The system that the power-supply management system of introducing due to the present embodiment adopts for implementing the method for power management in the embodiment of the present application, so method of the power management based on introducing in the embodiment of the present application, those skilled in the art can understand the present embodiment electronic equipment embodiment with and various version, so the method how realizing in the embodiment of the present application for this power-supply management system at this is introduced no longer in detail.As long as those skilled in the art implement the power-supply management system that in the embodiment of the present application, the method for power management adopts, all belong to the scope of the application institute wish protection.
Technical scheme in above-mentioned the embodiment of the present application, at least has following technique effect or advantage:
1, in the embodiment of the present application, by first constantly, when described electronic equipment is in holding state and described controller during in deep sleep, by described power circuit, obtain for representing that described battery core is at described first the first charge value constantly, by described power circuit, judge whether described the first charge value is less than a default charge value, when described the first charge value is less than described default charge value, the first interface by described power circuit sends the first instruction to described controller, and described the first instruction is used for waking up described controller, described controller is after receiving described the first instruction, based on described the first instruction, the state of described controller is switched to duty from described sleep state, and described first interface is that described electronic equipment is original in inform the data-interface that described power module has been connected with described electronic equipment to described electronic equipment, so do not need to increase extra PCB circuit, thereby, efficiently solving cannot be in the situation that additionally increasing PCB circuit in prior art, wake the technical matters of the controller in deep sleep up, realized at controller during in penetration depth sleep state (power consumption is less than 1mW), in the situation that additionally not increasing PCB circuit, can wake described controller up, further make described controller control the technique effect that described electronic equipment enters low electric quantity protective state.
2, in the embodiment of the present application, the power-supply management system of introducing is safe and reliable, and it is little to consume energy, so reduce the requirement to battery core.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect completely.And the present invention can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code one or more.
The present invention is with reference to describing according to process flow diagram and/or the block scheme of the method for the embodiment of the present invention, equipment (system) and computer program.Should understand can be in computer program instructions realization flow figure and/or block scheme each flow process and/or the flow process in square frame and process flow diagram and/or block scheme and/or the combination of square frame.Can provide these computer program instructions to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction of carrying out by the processor of computing machine or other programmable data processing device is produced for realizing the device in the function of flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computing machine or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame on computing machine or other programmable devices.
Although described the preferred embodiments of the present invention, once those skilled in the art obtain the basic creative concept of cicada, can make other change and modification to these embodiment.So claims are intended to all changes and the modification that are interpreted as comprising preferred embodiment and fall into the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.