Electronic device, battery processing method, storage medium and computer program product

By introducing power detection modules and processing modules into electronic devices, battery information is directly obtained from power detection modules and transferred to temperature sensing modules, the problem of untimely acquisition of battery information is solved, ensuring the stable operation of electronic devices and reducing redundant paths.

CN120341407APending Publication Date: 2025-07-18BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410077271.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-18
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

In the prior art, the battery information acquisition method of electronic devices is relatively redundant, and when the temperature sensing module is abnormal, it is easy to cause untimely acquisition of battery information, resulting in problems with the operation of electronic devices.

Method used

By introducing power detection modules and processing modules into electronic devices, the processing module directly obtains battery information from the power detection module and passes it to the temperature sensing module, reducing redundant paths and ensuring that battery information can be obtained in time even if the temperature sensing module is abnormal.

Benefits of technology

It reduces the redundancy of battery information acquisition, avoids the unrecoverable damage to the electronic device chip caused by abnormal temperature sensing modules, and ensures the stable operation of electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120341407A_ABST
    Figure CN120341407A_ABST
Patent Text Reader

Abstract

The invention relates to electronic equipment, a battery processing method, a storage medium and a computer program product. The electronic device includes: a battery; the electric quantity detection module is connected with the battery and is configured to detect battery information of the battery; the processing module is connected with the electric quantity detection module and is configured to obtain the battery information from the electric quantity detection module; the temperature sensing module is connected with the processing module and is configured to acquire the battery information based on the processing module, so that the redundancy of a battery information acquisition mode is reduced, and the problems that the battery information is not acquired in time and a chip of the electronic equipment is irrecoverable and damaged due to the fact that the temperature sensing module is abnormal are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to intelligent terminal processing technologies, and particularly to an electronic device, a battery processing method, a storage medium, and a computer program product. Background Art

[0002] Since the temperature sensing module in the electronic device needs to obtain the battery information in the electronic device and use the resistance value of the thermistor inside the battery to fit the temperature of the housing of the electronic device, the update of the battery information of the electronic device depends on the temperature sensing module, that is, it is necessary for the temperature sensing module to obtain the latest battery information and then send the latest battery information to the processing module. This makes the acquisition method of battery information relatively redundant.

[0003] In addition, once the temperature sensing module is damaged artificially or otherwise, it is easy to have a situation where the processing module cannot obtain the battery information in a timely manner for a period of time, which causes problems in the operation of the electronic device and is not conducive to improving the user experience. Summary of the Invention

[0004] To overcome the problems in the related art, the present disclosure provides an electronic device, a battery processing method, a storage medium, and a computer program product to overcome the problem that the acquisition method of battery information in the prior art is relatively redundant and the battery information may not be obtained in a timely manner.

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0006] A battery;

[0007] A power detection module, connected to the battery and configured to detect battery information of the battery;

[0008] A processing module, connected to the power detection module and configured to obtain the battery information from the power detection module;

[0009] A temperature sensing module, connected to the processing module and configured to obtain the battery information based on the processing module.

[0010] In some embodiments, the temperature sensing module is configured to perform temperature fitting based on the battery information.

[0011] In some embodiments, the electronic device includes:

[0012] A storage module, connected to the processing module and the temperature sensing module and configured to store the battery information;

[0013] The temperature sensing module is configured to obtain the battery information stored by the processing module from the storage module.

[0014] In some embodiments, the processing module is further configured to:

[0015] Obtain the battery information from the power detection module according to the acquisition period corresponding to the charging state of the battery.

[0016] In some embodiments, the processing module is further configured to:

[0017] When the battery is in the charging state, obtain the battery information according to a first period;

[0018] When the battery is not in the charging state, obtain the battery information according to a second period;

[0019] Wherein, the second period is greater than the first period.

[0020] In some embodiments, the charging state includes: a first charging state and a second charging state, and the charging speed of the battery in the first charging state is greater than the charging speed of the battery in the second charging state;

[0021] The processing module is specifically configured to:

[0022] When the battery is in the first charging state, obtain the battery information according to a third period;

[0023] When the battery is in the second charging state, obtain the battery information according to a fourth period;

[0024] Wherein, the third period is less than the fourth period.

[0025] In some embodiments, the processing module is further configured to:

[0026] When it is detected that the acquisition period ends, re-determine the charging state of the battery;

[0027] Update the acquisition period based on the re-determined charging state;

[0028] Obtain the battery information from the power detection module according to the updated acquisition period.

[0029] According to a second aspect of the embodiments of the present disclosure, a battery processing method is provided, including:

[0030] The power detection module of the electronic device detects the battery information of the battery;

[0031] The processing module obtains the battery information from the power detection module;

[0032] The temperature sensing module obtains the battery information based on the processing module.

[0033] In some embodiments, the method further includes:

[0034] The temperature sensing module performs temperature fitting based on the battery information.

[0035] In some embodiments, the method further includes:

[0036] The storage module stores the battery information obtained by the processing module;

[0037] The temperature sensing module obtains the battery information stored by the processing module from the storage module.

[0038] In some embodiments, the processing module obtains the battery information of the battery from the power detection module, including:

[0039] The processing module obtains the battery information from the power detection module according to an acquisition period corresponding to the charging state of the battery.

[0040] In some embodiments, the processing module obtains the battery information from the power detection module according to an acquisition period corresponding to the charging state of the battery, including:

[0041] When the battery is in the charging state, the processing module obtains the battery information according to a first period;

[0042] When the battery is not in the charging state, the processing module obtains the battery information according to a second period;

[0043] Wherein, the second period is greater than the first period.

[0044] In some embodiments, the charging state includes: a first charging state and a second charging state, and the charging speed of the battery in the first charging state is greater than the charging speed of the battery in the second charging state;

[0045] When the battery is in the charging state, the processing module obtains the battery information according to a first period, including:

[0046] When the battery is in the first charging state, the processing module obtains the battery information according to a third period;

[0047] When the battery is in the second charging state, the processing module obtains the battery information according to a fourth period;

[0048] Wherein, the third period is less than the fourth period.

[0049] In some embodiments, the processing module obtains the battery information from the power detection module according to an acquisition period corresponding to the charging state of the battery, including:

[0050] When the processing module detects the end of the acquisition period, it re-determines the charging state of the battery;

[0051] Update the acquisition period based on the re-determined charging state;

[0052] Obtain the battery information from the power detection module according to the updated acquisition period.

[0053] According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including:

[0054] A processor;

[0055] A memory for storing computer programs or instructions;

[0056] Wherein, the processor executes the computer program or instruction to implement the steps in any one of the battery processing methods in the above second aspect.

[0057] According to a fourth aspect of the embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, including:

[0058] When the computer program or instruction in the storage medium is executed by a processor, the steps in any one of the battery processing methods in the above second aspect are implemented.

[0059] According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product, including a computer program or instruction, and when the computer program or instruction is executed by a processor, the steps in any one of the battery processing methods in the above second aspect are implemented.

[0060] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

[0061] In the embodiments of the present disclosure, the electronic device includes a battery, a power detection module, a processing module, and a temperature sensing module. Among them, the power detection module is connected to the battery and is configured to detect the battery information of the battery; the processing module is connected to the power detection module and is configured to obtain the battery information from the power detection module; the temperature sensing module is connected to the processing module and is configured to obtain the battery information based on the processing module.

[0062] Thus, in the embodiments of the present disclosure, the processing module directly obtains battery information from the power detection module, enabling the temperature sensing module to directly obtain the battery information from within the processing module. In this way, even if the temperature sensing module malfunctions, the processing module can still obtain the battery information in a timely manner, which helps to reduce the redundancy of the battery information acquisition method and avoid the problem that the processing module cannot obtain the battery information in a timely manner due to the malfunction of the temperature sensing module, resulting in irreparable damage to the chip of the electronic device.

[0063] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and do not limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present disclosure and used together with the specification to explain the principles of the present disclosure.

[0065] Figure 1 is a schematic structural diagram of an electronic device shown according to an exemplary embodiment Figure 1 ;

[0066] Figure 2 is a schematic structural diagram of an electronic device shown according to an exemplary embodiment Figure 2 ;

[0067] Figure 3 is a schematic structural diagram of an electronic device shown according to an exemplary embodiment Figure 3 ;

[0068] Figure 4 is a schematic flowchart of a battery processing method shown according to an exemplary embodiment Figure 1 ;

[0069] Figure 5 is a schematic flowchart of a battery processing method shown according to an exemplary embodiment Figure 2 ;

[0070] Figure 6 is a schematic flowchart of a battery processing method shown according to an exemplary embodiment Figure 3 ;

[0071] Figure 7 is a schematic flowchart of a battery processing method shown according to an exemplary embodiment Figure 4 ;

[0072] Figure 8 is a block diagram of the structure of an electronic device 800 shown according to an exemplary embodiment;

[0073] Figure 9 is a block diagram of a device 900 for sound pickup shown according to an exemplary embodiment.

[0074] Reference numerals: electronic device 100; battery 101; battery information detection module 102; processing module 103; temperature sensing module 104; storage module 105. Detailed implementation manners

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

[0076] An electronic device is provided in an embodiment of the present disclosure. Figure 1 It is a schematic structural diagram of an electronic device shown according to an exemplary embodiment. Figure 1 As Figure 1 shown; the electronic device 100 includes:

[0077] A battery 101;

[0078] A battery information detection module 102, connected to the battery 101 and configured to detect battery information of the battery 101;

[0079] A processing module 103, connected to the battery information detection module and configured to obtain the battery information from the battery information detection module;

[0080] A temperature sensing module 104, connected to the processing module 103 and configured to obtain the battery information based on the processing module 103.

[0081] It should be noted that the battery processing method proposed in the present disclosure can be applied to an electronic device or a server. Here, the electronic device may include: a terminal device, for example, a mobile terminal or a fixed terminal. Among them, the mobile terminal may include: devices such as a mobile phone, a tablet computer, a laptop computer, etc. The fixed terminal may include: a desktop computer, a smart TV, etc. As a type of computer, the server can provide computing or application services for other client machines (such as terminal devices such as computers, smart phones, ATMs, and even large devices such as train systems) in the network.

[0082] The battery processing method in the embodiment of the present disclosure can be configured in a battery processing device, and the battery processing device can be set in a server or can also be set in an electronic device. The embodiment of the present disclosure does not limit this.

[0083] It should be noted that the execution subject of the embodiments of the present disclosure can be, for example, a central processing unit (CPU) in a server or an electronic device in terms of hardware, and can be, for example, relevant background services in a server or an electronic device in terms of software, and no limitation is imposed thereon.

[0084] In the embodiments of the present disclosure, the electronic device includes: a battery, a power detection module, a processing module, and a temperature sensing module.

[0085] It can be understood that a battery is an electrical device, and its functions mainly include energy conversion and energy storage. It can convert chemical energy into electrical energy to provide electrical energy for the electronic device, and can also store electrical energy to provide electrical energy for the electronic device in a timely manner when the electronic device needs power.

[0086] Here, the battery can be a lithium-ion battery, a nickel-cadmium battery, or a nickel-metal hydride battery, and no limitation is imposed thereon in the embodiments of the present disclosure.

[0087] It should be noted that in order for the electronic device to obtain battery information, the power detection module can be connected to the battery, so as to measure the battery information of the battery through the power detection module.

[0088] Here, the battery information includes but is not limited to battery power, battery voltage, battery input current, and battery encryption information, etc., and no limitation is imposed thereon in the embodiments of the present disclosure.

[0089] In some embodiments, the power detection module can be a coulombmeter, which detects the voltage change and current change of the battery through the principle of electric field or magnetic field induction, and then based on Faraday's law and Ohm's law, calculates the power consumption of the battery based on the voltage change and current change, so as to obtain the battery information, stores the obtained battery information in its own module, and sends the battery information to other modules in the electronic device through a transmission protocol.

[0090] It should be explained that in order to reduce the redundancy of the battery information acquisition method, the processing module can be connected to the power detection module, so that the processing module can obtain the battery information from the power detection module, so as to ensure that the processing module can control some functional modules in the electronic device, such as the sensing module, the sound module, etc., based on the battery information, such as battery power, battery current, etc., so as to ensure the normal operation of the electronic device.

[0091] Here, the processing module can be a central processing unit CPU, which reads and processes software resources in the electronic device and controls and allocates hardware resources.

[0092] In some embodiments, a two-wire serial communication bus (Inter-Integrated Circuit, I2C) is used for data transmission between the processing module and the power detection module. When communicating using I2C, usually two wires are required. One is the serial data line SDA, and the other is the serial clock line SCL. When the bus is idle, both wires are at a high level, and the external devices connected to the bus are all CMOS devices. During the transmission of battery information, the power detection module addresses the processing module and then sends the detected battery information to the processing module; the processing module also addresses the power detection module and then receives the battery information.

[0093] Here, the processing module can obtain battery information from the power detection module at a fixed period or in real time. The embodiments of the present disclosure do not limit this.

[0094] It should be noted that since the processing module can obtain battery information from the power detection module and the temperature sensing module can directly obtain battery information from the processing module, even if the temperature sensing module has a problem, the processing module can still obtain battery information in time, thus avoiding problems such as a sudden drop in the power of the electronic device and chip damage caused by the chip being unable to continuously operate under low voltage.

[0095] In the embodiments of the present disclosure, the electronic device includes a battery, a power detection module, a processing module, and a temperature sensing module. Among them, the power detection module is connected to the battery and is configured to detect the battery information of the battery; the processing module is connected to the power detection module and is configured to obtain the battery information from the power detection module; the temperature sensing module is connected to the processing module and is configured to obtain the battery information based on the processing module.

[0096] In this way, in the embodiments of the present disclosure, the processing module directly obtains battery information from the power detection module, enabling the temperature sensing module to directly obtain the battery information from the processing module. In this way, even if the temperature sensing module is abnormal, the processing module can still obtain battery information in time, which is beneficial to reducing the redundancy of the battery information acquisition method and avoiding the problem of irreparable damage to the chip of the electronic device due to the abnormal temperature sensing module resulting in the processing module being unable to obtain battery information in time.

[0097] In some embodiments, the temperature sensing module is configured to perform temperature fitting based on the battery information.

[0098] It can be understood that in order to control the temperature of the electronic device, after obtaining the battery information from the processing module, the temperature sensing module needs to perform temperature fitting based on the battery information.

[0099] In some embodiments, in order to simulate the housing temperature of an electronic device, the temperature sensing module needs to obtain the resistance value of the thermistor inside the battery from the battery information, fit the resistance value, and simulate the temperature at which the user perceives the housing of the electronic device; then, based on the temperature information, temperature control is performed on the electronic device to ensure that the simulated housing temperature remains within the normal operating range.

[0100] Here, the temperature sensing module can obtain the battery information from the storage module at a fixed period or in real time. The embodiments of the present disclosure do not limit this.

[0101] In some embodiments, the fixed period can be set to 2 seconds. The temperature sensing module is configured to obtain the negative temperature coefficient (NTC) information in the battery information from the processing module every 2 seconds, and based on the NTC temperature information, perform temperature fitting to achieve temperature control of the electronic device.

[0102] Exemplarily, Figure 2 is a structural schematic diagram of an electronic device shown according to an exemplary embodiment Figure 2 , as Figure 2 shown, the power detection module sends the battery information to the processing module through the I2C bus; the processing module then sends the battery NTC information in the battery information to the temperature sensing module, enabling the temperature sensing module to perform temperature fitting based on the NTC information and achieve temperature control of the electronic device.

[0103] In the embodiments of the present disclosure, the temperature sensing module is configured to: obtain the battery information from the processing module and perform temperature fitting based on the battery information, so that while the processing module obtains the battery information to stabilize the system of the electronic device, the temperature sensing module can timely perform temperature control on the electronic device to ensure the stable operation of the electronic device.

[0104] In some embodiments, the electronic device includes:

[0105] a storage module, connected to the processing module and the temperature sensing module, and configured to store the battery information;

[0106] the temperature sensing module, configured to obtain the battery information stored by the processing module from the storage module.

[0107] It can be understood that after the system module obtains the battery information, the battery information should be stored so that other modules in the electronic device can obtain the battery information. Therefore, in the embodiments of the present disclosure, the electronic device further includes a storage module, connected to the processing module and the temperature sensing module, so as to store the battery information in the storage module.

[0108] Here, the storage module can be a register or a memory, and the embodiments of the present disclosure do not limit this.

[0109] In some embodiments, if the storage module is a register, it can temporarily store the data participating in the operation and the result of the operation, and has the functions of receiving data, storing data, and outputting data. After the processing module obtains the battery information, it stores the battery information in the register so that other modules in the electronic device can obtain the battery information. For example, the temperature sensing module can obtain the battery information from the storage module and perform temperature fitting based on the battery information.

[0110] Exemplarily, Figure 3 is a schematic structural diagram of an electronic device shown according to an exemplary embodiment Figure 3 , as Figure 3 shown, the storage module 105 is connected between the processing module 103 and the temperature sensing module 104, so that the processing module 103 can store the obtained battery information in the storage module 105, and the temperature sensing module 104 can obtain the battery information from the storage module 105 at any time and perform temperature fitting based on the battery information to achieve temperature control of the electronic device.

[0111] In the embodiments of the present disclosure, the electronic device includes a storage module, which is connected to the processing module and the temperature sensing module and is configured to store the battery information; the temperature sensing module is further configured to obtain the battery information stored by the processing module from the storage module. In this way, the processing module can store the battery information in the storage module so that the temperature sensing module can obtain the battery information from the storage module at any time and perform temperature fitting based on the battery information to achieve temperature control of the electronic device.

[0112] In some embodiments, the processing module is further configured to:

[0113] Obtain the battery information from the power detection module according to the acquisition period corresponding to the charging state of the battery.

[0114] It should be noted that, in order to reduce the power consumption of the battery, the acquisition period of the battery information can be determined according to the charging state of the battery, so that the processing module can obtain the battery information from the power detection module according to the acquisition period.

[0115] Here, for different charging states, the acquisition period of the battery information is different. The charging state can be a pre-charging mode, a constant current mode, a constant voltage mode, or a trickle / pulse charging mode, and the embodiments of the present disclosure do not limit this.

[0116] In some embodiments, when the charging state of the battery is in the pre-charging mode, the processing module obtains battery information from the power detection module according to the acquisition period corresponding to the pre-charging mode; when the charging state of the battery is in the constant voltage mode, the processing module obtains battery information from the power detection module according to the acquisition period corresponding to the constant voltage mode.

[0117] The processing module in the embodiments of the present disclosure is further configured to obtain the battery information from the power detection module based on the acquisition period corresponding to the charging state of the battery. In this way, the processing module obtains the battery information according to the acquisition period corresponding to the charging state of the battery, which is beneficial to reducing the power consumption of the battery and increasing the usage time of the electronic device.

[0118] In some embodiments, the processing module is further configured to:

[0119] When the battery is in the charging state, obtain the battery information according to the first period;

[0120] When the battery is not in the charging state, obtain the battery information according to the second period;

[0121] Wherein, the second period is greater than the first period.

[0122] It should be noted that, in order to accurately reduce the power consumption of the battery, when the battery is in the charging state, the processing module obtains the battery information according to the first period; when the battery is not in the charging state, the processing module obtains the battery information according to the second period.

[0123] Here, the first period is the acquisition period corresponding to the charging state; the second period is the acquisition period corresponding to the non-charging state.

[0124] It can be understood that when the battery is in the non-charging state and there is no additional power supply, the power detection module measures the battery power information, and the battery information is obtained through the communication connection between the processing module and the power detection module, resulting in a relatively large battery loss. Therefore, in order to ensure the usage time of the electronic device, the acquisition period corresponding to the non-charging state is set to be greater than the acquisition period corresponding to the charging state (i.e., the second period is greater than the first period), thereby reducing the update period of the battery information when the battery is in the non-charging state, which is beneficial to reducing the power consumption of the battery and improving the user experience.

[0125] Here, the acquisition period corresponding to the non-charging state and the acquisition period corresponding to the charging state can be set arbitrarily, as long as the acquisition period corresponding to the non-charging state is greater than the acquisition period corresponding to the charging state. The embodiments of the present disclosure do not limit this.

[0126] Exemplarily, the acquisition period corresponding to the non-charging state can be set to 10 seconds, and the acquisition period corresponding to the charging state can be set to 7 seconds. The first module is configured to obtain battery information from the battery power detection module at an acquisition period of 7 seconds when the battery is in the charging state; the second module is configured to obtain battery information from the battery power detection module at an acquisition period of 10 seconds when the battery is in the non-charging state.

[0127] In the embodiments of the present disclosure, the processing module is further configured to: obtain the battery information at a first period when the battery is in the charging state; obtain the battery information at a second period when the battery is not in the charging state; wherein the second period is greater than the first period. In this way, in the embodiments of the present disclosure, the acquisition period (i.e., the second period) corresponding to the non-charging state of the battery is increased, thereby reducing the update period of the battery information when the battery is in the non-charging state, which is beneficial to reducing the power consumption of the battery and improving the usage duration of the electronic device.

[0128] In some embodiments, the charging state includes: a first charging state and a second charging state, and the charging speed of the battery in the first charging state is greater than the charging speed of the battery in the second charging state;

[0129] The processing module is specifically configured to:

[0130] obtain the battery information at a third period when the battery is in the first charging state;

[0131] obtain the battery information at a fourth period when the battery is in the second charging state;

[0132] wherein the third period is less than the fourth period.

[0133] It can be understood that in order to optimize the update strategy of the battery information, the charging state of the battery can be divided into a first charging state and a second charging state, and the charging speed of the battery in the first charging state is greater than the charging speed of the battery in the second charging state, so that the first module can obtain the battery information from the battery power detection module at different acquisition periods in different charging modes.

[0134] In some embodiments, the charging speed refers to the time required for the battery to be fully charged from an uncharged state. Different battery types and different charging methods will affect the charging speed of the battery. Generally, most electronic devices adopt fast charging technology (i.e., the first charging state), so that the battery can be quickly charged in a short time.

[0135] It should be noted that since the power acquisition speed of the battery in the first charging mode is greater than that in the second charging mode, in order to optimize the battery information update strategy, the third period can be set to be less than the fourth period, that is, the first acquisition period corresponding to the first charging state is set to be less than the second acquisition period corresponding to the second charging state, thereby reducing the battery information update period when the battery is in the second charging state.

[0136] Here, the acquisition period corresponding to the first charging state and the acquisition period corresponding to the second charging state can be set arbitrarily, as long as the acquisition period corresponding to the first charging state is less than the acquisition period corresponding to the second charging state. The embodiments of the present disclosure do not limit this.

[0137] Exemplarily, the acquisition period corresponding to the first charging state can be set to 5 seconds, and the acquisition period corresponding to the second charging state can be set to 3 seconds. The first module is configured to obtain battery information from the power detection module at an acquisition period of 5 seconds when the battery is in the first charging state; and obtain battery information from the power detection module at an acquisition period of 3 seconds when the battery is in the second charging state.

[0138] In the embodiments of the present disclosure, the charging states include: the first charging state and the second charging state, and the charging speed of the battery in the first charging state is greater than the charging speed of the battery in the second charging state. The processing module is specifically configured to: obtain the battery information at a third period when the battery is in the first charging state; and obtain the battery information at a fourth period when the battery is in the second charging state; wherein, the third period is less than the fourth period. In this way, in the embodiments of the present disclosure, different acquisition strategies for battery information are formulated through different charging modes, which is beneficial to optimizing the battery information update strategy and improving the user experience.

[0139] In some embodiments, the processing module is further configured to:

[0140] When detecting the end of the acquisition period, re-determine the charging state of the battery;

[0141] Update the acquisition period based on the re-determined charging state;

[0142] Obtain the battery information from the power detection module according to the updated acquisition period.

[0143] It should be noted that in order to further reduce the power consumption of the battery, the processing module re-determines the charging state of the battery and updates the acquisition period when detecting the end of the current acquisition period; and obtains the battery information according to the updated acquisition period.

[0144] In some embodiments, when the current state of the battery is the first charging state, the processing module is configured to obtain battery information from the power detection module according to the acquisition period corresponding to the first charging state; when it is detected that the acquisition period ends, the charging state of the battery will be re-obtained. If the charging state is a non-charging state, the processing module will configure a new acquisition period based on the non-charging mode of the battery, that is, update the acquisition period corresponding to the first charging state to obtain the acquisition period corresponding to the non-charging state; finally, the processing module will obtain the battery information from the power detection module according to the acquisition period corresponding to the non-charging state through the I2C bus.

[0145] The processing module in the embodiments of the present disclosure is further configured to: when it is detected that the acquisition period ends, re-determine the charging state of the battery; update the acquisition period based on the re-determined charging state; and obtain the battery information from the power detection module according to the updated acquisition period. In this way, in the embodiments of the present disclosure, the charging state of the battery can be monitored in real time, and the acquisition period of the battery information can be updated in a timely manner, thereby reducing the power consumption of the battery, ensuring the usage duration of the electronic device, and improving the user experience.

[0146] Figure 4 is a flowchart of a battery processing method shown according to an exemplary embodiment Figure 1 as Figure 4 shown, the battery processing method mainly includes the following steps:

[0147] In step 401, the power detection module of the electronic device detects the battery information of the battery;

[0148] In step 402, the processing module obtains the battery information from the power detection module;

[0149] In step 403, the temperature sensing module obtains the battery information based on the processing module.

[0150] It should be noted that if the processing module fails to obtain the battery information in a timely manner, it may cause problems such as a sudden drop in the power of the electronic device and damage to the chip due to the inability of the chip to continuously operate under low voltage. Therefore, in the embodiments of the present disclosure, the processing module directly obtains the battery information from the power detection module, so that the temperature sensing module can obtain the battery information from the processing module.

[0151] Here, the battery is an electrical device, and its main functions include energy conversion and energy storage. It can convert chemical energy into electrical energy to provide electrical energy for the electronic device, and can also store electrical energy to provide electrical energy for the electronic device in a timely manner when the electronic device needs power.

[0152] In some embodiments, the power detection module may be a fuel gauge that detects the voltage change and current change of the battery through the principle of electric field or magnetic field induction. Then, based on Faraday's law and Ohm's law, the power consumption of the battery is calculated based on the voltage change and current change, so as to obtain battery information. The obtained battery information is stored in its own module and sent to other modules in the electronic device through a transmission protocol.

[0153] It can be understood that in order to reduce the redundancy of the battery information acquisition method, the processing module can be connected to the power detection module, so that the processing module can obtain battery information from the power detection module, thereby ensuring that the processing module can control some functional modules in the electronic device, such as the sensing module, the sound module, etc., based on the battery information, such as battery power, battery current, etc., so as to ensure the normal operation of the electronic device.

[0154] Here, the processing module can be a central processing unit (CPU) that reads and processes software resources in the electronic device and controls and allocates hardware resources.

[0155] In some embodiments, I2C is used for data transmission between the processing module and the power detection module. When using I2C for communication, usually two wires are required, one is the serial data line SDA and the other is the serial clock line SCL. When the bus is idle, both wires are at a high level, and the external devices connected to the bus are all CMOS devices. During the transmission process of the battery information, the power detection module will address the processing module and then send the detected battery information to the processing module; the processing module also needs to address the power detection module and then receive the battery information.

[0156] Here, the processing module can obtain battery information from the power detection module at a fixed period or in real time. The embodiments of the present disclosure do not limit this.

[0157] It should be noted that since the processing module can obtain battery information from the power detection module and the temperature sensing module can directly obtain battery information from the processing module, even if the temperature sensing module has a problem, the processing module can still obtain battery information in time, thereby avoiding problems such as sudden power drop of the electronic device and chip damage caused by the chip being unable to continuously work under low voltage.

[0158] In the embodiments of the present disclosure, the power detection module of the electronic device can detect the battery information of the battery; the processing module obtains the battery information from the power detection module; the temperature sensing module obtains the battery information based on the processing module.

[0159] Thus, in the embodiments of the present disclosure, the processing module directly obtains battery information from the power detection module, enabling the temperature sensing module to directly obtain the battery information from within the processing module. In this way, even if the temperature sensing module malfunctions, the processing module can still obtain the battery information in a timely manner, which helps to reduce the redundancy of the battery information acquisition method and avoid the problem that the processing module cannot obtain the battery information in a timely manner due to the malfunction of the temperature sensing module, resulting in irreparable damage to the chip of the electronic device.

[0160] Figure 5 is a flowchart showing a battery processing method according to an exemplary embodiment Figure 2 , such as Figure 5 shown, the battery processing method mainly includes the following steps:

[0161] In step 501, the power detection module of the electronic device detects the battery information of the battery;

[0162] In step 502, the processing module obtains the battery information from the power detection module;

[0163] In step 503, the temperature sensing module obtains the battery information based on the processing module

[0164] In step 504, the temperature sensing module performs temperature fitting based on the battery information.

[0165] It can be understood that, in order to control the temperature of the electronic device, after obtaining the battery information from the processing module, the temperature sensing module needs to perform temperature fitting based on the battery information.

[0166] In some embodiments, in order to simulate the temperature of the housing of the electronic device, the temperature sensing module needs to obtain the resistance value of the thermistor inside the battery from the battery information, fit the resistance value, and simulate the temperature that the user perceives the housing of the electronic device; then, according to the temperature information, the temperature of the electronic device is controlled to ensure that the simulated housing temperature remains within the normal operating range.

[0167] Here, the temperature sensing module can obtain the battery information from the storage module at a fixed period or in real time. The embodiments of the present disclosure do not limit this.

[0168] In some embodiments, the fixed period can be set to 2 seconds, and the temperature sensing module is configured to obtain the NTC temperature information in the battery information from the processing module every 2 seconds at a fixed period, and perform temperature fitting based on the NTC temperature information to achieve temperature control of the electronic device.

[0169] In the embodiments of the present disclosure, the temperature sensing module performs temperature fitting based on the battery information. Thus, while the processing module obtains the battery information to stabilize the system of the electronic device, the temperature sensing module can timely control the temperature of the electronic device to ensure the stable operation of the electronic device.

[0170] Figure 6 It is a schematic flowchart of a battery processing method shown according to an exemplary embodiment Figure 2 , such as Figure 5 shown, the battery processing method mainly includes the following steps:

[0171] In step 601, the power detection module of the electronic device detects the battery information of the battery;

[0172] In step 602, the processing module obtains the battery information from the power detection module;

[0173] In step 603, the storage module stores the battery information obtained by the processing module;

[0174] In step 604, the temperature sensing module obtains the battery information stored by the processing module from the storage module;

[0175] In step 605, the temperature sensing module performs temperature fitting based on the battery information.

[0176] It can be understood that after the system module obtains the battery information, the battery information should be stored so that other modules in the electronic device can obtain the battery information. Therefore, in the embodiments of the present disclosure, the storage module can store the battery information, enabling the temperature sensing module to obtain the battery information from the storage module at any time.

[0177] Here, the storage module can be a register or a memory, and the embodiments of the present disclosure do not limit this.

[0178] In some embodiments, if the storage module is a register, it can temporarily store the data participating in the operation and the result of the operation, and has the functions of receiving data, storing data, and outputting data. After the processing module obtains the battery information, the battery information is stored in the register so that other modules in the electronic device can obtain the battery information. For example, the temperature sensing module can obtain the battery information from the storage module and perform temperature fitting based on the battery information.

[0179] In the embodiments of the present disclosure, the storage module stores the battery information obtained by the processing module; the temperature sensing module obtains the battery information from the storage module. In this way, the processing module can store the battery information in the storage module, so that the temperature sensing module can obtain the battery information from the storage module at any time, and fit the temperature based on the battery information to achieve temperature control of the electronic device.

[0180] In some embodiments, the processing module obtains the battery information of the battery from the power detection module, including:

[0181] The processing module obtains the battery information from the power detection module according to an acquisition period corresponding to the charging state of the battery.

[0182] It should be noted that, in order to reduce the power consumption of the battery, the acquisition period of the battery information can be determined according to the charging state of the battery, so that the processing module can obtain the battery information from the power detection module according to the acquisition period.

[0183] In some embodiments, when the charging state of the battery is the pre-charging mode, the processing module obtains the battery information from the power detection module according to the acquisition period corresponding to the pre-charging mode; when the charging state of the battery is the constant voltage mode, the processing module obtains the battery information from the power detection module according to the acquisition period corresponding to the constant voltage mode.

[0184] In the embodiments of the present disclosure, the processing module obtains the battery information from the power detection module according to an acquisition period corresponding to the charging state of the battery. In this way, the processing module obtains the battery information according to the acquisition period corresponding to the charging state of the battery, which is beneficial to reducing the power consumption of the battery and increasing the usage time of the electronic device.

[0185] In some embodiments, the processing module obtains the battery information from the power detection module according to an acquisition period corresponding to the charging state of the battery, including:

[0186] When the battery is in the charging state, the processing module obtains the battery information according to a first period;

[0187] When the battery is not in the charging state, the processing module obtains the battery information according to a second period;

[0188] Wherein, the second period is greater than the first period.

[0189] It should be explained that, in order to accurately reduce the power consumption of the battery, when the battery is in the charging state, the processing module obtains the battery information according to the first period; when the battery is not in the charging state, the processing module obtains the battery information according to the second period.

[0190] Here, the first period is the acquisition period corresponding to the charging state; the second period is the acquisition period corresponding to the non-charging state.

[0191] It can be understood that when the battery is in the non-charging state and there is no additional power supply, the power detection module measures the power information of the battery, and obtains the battery information through the communication connection between the processing module and the power detection module, which causes a relatively large loss of the battery. Therefore, in order to ensure the usage duration of the electronic device, the acquisition period corresponding to the non-charging state is set to be greater than the acquisition period corresponding to the charging state (i.e., the second period is greater than the first period), thereby reducing the update period of the battery information when the battery is in the non-charging state, which is beneficial to reducing the power consumption of the battery and improving the user experience.

[0192] Here, the acquisition period corresponding to the non-charging state and the acquisition period corresponding to the charging state can be set arbitrarily, as long as the acquisition period corresponding to the non-charging state is greater than the acquisition period corresponding to the charging state. The embodiments of the present disclosure do not limit this.

[0193] In the embodiments of the present disclosure, when the battery is in the charging state, the processing module obtains the battery information according to the first period; when the battery is not in the charging state, the processing module obtains the battery information according to the second period; wherein, the second period is greater than the first period. In this way, in the embodiments of the present disclosure, the acquisition period corresponding to the non-charging state of the battery (i.e., the second period) is increased, thereby reducing the update period of the battery information when the battery is in the non-charging state, which is beneficial to reducing the power consumption of the battery and improving the usage duration of the electronic device.

[0194] In some embodiments, the charging state includes: a first charging state and a second charging state, and the charging speed of the battery in the first charging state is greater than the charging speed of the battery in the second charging state;

[0195] When the battery is in the charging state, the processing module obtains the battery information according to the first period, including:

[0196] When the battery is in the first charging state, the processing module obtains the battery information according to the third period;

[0197] When the battery is in the second charging state, the processing module obtains the battery information according to the fourth period;

[0198] Wherein, the third period is less than the fourth period.

[0199] It can be understood that, in order to optimize the battery information update strategy, the charging state of the battery can be divided into a first charging state and a second charging state, and the charging speed of the battery in the first charging state is greater than the charging speed of the battery in the second charging state, so that the first module can obtain battery information from the power detection module according to different acquisition periods in different charging modes.

[0200] It should be noted that since the power acquisition speed of the battery in the first charging mode is greater than the power acquisition speed of the battery in the second charging mode, therefore, in order to optimize the battery information update strategy, the third period can be set to be less than the fourth period, that is, the first acquisition period corresponding to the first charging state is set to be less than the second acquisition period corresponding to the second charging state, thereby reducing the update period of the battery information when the battery is in the second charging state.

[0201] Here, the acquisition period corresponding to the first charging state and the acquisition period corresponding to the second charging state can be set arbitrarily, as long as the acquisition period corresponding to the first charging state is less than the acquisition period corresponding to the second charging state. The embodiments of the present disclosure do not make any limitations in this regard.

[0202] In the embodiments of the present disclosure, the charging state includes: a first charging state and a second charging state, and the charging speed of the battery in the first charging state is greater than the charging speed of the battery in the second charging state; the processing module obtains the battery information according to the third period when the battery is in the first charging state; and obtains the battery information according to the fourth period when the battery is in the second charging state; wherein, the third period is less than the fourth period. In this way, in the embodiments of the present disclosure, different acquisition strategies for battery information are formulated through different charging modes, which is beneficial to optimizing the battery information update strategy and improving the user experience.

[0203] In some embodiments, the processing module obtains the battery information from the power detection module according to the acquisition period corresponding to the charging state of the battery, including:

[0204] When the processing module detects that the acquisition period ends, it re-determines the charging state of the battery;

[0205] Updates the acquisition period based on the re-determined charging state;

[0206] Obtains the battery information from the power detection module according to the updated acquisition period.

[0207] It should be noted that, in order to further reduce the power consumption of the battery, when the processing module detects the end of the current acquisition cycle, it re-determines the charging state of the battery and updates the acquisition cycle; according to the updated acquisition cycle, it acquires the battery information.

[0208] In some embodiments, when the current state of the battery is the first charging state, the processing module is configured to acquire the battery information from the power detection module according to the acquisition cycle corresponding to the first charging state; when it detects the end of the acquisition cycle, it will re-acquire the charging state of the battery. If the charging state is a non-charging state, the processing module will configure a new acquisition cycle based on the non-charging mode of the battery, that is, update the acquisition cycle corresponding to the first charging state to obtain the acquisition cycle corresponding to the non-charging state; finally, the processing module will acquire the battery information from the power detection module through the I2C bus according to the acquisition cycle corresponding to the non-charging state.

[0209] In the embodiments of the present disclosure, when the processing module detects the end of the acquisition cycle, it re-determines the charging state of the battery; updates the acquisition cycle based on the re-determined charging state; and acquires the battery information from the power detection module according to the updated acquisition cycle. In this way, in the embodiments of the present disclosure, the charging state of the battery can be monitored in real time, and the acquisition cycle of the battery information can be updated in a timely manner, thereby reducing the power consumption of the battery, ensuring the usage duration of the electronic device, and improving the user experience.

[0210] It should be noted that, in order to further reduce the power consumption of the battery, when the processing module detects the end of the current acquisition cycle, it can re-determine the charging state of the battery and update the acquisition cycle; so that the processing module acquires the battery information according to the updated acquisition cycle.

[0211] In the embodiments of the present disclosure, when the processing module detects the end of the acquisition cycle, it first re-determines the charging state of the battery; then updates the acquisition cycle based on the re-determined charging state; and finally the processing module acquires the battery information from the power detection module according to the updated acquisition cycle. In this way, in the embodiments of the present disclosure, the charging state of the battery can be monitored in real time, and the acquisition cycle of the battery information can be updated in a timely manner, thereby reducing the power consumption of the battery, ensuring the usage duration of the electronic device, and improving the user experience.

[0212] Figure 7 It is a schematic flowchart of a battery processing method shown according to an exemplary embodiment Figure 4 , such as Figure 7As shown, the processing module directly obtains battery information from the power detection module and stores the battery information in the storage module, enabling the temperature sensing module to obtain the battery information from the storage module. The method mainly includes the following steps:

[0213] In step 701, the power detection module detects the battery information of the battery.

[0214] In step 702, it is judged whether the battery is in a charging state.

[0215] In some embodiments, if the battery is in a charging state, step 703 is executed.

[0216] In some other embodiments, if the battery is not in a charging state, step 704 is executed.

[0217] In step 703, it is judged whether the battery is in a first charging state.

[0218] In some embodiments, if the battery is in a first charging state, step 704 is executed.

[0219] In some embodiments, if the battery is not in a first charging state, step 704 is executed.

[0220] In step 704, the processing module obtains the battery information based on the acquisition period corresponding to the charging state of the battery.

[0221] In some embodiments, if the battery is in a first charging state, the processing module obtains the battery information based on the acquisition period corresponding to the first charging state.

[0222] In some other embodiments, if the battery is in a non-charging state, the processing module obtains the battery information based on the acquisition period corresponding to the non-charging state.

[0223] In step 705, the processing module re-determines the charging state of the battery and updates the acquisition period based on the re-determined charging state.

[0224] In step 706, the battery information is stored in the storage module.

[0225] In step 707, the temperature sensing module obtains the battery information from the storage module.

[0226] In some embodiments, the temperature sensing module obtains the battery information from the storage module and performs temperature fitting based on the battery information.

[0227] In the embodiments of the present disclosure, the processing module directly obtains battery information from the power detection module and stores the battery information in the storage module, so that the temperature sensing module of the processing module can directly obtain the battery information from the storage module. In this way, even if the temperature sensing module is abnormal, the processing module can still obtain the battery information in time, which helps to reduce the redundancy of the battery information acquisition method, avoids the problem that the battery information cannot be obtained in time due to the abnormality of the temperature sensing module, and the chip of the electronic device is irreversibly damaged. At the same time, it can obtain the battery information in time to make the system of the electronic device stable, and perform temperature fitting based on the battery information to control the temperature of the electronic device.

[0228] Figure 8 FIG. 4 is a block diagram of an electronic device 800 shown according to an exemplary embodiment. For example, device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0229] Referring to Figure 8 , device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.

[0230] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with at least one of display, telephone call, data communication, camera operation, and recording operation. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0231] The memory 804 is configured to store various types of data to support the operation of the device 800. Examples of such data include at least one of the following: instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, and videos. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable programmable read only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.

[0232] The power supply component 806 provides power to various components of the device 800. The power supply component 806 can include at least one of the following: a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.

[0233] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operations. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.

[0234] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC). When the device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive external audio signals. The received audio signals can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.

[0235] The I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include but are not limited to: a home button, a volume button, a power button, and a lock button.

[0236] The sensor component 814 includes one or more sensors for providing a status assessment of various aspects of the device 800. For example, the sensor component 814 can detect the on / off state of the device 800, the relative positioning of components, such as the display and keypad of the device 800. The sensor component 814 can also detect a change in the position of the device 800 or a component in the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor component 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 814 can also include a light sensor, such as a complementary metal oxide semiconductor (CMOS) or a charge coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, the sensor component 814 can further include at least one of the following, but is not limited to: an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, and a temperature sensor.

[0237] The communication component 816 is configured to facilitate communication between the device 800 and other devices in a wired or wireless manner. The device 800 can access a communication standard-based wireless network, such as Wi-Fi, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0238] In an exemplary embodiment, the device 800 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.

[0239] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including executable instructions or a computer program, and the above instructions or computer program can be executed by a processor 820 of the device 800 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, Random Access Memory (RAM), Compact Disc Read-Only Memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.

[0240] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to execute any one of the above battery processing methods in the embodiments of the present disclosure. For example, the method includes:

[0241] The power detection module of the electronic device detects the battery information of the battery;

[0242] The processing module obtains the battery information from the power detection module;

[0243] The temperature sensing module obtains the battery information based on the processing module.

[0244] Embodiments of the present disclosure provide a computer program product, which includes: a computer program or executable instructions, and the computer program or executable instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer program or executable instructions from the computer-readable storage medium, and the processor executes the computer program or executable instructions, so that the computer device executes any one of the above battery processing methods of the embodiments of the present disclosure.

[0245] Figure 9 It is a block diagram of a device 900 for battery processing shown according to an exemplary embodiment. For example, the device 900 can be provided as a server. Referring to Figure 9 , the device 900 includes a processing component 922, which further includes one or more processors, and memory resources represented by a memory 932 for storing instructions executable by the processing component 922, such as application programs. The application programs stored in the memory 932 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 922 is configured to execute instructions to perform the above battery processing method:

[0246] The power detection module of the electronic device detects the battery information of the battery;

[0247] The processing module obtains the battery information from the power detection module;

[0248] The temperature sensing module obtains the battery information based on the processing module.

[0249] The device 900 may further include a power supply component 926 configured to perform power management of the device 900, a wired or wireless network interface 950 configured to connect the device 900 to a network, and an input / output (I / O) interface 958. The device 900 can operate an operating system stored in the memory 932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.

[0250] Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed herein. The specification and examples are only to be considered as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.

[0251] It should be understood that the present disclosure 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 disclosure is only limited by the appended claims.

Claims

1. An electronic device, characterized in that, The electronic device includes: a battery; a power detection module connected to the battery and configured to detect battery information of the battery; a processing module connected to the power detection module and configured to obtain the battery information from the power detection module; a temperature sensing module connected to the processing module and configured to obtain the battery information based on the processing module.

2. The electronic device according to claim 1, wherein The temperature sensing module is configured to perform temperature fitting based on the battery information.

3. The electronic device according to claim 1, wherein The electronic device includes: a storage module connected to the processing module and the temperature sensing module and configured to store the battery information; The temperature sensing module is configured to obtain the battery information stored by the processing module from the storage module.

4. The electronic device according to claim 1, wherein, The processing module is further configured to: obtain the battery information from the power detection module according to an acquisition period corresponding to the charging state of the battery.

5. The electronic device according to claim 1, wherein The processing module is further configured to: when the battery is in the charging state, obtain the battery information according to a first period; when the battery is not in the charging state, obtain the battery information according to a second period; wherein, the second period is greater than the first period.

6. The electronic device according to claim 5, wherein The charging state includes: a first charging state and a second charging state, and the charging speed of the battery in the first charging state is greater than the charging speed of the battery in the second charging state; The processing module is specifically configured to: when the battery is in the first charging state, obtain the battery information according to a third period; when the battery is in the second charging state, obtain the battery information according to a fourth period; wherein, the third period is less than the fourth period.

7. The electronic device according to claim 4, wherein The processing module is further configured to: when it is detected that the acquisition period ends, re-determine the charging state of the battery; update the acquisition period based on the re-determined charging state; obtain the battery information from the power detection module according to the updated acquisition period.

8. A battery processing method, characterized in that, The method includes: a power detection module of an electronic device detects battery information of a battery; a processing module obtains the battery information from the power detection module; a temperature sensing module obtains the battery information based on the processing module.

9. The method according to claim 8, wherein The method further includes: the temperature sensing module and the processing module perform temperature fitting based on the battery information.

10. The method according to claim 8, wherein The method further includes: a storage module stores the battery information obtained by the processing module; the temperature sensing module obtains the battery information stored by the processing module from the storage module.

11. The method according to claim 8, characterized in that The processing module obtains battery information of a battery from a power detection module, including: the processing module obtains the battery information from the power detection module according to an acquisition period corresponding to the charging state of the battery.

12. The method according to claim 11, wherein, The processing module obtains battery information of a battery from a power detection module according to an acquisition period corresponding to the charging state of the battery, including: when the battery is in the charging state, the processing module obtains the battery information according to a first period; when the battery is not in the charging state, the processing module obtains the battery information according to a second period; Wherein, the second period is greater than the first period.

13. The method according to claim 12, characterized in that, The charging state includes: a first charging state and a second charging state, and the charging speed of the battery in the first charging state is greater than the charging speed of the battery in the second charging state; When the battery is in the charging state, the processing module obtains the battery information according to the first period, including: When the battery is in the first charging state, the processing module obtains the battery information according to the third period; When the battery is in the second charging state, the processing module obtains the battery information according to the fourth period; Wherein, the third period is less than the fourth period.

14. The method according to claim 11, wherein The processing module obtains the battery information from the power detection module according to the acquisition period corresponding to the charging state of the battery, including: When the processing module detects the end of the acquisition period, it re-determines the charging state of the battery; Updating the acquisition period based on the re-determined charging state; Obtaining the battery information from the power detection module according to the updated acquisition period.

15. An electronic device, characterized in that, Including: A processor; A memory for storing computer programs or instructions; Wherein, the processor executes the computer program or instruction to implement the steps of the method according to any one of claims 8 to 14.

16. A non-transitory computer-readable storage medium storing a computer program or instructions, characterized in that, When the computer program or instruction in the storage medium is executed by the processor, the steps of the method according to any one of claims 8 to 14 are implemented.

17. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instruction is executed by the processor, the steps of the method according to any one of claims 8 to 14 are implemented.