CN-120749929-B - Charging method and related equipment
Abstract
The application discloses a charging method and related equipment. According to the charging method, under the condition that the electronic equipment has a power failure problem, the electronic equipment can adaptively adjust adapter related parameters based on the adapter specification, such as parameters for indicating the peak current of the adapter, delay time for determining the peak current of the adapter and the like, so that the maximum output power of the adapter is improved, and delay time for determining the peak current of the adapter is delayed.
Inventors
- CAO JINGJUN
Assignees
- 荣耀终端股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20240820
Claims (13)
- 1. The electronic equipment is characterized by comprising a charging management module, a controller and a battery, wherein the charging management module is respectively connected with the adapter, the controller and the battery; The charging management module is used for receiving the power supply output by the adapter and charging the battery; The controller is used for sending a first current parameter and a first time length to the charging management module when the adapter is in a working state and the system is powered down, and sending first information, wherein the first current parameter is used for indicating the peak current of the adapter, the peak current of the adapter is used for determining the maximum output power of the adapter, the peak current of the adapter indicated by the first current parameter is larger than the current peak current of the adapter, the first time length is used for indicating the waiting time length between the receiving of the indication information of the power down of the system and the switching of the working mode to the discharging mode of the charging management module, the first time length is larger than the current waiting time length, and the first information is used for indicating the power down of the system; The charging management module is further used for keeping the working mode of the charging management module to be a charging mode when the duration of power failure of the system is smaller than the first duration based on the first information; the first current parameter is used for indicating that the peak current of the adapter is smaller than a preset peak current, the preset peak current is the peak current of the adapter which is sent to the charge management module when the controller is in a working state and the system is powered down and the waiting time is not sent to the charge management module, the first time is smaller than a preset waiting time, and the preset waiting time is the waiting time which is sent to the charge management module when the controller is in a working state and the system is powered down and the peak current of the adapter is not sent to the charge management module.
- 2. The electronic device of claim 1, wherein the controller is further configured to adjust the first current parameter when the adapter is in an operating state and the system is powered down, and send the first current parameter obtained by the current adjustment to the charge management module, wherein a peak current of the adapter indicated by the first current parameter obtained by the current adjustment is greater than a peak current of the adapter indicated by the first current parameter obtained by the previous adjustment.
- 3. The electronic device of claim 1 or 2, wherein the controller is further configured to adjust the first duration when the adapter is in a working state and the system is powered down, and send the first duration obtained by the current adjustment to the charge management module, where the first duration obtained by the current adjustment is greater than the first duration obtained by the last adjustment.
- 4. The electronic device of claim 1 or 2, wherein the controller is further to perform any one or more of: After the first current parameter is sent to the charging management module, and when the adapter is in a stop state, a second current parameter is sent to the charging management module, wherein the second current parameter is used for indicating the peak current of the adapter, and the peak current of the adapter indicated by the second current parameter is smaller than the current peak current of the adapter; After the first time period is sent to the charging management module, and when the adapter is in a stop state, a second time period is sent to the charging management module, wherein the second time period is used for indicating a waiting time period between receiving indication information of system power failure and switching a working mode to the discharging mode of the charging management module, and the second time period is smaller than the current waiting time period.
- 5. The electronic device of claim 1 or 2, further comprising a display screen, the display screen being connected to the controller; The controller is also used for adjusting the brightness of the display screen when the adapter is in a working state and the system is powered down, and the brightness of the display screen obtained by the adjustment is smaller than the original brightness of the display screen.
- 6. The electronic device of claim 5, wherein after the adjusting the brightness of the display screen, the controller is further configured to adjust the brightness of the display screen when the adapter is in an operating state and a system is powered down, or when the adapter is in a stopped state, where the brightness of the display screen obtained by this adjustment is less than the brightness of the display screen obtained by the last adjustment.
- 7. The charging method is applied to a controller in electronic equipment, the electronic equipment comprises the controller, a charging management module and a battery, the charging management module is respectively connected with an adapter, the controller and the battery, and the method comprises the following steps: When the adapter is in a working state and a system is powered down, the controller sends a first current parameter, a first duration and first information to the charge management module, the first current parameter is used for indicating peak current of the adapter, the peak current of the adapter is used for determining maximum output power of the adapter, the first current parameter is used for indicating that the peak current of the adapter is smaller than a preset peak current, the preset peak current is the peak current of the adapter which is sent to the charge management module when the adapter is in the working state and the system is powered down, when the controller does not send waiting duration to the charge management module, the peak current of the adapter which is indicated by the first current parameter is larger than the current peak current of the adapter, the first duration is used for indicating that the charge management module receives the waiting duration between the indication information of the system power down and switching a working mode to a discharging mode, the preset waiting duration is smaller than the preset waiting duration, and the preset waiting duration is the duration when the controller is in the adapter is in the working state and the adapter is not powered down, and the first duration is longer than the waiting duration when the adapter is not sent to the current when the adapter is in the charging management module is powered down, and the first current is not used for indicating the current waiting duration to the adapter is powered down.
- 8. The method of claim 7, wherein in the event that the controller sends the first current parameter to the charge management module, the method further comprises: after the controller sends the first current parameter to the charge management module, and when the adapter is in a working state and the system is powered down, the controller adjusts the first current parameter and sends the first current parameter obtained by current adjustment to the charge management module, wherein the peak current indicated by the first current parameter obtained by current adjustment is larger than the peak current indicated by the first current parameter obtained by previous adjustment.
- 9. The method of claim 7 or 8, wherein in the case where the controller sends the first duration to the charge management module, the method further comprises: After the controller sends the first time length to the charge management module, and when the adapter is in a working state and the system is powered down, the controller adjusts the first time length and sends the first time length obtained by current adjustment to the charge management module, wherein the first time length obtained by current adjustment is longer than the first time length obtained by last adjustment.
- 10. The method of claim 7 or 8, further comprising any one or more of: After the first current parameter is sent to the charging management module, and when the adapter is in a stop state, the controller sends a second current parameter to the charging management module, wherein the second current parameter is used for indicating the peak current of the adapter, and the peak current of the adapter indicated by the second current parameter is smaller than the current peak current of the adapter; After the first time period is sent to the charging management module, and when the adapter is in a stop state, the controller sends a second time period to the charging management module, wherein the second time period is used for indicating a waiting time period between receiving indication information of system power failure and switching a working mode to a discharging mode of the charging management module, and the second time period is smaller than the current waiting time period.
- 11. The method of claim 7 or 8, wherein the electronic device further comprises a display screen coupled to the controller, the method further comprising: When the adapter is in a working state and the system is powered off, the controller adjusts the brightness of the display screen, and the brightness of the display screen obtained by the adjustment is smaller than the original brightness of the display screen.
- 12. The method of claim 11, wherein after said adjusting the brightness of the display screen, the method further comprises: when the adapter is in a working state and the system is powered off or the adapter is in a stop state, the controller adjusts the brightness of the display screen, and the brightness of the display screen obtained by the current adjustment is smaller than the brightness of the display screen obtained by the last adjustment.
- 13. A computer readable storage medium storing computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any of the preceding claims 7-12.
Description
Charging method and related equipment Technical Field The application relates to the technical field of charging, in particular to a charging method and related equipment. Background When an electronic device such as a personal computer (Personal Computer, a PC) is charged through the adapter, in a high-load scene such as a heavy-load game, a power failure situation is easy to occur, so that the electronic device can not be charged, a performance mode can be exited, and a displayed charging icon can be switched back and forth, thereby affecting the use of a user. Disclosure of Invention The application provides a charging method and related equipment. According to the method, the electronic equipment can adaptively adjust relevant parameters of the adapter, such as parameters for indicating peak current of the adapter, delay time for determining peak current of the adapter and the like, so that maximum output power of the adapter is improved, the peak current of the adapter is determined by delay, response time of discharging of the battery can be adaptively adjusted by the electronic equipment, the adapter delays switching from a charging mode to a discharging mode, frequency of power failure of a system is reduced, frequency of switching from a charging management module to the discharging mode is reduced, and continuous discharging of the battery is avoided. In a first aspect, the present application provides an electronic device. The electronic device may include a charge management module, a controller, and a battery. The charge management module in the electronic device may be connected to the controller in the electronic device and the battery in the electronic device, respectively. The charge management module in the electronic device may also be connected to the adapter. The charge management module may be configured to receive the power output by the adapter and charge a battery in the electronic device. The controller may be configured to send at least one of the first current parameter and the first duration to the charge management module and send the first information when the adapter is in an operational state and the system is powered down (i.e., the electronic device is powered down). The charging management module may be further configured to maintain the operation mode of the charging management module in the charging mode when it is determined that the duration of the system power failure is less than the first duration based on the first information. Wherein the first current parameter may be used to indicate a peak current of the adapter, which may be used to determine a maximum output power of the adapter. The first current parameter indicates that the peak current of the adapter is greater than the current peak current of the adapter. The first duration may be used to indicate a waiting duration between receiving indication of a power down of the system by the charge management module and switching the operating mode to the discharging mode. The first time period is greater than the current waiting time period, i.e., the first time period may be greater than the waiting time period currently set by the electronic device. The first information may be used to indicate that the system is powered down. In the scheme provided by the application, when the charging management module in the electronic equipment is in a charging mode (namely, the charging management module receives the power output by the adapter to charge the battery), if the adapter is in a working state and the system is powered down, the adapter can adjust at least one of the first current parameter and the first duration, and then the obtained first current parameter and/or the first duration are sent to the charging management module. The charging management module can improve the peak current of the adapter based on the first current parameter, so that the maximum output power of the adapter is improved, the power-down frequency of the system is reduced, the frequency of switching the working mode to the discharging mode and the probability of successfully switching the working mode to the discharging mode can be reduced to a certain extent, and continuous discharging of the battery is avoided. The charging management module can further increase the waiting time between receiving the indication information of the power failure of the system and switching the working mode to the discharging mode based on the first time, so that the electronic equipment is not powered down before the charging management module starts to switch the working mode. It should be noted that, under the condition that the controller adjusts the first current parameter to increase the peak current of the adapter and increases the first time length, on one hand, because the first time length increases, the controller has sufficient time to complete the adjustment of the first current parameter before the charge management module starts to switch t