Charging control method, electronic equipment and storage medium

By detecting charging information and adjusting the current value, the safety hazards and inefficiencies caused by poor charging contact are resolved, enabling flexible charging control and improving the user experience.

CN121663767APending Publication Date: 2026-03-13SHENZHEN MAMMOTION INNOVATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-30
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

Existing charging control methods lack adaptive adjustment mechanisms in the event of poor contact, leading to frequent charging interruptions or reduced efficiency, which affects the user experience.

Method used

By detecting charging information, the system obtains charging voltage drop information and current information, determines the target current value based on this information, and sends a current adjustment command to adapt to the actual charging situation, thus avoiding safety hazards and inefficiency caused by poor contact.

Benefits of technology

It enables the charging current to adapt to the actual situation under poor contact conditions, avoiding safety hazards and maintaining charging efficiency, thereby improving the flexibility of charging control and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121663767A_ABST
    Figure CN121663767A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of battery management, and provides a charging control method, electronic equipment and a storage medium, the method is applied to the electronic equipment, and the method comprises the following steps: under the condition that the electronic equipment is in a charging state, detecting charging information of the electronic equipment; when it is detected that the charging information meets a preset triggering condition, acquiring charging voltage drop information and current current information of the electronic equipment; determining a target current value of the electronic equipment according to the charging voltage drop information and the current current information; and determining a current request value of the electronic equipment according to the target current value, and sending a current adjustment instruction to charging equipment connected with the electronic equipment based on the current request value. Potential safety hazards caused by too large charging current under the condition of poor contact are avoided, low charging efficiency caused by too small charging current is also avoided, and the flexibility of charging control under the condition of poor contact is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of battery management technology, and in particular to a charging control method, electronic device and storage medium. Background Technology

[0002] The charging terminals of electronic devices (such as charging interfaces, plugs, or wiring) may age due to various reasons, including physical loosening, oxidation, dirt, metal fatigue, or internal fractures, leading to poor contact during charging. Poor contact causes increased resistance, generating a large amount of heat and a rapid increase in local temperature, potentially causing the device casing to melt, generate electric arcs, or even ignite surrounding flammable materials. To avoid these hazards, related technologies employ power-off protection or reduced-current charging strategies when poor charging contact is detected. However, power-off protection leads to frequent charging interruptions, requiring manual resumption by the user; reduced-current charging may result in excessively reduced charging efficiency, impacting the user experience. Therefore, existing charging control methods lack adaptive adjustment mechanisms for poor contact, failing to adapt charging strategies to actual conditions. Improving the flexibility of charging control in abnormal situations such as poor contact is a pressing issue that needs to be addressed. Summary of the Invention

[0003] The main objective of this application is to provide a charging control method, electronic device, and storage medium, which aims to improve the flexibility of charging control in the event of poor contact.

[0004] In a first aspect, this application provides a charging control method, which is applied to an electronic device and includes the following steps: When the electronic device is in a charging state, the charging information of the electronic device is detected; If the charging information is detected to meet the preset trigger conditions, the charging voltage drop information and current current information of the electronic device are obtained. Based on the charging voltage drop information and the current current information, the target current value of the electronic device is determined; The current request value of the electronic device is determined based on the target current value, and a current adjustment command is sent to the charging device connected to the electronic device based on the current request value.

[0005] Secondly, this application also provides an electronic device that is connected to a power source via a charging device. The electronic device includes a processor, a memory, and a computer program stored in the memory and executable by the processor. When the computer program is executed by the processor, it implements the charging control method described above.

[0006] Thirdly, this application also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, it implements the charging control method described above.

[0007] This application provides a charging control method, an electronic device, and a computer storage medium. When the electronic device is in a charging state, the application detects its charging information; if the detected charging information meets preset trigger conditions, it acquires the charging voltage drop information and current information of the electronic device; based on the charging voltage drop information and the current current information, it determines the target current value of the electronic device; based on the target current value, it determines the current request value of the electronic device, and sends a current adjustment command to the charging device connected to the electronic device based on the current request value. When the charging information meets preset trigger conditions corresponding to poor contact, it triggers an adjustment to the charging current, making the charging current adaptable to the actual charging situation. This avoids safety hazards caused by excessive charging current due to poor contact, and also avoids low charging efficiency caused by insufficient charging current, improving the flexibility of charging control under poor contact conditions. Attached Figure Description

[0008] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0009] Figure 1 A schematic flowchart of a charging control method provided in an embodiment of this application; Figure 2 A flowchart illustrating the sub-steps of step S101 provided in an embodiment of this application; Figure 3 A flowchart illustrating the sub-steps of step S101 provided in another embodiment of this application; Figure 4 A flowchart illustrating the sub-steps of step S103 provided in an embodiment of this application; Figure 5 A flowchart illustrating the sub-steps of step S104 provided in an embodiment of this application; Figure 6 This is a schematic block diagram of the structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0010] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0011] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content and operations / steps, nor does it necessarily have to be performed in the order described. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.

[0012] This application provides a charging control method, an electronic device, and a storage medium.

[0013] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.

[0014] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating a charging control method provided in an embodiment of this application. The charging control method can be used in electronic devices, which can be self-moving devices, such as robotic vacuum cleaners or lawnmowers that can automatically move to a charging location; or other electronic devices that require charging, such as terminal devices, including mobile phones, tablets, laptops, desktop computers, personal digital assistants, and wearable devices.

[0015] To avoid safety hazards caused by poor contact during charging, related technologies automatically employ either power-off protection or reduced-current charging strategies if poor contact is detected. When the power-off protection strategy is implemented, the electronic device exits charging mode, requiring the user to manually reconnect it to an external power source to re-enter charging mode and re-detect the poor contact issue. This process is cumbersome, often requiring repeated connection and resulting in a poor user experience. Conversely, when a reduced-current charging strategy is employed, the electronic device uses a smaller current. While this reduces heat generated by poor contact, it also lowers charging efficiency, and the user cannot understand the cause of this inefficiency, further impacting the user experience.

[0016] To avoid the above situations, this application proposes a charging control method. For example... Figure 1 As shown, the charging control method includes steps S101 to S104.

[0017] Step S101: When the electronic device is in a charging state, the charging information of the electronic device is detected.

[0018] For example, an electronic device is connected to a charging device via wired or wireless means. The charging device can be, for example, a power adapter, a wireless charging pad, or a charging pile. The charging device is connected to an external power source, which can be grid power, photovoltaic power, etc. When the electronic device's Battery Management System (BMS) detects that the voltage connected to the charging interface is greater than the charging start voltage threshold, it determines that the electronic device has connected to an external power source through the charging device, controls the electronic device to enter the charging state, and initiates charging management and user interface feedback. Therefore, the method provided in this application embodiment can be configured in the BMS chip of an electronic device.

[0019] For example, when an electronic device is charging, charging information of the electronic device is collected in order to determine whether there is poor contact during the charging process.

[0020] The charging information includes at least one of the following: charging interface voltage, temperature, and impedance. However, it is not limited to these; other parameters may also be included, which are not specified here.

[0021] Step S102: When the charging information is detected to meet the preset triggering conditions, the charging voltage drop information and current current information of the electronic device are obtained.

[0022] For example, if poor contact is determined in the electronic device based on charging information, the charging voltage drop information and current information of the electronic device are obtained. This allows for adjustment of the current during the charging process based on the charging voltage drop information and the current current information, ensuring that the charging current is compatible with the wiring harness, which reflects the actual charging situation, such as the voltage drop. It is understood that the preset trigger condition is used to determine whether poor contact exists between the electronic device and the charging device, i.e., to determine whether subsequent current adjustment steps need to be triggered.

[0023] Please refer to Figure 2 , Figure 2 This is a flowchart illustrating the sub-steps of step S101 provided in an embodiment of this application.

[0024] like Figure 2 As shown, in some embodiments, the charging information includes: charging interface voltage information; step S101, when the charging information meets a preset trigger condition, acquires the charging voltage drop information and current current information of the electronic device, including: Step S1011: When the charging interface voltage information is greater than the charging start voltage threshold and less than the charging abnormal voltage threshold, obtain the charging voltage drop information and current current information of the electronic device.

[0025] For example, the charging interface voltage information is the voltage at the charging interface of the electronic device. When the charging information is the charging interface voltage information, the magnitude of the charging interface voltage information is used to determine whether there is a poor contact in the electronic device.

[0026] For example, a charging interface voltage information greater than the charging start voltage threshold is a condition to ensure that the electronic device is in a charging state. However, when the charging interface of the electronic device has poor contact, the poor contact will cause the resistance to increase, which will lead to a decrease in voltage. Therefore, a charging abnormal voltage threshold is set on the basis of the charging start voltage threshold. When the charging interface voltage information is less than the charging abnormal voltage threshold, it is determined that the device has poor contact.

[0027] It is understandable that the abnormal charging voltage threshold is higher than the charging start-up voltage threshold.

[0028] Please refer to Figure 3 , Figure 3 This is a flowchart illustrating the sub-steps of step S101 provided in another embodiment of this application.

[0029] like Figure 3 As shown, in some embodiments, the charging information further includes: charging interface temperature information and / or charging interface impedance information; step S101, when the charging interface voltage information is greater than the charging start voltage threshold and less than the charging abnormal voltage threshold, obtains the charging voltage drop information and current current information of the electronic device, including: Step S1012: When the voltage information is greater than the charging start voltage threshold and less than the charging abnormal voltage threshold, obtain the interface temperature information and / or interface impedance information of the charging interface of the electronic device. Step S1013: When the interface temperature information is greater than a preset temperature threshold and / or the interface impedance information is greater than a preset impedance threshold, obtain the charging voltage drop information and current current information of the electronic device.

[0030] For example, the charging information may also include: charging interface temperature information and / or charging interface impedance information. The charging interface temperature information refers to the temperature of the charging interface of the electronic device, which can be obtained by installing a temperature sensor at the charging interface; the charging interface impedance information refers to the impedance of the charging interface of the electronic device, which is determined by the resistance and reactance of the charging interface.

[0031] For example, since poor contact can lead to increased resistance, and increased resistance can lead to increased heat generated by the Joule heating effect during charging, thereby raising the temperature at the charging interface, a preset temperature threshold can be set. When the temperature of the charging interface is greater than the preset temperature threshold, it is determined that the preset trigger condition is met, that is, there is poor contact.

[0032] For example, since poor contact can lead to increased resistance, and impedance is determined by resistance and reactance, poor contact can lead to increased impedance at the charging interface. Therefore, a preset impedance threshold can be set. When the impedance information of the charging interface is greater than the preset impedance threshold, it is determined that the preset trigger condition is met, that is, there is poor contact.

[0033] For example, the charging information meeting the preset trigger conditions can be that the charging interface voltage information, charging interface temperature information, and charging interface impedance information all meet the preset trigger conditions, or it can be that any one or two of the charging interface voltage information, charging interface temperature information, and charging interface impedance information meet the preset trigger conditions, which will not be elaborated here.

[0034] In some implementations, obtaining the charging voltage drop information and current current information of the electronic device includes: Obtain the charging voltage drop and current value of the electronic device within a preset period; The average value of the charging voltage drop within the preset period is used as the charging voltage drop information, and the average value of the current current within the preset period is used as the current current information.

[0035] For example, the charging voltage drop value represents the voltage drop between the charging device and the charging interface of the electronic device, and the current current value represents the current supplied by the charging device to the charging interface.

[0036] For example, in order to make the charging voltage drop information and current current information reflect the charging status of the electronic device in real time, the charging voltage drop value and current current value of the electronic device are sampled based on a preset period, and the average value of the charging voltage drop value in each preset period is used as the charging voltage drop information of the preset period, and the average value of the current current value in each preset period is used as the current current information of the preset period.

[0037] For example, charging voltage drop information and current current information are collected and updated in each preset cycle, and the charging current is iterated based on the charging voltage drop information and current current information, so that the charging current can be adjusted in real time according to the latest charging situation, improving the flexibility of charging control.

[0038] For example, the length of the preset period can be set according to the actual situation, such as 1 minute. The electronic device continuously samples the charging voltage drop value and the current current value within the preset period, for example, sampling the charging voltage drop value and the current current value once every 1 second within 1 minute.

[0039] Specifically, assuming the first and second preset cycles are two consecutive preset cycles, after the first preset cycle ends, the electronic device calculates the charging voltage drop and current information for the first preset cycle based on the charging voltage drop and current value collected during the first preset cycle. This allows for current adjustment based on the actual charging situation during the first preset cycle. In the second preset cycle, following the first, the electronic device collects the charging voltage drop and current value again. After the second preset cycle ends, it calculates the charging voltage drop and current information for the second preset cycle based on the collected charging voltage drop and current value, and then adjusts the current based on the actual charging situation during the second preset cycle. This method ensures that the current during charging continuously adapts to the actual charging conditions, avoiding safety hazards caused by poor contact and preventing excessively low charging efficiency of the electronic device.

[0040] In some embodiments, obtaining the charging voltage drop value of the electronic device within a preset period includes: The interface voltage of the charging interface of the electronic device is detected, and the output voltage of the charging device connected to the electronic device is obtained; The charging voltage drop value is determined based on the difference between the interface voltage and the output voltage.

[0041] For example, the charging voltage drop refers to the voltage drop between the output terminal of the charging device and the input terminal of the electronic device, which is the difference between the output voltage of the charging device and the interface voltage of the charging interface of the electronic device. Since the charging interface is located on the electronic device, the electronic device can directly detect the interface voltage of the charging interface; while the output voltage of the charging device needs to be obtained through the charging protocol.

[0042] For example, electronic devices and charging devices can communicate based on a charging protocol. A charging protocol is a communication mechanism that specifies how information is transmitted between the charging device and the electronic device being charged. The electronic device can receive the output voltage sent by the charging device via wired or wireless means, based on the charging protocol, in order to calculate the charging voltage drop. The specific communication process between the electronic device and the charging device varies depending on the type of charging protocol. Those skilled in the art can determine how the electronic device and the charging device communicate based on the specific content of the charging protocol, and will not be elaborated upon here.

[0043] Step S103: Determine the target current value of the electronic device based on the charging voltage drop information and the current current information.

[0044] For example, after each preset cycle ends, a target current value is determined based on the charging voltage drop information and the current current information of this preset cycle, so as to request the charging device to charge based on the target current value, so that the charging current matches the voltage drop, avoiding safety hazards caused by excessive charging current due to poor contact, and also avoiding low charging efficiency caused by insufficient charging current.

[0045] Please refer to Figure 4 , Figure 4 This is a flowchart illustrating a sub-step of step S103 provided in an embodiment of this application.

[0046] like Figure 4 As shown, in some embodiments, step S103 determines the target current value of the electronic device based on the charging voltage drop information and the current current information, including: Step S1031: Determine the current adjustment coefficient based on the ratio of the preset voltage offset to the charging voltage drop information; Step S1032: Determine the current adjustment reference value based on the product of the current current information and the current adjustment coefficient; Step S1033: Determine the target current value based on the difference between the current adjustment reference value and the preset current adjustment offset value.

[0047] For example, the current current information is multiplied by the current adjustment coefficient, thereby adjusting the charging current of the current cycle based on the current current information of the previous preset cycle. This allows the magnitude of the charging current to iterate in each preset cycle, so that the charging current can adapt to the actual charging situation.

[0048] For example, the calculation process for the target current value can be represented by the following formula: ,in, Indicates the target current value. Indicates the current current information. This indicates charging voltage drop information. Indicates voltage offset. This represents the current adjustment offset value. It can be understood that this formula is used to achieve the target current value. With charging voltage drop information There is a negative correlation between them, i.e., the target current value Information on charging voltage drop It decreases as it increases.

[0049] Furthermore, by setting the voltage offset This makes the target current value charging voltage drop information Greater than voltage offset This reduces the risk of charging safety hazards caused by large charging voltage drops. Specifically, voltage offset... The value can be 2.0V, indicating that the charging current needs to be reduced when the charging voltage drop information is greater than 2.0V; for example, assuming the charging voltage drop information is 2.5V, the calculated current adjustment reference value is 80% of the current information; of course, the voltage offset... The size can be set according to actual needs and is not limited here.

[0050] Understandable, current regulation offset value The value can also be set according to actual needs, so that the calculated target current value is within a reasonable range; specifically, the current adjustment offset value. The size can be, for example, 0.2A.

[0051] In some embodiments, the method further includes, before determining the target current value of the electronic device based on the charging voltage drop information and the current current information: If the charging voltage drop exceeds a preset voltage drop threshold, the electronic device is controlled to exit the charging state, and / or the electronic device is controlled to output an abnormal signal.

[0052] For example, to balance safety risks and charging efficiency, this embodiment of the application adjusts the charging current to prevent the electronic device from directly exiting the charging state in the event of poor contact. However, in some extreme cases, such as when the charging voltage drop exceeds a preset voltage drop threshold (i.e., when the charging voltage drop is large), to avoid safety hazards caused by continued charging, it is necessary to control the electronic device to exit the charging state and control the electronic device to output an abnormal signal; or, simply control the electronic device to exit the charging state; or, simply control the electronic device to output an abnormal signal.

[0053] Abnormal signals can be output through indicator lights, the user interface of the electronic device, or the user interface of an app connected to the electronic device to draw the user's attention to the charging abnormality, allowing them to perform manual reset or replace the charging device.

[0054] Step S104: Determine the current request value of the electronic device based on the target current value, and send a current adjustment command to the charging device connected to the electronic device based on the current request value.

[0055] For example, the charging device plays a role in voltage conversion and current control between the electronic device and the external power source. Therefore, the charging device can control the magnitude of the charging current supplied to the electronic device. Furthermore, the electronic device communicates with the charging device based on a charging protocol. In step S104, the electronic device sends a current adjustment command to the charging device based on the charging protocol, instructing the charging device to adjust the magnitude of the charging current according to the current adjustment command, so that the magnitude of the charging current can adapt to the actual charging situation.

[0056] Please refer to Figure 5 , Figure 5 This is a flowchart illustrating a sub-step of step S104 provided in an embodiment of this application.

[0057] like Figure 5 As shown, in some embodiments, step S104 determines the current request value of the electronic device based on the target current value, and sends a current adjustment command to the charging device connected to the electronic device based on the current request value, including: Step S1041: If the target current value is less than a preset current threshold, the current threshold is used as the current request value. Step S1042: If the target current value is greater than or equal to the current threshold, the target current value is used as the current request value. Step S1043: Send the current adjustment command to the charging device connected to the electronic device based on the current request value, so that the charging device outputs charging current to the electronic device based on the current request value.

[0058] For example, the target current value calculated in step S103 is the theoretical value of the charging current. When actually sending the current adjustment command, it is necessary to avoid the current decreasing indefinitely, causing the charging current to reach zero and the electronic device to exit the charging state. Therefore, a current threshold can be set for the target current value. When the target current value is greater than or equal to the current threshold, the target current value is used as the current request value in the current adjustment command to request the charging device to output the charging current according to the target current value. When the target current value is less than the current threshold, the current threshold is used as the current request value in the current adjustment command to request the charging device to output the charging current according to the current threshold.

[0059] The charging control method provided in this application detects the charging information of the electronic device when it is in a charging state; when the detected charging information meets a preset trigger condition, it acquires the charging voltage drop information and current information of the electronic device; based on the charging voltage drop information and the current current information, it determines the target current value of the electronic device; based on the target current value, it determines the current request value of the electronic device, and sends a current adjustment command to the charging device connected to the electronic device based on the current request value. When the charging information meets a preset trigger condition corresponding to poor contact, it triggers an adjustment of the charging current, making the charging current adaptable to the actual charging situation. This avoids safety hazards caused by excessive charging current due to poor contact, and also avoids low charging efficiency caused by insufficient charging current, thus improving the flexibility of charging control under poor contact conditions.

[0060] The methods of this application can be used in a wide variety of general-purpose or special-purpose computing system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics devices, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0061] For example, the above method can be implemented as a computer program, which can be used in, for example... Figure 6 It runs on the electronic device shown.

[0062] Please see Figure 6 , Figure 6 This is a schematic block diagram illustrating the structure of an electronic device provided in an embodiment of this application. The electronic device can be a self-moving device or other terminal devices.

[0063] like Figure 6 As shown, the electronic device includes a processor, a memory, and a network interface connected via a system bus, wherein the memory may include a storage medium and internal memory.

[0064] The storage medium may store the operating system and computer programs. These computer programs include program instructions that, when executed, cause the processor to perform any charging control method.

[0065] The processor provides computing and control capabilities to support the operation of the entire electronic device.

[0066] Internal memory provides an environment for the execution of computer programs stored in storage media. When these computer programs are executed by a processor, the processor can perform any charging device method.

[0067] This network interface is used for network communication, such as sending assigned tasks. Those skilled in the art will understand that... Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0068] It should be understood that the processor can be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among these, a general-purpose processor can be a microprocessor or any conventional processor.

[0069] In one embodiment, the processor is configured to run a computer program stored in memory to perform the following steps: When the electronic device is in a charging state, the charging information of the electronic device is detected; If the charging information is detected to meet the preset trigger conditions, the charging voltage drop information and current current information of the electronic device are obtained. Based on the charging voltage drop information and the current current information, the target current value of the electronic device is determined; The current request value of the electronic device is determined based on the target current value, and a current adjustment command is sent to the charging device connected to the electronic device based on the current request value.

[0070] In some implementations, determining the current request value of the electronic device based on the target current value, and sending a current adjustment command to the charging device connected to the electronic device based on the current request value, includes: If the target current value is less than a preset current threshold, the current threshold is used as the current request value. If the target current value is greater than or equal to the current threshold, the target current value is used as the current request value; Based on the current request value, the current adjustment command is sent to the charging device connected to the electronic device, so that the charging device outputs charging current to the electronic device based on the current request value.

[0071] In some implementations, determining the target current value of the electronic device based on the charging voltage drop information and the current current information includes: The current regulation coefficient is determined based on the ratio of the preset voltage offset to the charging voltage drop information; The current adjustment reference value is determined by multiplying the current current information with the current adjustment coefficient. The target current value is determined based on the difference between the current adjustment reference value and the preset current adjustment offset value.

[0072] In some embodiments, the method further includes, before determining the target current value of the electronic device based on the charging voltage drop information and the current current information: If the charging voltage drop exceeds a preset voltage drop threshold, the electronic device is controlled to exit the charging state, and / or the electronic device is controlled to output an abnormal signal.

[0073] In some implementations, the charging information includes: charging interface voltage information; the step of acquiring the charging voltage drop information and current current information of the electronic device when the charging information meets a preset trigger condition includes: When the charging interface voltage information is greater than the charging start voltage threshold and less than the charging abnormal voltage threshold, the charging voltage drop information and current current information of the electronic device are obtained.

[0074] In some embodiments, the charging information further includes: charging interface temperature information and / or charging interface impedance information; when the charging interface voltage information is greater than the charging start voltage threshold and less than the charging abnormal voltage threshold, obtaining the charging voltage drop information and current current information of the electronic device includes: When the voltage information is greater than the charging start voltage threshold and less than the charging abnormal voltage threshold, the interface temperature information and / or interface impedance information of the charging interface of the electronic device are obtained. When the interface temperature information is greater than a preset temperature threshold and / or the interface impedance information is greater than a preset impedance threshold, the charging voltage drop information and current current information of the electronic device are obtained.

[0075] In some implementations, obtaining the charging voltage drop information and current current information of the electronic device includes: Obtain the charging voltage drop and current value of the electronic device within a preset period; The average value of the charging voltage drop within the preset period is used as the charging voltage drop information, and the average value of the current current within the preset period is used as the current current information.

[0076] In some embodiments, obtaining the charging voltage drop value of the electronic device within a preset period includes: The interface voltage of the charging interface of the electronic device is detected, and the output voltage of the charging device connected to the electronic device is obtained; The charging voltage drop value is determined based on the difference between the interface voltage and the output voltage.

[0077] It should be noted that those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the electronic device described above can be referred to the corresponding process in the aforementioned charging control method embodiments, and will not be repeated here.

[0078] This application also provides a computer-readable storage medium storing a computer program, the computer program including program instructions, and the method implemented when the program instructions are executed can be referred to various embodiments of the charging control method of this application.

[0079] The computer-readable storage medium can be an internal storage unit of the electronic device described in the foregoing embodiments, such as a hard disk or memory of the electronic device. Alternatively, the computer-readable storage medium can be an external storage device of the electronic device, such as a plug-in hard disk, smart media card (SMC), secure digital card (SD), flash card, etc., equipped on the electronic device.

[0080] It should be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of the application. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0081] It should also be understood that the term "and / or" as used in this specification and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes such combinations. It should be noted that, herein, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0082] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments. The above descriptions are merely specific implementations of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A charging control method, characterized in that, The method is applied to electronic devices, including: When the electronic device is in a charging state, the charging information of the electronic device is detected; If the charging information is detected to meet the preset trigger conditions, the charging voltage drop information and current current information of the electronic device are obtained. Based on the charging voltage drop information and the current current information, the target current value of the electronic device is determined; The current request value of the electronic device is determined based on the target current value, and a current adjustment command is sent to the charging device connected to the electronic device based on the current request value.

2. The charging control method according to claim 1, characterized in that, The step of determining the current request value of the electronic device based on the target current value, and sending a current adjustment command to the charging device connected to the electronic device based on the current request value, includes: If the target current value is less than a preset current threshold, the current threshold is used as the current request value. If the target current value is greater than or equal to the current threshold, the target current value is used as the current request value; Based on the current request value, the current adjustment command is sent to the charging device connected to the electronic device, so that the charging device outputs charging current to the electronic device based on the current request value.

3. The charging control method according to claim 1, characterized in that, Determining the target current value of the electronic device based on the charging voltage drop information and the current current information includes: The current regulation coefficient is determined based on the ratio of the preset voltage offset to the charging voltage drop information; The current adjustment reference value is determined by multiplying the current current information with the current adjustment coefficient. The target current value is determined based on the difference between the current adjustment reference value and the preset current adjustment offset value.

4. The charging control method according to claim 1, characterized in that, Before determining the target current value of the electronic device based on the charging voltage drop information and the current current information, the method further includes: If the charging voltage drop exceeds a preset voltage drop threshold, the electronic device is controlled to exit the charging state, and / or the electronic device is controlled to output an abnormal signal.

5. The charging control method according to claim 1, characterized in that, The charging information includes: charging interface voltage information; the step of acquiring the charging voltage drop information and current current information of the electronic device when the charging information meets the preset trigger conditions includes: When the charging interface voltage information is greater than the charging start voltage threshold and less than the charging abnormal voltage threshold, the charging voltage drop information and current current information of the electronic device are obtained.

6. The charging control method according to claim 5, characterized in that, The charging information further includes: charging interface temperature information and / or charging interface impedance information; when the charging interface voltage information is greater than the charging start voltage threshold and less than the charging abnormal voltage threshold, the charging voltage drop information and current current information of the electronic device are obtained, including: When the voltage information is greater than the charging start voltage threshold and less than the charging abnormal voltage threshold, the interface temperature information and / or interface impedance information of the charging interface of the electronic device are obtained; When the interface temperature information is greater than a preset temperature threshold and / or the interface impedance information is greater than a preset impedance threshold, the charging voltage drop information and current current information of the electronic device are obtained.

7. The charging control method according to any one of claims 1-6, characterized in that, The step of obtaining the charging voltage drop information and current current information of the electronic device includes: Obtain the charging voltage drop and current value of the electronic device within a preset period; The average value of the charging voltage drop within the preset period is used as the charging voltage drop information, and the average value of the current current within the preset period is used as the current current information.

8. The charging control method according to claim 7, characterized in that, The step of obtaining the charging voltage drop value of the electronic device within a preset period includes: The interface voltage of the charging interface of the electronic device is detected, and the output voltage of the charging device connected to the electronic device is obtained; The charging voltage drop value is determined based on the difference between the interface voltage and the output voltage.

9. An electronic device, characterized in that, The electronic device is connected to a power source via a charging device. The electronic device includes a processor, a memory, and a computer program stored in the memory and executable by the processor. When the computer program is executed by the processor, it implements the steps of the charging control method as described in any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, it implements the steps of the charging control method as described in any one of claims 1 to 8.