CN111293744A - Charging method, charging device, electronic device, and medium - Google Patents
Charging method, charging device, electronic device, and medium Download PDFInfo
- Publication number
- CN111293744A CN111293744A CN202010075650.8A CN202010075650A CN111293744A CN 111293744 A CN111293744 A CN 111293744A CN 202010075650 A CN202010075650 A CN 202010075650A CN 111293744 A CN111293744 A CN 111293744A
- Authority
- CN
- China
- Prior art keywords
- parameter value
- charger
- electrical parameter
- charging
- electronic equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The embodiment of the invention discloses a charging method, a charging device, electronic equipment and a medium. The charging method comprises the following steps: under the condition that the charger is in charging connection with the electronic equipment, acquiring a first output electrical parameter value of the charger, a first target parameter value of the electronic equipment and a first input electrical parameter value of a battery of the electronic equipment; the first output electrical parameter value is decreased if the difference between the first output electrical parameter value and the first input electrical parameter value is greater than or equal to the first target parameter value. The embodiment of the invention can solve the problem of poor safety of the charging interface.
Description
Technical Field
The embodiment of the invention relates to the technical field of charging, in particular to a charging method, a charging device, electronic equipment and a medium.
Background
At present, in the charging process, along with the increase of charging time and the increase of charging power, the situation that the temperature rises can appear at the interface of charging of charger and electronic equipment, because the temperature rise can lead to the interface that charges to have a potential safety hazard, for example, the plastic at the interface of charging is heated easily and melts the phenomenon or the port of the interface that charges burns off etc..
In order to improve the safety of the charging interface, in the prior art, a temperature sensor is usually disposed at a port of the charging interface, and when a temperature value detected by the temperature sensor is greater than a preset temperature value, the charging current of the charger is reduced.
However, because the actual setting position of the temperature sensor has a certain distance with the port of the charging interface, and the accuracy and the sensitivity of the detection of the temperature sensor are low, the charger control is not timely enough depending on the temperature value detected by the temperature sensor, so that the problem of over-temperature of the charging interface can not be timely and effectively solved, and the safety of the charging interface is poor.
Disclosure of Invention
The embodiment of the invention provides a charging method, a charging device, electronic equipment and a medium, and aims to solve the problem of poor safety of a charging interface.
In a first aspect, an embodiment of the present invention provides a charging method, including:
under the condition that a charger is in charging connection with electronic equipment, acquiring a first output electrical parameter value of the charger, a first target parameter value of the electronic equipment and a first input electrical parameter value of a battery of the electronic equipment;
decreasing the first output electrical parameter value if the difference between the first output electrical parameter value and the first input electrical parameter value is greater than or equal to the first target parameter value.
In a second aspect, an embodiment of the present invention further provides a charging device, including:
the first acquisition module is used for acquiring a first output electrical parameter value of a charger under the condition that the charger is in charging connection with the electronic equipment;
the second acquisition module is used for acquiring a first target parameter value of the electronic equipment and a first input electrical parameter value of a battery of the electronic equipment under the condition that a charger is in charging connection with the electronic equipment;
an adjustment module to decrease the first output electrical parameter value if the difference between the first output electrical parameter value and the first input electrical parameter value is greater than or equal to the first target parameter value.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored on the memory and being executable on the processor, where the computer program, when executed by the processor, implements the steps of the charging method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a charger, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the charging method according to the first aspect.
In a fifth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the charging method according to the first aspect.
In the embodiment of the invention, the first output electrical parameter value of the charger is differentiated from the first input electrical parameter value of the battery of the electronic equipment, the obtained difference value reflects the electric energy lost in the electric energy transmission process, and the temperature rise of the charging interface is caused by the part of the lost electric energy, so that the larger the part of the electric energy is, the larger the temperature rise amplitude of the charging interface is, and under the condition that the obtained difference value exceeds the threshold of the target parameter value, the embodiment of the invention can timely adjust the electrical parameter value output by the charger, thereby timely reducing the temperature rise amplitude of the charging interface, avoiding the situation that the temperature of the charging interface is too high as much as possible, and ensuring the safety of the charging interface.
Drawings
The present invention will be better understood from the following description of specific embodiments thereof taken in conjunction with the accompanying drawings, in which like or similar reference characters designate like or similar features.
Fig. 1 is a schematic structural diagram of a charging system;
fig. 2 is a schematic flowchart of a charging method applied to an electronic device according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a charging method applied to a charger according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a charging device according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, in a charging system composed of electronic equipment and a charger, along with the increase of charging time and the increase of charging power, the temperature of the charger and the charging interface of the electronic equipment rises, and the temperature rises to cause potential safety hazards to the charging interface, for example, plastic at the charging interface is easily heated and melted, or the port of the charging interface is burned, and the like. In addition, the temperature does not rise at the utmost speed when the charging interface is subjected to liquid inlet or short circuit, and whether the charging interface is subjected to liquid inlet or short circuit or not is judged in a temperature mode, so that the problem of untimely operation is also solved.
Especially in a fast charge system, fast charging is a method of accelerating the amount of electricity by increasing the charging power. At present, the mainstream fast charging mode includes a mode of increasing charging voltage, i.e., a high-voltage low-current mode such as a fast Charge (QC) protocol charging scheme, and another mode of increasing charging current, i.e., a low-voltage high-current mode such as a flash Charge (VOOC) protocol charging scheme. Whether the voltage or the current is increased, the charging power is increased, and then the temperature of the charging interface is rapidly increased, so that the safety of the charging interface is affected.
In order to improve the problem of poor safety of the charging interface, in the prior art, a Temperature sensor, such as a Negative Temperature Coefficient (NTC) thermistor, is usually disposed at a port of the charging interface, and when a Temperature value of the port is greater than a preset Temperature value, the charging current of the charger is reduced.
However, the temperature sensor has a certain distance from the port of the charging interface, and the accuracy and the sensitivity of the detection of the temperature sensor are low, so that the problem of over-temperature of the charging interface cannot be solved timely and effectively. In order to solve the above problem, in the embodiment of the present invention, a difference range between an output electrical parameter value of the charger and an input electrical parameter value in a battery of the electronic device is used to determine whether the output power of the charger needs to be reduced in time, so as to avoid the over-temperature problem of the charging interface.
As shown in fig. 1, fig. 1 shows a schematic structural diagram of a charging system. The charging system comprises a charger 110 and an electronic device 120, wherein the charger 110 is connected with the electronic device 120 through four buses: supply bus VBUS, data buses D + and D-, and ground GND. The charger 110 includes a first Micro Controller Unit (MCU) 112 for controlling the functions of the charger and a sampling circuit 111, such as a power sampling circuit, for obtaining the output electrical parameter values of the charger 110. The electronic device 120 includes a second MCU122 for controlling functions of the electronic device 120, a battery 124 for supplying power to the electronic device 120, an electricity meter 123, and a charging Integrated Circuit (IC) 121 for managing a charging process.
Based on the above charging system, embodiments of the present invention provide a charging method, which is applied to the electronic device 120 and the charger 110, respectively, and the charging method applied to the electronic device 120 and the charger 110 is described below. The electronic device 120 includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
First, an embodiment of a charging method applied to an electronic device is described, and referring to fig. 2, fig. 2 is a schematic flowchart illustrating a charging method applied to an electronic device according to an embodiment of the present invention. The method comprises the following steps:
s201, under the condition that the charger is connected with the electronic equipment in a charging mode, the electronic equipment obtains a first output electrical parameter value of the charger.
After the charger is connected with the power supply and the charger is connected with the electronic equipment through the data line, the charger is connected with the electronic equipment in a charging mode, and the charger can charge the electronic equipment at the moment.
S202, the electronic equipment obtains a first target parameter value and a first input electrical parameter value of the battery of the electronic equipment.
The first target parameter value here refers to a predetermined threshold for defining a maximum difference between the output electrical parameter value of the charger and the input electrical parameter value of the battery of the electronic device.
S203, reducing the first output electrical parameter value of the charger under the condition that the difference value between the first output electrical parameter value and the first input electrical parameter value is larger than or equal to the first target parameter value.
The difference between the two is reflected by the loss of electric energy during the charging process, and the loss is usually converted into heat energy, i.e. the difference causes the temperature rise of the charging circuit and the charger.
Under the condition that the difference value is smaller than the first target parameter value, the electric energy loss in the previous charging process is less, namely the influence on the temperature rise of the charging circuit is less, and the temperature of the charging interface cannot be too high, so that the processing is not needed; otherwise, the output electrical parameter value of the charger needs to be reduced, so that the electric energy loss in the charging process is reduced.
The above S201 and S202 are not limited in sequence, and may also be executed in parallel, which is not limited in the present invention.
Specific implementations of the above steps will be described in detail below.
In the embodiment of the invention, the first output electrical parameter value of the charger is differentiated from the first input electrical parameter value of the battery of the electronic equipment, the obtained difference value reflects the electric energy lost in the electric energy transmission process, and the temperature rise of the charging interface is caused by the part of the lost electric energy, so that the larger the part of the electric energy is, the larger the temperature rise amplitude of the charging interface is, and under the condition that the obtained difference value exceeds the threshold of the target parameter value, the embodiment of the invention can timely adjust the electrical parameter value output by the charger, thereby timely reducing the temperature rise amplitude of the charging interface, avoiding the situation that the temperature of the charging interface is too high as much as possible, and ensuring the safety of the charging interface. In addition, under the condition of liquid inlet or short circuit of the charging interface, the two conditions can also cause larger electric energy loss, so that the method can adjust the output electrical parameter value of the charger in time under the condition, thereby reducing the influence of the liquid inlet or the short circuit on the charging system. In addition, the safe and efficient charging process is ensured by optimizing the communication instruction and the judgment condition of power adjustment, and the production cost of the charger and the electronic equipment is not additionally increased.
In order to ensure normal communication between the charger and the electronic device, after the charger establishes a charging connection with the electronic device, the charger needs to perform handshaking communication with the electronic device before the charger communicates with the electronic device. Handshake communication is an operation performed by two devices before communication is performed to confirm whether communication is possible between the two devices. In an application scenario in the embodiment of the present invention, since the chargers have multiple models, there may be a case where the models of the electronic device and the connected chargers do not match, and therefore, the authentication needs to be performed through handshake communication. Therefore, only if the handshake communication is successful, the charger can perform normal communication with the electronic device, that is, subsequent data transmission, such as transmission of the first output electrical parameter value, can be performed.
In other embodiments of the present invention, the first output electrical parameter value of the charger and the first input electrical parameter value of the battery of the electronic device are the same type of electrical parameter value, where the type of electrical parameter value may be any one of a current value, a voltage value and a power value.
The type of the electrical parameter value is mainly determined by the output condition of the charger, for example, in some cases, the output voltage of the charger is fixed and the output current is adjustable, and the electrical parameter value here may be a current value, because the current value can reflect the output power of the charger; similarly, under the condition that the output voltage of the charger is adjustable and the output current is fixed, the voltage value can reflect the output power of the charger; in addition, under the condition that the voltage and the current of the charger are both adjustable, the electrical parameter value can be a power value. Whichever type of electrical parameter value is used above, the purpose is to be able to reflect the output power of the charger and the input power of the battery of the electronic device.
The following describes specific implementations of the steps in the above embodiments.
First, a specific implementation of S201 is described.
In some embodiments of the present invention, the charger may obtain its own output electrical parameter value by sampling through its own internal electrical parameter sampling circuit, such as a current sampling circuit, a voltage sampling circuit, a power sampling circuit, and the like. The power sampling circuit may be an Analog-to-Digital Converter (ADC).
That is, S201 may be: the electronic equipment obtains a first output electrical parameter value sampled by the charger from the charger.
Further, in some embodiments, the first output electrical parameter value sampled within the charger may be stored within an MCU or other component of the charger capable of storing data. The electronic device may then actively read or otherwise transmit the previously saved first output electrical parameter value to the electronic device by the charger. By the method, the historical output electrical parameter values of the charger can be conveniently traced.
In order to control the charger to perform power reduction operation in time, related data needs to be frequently transmitted between the charger and the electronic device, and the related data can be sent to a target end, namely a charger end or an electronic device end, through an independent instruction. However, in order to reduce the number of instructions sent, the present invention further provides the following embodiments:
that is, when the charger and the electronic device handshake communication are successful, the process of S201 specifically includes: and acquiring a first output electrical parameter value carried in the latest reply information of the charger. That is, the charger replies each piece of information of the electronic device, and except the handshake information, the charger needs to carry the first output electrical parameter value of the charger. By the method, the quantity of information sent to the electronic equipment by the charger can be reduced, and the occupation of resources is reduced.
In addition, since the output electrical parameter value of the charger may become a set value, for example, 5V2A, in case of a handshake communication failure between the charger and the electronic device, in some embodiments, in case of the handshake communication, S201 may also be: in the case of a failure in handshake communication between the charger and the electronic device, the electronic device acquires an output set value of the charger. At this time, the electronic device can directly read the output set value of the charger stored in advance.
The above is a specific implementation of S201, and a specific implementation of S202 is described below.
In other embodiments of the present invention, the electronic device may sample the first input electrical parameter value of the battery through a charging IC or a fuel gauge provided therein.
That is, S202 may be: the electronic device may directly sample and obtain the first input electrical parameter value in the above manner.
Furthermore, in some embodiments, the MCU or other component capable of storing data of the electronic device may further obtain the first input electrical parameter value sampled by the charging IC or the fuel gauge through I2C (Inter-Integrated Circuit) communication, and then the electronic device may directly obtain the saved first input electrical parameter value. The method can facilitate the follow-up tracing of the historical input electrical parameter values of the electronic equipment.
Since the original temperature values of the charging circuit are different in different charging states of the electronic device, for example, when the charging time has reached 1h and the charging time has reached 5min, the temperature of the charging circuit when the charging time is 1h should be higher than the temperature of the charging circuit when the charging time is 5 min. And based on the temperature value of different charging lines, the same temperature rise then can produce different effects, for example under the very high condition of charging line temperature, then the temperature rise that can tolerate can be lower, that is to say that first target parameter value should set up less, and the temperature of charging line is lower under the condition, then the temperature rise that permits can be higher, therefore the great that first target parameter value can set up.
Based on the above situation, in other embodiments of the present invention, the process of the electronic device obtaining the target parameter value threshold in S202 may include:
the electronic equipment acquires the charging state of the electronic equipment; the charging state comprises characteristic parameters of the environment where the electronic equipment is located and the electric quantity of the electronic equipment; the characteristic parameter may include a temperature value, etc.
The electronic equipment takes a threshold value corresponding to the charging state on a pre-acquired electrical parameter loss curve as a first target parameter value; the electrical parameter loss curve is a corresponding curve of the charging state and the threshold value.
In this embodiment, corresponding threshold values are set for different charging states of the electronic device, so that the first target parameter value can be selected according to the temperature rise allowed by the different charging states, the time for reducing power of the charger is controlled more accurately, and the safety of the charging interface is improved.
Before the electronic equipment is on the market, the electrical parameter loss curve is drawn according to a test result of the charger on the real-time charging power loss of the electronic equipment, wherein the charging power loss is a difference value between an output electrical parameter value of the charger and an input electrical parameter value of a corresponding battery, a real-time test scene is shown in table 1, and table 1 is a test scene table of the charging power loss.
TABLE 1 test scenario table for charging power loss
Based on the above embodiments, in some embodiments, the electrical parameter loss curve is typically stored within the electronic device. In this case, the electronic device may determine the first target parameter value directly according to the self-charging state and the self-stored electrical parameter loss curve.
In addition, in other embodiments, the electrical parameter loss curve may also be stored in the charger, and in this case, when the charging method is applied to the electronic device, the charger may send the electrical parameter loss curve to the electronic device, and the electronic device determines the target parameter value threshold.
The above is a specific implementation of S202, and a specific implementation of S203 is described below.
In the process of controlling to decrease the output electrical parameter value of the charger, the following embodiment may be specifically adopted, and in this embodiment, the process of decreasing the first output electrical parameter value in S203 may be implemented in the following manner:
the electronic device reduces the first output electrical parameter value to a preset output value.
And in the process that the charger charges the electronic equipment according to the preset output value, the electronic equipment acquires a second output electrical parameter value of the charger, a second target parameter value threshold of the electronic equipment and a second input electrical parameter value of a battery of the electronic equipment.
And the electronic equipment controls the charger to stop charging when the difference value between the second output electrical parameter value and the second input electrical parameter value is greater than or equal to the second target parameter value threshold.
In this embodiment, the first output electrical parameter value of the charger is first reduced, and in this case, it can be ensured that the difference value in the subsequent charging process does not reach the first target parameter value any more, and at the same time, it can be ensured that the charging process is not suspended, thereby ensuring the efficiency and safety of the user charging process.
Based on the above embodiment, after controlling the charger to stop charging, the user may inquire about the reason for the power failure through the electronic device, solve the problem, and restart charging after the problem is solved. Namely, in a further embodiment, after the controlling the charger to stop charging, the method may further include: when the electronic device stops charging, the charger is controlled to resume charging if the electronic device receives an input instruction for recharging. By the mode, normal charging after potential safety hazards of the charger are solved can be guaranteed.
In the process of controlling to decrease the output electrical parameter value of the charger, another embodiment may also be adopted, and in this embodiment, the process of decreasing the first output electrical parameter value in S203 may also be:
the electronic equipment controls the charger to stop charging.
And after the time for stopping charging reaches a second preset disconnection time period, the electronic equipment acquires a third output electrical parameter value of the charger, a third target parameter value threshold of the electronic equipment and a third input electrical parameter value of a battery of the electronic equipment.
And the electronic equipment controls the charger to stop charging again under the condition that the difference value between the third output electrical parameter value and the third input electrical parameter value is greater than or equal to the third target parameter value threshold.
Based on the above embodiment, after the charger is controlled to stop charging for a period of time, the temperature of the charging line generally drops, and in this case, the safety of the charging line can be ensured by starting the high-power charging again. The mode can ensure that the charger can be quickly charged through high power all the time, thereby improving the charging efficiency. However, after the charging is stopped for a period of time, if the potential safety hazard still exists, the charger needs to be controlled again to stop charging, so as to ensure the safety of the charger.
When the charger stops charging for the second time, the charger cannot be automatically restarted, and the charger can be controlled to resume charging after receiving the input recharging command. Here, the instruction of recharging is an instruction input after the user inquires about the reason of the power failure and solves the problem through the electronic device. By the mode, normal charging after potential safety hazards of the charger are solved can be guaranteed.
In addition, in some other embodiments, the above-mentioned re-controlling the charger to stop charging may be to lock the power output of the charger, and such locking operation may disable charging even if a re-charging instruction is received, and only after the charger is unplugged from the power supply and then plugged into the power supply again, the charger may be unlocked to perform charging. This way the safety of the charging circuit can be further improved.
It should be noted that the second output electrical parameter value and the third output electrical parameter value are both the same as the first output electrical parameter value in terms of parameter type, and may be obtained in the same obtaining manner. The second input electrical parameter value and the third input electrical parameter value are the same as the first input electrical parameter value in parameter type, and can be acquired by the same acquisition mode. The second target parameter value threshold and the third target parameter value threshold can be obtained in the same obtaining mode as the first target parameter value. For avoiding repetition, the process of obtaining the second output electrical parameter value and the third output electrical parameter value, the second input electrical parameter value and the third input electrical parameter value, and the second target parameter value threshold and the third target parameter value threshold is not described herein again.
In addition, the invention also provides the following embodiments:
the embodiment of the invention provides a scheme capable of updating and optimizing the loss curve of the electrical parameter. That is, in still other embodiments of the present invention, after S203, the method may further include:
the electronic equipment feeds the difference back to the data server; so that the data server analyzes the received difference and optimizes the loss curve of the electrical parameters according to the analysis result. Wherein the data server may be a big data server.
In this embodiment, in the actual use process of the electronic device, the charger may obtain the charging loss value in each stage, such as the constant current stage and the constant voltage stage, when the charger charges the electronic device, and the electronic device may feed the data back to the big data end after obtaining the value, and further optimize the loss curve of the electrical parameter through statistical analysis of the big data. The method can continuously improve the loss curve of the electrical parameters, and further improve the accuracy of charger control.
An embodiment of a charging method applied to a charger is described below, and referring to fig. 3, fig. 3 is a schematic flow chart illustrating a charging method applied to a charger according to an embodiment of the present invention. The method comprises the following steps:
s301, under the condition that the charger is connected with the electronic device in a charging mode, the charger obtains a first output electrical parameter value of the charger.
S302, the charger obtains a first target parameter value and a first input electrical parameter value of a battery of the electronic device.
S303, the charger adjusts the first output electrical parameter value of the charger when the difference value between the first output electrical parameter value and the first input electrical parameter value is larger than or equal to the first target parameter value.
The above S301 and S302 are not limited in sequence, and may also be executed in parallel, which is not limited in the present invention.
In the embodiment of the invention, the first output electrical parameter value of the charger is differentiated from the first input electrical parameter value of the battery of the electronic equipment, the obtained difference value reflects the electric energy lost in the electric energy transmission process, and the temperature rise of the charging interface is caused by the part of the lost electric energy, so that the larger the part of the electric energy is, the larger the temperature rise amplitude of the charging interface is, and under the condition that the obtained difference value exceeds the threshold of the target parameter value, the embodiment of the invention can timely adjust the electrical parameter value output by the charger, thereby timely reducing the temperature rise amplitude of the charging interface, avoiding the situation that the temperature of the charging interface is too high as much as possible, and ensuring the safety of the charging interface. In addition, under the condition of liquid inlet or short circuit of the charging interface, the two conditions can also cause larger electric energy loss, so that the method can adjust the output electrical parameter value of the charger in time under the condition, thereby reducing the influence of the liquid inlet or the short circuit on the charging system. In addition, the present embodiment ensures a safe and efficient charging process by optimizing the communication command and the determination condition of power adjustment, without increasing the production cost of the charger and the electronic device.
The following describes specific implementations of the steps in the above embodiments.
The sampling manner of the charger can be referred to in the embodiment of the charging method applied to the electronic device, and is not described herein again. S301 may be: the charger samples and obtains a first output electrical parameter value of the charger through the circuit.
For a sampling manner of the electronic device, reference may be made to an embodiment of a charging method applied to the electronic device, and details are not described herein. The above S302 may be that the electronic device may send the sampled first input electrical parameter value to the charger.
Furthermore, in some embodiments, the MCU or other component capable of storing data of the electronic device may also obtain the first input electrical parameter value sampled by the charging IC or the fuel gauge through I2C (Inter-Integrated Circuit) communication, and then the charger may read or send the first input electrical parameter value saved before to the charger by the electronic device. The method can facilitate the follow-up tracing of the historical input electrical parameter values of the electronic equipment.
For the aforementioned purpose of reducing the number of transmitted instructions, in other embodiments of the present invention, in case that the charger and the electronic device handshake communication is successful, the process of S302 may be: and acquiring a first target parameter value and a first input electrical parameter value carried in a command which is newly sent by the electronic equipment. That is, each instruction sent by the electronic device to the charger needs to carry the first target parameter value and the first input electrical parameter value of the battery except the handshake instruction. By the mode, the number of the instructions sent to the charger by the electronic equipment can be reduced, and the occupation of resources is reduced.
For example, in some embodiments, since the electronic device sends a first instruction for adjusting the output power of the charger to the charger according to the level of the electric quantity of the electronic device during the charging process of the charger, the electronic device may obtain a first target parameter value of the electronic device and a first input electrical parameter value of the battery, and send the obtained first target parameter value and the first input electrical parameter value to the charger together when sending the first instruction to the charger. For example, the electronic device requests the charger output 20V2.25A, the first input electrical parameter value of the current battery is 5V1.2A, the first target parameter value is 20W, and the first command sent is 20V +2.25A +6W + 20W. Of course, due to the difference between the types of the chargers, the electronic device may only need to adjust the current value or the voltage value when requesting the output of the charger, for example, the electronic device requests the output of the charger to be 2.25A, and then the first command is sent to be 2.25A +6W + 20W.
In other embodiments, in order to detect whether the charger has an abnormal fault such as an overvoltage, an over-temperature, or a micro short circuit, the electronic device sends a second instruction for detecting the state of the charger to the charger, and the second instruction also carries the acquired first target parameter value and the first input electrical parameter value. For example, the current first input electrical parameter value of the battery is 5V4A, and the second command is sent to be +30W of the parameter value required for detecting the charger, where the parameter value required for detecting the charger may be power, for example, the theoretical output of the charger should be 9V1A or 8V2A, and the parameter value required for detecting the charger is 9W or 16W.
The present invention does not limit the content originally contained in each command sent by the electronic device to the charger and the expression of the first input electrical parameter value carried by the command, for example, in the case that the first input electrical parameter value is input power, it may be represented by a form of power, such as 6W, or by a form of current voltage, such as 5 V1.2A.
In other embodiments of the present invention, the process of acquiring the first target parameter value by the charger in S302 may include:
the charger acquires a charging state of the electronic device.
The charger takes a threshold value corresponding to the charging state on a pre-acquired electrical parameter loss curve as a first target parameter value; the electrical parameter loss curve is a corresponding curve of the charging state and the threshold value.
In some embodiments, the electrical parameter loss curve is typically stored within the electronic device. In this case, the electronic device may determine the first target parameter value in advance according to the charging state of the electronic device and the electrical parameter loss curve stored in the electronic device, and then send the first target parameter value to the charger, or the electronic device may send the electrical parameter loss curve and the charging state of the electronic device to the charger, and the charger determines the first target parameter value.
In addition, in other embodiments, the loss curve of the electrical parameter may also be stored in the charger, and the electronic device may send its charging status to the charger, and the charger determines the first target parameter value. The specific manner in which the present invention is employed is not limited.
That is, in the case that the loss curve of the electrical parameter is saved in the charger, in order to reduce the number of sent instructions, in another embodiment of the present invention, S302 may further be: and acquiring the charging state of the electronic equipment and the first input electrical parameter value carried in the latest transmitted instruction of the electronic equipment. That is, each instruction sent by the electronic device to the charger carries the charging state of the electronic device and the first input electrical parameter value of the battery, except the handshake instruction. Since in the foregoing embodiment, there is a corresponding relationship between the charging state of the electronic device and the threshold, the charger can determine the first target parameter value according to the charging state of the electronic device and the electrical parameter loss curve obtained in advance by the charger.
Since the charger and the electronic device cannot exchange information through a private protocol, that is, cannot communicate with each other, in the case that the charger and the electronic device fail to communicate with each other, the first output electrical parameter value of the charger may be in the state of 5V2A, in this case, in order to enable the charger to obtain the first input electrical parameter value of the battery of the electronic device, the following scheme may be adopted:
in still other embodiments of the present invention, the process of acquiring a first input electrical parameter value of a battery of an electronic device in S302 may include:
in the event of a failure of the charger to handshake communication with the electronic device, the charger obtains a level value on a data bus of the electronic device.
And the charger determines the first input electrical parameter value corresponding to the level value according to the preset corresponding relation between the level value and the first input electrical parameter value.
In this embodiment, the MCU of the electronic device controls the output level at the D +/D-of the data bus interface thereof according to the preset corresponding relationship between the level value and the first input electrical parameter value, so as to inform the charger of the first input electrical parameter value in a single direction. At this time, since the electronic device and the charger cannot communicate with each other, and the level value usually cannot represent the charging state of the electronic device, in this case, the charger may adopt the first target parameter value set in advance.
In a further embodiment, the electronic device may further inform the charger of the requested output electrical parameter value in one way, i.e. inform the charger of the target value to which it needs to adjust its output electrical parameter value, via the output level at the data bus interface D +/D-. Here, the level of D +/D-may be defined as: d + represents an output electrical parameter value of the electronic device requesting the charger, such as a requested current; d-represents a first input electrical parameter value, such as input power, input to the battery, and specifically as shown in Table 2, Table 2 is a level rule table for D +/D-.
TABLE 2D +/D-level rule Table
The above is a specific implementation manner of S302, a specific implementation manner of S303 in this embodiment is similar to that of S203, and for avoiding repetition, details are not described here again.
In addition, the invention also provides the following embodiments:
in the embodiment of the charging method applied to the charger, after S303, the charger may also feed back the difference to the data server; so that the data server analyzes the received difference and optimizes the loss curve of the electrical parameters according to the analysis result.
In this embodiment, in the actual use process of the electronic device, the charger may obtain the charging loss value in each stage when the charger charges the electronic device, for example, the charging loss value in the constant current stage and the constant voltage stage, and transmit the value back to the electronic device in real time, and the electronic device may feed back the data to the big data end, and further optimize the electrical parameter loss curve through statistical analysis of the big data. The method can continuously improve the loss curve of the electrical parameters, and further improve the accuracy of charger control.
Since the operation of controlling the charger to power down after the difference is greater than or equal to the first target parameter value belongs to a remedial operation taken to avoid a charger failure, rather than a normal charge power control operation, the electronic device generally needs to acquire the reason for the operation. Therefore, in other embodiments of the present invention, in a case where the charging method is applied to a charger, after S303, the method may further include:
and recording the reason for reducing the first output electrical parameter value so that the electronic equipment acquires the reason and displays the acquired reason.
The reason for adjusting the first output electrical parameter value of the charger is recorded, so that subsequent electronic equipment can obtain the reason for displaying, a user can know the previous charging condition conveniently, and the user is reminded of checking possible faults of the charging interface in time. In addition, the electronic device can also store the acquired reasons and upload the reasons to a big data end for statistical analysis and the like, and the electronic device is not limited to process the acquired reasons.
Referring to fig. 1, a charging system and fig. 2, which are embodiments of a charging method applied to an electronic device, embodiments of the present invention further provide a charging apparatus applied to an electronic device, and referring to fig. 4, fig. 4 is a schematic structural diagram of a charging apparatus provided in an embodiment of the present invention. The device includes:
the first obtaining module 401 is configured to obtain a first output electrical parameter value of the charger when the charger establishes a charging connection with the electronic device.
A second obtaining module 402, configured to obtain a first target parameter value and a first input electrical parameter value of the own battery.
An adjusting module 403, configured to adjust the first output electrical parameter value of the charger if the difference between the first output electrical parameter value and the first input electrical parameter value is greater than or equal to the first target parameter value.
In the embodiment of the invention, the first output electrical parameter value of the charger is differentiated from the first input electrical parameter value of the battery of the electronic equipment, the obtained difference value reflects the electric energy lost in the electric energy transmission process, and the temperature rise of the charging interface is caused by the part of the lost electric energy, so that the larger the part of the electric energy is, the larger the temperature rise amplitude of the charging interface is, and under the condition that the obtained difference value exceeds the threshold of the target parameter value, the embodiment of the invention can timely adjust the electrical parameter value output by the charger, thereby timely reducing the temperature rise amplitude of the charging interface, avoiding the situation that the temperature of the charging interface is too high as much as possible, and ensuring the safety of the charging interface. In addition, under the condition of liquid inlet or short circuit of the charging interface, the two conditions can also cause larger electric energy loss, so that the device can also adjust the output electrical parameter value of the charger in time under the condition, thereby reducing the influence of the liquid inlet or the short circuit on the charging system.
In some implementations of the present embodiment, the charging device may be applied to an electronic device or a charger. The electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
In addition, in order to ensure normal communication between the charger and the electronic device, after the charger establishes a charging connection with the electronic device, the charger needs to perform handshake communication with the electronic device before the charger communicates with the electronic device. Handshake communication is an operation performed by two devices before communication is performed to confirm whether communication is possible between the two devices. In an application scenario in the embodiment of the present invention, since the chargers have multiple models, there may be a case where the models of the electronic device and the connected chargers do not match, and therefore, the authentication needs to be performed through handshake communication. Therefore, only if the handshake communication is successful, the charger can perform normal communication with the electronic device, that is, subsequent data transmission, such as transmission of the first output electrical parameter value, can be performed.
In other embodiments of the present invention, the first output electrical parameter value of the charger and the first input electrical parameter value of the battery of the electronic device are the same type of electrical parameter value, where the type of electrical parameter value may be any one of a current value, a voltage value and a power value.
In still other implementation manners of this embodiment, in the charger, the output electrical parameter value of the charger itself may be obtained by sampling through an electrical parameter sampling circuit arranged in the charger itself, such as a current sampling circuit, a voltage sampling circuit, a power sampling circuit, and the like. The power sampling circuit here may be an analog-to-digital conversion circuit.
That is, the first obtaining module 401 in this embodiment may be configured to: the electronic equipment obtains a first output electrical parameter value sampled by the charger from the charger.
Further, in some embodiments, the first output electrical parameter value sampled within the charger may be stored within an MCU or other component of the charger capable of storing data. The electronic device may then actively read or otherwise transmit the previously saved first output electrical parameter value to the electronic device by the charger. By the method, the historical output electrical parameter values of the charger can be conveniently traced.
The invention also provides the following specific embodiments: and under the condition that the handshaking communication between the charger and the electronic equipment is successful, the charger replies each piece of information of the electronic equipment, and except the handshaking information, the charger needs to carry the first output electrical parameter value of the charger.
The first obtaining module 401 may specifically be configured to: and acquiring a first output electrical parameter value carried in the latest reply information of the charger. By the method, the quantity of information sent to the electronic equipment by the charger can be reduced, and the occupation of resources is reduced.
Furthermore, since the first output electrical parameter value of the charger may become a set value, for example, 5V2A, in case of a handshake communication failure between the charger and the electronic device, in some embodiments, the first obtaining module 401 may further be configured to: and acquiring an output set value of the charger under the condition that the communication between the charger and the electronic equipment is failed.
In some implementations of the present embodiment, the first input electrical parameter value of the battery may be sampled within the electronic device by a charging IC or a fuel gauge provided within the electronic device.
That is, the second obtaining module 402 may be configured to: under the condition that the charging device is applied to the electronic equipment, the electronic equipment can directly obtain a first input electrical parameter value through sampling in the mode; in the case where the charging apparatus is applied to a charger, the electronic device may transmit the first input electrical parameter value sampled in the above manner to the charger.
Furthermore, in some embodiments, the MCU or other component capable of storing data of the electronic device may further obtain the first input electrical parameter value sampled by the charging IC or the fuel gauge through I2C communication, and then the electronic device may directly obtain the saved first input electrical parameter value. The method can facilitate the follow-up tracing of the historical input electrical parameter values of the electronic equipment.
In other implementations of this embodiment, the second obtaining module 402 includes:
the electronic device comprises a first acquisition unit for acquiring a first input electrical parameter value of a battery of the electronic device.
A second obtaining unit for obtaining the first target parameter value.
Based on the above embodiments, in some embodiments of the present invention, the second obtaining unit may be configured to:
the state acquisition unit is used for acquiring the charging state of the electronic equipment under the condition that a charger establishes charging connection with the electronic equipment; the charging state comprises characteristic parameters of the environment where the electronic equipment is located and the electric quantity of the electronic equipment;
a first parameter obtaining unit, configured to take a threshold value corresponding to the charging state on a pre-obtained electrical parameter loss curve as the first target parameter value; and the electrical parameter loss curve is a corresponding curve of the charging state and the threshold value.
In this embodiment, corresponding threshold values are set for different charging states of the electronic device, so that the first target parameter value can be selected according to the temperature rise allowed by the different charging states, the time for reducing power of the charger is controlled more accurately, and the safety of the charging interface is improved.
In the process of controlling to decrease the first output electrical parameter value of the charger, the following embodiment may be specifically adopted, and in this embodiment, the adjusting module 403 may specifically include:
a first reducing unit, configured to reduce the first output electrical parameter value to a preset output value when a difference between the first output electrical parameter value and the first input electrical parameter value is greater than or equal to the first target parameter value;
the second parameter obtaining unit is used for obtaining a second output electrical parameter value of the charger, a second target parameter value threshold of the electronic equipment and a second input electrical parameter value of a battery of the electronic equipment in the process that the charger charges the electronic equipment according to the preset output value;
and the first stopping unit is used for controlling the charger to stop charging under the condition that the difference value between the second output electrical parameter value and the second input electrical parameter value is greater than or equal to the second target parameter value threshold.
In this embodiment, the first output electrical parameter value of the charger is first reduced, and in this case, it can be ensured that the difference value in the subsequent charging process does not reach the first target parameter value any more, and at the same time, it can be ensured that the charging process is not suspended, thereby ensuring the efficiency and safety of the user charging process.
In a further embodiment, the adjusting module 403 may further be configured to: when the charging is stopped, the charger is controlled to resume the charging when an input command for recharging is received. By the mode, normal charging after potential safety hazards of the charger are solved can be guaranteed.
In the process of controlling to decrease the output electrical parameter value of the charger, another embodiment may also be adopted, in this embodiment, the adjusting module 403 may further include:
a second stopping unit for controlling the charger to stop charging;
the third parameter obtaining unit is used for obtaining a third output electrical parameter value of the charger, a third target parameter value threshold of the electronic equipment and a third input electrical parameter value of a battery of the electronic equipment after the time for stopping charging reaches a second preset disconnection duration;
and the third stopping unit is used for controlling the charger to stop charging again under the condition that the difference value between the third output electrical parameter value and the third input electrical parameter value is greater than or equal to the third target parameter value threshold.
Based on the above embodiment, after the charger is controlled to stop charging for a period of time, the temperature of the charging line generally drops, and in this case, the safety of the charging line can be ensured by starting the high-power charging again. The mode can ensure that the charger can be quickly charged through high power all the time, thereby improving the charging efficiency. However, after the charging is stopped for a period of time, if the potential safety hazard still exists, the charger needs to be controlled again to stop charging, so as to ensure the safety of the charger.
When the charger stops charging for the second time, the charger cannot restart by itself, and the charger can be controlled to resume charging only after receiving the input recharging command. Here, the instruction of recharging is an instruction input after the user inquires about the reason of the power failure and solves the problem through the electronic device. By the mode, normal charging after potential safety hazards of the charger are solved can be guaranteed.
Under the condition that an electrical parameter loss curve is stored in the electronic device or the charger, the embodiment of the invention provides a scheme capable of updating and optimizing the electrical parameter loss curve. That is, in further embodiments of the present invention, the apparatus may further comprise:
the feedback module is used for feeding back the difference value to the data server; so that the data server analyzes the received difference and optimizes the loss curve of the electrical parameters according to the analysis result.
In this embodiment, in the actual use process of the electronic device, the charger may obtain the charging loss value in each stage when the charger charges the electronic device, for example, the charging loss value in the constant current stage and the constant voltage stage, and after obtaining the value, the electronic device may feed back the data to the big data end, and the loss curve of the electrical parameter is further optimized through statistical analysis of the big data. The method can continuously improve the loss curve of the electrical parameters, and further improve the accuracy of charger control.
The charging device provided in the embodiment of the present invention can implement each method step implemented in the method embodiment of fig. 2, and is not described here again to avoid repetition.
Referring to the charging system shown in fig. 1 and the charging method applied to the electronic device shown in fig. 2, an embodiment of the present invention further provides a charging apparatus applied to a charger, where the type of modules included in the apparatus is similar to the module shown in fig. 4, and in order to avoid repetition, details are not repeated here.
In an implementation manner of this embodiment, the first obtaining module 401 may be configured to: the first output electrical parameter value of the charger is sampled and obtained by the electrical parameter sampling circuit inside the charger mentioned in the previous embodiment.
In an implementation manner of this embodiment, the second obtaining module 402 may be configured to: and receiving a first input electrical parameter value which is sent by the electronic equipment and obtained by internal sampling of the electronic equipment.
Furthermore, in some embodiments, the MCU or other component capable of storing data of the electronic device may also obtain the first input electrical parameter value sampled by the charging IC or the fuel gauge through I2C communication, and then the charger may read or transmit the previously saved first input electrical parameter value to the charger by the electronic device. The method can facilitate the follow-up tracing of the historical input electrical parameter values of the electronic equipment.
In other implementation manners of this embodiment, when the charger and the electronic device perform handshake communication successfully, each instruction sent by the electronic device to the charger needs to carry the first target parameter value and the first input electrical parameter value of the battery, except the handshake instruction. The second obtaining module 402 may be configured to: and acquiring a first target parameter value and a first input electrical parameter value carried in a command which is newly sent by the electronic equipment. By the mode, the number of the instructions sent to the charger by the electronic equipment can be reduced, and the occupation of resources is reduced.
In other implementations of this embodiment, each instruction sent by the electronic device to the charger carries, in addition to the handshake instruction, the charging state of the electronic device and the first input electrical parameter value of the battery. The second obtaining module 402 may be further configured to: and acquiring the charging state of the electronic equipment and the first input electrical parameter value carried in the latest transmitted instruction of the electronic equipment.
Since in the foregoing embodiment, there is a corresponding relationship between the charging state of the electronic device and the threshold, the charger can determine the first target parameter value according to the charging state of the electronic device and the electrical parameter loss curve obtained in advance by the charger.
In still other implementation manners of this embodiment, the first obtaining unit included in the second obtaining module 402 may be configured to: acquiring a level value on a data bus of the electronic equipment under the condition that handshake communication between the charger and the electronic equipment fails; and determining the first input electrical parameter value corresponding to the level value according to the preset corresponding relation between the level value and the first input electrical parameter value.
In this embodiment, the MCU of the electronic device controls the output level at the D +/D-of the data bus interface thereof according to the preset corresponding relationship between the level value and the first input electrical parameter value, so as to inform the charger of the first input electrical parameter value in a single direction. At this time, since the electronic device and the charger cannot communicate with each other, and the level value usually cannot represent the charging state of the electronic device, in this case, the charger may adopt the first target parameter value set in advance.
In a further embodiment, the electronic device may further inform the charger of the requested output electrical parameter value in one way, i.e. inform the charger of the target value to which it needs to adjust its output electrical parameter value, via the output level at the data bus interface D +/D-. Here, the level of D +/D-may be defined as: d + represents an output electrical parameter value of the electronic device requesting the charger, such as a requested current; d-represents a first input electrical parameter value, e.g. input power, input to the battery.
The specific implementation manner of the adjusting module 403 in this embodiment is similar to that of the charging device applied to the electronic device, and is not described herein again.
In still other implementations of this embodiment, the apparatus may further include:
the feedback module is used for feeding back the difference value to the data server; so that the data server analyzes the received difference and optimizes the loss curve of the electrical parameters according to the analysis result.
In this embodiment, in the actual use process of the electronic device, the charger may obtain the charging loss value in each stage when the charger charges the electronic device, for example, the constant current stage and the constant voltage stage, and transmit the value back to the electronic device in real time, and the electronic device may feed back the data to the big data end, and further optimize the loss curve of the electrical parameter through statistical analysis of the big data. The method can continuously improve the loss curve of the electrical parameters, and further improve the accuracy of charger control.
In some other implementation manners of this embodiment, the apparatus may further include:
and the recording module is used for recording the reason for reducing the first output electrical parameter value so as to enable the electronic equipment to acquire the reason and display the acquired reason.
The reason for adjusting the first output electrical parameter value of the charger is recorded, so that subsequent electronic equipment can obtain the reason for displaying, a user can know the previous charging condition conveniently, and the user is reminded of checking possible faults of the charging interface in time. In addition, the electronic device can also store the acquired reasons and upload the reasons to a big data end for statistical analysis and the like, and the electronic device is not limited to process the acquired reasons.
The charging device provided in the embodiment of the present invention can implement each method step implemented in the method embodiment of fig. 3, and is not described herein again to avoid repetition.
Based on the foregoing method embodiment, an embodiment of the present invention further provides a charger, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the charging method as provided in the embodiment of fig. 2 or fig. 3.
Based on the foregoing method embodiment, an embodiment of the present invention further provides an electronic device, and referring to fig. 5, fig. 5 shows a hardware structure diagram of the electronic device provided in the embodiment of the present invention.
The electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 510 is configured to, when the charger establishes a charging connection with the electronic device, obtain a first output electrical parameter value of the charger, a first target parameter value of the electronic device, and a first input electrical parameter value of a battery of the electronic device; calculating a difference between the first output electrical parameter value and the first input electrical parameter value; in the event that the difference is greater than or equal to the first target parameter value, the first output electrical parameter value is decreased.
In the embodiment of the invention, the first output electrical parameter value of the charger is differentiated from the first input electrical parameter value of the battery of the electronic equipment, the obtained difference value reflects the electric energy lost in the electric energy transmission process, and the temperature rise of the charging interface is caused by the part of the lost electric energy, so that the larger the part of the electric energy is, the larger the temperature rise amplitude of the charging interface is, and under the condition that the obtained difference value exceeds the threshold of the target parameter value, the embodiment of the invention can timely adjust the electrical parameter value output by the charger, thereby timely reducing the temperature rise amplitude of the charging interface, avoiding the situation that the temperature of the charging interface is too high as much as possible, and ensuring the safety of the charging interface. In addition, under the condition of liquid inlet or short circuit of the charging interface, the two conditions can also cause larger electric energy loss, so that the method can adjust the output electrical parameter value of the charger in time under the condition, thereby reducing the influence of the liquid inlet or the short circuit on the charging system.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The electronic device 500 also includes at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 5061 and/or a backlight when the electronic device 500 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes instructions from the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 508 is an interface for connecting an external device to the electronic apparatus 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic apparatus 500 or may be used to transmit data between the electronic apparatus 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the electronic device. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The electronic device 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the electronic device 500 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 510, a memory 509, and a computer program that is stored in the memory 509 and can be run on the processor 510, and when the computer program is executed by the processor 510, the processes of the charging method embodiment are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the charging method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the embodiments described above can be implemented by software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (14)
1. A method of charging, comprising:
under the condition that a charger is in charging connection with electronic equipment, acquiring a first output electrical parameter value of the charger, a first target parameter value of the electronic equipment and a first input electrical parameter value of a battery of the electronic equipment;
decreasing the first output electrical parameter value if the difference between the first output electrical parameter value and the first input electrical parameter value is greater than or equal to the first target parameter value.
2. The method of claim 1, wherein obtaining a first target parameter value for the electronic device comprises:
acquiring the charging state of the electronic equipment; the charging state comprises characteristic parameters of the environment where the electronic equipment is located and the electric quantity of the electronic equipment;
taking a threshold value corresponding to the charging state on a pre-acquired electrical parameter loss curve as the first target parameter value; and the electrical parameter loss curve is a corresponding curve of the charging state and the threshold value.
3. The method of claim 1, wherein said reducing said first output electrical parameter value comprises:
reducing the first output electrical parameter value to a preset output value;
acquiring a second output electrical parameter value of the charger, a second target parameter value threshold of the electronic equipment and a second input electrical parameter value of a battery of the electronic equipment in the process that the charger charges the electronic equipment according to the preset output value;
and controlling the charger to stop charging when the difference value between the second output electrical parameter value and the second input electrical parameter value is greater than or equal to the second target parameter value threshold.
4. The method of claim 1, wherein said reducing said first output electrical parameter value comprises:
controlling the charger to stop charging;
after the time for stopping charging reaches a second preset disconnection time period, acquiring a third output electrical parameter value of the charger, a third target parameter value threshold of the electronic equipment and a third input electrical parameter value of a battery of the electronic equipment;
and under the condition that the difference value between the third output electrical parameter value and the third input electrical parameter value is greater than or equal to the third target parameter value threshold, controlling the charger to stop charging again.
5. The method of claim 1, wherein the charging method is applied to the electronic device, and the obtaining a first output electrical parameter value of the charger comprises:
acquiring the first output electrical parameter value carried in the latest reply information of the charger;
or
The charging method is applied to the charger, and the acquiring of the first target parameter value and the first input electrical parameter value of the battery comprises the following steps:
and acquiring the first target parameter value and the first input electrical parameter value carried in the instruction newly sent by the electronic equipment.
6. The method of claim 1, wherein the charging method is applied to a charger, and the obtaining a first input electrical parameter value of the battery comprises:
acquiring a level value on a data bus of the electronic equipment under the condition that the charger fails in handshake communication with the electronic equipment;
and determining a first input electrical parameter value corresponding to the level value according to the preset corresponding relation between the level value and the input electrical parameter value.
7. A charging apparatus, applied to an electronic device or a charger, the apparatus comprising:
the first acquisition module is used for acquiring a first output electrical parameter value of a charger under the condition that the charger is in charging connection with the electronic equipment;
the second acquisition module is used for acquiring a first target parameter value of the electronic equipment and a first input electrical parameter value of a battery of the electronic equipment under the condition that a charger is in charging connection with the electronic equipment;
an adjustment module to decrease the first output electrical parameter value if the difference between the first output electrical parameter value and the first input electrical parameter value is greater than or equal to the first target parameter value.
8. The charging device of claim 7, wherein the second obtaining module comprises:
the state acquisition unit is used for acquiring the charging state of the electronic equipment under the condition that a charger establishes charging connection with the electronic equipment; the charging state comprises characteristic parameters of the environment where the electronic equipment is located and the electric quantity of the electronic equipment;
a first parameter obtaining unit, configured to take a threshold value corresponding to the charging state on a pre-obtained electrical parameter loss curve as the first target parameter value; the electrical parameter loss curve is a corresponding curve of a charging state and a threshold value;
the device comprises an input parameter acquisition unit, a first input unit and a second input unit, wherein the input parameter acquisition unit is used for acquiring a first input electrical parameter value of a battery of the electronic equipment under the condition that a charger is connected with the electronic equipment in a charging mode.
9. The charging device of claim 7, wherein the adjustment module comprises:
a first reducing unit, configured to reduce the first output electrical parameter value to a preset output value when a difference between the first output electrical parameter value and the first input electrical parameter value is greater than or equal to the first target parameter value;
the second parameter obtaining unit is used for obtaining a second output electrical parameter value of the charger, a second target parameter value threshold of the electronic equipment and a second input electrical parameter value of a battery of the electronic equipment in the process that the charger charges the electronic equipment according to the preset output value;
and the first stopping unit is used for controlling the charger to stop charging under the condition that the difference value between the second output electrical parameter value and the second input electrical parameter value is greater than or equal to the second target parameter value threshold.
10. The charging device of claim 7, wherein the adjustment module comprises:
a second stopping unit for controlling the charger to stop charging;
the third parameter obtaining unit is used for obtaining a third output electrical parameter value of the charger, a third target parameter value threshold of the electronic equipment and a third input electrical parameter value of a battery of the electronic equipment after the time for stopping charging reaches a second preset disconnection duration;
and the third stopping unit is used for controlling the charger to stop charging again under the condition that the difference value between the third output electrical parameter value and the third input electrical parameter value is greater than or equal to the third target parameter value threshold.
11. The charging device according to claim 7, wherein the charging device is applied to the electronic device, and the first obtaining module is specifically configured to: acquiring the first output electrical parameter value carried in the latest reply information of the charger;
or
The charging device is applied to the charger, and the second acquisition module is specifically configured to: and acquiring the first target parameter value and the first input electrical parameter value carried in the instruction newly sent by the electronic equipment.
12. The charging device according to claim 7, wherein the charging device is applied to a charger, and the second obtaining module is specifically configured to:
under the condition that a charger is in charging connection with electronic equipment, acquiring a first target parameter value of the electronic equipment; acquiring a level value on a data bus of the electronic equipment under the condition that the charger fails in handshake communication with the electronic equipment; and determining a first input electrical parameter value corresponding to the level value according to the preset corresponding relation between the level value and the input electrical parameter value.
13. An electronic device, comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the charging method according to any one of claims 1 to 6.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the charging method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010075650.8A CN111293744B (en) | 2020-01-22 | 2020-01-22 | Charging method, charging device, electronic device, and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010075650.8A CN111293744B (en) | 2020-01-22 | 2020-01-22 | Charging method, charging device, electronic device, and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111293744A true CN111293744A (en) | 2020-06-16 |
CN111293744B CN111293744B (en) | 2022-08-02 |
Family
ID=71023377
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010075650.8A Active CN111293744B (en) | 2020-01-22 | 2020-01-22 | Charging method, charging device, electronic device, and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111293744B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112713629A (en) * | 2020-12-24 | 2021-04-27 | 维沃移动通信有限公司 | Charging method and device and electronic equipment |
CN113572239A (en) * | 2021-08-16 | 2021-10-29 | 北京京东乾石科技有限公司 | Charging method, related device and charging system |
CN113922459A (en) * | 2021-10-22 | 2022-01-11 | 北京小米移动软件有限公司 | Charging protection method and device, electronic equipment and storage medium |
CN115441541A (en) * | 2022-09-09 | 2022-12-06 | Oppo广东移动通信有限公司 | System power consumption calculation method and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019113732A1 (en) * | 2017-12-11 | 2019-06-20 | 深圳市柔宇科技有限公司 | Electronic device and charging control method |
CN109962514A (en) * | 2019-02-22 | 2019-07-02 | 维沃移动通信有限公司 | A kind of charging method and mobile terminal |
CN110380476A (en) * | 2019-07-17 | 2019-10-25 | 闻泰科技(无锡)有限公司 | Charge control method, device, equipment and storage medium |
-
2020
- 2020-01-22 CN CN202010075650.8A patent/CN111293744B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019113732A1 (en) * | 2017-12-11 | 2019-06-20 | 深圳市柔宇科技有限公司 | Electronic device and charging control method |
CN109962514A (en) * | 2019-02-22 | 2019-07-02 | 维沃移动通信有限公司 | A kind of charging method and mobile terminal |
CN110380476A (en) * | 2019-07-17 | 2019-10-25 | 闻泰科技(无锡)有限公司 | Charge control method, device, equipment and storage medium |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112713629A (en) * | 2020-12-24 | 2021-04-27 | 维沃移动通信有限公司 | Charging method and device and electronic equipment |
CN113572239A (en) * | 2021-08-16 | 2021-10-29 | 北京京东乾石科技有限公司 | Charging method, related device and charging system |
CN113922459A (en) * | 2021-10-22 | 2022-01-11 | 北京小米移动软件有限公司 | Charging protection method and device, electronic equipment and storage medium |
CN115441541A (en) * | 2022-09-09 | 2022-12-06 | Oppo广东移动通信有限公司 | System power consumption calculation method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN111293744B (en) | 2022-08-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111293744B (en) | Charging method, charging device, electronic device, and medium | |
CN107979138B (en) | Wireless charging control method and device | |
CN110085934B (en) | Charging method of terminal battery and mobile terminal | |
CN107546808B (en) | Charging identification circuit, identification method and terminal equipment | |
CN108594120B (en) | Battery state detection method and device and computer readable storage medium | |
CN109962514B (en) | Charging method and mobile terminal | |
CN108923545B (en) | Electronic equipment, wireless charging equipment and wireless charging method | |
CN107332316B (en) | Stepped charging method, mobile terminal and computer-readable storage medium | |
CN109101375B (en) | Method for repairing fault, server and testing device | |
CN107887947B (en) | Protection method for charging port and mobile terminal | |
CN107733016B (en) | Mobile terminal charging control method and mobile terminal | |
CN107834640B (en) | Charging method and terminal | |
CN109888928B (en) | Terminal and wireless charging control method | |
EP3503332A1 (en) | Electric charging protection method, terminal, and charger | |
CN111613854A (en) | Battery, control method thereof and electronic device | |
CN115425711B (en) | Charging current acquisition method and device, terminal equipment and storage medium | |
CN106487984A (en) | A kind of method and apparatus of adjustment volume | |
CN107769324B (en) | Charging method, charger, mobile terminal and server | |
CN108810284B (en) | Mode switching method of camera and electronic equipment | |
CN108448177B (en) | Charging method and terminal | |
CN108595352B (en) | Protection method and device for mobile terminal | |
CN111491292B (en) | Internet access mode adjusting method and device, storage medium and mobile terminal | |
CN117872784A (en) | Device energy consumption adjusting method and device, electronic device and readable storage medium | |
CN110190641B (en) | Charging control circuit, terminal equipment and data line | |
CN111181218A (en) | Charging prompting method, electronic device and medium |
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 |