Charging control method and electronic device

By adopting dual charging chip design and temperature sensing adjustment charging mode in electronic devices, the heating problem caused by application operation during charging is solved, and a more efficient and safe charging process is achieved.

CN118508544BActive Publication Date: 2025-08-22HONOR DEVICE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202311872419.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2025-08-22
Estimated Expiration
2043-12-29

AI Technical Summary

Technical Problem

The existing charging methods cause the device to heat up due to the operation of the application when the device is charged, resulting in a decrease in charging efficiency and pose safety risks.

Method used

The dual charging chip design is adopted, with one charging chip being set on the main circuit board and the other charging chip being set on the secondary circuit board. The temperature difference is monitored through the temperature sensor, and the charging method is dynamically adjusted to equalize the heat distribution, including switching of single main circuit, single auxiliary circuit and dual charging modes.

Benefits of technology

It effectively alleviates the problem of local heating of the equipment, improves charging efficiency, and reduces safety risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118508544B_ABST
    Figure CN118508544B_ABST
Patent Text Reader

Abstract

The present application provides a charging control method and electronic device, which relate to the field of device charging and can alleviate the safety risks of electronic devices caused by excessive heat temperature. The electronic device includes a main circuit board and a sub-circuit board, and also includes a first charging chip, a second charging chip, a charging interface, a battery and multiple temperature sensors. The first charging chip is arranged on the main circuit board, and the second charging chip is arranged on the sub-circuit board. The method includes: after the charging interface is connected to the charging power supply, the electronic device obtains the first temperature of the main circuit board and the second temperature of the sub-circuit board, and determines whether the difference between the first temperature and the second temperature is greater than the first temperature difference. If the difference is greater than the first temperature difference, the first charging chip and the second charging chip are controlled to charge the battery in a single auxiliary charging manner. If the difference is less than or equal to the first temperature difference, the first charging chip and the second charging chip are controlled to charge in a single main charging manner or in a dual charging manner.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of device charging, and in particular to a charging control method and an electronic device. Background Art

[0002] As charging technology matures, current charging methods can no longer meet the charging needs of existing devices. For example, when a device is charging, there are often situations where built-in applications of the device are running at the same time. The running applications will increase the load on the device and generate a large amount of heat, causing the device to heat up while charging. Moreover, when the temperature of the device is too high, the proportion of electrical energy converted into heat energy during charging will be higher, thereby causing the charging efficiency of the device to decrease. Therefore, in order to address the above problems, a solution is urgently needed to improve the heating problem caused by the simultaneously running applications during the charging process of the device, thereby improving the charging efficiency. Summary of the Invention

[0003] Embodiments of the present application provide a charging control method and electronic device for reducing safety risks caused by excessive heating of electronic devices.

[0004] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0005] In a first aspect, a charging control method is provided for use in an electronic device. The electronic device includes a main circuit board and a secondary circuit board, and also includes a first charging chip, a second charging chip, a charging interface, a battery, and multiple temperature sensors. The first charging chip and the second charging chip are both connected to the battery and are used to charge the battery through the charging interface. The first charging chip is disposed on the main circuit board, and the second charging chip is disposed on the secondary circuit board. Multiple temperature sensors are distributed around the main circuit board and the secondary circuit board for collecting the temperatures of the main circuit board and the secondary circuit board.

[0006] The above-mentioned charging chip can support the following charging modes: (1) single main charging: the battery of the electronic device is charged by the first charging chip on the main circuit board, and the second charging chip on the auxiliary circuit board is not charged; (2) single auxiliary charging: the first charging chip on the main circuit board is not charged, and the second charging chip on the auxiliary circuit board is charged for the battery of the electronic device; (3) dual charging: the first charging chip on the main circuit board and the second charging chip on the auxiliary circuit board charge the battery of the electronic device at the same time.

[0007] The first charging chip is located on the main circuit board, and the second charging chip is located on the secondary circuit board. This reduces the problem of overheating of the main circuit board and the large temperature difference between the main and secondary circuit boards caused by both charging chips being located on the main circuit board or close to the main circuit board. This design disperses some of the heat from the main circuit board to the secondary circuit board, reducing the temperature difference between the two circuit boards and, to some extent, alleviating the problem of significant localized heating in electronic devices.

[0008] In the charging control method provided herein, after the charging interface is connected to a charging power source, the electronic device can obtain a first temperature of the main circuit board and a second temperature of the auxiliary circuit board. The electronic device can then adaptively adjust the charging method of the electronic device based on the difference between the first and second temperatures. Specifically, when the difference between the first and second temperatures is greater than the first temperature difference, the first and second charging chips are controlled to charge via a single auxiliary circuit. When the difference between the first and second temperatures is less than or equal to the first temperature difference, the first and second charging chips are controlled to charge via a single main circuit or dual circuit.

[0009] In this application, the electronic device adaptively adjusts the charging method of the electronic device based on the above-mentioned temperature difference, which can effectively avoid the problem of high temperature of the main circuit board caused by charging and thus causing local heating of the electronic device, and reduce the probability of safety risks of the electronic device.

[0010] In a possible implementation of the first aspect, before obtaining the first temperature of the main circuit board and the second temperature of the auxiliary circuit board, the method of the present application may also include: after the charging interface is connected to the charging power supply, obtaining the charging current of the battery; if the charging current is less than the first current threshold, controlling the first charging chip and the second charging chip to charge the battery in the first charging mode.

[0011] In the first charging mode, the output current of the first charging chip and the second charging chip is N times the input current, where N ≥ 1 and N is an integer. In the first charging mode, the first charging chip and the second charging chip support single-main charging, single-auxiliary charging, and dual-charging.

[0012] Illustratively, the charging current of the battery may be: the charging current input by a charging chip to the battery, or the charging current input by a charging power supply to a charging port.

[0013] In this implementation, in the first charging mode, the output current of the first charging chip and the second charging chip is greater than the input current, which can effectively improve the charging speed of the electronic device.

[0014] In a possible implementation of the first aspect, if the charging current is less than a first current threshold, controlling a first charging chip and a second charging chip to charge the battery in a first charging mode includes: if the charging current is less than the first current threshold, obtaining a case temperature of the electronic device; wherein the case temperature of the electronic device is obtained based on temperature fitting collected by multiple temperature sensors, and the case temperature of the electronic device is used to represent the overall temperature of the electronic device body. If the case temperature of the electronic device is greater than the case temperature threshold, controlling the first charging chip and the second charging chip to charge the battery in the first charging mode.

[0015] In this implementation, if the charging current is less than a first current threshold, the electronic device can determine the charging mode of the first and second charging chips based on the case temperature. Specifically, if the case temperature of the electronic device is greater than the case temperature threshold, the temperature of the electronic device is relatively high, and the first and second charging chips can be controlled to charge the battery in the first charging mode, thereby reducing the temperature of the electronic device and mitigating safety risks.

[0016] In a possible implementation of the first aspect, the charging control method further includes: if the charging current is greater than a first current threshold, controlling the first charging chip and the second charging chip to charge the battery in a second charging mode; wherein, in the second charging mode, the output current of the first charging chip and the second charging chip is M times the input current, where M>N, and M is an integer. In the second charging mode, the first charging chip and the second charging chip support each of single-main charging, single-auxiliary charging, and dual-charging.

[0017] In this implementation, the charging power in the second charging mode is greater than the charging power in the first charging mode. Compared with the first charging mode, charging the electronic device in the second charging mode can further increase the charging speed and shorten the charging time.

[0018] In a possible implementation of the first aspect, in the second charging mode, the charging control method further includes: if the difference between the first temperature and the second temperature is greater than the second temperature difference, controlling the first charging chip and the second charging chip to charge in a single auxiliary circuit;

[0019] If the difference between the first temperature and the second temperature is less than or equal to the second temperature difference, the first charging chip and the second charging chip are controlled to perform single-main-line charging or dual-line charging; wherein the second temperature difference is less than the first temperature difference.

[0020] In this implementation, in the second charging mode, if the difference between the first and second temperatures is greater than the second temperature difference, the electronic device can determine the charging mode for the first and second charging chips based on the relationship between the difference between the first and second temperatures and the second temperature difference. Specifically, when the difference between the first and second temperatures is greater than the second temperature difference, the first and second charging chips are controlled to charge via a single auxiliary circuit. This can effectively alleviate the problem of overheating of the main circuit board, allowing the auxiliary circuit board to distribute some of the heat from the main circuit board, achieving temperature balance between the main and auxiliary circuit boards, and reducing safety risks of the electronic device.

[0021] When the difference between the first temperature and the second temperature is less than or equal to the second temperature difference, the electronic device controls the first charging chip and the second charging chip to perform single-main-line charging or dual-line charging to ensure the charging efficiency of the electronic device.

[0022] In another possible implementation of the first aspect, the shell temperature of the electronic device is greater than the shell temperature threshold, including: the shell temperature of the electronic device is greater than the shell temperature threshold corresponding to the current scene information of the electronic device, wherein the shell temperature threshold is different when the electronic device is in an application scenario indicated by different scene information.

[0023] In this implementation, the shell temperature threshold is related to the application scenario indicated by the scenario information of the electronic device, that is, the application scenarios indicated by different scenario information of the electronic device correspond to different shell temperature thresholds. Therefore, in different application scenarios of the electronic device, the accuracy of judging the shell temperature of the electronic device and the shell temperature threshold in different application scenarios can be effectively guaranteed, and the accuracy of determining the charging mode of the first charging chip and the second charging chip by the shell temperature can be improved.

[0024] In a possible implementation manner of the first aspect, the application scenario indicated by the current scenario information includes: an application scenario corresponding to an application currently running in the foreground of the electronic device.

[0025] In another possible implementation of the first aspect, after the charging interface is connected to a charging power source, obtaining the charging current of the battery includes: periodically obtaining the charging current of the battery in response to the charging interface being connected to the charging power source.

[0026] In this implementation, the charging port is connected to a charging power source, and the electronic device periodically obtains the battery's charging current. The magnitude of the charging current can be periodically determined based on the periodically obtained charging current, and the charging mode of the electronic device can be determined based on the magnitude of the charging current. This allows the charging mode to be switched based on changes in the charging current. By switching the charging mode, the charging efficiency of the electronic device can be effectively guaranteed.

[0027] In a second aspect, the present application provides an electronic device comprising: a memory, one or more processors, a first charging chip, a second charging chip, a charging interface, a battery, and multiple temperature sensors, and also comprising a main circuit board and a sub-circuit board. The charging interface is connected to the first charging chip and the second charging chip, and the first charging chip and the second charging chip are both connected to the battery. The first charging chip, the processor, and the memory are all arranged on the main circuit board, the second charging chip is arranged on the sub-circuit board, and multiple temperature sensors are distributed around the main circuit board and the sub-circuit board for collecting the temperatures of the main circuit board and the sub-circuit board.

[0028] The first charging chip, the second charging chip, the charging interface, the battery, multiple temperature sensors, and the memory are all coupled to the processor; the memory is used to store computer program code; the computer program code includes computer instructions, and when the processor executes the above computer instructions, the electronic device executes the method of any one of the above first aspects.

[0029] In a third aspect, the present application provides a computer storage medium comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes any one of the methods of the first aspect.

[0030] In a fourth aspect, the present application provides a computer program product, which, when executed on a computer, enables the computer to execute any one of the methods in the first aspect.

[0031] In a fifth aspect, the present application provides a device (for example, the device may be a chip system), which includes a processor for supporting an electronic device to implement the functions involved in the first aspect above. In one possible design, the device also includes a memory for storing program instructions and data necessary for the electronic device. When the device is a chip system, it can be composed of a chip, or it can include a chip and other discrete devices.

[0032] Among them, the technical effects brought about by any design method in the second to fifth aspects can refer to the technical effects brought about by different design methods in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1A A hardware connection diagram of an electronic device provided in an embodiment of the present application;

[0034] Figure 1B Schematic diagram 1 of the hardware structure of an electronic device provided in an embodiment of the present application;

[0035] Figure 1C A heat distribution diagram of an electronic device in a charging scenario provided by an embodiment of the present application;

[0036] Figure 1D A graph showing the relationship between charging efficiency and temperature provided in an embodiment of the present application;

[0037] Figure 2 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application Figure 2 ;

[0038] Figure 3 A schematic diagram of the overall hardware structure of an electronic device provided in an embodiment of the present application;

[0039] Figure 4 A schematic diagram of the circuit structure of an electronic device provided in an embodiment of the present application;

[0040] Figure 5 Flowchart 1 of the charging control method provided in an embodiment of the present application;

[0041] Figure 6 Schematic diagram of the charging control method provided in this embodiment of the application Figure 2 ;

[0042] Figure 7 Schematic diagram of the charging control method provided in this embodiment of the application Figure 3 ;

[0043] Figure 8 Schematic diagram of the charging control method provided in this embodiment of the application Figure 4 ;

[0044] Figure 9 Schematic diagram of the charging control method provided in this embodiment of the application Figure 5 ;

[0045] Figure 10 Schematic diagram of the charging control method provided in this embodiment of the application Figure 6 . DETAILED DESCRIPTION

[0046] The technical solutions of the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to limit the present application. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, if the words "first", "second" and the like are used to distinguish between the same items or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily limit them to be different. And, in the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" means two or more.

[0047] The charging chip of the electronic device can control the charging mode of the electronic device. In different charging modes, the charging efficiency of the electronic device is different. The charging mode of the electronic device can be an n:1 charging mode, where n≥1 and n is an integer. Figure 1A As shown, after the charging interface 101 of the electronic device 100 is connected to a power source, the charging current flows from the charging interface 101 through the charging chip (such as charging chip 1 and / or charging chip 2) into the battery 102 of the electronic device, thereby charging the battery 102. The charging interface 101 may be a universal serial bus (USB) interface, such as a Type-C interface. Assuming the charging voltage remains unchanged, n is the ratio of the output current of the charging chip (i.e., the current entering the battery from the charging chip) to the input current of the charging chip (i.e., the current entering the charging chip from the charging interface 101). For example, if n = 2, the charging mode of the electronic device 100 is a 2:1 charging mode, and the output current of the charging chip is twice the input current. For another example, if n = 4, the charging mode of the electronic device 100 is a 4:1 charging mode, and the output current of the charging chip is four times the input current. The output current of the charging chip is greater than the input current, which can increase the charging power of the electronic device 100, achieve high-power charging, and improve charging efficiency.

[0048] In order to further improve the charging efficiency of electronic devices, multiple charging chips can be configured in the electronic devices. Figure 1A As shown, the electronic device 100 may include two charging chips, such as charging chip 1 and charging chip 2. The two charging chips support multiple charging methods to charge the battery 102. For example, the above-mentioned multiple charging methods may include: dual-channel charging, single main channel charging and single auxiliary channel charging. Dual-channel charging means that the two charging chips work at the same time to charge the battery 102. Single main channel charging means that the charging chip 1 works to charge the battery 102, while the charging chip 2 does not work. Single auxiliary channel charging means that the charging chip 2 works to charge the battery 102, while the charging chip 1 does not work. The charging efficiency of dual-channel charging is higher than the charging efficiency of single main channel charging and the charging efficiency of single auxiliary channel charging.

[0049] In conventional technology, the plurality of charging chips (such as charging chip 1 and charging chip 2) are disposed on a main circuit board of the electronic device 100. Alternatively, the plurality of charging chips are disposed close to the main circuit board.

[0050] Please refer to Figure 1B , which shows a hardware structure diagram of an electronic device in conventional technology. Figure 1BAs shown, the electronic device 100 includes a main circuit board a and a sub-circuit board b. The main circuit board a and the sub-circuit board b are connected via a flexible printed circuit (FPC) 103 .

[0051] Generally speaking, the main circuit board a is arranged in the upper part of the electronic device 100 (i.e., the part of the electronic device 100 close to the camera), and the auxiliary circuit board b is arranged in the lower part of the electronic device 100 (i.e., the part of the electronic device close to the charging port). Figure 1B As shown, the main circuit board is provided with a charging chip 1 and a charging chip 2. The charging interface 101 is provided below the auxiliary circuit board b.

[0052] The main circuit board a of the electronic device 100 is the core component of the electronic device 100. Compared with the sub-circuit board b, there are more devices on the main circuit board a. Accordingly, the heat generated by the devices on the main circuit board a will be greater, and the temperature difference between the main circuit board a and the sub-circuit board b is larger. In the charging scenario, since the above-mentioned multiple charging chips are arranged on the main circuit board a, or arranged close to the main circuit board a, the heating of the main circuit board a will be further aggravated. Especially during high-power charging, the heating problem of the main circuit board a is particularly obvious. The electronic device 100 locally heats up, affecting the normal operation of the electronic device 100. In particular, during the charging process of the electronic device 100, the local heating of the electronic device 100 poses a safety hazard.

[0053] Please refer to Figure 1C , which shows the heat distribution of electronic devices 100 of different brands and models (i.e., device 1, device 2, and device 3) in a charging scenario. For devices 1, 2, and 3, the main circuit board is located near the camera, and the secondary circuit board is located near the charging port.

[0054] like Figure 1C As shown, in the charging standby scenario, the main circuit boards of devices 1, 2, and 3 all generate more heat than the secondary circuit boards. In the charging, screen-on, gaming scenario, the main circuit boards of devices 1, 2, and 3 all generate more heat than the main circuit boards in the charging standby scenario, and this is particularly noticeable compared to the heat generated by the secondary circuit boards in the charging, screen-on, gaming scenario. This indicates that in the charging scenario, the main circuit boards generate more heat than the secondary circuit boards, and that localized heating is a common problem in electronic devices 100 during charging, posing a safety hazard.

[0055] Furthermore, temperature can also affect the charging efficiency of electronic devices. In other words, in addition to being affected by the above-mentioned charging modes and methods, charging efficiency may also be affected by temperature. Figure 1D, which shows a curve diagram showing the change in charging efficiency of the charging chip of the same electronic device (such as a mobile phone) under 2:1 charging mode and 4:1 charging mode as affected by temperature.

[0056] like Figure 1D As shown, the horizontal axis represents the thermodynamic temperature Kelvin (unit K), and the vertical axis represents the charging efficiency corresponding to the thermodynamic temperature. In the 2:1 charging mode, the charging efficiency reaches a peak in the temperature range of 3000K to 4000K, and shows a gradual downward trend after 4000K. In the 4:1 charging mode, the charging efficiency reaches a peak in the temperature range of 3500K to 4500K, and shows a gradual downward trend after 4500K. This shows that the charging efficiency is related to temperature. When the temperature of the electronic device is too high, the charging efficiency of the electronic device may decrease.

[0057] Based on this, refer to Figure 2 The present invention provides a charging control method and an electronic device. The electronic device 100 may include a main circuit board 105 and a sub-circuit board 106. The main circuit board 105 and the sub-circuit board 106 are connected via an FPC flexible printed circuit board 104.

[0058] The electronic device 100 also includes at least two charging chips (such as a first charging chip and a second charging chip), a charging interface 107 and a battery. For the connection method and working method of the charging chip, the charging interface 107 and the battery, please refer to the above introduction to the charging chip 1 and the charging chip 2, the charging interface 101 and the battery 102, which will not be repeated here. Different from the above scheme, the first charging chip is arranged on the main circuit board 105, and the second charging chip is arranged on the auxiliary circuit board 106. In this way, the problem of the main circuit board 105 being too high and the temperature difference between the main circuit board 105 and the auxiliary circuit board 106 being large due to the fact that both charging chips are arranged on the main circuit board 105 or close to the main circuit board 105 can be reduced. With this design, part of the heat on the main circuit board 105 can be dispersed to the auxiliary circuit board 106, which can reduce the temperature difference between the main circuit board 105 and the auxiliary circuit board 106, and alleviate the problem of obvious local heating of the electronic device 100 to a certain extent.

[0059] The electronic device 100 may further include a plurality of temperature sensors. The plurality of temperature sensors may be distributed around the main circuit board 105 and the auxiliary circuit board 106, and may be used to collect the temperature of the main circuit board 105 and the auxiliary circuit board 106. In the charging control method provided in the embodiment of the present application, the electronic device 100 may adaptively adjust the charging mode of the electronic device 100 based on the temperature difference between the main circuit board 105 and the auxiliary circuit board 106. For example, when the temperature difference is large, the electronic device 100 may control the electronic device 100 to charge on a single auxiliary circuit. At this time, the first charging chip on the main circuit board 105 does not work, and the second charging chip on the auxiliary circuit board 106 works, which can effectively avoid the problem of the high temperature of the main circuit board 105 caused by charging, thereby causing local heating of the electronic device 100, and reduce the probability of safety risks of the electronic device 100. At the same time, part of the heat on the main circuit board 105 is dispersed to the auxiliary circuit board 106, so as to achieve heat balance of the electronic device 100 and effectively improve the charging efficiency.

[0060] For example, the electronic devices provided in the embodiments of the present application may be mobile phones, tablet computers, laptop computers, personal computers (PCs), ultra-mobile personal computers (UMPCs), handheld computers, netbooks, smart home devices (such as smart TVs, smart screens, large screens, smart speakers, smart air conditioners, etc.), personal digital assistants (PDAs), wearable devices (such as smart watches, smart bracelets, etc.), vehicle-mounted devices, virtual reality devices, etc., and the embodiments of the present application do not impose any restrictions on this.

[0061] Take the above electronic device as an example, a mobile phone. Figure 3 , which is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 10, an antenna 20, a sensor module 150, a display 160, an audio module 170, a camera 180, a communication module 190, a speaker 170A, a microphone 170B, an earphone interface 170C, etc. The sensor module 150 may include a temperature sensor 150A, a pressure sensor 150B, a touch sensor 150C, etc., and the communication module 190 may include a wireless communication module, a mobile communication module, etc.

[0062] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0063] The processor 110 may include one or more processing units and is located on the main circuit board a of the electronic device 100. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0064] The main circuit board is the main component of the electronic device 100, which is used for signal input, output, processing, transmission, etc. with various components of the electronic device 100, and can also be used for power supply and charging control of the entire device; in addition to the main circuit board, the electronic device 100 may also include a secondary circuit board, which is used to connect to the charging interface, camera and other components of the electronic device 100, and is usually located below the main circuit board. It usually includes circuits and connectors with specific functions. For example, the secondary circuit board may include an audio chip, a camera interface, a sensor interface, a SIM card slot, etc., which is used to provide additional peripheral device support and function expansion for the electronic device 100.

[0065] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0066] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0067] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

[0068] The USB interface 130 is an interface that complies with USB standards and specifications, and may be a Mini USB interface, a MicroUSB interface, a Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices 100, such as AR devices.

[0069] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0070] The charging management module 140 includes a first charging chip and a second charging chip, and is used to receive charging input from a charger through the first charging chip and the second charging chip. The first charging chip and the second charging chip are both connected to the battery 142. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input through the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also power the electronic device 100 through the power management module 141.

[0071] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display 160, the camera 180, and the communication module 190. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0072] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.

[0073] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0074] The temperature sensor 150A can be disposed on the main circuit board and the auxiliary circuit board, or disposed near the main circuit board and the auxiliary circuit board, to detect the temperature of the main circuit board and the auxiliary circuit board. The number of temperature sensors is not limited herein. There can be one or more temperature sensors on or near the main circuit board. Similarly, there can be one or more temperature sensors on or near the auxiliary circuit board.

[0075] Taking the above-mentioned electronic device 100 as a mobile phone and the charging interface as a Type-C interface as an example, the charging control method provided in the embodiment of the present application is exemplarily introduced below in combination with the hardware structure of the electronic device 100.

[0076] For example, Figure 4A circuit structure diagram of a mobile phone 200 provided in an embodiment of the present application is shown. The mobile phone 200 includes a main circuit board 210 and a sub-circuit board 230, and also includes a first charging chip, a second charging chip, a charging interface (such as a Type-C interface) 240, a battery 220 and a temperature sensor (not shown in the figure). Among them, the first charging chip and the second charging chip are both connected to the charging interface 240, and the first charging chip and the second charging chip are both connected to the battery 220. The first charging chip is arranged on the main circuit board 210, the second charging chip is arranged on the sub-circuit board 230, and the temperature sensors are arranged on the main circuit board and the sub-circuit board, or distributed around the main circuit board and the sub-circuit board, for collecting the temperature of the main circuit board 210 and the sub-circuit board 230. Figure 5 A flow chart of a charging control method provided in an embodiment of the present application is shown. The charging control method provided in an embodiment of the present application may include:

[0077] S101 : In response to the charging interface 240 being connected to a charging power source, the mobile phone obtains the charging current of the battery.

[0078] Among them, after the charging interface (such as Type-C interface) 240 of the mobile phone is connected to the charging power source, the charger of the mobile phone can charge the mobile phone.

[0079] The charging current of the battery described in the embodiment of the present application may be: the charging current input by the charging chip to the battery, or the charging current input by the charging power supply to the charging interface 240 .

[0080] It is understandable that the magnitude of the charging current input from the charging power supply to the charging interface 240 is affected by the following factors: (1) the charging current that the charging power supply can provide; and (2) the charging current supported by the charger.

[0081] The charging current input by the charging chip to the battery will not only be affected by the above two factors, but also by the charging mode of the charging chip. For example, the charging current input by the charging chip to the battery is different when the charging chip is in different charging modes. In summary, in the embodiment of the present application, the charging current of the battery may be affected by the following three factors: (1) the charging current that the charging power supply can provide; (2) the charging current supported by the charger; (3) the charging mode of the first charging chip and the second charging chip. The above three factors may be different each time the mobile phone is charged or at different stages of a single charge. In the embodiment of the present application, the mobile phone can obtain the charging current of the battery after the charging interface 240 is connected to the charging power supply, and then execute the subsequent method process to control the charging mode and charging method of the mobile phone based on the charging current of the battery.

[0082] S102: The mobile phone determines whether the charging current of the battery is greater than a first current threshold.

[0083] If the charging current is greater than the first current threshold, it indicates that the current charging power of the mobile phone is relatively high, and it may be in a high-power charging scenario. In this case, charging the battery with a higher charging current can further accelerate the charging speed and improve the charging efficiency. For example, the charging efficiency of the 4:1 charging mode is higher than that of the 2:1 charging mode.

[0084] Based on this, after S102, if the charging current of the battery is greater than the first current threshold, the mobile phone can execute S104 to charge the battery in the second charging mode; if the charging current of the battery is less than or equal to the first current threshold, the mobile phone can execute S103 to charge the battery in the first charging mode.

[0085] S103: The mobile phone controls the first charging chip and the second charging chip to charge the battery in a first charging mode.

[0086] S104: The mobile phone controls the first charging chip and the second charging chip to charge the battery in a second charging mode.

[0087] The second charging mode has a higher charging efficiency than the first charging mode. When the battery charging current exceeds the first current threshold, the battery may be in a high-power charging scenario. In such a high-power charging scenario, the second charging mode, such as the 4:1 mode, can be used, which allows for faster charging of the battery.

[0088] However, in high-power charging scenarios, the battery generates a large amount of heat, causing the battery temperature to rise. Excessive temperature may cause increased battery loss and increase battery aging. At this time, the internal resistance of the battery increases, limiting the flow of current and causing the charging current to decrease. Based on this, when the charging current is less than or equal to the first current threshold, the battery can be charged using the first charging mode, such as the 2:1 mode, which can reduce battery heat generation and help extend the battery life.

[0089] In some possible implementations, the charging modes of the first charging chip and the second charging chip may be consistent, that is, the first charging chip and the second charging chip both charge the battery in the first charging mode, or both charge the battery in the second charging mode.

[0090] In other possible implementations, the charging modes of the first and second charging chips may be different. For example, the first charging chip charges the battery in the first charging mode, while the second charging chip charges the battery in the second charging mode. In another example, the first charging chip charges the battery in the second charging mode, while the second charging chip charges the battery in the first charging mode.

[0091] Suppose the first charging chip and the second charging chip charge the battery in the second charging mode. Taking the 4:1 charging mode as an example for the second charging mode. In the 4:1 charging mode, on the premise of constant voltage, the output current of the charging chip is 4 times the input current. That is to say, the charging chip can charge the battery with an output current 4 times the input current, which can increase the charging power, improve the charging efficiency, and thus shorten the charging time.

[0092] When the charging chip is charging, it will charge the battery with 4 times the input current, making the charging time shorter. At this time, the output currents of the first charging chip and the second charging chip are 4 times the input current. It is not difficult to understand that in the M:1 mode, the output currents of the first charging chip and the second charging chip are M times the input current, where M is an integer greater than or equal to 1. The first charging chip and the second charging chip can adopt any one of single main circuit charging, single auxiliary circuit charging, and dual circuit charging.

[0093] Suppose the first charging chip and the second charging chip are both in the first charging mode to charge the battery. Taking the 2:1 charging mode as an example for the first charging mode. In the 2:1 charging mode, on the premise of constant voltage, the output current of the charging chip is 2 times the input current. That is to say, the charging chip can charge the battery with an output current 2 times the input current.

[0094] When the charging chip is charging, it will charge the battery with 2 times the input current. At this time, the output currents of the first charging chip and the second charging chip are 2 times the input current. It is not difficult to understand that in the N:1 mode, the output currents of the first charging chip and the second charging chip are N times the input current, where N is an integer and N < M. The first charging chip and the second charging chip can adopt any one of single main circuit charging, single auxiliary circuit charging, and dual circuit charging.

[0095] In the above embodiments, whether charging the battery in the first charging mode or in the second charging mode, the output current of the charging chip is greater than the input current, and both can increase the charging power, which all belong to high-power charging scenarios. Compared with the first charging mode, the charging power of the second charging mode is higher.

[0096] In high-power charging scenarios, charging has a significant impact on the temperature of the mobile phone battery. As the charging process continues, the battery will continue to heat up, and the internal resistance of the battery will gradually increase, affecting the charging current. The temperature of the mobile phone gradually increases as the battery temperature rises. That is, in the early stages of high-power charging scenarios, the charging current is greater than the first current threshold. As the charging time increases, the battery temperature gradually rises, and the internal resistance of the battery also gradually increases, and the charging current gradually decreases. Therefore, the following situation may exist: in the early stages of charging, the charging current obtained by the mobile phone executing S101 is greater than the first current threshold, and the mobile phone executes S104 to charge the battery in the second charging mode; after charging for a period of time, the charging current obtained by the mobile phone executing S101 becomes smaller (such as the charging current is less than or equal to the first current threshold), and the mobile phone can execute S103 to charge the battery in the first charging mode.

[0097] In summary, in the embodiment of the present application, the mobile phone can dynamically switch the charging mode based on the change of the battery charging current. In this way, the battery can be charged at high power while ensuring charging safety.

[0098] In some embodiments, even if the charging current is less than or equal to the first current threshold, if the temperature of the mobile phone is not high, in order to increase the charging power, the battery can be charged in the second charging mode. Figure 6 As shown, after S102, if the charging current of the battery is less than or equal to the first current threshold, the mobile phone may execute S201-S202.

[0099] S201. The mobile phone obtains the case temperature of the mobile phone.

[0100] The shell temperature of the electronic device is obtained by fitting the temperatures collected by multiple temperature sensors, and is used to represent the overall temperature of the mobile phone body.

[0101] It is understandable that if the charging current is less than or equal to the first current threshold and the phone case temperature is low, charging the phone in the second charging mode will not pose a safety risk. However, if the charging current is less than or equal to the first current threshold and the phone case temperature is high, charging the phone in the second charging mode will increase the phone temperature and increase the safety risk.

[0102] Based on this, in an embodiment of the present application, after S102, when the charging current of the battery is less than or equal to the first current threshold, the mobile phone can execute S201-S202 to obtain the case temperature of the mobile phone and determine whether the case temperature of the mobile phone is greater than the case temperature threshold.

[0103] S202: The mobile phone determines whether the case temperature of the mobile phone is greater than a case temperature threshold.

[0104] When the case temperature of the mobile phone is greater than the case temperature threshold, the mobile phone can execute S103 to charge the battery in the first charging mode; when the case temperature of the mobile phone is less than the case temperature threshold, the mobile phone can execute S104 to charge the battery in the second charging mode.

[0105] By adopting the method of the embodiment of the present application, a suitable high-power charging mode can be selected for the mobile phone based on the influence of two factors: the battery charging current and the mobile phone case temperature. The battery can be charged at high power while ensuring charging safety.

[0106] In the first charging mode or the second charging mode, the first charging chip and the second charging chip may adopt any one of charging modes such as single-main charging, single-auxiliary charging and dual-charging.

[0107] In some embodiments, to ensure charging efficiency of the mobile phone, the mobile phone can default to dual charging for charging the battery. That is, in the first charging mode or the second charging mode, the first charging chip and the second charging chip work simultaneously to charge the battery.

[0108] In other embodiments, the mobile phone may determine the charging mode of the first charging chip and the second charging chip based on the temperatures collected by the multiple sensors.

[0109] The following describes a specific implementation of determining the charging mode of the first charging chip and the second charging chip based on the temperatures collected by multiple sensors when the mobile phone charges the battery in the first charging mode.

[0110] In some embodiments, in order to ensure that the mobile phone can operate normally and reduce safety risks during battery charging in the first charging mode, the mobile phone can determine the charging mode of the first charging chip and the second charging chip based on the temperature difference between the main circuit board and the auxiliary circuit board. Figure 7 As shown, the above S103 may include S103a-S103d.

[0111] S103a: The mobile phone obtains a first temperature of the main circuit board and a second temperature of the auxiliary circuit board.

[0112] S103b: The mobile phone determines whether the difference between the first temperature and the second temperature is greater than the first temperature difference.

[0113] Among them, the difference between the first temperature and the second temperature is greater than the first temperature difference, which means that the difference obtained by subtracting the second temperature from the first temperature is greater than the first temperature difference. The first temperature difference can be set according to actual conditions, such as 2 degrees Celsius, 3 degrees Celsius, etc., and this application is not limited to this. For the first temperature of the main circuit board, it can be obtained by one of the multiple temperature sensors set on or near the main circuit board, or by fitting the values ​​detected by multiple temperature sensors. Similarly, for the second temperature of the auxiliary circuit board, it can be obtained by one of the multiple temperature sensors set on or near the auxiliary circuit board, or by fitting the values ​​detected by multiple temperature sensors.

[0114] In one scenario, during the initial charging phase, to improve charging efficiency, the phone can default to dual-charging the battery using both the first and second charging chips. However, as charging progresses, the temperatures of both the main and auxiliary circuit boards rise. In particular, the main circuit board, with its numerous components, heats up faster, increasing the temperature difference between the two. To mitigate safety risks, the phone needs to decide whether to use a single auxiliary charging circuit based on the temperature difference between the main and auxiliary circuit boards. This prevents the main circuit board from continuing to heat up due to charging, potentially damaging its components.

[0115] In another scenario, during the initial charging phase, the phone can default to using the first charging chip on the main circuit board to charge the battery using a single primary charging method, while the second charging chip on the secondary circuit board is inoperative. However, as charging progresses, the temperature of the main circuit board gradually rises. Since the secondary circuit board remains cooler due to the inoperative second charging chip, the temperature difference between the main and secondary circuit boards gradually increases. To mitigate safety risks, the phone needs to decide whether to use single-secondary charging or dual-charge based on the temperature difference between the main and secondary circuit boards to minimize the temperature difference between the two circuit boards.

[0116] Based on this, after S103b, if the difference between the first temperature and the second temperature is greater than the first temperature difference, the mobile phone can execute S103c; if the difference between the first temperature and the second temperature is less than or equal to the first temperature difference, the mobile phone can execute S103d.

[0117] S103c: The mobile phone controls the first charging chip and the second charging chip to charge in a first charging mode using a single auxiliary circuit.

[0118] S103d: The mobile phone controls the first charging chip and the second charging chip to charge in a single main circuit or dual circuit mode in a first charging mode.

[0119] If the difference between the first temperature of the main circuit board and the second temperature of the auxiliary circuit board is greater than the first temperature difference, it may indicate that the main circuit board is overheated, increasing the safety risk of the mobile phone, such as damage to the main circuit board or components on the main circuit board. Therefore, to reduce the probability of mobile phone safety risks, a method can be adopted in which the battery is charged only through the second charging chip on the auxiliary circuit board in the first charging mode (single auxiliary charging) to disperse the temperature on the main circuit board and effectively avoid the problem of increased mobile phone safety risks caused by localized excessive temperature.

[0120] When the difference between the first temperature of the main circuit board and the second temperature of the sub-circuit board is less than or equal to the first temperature difference, it can be said that the temperature of the main circuit board is within the normal temperature range. At this time, the battery can be charged only through the first charging chip on the main circuit board in the first charging mode, or the battery can be charged simultaneously through the first charging chip on the main circuit board and the second charging chip on the sub-circuit board to ensure the charging speed and charging efficiency of the mobile phone.

[0121] The following describes a specific implementation of determining the charging mode of the first charging chip and the second charging chip based on the temperatures collected by multiple sensors when the mobile phone charges the battery in the second charging mode.

[0122] In some embodiments, in order to ensure that the mobile phone can operate normally and reduce safety risks during the battery charging process in the second charging mode, the mobile phone can determine the charging mode of the first charging chip and the second charging chip based on the temperature difference between the main circuit board and the auxiliary circuit board. Figure 8 , S104 may include S104a-S104d.

[0123] S104a: The mobile phone obtains a first temperature of the main circuit board and a second temperature of the auxiliary circuit board.

[0124] S104b: The mobile phone determines whether the difference between the first temperature and the second temperature is greater than the second temperature difference.

[0125] For S104a and S104b, please refer to the previous introduction and will not be repeated here.

[0126] After S104b, if the difference between the first and second temperatures is greater than the second temperature difference, it may indicate that the temperature of the main circuit board is high, which may pose a risk of damage to components on the main circuit board and reduce the charging efficiency of the mobile phone. Based on this, if the difference between the first and second temperatures is greater than the second temperature difference, the mobile phone may execute S104c. If the difference between the first and second temperatures is less than or equal to the second temperature difference, to ensure charging efficiency, the mobile phone may execute S104d.

[0127] In some embodiments, the first temperature difference and the second temperature difference may be the same.

[0128] In other embodiments, the first temperature difference and the second temperature difference may also be different. Specifically, the ratio of the output current to the input current of the charging chip in the second charging mode is greater than the ratio of the output current to the input current of the charging chip in the first charging mode. The charging power corresponding to the second charging mode is greater than the charging power corresponding to the first charging mode. Therefore, the heat generated by the charging chip operating in the second charging mode is greater than the heat generated in the first charging mode. Based on this, the second temperature difference can be greater than the first temperature difference.

[0129] S104c: The mobile phone controls the first charging chip and the second charging chip to charge in a second charging mode using a single auxiliary circuit.

[0130] S104d: The mobile phone controls the first charging chip and the second charging chip to charge in a single main circuit or dual circuit mode in a second charging mode.

[0131] If the difference between the first temperature of the main circuit board and the second temperature of the auxiliary circuit board is greater than the second temperature difference, it may indicate that the temperature of the main circuit board is higher, increasing the safety risk of the mobile phone, such as damage to the main circuit board or components on the main circuit board. Therefore, to reduce the probability of mobile phone safety risks, a method can be adopted in which the battery is charged only through the second charging chip on the auxiliary circuit board in the second charging mode (single auxiliary charging) to distribute the temperature on the main circuit board and effectively avoid the problem of increased mobile phone safety risks caused by localized excessive temperature.

[0132] When the difference between the first temperature of the main circuit board and the second temperature of the sub-circuit board is less than or equal to the first temperature difference, it can be said that the temperature of the main circuit board is within the normal temperature range. At this time, the battery can be charged only through the first charging chip on the main circuit board in the second charging mode, or the battery can be charged simultaneously through the first charging chip on the main circuit board and the second charging chip on the sub-circuit board to ensure the charging speed and charging efficiency of the mobile phone.

[0133] The above S103a-S103d are executed based on the premise that the shell temperature of the mobile phone is greater than the shell temperature threshold. In some embodiments, the shell temperature of the mobile phone may be affected by the following factors: (1) high-power charging scenario; (2) the mobile phone runs applications, plays games, or performs other tasks that require computing resources.

[0134] In high-power charging scenarios, the battery temperature may gradually increase. The temperature of the mobile phone may gradually increase as the battery temperature increases. The case temperature, as a representation of the overall temperature of the mobile phone body, will also show a gradual increasing trend.

[0135] When the phone is running applications, playing games, or performing other tasks that require computing resources, the phone can be in a high-power charging scenario or in other power charging scenarios. In some embodiments, in order to ensure the charging efficiency of the phone during charging in the above scenarios, the phone can determine the charging mode of the phone based on the case temperature obtained in real time. Specifically, Figure 9 As shown, the above S202 may include S202a.

[0136] S202a: The mobile phone determines whether the case temperature of the mobile phone is greater than a case temperature threshold corresponding to the current scene information of the mobile phone.

[0137] The application scenario indicated by the current scene information of the mobile phone may be the application scenario corresponding to the application currently running in the foreground of the mobile phone. For example, if the application currently running in the foreground of the mobile phone is a game, the corresponding application scenario may be indicated as a game scenario; if the application currently running in the foreground of the mobile phone is office software, the corresponding application scenario may be indicated as an office scenario. In addition, the application scenario may also be a multimedia scenario, an audio and video scenario, a social communication scenario, etc., and this application does not limit this.

[0138] Different application scenarios of a mobile phone place different computational load requirements on the processor on the main circuit board, resulting in different amounts of heat generated by the processor or other related components on the main circuit board. For example, when a mobile phone is running a graphics-intensive gaming application, that is, when the phone is in a gaming scenario, the processor is highly loaded, generating more heat. In simple application scenarios such as web browsing, the processor load is lower, generating relatively less heat. In other words, the case temperature changes in real time depending on the application scenario. Correspondingly, the case temperature threshold also changes in real time depending on the application scenario, and the case temperature threshold is related to the application scenario. The case temperature threshold can be determined based on a preset table or database mapping application scenarios to case temperature thresholds. It is not difficult to understand that there are corresponding case temperature thresholds for different application scenarios.

[0139] Based on this, after S202a, if the shell temperature of the mobile phone is greater than the shell temperature threshold corresponding to the current scene information of the mobile phone, the mobile phone can execute S103; if the shell temperature of the mobile phone is less than or equal to the shell temperature threshold corresponding to the current scene information of the mobile phone, the mobile phone can execute S104 or S103.

[0140] In some embodiments, based on Figure 3 The overall hardware structure diagram of the mobile phone is shown in Figure 10 As shown, after the charging port of the mobile phone is connected to a charging power source, in order to effectively avoid the problem of local heating of the mobile phone, the mobile phone can determine whether the first charging chip and the second charging chip of the mobile phone are single-main charging, single-auxiliary charging, or dual-charging based on the first temperature of the main circuit board and the second temperature of the auxiliary circuit board. For example:

[0141] S1001. The mobile phone obtains a first temperature of a main circuit board and a second temperature of a sub-circuit board.

[0142] S1002: The mobile phone determines whether the difference between the first temperature and the second temperature is greater than the first temperature difference.

[0143] Regarding S1001, the steps for the mobile phone to obtain the first temperature of the main circuit board and the second temperature of the auxiliary circuit board are as described above and will not be repeated here.

[0144] If the difference between the first temperature and the second temperature is greater than the first temperature difference, it indicates that the temperature of the main circuit board is high and the mobile phone may have a local heating problem. In order to lower the temperature of the main circuit board and reduce the safety risk of the mobile phone, execute S1003; if the difference between the first temperature and the second temperature is less than or equal to the first temperature difference, it indicates that the temperature of the main circuit board is within the normal temperature range. In order to ensure the charging speed and charging efficiency of the mobile phone, execute S1004.

[0145] S1003: The mobile phone controls the first charging chip and the second charging chip to charge via a single auxiliary circuit.

[0146] S1004: The mobile phone controls the first charging chip and the second charging chip to charge the battery in a single or dual manner. If the difference between the first and second temperatures is greater than the first temperature difference, the first charging chip on the main circuit board stops charging, while the second charging chip on the secondary circuit board charges the battery. This transfers heat from the main circuit board through the secondary circuit board, reducing heat on the main circuit board. This effectively resolves the issue of localized heating in the mobile phone and reduces safety risks.

[0147] If the difference between the first temperature and the second temperature is less than or equal to the first temperature difference, the first charging chip on the main circuit board is used to charge the battery, and the second charging chip is not charged, or the first charging chip on the main circuit board and the second charging chip on the auxiliary circuit board are charged at the same time, which can effectively ensure charging efficiency and charging speed.

[0148] An embodiment of the present application provides an electronic device, which may include: a main circuit board and a sub-circuit board. The electronic device also includes a first charging chip, a second charging chip, a charging interface, a battery, multiple temperature sensors, a memory, and one or more processors. The above-mentioned charging interface connects the first charging chip and the second charging chip, and the first charging chip and the second charging chip are both connected to the battery. The first charging chip is arranged on the main circuit board, and the second charging chip is arranged on the sub-circuit board. Multiple temperature sensors are distributed around the main circuit board and the sub-circuit board for collecting the temperatures of the main circuit board and the sub-circuit board. The processor and the memory are arranged on the main circuit board.

[0149] The first charging chip, second charging chip, charging port, battery, multiple temperature sensors, and memory are all coupled to a processor. The memory is used to store computer program code. The computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device performs the functions or steps performed by the mobile phone in the above embodiments.

[0150] An embodiment of the present application further provides a computer storage medium, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the various functions or steps executed by the mobile phone in the above method embodiment.

[0151] The embodiment of the present application further provides a computer program product, which, when executed on a computer, enables the computer to execute the functions or steps executed by the mobile phone in the above method embodiment.

[0152] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0153] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0154] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0155] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0156] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0157] The above content is only a specific embodiment of this application, but the scope of protection of this application is not limited to this. Any changes or replacements within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A charging control method, characterized in that: Applicable to electronic equipment, the electronic equipment includes a main circuit board and a sub-circuit board; the electronic equipment also includes a first charging chip, a second charging chip, a charging interface, a battery, and multiple temperature sensors; the charging interface is connected to the first charging chip and the second charging chip, and the first charging chip and the second charging chip are both connected to the battery; The first charging chip is arranged on the main circuit board, and the second charging chip is arranged on the auxiliary circuit board; The plurality of temperature sensors are distributed around the main circuit board and the auxiliary circuit board, and are used to collect the temperatures of the main circuit board and the auxiliary circuit board; the method includes: After the charging interface is connected to a charging power source, obtaining a charging current of the battery; determining, based on a magnitude relationship between the charging current and a first current threshold, a charging mode in which the first charging chip and the second charging chip charge the battery; wherein, the output current of the first charging chip and the second charging chip is an integer multiple of the input current, the integer multiples being different in different charging modes, corresponding to different charging efficiencies, and a larger integer multiple being higher in the charging efficiency; when the charging current is less than or equal to the first current threshold, controlling the first charging chip and the second charging chip to charge the battery in the first charging mode; and when the charging current is greater than the first current threshold, controlling the first charging chip and the second charging chip to charge the battery in the second charging mode; the integer multiple in the first charging mode is lower than the integer multiple in the second charging mode; Acquiring a first temperature of the main circuit board and a second temperature of the auxiliary circuit board; If the difference between the first temperature and the second temperature is greater than the first temperature difference, controlling the first charging chip and the second charging chip to charge in a single auxiliary circuit; If the difference between the first temperature and the second temperature is less than or equal to the first temperature difference, controlling the first charging chip and the second charging chip to charge in a single main channel or in a dual main channel; Among them, the single-auxiliary charging means: the second charging chip charges the battery, and the first charging chip does not charge; the single-main charging means: the first charging chip charges the battery, and the second charging chip does not charge; the dual-channel charging means: the first charging chip and the second charging chip charge the battery at the same time.

2. The method according to claim 1, characterized in that In the first charging mode, the output current of the first charging chip and the second charging chip is N times the input current, where N≥1 and N is an integer; Among them, in the first charging mode, the first charging chip and the second charging chip support each of the single-main-line charging, the single-auxiliary-line charging and the dual-line charging.

3. The method according to claim 1, characterized in that If the charging current is less than a first current threshold, controlling the first charging chip and the second charging chip to charge the battery in a first charging mode includes: If the charging current is less than the first current threshold, obtaining a case temperature of the electronic device; wherein the case temperature of the electronic device is obtained based on temperature fitting collected by the multiple temperature sensors, and the case temperature of the electronic device is used to represent the overall temperature of the electronic device body; If the case temperature of the electronic device is greater than a case temperature threshold, the first charging chip and the second charging chip are controlled to charge the battery in the first charging mode.

4. The method according to any one of claims 1 to 3, characterized in that In the second charging mode, the output current of the first charging chip and the second charging chip is M times the input current, M>N, and M is an integer; In the second charging mode, the first charging chip and the second charging chip support each of the single-main-line charging, the single-auxiliary-line charging and the dual-line charging.

5. The method according to claim 4, characterized in that In the second charging mode, the method further includes: If the difference between the first temperature and the second temperature is greater than the second temperature difference, controlling the first charging chip and the second charging chip to charge in a single auxiliary circuit; If the difference between the first temperature and the second temperature is less than or equal to the second temperature difference, the first charging chip and the second charging chip are controlled to perform single-main-line charging or dual-line charging; wherein the second temperature difference is greater than the first temperature difference.

6. The method according to claim 3, characterized in that The case temperature of the electronic device is greater than a case temperature threshold, including: The shell temperature of the electronic device is greater than a shell temperature threshold corresponding to the current scene information of the electronic device; wherein, when the electronic device is in an application scene indicated by different scene information, the shell temperature threshold is different.

7. The method according to claim 6, characterized in that The application scenario indicated by the current scenario information includes: the application scenario corresponding to the application currently running in the foreground of the electronic device.

8. The method according to claim 1, characterized in that After the charging interface is connected to the charging power source, obtaining the charging current of the battery includes: In response to the charging interface being connected to the charging power source, the charging current of the battery is periodically obtained.

9. An electronic device, characterized in that: The electronic device includes: a main circuit board and a sub-circuit board; the electronic device also includes a first charging chip, a second charging chip, a charging interface, a battery, multiple temperature sensors, a memory, and one or more processors; the charging interface is connected to the first charging chip and the second charging chip, and the first charging chip and the second charging chip are both connected to the battery; the first charging chip is arranged on the main circuit board, and the second charging chip is arranged on the sub-circuit board; the multiple temperature sensors are distributed around the main circuit board and the sub-circuit board, and are used to collect the temperatures of the main circuit board and the sub-circuit board; the processor and the memory are arranged on the main circuit board; The first charging chip, the second charging chip, the charging interface, the battery, the multiple temperature sensors, and the memory are all coupled to the processor; the memory is used to store computer program code; the computer program code includes computer instructions, and when the processor executes the above-mentioned computer instructions, the electronic device executes the method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium includes computer instructions, and when the computer instructions are executed on an electronic device, the electronic device is caused to perform the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Charging method, charging circuit and electronic device

    CN103715723A

  • Charging circuit, method and device and electronic equipment

    CN112737022A

  • Charging circuit, charging control method and electronic equipment

    CN115411789A

  • Charging method and device and storage medium

    CN116094083A

  • Charging control apparatus, charging control method and computer readable medium thereof

    US20190123565A1