CN105653380B - Control method and electronic equipment - Google Patents

Control method and electronic equipment Download PDF

Info

Publication number
CN105653380B
CN105653380B CN201410645292.4A CN201410645292A CN105653380B CN 105653380 B CN105653380 B CN 105653380B CN 201410645292 A CN201410645292 A CN 201410645292A CN 105653380 B CN105653380 B CN 105653380B
Authority
CN
China
Prior art keywords
management unit
battery management
judgment result
battery
yes
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
CN201410645292.4A
Other languages
Chinese (zh)
Other versions
CN105653380A (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 CN201410645292.4A priority Critical patent/CN105653380B/en
Publication of CN105653380A publication Critical patent/CN105653380A/en
Application granted granted Critical
Publication of CN105653380B publication Critical patent/CN105653380B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Secondary Cells (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a control method, which is applied to an electronic device, wherein the electronic device comprises a battery unit, a battery management unit connected with the battery unit and a system end controller connected with the battery management unit, and the method comprises the following steps: when the current working mode of the battery unit is in a working mode, the battery management unit turns on a controllable transistor in the electronic equipment; the battery management unit obtains at least one parameter information; based on the at least one parameter information, the battery management unit judges whether the current working mode of the battery unit needs to be adjusted from the working mode to a sleep mode, and obtains a first judgment result; when the first judgment result is yes, the battery management unit adjusts the current working mode of the battery unit from the working mode to the sleep mode, and turns off the controllable transistor.

Description

Control method and electronic equipment
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a control method and an electronic device.
Technical Field
With the popularization of electronic devices such as super PCs, tablet computers, smart phones and the like, users have higher and higher requirements for multi-performance of the electronic devices. The electronic equipment can be designed to be light and thin, so that the electronic equipment has excellent appearance characteristics, and better sensory experience is brought to users.
In the related art, in order to make an electronic device thinner and more fashionable, and also to increase the battery capacity as much as possible and to realize a very long standby of a battery, a battery system incorporating an electronic device may be used. Because the battery in the design of the built-in battery system can not be taken out of the system, and the battery often causes over-discharge due to leakage of electricity at the system end in the long-time transportation and storage processes of the electronic equipment, in addition, the over-discharge of the battery easily causes the expansion of a battery core and permanent damage.
In order to avoid the problem of over-discharge of the battery, the prior art often controls a controllable transistor (e.g., a field effect transistor) inside the battery by means of a system-side down command, so as to control the battery sleep mode. Currently, there are three main ways to control the controllable transistor inside the battery. Firstly, before the electronic equipment is shipped, a system turns on a controllable transistor in a battery at one time; secondly, a controllable transistor inside the battery is turned off through a command (such as 0x34 command) specified under the system; and thirdly, the controllable transistor in the battery is turned off through any communication command (such as an SMBUS or I2C communication command).
In the process of implementing the technical scheme in the embodiment of the present application, the inventor of the present application finds that at least the following technical problems exist in the prior art:
it can be known from the above description that if the system activates and turns on the controllable transistor inside the battery once only before shipment, after the user connects the product to the power adapter, the one-time locking sleep mode is permanently released, at this time, after the user uses the system for the first time, the system is easy to cause the problem of over-discharge of the battery due to long-time storage.
Disclosure of Invention
The embodiment of the application provides a control method and electronic equipment, which are used for solving the technical problem that the battery can not be turned off or turned on in time to cause over-discharge of the battery in the prior art, and the battery sleep mode can be turned on or turned off in time according to the actual working state of the battery, so that the battery is effectively protected, and the technical effect of over-discharge is avoided.
In one aspect, an embodiment of the present application provides a control method, which is applied to an electronic device, where the electronic device includes a battery unit, a battery management unit connected to the battery unit, and a system side controller connected to the battery management unit, and the method includes:
when the current working mode of the battery unit is in a working mode, the battery management unit turns on a controllable transistor in the electronic equipment;
the battery management unit obtains at least one parameter information;
based on the at least one parameter information, the battery management unit judges whether the current working mode of the battery unit needs to be adjusted from the working mode to a sleep mode, and obtains a first judgment result;
when the first judgment result is yes, the battery management unit adjusts the current working mode of the battery unit from the working mode to the sleep mode, and turns off the controllable transistor.
Optionally, the battery management unit obtains at least one parameter information, specifically:
the battery management unit obtains a first control instruction sent by the system-side controller.
Optionally, the determining, by the battery management unit, whether the current operating mode of the battery unit needs to be adjusted from the operating mode to a sleep mode based on the at least one parameter information, and obtaining a first determination result specifically includes:
the battery management unit judges whether the first control instruction is a preset control instruction or not, and obtains a second judgment result;
based on the second judgment result, the battery management unit judges whether the current working mode needs to be adjusted from the working mode to a sleep mode, and obtains a first judgment result;
when the second judgment result is yes, the first judgment result is yes, which indicates that the current working mode needs to be adjusted from the working mode to the sleep mode.
Optionally, when the first control instruction is the preset control instruction, the obtaining, by the battery management unit, the first control instruction sent by the system-side controller specifically includes:
the battery management unit obtains a first instruction sent by the system end controller and a first moment when the battery management unit executes the first instruction;
the battery management unit obtains a second instruction sent by the system end controller and a second moment when the battery management unit executes the second instruction;
and when a first time difference between the first time and the second time is smaller than a first preset time, the battery management unit receives the first control instruction sent by the system-side controller.
Optionally, when the first control instruction is specifically the preset control instruction, after the battery management unit obtains the first control instruction sent by the system-side controller, the method further includes:
the battery management unit executes the first control instruction to adjust a current switching state of the controllable transistor from a first state to a second state different from the first state;
the battery management unit judges whether the second state is a closed state or an open state, and obtains a third judgment result.
Optionally, when the third determination result indicates that the controllable transistor is in the on state, after the battery management unit determines whether the current operation mode needs to be adjusted from the operation mode to the sleep mode based on the second determination result, and obtains a first determination result, the method further includes:
when the first judgment result is negative, the battery management unit judges whether a first current capacity value of the battery unit at a third moment is smaller than a preset battery capacity or not, and a fourth judgment result is obtained;
and when the fourth judgment result is yes, executing a first timing command by a storage timer in the battery management unit to obtain a first timing duration value.
Optionally, after the storage timer in the battery management unit executes a timing command to obtain a first timing length value when the fourth determination result is yes, the method further includes:
the battery management unit detects and obtains a first current value of the battery unit at a fourth moment after the third moment;
the battery management unit judges whether the first current value is larger than a preset current value or not, and a fifth judgment result is obtained;
and when the fifth judgment result is yes, adjusting the first timing length value obtained by timing by the storage timer to be zero, and executing a second timing command different from the first timing command by the storage timer to obtain a second timing length value.
Optionally, after the battery management unit determines whether the first current value is greater than a preset current value, and obtains a fifth determination result, the method further includes:
when the fifth judgment result is negative, the storage timer judges whether the second timing duration value is larger than a preset timing duration value or not, and a sixth judgment result is obtained;
when the sixth judgment result is yes, the sixth judgment result is the first judgment result, which indicates that the current working mode needs to be adjusted from the working mode to the sleep mode.
Optionally, after the battery management unit adjusts the current operating mode of the battery unit from the operating mode to the sleep mode and turns off the controllable transistor when the first determination result is yes, the method further includes:
the system end controller judges whether the battery management unit is in a sleep mode or not, and a seventh judgment result is obtained;
when the seventh judgment result is yes, the battery management unit judges whether a preset communication command sent by the system side manager is received or not, and an eighth judgment result is obtained;
when the eighth determination result is yes, the battery management unit adjusts the current operating mode of the battery unit from the sleep mode to the operating mode, and controls the controllable transistor to be in the on state.
Optionally, after the battery management unit adjusts the current operating mode of the battery unit from the operating mode to the sleep mode and turns off the controllable transistor when the first determination result is yes, the method further includes:
the battery management unit judges whether an unlocking instruction sent by the system end controller is received or not, and a ninth judgment result is obtained;
when the ninth determination result is yes, the battery management unit adjusts the current operation mode of the battery unit from the sleep mode to the operation mode, and controls the controllable transistor to be in the on state.
Optionally, the battery management determines whether an unlocking instruction sent by the system-side controller is received, and obtains a ninth determination result, which specifically includes:
the battery management unit obtains a third instruction sent by the system end controller and a fifth moment for executing the third instruction;
the battery management unit obtains a fourth instruction sent by the system end controller and a sixth moment for executing the fourth instruction;
judging whether a second time difference between the fifth time and the sixth time is smaller than the first preset time to obtain a tenth judgment result;
based on the tenth judgment result, the battery management unit judges whether an unlocking instruction sent by the system end controller is received or not, and a ninth judgment result is obtained;
when the tenth determination result is yes, the ninth determination result indicates that the battery management unit receives the unlocking instruction sent by the system side controller.
Optionally, the determining, by the system-side controller, whether the battery management unit is in the sleep mode to obtain a seventh determination result includes:
the battery management unit detects and obtains a second current value of the battery unit at a fifth moment;
the battery management unit judges whether the second current value is larger than the preset current value or not, and an eleventh judgment result is obtained;
the battery management unit judges whether a communication command exists between the battery management unit and the system end controller or not, and a twelfth judgment result is obtained;
when the eleventh judgment result and the twelfth judgment result are yes, the storage timer executes a third timing command to obtain a third timing length value, and judges whether the third timing length value is greater than a second preset time value or not to obtain a thirteenth judgment result;
based on the eleventh judgment result and the thirteenth judgment result, the system side controller judges whether the battery management unit is in a sleep mode, and obtains a seventh judgment result;
when the eleventh judgment result and the thirteenth judgment result are both yes, the seventh judgment result is yes, and the battery management unit is in the sleep mode.
On the other hand, an embodiment of the present application further provides an electronic device, including:
a controllable transistor;
a battery cell, wherein the controllable transistor is in an on state when the battery cell is in an operating mode;
a battery management unit connected to the battery unit;
the system end controller is connected with the battery management unit;
when the current working mode of the battery unit is in the working mode, the battery management unit is used for obtaining at least one parameter information; and judging whether the current working mode of the battery unit needs to be adjusted from the working mode to a sleep mode or not based on the at least one parameter information, and obtaining a first judgment result; and when the first judgment result is yes, adjusting the current working mode of the battery unit from the working mode to the sleep mode, and controlling the controllable transistor to be in a closing state different from the opening state.
Optionally, the battery management unit is specifically configured to obtain the first control instruction sent by the system-side controller when the current operating mode of the battery unit is in the operating mode.
Optionally, the battery management unit is further specifically configured to determine whether the first control instruction is a preset control instruction, and obtain a second determination result; judging whether the current working mode needs to be adjusted from the working mode to the sleep mode or not based on the second judgment result to obtain a first judgment result; when the second judgment result is yes, the first judgment result is yes, which indicates that the current working mode needs to be adjusted from the working mode to the sleep mode.
Optionally, the battery management unit is further specifically configured to obtain a first instruction sent by the system-side controller when the first control instruction is the preset control instruction, and a first time when the battery management unit executes the first instruction; the second instruction sent by the system end controller is obtained, and the second moment when the second instruction is executed by the battery management unit is obtained; and when a first time difference between the first time and the second time is smaller than a first preset time, the battery management unit receives the first control instruction sent by the system-side controller.
Optionally, the battery management unit is further configured to execute the first control instruction to adjust a current switching state of the controllable transistor from a first state to a second state different from the first state; and judging whether the second state is the closed state or the open state to obtain a third judgment result.
Optionally, the battery management unit is further configured to, when the first determination result is negative, determine whether a first current capacity value of the battery unit at a third time is smaller than a preset battery capacity by the battery management unit, and obtain a fourth determination result; and the controller is used for controlling the storage timer to execute a first timing command to obtain a first timing duration value when the fourth judgment result is yes.
Optionally, the battery management unit is further configured to detect and obtain a first current value of the battery unit at a fourth time after the third time; judging whether the first current value is larger than a preset current value or not, and obtaining a fifth judgment result; and when the fifth judgment result is yes, adjusting the first timing length value obtained by timing of the storage timer to be zero, and executing a second timing command different from the first timing command by the storage timer to obtain a second timing length value.
Optionally, the battery management unit is further configured to determine, when the fifth determination result is negative, whether the second timing duration value is greater than a preset timing duration value, and obtain a sixth determination result; when the sixth judgment result is yes, the sixth judgment result is the first judgment result, which indicates that the current working mode needs to be adjusted from the working mode to the sleep mode.
Optionally, the system-side controller is configured to determine whether the battery management unit is in a sleep mode, and obtain a seventh determination result; the battery management unit is used for judging whether a preset communication command sent by the system end manager is received or not when the seventh judgment result is yes, and obtaining an eighth judgment result; and when the eighth judgment result is yes, adjusting the current working mode of the battery unit from the sleep mode to the working mode, and controlling the controllable transistor to be in the on state.
Optionally, the battery management unit is further configured to determine whether an unlocking instruction sent by the system-side controller is received, and obtain a ninth determination result; and a control unit configured to adjust the current operation mode of the battery cell from the sleep mode to the operation mode and control the controllable transistor to be in the on state when the ninth determination result is yes.
Optionally, the battery management unit is further specifically configured to obtain a third instruction sent by the system-side controller, and execute a fifth time of the third instruction; and a sixth moment for obtaining a fourth instruction sent by the system-side controller and executing the fourth instruction; and the time difference judging unit is used for judging whether a second time difference between the fifth time and the sixth time is less than the first preset time to obtain a tenth judgment result; judging whether an unlocking instruction sent by the system end controller is received or not based on the tenth judgment result to obtain a ninth judgment result; when the tenth determination result is yes, the ninth determination result indicates that the battery management unit receives the unlocking instruction sent by the system side controller.
Optionally, the battery management unit is further specifically configured to detect and obtain a second current value of the battery unit at a fifth time; judging whether the second current value is larger than the preset current value or not to obtain an eleventh judgment result; judging whether a communication command exists between the battery management unit and the system end controller or not, and obtaining a twelfth judgment result; when the eleventh judgment result and the twelfth judgment result are yes, the storage timer executes a third timing command to obtain a third timing length value, and judges whether the third timing length value is greater than a second preset time value or not to obtain a thirteenth judgment result; the system-side controller is further specifically configured to determine whether the battery management unit is in a sleep mode based on the eleventh determination result and the thirteenth determination result, and obtain a seventh determination result; when the eleventh judgment result and the thirteenth judgment result are both yes, the seventh judgment result is yes, and the battery management unit is in the sleep mode.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
in the technical solution of the embodiment of the present application, before the shipment of the battery, when the remaining capacity ratio of the battery is 40% to 60%, a specific activation instruction is sent to the battery management unit through the system-side controller, for example: 0x34 activates the command, which puts the battery in sleep mode and the controllable transistor in off state. When the battery is in a normal working mode, the controllable transistor is in an open state, the storage timer responds to a timing command when the battery management unit is in a sleep mode and the remaining capacity ratio of the battery is less than 50%, the timing is reset when the battery management unit detects that the current value of the battery is greater than a preset current value (usually related to leakage current of a system under different bodies) during the timing period, otherwise, the timing is continued, when the accumulated timing reaches a set value (usually set according to actual needs of a user), the battery management unit automatically enters the sleep mode, and the controllable transistor is in a close state. In addition, under the condition that the battery management unit enters the sleep mode, the system-side controller and the battery management unit can release the sleep mode of the battery management unit as long as any communication command exists between the system-side controller and the battery management unit, or the system-side controller can release the sleep mode of the battery management unit through a special unlocking command regardless of whether the battery management unit enters the sleep mode, such as: the 0x34 unlock command deactivates the battery management unit sleep mode, which, once deactivated, controls the controllable transistor to be in an off state. That is to say, the shutdown or the startup of the battery sleep mode can be continuously realized by turning on or off the controllable transistor inside the battery through at least one parameter information according to the actual working state of the battery, so that the battery sleep mode can be timely turned on or off according to the actual working state of the battery, the battery is effectively protected, and the technical effect of over-discharge is avoided.
In the technical solution of the embodiment of the present application, under the condition that the battery management unit enters the sleep mode, as long as there is any communication command between the system side controller and the battery management unit, the sleep mode of the battery management unit can be released, or whether the battery management unit enters the sleep mode, the system side controller can unlock the battery management unit through a special unlocking command, such as: the 0x34 unlock command deactivates the battery management unit sleep mode, which, once deactivated, controls the controllable transistor to be in an off state. If the sleep mode is simply set to be contacted by any communication command, the requirements of production line tests cannot be met, the production line requires to activate the sleep mode of the battery first and keep accessing the AC adapter in the test process, and at the moment, the system end controller continuously communicates with the battery, but the sleep mode of the battery cannot be released. After the sleep mode is activated on the production line, once the electronic device is connected to the alternating current adapter, only a specific 0x34 unlocking command can release the sleep mode of the battery, and other normal communication commands cannot release the sleep mode. After the electronic equipment is tested on a production line, the alternating current adapter is usually unplugged when the electronic equipment is delivered, and the battery can still be ensured to be in a sleep mode at the moment. When the battery is delivered in the sleep mode, the battery management unit can meet the condition of entering the sleep mode, and when the user accesses the electronic device into the alternating current adapter, the sleep mode of the battery can be released due to any communication command (such as SMBUS or I2C communication command) from the system side controller. Through the technical scheme of this application promptly, effectively avoided the risk that the system end controller can't give out complete accurate specific 0x34 unblock order and bring and can't withdraw from sleep mode because of the trouble, so, can enough satisfy the requirement of production line high efficiency production, improved the slow-witted performance of preventing of design again, effectively avoided the technological effect of the risk that battery sleep mode can't in time be relieved.
Drawings
Fig. 1 is a flowchart of a control method according to an embodiment of the present application;
fig. 2 is a flowchart of step S103 in a control method according to an embodiment of the present application;
fig. 3 is a flowchart of step S102 in a control method according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating steps included after step S102 in a control method according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating steps included after step S202 in a control method according to an embodiment of the present application;
fig. 6 is a first flowchart of steps included after step S305 in a control method according to an embodiment of the present application;
fig. 7 is a flowchart of step S401 in a control method according to an embodiment of the present application;
FIG. 8 is a second flowchart illustrating steps included after step S305 in a control method according to an embodiment of the present application;
fig. 9 is a flowchart of step S501 in a control method according to an embodiment of the present application;
fig. 10 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides a control method and electronic equipment, which are used for solving the technical problem that the battery can not be turned off or turned on in time to cause over-discharge of the battery in the prior art, and the battery sleep mode can be turned on or turned off in time according to the actual working state of the battery, so that the battery is effectively protected, and the technical effect of over-discharge is avoided.
In order to solve the technical problems, the general idea of the embodiment of the present application is as follows:
a control method is applied to an electronic device, the electronic device comprises a battery unit, a battery management unit connected with the battery unit and a system side controller connected with the battery management unit, and the method comprises the following steps:
when the current working mode of the battery unit is in a working mode, the battery management unit turns on a controllable transistor in the electronic equipment;
the battery management unit obtains at least one parameter information;
based on the at least one parameter information, the battery management unit judges whether the current working mode of the battery unit needs to be adjusted from the working mode to a sleep mode, and obtains a first judgment result;
when the first judgment result is yes, the battery management unit adjusts the current working mode of the battery unit from the working mode to the sleep mode, and turns off the controllable transistor.
In the above technical solution, before the shipment of the battery, when the remaining capacity ratio of the battery is 40% to 60%, the system-side controller sends a specific activation command to the battery management unit, such as: 0x34 activates the command, which puts the battery in sleep mode and the controllable transistor in off state. When the battery is in a normal working mode, the controllable transistor is in an open state, the storage timer responds to a timing command when the battery management unit is in a sleep mode and the remaining capacity ratio of the battery is less than 50%, the timing is reset when the battery management unit detects that the current value of the battery is greater than a preset current value (usually related to leakage current of a system under different bodies) during the timing period, otherwise, the timing is continued, when the accumulated timing reaches a set value (usually set according to actual needs of a user), the battery management unit automatically enters the sleep mode, and the controllable transistor is in a close state. In addition, under the condition that the battery management unit enters the sleep mode, the system-side controller and the battery management unit can release the sleep mode of the battery management unit as long as any communication command exists between the system-side controller and the battery management unit, or the system-side controller can release the sleep mode of the battery management unit through a special unlocking command regardless of whether the battery management unit enters the sleep mode, such as: the 0x34 unlock command deactivates the battery management unit sleep mode, which, once deactivated, controls the controllable transistor to be in an off state. That is to say, the shutdown or the startup of the battery sleep mode can be continuously realized by turning on or off the controllable transistor inside the battery through at least one parameter information according to the actual working state of the battery, so that the battery sleep mode can be timely turned on or off according to the actual working state of the battery, the battery is effectively protected, and the technical effect of over-discharge is avoided.
In order to better understand the technical solutions, the technical solutions of the present invention are described in detail below with reference to the drawings and specific embodiments, and it should be understood that the specific features in the embodiments and examples of the present invention are detailed descriptions of the technical solutions of the present invention, and are not limitations of the technical solutions of the present invention, and the technical features in the embodiments and examples of the present invention may be combined with each other without conflict.
According to an embodiment of the present application, a control method and an electronic device are provided, where the electronic device may be a tablet computer, a super PC, a smart phone, or other electronic devices, which are not necessarily exemplified herein. The following describes in detail a specific implementation process of the control method in the embodiment of the present application, taking an electronic device as a tablet computer as an example.
Referring to fig. 1, an embodiment of the present application provides a control method applied in an electronic device, where the electronic device includes a battery unit, a battery management unit connected to the battery unit, and a system-side controller connected to the battery management unit, and specifically, the control method in the embodiment of the present application includes:
s101: when the current working mode of the battery unit is in a working mode, the battery management unit turns on a controllable transistor in the electronic equipment;
s102: the battery management unit obtains at least one parameter information;
s103: based on the at least one parameter information, the battery management unit judges whether the current working mode of the battery unit needs to be adjusted from the working mode to a sleep mode, and obtains a first judgment result;
s104: when the first judgment result is yes, the battery management unit adjusts the current working mode of the battery unit from the working mode to the sleep mode, and turns off the controllable transistor.
In the embodiment of the present application, step S102 is specifically implemented as: the battery management unit obtains a first control instruction sent by the system-side controller.
In the embodiment of the application, taking the electronic device as the tablet computer as an example, in order to adjust the working mode of the battery unit at any time according to the working condition of the tablet computer, a command needs to be issued to the battery management unit through the system-side controller, so as to realize the timely control of the working mode of the battery unit. Such as: when the built-in battery unit of the tablet computer is in the working mode, the system side controller of the tablet computer starts to issue a command to the battery management unit bmu (battery management unit) IC, and further controls the on/off of the controllable transistor in the battery unit, where the controllable transistor may be: field effect transistors or metal oxide semiconductor field effect transistors, etc., are not necessarily exemplified herein.
In the embodiment of the present application, after obtaining the first control instruction through step S102, step S103 is executed, that is, based on the at least one parameter information, the battery management unit determines whether the current operating mode of the battery unit needs to be adjusted from the operating mode to the sleep mode, and obtains a first determination result.
In a specific implementation process, referring to fig. 2, the implementation process of step S103 is as follows:
s1031: the battery management unit judges whether the first control instruction is a preset control instruction or not, and obtains a second judgment result;
s1032: based on the second judgment result, the battery management unit judges whether the current working mode needs to be adjusted from the working mode to a sleep mode, and obtains a first judgment result;
when the second judgment result is yes, the first judgment result is yes, which indicates that the current working mode needs to be adjusted from the working mode to the sleep mode.
For step S103, in the embodiment of the present application, the specific implementation process is as follows:
the first control instruction sent by the system-side controller obtained at the battery management unit may be a specific 0x34 control instruction, but may also be an SMBUS communication command, or may also be an I2C communication command. At this time, it is necessary to determine whether the first control instruction is a preset control instruction, and obtain a corresponding determination result. And further determining whether to adjust the battery unit of the tablet computer from the working mode to the sleep mode based on the judgment result. Such as: when a specific 0x34 control instruction is set as a preset control instruction of a system-side controller, if a first control instruction is a specific 0x34 control instruction, a judgment result indicates that the battery unit of the tablet computer needs to be adjusted from the working mode to the sleep mode; if the first control instruction is the SMBUS communication instruction, the judgment result indicates that the battery unit of the tablet computer does not need to be adjusted from the working mode to the sleep mode.
When the judgment result shows that the battery unit of the tablet computer needs to be adjusted from the working mode to the sleep mode, the battery management unit controls the controllable transistor to be in the off state, and the working state of the battery unit is adjusted to the sleep mode; when the judgment result shows that the battery unit of the tablet computer does not need to be adjusted from the working mode to the sleep mode, the battery management unit controls the controllable transistor to be in the on state, and therefore the working state of the battery unit is adjusted to the working mode.
In the embodiment of the present application, the controllable transistor is specifically a discharging field effect transistor, and in the implementation process, a person skilled in the art may also use a field effect transistor, a semiconductor field effect transistor, and the like, which is not exemplified herein.
In this embodiment of the application, when it is determined that the first control instruction is the preset control instruction in step S1031, please refer to fig. 3, and the implementation process of step S102 is as follows:
s1021: the battery management unit obtains a first instruction sent by the system end controller and a first moment when the battery management unit executes the first instruction;
s1022: the battery management unit obtains a second instruction sent by the system end controller and a second moment when the battery management unit executes the second instruction;
and when a first time difference between the first time and the second time is smaller than a first preset time, the battery management unit receives the first control instruction sent by the system-side controller.
For step S1021 and step S1022, in the embodiment of the present application, the specific implementation process is as follows:
in this embodiment, taking the electronic device as a tablet computer as an example, when the write register of the battery management unit obtains the first instruction sent by the system-side controller, the first instruction is executed, and a time when the first instruction is executed is taken as a first time. And the system end controller continuously sends the second instruction to a write register of the battery management unit, and at the moment, the moment of executing the second instruction is the second moment. Such as: the first instruction is specifically "0 x 0000", the second instruction is specifically "0 x 1000", when the system side controller sends the "0 x 0000" instruction to the battery management unit, the battery management unit executes the "0 x 0000" instruction, a time of executing the "0 x 0000" instruction at this time is a first time, further, the system side controller continues to send the "0 x 1000" instruction to the battery management unit, the battery management unit executes the "0 x 1000" instruction, and a time of executing the "0 x 0000" instruction at this time is a second time. When the first time difference between the first time and the second time is smaller than the first preset time, the battery management unit receives a first control instruction sent by the system-side controller. Such as: when the time difference between the first time and the second time is 3 seconds and the first preset time is 5 seconds, the battery management unit receives a first control command, where the first control command is specifically a specific 0x34 control command, indicating that it is necessary to continuously write two data (e.g., 0x0000, 0x1000) to the register of the battery management unit, and there is no other command between the two data and the interval time between the two commands is less than the first preset time (e.g., 5 seconds), the battery management unit receives the first control command sent by the system side, indicating that it is necessary to adjust the battery unit of the tablet computer from the operating mode to the sleep mode, so that the first control command activates the sleep mode control command for the specific 0x 34.
In this embodiment of the application, in step S102, the first control instruction is specifically the preset control instruction, and after the battery management unit obtains the first control instruction sent by the system-side controller, please refer to fig. 4, where the method according to this embodiment of the application further includes:
s201: the battery management unit executes the first control instruction to adjust a current switching state of the controllable transistor from a first state to a second state different from the first state;
s202: the battery management unit judges whether the second state is a closed state or an open state, and obtains a third judgment result.
In the embodiment of the present application, the electronic device is taken as a tablet computer as an example. For example, when the preset control instruction is a specific 0x34 instruction, and the first control instruction is specifically the preset control instruction, the specific implementation process for step S201 and step S202 is as follows:
when the preset control command is a specific 0x34 control command, if the system-side controller sends a specific 0x34 control command to the battery management unit, the battery management unit executes the specific 0x34 control command, further controls the on-off state of the discharging field effect transistor of the battery unit to be adjusted from the original on-state to the off-state, and then the battery management unit obtains a judgment result by judging the on-off state of the discharging field effect transistor at the moment. If the system end controller sends an SMBUS communication instruction to the battery management unit, the battery management unit executes the SMBUS communication instruction, and at the moment, the switching state of the discharging field effect tube is still in an opening state. And judging whether the SMBUS communication instruction is a preset control instruction or not, so that whether the current working mode of the battery unit of the tablet computer needs to be adjusted or not can be obtained, and a judgment result is obtained.
In the embodiment of the present application, after obtaining the on state of the controllable transistor in step S202, referring to fig. 5, the method of the embodiment of the present application further includes:
s301: when the first judgment result is negative, the battery management unit judges whether a first current capacity value of the battery unit at a third moment is smaller than a preset battery capacity or not, and a fourth judgment result is obtained;
s302: and when the fourth judgment result is yes, executing a first timing command by a storage timer in the battery management unit to obtain a first timing duration value.
After step S302, the following steps are performed:
s303: the battery management unit detects and obtains a first current value of the battery unit at a fourth moment after the third moment;
s304: the battery management unit judges whether the first current value is larger than a preset current value or not, and a fifth judgment result is obtained;
s305: and when the fifth judgment result is yes, adjusting the first timing length value obtained by timing by the storage timer to be zero, and executing a second timing command different from the first timing command by the storage timer to obtain a second timing length value.
After obtaining the fifth determination result in step S304, the method according to the embodiment of the present application further includes:
s306: and when the fifth judgment result is negative, the storage timer judges whether the second timing duration value is greater than a preset timing duration value or not, and a sixth judgment result is obtained.
When the sixth judgment result is yes, the sixth judgment result is the first judgment result, which indicates that the current working mode needs to be adjusted from the working mode to the sleep mode.
The following will continue to use the example in which the electronic device is a tablet computer, and describe a specific implementation process of steps S301 to S305:
when the current discharging field effect transistor of the battery unit of the tablet computer is in an on state, that is, the battery unit of the tablet computer is in an external discharging working mode, at this time, although the battery management unit does not need to adjust the battery unit from the current working mode to the sleep mode, the battery management unit determines whether the first current capacity value of the battery unit at the third moment is smaller than a preset battery capacity, and obtains a fourth determination result. Such as setting a predetermined battery capacity to a relative residual capacity ratio of fifty percent of the total battery capacity. Since the capacity of the battery unit decreases with the increase of the operating time of the battery unit of the tablet computer, the relative remaining capacity ratio also decreases until the relative remaining capacity ratio of the battery unit is less than fifty percent, and the storage timer in the battery management unit executes the first timing command to obtain the first timing length value while the battery management unit is in the sleep mode. For example, a memory timer in the battery management unit starts counting from zero. Then, the battery management unit detects and obtains a first current value of the battery unit of the tablet computer at a fourth moment after the third moment. For example, the first current value of the battery unit is 7mA obtained through real-time detection. And judging whether the first current value 7mA is larger than a preset current value or not, and obtaining a corresponding judgment result. For example, the preset current value is 5mA, and at this time, the judgment result indicates that the first timing length value obtained by timing by the storage timer needs to be adjusted to zero, that is, the storage timer will start timing from zero. Then, the storage timer executes the second timing command to obtain a second timing length value. And when the detected current value is smaller than the preset current value, the timing command is not changed any more, and the storage timer continues to accumulate and time. The preset current value is generally 5mA, the preset current value is related to leakage current of the system in different states, if the system works (including a standby state), the current is larger than 10mA, the leakage current is smaller than 3mA when the system is shut down, the preset current value is set to 5mA, the sleep mode is not mistakenly triggered when the system normally works, and the system can automatically enter the sleep mode when the system is shut down and stored for a long time, so that energy consumption is reduced, and meanwhile, the probability of over-discharge of a battery is also reduced. When the detected current value is smaller than the preset current value, the battery management unit judges whether the second timing duration value is larger than a preset timing duration value or not, and obtains a corresponding judgment result. And when the second timing duration value is greater than the preset duration value, indicating that the battery unit needs to be adjusted from the current working mode to the sleep mode. For example, the preset duration value is two weeks, and when the accumulated timing time of the storage timer is three weeks, the battery management unit will automatically activate the sleep mode of the battery and turn off the discharging fet.
Referring to fig. 6, after the battery unit is in the sleep mode in step S305, the method of the embodiment of the present application further includes:
s401: the battery management unit judges whether an unlocking instruction sent by the system end controller is received or not, and a ninth judgment result is obtained;
s402: when the ninth determination result is yes, the battery management unit adjusts the current operation mode of the battery unit from the sleep mode to the operation mode, and controls the controllable transistor to be in the on state.
In the embodiment of the present application, please refer to fig. 7, the implementation process of step S401 is as follows:
s4011: the battery management unit obtains a third instruction sent by the system end controller and a fifth moment for executing the third instruction;
s4012: the battery management unit obtains a fourth instruction sent by the system end controller and a sixth moment for executing the fourth instruction;
s4013: judging whether a second time difference between the fifth time and the sixth time is smaller than the first preset time to obtain a tenth judgment result;
s4014: based on the tenth judgment result, the battery management unit judges whether an unlocking instruction sent by the system end controller is received or not, and a ninth judgment result is obtained;
when the tenth determination result is yes, the ninth determination result indicates that the battery management unit receives the unlocking instruction sent by the system side controller.
In the embodiment of the present application, the specific implementation process from step S401 to step S402 is as follows:
continuing with the example where the electronic device is a tablet computer, when the battery management unit of the tablet computer obtains a third instruction sent by the system-side controller, for example, the system-side controller writes "0 x 2000" data to the battery management unit, the battery management unit responds to and executes the third instruction. Further, the timing of executing the write data "0 x 2000" instruction is the fifth timing. Then, the system-side controller continues to write data "0 x 4000" to the battery management unit, and the battery management unit responds to and executes the instruction. The time when the write data "0 x 4000" instruction is executed is the sixth time. Further, whether a second time difference between the fifth time and the sixth time is smaller than a first preset time length is judged, and a corresponding judgment result is obtained. For example, the first preset time period may be set to 5 seconds (set in a normal actual situation), and when the write data "0 x 2000" instruction and the write data "0 x 4000" instruction are executed, the time difference between the two instructions is 4 seconds, which indicates that the time difference is smaller than the first preset time period. Further, based on the obtained judgment result, the battery management unit judges whether an unlocking instruction sent by the system-side controller is received or not, and obtains a corresponding judgment result. For example, when the system-side controller sends a specific 0x34 release sleep mode command, it is satisfied that there is no other command between the two commands when the write data "0 x 2000" command and the write data "0 x 4000" command are executed, and the time difference between the two commands is less than the first preset time length, which indicates that the battery management unit receives the unlock command sent by the system-side controller, e.g., the specific 0x34 release sleep mode command. Furthermore, the battery management unit adjusts the battery unit from the current sleep mode to the normal working mode, and meanwhile, the discharging field effect transistor is adjusted from the original closed state to the open state, so that the battery unit realizes external discharging.
Referring to fig. 8, after the battery unit is in the sleep mode in step S305, the method of the embodiment of the present application further includes:
s501: the system end controller judges whether the battery management unit is in a sleep mode or not, and a seventh judgment result is obtained;
s502: when the seventh judgment result is yes, the battery management unit judges whether a preset communication command sent by the system side manager is received or not, and an eighth judgment result is obtained;
s503: when the eighth determination result is yes, the battery management unit adjusts the current operating mode of the battery unit from the sleep mode to the operating mode, and controls the controllable transistor to be in the on state.
The following description continues with the example in which the electronic device is a tablet computer, and the specific implementation process of step S501 and S503 is as follows:
when the battery unit of the tablet computer is in the sleep mode, the system side controller judges whether the battery management unit is in the sleep mode or not, and obtains a corresponding judgment result. When the battery management unit is in the sleep mode, the battery management unit continuously judges whether a preset communication command sent by the system end controller is received or not, and a corresponding judgment result is obtained. When the battery management unit receives a preset communication command sent by the system-side controller, the judgment result shows that the battery management unit adjusts the current working mode of the battery unit from the sleep mode to the working mode and controls the controllable transistor to be in the on state. For example, the battery management unit receives an SMBUS communication command sent by the system-side controller, and at this time, if the preset communication command is the SMBUS communication command, the determination result indicates that the battery unit receives the preset communication command sent by the system-side controller, and the battery management unit adjusts the current working mode of the battery unit from the sleep mode to the working mode and controls the controllable transistor to be in the on state. If the battery management unit receives an I2C communication command sent by the system end controller, the preset communication command is an I2C communication command, the judgment result shows that the battery unit receives the preset communication command sent by the system end controller, the battery management unit adjusts the current working mode of the battery unit from the sleep mode to the working mode, and meanwhile, the controllable transistor is controlled to be in the on state. That is, when the battery management unit receives any communication command from the system-side controller while the battery management unit is in the sleep mode, the battery management unit wakes up from the sleep mode, and releases the sleep mode of the battery unit, and further adjusts the on-off state of the discharging FET to an off state, in which the battery unit is not discharged. In addition, when the current value of the battery unit of the tablet computer is greater than 5mA while maintaining the current value of the satisfied condition for more than 100 seconds, or the battery management unit receives any communication command from the system-side controller, or the current value is greater than 250mA while maintaining the current value of the satisfied condition for more than 1 second, and so on, the battery management unit will exit the sleep mode, which is not to be taken as an example.
In the embodiment of the present application, please refer to fig. 9, the implementation process of step S501 is as follows:
s5011: the battery management unit detects and obtains a second current value of the battery unit at a fifth moment;
s5012: the battery management unit judges whether the second current value is larger than the preset current value or not, and an eleventh judgment result is obtained;
s5013: the battery management unit judges whether a communication command exists between the battery management unit and the system end controller or not, and a twelfth judgment result is obtained;
s5014: when the eleventh judgment result and the twelfth judgment result are yes, the storage timer executes a third timing command to obtain a third timing length value, and judges whether the third timing length value is greater than a second preset time value or not to obtain a thirteenth judgment result;
s5015: based on the eleventh judgment result and the thirteenth judgment result, the system side controller judges whether the battery management unit is in a sleep mode, and obtains a seventh judgment result;
when the eleventh judgment result and the thirteenth judgment result are both yes, the seventh judgment result is yes, and the battery management unit is in the sleep mode.
In the embodiment of the present application, step S501 is mainly to determine whether the battery management unit is in the sleep mode, where the specific implementation processes of step S5011 to step S5014 are as follows:
when the battery unit of the tablet computer is in the sleep mode, and simultaneously when the battery management unit is in the sleep mode, the battery management unit detects and obtains a second current value of the battery unit at a fifth moment, for example, the second current value may be 8mA or 2 mA. Further, whether a communication command exists between the battery management unit and the system side controller is judged, wherein the communication command is an SMBUS communication command or an I2C communication command, and a corresponding judgment result is obtained. If the preset current value is 5mA, the second current value is 7mA, and meanwhile, an SMBUS communication command exists between the battery management unit and the system end controller, at the moment, the storage timer executes a third timing command to obtain a third timing length value, and further, whether the third timing length value is larger than the second preset time value or not is judged, and a corresponding judgment result is obtained. And when the third timing length value is greater than the second preset time, the system end controller judges whether the battery management unit is in the sleep mode or not, and obtains a corresponding judgment result. For example, the second preset time value is 20 seconds (the preset time value may be set according to actual conditions), and when the third timing length value obtained by the storage timer is 21 seconds, the determination result indicates that the battery management unit is in the sleep mode. If the third timing length value obtained by the storage timer is 18 seconds, the determination result indicates that the battery management unit is not in the sleep mode.
Referring to fig. 10, an embodiment of the present application provides an electronic device, including:
a controllable transistor 10;
a battery unit 11, wherein the controllable transistor is in an on state when the battery unit is in an operating mode;
a battery management unit 12 connected to the battery unit 11;
a system-side controller 13 connected to the battery management unit 12;
when the current operating mode of the battery unit 11 is in the operating mode, the battery management unit 12 is configured to obtain at least one parameter information; and determining whether the current operating mode of the battery unit 11 needs to be adjusted from the operating mode to a sleep mode based on the at least one parameter information, and obtaining a first determination result; and when the first determination result is yes, adjusting the current operating mode of the battery unit 11 from the operating mode to the sleep mode, and controlling the controllable transistor 10 to be in an off state different from the on state.
Optionally, the battery management unit 12 is specifically configured to obtain the first control instruction sent by the system-side controller 13 when the current operating mode of the battery unit 11 is in the operating mode.
Optionally, the battery management unit 12 is further specifically configured to determine whether the first control instruction is a preset control instruction, and obtain a second determination result; judging whether the current working mode needs to be adjusted from the working mode to the sleep mode or not based on the second judgment result to obtain a first judgment result; when the second judgment result is yes, the first judgment result is yes, which indicates that the current working mode needs to be adjusted from the working mode to the sleep mode.
Optionally, the battery management unit 12 is further specifically configured to, when the first control instruction is the preset control instruction, obtain a first instruction sent by the system-side controller, and a first time when the battery management unit 12 executes the first instruction; and obtaining a second instruction sent by the system-side controller 13 and a second time when the second instruction is executed by the battery management unit 12; when a first time difference between the first time and the second time is smaller than a first preset time, the battery management unit 12 receives the first control instruction sent by the system-side controller.
Optionally, the battery management unit 12 is further configured to execute the first control instruction to adjust the current switching state of the controllable transistor from a first state to a second state different from the first state; and judging whether the second state is the closed state or the open state to obtain a third judgment result.
Optionally, the battery management unit 12 is further configured to, when the first determination result is negative, determine, by the battery management unit 12, whether a first current capacity value of the battery unit 11 at the third time is smaller than a preset battery capacity, and obtain a fourth determination result; and the controller is used for controlling the storage timer to execute a first timing command to obtain a first timing duration value when the fourth judgment result is yes.
Optionally, the battery management unit 12 is further configured to detect and obtain a first current value of the battery unit 11 at a fourth time after the third time; judging whether the first current value is larger than a preset current value or not, and obtaining a fifth judgment result; and when the fifth judgment result is yes, adjusting the first timing length value obtained by timing of the storage timer to be zero, and executing a second timing command different from the first timing command by the storage timer to obtain a second timing length value.
Optionally, the battery management unit 12 is further configured to, when the fifth determination result is negative, determine whether the second timing length value is greater than a preset timing length value, and obtain a sixth determination result; when the sixth judgment result is yes, the sixth judgment result is the first judgment result, which indicates that the current working mode needs to be adjusted from the working mode to the sleep mode.
Optionally, the system-side controller 13 is configured to determine whether the battery management unit 12 is in a sleep mode, and obtain a seventh determination result; the battery management unit 12 is configured to, when the seventh determination result is yes, determine whether a preset communication command sent by the system side manager is received, and obtain an eighth determination result; and when the eighth determination result is yes, adjusting the current operating mode of the battery unit 11 from the sleep mode to the operating mode, and controlling the controllable transistor to be in the on state.
Optionally, the battery management unit 12 is further configured to determine whether an unlocking instruction sent by the system-side controller 13 is received, so as to obtain a ninth determination result; and when the ninth determination result is yes, adjusting the current operation mode of the battery cell 11 from the sleep mode to the operation mode, and controlling the controllable transistor to be in the on state.
Optionally, the battery management unit 12 is further specifically configured to obtain a third instruction sent by the system-side controller 13, and execute a fifth time of the third instruction; and a sixth time for obtaining a fourth instruction sent by the system-side controller 13 and executing the fourth instruction; and the time difference judging unit is used for judging whether a second time difference between the fifth time and the sixth time is less than the first preset time to obtain a tenth judgment result; judging whether an unlocking instruction sent by the system end controller 13 is received or not based on the tenth judgment result to obtain a ninth judgment result; when the tenth determination result is yes, the ninth determination result indicates that the battery management unit 12 receives the unlocking instruction sent by the system-side controller 13.
Optionally, the battery management unit 12 is further specifically configured to detect and obtain a second current value of the battery unit 11 at a fifth time; judging whether the second current value is larger than the preset current value or not to obtain an eleventh judgment result; judging whether a communication command exists between the battery management unit 12 and the system end controller 13, and obtaining a twelfth judgment result; when the eleventh judgment result and the twelfth judgment result are yes, the storage timer executes a third timing command to obtain a third timing length value, and judges whether the third timing length value is greater than a second preset time value or not to obtain a thirteenth judgment result; the system-side controller 13 is further specifically configured to determine whether the battery management unit 12 is in the sleep mode based on the eleventh determination result and the thirteenth determination result, and obtain a seventh determination result; if the eleventh determination result and the thirteenth determination result are both yes, the seventh determination result is yes, and the battery management unit 12 is in the sleep mode.
Through one or more technical solutions in the embodiments of the present application, one or more of the following technical effects can be achieved:
in the technical solution of the embodiment of the present application, before the shipment of the battery, when the remaining capacity ratio of the battery is 40% to 60%, a specific activation instruction is sent to the battery management unit through the system-side controller, for example: 0x34 activates the command, which puts the battery in sleep mode and the controllable transistor in off state. When the battery is in a normal working mode, the controllable transistor is in an open state, the storage timer responds to a timing command when the battery management unit is in a sleep mode and the remaining capacity ratio of the battery is less than 50%, the timing is reset when the battery management unit detects that the current value of the battery is greater than a preset current value (usually related to leakage current of a system under different bodies) during the timing period, otherwise, the timing is continued, when the accumulated timing reaches a set value (usually set according to actual needs of a user), the battery management unit automatically enters the sleep mode, and the controllable transistor is in a close state. In addition, under the condition that the battery management unit enters the sleep mode, the system-side controller and the battery management unit can release the sleep mode of the battery management unit as long as any communication command exists between the system-side controller and the battery management unit, or the system-side controller can release the sleep mode of the battery management unit through a special unlocking command regardless of whether the battery management unit enters the sleep mode, such as: the 0x34 unlock command deactivates the battery management unit sleep mode, which, once deactivated, controls the controllable transistor to be in an off state. That is to say, the shutdown or the startup of the battery sleep mode can be continuously realized by turning on or off the controllable transistor inside the battery through at least one parameter information according to the actual working state of the battery, so that the battery sleep mode can be timely turned on or off according to the actual working state of the battery, the battery is effectively protected, and the technical effect of over-discharge is avoided.
In the technical solution of the embodiment of the present application, under the condition that the battery management unit enters the sleep mode, as long as there is any communication command between the system side controller and the battery management unit, the sleep mode of the battery management unit can be released, or whether the battery management unit enters the sleep mode, the system side controller can unlock the battery management unit through a special unlocking command, such as: the 0x34 unlock command deactivates the battery management unit sleep mode, which, once deactivated, controls the controllable transistor to be in an off state. If the sleep mode is simply set to be contacted by any communication command, the requirements of production line tests cannot be met, the production line requires to activate the sleep mode of the battery first and keep accessing the AC adapter in the test process, and at the moment, the system end controller continuously communicates with the battery, but the sleep mode of the battery cannot be released. After the sleep mode is activated on the production line, once the electronic device is connected to the alternating current adapter, only a specific 0x34 unlocking command can release the sleep mode of the battery, and other normal communication commands cannot release the sleep mode. After the electronic equipment is tested on a production line, the alternating current adapter is usually unplugged when the electronic equipment is delivered, and the battery can still be ensured to be in a sleep mode at the moment. When the battery is delivered in the sleep mode, the battery management unit can meet the condition of entering the sleep mode, and when the user accesses the electronic device into the alternating current adapter, the sleep mode of the battery can be released due to any communication command (such as SMBUS or I2C communication command) from the system side controller. Through the technical scheme of this application promptly, effectively avoided the risk that the system end controller can't give out complete accurate specific 0x34 unblock order and bring and can't withdraw from sleep mode because of the trouble, so, can enough satisfy the requirement of production line high efficiency production, improved the slow-witted performance of preventing of design again, effectively avoided the technological effect of the risk that battery sleep mode can't in time be relieved.
While preferred embodiments of the present invention have been described in detail, those skilled in the art, once apprised of the basic inventive concepts, can make additional variations and modifications to these embodiments. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (22)

1. A control method applied to an electronic device, wherein the electronic device includes a built-in battery unit, a battery management unit connected to the battery unit, and a system side controller connected to the battery management unit, and the battery unit cannot be taken out of the electronic device, the method comprising:
when the current working mode of the battery unit is in a working mode, the battery management unit turns on a controllable transistor in the electronic equipment;
the battery management unit obtains a first control instruction sent by the system end controller of the electronic equipment;
based on the first control instruction, the battery management unit judges whether the current working mode of the battery unit needs to be adjusted from the working mode to a sleep mode, and obtains a first judgment result;
when the first judgment result is yes, the battery management unit adjusts the current working mode of the battery unit from the working mode to the sleep mode, and turns off the controllable transistor.
2. The method according to claim 1, wherein the determining, by the battery management unit based on the first control instruction, whether the current operating mode of the battery unit needs to be adjusted from the operating mode to a sleep mode, and obtaining a first determination result specifically includes:
the battery management unit judges whether the first control instruction is a preset control instruction or not, and obtains a second judgment result;
based on the second judgment result, the battery management unit judges whether the current working mode needs to be adjusted from the working mode to a sleep mode, and obtains a first judgment result;
when the second judgment result is yes, the first judgment result is yes, which indicates that the current working mode needs to be adjusted from the working mode to the sleep mode.
3. The method according to claim 2, wherein when the first control instruction is the preset control instruction, the obtaining, by the battery management unit, the first control instruction sent by the system-side controller specifically includes:
the battery management unit obtains a first instruction sent by the system end controller and a first moment when the battery management unit executes the first instruction;
the battery management unit obtains a second instruction sent by the system end controller and a second moment when the battery management unit executes the second instruction;
and when a first time difference between the first time and the second time is smaller than a first preset time, the battery management unit receives the first control instruction sent by the system-side controller.
4. The method according to claim 2, wherein when the first control instruction is specifically the preset control instruction, after the battery management unit obtains the first control instruction sent by the system-side controller, the method further includes:
the battery management unit executes the first control instruction to adjust a current switching state of the controllable transistor from a first state to a second state different from the first state;
the battery management unit judges whether the second state is a closed state or an open state, and obtains a third judgment result.
5. The method of claim 4, wherein when the third determination result indicates that the controllable transistor is in the on state, after the battery management unit determines whether the current operation mode needs to be adjusted from the operation mode to the sleep mode based on the second determination result and obtains a first determination result, the method further comprises:
when the first judgment result is negative, the battery management unit judges whether a first current capacity value of the battery unit at a third moment is smaller than a preset battery capacity or not, and a fourth judgment result is obtained;
and when the fourth judgment result is yes, executing a first timing command by a storage timer in the battery management unit to obtain a first timing duration value.
6. The method of claim 5, wherein after the storage timer in the battery management unit executes a timing command to obtain a first timing length value when the fourth determination result is yes, the method further comprises:
the battery management unit detects and obtains a first current value of the battery unit at a fourth moment after the third moment;
the battery management unit judges whether the first current value is larger than a preset current value or not, and a fifth judgment result is obtained;
and when the fifth judgment result is yes, adjusting the first timing length value obtained by timing by the storage timer to be zero, and executing a second timing command different from the first timing command by the storage timer to obtain a second timing length value.
7. The method of claim 6, wherein after the battery management unit determines whether the first current value is greater than a preset current value and obtains a fifth determination result, the method further comprises:
when the fifth judgment result is negative, the battery management unit judges whether the second timing duration value is greater than a preset timing duration value or not, and obtains a sixth judgment result;
when the sixth judgment result is yes, the sixth judgment result is the first judgment result, which indicates that the current working mode needs to be adjusted from the working mode to the sleep mode.
8. The method according to any one of claims 1-7, wherein after the battery management unit adjusting the current operating mode of the battery unit from the operating mode to the sleep mode and turning off the controllable transistor when the first determination result is yes, the method further comprises:
the system end controller judges whether the battery management unit is in a sleep mode or not, and a seventh judgment result is obtained;
when the seventh judgment result is yes, the battery management unit judges whether a preset communication command sent by the system side manager is received or not, and an eighth judgment result is obtained;
when the eighth determination result is yes, the battery management unit adjusts the current operating mode of the battery unit from the sleep mode to the operating mode, and controls the controllable transistor to be in the on state.
9. The method according to any one of claims 1-7, wherein after the battery management unit adjusting the current operating mode of the battery unit from the operating mode to the sleep mode and turning off the controllable transistor when the first determination result is yes, the method further comprises:
the battery management unit judges whether an unlocking instruction sent by the system end controller is received or not, and a ninth judgment result is obtained;
when the ninth determination result is yes, the battery management unit adjusts the current operation mode of the battery unit from the sleep mode to the operation mode, and controls the controllable transistor to be in the on state.
10. The method according to claim 9, wherein the determining, by the battery management unit, whether an unlocking instruction sent by the system-side controller is received or not, and obtaining a ninth determination result specifically includes:
the battery management unit obtains a third instruction sent by the system end controller and a fifth moment for executing the third instruction;
the battery management unit obtains a fourth instruction sent by the system end controller and a sixth moment for executing the fourth instruction;
judging whether a second time difference between the fifth time and the sixth time is smaller than a first preset time length or not, and obtaining a tenth judgment result;
based on the tenth judgment result, the battery management unit judges whether an unlocking instruction sent by the system end controller is received or not, and a ninth judgment result is obtained;
when the tenth determination result is yes, the ninth determination result indicates that the battery management unit receives the unlocking instruction sent by the system side controller.
11. The method according to claim 8, wherein the determining, by the system-side controller, whether the battery management unit is in the sleep mode to obtain a seventh determination result includes:
the battery management unit detects and obtains a second current value of the battery unit at a fifth moment;
the battery management unit judges whether the second current value is larger than the preset current value or not, and an eleventh judgment result is obtained;
the battery management unit judges whether a communication command exists between the battery management unit and the system end controller or not, and a twelfth judgment result is obtained;
when the eleventh judgment result and the twelfth judgment result are yes, executing a third timing command by a storage timer in the battery management unit to obtain a third timing value, and judging whether the third timing value is greater than a second preset time value or not to obtain a thirteenth judgment result;
based on the eleventh judgment result and the thirteenth judgment result, the system side controller judges whether the battery management unit is in a sleep mode, and obtains a seventh judgment result;
when the eleventh judgment result and the thirteenth judgment result are both yes, the seventh judgment result is yes, and the battery management unit is in the sleep mode.
12. An electronic device, comprising:
a controllable transistor;
a built-in battery unit, wherein when the battery unit is in an operating mode, the controllable transistor is in an open state, and the battery unit cannot be taken out of the electronic device;
a battery management unit connected to the battery unit;
the system end controller is connected with the battery management unit;
when the current working mode of the battery unit is in the working mode, the battery management unit is used for obtaining a first control instruction sent by the system-side controller of the electronic equipment; judging whether the current working mode of the battery unit needs to be adjusted from the working mode to a sleep mode or not based on the first control instruction, and obtaining a first judgment result; and when the first judgment result is yes, adjusting the current working mode of the battery unit from the working mode to the sleep mode, and controlling the controllable transistor to be in a closing state different from the opening state.
13. The electronic device according to claim 12, wherein the battery management unit is further configured to determine whether the first control command is a preset control command, and obtain a second determination result; judging whether the current working mode needs to be adjusted from the working mode to the sleep mode or not based on the second judgment result to obtain a first judgment result; when the second judgment result is yes, the first judgment result is yes, which indicates that the current working mode needs to be adjusted from the working mode to the sleep mode.
14. The electronic device according to claim 13, wherein the battery management unit is further specifically configured to obtain a first instruction sent by the system-side controller when the first control instruction is the preset control instruction, and a first time when the battery management unit executes the first instruction; the second instruction sent by the system end controller is obtained, and the second moment when the second instruction is executed by the battery management unit is obtained; and when a first time difference between the first time and the second time is smaller than a first preset time, the battery management unit receives the first control instruction sent by the system-side controller.
15. The electronic device of claim 12, wherein the battery management unit is further configured to execute the first control instructions to adjust a current switching state of the controllable transistor from a first state to a second state different from the first state; and judging whether the second state is the closed state or the open state to obtain a third judgment result.
16. The electronic device according to claim 15, wherein the battery management unit is further configured to, if the first determination result is negative, determine whether a first current capacity value of the battery unit at a third time is smaller than a preset battery capacity, and obtain a fourth determination result; and the controller is used for controlling the storage timer to execute a first timing command to obtain a first timing duration value when the fourth judgment result is yes.
17. The electronic device of claim 16, wherein the battery management unit is further configured to detect obtaining a first present current value of the battery cell at a fourth time after the third time; judging whether the first current value is larger than a preset current value or not, and obtaining a fifth judgment result; and when the fifth judgment result is yes, adjusting the first timing length value obtained by timing of the storage timer to be zero, and executing a second timing command different from the first timing command by the storage timer to obtain a second timing length value.
18. The electronic device according to claim 17, wherein the battery management unit is further configured to determine whether the second timing length value is greater than a preset timing length value when the fifth determination result is negative, and obtain a sixth determination result; when the sixth judgment result is yes, the sixth judgment result is the first judgment result, which indicates that the current working mode needs to be adjusted from the working mode to the sleep mode.
19. The electronic device according to any one of claims 12-18, wherein the system-side controller is configured to determine whether the battery management unit is in a sleep mode, and obtain a seventh determination result; the battery management unit is used for judging whether a preset communication command sent by the system end manager is received or not when the seventh judgment result is yes, and obtaining an eighth judgment result; and when the eighth judgment result is yes, adjusting the current working mode of the battery unit from the sleep mode to the working mode, and controlling the controllable transistor to be in the on state.
20. The electronic device according to any of claims 12-18, wherein the battery management unit is further configured to determine whether an unlocking instruction sent by the system-side controller is received, and obtain a ninth determination result; and when the ninth determination result is yes, adjusting the current operating mode of the battery cell from the sleep mode to the operating mode, and controlling the controllable transistor to be in the on state.
21. The electronic device according to claim 20, wherein the battery management unit is further configured to obtain a third instruction sent by the system-side controller, and a fifth time to execute the third instruction; and a sixth moment for obtaining a fourth instruction sent by the system-side controller and executing the fourth instruction; and the time difference judging unit is used for judging whether a second time difference between the fifth time and the sixth time is less than a first preset time length or not and obtaining a tenth judgment result; judging whether an unlocking instruction sent by the system end controller is received or not based on the tenth judgment result to obtain a ninth judgment result; when the tenth determination result is yes, the ninth determination result indicates that the battery management unit receives the unlocking instruction sent by the system side controller.
22. The electronic device of claim 19, wherein the battery management unit is further specifically configured to detect that a second current value of the battery unit at a fifth time is obtained; judging whether the second current value is larger than the preset current value or not to obtain an eleventh judgment result; judging whether a communication command exists between the battery management unit and the system end controller or not, and obtaining a twelfth judgment result; when the eleventh judgment result and the twelfth judgment result are yes, executing a third timing command by a storage timer in the battery management unit to obtain a third timing value, and judging whether the third timing value is greater than a second preset time value or not to obtain a thirteenth judgment result; the system-side controller is further specifically configured to determine whether the battery management unit is in a sleep mode based on the eleventh determination result and the thirteenth determination result, and obtain a seventh determination result; when the eleventh judgment result and the thirteenth judgment result are both yes, the seventh judgment result is yes, and the battery management unit is in the sleep mode.
CN201410645292.4A 2014-11-12 2014-11-12 Control method and electronic equipment Active CN105653380B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410645292.4A CN105653380B (en) 2014-11-12 2014-11-12 Control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410645292.4A CN105653380B (en) 2014-11-12 2014-11-12 Control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105653380A CN105653380A (en) 2016-06-08
CN105653380B true CN105653380B (en) 2021-02-19

Family

ID=56479635

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410645292.4A Active CN105653380B (en) 2014-11-12 2014-11-12 Control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105653380B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108628431A (en) * 2018-06-06 2018-10-09 深圳市华思旭科技有限公司 Electronic equipment and its certainly energy consumption control circuit
CN110967643B (en) * 2019-04-30 2021-01-22 宁德时代新能源科技股份有限公司 Thermal runaway detection circuit and method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420036A (en) * 2007-10-22 2009-04-29 深圳迈瑞生物医疗电子股份有限公司 Power supply management device and method for battery
CN103869927A (en) * 2012-12-17 2014-06-18 联想(北京)有限公司 Information processing method and electronic device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101033944B1 (en) * 2004-09-21 2011-05-11 엘지전자 주식회사 Apparatus and method for controling System operation based on battery state

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420036A (en) * 2007-10-22 2009-04-29 深圳迈瑞生物医疗电子股份有限公司 Power supply management device and method for battery
CN103869927A (en) * 2012-12-17 2014-06-18 联想(北京)有限公司 Information processing method and electronic device

Also Published As

Publication number Publication date
CN105653380A (en) 2016-06-08

Similar Documents

Publication Publication Date Title
EP2908209B1 (en) Charging control method and device
US10003207B2 (en) Method and apparatus for battery charging
US10275016B2 (en) Smart power adapters and related systems and methods
US10491003B2 (en) Multiple input single inductor multiple output regulator
US9563226B2 (en) Dynamic clock regulation based on duty cycle thresholds
US20120270611A1 (en) Method for controlling mobile terminal
EP2767902A2 (en) Method and apparatus for fast booting of user device
US9678554B2 (en) Low power mode operation when charging a device
CN103858070A (en) Power-off threshold voltage adjustment method, starting up method and electronic equipment using same
CN106060909A (en) Network access method and mobile terminal
US9430019B2 (en) Method of changing over computer from power-on state to power-saving state
US10095292B2 (en) Linear load transition between power supplies and battery backup units
CN107104478B (en) Information processing method and electronic equipment
CN105653380B (en) Control method and electronic equipment
US20150089260A1 (en) Electronic Apparatus, Method, and Storage Medium
US9201822B2 (en) Host controller apparatus, information processing apparatus, and event information output method
US20210018970A1 (en) Real time clock battery power management
US9122470B2 (en) Electronic device with power control function
US20150318719A1 (en) Charging method and electronic device
WO2015031721A1 (en) Power management in a circuit
US11508423B2 (en) Noise shielding circuit and chip
CN107870618A (en) Automated vehicle resource management system
US9229517B2 (en) Computer input device power savings
US10659574B2 (en) Communication device, method of communication device, and non-transitory computer readable storage medium
US9933839B2 (en) Computer system and method of operating a computer system

Legal Events

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