Charging current calibration method, electronic device, storage medium and program product

By detecting and calibrating the charging current difference of electronic devices, the charging efficiency reduction and safety problems caused by charging current error in the prior art are solved, and a more efficient and safe charging process is achieved.

CN120049555APending Publication Date: 2025-05-27NANCHANG HUAQIN ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510119324.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-24
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

The existing charging current calibration methods have an error of about ±4%, resulting in a decrease in charging efficiency and a large or small charging current of some devices, which affects safety and performance.

Method used

By detecting the charging current calibration command, the actual charging current of the electronic device is obtained and the current difference between it and the expected charging current is determined. If the difference meets the calibration conditions, the desired charging current is calibrated according to the difference so that it is within the allowable range.

Benefits of technology

It improves the charging efficiency of electronic devices, reduces charging current errors, and ensures the safety and consistency of the charging process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120049555A_ABST
    Figure CN120049555A_ABST
Patent Text Reader

Abstract

The invention provides a charging current calibration method, electronic equipment, a storage medium and a program product, and relates to the technical field of electronic circuits. The method comprises the following steps: in response to a charging current calibration instruction detected in a charging process, obtaining an actual charging current of the electronic equipment; determining a current difference value between the actual charging current and an expected charging current of the electronic equipment; determining whether the current difference value meets a current calibration condition or not; and if the current difference value meets the charging current calibration condition, calibrating the expected charging current of the electronic equipment according to the current difference value, so that the current difference value between the actual charging current and the expected charging current is within a difference value allowable range. The method is used for improving the charging efficiency of the electronic equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic circuit technologies, and particularly to a charging current calibration method, an electronic device, a storage medium, and a program product. Background Art

[0002] With the rapid popularization and development of electronic devices, electronic devices have occupied an important position in daily life and work. Although the performance of electronic devices has been continuously improved, constantly breaking through technical boundaries, the battery life of electronic devices has always been one of the key factors affecting the user experience. Therefore, optimizing battery charging technology has become one of the key research areas. As the core link in battery charging technology, charging current calibration has also become the focus of attention.

[0003] Currently, charging current calibration usually relies on the cooperation of a charging integrated circuit (Charger IC) and a line sampling resistor. This cooperation method results in an error of approximately ±4% in the charging current. To avoid safety issues, the charging current is usually set to 92% - 96% of the theoretical charging current. Although this improves safety, it affects the charging efficiency of some electronic devices. Summary of the Invention

[0004] This application provides a charging current calibration method, an electronic device, a storage medium, and a program product to improve the charging efficiency of electronic devices.

[0005] In a first aspect, this application provides a charging current calibration method, including:

[0006] In response to detecting a charging current calibration instruction during charging, obtaining the actual charging current of the electronic device;

[0007] Determining the current difference between the actual charging current and the expected charging current of the electronic device;

[0008] Determining whether the current difference meets the current calibration condition;

[0009] If the current difference meets the charging current calibration condition, calibrating the expected charging current of the electronic device according to the current difference so that the current difference between the actual charging current and the expected charging current is within the allowable range of the difference.

[0010] In a possible implementation, calibrating the expected charging current of the electronic device according to the current difference includes:

[0011] If the current difference is smaller than the current calibration value, adding the current calibration value to the expected charging current to obtain the calibrated expected charging current;

[0012] If the current difference is larger than the current calibration value, subtracting the current calibration value from the expected charging current to obtain the calibrated expected charging current.

[0013] In a possible implementation, determining whether the current difference satisfies the current calibration condition includes:

[0014] Determining whether the current difference is within the allowable range of the difference;

[0015] If the current difference is not within the allowable range of the difference, determining whether the relative error between the actual charging current and the expected charging current is within the normal error range;

[0016] If the relative error is within the normal error range, it is determined that the current difference satisfies the current calibration condition.

[0017] In a possible implementation, it further includes:

[0018] If the relative error is not within the normal error range, output a first reminder message for reminding to check the hardware circuit.

[0019] In a possible implementation, before obtaining the actual charging current of the electronic device, it further includes:

[0020] Obtaining the current battery level of the electronic device;

[0021] Determining that the current battery level is within a preset battery level range.

[0022] In a possible implementation, it further includes:

[0023] If the current battery level is not within the battery level range, perform a battery level management operation on the electronic device until the battery level is within the battery level range.

[0024] In a possible implementation, before obtaining the actual charging current of the electronic device, it further includes:

[0025] Determining that the current charger of the electronic device is a charger that matches the current electronic device.

[0026] In a possible implementation, it further includes:

[0027] If the current charger is not a charger that matches the current electronic device, output a second reminder message for reminding to replace the charger.

[0028] In a second aspect, the present application provides a charging current calibration device, including:

[0029] An acquisition module, configured to respond to a charging current calibration instruction detected during charging and acquire the actual charging current of the electronic device;

[0030] A first determination module, configured to determine the current difference between the actual charging current and the expected charging current of the electronic device;

[0031] A second determination module, configured to determine whether a current difference satisfies a current calibration condition;

[0032] A calibration module, configured to, if the current difference satisfies a charging current calibration condition, calibrate an expected charging current of the electronic device according to the current difference, so that a current difference between an actual charging current and the expected charging current is within an allowable range of the difference.

[0033] In a possible implementation manner, the calibration module is specifically configured to:

[0034] If the current difference is smaller than a current calibration value, add the current calibration value to the expected charging current to obtain a calibrated expected charging current;

[0035] If the current difference is larger than the current calibration value, subtract the current calibration value from the expected charging current to obtain a calibrated expected charging current.

[0036] In a possible implementation manner, the second determination module is specifically configured to:

[0037] Determine whether the current difference is within the allowable range of the difference;

[0038] If the current difference is not within the allowable range of the difference, determine whether a relative error between the actual charging current and the expected charging current is within a normal error range;

[0039] If the relative error is within the normal error range, determine that the current difference satisfies the current calibration condition.

[0040] In a possible implementation manner, the charging current calibration device further includes a processing module, and the processing module is specifically configured to:

[0041] If the relative error is not within the normal error range, output a first reminder message, where the first reminder message is used to remind to check a hardware circuit.

[0042] In a possible implementation manner, the first determination module is specifically configured to:

[0043] Obtain a current battery level of the electronic device;

[0044] Determine that the current battery level is within a preset battery level range.

[0045] In a possible implementation manner, the processing module is specifically configured to:

[0046] If the current battery level is not within the battery level range, perform a battery level processing operation on the electronic device until the battery level is within the battery level range.

[0047] In a possible implementation manner, the first determination module is specifically configured to:

[0048] Determine that the current charger of the electronic device is a charger that meets the current electronic device.

[0049] In a possible implementation, the processing module is specifically configured to:

[0050] If the current charger is not a charger that meets the current electronic device, output a second reminder message for reminding to replace the charger.

[0051] In a third aspect, the present application provides an electronic device, including: a memory, a processor;

[0052] The memory stores computer-executable instructions;

[0053] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.

[0054] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed, they are used to implement the above first aspect and / or various possible implementations of the first aspect.

[0055] In a fifth aspect, the present application provides a computer program product, including a computer program, and when the computer program is executed, it implements the above first aspect and / or various possible implementations of the first aspect.

[0056] The present application provides a charging current calibration method, an electronic device, a storage medium, and a program product, relating to the technical field of electronic circuits. The method includes: in response to detecting a charging current calibration instruction during the charging process, obtaining the actual charging current of the electronic device; determining the current difference between the actual charging current and the expected charging current of the electronic device; determining whether the current difference meets the current calibration condition; if the current difference meets the charging current calibration condition, calibrate the expected charging current of the electronic device according to the current difference, so that the current difference between the actual charging current and the expected charging current is within the allowable range of the difference. The present application, by responding to detecting a charging current calibration instruction during the charging process of the electronic device, obtains the actual charging current of the electronic device, and determines the current difference between the obtained actual charging current and the expected charging current. When the determined current difference meets the current calibration condition, calibrate the expected charging current of the electronic device according to the current difference, correct the deviation caused by factors such as the charging integrated circuit and the line sampling resistor, so that the current difference between the actual charging current and the expected charging current is within the allowable range of the difference, that is, make the actual charging current closer to the expected charging current, and improve the charging efficiency of the electronic device. Description of the Drawings

[0057] The accompanying drawings herein are incorporated into and constitute a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.

[0058] Figure 1 Schematic flowchart of the charging current calibration method provided for the embodiments of the present application Figure 1 ;

[0059] Figure 2 Schematic flowchart of the charging current calibration method provided for the embodiments of the present application Figure 2 ;

[0060] Figure 3 Schematic structural diagram of the charging current calibration device provided for the embodiments of the present application;

[0061] Figure 4 Schematic structural diagram of the electronic device provided for an embodiment of the present application.

[0062] Through the above accompanying drawings, specific embodiments of the present application have been shown, and there will be more detailed descriptions hereinafter. These drawings and textual descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. Detailed Description of the Embodiments

[0063] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numerals in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0064] To ensure safety and compliance, existing charging current calibration methods only consider tolerances and set the charging current to , where Tolerance represents the set conservative value. After setting the charging current, a few electronic devices are selected for actual measurement. If all the measured electronic devices meet the expectations, this setting will be applied to the configurations of all machines. Thus, it can be considered that this charging current calibration method does not consider the actual situation. For example, when the theoretical charging current of an electronic device is 10 amperes, the error is 4%, and Tolerance is 2%, after such design, the charging current will be reduced to 9.4 amperes; for example, when the theoretical charging current of an electronic device is 10 amperes, the error is -4%, and Tolerance is 2%, after such design, the charging current will be increased to 10.2 amperes.

[0065] In summary, the existing charging current calibration method causes the following two problems: the charging current of some electronic devices is too large, which does not conform to the safety rules; the charging current of some electronic devices is too small, and the charging speed is too slow, which does not meet the expected requirements.

[0066] In response to the above problems, when the present application detects a charging current calibration instruction during the charging process of an electronic device, it obtains the actual charging current of the electronic device and determines the current difference between the obtained actual charging current and the expected charging current. When the determined current difference meets the current calibration condition, the expected charging current of the electronic device is calibrated according to the current difference to correct the deviation caused by factors such as the charging integrated circuit and the line sampling resistor, so that the current difference between the actual charging current and the expected charging current is within the allowable range of the difference, making the actual charging current closer to the expected charging current, thereby improving the charging efficiency of the electronic device.

[0067] The following uses specific embodiments to elaborate in detail on the technical solution of the present application and how the technical solution of the present application solves the above technical problems. These specific embodiments below can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below with reference to the accompanying drawings.

[0068] Figure 1 Schematic flow of the charging current calibration method provided by the embodiments of the present application Figure 1 As Figure 1 shown, the method includes:

[0069] S101. In response to detecting a charging current calibration instruction during the charging process, obtain the actual charging current of the electronic device.

[0070] In this step, when performing charging current calibration, it is necessary to detect a charging current calibration instruction during the charging process of the electronic device, and the specific implementation method for detecting the charging current calibration instruction can be set according to actual needs.

[0071] In one implementation, if the charging current calibration instruction is implemented by pressing a specific button in the electronic device, then detecting the charging current calibration instruction is to monitor the working state of the button.

[0072] In another implementation, if the charging current calibration instruction is implemented by a charging current calibration script, then detecting the charging current calibration instruction is to monitor the execution state of the charging current calibration instruction.

[0073] Furthermore, the actual charging current of the electronic device refers to the magnitude of the current that actually flows into the battery of the electronic device during the charging process, and the specific implementation method for obtaining the actual charging current of the electronic device can be set according to the actual situation.

[0074] Optionally, based on a serial communication protocol, the actual charging current of the electronic device is obtained in real time through an embedded controller (detected as EC) embedded in the electronic device.

[0075] S102. Determine the current difference between the actual charging current and the desired charging current of the electronic device.

[0076] After obtaining the actual charging current, it is necessary to determine the current difference between the actual charging current and the desired charging current of the electronic device. Among them, the desired charging current of the electronic device is an ideal value obtained according to design specifications or theoretical calculations, and this ideal value reflects the current consumption that the electronic device should have under normal operating conditions.

[0077] S103. Determine whether the current difference meets the current calibration condition.

[0078] After determining the current difference in S102, a further judgment is made on the current difference, that is, to determine whether the current difference meets the current calibration condition. Among them, the current calibration condition refers to the conditions required for calibrating the charging current of the electronic device, and the current calibration condition can be set according to user needs. For example, the current calibration condition is determined as whether the current difference is equal to a specific range.

[0079] When the current difference is determined to meet the current calibration condition, execute S104.

[0080] S104. If the current difference meets the charging current calibration condition, calibrate the desired charging current of the electronic device according to the current difference, so that the current difference between the actual charging current and the desired charging current is within the allowable range of the difference.

[0081] When the current difference meets the charging current calibration condition, it is necessary to calibrate the desired charging current of the electronic device according to the current difference. The purpose of calibration is to make the current difference between the actual charging current and the desired charging current within the allowable range of the difference.

[0082] It should be noted that considering safety issues, the above-mentioned desired charging current does not exceed the maximum charging current of the electronic device battery.

[0083] In an embodiment of the present application, by responding to a charging current calibration instruction detected during the charging process of an electronic device, the actual charging current of the electronic device is obtained, and the current difference between the obtained actual charging current and the expected charging current is determined. When the determined current difference meets the current calibration condition, the expected charging current of the electronic device is calibrated according to the current difference, and the deviation caused by factors such as the charging integrated circuit and the line sampling resistor is corrected, so that the current difference between the actual charging current and the expected charging current is within the allowable range of the difference, that is, the actual charging current is closer to the expected charging current, and the charging efficiency of the electronic device is improved.

[0084] With the introduction of the fast charging concept in electronic devices, more and more users are concerned about the battery life performance after 30 minutes of charging. Through testing, it is found that for different electronic devices with the same configuration, the amount of electricity charged in 30 minutes is different. Actually, there is a 5.5% difference in the amount of electricity (different electronic devices may store different amounts of electricity difference), which in turn leads to a difference of about 5.3% in battery life, and this difference exceeds the 3% required by users.

[0085] To solve the problem of battery life difference in electronic devices, in an embodiment of the present application, based on the above embodiment, the expected charging current of the electronic device is calibrated according to the current difference, including: if the current difference is smaller than the current calibration value, add the current calibration value to the expected charging current to obtain the calibrated expected charging current; if the current difference is larger than the current calibration value, subtract the current calibration value from the expected charging current to obtain the calibrated expected charging current. Among them, the current calibration value is the value corresponding to the current calibration gear, and the current calibration gear represents the unit for precisely quantifying and adjusting the charging current.

[0086] When calibrating the expected charging current of the electronic device, it is necessary to judge the magnitude relationship between the current difference and the current calibration value, and execute the corresponding calibration measures according to the judgment result.

[0087] When the current difference is smaller than the current calibration value, add the current calibration value to the expected charging current. For example, assuming that the current calibration value is 64 mA, when the current difference is less than 64 mA, the calibrated expected charging current is equal to the expected charging current plus the current calibration value.

[0088] When the current difference is larger than the current calibration value, subtract the current calibration value from the expected charging current. For example, assuming that the current calibration value is 64 mA, when the current difference is greater than 64 mA, the calibrated expected charging current is equal to the expected charging current minus the current calibration value.

[0089] In the embodiments of the present application, by judging the magnitude relationship between the current difference and the current calibration value and performing corresponding calibration measures according to the judgment result, on the premise of ensuring safety rules, the consistency of the charging current between different electronic devices is ensured as much as possible, the error caused by the charging current is reduced, and the accuracy of the charging current between different electronic devices is improved.

[0090] Further, before calibrating the expected charging current of the electronic device, it is necessary to judge whether the current difference meets the current calibration condition. Determining whether the current difference meets the current calibration condition includes: determining whether the current difference is within the allowable range of the difference; if the current difference is not within the allowable range of the difference, determining whether the relative error between the actual charging current and the expected charging current is within the normal error range; if the relative error is within the normal error range, it is determined that the current difference meets the current calibration condition.

[0091] In this embodiment, it can be understood that when determining whether the current difference meets the current calibration condition, it is necessary to first determine whether the current difference is within the allowable range of the difference. When the current difference is within the allowable range of the difference, the actual charging current of the electronic device is stored. For example, the actual charging current is stored in the EC flash memory, and the electronic device exits the charging current calibration. Among them, the allowable range of the difference can be set according to actual needs. For example, the allowable range of the difference can be set between -64 mA and 64 mA.

[0092] When the current difference is not within the allowable range of the difference, it is also necessary to determine whether the relative error is within the normal error range. Among them, the normal error range can be set according to the actual situation. For example, the normal error range is set to 8%. If the relative error is within the normal error range, it is determined that the current difference meets the current calibration condition, and subsequent calibration operations are performed.

[0093] Further, the calculation formula of the relative error is as follows:

[0094] 。

[0095] Optionally, it is determined whether the current difference is within the range of -64 mA to 64 mA. When the current difference is within the range of -64 mA to 64 mA, the actual charging current is stored in the EC flash memory, and the electronic device exits the charging current calibration; when the current difference is not within the range of -64 mA to 64 mA, it is determined whether the relative error is within 8%. If the relative error is within 8%, it is determined that the current difference meets the current calibration condition, and subsequent calibration operations are performed.

[0096] Furthermore, if the relative error is not within the normal error range, a first reminder message is output, and the first reminder message is used to remind to check the hardware circuit. Among them, the specific implementation manner of outputting the first reminder message can be set according to actual needs.

[0097] In one implementation, a first reminder message is output through the display screen of the electronic device.

[0098] In another implementation, a first reminder message is output through the audio execution module of the electronic device.

[0099] By determining whether the current difference satisfies the current calibration condition, the embodiment of the present application can calibrate the expected charging current of the electronic device, thereby improving the accuracy of the charging current calibration method.

[0100] Based on the above embodiments, before obtaining the actual charging current of the electronic device, it further includes: obtaining the current battery level of the electronic device; determining that the current battery level is within a preset battery level range.

[0101] In this embodiment, it can be understood that before obtaining the actual charging current of the electronic device, the current battery level situation of the electronic device should also be obtained, and it is determined whether the current battery level is within a preset battery level range. Among them, the value of the preset battery level range can be set according to actual needs. For example, the preset battery level range is set to 20% - 30%.

[0102] If the current battery level is not within the battery level range, a battery level management operation is performed on the electronic device until the battery level is within the battery level range. For example, if the current battery level is greater than 30%, a discharging operation is performed on the electronic device until the current battery level of the electronic device is within the battery level range; if the current battery level is less than 20%, a charging operation is performed on the electronic device until the current battery level of the electronic device is within the battery level range.

[0103] By performing a battery level management operation on the electronic device whose current battery level is not within the battery level range, the embodiment of the present application ensures that the electronic device is in a safe state when performing the current calibration operation, reducing the adverse effects on the electronic device.

[0104] Based on the above embodiments, before obtaining the actual charging current of the electronic device, it further includes: determining that the current charger of the electronic device is a charger that conforms to the current electronic device.

[0105] In this embodiment, it can be understood that before obtaining the actual charging current of the electronic device, the current charger of the electronic device should also be obtained, and it is determined whether the current charger of the electronic device is a charger that conforms to the current electronic device.

[0106] By judging the current charger of the electronic device, and performing subsequent calibration operations on the electronic device only when it is ensured that the current charger of the electronic device is a charger that conforms to the current electronic device, the embodiment of the present application can reduce the precise change of the charging current caused by replacing the charger of the electronic device later.

[0107] If the current charger does not match the current electronic device, a second reminder message is output, which is used to remind to replace the charger. Among them, the specific implementation method of outputting the second reminder message can be set according to actual needs.

[0108] In one implementation, the second reminder message is output through the display screen of the electronic device.

[0109] In another implementation, the second reminder message is output through the audio execution module of the electronic device.

[0110] Next, the charging current calibration method provided in the embodiments of the present application will be explained and described in conjunction with Figure 2 The charging current calibration method provided in the embodiments of the present application is Figure 2 a schematic flow of the charging current calibration method provided in the embodiments of the present application Figure 2 As Figure 2 shown, the method includes the following steps:

[0111] In response to detecting a charging current calibration instruction during the charging process, obtain the current battery level of the electronic device;

[0112] Determine whether the current battery level is within a preset battery level range, where the preset battery level range can be 20% - 30% of the full battery level of the electronic device to be calibrated;

[0113] If the current battery level is not within the preset battery level range, perform a battery management operation on the electronic device until the battery level of the electronic device is within the preset battery level range; for example, if the current battery level is greater than 30%, perform a discharging operation on the electronic device until the current battery level of the electronic device is within the battery level range; if the current battery level is less than 20%, perform a charging operation on the electronic device until the current battery level of the electronic device is within the battery level range;

[0114] If the current battery level is within the preset battery level range, determine whether the current charger of the electronic device is a charger that matches the current electronic device;

[0115] If the current charger is not a charger that matches the current electronic device, output a reminder message, which is used to remind to replace the charger, for example, output the reminder message in a pop-up window;

[0116] If the current charger is a charger that matches the current electronic device, store the expected charging current into the EC flash;

[0117] Read the actual charging current of the electronic device through the Serial Communication Protocol (System Management Bus, abbreviated as SMBus), and determine whether the current difference between the actual charging current and the expected charging current of the electronic device is within the allowable difference range;

[0118] If the current difference is within the allowable difference range, save the actual charging current into the EC flash, and the actual charging current is the calibrated charging current;

[0119] If the current difference is not within the allowable difference range, determine whether the relative error between the actual charging current and the expected charging current of the electronic device is within the normal error range, where the normal error range can be set according to actual needs. For example, the normal error range is set to 8%;

[0120] When the relative error is within the normal error range, calibrate the expected charging current. Specifically, if the current difference is smaller than the current calibration value, add the current calibration value to the expected charging current to obtain the calibrated expected charging current; if the current difference is larger than the current calibration value, subtract the current calibration value from the expected charging current to obtain the calibrated expected charging current;

[0121] When the relative error is not within the normal error range, output a reminder message, which is used to remind to check the hardware circuit, such as pop - up window to output the reminder message.

[0122] In summary, through the automatic charging current calibration of the electronic device in the embodiment of the present application, it is aimed to control the charging error within the allowable difference range, such as within 1%, for different electronic devices with the same configuration under the same charging conditions, so that the data of the electronic devices purchased by users is closer to the data in the manufacturer's press conference, improving user satisfaction and enhancing the product competitiveness of the electronic devices.

[0123] Figure 3 It is a schematic structural diagram of the charging current calibration device provided by the embodiment of the present application, as Figure 3 shown, the charging current calibration device 300 provided in this embodiment includes:

[0124] An acquisition module 301, configured to obtain the actual charging current of the electronic device in response to detecting a charging current calibration instruction during the charging process;

[0125] A first determination module 302, configured to determine the current difference between the actual charging current and the expected charging current of the electronic device;

[0126] A second determination module 303, configured to determine whether the current difference meets the current calibration condition;

[0127] A calibration module 304, configured to, if the current difference meets the charging current calibration condition, calibrate the expected charging current of the electronic device according to the current difference, so that the current difference between the actual charging current and the expected charging current is within the allowable difference range.

[0128] In a possible implementation manner, the calibration module 304 is specifically configured to:

[0129] If the current difference is smaller than the current calibration value, add the current calibration value to the expected charging current to obtain the calibrated expected charging current;

[0130] If the current difference is larger than the current calibration value, subtract the current calibration value from the expected charging current to obtain the calibrated expected charging current.

[0131] In a possible implementation manner, the second determination module 303 is specifically configured to:

[0132] Determine whether the current difference is within the allowable difference range;

[0133] If the current difference is not within the allowable difference range, determine whether the relative error is within the normal error range;

[0134] If the relative error is within the normal error range, it is determined that the current difference meets the current calibration condition.

[0135] In a possible implementation manner, the charging current calibration device further includes a processing module (not shown), and the processing module is specifically configured to: If the relative error is not within the normal error range, output a first reminder message, where the first reminder message is used to remind to check the hardware circuit.

[0136] In a possible implementation manner, the first determination module 302 is specifically configured to:

[0137] Obtain the current battery level of the electronic device;

[0138] Determine that the current battery level is within a preset battery level range.

[0139] In a possible implementation manner, the processing module is specifically configured to:

[0140] If the current battery level is not within the battery level range, perform a battery level management operation on the electronic device until the battery level is within the battery level range.

[0141] In a possible implementation manner, the first determination module 302 is specifically configured to:

[0142] Determine that the current charger of the electronic device is a charger that conforms to the current electronic device.

[0143] In a possible implementation manner, the processing module is configured to:

[0144] If the current charger is not a charger that conforms to the current electronic device, output a second reminder message, where the second reminder message is used to remind to replace the charger.

[0145] The charging current calibration device provided in this embodiment can execute the method provided in the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here in this embodiment.

[0146] It should be noted that the division of each module of the above device is only a division of logical functions. In actual implementation, it can be fully or partially integrated into a physical entity, or physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also all be implemented in the form of hardware; or some modules can be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the processing module can be a separately established processing element, or can be integrated in a certain chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and the function of the above processing module can be called and executed by a certain processing element of the above device. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together or can be independently implemented. Here, the processing element can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each of the above modules can be completed by the integrated logic circuit in the processor element or the instruction in the form of software.

[0147] For example, the above modules can be one or more integrated circuits configured to implement the above method, such as: one or more Application Specific Integrated Circuits (ASICs), or, one or more Digital Signal Processors (DSPs), or, one or more Field Programmable Gate Arrays (FPGAs), etc. Again, when a certain module above is implemented in the form of program code allocated by a processing element, the processing element can be a general-purpose processor, such as a Central Processing Unit (CPU) or other processors that can call program code. Again, these modules can be integrated together and implemented in the form of a System-On-a-Chip (SOC).

[0148] Figure 4 The structural schematic diagram of the electronic device provided by an embodiment of the present application. As Figure 4 shown, the electronic device 400 provided by the embodiment of the present application may include: a processor 401, and a memory 402 communicatively connected to the processor, where:

[0149] The memory stores computer-executable instructions;

[0150] The processor executes the computer-executable instructions stored in the memory to implement the method described in the foregoing method embodiments.

[0151] It should be understood that the processor 401 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in combination with the application can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor. The memory 402 may include high-speed random access memory (RAM), and may also include non-volatile memory (NVM), such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk, or an optical disc, etc.

[0152] Optionally, the electronic device 400 may further include a communication interface 404. In a specific implementation, if the communication interface 404, the memory 402, and the processor 401 are implemented independently, the communication interface 404, the memory 402, and the processor 401 may be interconnected through a bus and communicate with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc., but it does not mean that there is only one bus or one type of bus.

[0153] Optionally, in a specific implementation, if the communication interface 404, the memory 402, and the processor 401 are integrated on a single chip, the communication interface 404, the memory 402, and the processor 401 may communicate through an internal interface.

[0154] The embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed, they are used to implement the method described in any of the foregoing embodiments.

[0155] It can be understood that the computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM for short), electrically erasable programmable read-only memory (EEPROM for short), erasable programmable read-only memory (EPROM for short), programmable read-only memory (PROM for short), read-only memory (ROM for short), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium accessible by a general-purpose or special-purpose computer.

[0156] An exemplary computer-readable storage medium is coupled to a processor, enabling the processor to read information from the computer-readable storage medium and write information to the computer-readable storage medium. Of course, the computer-readable storage medium can also be a component of the processor. The processor and the computer-readable storage medium can be located in an ASIC. Of course, the processor and the computer-readable storage medium can also exist as discrete components in an electronic device.

[0157] The integrated modules implemented in the form of software function modules as described above can be stored in a computer-readable storage medium. The above-mentioned software function modules stored in a computer-readable storage medium include several instructions for causing an electronic device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute some steps of the methods described in various embodiments of the present application.

[0158] The embodiments of the present application also provide a computer program product, including a computer program, which when executed implements the method described in any one of the foregoing embodiments.

[0159] It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to the present application.

[0160] It should be further noted that although the steps in the flowchart are shown sequentially according to the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless there is a clear description in this article, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowchart may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or sub-steps or stages of other steps.

[0161] In the above embodiments, the descriptions of the various embodiments have their own emphases. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments. The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.

[0162] Those skilled in the art will readily conceive of other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of the present application and include common general knowledge or conventional technical means in the technical field not disclosed in the present application. The specification and examples are only regarded as exemplary, and the true scope and spirit of the present application are pointed out by the following claims.

[0163] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present application is only limited by the appended claims.

Claims

1. A charging current calibration method, characterized in that: include: In response to detecting a charging current calibration instruction during the charging process, obtaining an actual charging current of the electronic device; determining a current difference between the actual charging current and a desired charging current of the electronic device; Determining whether the current difference satisfies a current calibration condition; If the current difference satisfies the charging current calibration condition, the expected charging current of the electronic device is calibrated according to the current difference, so that the current difference between the actual charging current and the expected charging current is within an allowable range of the difference.

2. The method according to claim 1, characterized in that The step of calibrating the expected charging current of the electronic device according to the current difference comprises: If the current difference is smaller than the current calibration value, adding the current calibration value to the expected charging current to obtain a calibrated expected charging current; If the current difference is greater than the current calibration value, the current calibration value is subtracted from the expected charging current to obtain a calibrated expected charging current.

3. The method according to claim 1 or 2, characterized in that: The determining whether the current difference satisfies a current calibration condition comprises: Determine whether the current difference is within the allowable difference range; If the current difference is not within the allowable difference range, determining whether a relative error between the actual charging current and the expected charging current is within a normal error range; If the relative error is within a normal error range, it is determined that the current difference satisfies a current calibration condition.

4. The method according to claim 3, characterized in that Also includes: If the relative error is not within the normal error range, a first reminder message is output, where the first reminder message is used to remind a hardware circuit check.

5. The method according to claim 1 or 2, characterized in that: Before obtaining the actual charging current of the electronic device, the method further includes: Obtaining the current power of the electronic device; Determine that the current power level is within a preset power level range.

6. The method according to claim 5, characterized in that Also includes: If the current power level is not within the power range, a power management operation is performed on the electronic device until the power level is within the power range.

7. The method according to claim 1 or 2, characterized in that: Before obtaining the actual charging current of the electronic device, the method further includes: It is determined that the current charger of the electronic device is a charger that is suitable for the current electronic device.

8. The method according to claim 7, characterized in that Also includes: If the current charger is not suitable for the current electronic device, a second reminder message is output, where the second reminder message is used to remind the user to replace the charger.

9. A charging current calibration device, characterized in that: include: An acquisition module, used for acquiring an actual charging current of the electronic device in response to detecting a charging current calibration instruction during the charging process; A first determining module, configured to determine a current difference between the actual charging current and an expected charging current of the electronic device; A second determination module, used to determine whether the current difference satisfies a current calibration condition; The calibration module is used to calibrate the expected charging current of the electronic device according to the current difference if the current difference meets the charging current calibration condition, so that the current difference between the actual charging current and the expected charging current is within the allowable range of the difference.

10. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 8.