CN117175752B - Charging abnormality processing method, device, system, storage medium, and program product - Google Patents

Charging abnormality processing method, device, system, storage medium, and program product Download PDF

Info

Publication number
CN117175752B
CN117175752B CN202311444585.1A CN202311444585A CN117175752B CN 117175752 B CN117175752 B CN 117175752B CN 202311444585 A CN202311444585 A CN 202311444585A CN 117175752 B CN117175752 B CN 117175752B
Authority
CN
China
Prior art keywords
charging
parameter
adapter
current
embedded controller
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
CN202311444585.1A
Other languages
Chinese (zh)
Other versions
CN117175752A (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.)
Honor Device Co Ltd
Original Assignee
Honor Device Co 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202311444585.1A priority Critical patent/CN117175752B/en
Publication of CN117175752A publication Critical patent/CN117175752A/en
Application granted granted Critical
Publication of CN117175752B publication Critical patent/CN117175752B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The application relates to the technical field of charging, aims to solve the problem of adapter charging interruption, and provides a charging abnormality processing method, device, system, storage medium and program product. The method comprises the following steps: when the adapter is not recovered from the outage, the following adjustment operations are cyclically performed until the adapter is recovered from the outage or an adapter failure is determined: one or more of the first time parameter and the first current parameter are adjusted, and the adjusted parameters are transmitted to the corresponding chips, so that the chips operate according to the adjusted parameters; the first time parameter is used for indicating a time threshold value for triggering the power supply to charge the chip and resetting the adapter, the first current parameter is used for indicating a current threshold value for triggering the charge management chip to limit the charging current of the adapter, and when the adapter is recovered from the broken charge, the adjusted first parameter is written into the firmware of the corresponding chip. And flexibly adjusting a time parameter and/or a first current parameter to configure the most appropriate parameter value so as to repair the broken charge of the adapter.

Description

Charging abnormality processing method, device, system, storage medium, and program product
Technical Field
The embodiment of the application relates to the technical field of charging, in particular to a method, equipment, a system, a storage medium and a program product for processing charging abnormality.
Background
When an electronic device such as a personal computer (Personal Computer, PC) is charged through an adapter, the adapter has insufficient output capability, and charging abnormality is liable to occur. For example, when the electronic device is in a high power consumption scenario and the output power of the adapter cannot meet the power requirement of the electronic device, the adapter is liable to be disconnected. While an adapter disconnection may easily cause the electronic device to: the charging is not full, the performance mode is exited, and the displayed charging icons are switched back and forth, so that the use of a user is affected.
Disclosure of Invention
The embodiment of the application provides a method, equipment, a system, a storage medium and a program product for processing abnormal charging, which solve the problem of abnormal charging, in particular to the problem of adapter charging in a large-power consumption scene of electronic equipment.
In a first aspect, an embodiment of the present application provides a method for processing a charging abnormality, which is applied to an electronic device, where the electronic device is connected to an adapter, and the electronic device includes an embedded controller, a power charging chip, and a charging management chip, and the embedded controller is connected to the power charging chip and the charging management chip, where the method includes: when the adapter is not recovered from the outage, the embedded controller circularly executes the following adjustment operations until the adapter is recovered from the outage or the adapter failure is determined: adjusting the first parameter, and transmitting the adjusted first parameter to a corresponding chip so that the chip operates according to the adjusted first parameter; wherein the first parameter comprises one or more of a first time parameter and a first current parameter; the first time parameter is used for indicating a time threshold value for triggering the power supply charging chip to reset the adapter, and the first current parameter is used for indicating a current threshold value for triggering the charging management chip to limit the charging current of the adapter; and when the adapter is in the disconnected state and is recovered, the embedded controller writes the adjusted first parameter into the firmware of the corresponding chip.
According to the embodiment of the application, when the electronic equipment is charged through the adapter, the electronic equipment can automatically detect the adapter to be disconnected and charged, and the values corresponding to the first time parameter, the first current parameter and the second time parameter are flexibly adjusted when the adapter is disconnected and charged, so that the most appropriate parameter values are configured for the situation when the adapter is disconnected and charged, normal operation of the electronic equipment can be guaranteed, and user experience is improved.
In one possible implementation, the adjusting operation includes a first operation and/or a second operation, where the first operation includes: increasing a first time parameter according to a first preset rule, and transmitting the increased first time parameter to a power supply charging chip so that the power supply charging chip operates according to the increased first time parameter; the second operation includes: reducing the first current parameter according to a second preset rule, and transmitting the reduced first current parameter to a charging management chip so that the charging management chip operates according to the reduced first current parameter; the embedded controller loops the following adjustment operations including: the embedded controller cyclically performs the first operation and/or the second operation.
In one possible implementation, the embedded controller loops performing the first operation and the second operation includes: the embedded controller executes a first operation; judging whether the times of adjusting the first time parameter reach a first threshold value or not when the adapter is not recovered after the charging is interrupted, wherein the first threshold value is more than or equal to 1; if not, the embedded controller executes a first operation; if yes, the embedded controller executes a second operation.
In one possible implementation, the electronic device further includes a processor, and the charge management chip is connected to the processor; the first parameter further comprises a second time parameter, and the second time parameter is used for indicating a time threshold value for triggering the charging management chip to output a down-conversion signal to the processor; the down-conversion signal is used for indicating the processor to down-convert; the adjusting operation further includes a third operation including: adding a second time parameter according to a third preset rule, and transmitting the added second time parameter to a charging management chip so that the charging management chip operates according to the added second time parameter; the embedded controller loops performing the following adjustment operations further includes: after the second operation is executed and when the adapter is not recovered after the disconnection and the charging, judging whether the times of adjusting the first current parameter reach a second threshold value, wherein the second threshold value is more than or equal to 1; if not, the embedded controller executes a second operation; if yes, the embedded controller executes a third operation.
In one possible implementation, the embedded controller loops performing the first operation and the second operation includes: the embedded controller increases a first time parameter according to a first preset rule and decreases a first current parameter according to a second preset rule; the increased first time parameter is transmitted to the power charging chip and the decreased first current parameter is transmitted to the charging management chip, so that the power charging chip operates according to the increased first time parameter, and the charging management chip operates according to the decreased first current parameter.
In one possible implementation, increasing the first time parameter according to the first preset rule includes: obtaining a first adjustment value, wherein the first adjustment value is a preset percentage of a current difference value, and the current difference value is a difference value obtained by subtracting the value of the current first time parameter from the maximum value in the specification range of the first time parameter; and increasing the value of the current first time parameter by a first adjustment value to obtain an increased first time parameter.
In one possible implementation, reducing the first current parameter according to the second preset rule includes: obtaining a second adjustment value, wherein the second adjustment value is a preset percentage of a current difference value, and the current difference value is obtained by subtracting the value of the current first current parameter from the maximum value in the specification range of the first current parameter; subtracting the second adjustment value from the current value of the first current parameter to obtain a reduced first time parameter.
In one possible implementation, the method further includes: and when the adapter is not recovered after the charging is disconnected, and the adjusted first current parameter and the adjusted first time parameter are beyond the corresponding specification range, the embedded controller determines the adapter fault and uploads fault information.
In a second aspect, embodiments of the present application provide an electronic device, an electronic device connection adapter, including: the device comprises an embedded controller, a power supply charging chip and a charging management chip; the embedded controller is connected with the power supply charging chip and the charging management chip, and invokes the computer program to execute any one of the methods.
In a third aspect, an embodiment of the present application provides a charging system, where the charging system includes an electronic device and an adapter, and the electronic device is an electronic device as above; the adapter is connected with the electronic device to supply power to the electronic device.
In a fourth aspect, embodiments of the present application provide a computer storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform any of the methods described above.
In a fifth aspect, embodiments of the present application provide a computer program product which, when run on a computer, causes the computer to perform any of the methods described above.
The technical effects obtained in the second, third, fourth and fifth aspects are similar to the technical effects obtained in the corresponding technical means in the first aspect, and are not described in detail herein.
Drawings
Fig. 1 is a schematic structural diagram of a charging system according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 3 is a schematic diagram of parameters according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Fig. 5 is a flowchart of a method for handling charging abnormality according to an embodiment of the present application.
Fig. 6 is a flowchart of another method for handling charging abnormality according to an embodiment of the present application.
Fig. 7 is a flowchart of another method for handling charging abnormality according to an embodiment of the present application.
Fig. 8 is a flowchart of another method for handling charging abnormality according to an embodiment of the present application.
Detailed Description
It is understood that the connection relationships described in this application refer to direct or indirect connections. For example, the connection between a and B may be a direct connection between a and B, or an indirect connection between a and B through one or more other electrical components, for example, a direct connection between a and C, and a direct connection between C and B, so that a connection between a and B is achieved through C.
It should be noted that the terms "first" and "second" in the specification, claims and drawings of this application are used for distinguishing between similar objects and not for describing a particular sequential or chronological order. In the description and claims of the present application and in the drawings, "/" means or, unless otherwise indicated, for example, A/B may mean A or B. For example, a and/or B may represent: a exists alone, A and B exist together, and B exists alone. In addition, the term "plurality" in the description and claims of the present application and in the drawings means two or more than two.
It should be further noted that the method disclosed in the embodiments of the present application or the method shown in the flowchart, including one or more steps for implementing the method, may be performed in an order that the steps may be interchanged with one another, and some steps may be deleted without departing from the scope of the claims.
Some embodiments will be described below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Electronic devices such as personal computers are typically charged through an adapter. When the electronic equipment is in a high-power consumption scene, the output power of the adapter cannot meet the power requirement of the electronic equipment, and the battery of the electronic equipment cannot be timely supplied with power (such as the battery cannot be timely supplied with power because of slow response of the charging management chip), the charging abnormality is easy to occur, such as the adapter is easily pulled and hung, and the adapter is disconnected from charging.
In the case of starting the whole machine or processing a game task, for example, the processor calls (or frequently calls) a high processing capability, the working frequency of the processor is increased, and accordingly, the power consumption of the processor is increased, which results in an increase in the power demand of the electronic device. When the output power of the adapter cannot meet the power requirement of the electronic device, if the charging voltage output by the adapter is lower than a preset voltage threshold, the electronic device outputs a reset signal to the adapter. The adapter is reset according to the reset signal, stops charging the electronic equipment connected with the adapter, and is connected with the electronic equipment again after stopping charging so as to continuously charge the electronic equipment. When implementing the embodiment of the application, the inventor finds that under the large power consumption scene such as starting or processing a game task by the whole machine, the output power of the adapter after reset still cannot meet the power requirement of the electronic equipment, the electronic equipment still outputs a reset signal, and the adapter is still charged off. When the electronic device frequently outputs a reset signal to the adapter, frequent charging failure of the adapter can be caused. Obviously, frequent disconnection of the adapter easily causes electronic equipment to be charged incompletely, frequent exiting of a performance mode and back and forth switching of a displayed charging icon, so that the use of a user is affected.
In view of this, the embodiments of the present application provide a method for handling charging abnormality, an electronic device, a charging system, a storage medium, and a program product, where when the electronic device is charged through an adapter, the electronic device may automatically detect an adapter charging failure, and adjust relevant parameters when the adapter is charged, so as to solve the problem of charging abnormality, especially when the electronic device is in a high-power consumption scenario, the adapter is charged.
Referring to fig. 1, a charging system 10 provided in an embodiment of the present application is schematically described. The charging system 10 includes an electronic device 100 and an adapter 200. The electronic device 100 is connected to the adapter 200 to be charged through the adapter 200.
In the present embodiment, the electronic device 100 includes an external interface 101. External interface 101 is used to connect adapter 200, external interface 101 includes, but is not limited to:universal serial bus (universal serial bus, USB) interface.
In the embodiment of the present application, the electronic device 100 may be a personal computer, for example, a desktop computer, a notebook computer, a mini notebook computer, a tablet computer, an ultrabook, and the like. The electronic device 100 may also be a rechargeable device such as a cell phone, cellular phone, personal digital assistant (personal digital assistant, PDA), wearable device (e.g., smart watch, smart bracelet), game console, etc. The embodiment of the present application is not particularly limited to the specific device configuration of the electronic device 100.
In the embodiment of the present application, the adapter 200 may be a constant voltage and constant current power supply device, and may be used to continuously supply power to the electronic device 100. For example, adapter 200 passes through electronic device 100The interface is connected to the electronic device 100 to rapidly charge the electronic device 100, so the adapter 200 may also be called +.>A power adapter. In some cases, adapter 200 may also be referred to as a charger.
As shown in fig. 1, an electronic apparatus 100 is exemplified as a personal computer. When the adapter 200 is connected to a power supply (such as a mains supply) and is connected to the external interface 101 of the personal computer, the personal computer may perform a protocol handshake with the adapter 200, so that the adapter 200 may obtain a charging protocol reported by the personal computer through the external interface 101, and output electric energy of a specific charging voltage and a specific charging current to the personal computer according to the charging protocol, so as to supply power to the personal computer.
It is understood that the electronic device 100 and the adapter 200 shown in fig. 1 are only examples, and the types of the electronic device 100 and the adapter 200 are not particularly limited in the embodiments of the present application.
The beneficial effects of the charging system 10 provided in the embodiment of the present application may refer to the beneficial effects of the method for handling abnormal charging provided in the embodiment of the present application, and are not described herein again.
Referring to fig. 2, a structure of an electronic device 100 according to an embodiment of the present application is exemplarily described.
The electronic device 100 includes an external interface 101, a power charging chip (PD) 102, a charge management chip (Charger Intergrated Circuit, charger IC) 103, an embedded controller (Embedded Controller, EC) 104, a battery 105, a processor 106, and a basic input output system (Basic Input Output System, BIOS) 107.
In the embodiment of the present application, the embedded controller 104 is connected to the power charging chip 102, the charging management chip 103, and the bios 107. The charge management chip 103 is connected to the external interface 101, the battery 105, and the processor 106. The power charging chip 102 connects the external interface 101 and the basic input output system 107.
Wherein the external interface 101 is used to connect the adapter 200, for example, the external interface 101 connects the adapter 200 through a charging line (or a data line).
In the present embodiment, after the adapter 200 is connected to the external interface 101 of the electronic device 100, the adapter 200 may charge the electronic device 100 with a specific voltage (e.g., 20V).
In the embodiment of the present application, the electronic device 100 may perform data interaction with the adapter 200 through the external interface 101. For example, interaction of a charging protocol, reset signals, or control instructions, etc., between the electronic device 100 and the adapter 200 may be implemented to control the adapter 200 to provide a corresponding charging voltage and/or charging current according to the requirements of the electronic device 100.
Wherein the power charging chip 102 is used for realizing quick charging.
In the present embodiment, the power charging chip 102 is a charging controller that complies with the PD charging protocol. The PD charging protocol is a published power transfer protocol by the USB-IF organization, i.e., the fast charge standard. In practical applications, the interface supporting the charging of the PD charging protocol may includeA type interface.
In the embodiment of the present application, the power charging chip 102 may obtain the charging voltage output by the adapter 200 based on the connection with the external interface 101. The power charging chip 102 may also output a reset signal for instructing the reset of the adapter 200 to the adapter 200 based on the connection with the external interface 101, so that the adapter 200 is reset according to the reset signal.
In the embodiment of the present application, parameters related to charging of the adapter 200 in the power charging chip 102 may include: a first voltage threshold and a first time parameter.
Referring to fig. 3, exemplary parameters provided by the embodiments of the present disclosure are described. The first voltage threshold is used to indicate a voltage threshold that triggers the power charging chip 102 to reset the adapter 200. The first time parameter is used to indicate a time threshold value that triggers the power charging chip 102 to reset the adapter 200.
In this embodiment, when the charging voltage of the adapter 200 is less than or equal to the first voltage threshold, the power charging chip 102 may trigger the adapter 200 to perform a reset, such as a hard reset. In some embodiments, to avoid false triggering, such as to avoid software failure or false triggering of the power charging chip 102 to reset the adapter 200 when the charging voltage is less than or equal to the first voltage threshold due to a manual plug-and-pull operation, the power charging chip 102 may configure the first time parameter.
In the embodiment of the present application, the power charging chip 102 needs to reset the adapter 200 while satisfying two conditions: the charging voltage is less than or equal to the first voltage threshold value, and a duration of the charging voltage less than or equal to the first voltage threshold value is greater than or equal to the first time parameter.
In the embodiment of the present application, the first voltage threshold VPD and the first time parameter TDebounce time are parameters configured in Firmware (Firmware) of the power charging chip 102. The first time parameter TDebounce time has its corresponding specification range, which is called the first specification range. The value corresponding to the first time parameter TDebounce time cannot exceed the first specification range.
In this embodiment of the present application, the value corresponding to the first time parameter TDebounce time may be flexibly adjusted under the condition that the value corresponding to the first time parameter TDebounce time is ensured not to exceed the first specification range.
The charging management chip 103 is used for monitoring and controlling the charging process.
In this embodiment of the present application, the charging management chip 103 may monitor parameters such as charging current, charging voltage, temperature, etc. in real time, and control a charging flow according to a set charging mode and a set protection mechanism.
In the embodiment of the present application, the charging management chip 103 may obtain the charging voltage and the charging current output by the adapter 200 based on the connection with the external interface 101, and then the charging management chip 103 may notify the embedded controller 104 or the power charging chip 102 of the charging voltage and the charging current of the adapter 200. Specifically, after the external interface 101 is connected to the adapter 200, the external interface 101 may notify the charge management chip 103 of the charging voltage and the charging current of the adapter 200.
In this embodiment of the present application, the charging management chip 103 may also receive a charging input through the external interface 101, and may also supply power to the electric device (such as the processor 106) that needs to be powered during working while charging the battery 105.
In the embodiment of the present application, the charge management chip 103 may also output a control instruction to the adapter 200 based on the connection with the external interface 101. Illustratively, the charge management chip 103 may output a control instruction for instructing the adapter 200 to adjust the charging current. The adapter 200 may increase the charging current or decrease the charging current according to the control instruction.
In the embodiment of the present application, the charge management chip 103 may output a down-conversion signal for instructing the processor 106 to down-convert. Wherein the down-converted signal includes, but is not limited to: prochot signal.
In the embodiment of the present application, parameters related to charging of the adapter 200 in the charging management chip 103 may include: a first current parameter, a peak current, and a second time parameter.
Referring to fig. 3, the first current parameter is used to indicate a current threshold value for triggering the charge management chip 103 to limit the charging current of the adapter 200. The peak current is used to indicate a current threshold value that triggers the charge management chip 103 to output a down-conversion signal to the processor 106. The second time parameter is used for indicating a time threshold value for triggering the charge management chip 103 to output the down-conversion signal to the processor 106.
Wherein the relationship between the value of the first current parameter and the peak current may be: peak current =The value of the first current parameter is not particularly limited in this application.
In the embodiment of the present application, when the charging current of the adapter 200 is greater than or equal to the first current parameter, the charging management chip 103 may limit the charging current output by the adapter 200. In other words, when the charging current of the adapter 200 is greater than or equal to the first current parameter, the charge management chip 103 may output a control instruction for instructing to reduce the charging current to the adapter 200, so that the adapter 200 reduces the output charging current according to the control instruction. And the effective time for the charge management chip 103 to limit the output of the charging current by the adapter 200 depends on the response speed of the charge management chip 103. When the response speed of the charge management chip 103 is slow, when the charge current of the adapter 200 is greater than or equal to the first current parameter, the charge management chip 103 cannot timely output a control instruction for instructing to reduce the charge current to the adapter 200, that is, the charge management chip 103 cannot timely limit the charge current output by the adapter 200, the charge current output by the adapter 200 continuously rises, so that the charge current is greater than or equal to the peak current.
In the embodiment of the present application, when the charging current of the adapter 200 is greater than or equal to the peak current, the charging management chip 103 may trigger the processor 106 to down-convert, that is, trigger the processor 106 to decrease the operating frequency. In other words, when the charging current of adapter 200 is greater than or equal to the peak current, charge management chip 103 may output a down-conversion signal to processor 106. In some embodiments, the charge management chip 103 may configure the second time parameter. By configuring the second time parameter, frequent triggering of the processor 106 to down-convert, affecting the normal operation of the electronic device 100, may be avoided.
In the embodiment of the present application, the charge management chip 103 triggers the processor 106 to down-convert, so that two conditions are simultaneously satisfied: the charging current is greater than or equal to the peak current, and a duration of the charging current greater than or equal to the peak current is greater than or equal to the second time parameter.
In the embodiment of the present application, the first current parameter ILIM2, the peak current ICRIT, and the second time parameter TICRIT Debounce time are parameters configured in firmware of the charge management chip 103. The first current parameter ILIM2 and the second time parameter TICRIT Debounce time have corresponding specification ranges. The specification range corresponding to the first current parameter ILIM2 may be referred to as a second specification range. The specification range to which the second time parameter TICRIT Debounce time corresponds may be referred to as a third specification range. The values corresponding to the first current parameter ILIM2 and the second time parameter TICRIT Debounce time cannot exceed the corresponding specification ranges.
In this embodiment of the present application, the values corresponding to the first current parameter ILIM2 and the second time parameter TICRIT Debounce time may be flexibly adjusted when the value corresponding to the first current parameter ILIM2 is ensured not to exceed the second specification range and the value corresponding to the second time parameter TICRIT Debounce time is ensured not to exceed the third specification range.
In some embodiments, the second time parameter TICRIT Debounce time corresponds to a specification range that includes four gears.
It will be appreciated that the first specification range to the third specification range may be different, and the specific specification range is determined according to practical situations, which is not specifically limited in this application.
It should be noted that, in the prior art, the values corresponding to the first time parameter TDebounce time, the first current parameter ILIM2, and the second time parameter TICRIT Debounce time of the electronic device 100 are all fixed values. When the electronic device 100 provided in the embodiment of the present application detects that the adapter is disconnected, the most suitable parameter values may be configured for charging between the electronic device 100 and the adapter 200 by flexibly adjusting the values corresponding to the first time parameter TDebounce time, the first current parameter ILIM2 and the second time parameter TICRIT Debounce time, so as to solve the adapter disconnection problem. The content of the adjustment parameters of the electronic device 100 may refer to the method for handling charging abnormality provided in the following text application embodiment.
In the embodiment of the present application, the charge management chip 103 may further include, but is not limited to, the following functions: a charging control function, a charging protection function, a charging state monitoring function, and a charging mode switching function. The charge control function may control the charging process according to the user's needs and the state of the battery 105 of the electronic device 100. The charge protection function may provide overvoltage protection, overcurrent protection, overtemperature protection, and the like. The electronic device 100 may provide a plurality of charging modes, such as constant-current charging, constant-voltage charging, floating charging, and the like, and the charging mode switching function may implement the above-described switching of the charging modes.
In this embodiment of the present application, the embedded controller 104 may be configured to execute the method for handling abnormal charging provided in this embodiment of the present application, for example, the embedded controller 104 detects whether the adapter 200 is charged out, when the adapter 200 is charged out, the embedded controller 104 adjusts parameters related to charging of the adapter 200 in the charging management chip 103 and/or the power charging chip 102, and the embedded controller 104 writes the adjusted parameters into firmware of the corresponding chip.
In some embodiments, the embedded controller 104 may also be used to report fault information. Such as outputting fault information to the bios 107 for reporting to the background via the bios 107. Fault information includes, but is not limited to: adapter 200 fails or adapter 200 is disconnected.
In some embodiments, the embedded controller 104 may be used for power management, battery intelligent charge and discharge management, and control motherboard power.
In some embodiments, the embedded controller 104 may be an embedded host chip that is suspended under the LPC bus (Low pin count Bus) of the processor 106, and the embedded controller 104 is also configured to manage low-speed peripherals such as a keyboard, a touch pad, and status lights.
The battery 105 is also called a built-in battery. The battery 105 is built into the electronic device 100 for powering the electronic device 100. The battery 105 may power the electronic device 100 in response to control of the charge management chip 103. For example, when the charging current is greater than or equal to the first current parameter, the charge management chip 103 may control the battery 105 to output electric energy.
The processor 106 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors 106, digital signal processors 106 (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor 106 may be any conventional processor 106 or the like.
In embodiments of the present application, the processor 106 may reduce the operating frequency based on the down-converted signal.
The bios 107 may include a set of programs that are cured onto the motherboard of the electronic device 100.
In the embodiment of the present application, the power charging chip 102 may be connected to the basic input/output system 107 through an I2C (Inter-Integrated Circuit) bus, so as to implement data interaction between the power charging chip 102 and the basic input/output system 107. The embedded controller 104 may be connected to the bios 107 through an X-BUS or an SPI BUS, thereby enabling data interaction between the embedded controller 104 and the bios 107.
In this embodiment of the present application, the bios 107 may obtain the adapter outage information output by the embedded controller 104, and output the adapter outage information to a computer manager application (not shown), so that the adapter outage information is displayed to the user based on the computer manager application, for example, the unconnected adapter is displayed.
In some embodiments, the bios 107 may store the most important bios programs, system configuration information, post-boot self-test programs, and system self-start programs of the electronic device 100.
In some embodiments, electronic device 100 may also include other powered devices (not shown). The consumer connects the charge management chip 103 and the battery 105.
Referring to fig. 4, a structure of another electronic device 300 according to an embodiment of the present application is exemplarily described.
The electronic device 300 shown in fig. 4 includes the external interface 101, the power charging chip 102, the charging management chip 103, the embedded controller 104, the battery 105, the processor 106, and the bios 107 in the electronic device 100 shown in fig. 2, and the electronic device 300 further includes the sampling resistor R.
Wherein the sampling resistor R is connected between the external interface 101 and the charge management chip 103. The embedded controller 104 may obtain the charging voltage of the adapter 200 by obtaining the voltage across the sampling resistor R.
In some embodiments, the electronic device 300 further includes a sampling module 108. The sampling module 108 is configured to sample voltages at two ends of the sampling resistor R, obtain a charging voltage actually output by the adapter 200, and output the sampled charging voltage to the embedded controller 104.
It is to be understood that the electronic device 100 shown in fig. 2 and the electronic device 300 shown in fig. 4 are examples only, and that the electronic device 100 or the electronic device 300 may have more or less components than shown in the drawings, may combine two or more components, or may have different component configurations. The various components shown in fig. 2 or 4 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The beneficial effects of the electronic device 100, 300 provided in the embodiment of the present application may refer to the beneficial effects of the method for handling abnormal charging provided in the embodiment of the present application, and are not described herein again.
The execution main body of the charge exception handling method provided in the embodiment of the present application may be the above electronic device, or may be a functional module and/or a functional entity capable of implementing the charge exception handling method in the electronic device, and the solution of the present application may be implemented by means of hardware and/or software, and may specifically be determined according to actual use requirements, which is not limited in the embodiment of the present application.
The charging abnormality processing method provided in the embodiment of the present application is described in an exemplary manner by means of component interaction of an electronic device with reference to the accompanying drawings.
Referring to fig. 5, a flow of a method for handling charging abnormality according to an embodiment of the present application is exemplarily described. The charge abnormality processing method flow includes steps S501 to S513.
In step S501, the external interface of the electronic device connects to the adapter.
Wherein the external interface can beA type of physical port.
Illustratively, a user plugs an adapter connected to a power supply (e.g., mains) into an external interface of the electronic device.
In step S502, the power charging chip obtains the charging voltage of the adapter.
In the embodiment of the application, after the external interface of the electronic device is connected with the adapter, the power supply charging chip can collect the charging voltage of the adapter in real time. For example, the charging voltage of the adapter may be 20V, and after the external interface of the electronic device is connected to the adapter, the power adapter charges the electronic device with the charging voltage of 20V, and accordingly, the power charging chip may obtain the charging voltage of 20V of the adapter.
In step S503, the embedded controller obtains the charging voltage of the adapter.
In the embodiment of the application, the embedded controller can acquire the charging voltage acquired by the power charging chip in real time. Illustratively, taking a power charging chip included in the electronic device as a first PD chip and a power charging chip included in the adapter as a second PD chip as examples. When the embedded controller of the electronic device is awakened, the embedded controller runs the corresponding control code logic thereof, and sends power supply information inquiry signaling to the first PD chip, wherein the power supply information inquiry signaling is used for inquiring power supply information of the adapter, and the power supply information comprises but is not limited to: charging voltage, charging current, etc. The first PD chip sends the information inquiry signaling to the second PD chip to indicate the request to acquire the power supply information of the adapter, wherein the corresponding message type can be Control GetSink_Cap. The second PD chip returns the power supply information queried according to the power supply information query signaling to the first PD chip, wherein the corresponding message type can be Data: sink Capability. The first PD chip may output the obtained power supply information to the embedded controller.
In this embodiment of the present application, when the adapter is connected to the electronic device, the power charging chip and the charging management chip may both obtain the charging voltage and/or the charging current of the adapter. Therefore, the embedded controller can acquire the charging voltage of the adapter from the power charging chip or the charging management chip in real time.
In step S504, when the power charging chip detects that the charging voltage is less than or equal to the first voltage threshold value and the duration of the charging voltage less than or equal to the first voltage threshold value is greater than or equal to the first time parameter, it is determined that the adapter is disconnected from charging and outputs a reset signal to the adapter.
In this embodiment of the present application, the power charging chip detects that the charging voltage is less than or equal to the first voltage threshold value, and the duration of the charging voltage less than or equal to the first voltage threshold value is greater than or equal to the value of the first time parameter stored in the firmware of the power charging chip, and the power charging chip outputs the reset signal to the external interface, and then outputs the reset signal to the adapter through the external interface.
In step S505, the adapter is reset according to the reset signal.
After the adapter receives the reset signal, its corresponding control code logic is run, resetting (resetting) the adapter. When the adapter is reset, the adapter will disconnect from the electronic device (i.e., an adapter recharge occurs) and then reestablish connection with the electronic device.
In step S506, when the adapter is disconnected, the embedded controller sends parameter request information for obtaining the first parameter to the corresponding chip.
In the embodiment of the application, the embedded controller can acquire the first voltage threshold value and the first time parameter in advance, and then can detect whether the adapter is charged or not according to the charging voltage acquired in real time. And when the embedded controller detects that the charging voltage is smaller than or equal to the first voltage threshold value and the duration time of the charging voltage smaller than or equal to the first voltage threshold value is larger than or equal to the first time parameter, determining that the adapter is disconnected from charging.
In other embodiments, the embedded controller may determine that the adapter is off-charge when the power charging chip outputs a reset signal.
The first parameter may include a parameter related to charging of the adapter in the charging management chip and/or the power charging chip. Specifically, the first parameters include, but are not limited to: a first time parameter, a first current parameter, and a second time parameter. The corresponding chips include either or both of a charge management chip and a power charging chip.
Wherein the parameter request information may be used for indicating that the acquisition of the first parameter is requested, i.e. the parameter request information indicates the first parameter to be acquired. In other embodiments, the parameter request information may also be used to indicate a specification range for requesting to obtain the first parameter, that is, the parameter request information further indicates a specification range corresponding to the first parameter to be obtained. The specification range corresponding to the first parameter may refer to the content of the specification range corresponding to each parameter, which is not described herein.
Taking the parameter request information as an example only for indicating to acquire the first parameter, the embedded controller may send the parameter request information for acquiring the first time parameter to the power charging chip to acquire the first time parameter in the power charging chip when executing step S506. Alternatively, the embedded controller may send parameter request information for acquiring the first current parameter to the charge management chip to acquire the first current parameter in the charge management chip. Or, the embedded controller may send parameter request information for obtaining the first time parameter to the power charging chip to obtain the first time parameter, and send parameter request information for obtaining the first current parameter and the second time parameter to the charging management chip to obtain the first current parameter and the second time parameter.
It can be understood that when the parameter request information is used for indicating that the first parameter and the specification range corresponding to the first parameter are requested to be obtained, the embedded controller may send the parameter request information once to a certain chip, so that the first parameter and the specification range corresponding to the first parameter in the chip may be obtained simultaneously. Taking the example of sending parameter request information for acquiring the first time parameter to the power charging chip, the parameter request information indicates to acquire the first time parameter and the first specification range. And so on.
In other embodiments, the parameter request information is only used to indicate that the first parameter is acquired, and the specification range request information is only used to indicate that the specification range corresponding to the first parameter is acquired. The embedded controller needs to send the request information to a certain chip at least twice to obtain the first parameter and the specification range corresponding to the first parameter in the chip, and the timing of sending the parameter request information and the timing of sending the specification range request information by the embedded controller can be the same or different, and can be specifically set according to actual conditions, which is not particularly limited in the application.
In step S507, the corresponding chip transmits the first parameter to the embedded controller.
In the embodiment of the present application, in step S506, the embedded controller sends parameter request information to the corresponding chip, and the corresponding chip feeds back corresponding information, such as feeding back the first parameter, or feeding back the first parameter and the specification range corresponding to the first parameter, according to the parameter request information.
For example, in step S506, the embedded controller sends parameter request information for acquiring the first time parameter and the specification range of the first time parameter to the power charging chip, and in step S507, the power charging chip transmits the first time parameter and the first specification range to the embedded controller. For another example, in step S506, the embedded controller transmits parameter request information for acquiring the first current parameter and the specification range of the first current parameter to the charge management chip, and in step S507, the charge management chip transmits the first current parameter and the second specification range to the embedded controller. For another example, in step S506, the embedded controller sends parameter information for acquiring the first current parameter, the second time parameter and the corresponding specification range to the charging management chip, and also sends parameter request information for acquiring the first time parameter and the specification range of the first time parameter to the power charging chip, and in step S507, the charging management chip transmits the first current parameter, the second time parameter, the second specification range and the third specification range to the embedded controller, and the power charging chip transmits the first time parameter and the first specification range to the embedded controller.
It can be understood that when the embedded controller sends to the corresponding chip to acquire some or all of the first parameters, the corresponding chip returns some or all of the first parameters and the specification range of the returned first parameters to the embedded controller.
In step S508, the embedded controller adjusts the first parameter.
In the embodiment of the application, the embedded controller adjusts the first parameter when the adapter is disconnected. Specifically, the embedded controller adjusts the first parameters transmitted in step S507, for example, all the first parameters transmitted in step S507 may be adjusted, or some of the first parameters transmitted in step S507 may be adjusted.
In embodiments of the present application, adjusting the first parameter includes, but is not limited to: increasing the value of the first parameter, decreasing the value of the first parameter, or maintaining the value of the first parameter. For example, the embedded controller may increase the value of the first time parameter within the first specification range. For another example, the embedded controller may decrease the value of the first current parameter within the second specification range. For another example, the embedded controller may increase the gear of the second time parameter within the third specification range.
In the embodiment of the present application, the content of the adjustment of the first parameter by the embedded controller will be described in detail below.
It will be appreciated that the power charging chip and the embedded controller may simultaneously determine that the adapter is off-charge. The execution sequence of steps S504 and S506 and steps S505 and S506 is not particularly limited, and steps S504 and S506 may be simultaneously executed, or steps S505 and S506 may be simultaneously executed.
In step S509, the embedded controller outputs the adjusted first parameter to the corresponding chip.
In the embodiment of the present application, after the first parameter is adjusted in step S508, in step S509, the first parameter adjusted in step S508 is output to the corresponding chip.
For example, in step S508, the embedded controller adjusts the first current parameter of the charge management chip, and in step S509, the embedded controller transmits the adjusted first current parameter to the charge management chip. For another example, in step S508, the embedded controller adjusts the first time parameter of the power charging chip, and in step S509, the embedded controller transmits the adjusted first time parameter to the power charging chip. For another example, in step S508, the embedded controller adjusts the first current parameter, the second time parameter, and the first time parameter of the charging management chip, and in step S509, the embedded controller transmits the adjusted first current parameter and the adjusted second time parameter to the charging management chip, and transmits the adjusted first time parameter to the power charging chip.
Step S510, the corresponding chip operates according to the received adjusted first parameter.
In the embodiment of the present application, after outputting the adjusted first parameter to the corresponding chip in step S508, the corresponding chip operates according to the adjusted first parameter.
For example, in step S508, the embedded controller adjusts the first time parameter, and in step S510, when the charging voltage is smaller than the first voltage threshold, the power charging chip determines whether to output the reset information according to the adjusted first time parameter. For another example, in step S508, the embedded controller adjusts the first current parameter, and in step S510, the charge management chip controls the adapter to output a corresponding charging current according to the adjusted first current parameter. For another example, in step S508, the embedded controller adjusts the second time parameter, and in step S510, when the charging current is greater than or equal to the peak current, the charging management chip determines whether to trigger the processor to perform the frequency down conversion according to the adjusted second time parameter.
In step S511, after the first parameter is adjusted, the embedded controller monitors whether the adapter is disconnected and charged.
In the embodiment of the application, after the first parameter is adjusted, the corresponding chip operates according to the received adjusted first parameter. When or after the corresponding chip operates according to the received adjusted first parameter, the embedded controller can judge whether the adapter is disconnected and charged or not through the charging voltage obtained in real time. And when the charging voltage is detected to be larger than the first voltage threshold value, the adapter is recovered from the charging interruption. And if the charging voltage is detected to be smaller than or equal to the first voltage threshold value, the adapter is disconnected and not restored.
In step S512, when the off-charge is recovered, the embedded controller writes the adjusted first parameter into the firmware of the corresponding chip.
The embedded controller writes the adjusted first parameter into the firmware of the corresponding chip, and the value of the first parameter corresponding to the firmware can be set as the value of the adjusted first parameter by means of burning or updating the firmware and the like.
In this embodiment of the present application, the adjusted first parameters include all first parameters adjusted by the embedded controller in a period from when the adapter is disconnected to when the adapter is disconnected, and the value of the adjusted first parameters is the value of the parameter operated by the chip when the adapter is disconnected and restored.
For example, in the period from the time when the adapter is disconnected to the time when the adapter is disconnected and the adapter is restored, the embedded controller adjusts the value of the first time parameter from the original fixed value a to b, and detects that the adapter is disconnected and the adapter is not restored when the power charging chip runs according to the value of the first time parameter as b. The embedded controller continues to adjust the value of the first current parameter to be c. When the power charging chip operates according to the value b of the first time parameter and the charging management chip operates according to the value c of the first current parameter, the embedded controller sets the value b of the first time parameter in the firmware of the power charging chip and sets the value c of the first current parameter in the firmware of the charging management chip when the adapter is detected to be in a disconnected charging recovery state.
For another example, as in the above example, when the power charging chip is operated according to the value b of the first time parameter, if the adapter is not restored after the power charging is disconnected, the embedded controller adjusts the value of the first time parameter to the original fixed value a, and continues to adjust the value of the first current parameter to be c. When the power supply charging chip operates according to the value of the first time parameter as a and the charging management chip operates according to the value of the first current parameter as c, if the adapter is detected to be in a disconnected state, the embedded controller keeps the value of the first time parameter in the firmware of the power supply charging chip as an original fixed value as a, and the value of the first current parameter in the firmware of the charging management chip is set as c.
For another example, the embedded controller only adjusts the first current parameter of the charge management chip in a period from when the adapter is disconnected to when the adapter is disconnected and restored, and when the charge management chip operates according to the value of the first parameter being a, the value of the first current parameter in the firmware of the charge management chip is set to be a when the adapter is detected to be disconnected and restored.
It can be understood that, in fig. 5, steps S506, S507, S509, S510, S512 take the corresponding chips including the charge management chip and the power charging chip as examples, and the first parameter adjustment in the embodiment of the present application is not specifically limited.
In step S513, when the adapter is not restored due to the disconnection and the charging of the adapter is determined to be faulty, the embedded controller outputs the fault information to the bios.
In the embodiment of the application, the embedded controller can determine the adapter fault according to the adjusted parameters and the failure of the adapter. When the adapter fails, the embedded controller can output failure information to the basic input and output system, so that the failure information can be reported to a corresponding application (such as a computer manager) through the basic input and output system, and then the failure information can be uploaded to the background through the corresponding application, so that background staff can be notified in time.
The charge exception handling method provided by the embodiment of the application includes, but is not limited to, the following technical effects:
according to the method and the device for charging the electronic equipment, when the electronic equipment is charged through the adapter, the electronic equipment can automatically detect the adapter to be disconnected and charge the adapter, and when the adapter is disconnected and charged, the first time parameter, the first current parameter and the value corresponding to the second time parameter are flexibly adjusted, so that the most proper parameter value is configured for charging between the electronic equipment and the adapter, and the adapter is repaired to be disconnected and charged.
Referring to fig. 6, another flow of a method for processing a charging abnormality according to an embodiment of the present application is exemplarily described, and the method for processing a charging abnormality may be applied to the electronic device described above, and may specifically be executed by an embedded controller. The method flow includes steps S601 to S606. The content of step S602 may refer to step S509 and step S510, the content of step S603 may refer to step S511, and the content of step S604 may refer to step S512, which are not described herein.
In step S601, when the adapter is disconnected from charging, the embedded controller adaptively adjusts one or more of the first time parameter, the first current parameter, and the second time parameter.
In the embodiment of the application, the embedded controller can acquire the charging voltage obtained by the power charging chip in real time, and determine whether the adapter is charged or not according to the charging voltage. In other embodiments, the embedded controller may determine whether the adapter is charged off based on the adapter presence notified by the charge management chip. Specifically, the adapter is inserted into the external interface, the external interface informs the charge management chip of the level change and the charge voltage of the charge management chip, an insertion event of the external interface is determined according to the level change, the adapter is determined to be inserted into the external interface according to the charge voltage, and then the charge management chip determines that the adapter is in place. The charging management chip informs the embedded controller of the in-place condition of the adapter, and the embedded controller can determine whether the adapter is charged or not according to the in-place condition of the adapter.
It will be appreciated that the embedded controller may also determine whether the adapter is disconnected based on other ways, as embodiments of the present application are not specifically limited.
In an embodiment of the present application, the adjusting the first parameter by the embedded controller includes, but is not limited to: increasing the value of the first time parameter, decreasing the value of the first current parameter, and increasing the gear of the second time parameter. The embedded controller is adapted to one or more of the following: increasing the value of the first time parameter, decreasing the value of the first current parameter, and increasing the gear of the second time parameter.
Referring to fig. 3, the principle of adjusting the first parameter according to the embodiment of the present application is described by way of example.
In this embodiment of the present application, if the first parameter is not adjusted, for example, the value of the first time parameter TDebounce time is increased, the value of the first current parameter is reduced, or the gear of the second time parameter is increased, once the charging voltage VBUS is smaller than or equal to the first voltage threshold VPD, and the duration of the charging voltage VBUS is smaller than or equal to the first voltage threshold VPD and is greater than or equal to the original value of the first time parameter TDebounce time, the power charging chip resets the adapter, resulting in the adapter being disconnected from charging, and the adapter cannot provide more energy for the electronic device. Meanwhile, if the response speed of the charging management chip is low, the battery of the electronic equipment cannot supply power to the electronic equipment in time, so that the normal operation of the electronic equipment is affected.
In this embodiment of the present application, when the embedded controller increases the value of the first time parameter TDebounce time relative to the value of the first time parameter TDebounce time, the power charging chip operates according to the value of the first time parameter TDebounce time after the increase, and after the charging voltage VBUS is smaller than the first voltage threshold VPD, the power charging chip needs more time to output the reset signal to the adapter. That is, after the value of the first time parameter TDebounce time is increased, the frequency of the reset signal output by the power charging chip can be reduced, and accordingly the frequency of the adapter charging interruption is reduced.
Further, as shown in fig. 3, after the value of the first time parameter TDebounce time is increased, the charging current IBUS can be increased more, that is, the adapter can provide more electric energy for the electronic device, so as to ensure the output capability of the adapter and the normal operation of the electronic device.
Further, when the charging current IBUS continuously rises to be greater than or equal to the first current parameter ILIM2, the response speed based on the charging management chip is slow, and the charging management chip may not respond in time. After the value of the first time parameter TDebounce time is increased, more time can be provided for the charge management chip to respond. I.e. delayed reset, the probability that the charge management chip triggers the adapter to reduce the charging current IBUS and the probability that the battery is triggered to output electric energy can be increased. After the charging current IBUS is reduced by the adapter, the charging voltage VBUS of the adapter rises, and then the charging voltage VBUS can be larger than the first voltage threshold value VPD, so that the charging is recovered, and meanwhile, the normal operation of the electronic equipment can be ensured by outputting electric energy from the battery.
In this embodiment of the present application, after the value of the first current parameter ILIM2 is reduced, the charging management chip may be triggered to limit the charging current IBUS more quickly, that is, the charging management chip may be triggered to output a control instruction to the adapter more quickly, so that the adapter reduces the charging current IBUS. When the charging current IBUS decreases, the charging voltage VBUS of the adapter correspondingly increases, and the charging voltage VBUS after the increase can be greater than the first voltage threshold VPD, so that the condition that the power charging chip outputs the reset signal to the adapter is not satisfied, that is, the adapter is disconnected and charged and recovered.
Further, after the value of the first current parameter ILIM2 is reduced, the charging management chip can be triggered faster to control the battery to output electric energy, so that electric energy can be provided for the electronic equipment faster, and normal operation of the electronic equipment is ensured.
In this embodiment of the present application, after the gear of the second time parameter TICRIT Debounce time is increased, the probability that the charging management chip triggers the processor to limit the frequency is reduced, so as to provide more time for the charging management chip with a slow response speed to respond. I.e. delay processor down-conversion, the probability that the charge management chip triggers the adapter to reduce the charge current IBUS and the probability that the battery is triggered to output electric energy can be increased. After the charging current IBUS is reduced by the adapter, the charging voltage VBUS of the adapter rises, and then the charging voltage VBUS can be larger than the first voltage threshold value VPD, so that the charging is recovered, and meanwhile, the normal operation of the electronic equipment can be ensured by outputting electric energy from the battery.
In step S602, the embedded controller transmits the adjusted first parameter to the corresponding chip, so that the corresponding chip operates according to the adjusted first parameter.
In the embodiment of the present application, if the embedded controller adjusts one or more of the first time parameter, the first current parameter, and the second time parameter, the corresponding chip may be one or more of a charging management chip and a power charging chip. When the corresponding chip comprises a power supply charging chip, the adjusted first time parameter is transmitted to the power supply charging chip. When the corresponding chip comprises a charge management chip, one or more of the adjusted first current parameter and second time parameter are transmitted to the charge management chip.
In step S603, after the first parameter is adjusted, the embedded controller obtains the charging failure condition of the adapter.
In this embodiment of the present application, after the embedded controller adjusts the value of the first parameter, the corresponding chip operates according to the adjusted value of the first parameter, and then the embedded controller may determine the charging failure condition of the adapter according to the charging voltage. When the charging voltage is changed from being smaller than or equal to the first voltage threshold value to being larger than the first voltage threshold value, the charging interruption condition is that the charging interruption is recovered. And when the charging voltage is always smaller than or equal to the first voltage threshold value, the charging interruption condition is that the charging interruption is not recovered.
In step S604, when the charging failure condition is the charging failure recovery, the embedded controller writes the adjusted first parameter into the corresponding firmware.
In step S605, when the charging failure condition is that the charging failure is not recovered, the embedded controller determines whether the current first time parameter and the current first current parameter both exceed the corresponding specification range.
When the charging interruption condition is that the charging interruption is not recovered, the embedded controller judges whether the current first time parameter exceeds a first specification range and whether the current first current parameter exceeds a second specification range. If the current first time parameter exceeds the first specification range and the current first current parameter exceeds the second specification range, the embedded controller executes step S606. If the current first time parameter exceeds the first specification range and the current first current parameter exceeds the second specification range, the embedded controller repeatedly executes step S601. That is, if the current first time parameter does not exceed the first specification range, or the current first current parameter does not exceed the second specification range, or the current first time parameter does not exceed the first specification range and the current first current parameter does not exceed the second specification range, the embedded controller repeatedly executes step S601.
It is understood that, when executing step S605, if the embedded controller adjusts only the first time parameter or only the first current parameter, it is obvious that the other unadjusted parameter does not exceed the corresponding specification range, i.e. does not meet the current first time parameter and the current first current parameter both exceed the corresponding specification range, so that step S601 is repeatedly executed.
The current first time parameter, i.e. the value of the first time parameter at the current moment when the step S605 is executed, and correspondingly, the current first current parameter at the current moment when the step S605 is executed. The current first time parameter or the current first current parameter may be a value when the step S605 is executed after the parameter adjustment is performed, or may be an original fixed value that has not been adjusted.
It is understood that, when the embedded controller repeatedly executes step S601, the first parameter adjusted by the embedded controller may be the same as or different from the first parameter adjusted previously. For example, taking the adjustment of the first time parameter by the embedded controller as an example, when the embedded controller needs to repeatedly execute the step S601 after executing the step S605, the embedded controller may continuously adjust the first time parameter, or may adjust the first current parameter or adjust the second time parameter.
It should be noted that, during the period from when the embedded controller adjusts the first parameter to when the embedded controller obtains the charging failure condition of the adapter after the corresponding chip operates according to the adjusted first parameter, as in the above-mentioned step S601 to step S603, the value of the first parameter is adjusted only once for a certain first parameter. In other words, after the value of a certain first parameter is adjusted, the corresponding chip operates according to the adjusted value of the first parameter, and then the embedded controller obtains the disconnection and charging condition of the adapter, and when the disconnection and charging are not recovered, the next value adjustment can be performed for the first parameter.
In step S606, the embedded controller determines an adapter failure and outputs failure information to the bios.
In the embodiment of the application, when the embedded controller determines that the adapter fails, the embedded controller may report the failure information to the background first, and then report the failure information to the computer manager.
The charge exception handling method provided by the embodiment of the application includes, but is not limited to, the following technical effects:
according to the embodiment of the application, when the adapter is charged, the embedded controller configures the most proper parameter value for the situation under the current condition by flexibly adjusting the values corresponding to the first time parameter, the first current parameter and the second time parameter so as to repair the charging of the adapter, and meanwhile, the normal operation of the electronic equipment can be ensured.
In some embodiments, the embedded controller may adjust the first parameter according to a preset rule. Specifically, the embedded controller increases the first time parameter according to a first preset rule, and/or the embedded controller decreases the first current parameter according to a second preset rule, and/or the embedded controller increases the second time parameter according to a third preset rule. Wherein the first preset rule, the second preset rule and the third preset rule may be the same or different.
In this embodiment of the present application, the adding, by the embedded controller, the first time parameter according to the first preset rule includes: the embedded controller acquires a first adjustment value, and increases the value of the current first time parameter by the first adjustment value to obtain an adjusted first time parameter. The current value of the first time parameter is a value of the first time parameter obtained when the first time parameter is added, and may be an original fixed value of the first time parameter which is not yet adjusted, or may be a value of the adjusted first time parameter obtained after the last adjustment, where the first adjustment value is a preset percentage of a current difference value, and the current difference value is a difference value obtained by subtracting the current value of the first time parameter from a maximum value in a specification range of the first time parameter.
In an embodiment of the present application, the reducing, by the embedded controller, the first current parameter according to the second preset rule includes: the embedded controller obtains a second adjustment value, and subtracts the second adjustment value from the value of the current first current parameter to obtain an adjusted first time parameter. The current value of the first current parameter is a value of the first current parameter obtained when the first current parameter is reduced, and may be an original fixed value of the first current parameter which is not yet adjusted, or may be a value of the adjusted first current parameter obtained after the previous adjustment, the second adjustment value is a preset percentage of a current difference value, and the current difference value is a difference value obtained by subtracting the current value of the first current parameter from a maximum value in a specification range of the first current parameter.
The third preset rule may be a gear that sequentially increases the second time parameter. The embedded controller increasing the second time parameter according to a third preset rule includes: the current gear of the second time parameter may be increased to the next gear.
The preset percentage may be three percent, four percent, five percent, etc., which is not specifically limited in this application. The preset percentage corresponding to the first adjustment value may be the same as or different from the percentage corresponding to the second adjustment value, which is not specifically limited in this application.
In the embodiment of the application, the embedded controller adjusts the corresponding first parameter according to the corresponding preset rule, the corresponding chip operates according to the value of the adjusted first parameter, and when the adapter is not restored after the charging is interrupted, the embedded controller adjusts the corresponding first parameter according to the corresponding preset rule, and so on. For example, taking the current value of the first time parameter as 2s as an example, the maximum value in the first specification range as 6s and the preset percentage as 5% as an example, the first adjustment value is calculatedAnd the value of the embedded controller after the first time parameter is added is 2s+0.2s=2.2s, and the power supply charging chip operates according to the value of the first time parameter being 2.2 s. If it is detected that the running adapter is not restored after the charging is stopped when the value of the first time parameter is 2.2s, the embedded controller adjusts the corresponding first parameter according to the corresponding preset rule, the value of the current first time parameter is 2.2s after the last adjustment, and the first adjustment value is calculated as ++>And the value of the embedded controller after the first time parameter is increased is 2.2s+0.19s=2.39s, and the power supply charging chip operates according to the value of the first time parameter of 2.39s, and so on.
Referring to fig. 7, a flow of a method for adjusting a first parameter provided in an embodiment of the present application is exemplarily described, and the method for processing a charging abnormality may be applied to the electronic device, and in particular, may be executed by an embedded controller. The method flow includes steps S701 to S713, wherein the contents of steps S701 to S704, steps S706 to S709, and steps S711 to S716 may be referred to above, and will not be repeated herein.
In step S701, the embedded controller increases the first time parameter according to a first preset rule.
In step S702, the embedded controller transmits the increased first time parameter to the power charging chip, so that the power charging chip operates according to the increased first time parameter.
In step S703, after the first time parameter is added, the embedded controller obtains the charging failure condition of the adapter.
In step S704, when the charging failure condition is the charging failure recovery, the embedded controller writes the adjusted first time parameter into the firmware of the power charging chip.
In step S705, when the charging failure is that the charging failure is not recovered, the embedded controller determines whether the number of times of adjusting the first time parameter reaches a first threshold.
In the embodiment of the present application, for each first parameter, an adjustment number threshold is set for it. A first threshold is set for the first time parameter. The first threshold is used for indicating that when the number of times of continuously adjusting the first time parameter reaches the first threshold and the charging failure condition is not recovered, other first parameters except the first time parameter, such as the first current parameter or the second time parameter, are adjusted. The first threshold is greater than or equal to 1.
In this embodiment of the present application, while adjusting the first time parameter, the embedded controller accumulates the number of times of adjusting the first time parameter, so as to detect that the charging failure condition is that the charging failure is not recovered after the first time parameter is adjusted, and determine whether the number of times of adjusting the first time parameter reaches the first threshold. If not, the embedded controller repeatedly executes step S701. If so, the embedded controller may adjust other first parameters besides the first time parameter, for example, the embedded controller performs step S706.
In some embodiments, when the embedded controller adjusts other first parameters except the first time parameter, the recorded number of times of adjusting the first time parameter may be cleared, so that the number of times of adjusting the first time parameter may be reckoned when the first time parameter is adjusted next time.
In step S706, the embedded controller reduces the first current parameter according to the second preset rule.
In step S707, the embedded controller transmits the reduced first current parameter to the charge management chip, so that the charge management chip operates according to the reduced first current parameter.
In step S708, after the first current parameter is reduced, the embedded controller obtains the charging failure condition of the adapter.
In step S709, when the charging failure condition is the charging failure recovery, the embedded controller writes the adjusted first parameter into the firmware of the corresponding chip.
The adjusted first parameter in step S709 may include an adjusted first time parameter and an adjusted first current parameter. Step S709 may specifically include: and when the charging is stopped and recovered, writing the numerical value of the first parameter operated in the charging management chip and the power charging chip into the firmware of the corresponding chip.
In step S710, when the charging failure condition is that the charging failure is not recovered, the embedded controller determines whether the number of times of adjusting the first current parameter reaches the second threshold.
In an embodiment of the present application, a second threshold is set for the first current parameter. The second threshold is used for indicating that when the number of times of continuously adjusting the first current parameter reaches the second threshold and the charging failure condition is not recovered, other first parameters besides the first current parameter, such as a first time parameter or a second time parameter, are adjusted. The second threshold is greater than or equal to 1.
In the embodiment of the application, when the first current parameter is adjusted, the embedded controller accumulates the times of adjusting the first current parameter, so that the situation that the charging is interrupted is not recovered after the first current parameter is adjusted is detected, and whether the times of adjusting the first current parameter reaches the second threshold value is judged. If not, the embedded controller repeatedly executes step S706. If so, the embedded controller may adjust other first parameters except the first current parameter, for example, the embedded controller performs step S701 or step S713, or may determine whether the adjusted parameters exceed the corresponding specifications, for example, the embedded controller performs step S711.
In some embodiments, when the embedded controller adjusts the first parameter other than the first current parameter, the recorded number of times of adjusting the first current parameter may be cleared, so that the number of times of adjusting the first current parameter may be reckoned when the first current parameter is adjusted next time.
In step S711, the embedded controller determines whether the current first time parameter and the current first current parameter both exceed the corresponding specification ranges.
If the current first time parameter and the current first current parameter both exceed the corresponding specification ranges, the embedded controller executes step S712. If the current first time parameter and the current first current parameter are not met and both exceed the corresponding specification range, the embedded controller may execute step S713 or execute step S701 or execute step S706.
In some embodiments, the specific gravity of the first time parameter and the first current parameter may be adjusted to be increased. The adjusting phase with the first parameter includes starting to adjust the first parameter to initially end the adjusting of the first parameter. Illustratively, the adjusting phase of the first time parameter includes steps S701 to S705, and the result of the determination is yes. Accordingly, the adjustment stage of the first current parameter includes steps S706 to S710, and the determination result is yes.
After the first time parameter and the first current parameter both pass through one adjustment stage, the adjustment of one or both of the first time parameter and the first current parameter may be continuously and repeatedly performed, so as to perform the adjustment of the second time parameter when the number of times of repeating the adjustment stage of the first time parameter and/or the adjustment stage of the first current parameter reaches the preset number of times threshold and the charging is not recovered. The preset frequency threshold may be 2, 3, etc.
In some embodiments, when the number of times of repeating the first time parameter adjustment phase reaches the preset number of times threshold, it may be ensured that the adjusted first time parameter does not exceed the first specification range. Accordingly, when the number of times of repeating the adjustment phase of the first current parameter reaches the preset number of times threshold, it can be ensured that the adjusted first current parameter does not exceed the second specification range.
If yes, step S712, the embedded controller determines the adapter failure, and outputs the failure information to the bios.
If not, in step S713, the embedded controller increases the second time parameter according to the third preset rule.
In step S714, the embedded controller transmits the increased second time parameter to the charge management chip, so that the charge management chip operates according to the increased second time parameter.
In step S715, after the second time parameter is added, the embedded controller obtains the charging failure condition of the adapter.
In step S716, when the charging failure condition is the charging failure recovery, the embedded controller writes the adjusted first parameter into the firmware of the power charging chip.
In step S717, when the charging failure is that the charging failure is not recovered, the embedded controller determines whether the number of times of adjusting the second time parameter reaches the third threshold.
In an embodiment of the present application, a third threshold is set for the second time parameter. The third threshold is used for indicating that when the number of times of continuously adjusting the second time parameter reaches the third threshold and the charging failure condition is not recovered, other first parameters except the second time parameter, such as the first time parameter or the first current parameter, are adjusted. The third threshold is greater than or equal to 1.
In this embodiment of the present application, while adjusting the second time parameter, the embedded controller accumulates the number of times of adjusting the second time parameter, so as to determine whether the number of times of adjusting the second time parameter reaches the third threshold when detecting that the charging failure condition is that the charging failure is not recovered after adjusting the second time parameter. If not, the embedded controller repeatedly executes step S713. If so, the embedded controller may adjust other first parameters besides the second time parameter, for example, the embedded controller performs step S701 or step S706.
In some embodiments, when the embedded controller adjusts the first parameter other than the second time parameter, the recorded number of times of adjusting the second time parameter may be cleared, so that the number of times of adjusting the second time parameter may be reckoned when the second time parameter is adjusted next time.
In some embodiments, the first threshold and/or the second threshold may be set to be greater than or equal to 2, so as to increase the proportion of the embedded controller that adjusts the first time parameter and/or the first current parameter, and preferably, the adapter is repaired from being charged by adjusting the first time parameter and/or the first current parameter. The first threshold value and the second threshold value may be the same or different, which is not specifically limited in the embodiments of the present application.
In some embodiments, when the interruption of the charging condition in step S704, step S709, or step S716 is the interruption recovery, the embedded controller obtains feedback from the processor or the charging management chip, so as to determine whether the adjusted first parameter has an influence on the performance of the processor according to the feedback. If the power supply charging chip is not influenced, writing the adjusted first parameter into firmware of the power supply charging chip. If so, readjusting the first parameter, such as executing step S701 or step S706 or step S713. Specifically, when the adjusted first parameter affects the performance of the processor, the charging management chip may be caused to send a Prochot signal to the processor. The charging management chip determines the influence performance according to the transmitted Prochot signal, and the processor determines the influence performance according to the received Prochot signal.
The charge exception handling method provided by the embodiment of the application includes, but is not limited to, the following technical effects:
when the adapter is disconnected, the embedded controller flexibly adjusts the values corresponding to the first time parameter, the first current parameter and the second time parameter, specifically, adjusts the adjustment proportion of the first time parameter, the first current parameter and the second time parameter by setting the first threshold, the second threshold and the third threshold, and configures the most suitable parameter value for the current situation so as to repair the adapter to be disconnected, and meanwhile, normal operation of the electronic equipment can be guaranteed.
Referring to fig. 8, another flow of a method for handling charging abnormality according to an embodiment of the present application is exemplarily described. The charge abnormality processing method may be applied to the above-described electronic device, and in particular, may be executed by an embedded controller. The method flow includes steps S801 to S802.
Step S801, when the adapter is not restored due to the disconnection and the charging, the embedded controller circularly executes the following adjustment operations until the adapter is restored due to the disconnection and the charging or the adapter failure is determined: adjusting the first parameter, and transmitting the adjusted first parameter to a corresponding chip so that the chip operates according to the adjusted first parameter; wherein the first parameter comprises one or more of a first time parameter and a first current parameter; the first time parameter is used for indicating a time threshold value for triggering the power supply to charge the chip reset adapter, and the first current parameter is used for indicating a current threshold value for triggering the charge management chip to limit the charging current of the adapter.
In an embodiment of the present application, the adjustment operation includes a first operation and/or a second operation and/or a third operation. Wherein the first operation comprises: and increasing the first time parameter according to a first preset rule, and transmitting the increased first time parameter to the power charging chip so that the power charging chip operates according to the increased first time parameter. Wherein the second operation comprises: and reducing the first current parameter according to a second preset rule, and transmitting the reduced first current parameter to the charging management chip so that the charging management chip operates according to the reduced first current parameter. Wherein the third operation comprises: and adding the second time parameter according to a third preset rule, and transmitting the added second time parameter to the charging management chip so that the charging management chip operates according to the added second time parameter.
The embedded controller loops the following adjustment operations including: the embedded controller cyclically performs the first operation and/or the second operation and/or the third operation. That is, the embedded controller cyclically performs a first operation, or the embedded controller cyclically performs a second operation, or the embedded controller cyclically performs a third operation, or the embedded controller cyclically performs the first operation and the second operation, or the embedded controller cyclically performs the first operation and the third operation, or the embedded controller cyclically performs the second operation and the third operation, or the embedded controller cyclically performs the first operation, the second operation, and the third operation.
Wherein the embedded controller performs the first operation in a loop, reference may be made to the above steps S701 to S705. The embedded controller cyclically performs the second operation with reference to steps S706 to S710. The embedded controller performing the third operation in a loop may refer to steps S713 to S717 described above.
The first operation and the second operation are performed by the embedded controller in a circulating manner, the first operation and the third operation are performed by the embedded controller in a circulating manner, or the first operation, the second operation and the third operation are performed by the embedded controller in a circulating manner, and the like.
The embedded controller loops performing the first operation and the second operation including, but not limited to, the following:
case one: the embedded controller executes a first operation, and when the adapter is not recovered after the charging is disconnected, the embedded controller judges whether the times of adjusting the first time parameter reach a first threshold value, wherein the first threshold value is larger than or equal to 1; if not, the embedded controller executes a first operation; if yes, the embedded controller executes a second operation. Specifically, reference may be made to the above-described steps S701 to S706.
And a second case: the embedded controller increases the first time parameter according to a first preset rule, reduces the first current parameter according to a second preset rule, transmits the increased first time parameter to the power charging chip and transmits the reduced first current parameter to the charging management chip, so that the power charging chip operates according to the increased first time parameter, and the charging management chip operates according to the reduced first current parameter.
In the second case, when the adapter is disconnected, the embedded controller increases the first time parameter according to the first preset rule and decreases the first current parameter according to the second preset rule. Through the numerical value of balanced first time parameter and first current parameter, can reduce the frequency that power charging chip output reset signal when promoting charging voltage, can provide more time for charging management chip simultaneously and remove the response, increase charging management chip trigger adapter and reduce the probability of charging current IBUS and trigger battery output electric energy, therefore the numerical value of first current parameter can not drop too low, let the adapter provide more electric energy for electronic equipment, guarantee the output ability of adapter and electronic equipment's normal operating.
Illustratively, the embedded controller loop performing the first, second, and third operations may include: on the basis of the first situation, after the second operation is executed and when the adapter is not recovered from the disconnection, judging whether the number of times of adjusting the first current parameter reaches a second threshold value, wherein the second threshold value is greater than or equal to 1; if not, the embedded controller executes a second operation; if yes, the embedded controller executes a third operation. Specifically, reference may be made to the above-described steps S701 to S713.
Step S802, when the adapter is disconnected and restored, the embedded controller writes the adjusted first parameter into the firmware of the corresponding chip.
The content of step S802 may be referred to above, and will not be described here.
It should be noted that, all relevant contents of each step related to the above method embodiment may be cited to the functional description of the corresponding functional module, which is not described herein.
The embodiment of the application also provides a computer program product, which when running on a computer, causes the computer to execute the related steps so as to realize the charge abnormality processing method in each method embodiment.
The embodiment of the application also provides a computer storage medium, which includes computer instructions that, when executed on an electronic device, cause the electronic device to execute the charging anomaly handling method as in the above embodiment.
The electronic device, the computer storage medium, the computer program product, or the charging system provided in the embodiments of the present application are all configured to execute the corresponding method provided above, so that the beneficial effects thereof can be referred to the beneficial effects in the corresponding method provided above, and are not described herein.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated unit may be stored in a readable storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions to cause a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered in the protection scope of the present application.

Claims (10)

1. The method for processing the abnormal charging is characterized by being applied to electronic equipment, wherein the electronic equipment is connected with an adapter, the electronic equipment comprises an embedded controller, a power charging chip and a charging management chip, and the embedded controller is connected with the power charging chip and the charging management chip, and the method comprises the following steps:
when the adapter is not recovered from the outage, the embedded controller cyclically performs the following adjustment operations, including a first operation and a second operation, until the adapter is recovered from the outage or the adapter failure is determined: the first operation includes: increasing a first time parameter according to a first preset rule, and transmitting the increased first time parameter to the power charging chip so that the power charging chip operates according to the increased first time parameter;
the second operation includes: reducing a first current parameter according to a second preset rule, and transmitting the reduced first current parameter to the charging management chip so that the charging management chip operates according to the reduced first current parameter;
The first time parameter is used for indicating a time threshold value for triggering the power supply charging chip to reset the adapter, and when the duration of the charging voltage of the adapter being smaller than or equal to the first voltage threshold value is larger than or equal to the first time parameter, the power supply charging chip resets the adapter; the first current parameter is used for indicating a current threshold value for triggering the charging management chip to limit the charging current of the adapter, and when the charging current of the adapter is greater than or equal to the first current parameter, the charging management chip limits the charging current output by the adapter;
and when the adapter is in the disconnected state and is recovered, the embedded controller writes the adjusted parameters into the firmware of the corresponding chip.
2. The method of claim 1, wherein the embedded controller performing the first operation and the second operation in a loop comprises:
the embedded controller performs the first operation;
when the adapter is not recovered after the charging is disconnected, the embedded controller judges whether the times of adjusting the first time parameter reach a first threshold value, wherein the first threshold value is larger than or equal to 1;
if not, the embedded controller executes the first operation;
If so, the embedded controller executes the second operation.
3. The method of claim 2, wherein the electronic device further comprises a processor, the charge management chip being coupled to the processor;
the adjusting operation further includes a third operation including: adding a second time parameter according to a third preset rule, and transmitting the added second time parameter to the charging management chip so that the charging management chip operates according to the added second time parameter; the second time parameter is used for indicating a time threshold value for triggering the charging management chip to output a down-conversion signal to the processor; the down-conversion signal is used for indicating the processor to down-convert;
the embedded controller performing the following adjustment operations in a loop further includes:
after the second operation is executed and when the adapter is not recovered after the disconnection and the charging, the embedded controller judges whether the number of times of adjusting the first current parameter reaches a second threshold value, wherein the second threshold value is larger than or equal to 1;
if not, the embedded controller executes the second operation;
if so, the embedded controller executes the third operation.
4. The method of claim 1, wherein the embedded controller to cycle through the first operation and the second operation when the adapter is not being restored comprises:
when the adapter is not recovered after the charging is interrupted, the embedded controller judges whether the current first time parameter exceeds the specification range of the first time parameter or not, and judges whether the current first current parameter exceeds the specification range of the first current parameter or not;
when the current first time parameter does not exceed the specification range of the first time parameter and/or the current first current parameter does not exceed the specification range of the first current parameter, the embedded controller increases the first time parameter according to a first preset rule and decreases the first current parameter according to a second preset rule; the embedded controller transmits the increased first time parameter to the power supply charging chip and transmits the reduced first current parameter to the charging management chip, so that the power supply charging chip operates according to the increased first time parameter, and the charging management chip operates according to the reduced first current parameter.
5. The method of any one of claims 1 to 4, wherein increasing the first time parameter according to the first preset rule comprises:
obtaining a first adjustment value, wherein the first adjustment value is a preset percentage of a current difference value, and the current difference value is obtained by subtracting the current value of the first time parameter from the maximum value in the specification range of the first time parameter;
and increasing the current value of the first time parameter by the first adjustment value to obtain the increased first time parameter.
6. The method of any one of claims 1 to 4, wherein said reducing said first current parameter according to a second preset rule comprises:
obtaining a second adjustment value, wherein the second adjustment value is a preset percentage of a current difference value, and the current difference value is obtained by subtracting the current value of the first current parameter from the maximum value in the specification range of the first current parameter;
and subtracting the second adjustment value from the current value of the first current parameter to obtain the reduced first time parameter.
7. The method of claim 1, wherein the method further comprises:
And when the adapter is not recovered after the charging is disconnected, and the adjusted first current parameter and the adjusted first time parameter are both beyond the corresponding specification range, the embedded controller determines the adapter fault and uploads fault information.
8. An electronic device, the electronic device connection adapter, comprising: the device comprises an embedded controller, a power supply charging chip and a charging management chip; the embedded controller is connected to the power charging chip and the charging management chip, and invokes a computer program to perform the method of any one of claims 1 to 7.
9. A charging system, characterized in that the charging system comprises an electronic device and an adapter, the electronic device being the electronic device according to claim 8; the adapter is connected with the electronic equipment to supply power for the electronic equipment.
10. A computer storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any one of claims 1 to 7.
CN202311444585.1A 2023-11-02 2023-11-02 Charging abnormality processing method, device, system, storage medium, and program product Active CN117175752B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311444585.1A CN117175752B (en) 2023-11-02 2023-11-02 Charging abnormality processing method, device, system, storage medium, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311444585.1A CN117175752B (en) 2023-11-02 2023-11-02 Charging abnormality processing method, device, system, storage medium, and program product

Publications (2)

Publication Number Publication Date
CN117175752A CN117175752A (en) 2023-12-05
CN117175752B true CN117175752B (en) 2024-04-02

Family

ID=88932109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311444585.1A Active CN117175752B (en) 2023-11-02 2023-11-02 Charging abnormality processing method, device, system, storage medium, and program product

Country Status (1)

Country Link
CN (1) CN117175752B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012115080A (en) * 2010-11-26 2012-06-14 Nec Casio Mobile Communications Ltd Charge control method, charge control system, and charge control program
CN103207655A (en) * 2012-01-12 2013-07-17 宇龙计算机通信科技(深圳)有限公司 Mobile terminal with reset function and reset method
CN104903143A (en) * 2012-11-28 2015-09-09 宝马股份公司 Charging an electrical energy store on an electric vehicle at a socket with reduction of the charging current after failure and restoration of the power supply
CN110931908A (en) * 2019-11-27 2020-03-27 北京金茂绿建科技有限公司 Energy storage device safety control system based on optical fiber temperature measurement
CN116031972A (en) * 2022-12-13 2023-04-28 合肥市芯海电子科技有限公司 Parameter adjustment method for charging chip, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012115080A (en) * 2010-11-26 2012-06-14 Nec Casio Mobile Communications Ltd Charge control method, charge control system, and charge control program
CN103207655A (en) * 2012-01-12 2013-07-17 宇龙计算机通信科技(深圳)有限公司 Mobile terminal with reset function and reset method
CN104903143A (en) * 2012-11-28 2015-09-09 宝马股份公司 Charging an electrical energy store on an electric vehicle at a socket with reduction of the charging current after failure and restoration of the power supply
CN110931908A (en) * 2019-11-27 2020-03-27 北京金茂绿建科技有限公司 Energy storage device safety control system based on optical fiber temperature measurement
CN116031972A (en) * 2022-12-13 2023-04-28 合肥市芯海电子科技有限公司 Parameter adjustment method for charging chip, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
动力锂电池组充放电智能管理***设计与实现;王天福等;《电源技术》;第35卷(第9期);第1069-1071页 *

Also Published As

Publication number Publication date
CN117175752A (en) 2023-12-05

Similar Documents

Publication Publication Date Title
US9846472B2 (en) Firmware update method and power system thereof
TWI461891B (en) Power managing circuit and the method thereof
US10910870B2 (en) Charging device and charging method
US6509657B1 (en) Battery backup unit system and interface
EP3086433A1 (en) Charging method, alternating current adaptor, charging management device and terminal
US20090164820A1 (en) Methods and apparatus for managing power on a computer in the event of a power interruption
US11262828B2 (en) Systems and methods for communicating power state information from an external energy storage device (EESD) to an information handling system
WO2016177214A1 (en) Power consumption control method and device, and mobile terminal
CN106371540B (en) System power management method, chip and electronic equipment
WO2017022169A1 (en) Battery control device, electronic apparatus, battery pack, and battery control method
JP5986143B2 (en) Method for managing power consumption of function expansion device, portable electronic device, and function expansion device
US9923368B2 (en) Electronic apparatus and driving control method thereof
KR20140013507A (en) Electronic apparatus and method for drive control thereof
CN112969978B (en) Method and apparatus for providing peak-optimized power supply unit
US20130193906A1 (en) Terminals, terminal systems and charging/discharging methods thereof
US9570922B2 (en) Charging method and electronic device
WO2015090077A1 (en) Mobile terminal charging control method, device, system, and mobile terminal
US20100042862A1 (en) Reduction of data corruption in wireless systems
CN117175752B (en) Charging abnormality processing method, device, system, storage medium, and program product
US9831696B2 (en) Power supply controller and method for controlling power supply
WO2020042715A1 (en) Electronic device power supply method and apparatus, electronic device, and storage medium
JP6817892B2 (en) DC power supply system
CN110148992B (en) Charging control method, terminal device and storage medium
TW201816607A (en) Uninterruptable power supply computer system with a microprocessor unit to control a central processing unit and a chip set to activate a turn-off procedure according to the discharging rate and turn-off time when the external power source supplies power abnormally
TWI805855B (en) A power assisted information handling system, a power assist unit and a method for regulating power to a load thereof

Legal Events

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