Connection cable, electronic equipment and charging system

By setting up an independent DC-DC converter on the connecting cable, the problem of power loss of electronic devices caused by slow charging speed is solved, and faster charging speed and lower power loss probability are achieved.

CN120657880APending Publication Date: 2025-09-16HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410263096.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-07
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

When a user plays games on a charged electronic device, the slow charging speed causes the electronic device to lose power.

Method used

A DC-DC converter on a connection cable independent of the electronic device is used for DC-DC conversion, reducing the impact of heat on the entire case temperature, thereby increasing charging speed and reducing the probability of power failure.

Benefits of technology

By installing a DC-DC converter on the connecting cable, the limitation of the entire casing temperature on the charging power is reduced, the charging speed is increased, and the probability of power failure of the electronic device is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120657880A_ABST
    Figure CN120657880A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a connecting cable, electronic equipment and a charging system, and is applied to the technical field of terminals. The connection cable includes a first interface, at least one direct current-direct current (DC-DC) converter, and a second interface. The DC-DC converter is arranged between the first interface and the second interface. Thus, under the condition that the first interface is connected to the electronic equipment and the second interface is connected to the charger, part or all of the at least one DC-DC converter charges the battery unit of the electronic equipment. Since the connecting cable is independent of the electronic equipment, the heat generated by the DC-DC converter during the DC-DC conversion does not influence the temperature rise of the whole machine shell temperature of the electronic equipment, so that the limitation of the temperature rise of the whole machine shell temperature on the charging power of the electronic equipment can be reduced, and the occurrence probability of power failure of the electronic equipment is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a connecting cable, an electronic device, and a charging system. Background Art

[0002] Some electronic devices can have multiple applications installed. These applications may include gaming and / or video applications. This allows users to play games or watch videos on their electronic devices. Furthermore, electronic devices also have charging capabilities. When the battery level is low, users can charge the device and then play games on it while it's charging.

[0003] However, when a user plays a game on an electronic device that is being charged, the electronic device may be charged slowly, thereby causing the electronic device to lose power. Summary of the Invention

[0004] An embodiment of the present application provides a connecting cable, an electronic device and a charging system, which are applied to the field of terminal technology. The connecting cable includes a first interface, at least one direct current-to-direct current (DC-DC) converter and a second interface. The DC-DC converter is arranged between the first interface and the second interface. When the first interface is connected to the electronic device and the second interface is connected to the charger, some or all of the at least one DC-DC converters charge the battery cells of the electronic device. Since the connecting cable is independent of the electronic device, the heat generated by the DC-DC converter during the DC-DC conversion will not affect the temperature rise of the entire housing of the electronic device, thereby reducing the limitation of the temperature rise of the entire housing on the charging power of the electronic device, so as to reduce the probability of power failure of the electronic device. It should be understood that the DC-DC converter can charge the battery cells by performing DC-DC conversion.

[0005] In a first aspect, an embodiment of the present application provides a connection cable, comprising: a first interface, at least one DC-DC converter, and a second interface, wherein the DC-DC converter is disposed between the first interface and the second interface.

[0006] In this way, when the first interface is connected to an electronic device and the second interface is connected to a charger, some or all of the at least one DC-DC converter can charge the battery cells of the electronic device. The charger is used to power the DC-DC converter via the second interface. The DC-DC converter converts the DC power received from the charger to obtain the voltage and current required to charge the battery cells, thereby charging the battery cells. It should be understood that the voltage and current used to charge the battery cells are also DC power. For example, the DC-DC converter can convert DC power with a voltage of 10V and a current of 2A received from the charger into DC power with a fast-charge voltage of 5V and a fast-charge current of 4A. The 5V fast-charge voltage and 4A fast-charge current are used to fast-charge the battery cells. The heat generated by the DC-DC converter during power conversion is distributed to the connecting cable, which is independent of the electronic device. Therefore, when the electronic device is charging, the heat generated by the DC-DC converter does not affect the overall temperature of the electronic device, thereby reducing the temperature rise of the electronic device and, in turn, reducing the limitation on the charging power of the battery cells caused by the temperature rise of the electronic device. This can reduce the probability of electronic devices losing power due to the charging speed being lower than the power consumption rate of the electronic devices. In addition, when the connecting cable includes multiple DC-DC converters, the charging power of the battery cells can be controlled by controlling the number of DC-DC converters that charge the battery cells, thereby meeting the different charging power requirements of the battery cells. The connecting cable can be Figure 3 or Figure 5 The circuit in the external cable 306. The charger can be Figure 3 or Figure 5 The electronic device may be a charger 307. Figure 3 The electronic device 300 or Figure 4 The first interface may be Figure 3 or Figure 5 The DC-DC converter can be an interface a 302 in Figure 5 The fast charging circuit c 501 in the DC-DC converter can also be Figure 5 The external charging unit 303 including the fast charging circuit c 501 or Figure 5 The external charging IC 504 includes a fast charging circuit c 501. The second interface can be Figure 3 or Figure 5 Interface b 305 in the first interface is connected to the electronic device, and the second interface is connected to the charger, for example: the external interface 301 is connected to the interface a 302, and the interface b 305 is connected to the charger interface 308. The DC-DC converter charging the battery cell can be a DC-DC converter fast charging the battery cell. The specific implementation principle of the DC-DC converter charging the battery cell can be referred to Figure 3 Example or Figure 4 The specific implementation principle of the external charging unit for fast charging the battery unit in the embodiment can be referred to Figure 5 In the embodiment, the fast charging circuit c 501 performs power conversion on the voltage and current obtained from the charger 307 to fast charge the battery cell 404. The specific implementation principle will not be repeated here. Taking the DC-DC converter as the fast charging circuit c 501, and the fast charging circuit c 501 being connected to the external charging IC 504 as an example, when the connecting cable includes multiple DC-DC converters, the electronic device can transmit information indicating that the fast charging circuit is enabled to the connecting cable, instructing the connecting cable to control some or all of the DC-DC converters in the multiple DC-DC converters to enable, so as to charge the battery cell. The information indicating that the fast charging circuit is enabled may include the number of enabled fast charging circuits and / or the identification of the fast charging circuit. The specific implementation principle of the electronic device transmitting information indicating that the fast charging circuit is enabled to the connecting cable can be found in Figure 7 In the embodiments S709, S710 or S711, the SoC controls the fast charging circuit c 501 to be in an enabled state through the external charging IC 504. In one embodiment of the present application, the DC-DC converter can be the same as the buck circuit. The DC-DC converter can charge the battery cell, or the DC-DC converter can charge the battery cell slowly. The specific implementation principle of the DC-DC converter charging the battery cell slowly is similar to the specific implementation principle of the DC-DC converter charging the battery cell fast.

[0007] In one possible implementation, the first interface includes a first pin. The second interface includes a second pin. A DC-DC converter is connected between the second pin and the first pin. When the first interface is connected to an electronic device and the second interface is connected to a charger, some or all of the at least one DC-DC converters charge a battery cell of the electronic device via the first pin. The charger supplies power to the DC-DC converter via the second pin. The connection cable is independent of the electronic device and the charger.

[0008] In this way, a DC-DC converter is used to charge the battery cell in the charging scenario of the electronic device. The connecting cable is independent of the electronic device and the charger. The heat generated by the power conversion performed by the DC-DC converter on the connecting cable to charge the battery cell will not affect the temperature of the entire housing of the electronic device, which can reduce the temperature rise of the entire housing of the electronic device, and further reduce the limitation of the temperature rise of the entire housing of the electronic device on the charging power of the battery cell. In addition, the probability of the electronic device losing power due to the charging speed being lower than the power consumption rate of the electronic device can be reduced. Among them, the first pin can be Figure 5 The second pin can be the Vbat pin of the middle interface a 302. Figure 5 The Vbus pin of the middle interface b 305.

[0009] In a possible implementation, the first interface further includes a third pin that can output a first signal indicating overvoltage and / or overcurrent of the connection cable.

[0010] In this way, the electronic device can obtain the first signal transmitted by the connection cable through the third pin, so as to stop the DC-DC converter from charging the battery cell when the connection cable is over-voltage and / or over-current, thereby reducing the probability of the electronic device being damaged due to the connection cable over-voltage and / or over-current charging the battery cell. Figure 5 The SBU1 pin and SBU2 pin of the middle interface a 302. The specific implementation principle of the electronic device obtaining the first signal transmitted by the connecting cable through the third pin can be found in Figure 4 The specific implementation principle of the circuit external cable 306 transmitting the interrupt to the SoC 400 in the embodiment.

[0011] In a possible implementation, the first interface further includes a fourth pin, which can enable communication between the connection cable and the electronic device.

[0012] In this way, the connecting cable can communicate with the electronic device through the fourth pin, so that the connecting cable can transmit the charging performance parameters to the electronic device through the fourth pin, or transmit the anti-counterfeiting information and the charging performance parameters to the electronic device, so as to enable the connecting cable to charge the battery unit. Figure 5 The SDA pin and SCL pin of the middle interface a 302. The specific implementation principle of connecting the cable to the electronic device can be seen in Figure 4 or Figure 5 The specific implementation principle of IIC communication between the SoC 400 and the external charging unit 303 in the embodiment. The fourth pin can also be a single bus pin of the Type-C interface of the connection cable. The single bus pin of the Type-C interface of the connection cable can be obtained by redefining at least one of the RX2-pin, RX1-pin, TX2-pin, or TX1-pin of the Type-C interface of the connection cable.

[0013] In one possible implementation, the device further includes a first charging chip. The fourth pin includes a first serial data channel data line SDA pin and a first serial data channel clock line SCL pin. The first SDA pin and the first SCL pin are respectively connected to the first charging chip. The first SDA pin and the first SCL pin can implement integrated circuit bus (ICB) communication between the first charging chip and the electronic device.

[0014] In this way, the first charging chip can communicate with the SoC of the electronic device through the first SDA pin and the first SCL pin, so that the first charging chip can transmit charging performance parameters to the electronic device, or transmit anti-counterfeiting information and charging performance parameters to the electronic device, so as to realize the connection cable to charge the battery unit. Figure 5 The first SCL pin can be Figure 5 The first charging chip can be Figure 5 The external charging IC 504 in the first interface can optionally include a third pin. The third pin can be connected to the first charging chip. The first charging chip can also transmit a first signal to the electronic device via the third pin. It is understood that the first charging chip can be connected to a DC-DC converter to enable or disable the DC-DC converter.

[0015] In one possible implementation, the device further includes a first charging chip. The fourth pin includes a first 1-wire bus pin. The first 1-wire bus pin is connected to the first charging chip. The first 1-wire bus pin can implement 1-wire bus communication between the first charging chip and the electronic device.

[0016] In this way, the first charging chip can perform single bus communication with the electronic device through the first single bus pin, so that the first charging chip can transmit charging performance parameters to the electronic device, or transmit anti-counterfeiting information and charging performance parameters to the electronic device, so as to realize the connection cable to charge the battery unit. The first single bus pin can be a single bus pin of the Type-C interface of the connection cable. The first charging chip can be Figure 5 The external charging IC 504 in the device.

[0017] In one possible implementation, the device further includes an anti-counterfeiting chip connected to the fourth pin. When the first interface is connected to the electronic device, the anti-counterfeiting chip can transmit anti-counterfeiting information for authentication to the electronic device via the fourth pin.

[0018] In this way, the connecting cable can transmit anti-counterfeiting information to the electronic device through the anti-counterfeiting chip, so that if the authentication is successful, the electronic device uses a DC-DC converter to charge the battery unit. The specific implementation principle can be seen in Figure 4 The implementation principle of scenario 1 in the embodiment. In the case of unsuccessful authentication, the DC-DC converter is not used to charge the battery cell, so as to reduce the probability of damage to the electronic device or battery cell due to the DC-DC converter charging the battery cell. For the specific implementation principle, please refer to Figure 4 The implementation principle of scenario 2 in the embodiment. Among them, the anti-counterfeiting chip can be Figure 5 Anti-counterfeiting IC503.

[0019] In one possible implementation, the first charging chip includes a linear power supply, one end of which is connected between the second pin and the DC-DC converter. The anti-counterfeiting chip is also connected to the linear power supply. The linear power supply can power the first charging chip and the anti-counterfeiting chip.

[0020] In this way, the linear power supply can obtain power from the charger through the second pin, and convert the obtained power into power to supply power to the first charging chip and the anti-counterfeiting chip. Figure 5 The linear power supply (LDO) 502 in FIG.

[0021] In one possible implementation, the first interface further includes a fifth pin. The fifth pin is connected to the second pin. When the first interface is connected to an electronic device and the second interface is connected to a charger, the fifth pin and the second pin can enable the electronic device to obtain power from the charger.

[0022] In this way, the charger can power the electronic device through the second pin, the fifth pin and the Vbus pin of the electronic device, so that the first circuit on the electronic device performs power conversion to charge the battery cell. In addition, in the case that the DC-DC converter of the connection cable fails and cannot charge the battery cell, the battery cell can be charged through the first circuit on the electronic device, reducing the probability of the battery cell being unable to be charged due to the failure of the DC-DC converter. Among them, the fifth pin can be Figure 5 The Vbus pin of the middle interface a 302.

[0023] In one possible implementation, the first interface further includes a sixth pin, and the second interface further includes a seventh pin. The sixth pin is connected to the seventh pin. When the first interface is connected to an electronic device and the second interface is connected to a charger, the sixth and seventh pins can enable communication between the electronic device and the charger.

[0024] In this way, the electronic device communicating with the charger through the sixth and seventh pins may include: the electronic device performing a fast charging protocol handshake with the charger through the sixth and seventh pins, and the electronic device transmitting charging requirement information to the charger through the sixth and seventh pins, so that the charger outputs a voltage and current corresponding to the charging requirement information, thereby charging the battery cell. It should be understood that the electronic device transmitting the charging requirement information to the charger through the sixth and seventh pins belongs to the electronic device and the charger transmitting data according to the fast charging protocol. Among them, the sixth pin can be Figure 5 The D+ pin and D- pin of the middle interface a 302. The seventh pin can be Figure 5 The sixth pin may be the D+ pin and the D- pin of the middle interface b 305. In one possible implementation, the sixth pin may be Figure 5The seventh pin can be the CC1 pin and CC2 pin of the middle interface a 302. Figure 5 CC pin of interface b 305.

[0025] In one possible implementation, the sixth pin includes a first data transmission pin and the seventh pin includes a second data transmission pin, and / or the sixth pin includes a first external device detection pin and the seventh pin includes a second external device detection pin.

[0026] In this way, when both the electronic device and the charger support the SCP protocol, the first data transmission pin and the second data transmission pin can realize the fast charging protocol interaction between the electronic device and the charger according to the SCP protocol. Figure 4 Example or Figure 5 In the embodiment, the fast charging chip a 311 and the charger 307 perform fast charging protocol interaction according to the SCP protocol. The first data transmission pin can be Figure 5 The D+ pin and D- pin of the middle interface a 302. The second data transmission pin can be Figure 5 In the case where both the electronic device and the charger support the PD protocol, the first external device detection pin and the second external device detection pin can enable the electronic device and the charger to perform fast charging protocol interaction according to the PD protocol. The implementation principle of the fast charging protocol interaction between the electronic device and the charger according to the PD protocol can be referred to. Figure 4 Example or Figure 5 In the embodiment, the PMU 414 and the charger 307 implement the fast charging protocol interaction according to the PD protocol. Figure 5 The second external device detection pin can be the CC1 pin and CC2 pin of the middle interface a 302. Figure 5 CC pin of interface b 305.

[0027] In one possible implementation, the first interface further includes a fifth pin, the first interface further includes a first external device detection pin, and the second interface further includes a second external device detection pin. The connection cable further includes a fifth resistor. The fifth pin is connected to the second pin. The first external device detection pin is connected to the second external device detection pin. One end of the fifth resistor is connected to the first external device detection pin, and the other end of the fifth resistor is connected to the fifth pin.

[0028] In this way, the electronic device can determine whether the connecting cable is a fast charging cable by detecting the fifth resistor. If the electronic device detects the fifth circuit in the connecting cable, it can be determined that the connecting cable is a fast charging cable. If the electronic device does not detect the fifth circuit in the connecting cable, it can be determined that the connecting cable is not a fast charging cable (or a non-fast charging cable). Among them, the fifth resistor can be Figure 5 The electronic device detects the fifth resistor to determine whether the connected cable is a fast charging cable. Figure 5 Example or Figure 6 In the embodiment, the electronic device determines the specific implementation principle of whether the external cable of the circuit is a fast charging cable.

[0029] In a possible implementation, the DC-DC converter is disposed on an end of the connection cable close to the first interface.

[0030] In this way, the DC-DC converter performs power conversion so that the output current of the DC-DC converter is higher than the input current. Since the higher the current, the greater the heat loss caused by current transmission. The DC-DC converter is arranged at the end of the connection cable near the first interface, which can shorten the connection line between the DC-DC converter and the electronic device, thereby reducing the heat loss caused by the transmission of the voltage and current output by the DC-DC converter, and can also reduce the cost of the transmission line used for the voltage and current output by the DC-DC converter.

[0031] In a second aspect, embodiments of the present application provide an electronic device comprising: a third interface and a battery unit. The third interface includes an eighth pin. The eighth pin is connected to the battery unit. The eighth pin can be connected to a connecting cable. When the connecting cable is connected to a power source, the connecting cable charges the battery unit via the eighth pin. The connecting cable is provided with a DC-DC converter, and the connecting cable is independent of the electronic device.

[0032] In this way, the eighth pin is connected to the battery cell. When the eighth pin is connected to the connecting cable and the connecting cable is powered on, the connecting cable can transmit the voltage and current for charging the battery cell to the battery cell through the eighth pin to charge the battery cell. The voltage and current for charging the battery cell can be a fast-charging voltage and a fast-charging current for fast charging the battery cell. In the charging scenario of the electronic device, since the connecting cable is independent of the electronic device, the heat generated when the DC-DC converter in the connecting cable performs power conversion to obtain the voltage and current for charging the battery cell will not affect the temperature of the entire housing of the electronic device, and can reduce the temperature rise of the entire housing of the electronic device, thereby reducing the limitation of the temperature rise of the entire housing of the electronic device on the charging power of the battery cell, and can reduce the probability of the electronic device's charging speed being reduced due to the temperature rise of the entire housing, thereby reducing the probability of the electronic device losing power due to the charging speed being lower than the power consumption rate of the electronic device. The connecting cable can be the connecting cable of the first aspect. The electronic device can be the electronic device shown in the first aspect. The electronic device can be Figure 3 The electronic device 300 or Figure 4 The third interface can be Figure 3 or Figure 4 The external interface 301 in the battery unit can be Figure 4 The eighth pin can be Figure 4 The Vbat pin of the external interface 301. The connecting cable can be Figure 3 or Figure 5 The circuit in the external cable 306. The DC-DC converter can be Figure 5 The fast charging circuit c 501 in. The DC-DC converter can also be Figure 5 The external charging unit 303 including the fast charging circuit c 501 or Figure 5 The external charging IC 504 includes a fast charging circuit c 501. The specific implementation principle of connecting the cable to charge the battery unit can be found in Figure 3 Example or Figure 4 The specific implementation principle of the external charging unit on the external cable of the circuit in the embodiment fast charging the battery unit is not repeated here. In one embodiment of the present application, the connection cable to charge the battery unit may also be the connection cable to slowly charge the battery unit. The specific implementation principle of the connection cable to slowly charge the battery unit may be similar to the specific implementation principle of the connection cable to fast charge the battery unit, and will not be repeated here.

[0033] In one possible implementation, the battery further includes: a control unit and a first switch unit. The control unit is connected to the first switch unit. The first switch unit is connected between the eighth pin and the battery unit. The control unit can control the first switch unit to be in an on state or an off state.

[0034] In this way, by controlling the first switch unit to be in the on state, the battery unit can be charged by connecting the cable. By controlling the first switch unit to be in the off state, the battery unit can be stopped from being charged by connecting the cable. Figure 4 The first switching unit may be Figure 4 The switch unit a 401 in FIG. 402 is a MOSFET. For example, the first switch unit may be a MOSFET or may be composed of multiple MOSFETs. The control unit may be connected to the control terminal of the first switch unit to control the first switch unit to be in an on state or an off state. The specific implementation principle of the control unit controlling the first switch unit to be in an on state or an off state can be found in FIG. Figure 4 Example Figure 5 Example Figure 6 Example or Figure 7 The specific implementation principle of the SoC controlling the switch unit a to be in the on state or the off state in the embodiment.

[0035] In one possible implementation, the third interface further includes a ninth pin, which is connected to the control unit. Upon receiving a first signal via the ninth pin, the control unit controls the first switch unit to be in an off state. The first signal indicates an overvoltage and / or overcurrent condition in the connecting cable. The first signal is transmitted to the control unit by the connecting cable when the eighth pin is connected to the connecting cable.

[0036] In this way, when the third interface is connected to the connecting cable, the eighth pin is connected to the connecting cable, and the ninth pin is connected to the connecting cable. In the case of overvoltage and / or overcurrent in the connecting cable, the connecting cable can transmit a first signal to the control unit through the ninth pin to prompt the control unit that the connecting cable is overvoltage and / or overcurrent. The control unit can control the first switch unit to be in the off state to stop the connecting cable from charging the battery cell, thereby reducing the probability of damage to the battery cell or the electronic device caused by the connecting cable charging the battery cell. Among them, the ninth pin can be Figure 4The SBU1 pin and the SBU2 pin of the external interface 301. The first signal can be an interrupt (INT) transmitted by the connecting cable to the control unit through the ninth pin when the connecting cable is over-voltage and / or over-current. Optionally, the electronic device further includes: a first resistor. One end of the first resistor is connected between the ninth pin and the control unit, and the other end of the first resistor is connected to the power supply of the control unit. The first resistor can maintain the stability of the level of the first signal (such as interruption) transmitted. Among them, the first resistor can be Figure 4 The power supply of the control unit can be Figure 4 The specific implementation principle of the connecting cable transmitting the first signal to the control unit can be found in Figure 4 Example or Figure 5 The specific implementation principle of the circuit external cable transmission interruption to the SoC in the embodiment.

[0037] In one possible implementation, the device further includes a second switch unit, and the third interface further includes a tenth pin. The second switch unit is connected between the control unit and the tenth pin. The control unit can control the second switch unit to be in an on state or an off state. When the second switch unit is in the on state, the tenth pin can enable communication between the control unit and the connection cable.

[0038] In this way, by controlling the second switch unit to be in the on state, communication between the control unit and the connection cable can be achieved to determine whether the electronic device supports the connection cable to charge the battery unit. By controlling the second switch unit to be in the off state, the communication between the control unit and other modules on the electronic device (such as Figure 4 The probability of affecting the performance of the connection cable by communicating with the fast charging chip on the electronic device. For example, when the electronic device identifies that the charger is a fast charging charger, the control unit can control the second switch unit to be in the on state. When the electronic device identifies that the charger is a non-fast charging charger, the control unit can control the second switch unit to be in the off state, so that the control unit does not communicate with the connection cable, and the connection cable will not be used to charge the battery unit. It can also reduce the probability of affecting the performance of the electronic device by using the connection cable to charge the battery unit when the charger is a non-fast charging charger. Among them, the tenth pin can be Figure 4 The SDA pin and SCL pin of the external interface 301. If the tenth pin is Figure 4 The SDA pin and SCL pin of the external interface 301, the second switch unit can be Figure 4The tenth pin may also be a single bus pin of the Type-C interface of the electronic device. The single bus pin of the Type-C interface of the electronic device may be obtained by redefining at least one of the RX2-pin, RX1-pin, TX2-pin or TX1-pin of the Type-C interface. For example, the RX2-pin and RX1-pin in the Type-C interface may be redefined as a single bus pin. The specific implementation principle of the electronic device identifying whether the charger is a fast charging charger can be found in Figure 4 The specific implementation principle of the PMU in the embodiment for determining the device type of the charger.

[0039] In one possible implementation, the tenth pin includes: a second serial data channel data line SDA pin and a second serial data channel clock line SCL pin, and the second switch unit includes a first switch and a second switch. The first switch is connected between the control unit and the second SDA pin, and the second switch is connected between the control unit and the second SCL pin. The control unit can also control the first switch and the second switch to be both on or off. When the first switch and the second switch are both on, the second SDA pin and the second SCL pin can implement integrated circuit bus (ICB) communication between the control unit and the connection cable.

[0040] In this way, by controlling the first switch and the second switch to be in the on state, IIC communication between the control unit and the connection cable can be achieved, thereby determining whether the electronic device supports the connection cable to charge the battery unit. By controlling the first switch and the second switch to be in the off state, the probability of the control unit performing IIC communication with other modules on the electronic device affecting the performance of the connection cable can be reduced. Among them, the second SDA pin can be Figure 4 The second SCL pin can be Figure 4 The first switch can be the SCL pin of the external interface 301. Figure 4 The second switch may be Figure 4The switch unit b 402 in the circuit. The control end of the first switch and the control end of the second switch can be connected to the control unit to realize the control unit's control of the on or off of the first switch and the second switch. Optionally, the electronic device further includes: a second resistor and a third resistor. One end of the second resistor is connected between the second SDA pin and the control unit, and the other end of the second resistor is connected to the power supply of the control unit. One end of the third resistor is connected between the second SCL pin and the control unit, and the other end of the third resistor is connected to the power supply of the control unit. The second resistor and the third resistor can be used to maintain the high level of the IIC bus, so that the IIC communication has the ability to output a high level, and can also block interference signals so that the quality of IIC communication between the control unit and the connecting cable is better. The second resistor and the third resistor can also protect the device or module that performs IIC communication with the control unit. Among them, the second resistor can be Figure 4 The third resistor can be Figure 4 Resistor R7 in.

[0041] In one possible implementation, the tenth pin includes a second 1-wire bus pin. The second switch unit includes a third switch. The control unit can also control the third switch to be in an on state or an off state. When the third switch is in the on state, the second 1-wire bus pin can implement 1-wire bus communication between the control unit and the connection cable.

[0042] In this way, by controlling the third switch to be in the on state, single-wire bus communication can be achieved between the control unit and the connecting cable. By controlling the third switch to be in the off state, the probability of the control unit communicating with other modules on the electronic device and affecting the performance of the connecting cable can be reduced. The control end of the third switch can be connected to the control unit to enable the control unit to control the switching of the third switch. The third switch can be the same as the first switch. The second single-wire bus pin can be a single-wire bus pin of the Type-C interface of the electronic device. Optionally, the electronic device also includes a fourth resistor. One end of the fourth resistor is connected between the second single-wire bus pin and the control unit, and the other end of the fourth resistor is connected to the power supply of the control unit. The fourth resistor can be used to maintain the stability of the single-wire bus voltage level and block interference signals, thereby improving the quality of single-wire bus communication between the control unit and the connecting cable. The fourth resistor can also provide protection for devices or modules that communicate with the control unit through the single-wire bus. The fourth resistor can be the same as the second resistor.

[0043] In one possible implementation, the device further includes: at least one first circuit. The third interface further includes an eleventh pin. The first circuit is connected between the eleventh pin and the battery cell, and the first circuit is connected to a control unit. The control unit can also control the use of some or all of the at least one first circuit to charge the battery cell. The first circuit obtains electrical energy via the eleventh pin and is used for power conversion.

[0044] In this way, when the electronic device includes multiple first circuits, using all the first circuits of the electronic device to charge the battery cell can distribute the heat generated by the power conversion of the first circuit to each first circuit, thereby achieving heat dispersion and facilitating heat dissipation, thereby reducing the temperature rise of the entire housing, thereby reducing the limitation of the temperature rise of the entire housing on the charging power, and reducing the probability of power failure of the electronic device. Using part or all of the first circuits in at least one first circuit to charge the battery cell can also increase the charging power of the electronic device, thereby reducing the probability of power failure of the electronic device. Among them, the eleventh pin can be Figure 4 The first circuit can be the Vbus pin of the external interface 301. Figure 4 The fast charging circuit a 406 or the fast charging circuit b 411 in the circuit. It should be understood that the fast charging circuit a 406 and the fast charging circuit b 411 can be the same. The fast charging circuit a 406 and the fast charging circuit c 501 in the circuit external cable 306 can also be the same. When the electronic device includes multiple first circuits, the multiple first circuits can be connected in parallel. For example, multiple first circuits are connected in parallel: the fast charging circuit a 406 is connected in parallel with the fast charging circuit b411. Taking the first circuit as the fast charging circuit a 406 as an example, the first circuit is connected to the control unit, for example: the fast charging circuit a406 is connected to the SoC 400 through the fast charging chip a311. The specific implementation principle of the first circuit obtaining electrical energy and performing power conversion to charge the battery unit can be found in Figure 4 In the embodiment, the fast charging circuit a 406 converts the voltage and current obtained from the charger 307 into a fast charging voltage and a fast charging current to fast charge the battery cell 404. The specific implementation principle of the control unit controlling the use of part or all of the first circuits in at least one first circuit to charge the battery cell can be found in Figure 7 The specific implementation principles of S710 and S711 in the embodiment.

[0045] In one possible implementation, the third interface further includes a twelfth pin. When the third interface is connected to a connection cable, and the connection cable is connected to a charger, the twelfth pin can enable communication between the electronic device and the charger.

[0046] In this way, the electronic device communicating with the charger through the twelfth pin may include: the electronic device performing a fast charging protocol handshake with the charger through the twelfth pin, and the electronic device transmitting charging requirement information to the charger through the twelfth pin. The electronic device transmits the charging requirement information to the charger so that the charger outputs the voltage and current corresponding to the charging requirement information transmitted by the electronic device, thereby charging the battery unit. The charger may be the charger shown in the first aspect. The charger may be Figure 3 or Figure 5 The charger 307 in the 12th pin can be Figure 4 The D+ pin and D- pin of the external interface 301. The twelfth pin can also be Figure 4 The CC1 pin and CC2 pin of the external interface 301. The charging demand information can be Figure 4 Example Figure 5 Example or Figure 7 The specific implementation principle of the communication between the electronic device and the charger can be found in the charging demand information shown in the embodiment. Figure 4 Example Figure 5 Example or Figure 6 The specific implementation principle of the fast charging protocol interaction between the electronic device and the charger in the embodiment.

[0047] In a possible implementation, the twelfth pin includes a third data transmission pin and / or a third external device detection pin.

[0048] In this way, in the scenario where both the electronic device and the charger support the SCP protocol, the third data transmission pin can enable the electronic device and the charger to interact with each other in accordance with the SCP protocol. In the scenario where both the electronic device and the charger support the PD protocol, the third external device detection pin can enable the electronic device and the charger to interact with each other in accordance with the PD protocol. Among them, the third data transmission pin can be Figure 4 The D+ pin and D- pin of the external interface 301. The implementation principle of the electronic device and the charger to perform fast charging protocol interaction according to the SCP protocol can be found in Figure 4 In the embodiment, the fast charging chip a 311 and the charger 307 perform fast charging protocol interaction according to the SCP protocol. The third external device detection pin can be Figure 4 The CC1 pin and CC2 pin of the external interface 301. The implementation principle of the fast charging protocol interaction between the electronic device and the charger according to the PD protocol can be found in Figure 4 In the embodiment, the PMU 414 and the charger 307 implement the fast charging protocol interaction according to the PD protocol.

[0049] In a third aspect, an embodiment of the present application provides a charging system, comprising: an electronic device, a connecting cable, and a charger. The electronic device comprises: a third interface and a battery cell. The third interface comprises an eighth pin. The eighth pin is connected to the battery cell. The connecting cable comprises: a first interface, at least one DC-DC converter, and a second interface. The DC-DC converter is arranged between the first interface and the second interface. When the third interface is connected to the first interface and the second interface is connected to the charger, some or all of the DC-DC converters in at least one DC-DC converter charge the battery cell through the eighth pin. The charger is used to power the DC-DC converter through the second interface. The connecting cable is independent of the electronic device and the charger.

[0050] In this way, when the third interface is connected to the first interface and the second interface is connected to the charger, the eighth pin is connected to the first pin, and the DC-DC converter obtains direct current from the charger through the second interface. The DC-DC converter can perform power conversion on the direct current obtained from the charger to obtain the voltage and current for charging the battery cell. It should be understood that the voltage and current for charging the battery cell are direct current. The DC-DC converter transmits the voltage and current for charging the battery cell to the battery cell through the eighth pin to charge the battery cell. The connecting cable is independent of the electronic device and the charger. The heat generated by the power conversion of the DC-DC converter will not affect the temperature of the entire housing of the electronic device, which can reduce the temperature rise of the entire housing of the electronic device, and thus reduce the limitation of the charging power of the battery cell by the entire housing of the electronic device, so that the charging speed of the battery cell is high. In addition, the probability of the electronic device losing power due to the charging speed being lower than the power consumption rate of the electronic device can be reduced. In addition, when the connecting cable includes multiple DC-DC converters, the charging power of the battery cell can be controlled by controlling the number of DC-DC converters charging the battery cell, so as to meet the different charging power requirements of the battery cell. Among them, the charging system can be Figure 3 The charging system shown. The electronic device may be the electronic device of the second aspect. The connecting cable may be the connecting cable of the first aspect. The charger may be the charger shown in the second aspect and / or the first aspect. The third interface is connected to the first interface, and the second interface is connected to the charger, for example: the external interface 301 is connected to the interface a 302, and the interface b 305 is connected to the charger interface 308. The specific implementation principle of the DC-DC converter charging the battery cell can be referred to Figure 3 Example or Figure 4 The specific implementation principle of the external charging unit for fast charging the battery unit in the embodiment can be referred to Figure 5The specific implementation principle of the fast charging circuit c 501 in the embodiment for fast charging the battery cell will not be repeated here. In one embodiment of the present application, the DC-DC converter can be the same as the buck circuit. The DC-DC converter for charging the battery cell can also be the DC-DC converter for slow charging the battery cell. The specific implementation principle of the DC-DC converter for slow charging the battery cell is the same as the buck circuit. Figure 3 Example or Figure 4 The specific implementation principle of the fast charging circuit c 501 in the embodiment for fast charging the battery unit is similar.

[0051] In one possible implementation, the first interface includes a first pin. The second interface includes a second pin. A DC-DC converter is connected between the second pin and the first pin. When the third interface is connected to the first interface and the second interface is connected to a charger, some or all of the at least one DC-DC converters charge the battery cell via the first and eighth pins. The charger is configured to power the DC-DC converter via the second pin. The connection cable is independent of the electronic device and the charger.

[0052] In this way, a DC-DC converter is used to charge the battery cell in the charging scenario of the electronic device. The connecting cable is independent of the electronic device and the charger. The heat generated by the power conversion performed by the DC-DC converter on the connecting cable to charge the battery cell will not affect the temperature of the entire housing of the electronic device, which can reduce the temperature rise of the entire housing of the electronic device, and further reduce the limitation of the temperature rise of the entire housing of the electronic device on the charging power of the battery cell. In addition, the probability of the electronic device losing power due to the charging speed being lower than the power consumption rate of the electronic device can be reduced. Among them, the first pin can be Figure 5 The second pin can be the Vbat pin of the middle interface a 302. Figure 5 The Vbus pin of the middle interface b 305. It should be understood that when the third interface is connected to the first interface, the eighth pin is connected to the first pin.

[0053] In one possible implementation, the electronic device further includes: a control unit and a first switch unit. The control unit is connected to the first switch unit. The first switch unit is connected between the eighth pin and the battery unit. The control unit can control the first switch unit to be in an on state or an off state. For example, the third interface further includes a ninth pin, and the first interface further includes a third pin. The ninth pin is connected to the control unit. In the event of overvoltage and / or overcurrent in the connecting cable, the connecting cable transmits a first signal to the control unit via the third pin and the ninth pin, and the control unit controls the first switch unit to be in an off state.

[0054] In this way, by controlling the first switch unit to be in the on state, the connection cable can be used to charge the battery cell. By controlling the first switch unit to be in the off state, the connection cable can be stopped from charging the battery cell. Among them, the control unit and the first switch unit can refer to the control unit and the first switch unit shown in the second aspect. When the third interface is connected to the first interface, the ninth pin is connected to the third pin, and the electronic device can obtain the first signal transmitted by the connection cable through the third pin and the ninth pin, so as to stop the connection cable from charging the battery cell when the connection cable is overvoltage and / or overcurrent, and reduce the probability of damage to the electronic device caused by the connection cable charging the battery cell due to overvoltage and / or overcurrent. Among them, the third pin can refer to the third pin shown in the first aspect. The ninth pin can refer to the ninth pin shown in the second aspect. The specific implementation principle of the electronic device obtaining the first signal transmitted by the connection cable through the third pin can be referred to. Figure 4 The specific implementation principle of the connection cable transmitting interruption to the SoC 400 in the embodiment.

[0055] In one possible implementation, the electronic device further includes a second switch unit, and the third interface further includes a tenth pin. The second switch unit is connected between the control unit and the tenth pin. The first interface further includes a fourth pin. The control unit can also control the second switch unit to be in an on state or an off state. When the second switch unit is in the on state, the tenth pin and the fourth pin can enable communication between the control unit and the connection cable.

[0056] In this way, when the third interface is connected to the first interface, the tenth pin is connected to the fourth pin. By controlling the second switch unit to be in the on state, communication between the control unit and the connection cable can be achieved through the tenth pin and the fourth pin to determine whether the electronic device supports the connection cable to charge the battery unit. By controlling the second switch unit to be in the off state, the communication between the control unit and other modules on the electronic device (such as Figure 4The probability of affecting the performance of the connection cable by communicating with the fast charging chip on the electronic device. For example, when the electronic device identifies that the charger is a fast charging charger, the control unit can control the second switch unit to be in the on state. When the electronic device identifies that the charger is a non-fast charging charger, the control unit can control the second switch unit to be in the off state, so that the control unit does not communicate with the connection cable, and thus does not use the connection cable to charge the battery cell. It can also reduce the impact on the performance of the electronic device when the charger is a non-fast charging charger and the connection cable is used to charge the battery cell. Among them, the tenth pin can refer to the tenth pin shown in the second aspect. The second switch unit can refer to the second switch unit shown in the second aspect. The fourth pin can refer to the fourth pin shown in the first aspect. Exemplarily, the tenth pin includes: a second serial data channel data line SDA pin and a second serial data channel clock line SCL pin, and the second switch unit includes a first switch and a second switch. The first switch is connected between the control unit and the second SDA pin, and the second switch is connected between the control unit and the second SCL pin. The fourth pin includes: a first SDA pin and a first SCL pin. The control unit is also used to control the first switch and the second switch to be both in the on state or both in the off state. The IIC serial data channel data line formed by the second SDA pin, the first switch in the on state, and the first SDA pin, and the IIC serial data channel clock line formed by the second SCL pin, the second switch in the on state, and the first SCL pin can be used to implement integrated circuit bus IIC communication between the control unit and the connecting cable. Exemplarily, the tenth pin includes a second single bus pin. The fourth pin includes a first single bus pin. The single bus transmission channel formed by the second single bus pin, the second switch unit in the on state, and the first single bus pin can be used to implement single bus communication between the control unit and the connecting cable.

[0057] In one possible implementation, the electronic device further includes: at least one first circuit. The third interface further includes an eleventh pin. The first interface further includes a fifth pin. The first circuit is connected between the eleventh pin and the battery cell. The fifth pin is connected to the second pin. When the third interface is connected to the first interface and the second interface is connected to a charger, the control unit may further control the use of some or all of the at least one first circuit to charge the battery cell. The first circuit obtains electrical energy from the charger via the eleventh pin, the fifth pin, and the second pin, and the first circuit is configured for power conversion.

[0058] In this way, when the third interface is connected to the first interface, the eleventh pin is connected to the fifth pin. By using part or all of the first circuits in at least one first circuit to charge the battery cell, the charging power of the battery cell can be increased, thereby increasing the charging speed of the battery cell and reducing the probability of power failure of the electronic device. Among them, the eleventh pin can be the eleventh pin shown in the second aspect. The first circuit can be the first circuit shown in the second aspect. When the electronic device includes two or more first circuits, each of the two or more first circuits can be connected in parallel. The implementation principle of the first circuit for power conversion can be found in Figure 4 In the embodiment, the fast charging circuit a 406 converts the voltage and current output by the charger 307 into a fast charging voltage and a fast charging current.

[0059] In one possible implementation, the third interface further includes a twelfth pin. The first interface further includes a sixth pin, and the second interface further includes a seventh pin. The sixth pin is connected to the seventh pin. When the third interface is connected to the first interface and the second interface is connected to a charger, the twelfth pin, the sixth pin, and the seventh pin can enable communication between the electronic device and the charger.

[0060] In this way, when the third interface is connected to the first interface, the twelfth pin is connected to the sixth pin. When the third interface is connected to the first interface and the second interface is connected to the charger, the electronic device can communicate with the charger through the twelfth pin, the sixth pin, and the seventh pin. The electronic device can transmit charging requirement information to the charger, and the charger can output the voltage and current corresponding to the charging requirement information, thereby charging the battery cell. Exemplarily, the twelfth pin includes a third data transmission pin, the sixth pin includes a first data transmission pin, and the seventh pin includes a second data transmission pin. In this way, when both the electronic device and the charger support the SCP protocol, the third data transmission pin, the first data transmission pin, and the second data transmission pin can enable the electronic device and the charger to interact with each other in accordance with the SCP protocol. Exemplarily, the twelfth pin includes a third external device detection pin, the sixth pin includes a first external device detection pin, and the seventh pin includes a second external device detection pin. In this way, when both the electronic device and the charger support the PD protocol, the third external device detection pin, the first external device detection pin, and the second external device detection pin can enable the electronic device and the charger to interact with each other in accordance with the PD protocol. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] Figure 1 A schematic diagram of the structure of a Type-C interface provided in an embodiment of the present application;

[0062] Figure 2A schematic diagram of a scenario provided in an embodiment of the present application;

[0063] Figure 3 A schematic diagram of a charging system provided in an embodiment of the present application;

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

[0065] Figure 5 A schematic diagram of a circuit for an external cable according to an embodiment of the present application;

[0066] Figure 6 A schematic diagram of a charging method flow chart provided in an embodiment of the present application;

[0067] Figure 7 A schematic diagram of a flow chart for determining the charging current Ib and the charging strategy provided in an embodiment of the present application;

[0068] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0069] Figure 9 Another structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0070] To facilitate a clear description of the technical solutions of the embodiments of the present application, some of the terms and technologies involved in the embodiments of the present application are briefly introduced below:

[0071] 1. Universal serial bus (USB) interface.

[0072] The USB interface may include a universal serial bus Type-A (USB Type-A) interface, a universal serial bus Type-B (USB Type-B) interface, or a universal serial bus Type-C (USB Type-C) interface.

[0073] Among them, the USB Type-C interface can be referred to as the Type-C interface.

[0074] For example, taking the Type-C interface as an example, Figure 1 A structural diagram of a Type-C interface provided in an embodiment of the present application is shown.

[0075] like Figure 1As shown in Figure 1, the Type-C interface consists of 24 pins, namely A1-A12 and B1-B12. Because the functions of A1-A12 and B1-B12 are similar, the following uses pins A1-A12 as an example to explain the function of each pin.

[0076] Pins A1 and A12: Ground pins, also known as GND pins.

[0077] Pins A2 and A3: data transmission pins, also known as TX1+ and TX1- pins, can be used for compatibility with USB3.0 and USB3.1.

[0078] Pins A4 and A9: Connected to the power supply module in the terminal device so that the terminal device can power the Type-C interface. That is, the terminal device provides Vbus for the Type-C interface. Also called Vbus pins.

[0079] Pin A5: External device detection pin, also known as CC1 pin, is used to detect the type of external device. The external device type can include: downstream facing port (DFP) device or upstream facing port (UFP) device.

[0080] Pins A6 and A7: Data transmission pins, also known as the D+ and D- pins, are used to transmit audio and video streams or files. Electronic devices can also output voltage signals to the charger through the D+ and D- pins based on the fast charging protocol. The charger's built-in protocol decoding chip (integrated circuit, IC) can determine the required charger output voltage based on the voltage regulation instructions, quickly charging the electronic device. In normal charging mode (not using fast charging), the VBUS pin generally transmits a charger output voltage of no more than 5V. In fast charging mode, the transmitted charger output voltage can be as high as 20V or higher.

[0081] Pins A6 and A7 can be used for compatibility with USB2.0.

[0082] Pin A8: Function expansion pin, also known as SBU1 pin.

[0083] Pins A10 and A11: data receiving pins, also known as RX2+ and RX2- pins, can be used for compatibility with USB3.0 and USB3.1.

[0084] The functions of B1-B12 correspond to A1-A12 and are not repeated here. B1-B12 can be called: GND, TX2+, TX2-, Vbus, CC2, D+, D-, SBU2, Vbus, RX1+, RX1-, GND respectively.

[0085] Pins A1-A12 correspond to the A-layer gold fingers, and pins B1-B12 correspond to the B-layer gold fingers. Figure 1 It can be seen that the A-layer gold finger and the B-layer gold finger are asymmetric at CC1, SBU2, CC2 and SBU1, and the signals are symmetric elsewhere.

[0086] The CC pin in the embodiment of the present application may include a CC1 pin and / or a CC2 pin.

[0087] 2. Serial data line (SDA) and serial clock line (SCL)

[0088] Both SCL and SDA are signal lines in the inter-integrated circuit (IIC) bus. SDA is used for serial data transmission. SCL is used to generate synchronous clock pulses to control the timing of data transmission. The serial data line is also called the IIC serial data channel data line. The serial clock line is also called the IIC serial data channel clock line. IIC is also known as I2C.

[0089] 3. Temperature of the entire housing of the electronic equipment

[0090] The whole casing temperature of the electronic device may be a temperature obtained by fitting the respective temperatures of multiple measurement points on the electronic device according to a preset fitting method. For example, the whole casing temperature of the electronic device may be the average temperature of multiple measurement points on the electronic device. The multiple measurement points on the electronic device may include at least one measurement point located around a heat source on the electronic device and at least one measurement point away from the heat source. The charging circuit, charging chip, and system-on-chip (SoC) on the electronic device are all heat sources. The temperature of the measurement point may be determined based on the resistance value of a thermistor deployed at the measurement point. The thermistor may be a negative temperature coefficient (NTC) thermistor.

[0091] For example, the temperature of the measuring point can be obtained by calculating the resistance value of the thermistor at the measuring point. The temperature T of the measuring point satisfies the formula: T = 1 / [ln(R T / R0) / B+1 / T0]. Wherein, R T is the resistance of the thermistor at the measurement point. R0 is the resistance of the thermistor at the measurement point when the temperature at the measurement point is T0. B is a constant that is positively correlated with the temperature coefficient of the thermistor. T0 = 273.15 + 25.

[0092] Optionally, the temperature at the measurement point may also be determined based on a correspondence between resistance and temperature pre-stored in the electronic device, and the temperature corresponding to the resistance value of the thermistor at the temperature measurement point may be determined as the temperature at the measurement point.

[0093] In the embodiment of the present application, the entire casing temperature of the electronic device may be referred to as the entire casing temperature.

[0094] 4. Other terms

[0095] In the embodiments of this application, terms such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. For example, the terms "first chip" and "second chip" are used solely to distinguish between different chips and do not define their order. Those skilled in the art will understand that terms such as "first" and "second" do not define the quantity or execution order, and do not necessarily define differences.

[0096] It should be noted that in the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0097] In the embodiments of the present application, "at least one" refers to one or more, and "more" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, a--c, bc, or abc, where a, b, c can be single or multiple.

[0098] 5. Electronic devices

[0099] The electronic devices of the embodiments of the present application may include handheld devices, vehicle-mounted devices, etc. with a charging function. For example, some electronic devices include: mobile phones, tablet computers, PDAs, laptop computers, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to wireless modems, vehicle-mounted devices, wearable devices, terminal devices in 5G networks or future evolved public land mobile communication networks (PLMNs), and so on. The terminal equipment in the network (PLMN), etc., is not limited to this in the embodiments of the present application.

[0100] As an example and not a limitation, in the embodiments of the present application, the electronic device may also be a wearable device. Wearable devices may also be referred to as wearable smart devices, which are a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are fully functional, large in size, and can achieve complete or partial functions without relying on smartphones, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.

[0101] In addition, in the embodiments of the present application, the electronic device can also be a terminal device in the Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network of human-machine interconnection and object-to-object interconnection.

[0102] The electronic devices in the embodiments of the present application may also be referred to as: terminal equipment, user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent or user device, etc.

[0103] In the embodiments of the present application, the electronic device or each network device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and memory (also known as main memory). The operating system can be any one or more computer operating systems that implement business processing through processes, such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a Windows operating system. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.

[0104] Figure 2 A schematic diagram of a scenario provided by an embodiment of the present application is shown.

[0105] like Figure 2 As shown, the electronic device 200 may include an external interface 201. The external interface 201 may enable the electronic device 200 to connect to an external device. The external device may include Figure 2 The charger 202 shown in FIG. The charger 202 may include a charging line 203 and a charging line interface 204.

[0106] The external interface 201 can be connected to the charging line interface 204 to achieve the connection between the electronic device 200 and the charger 202, and further enable the charger 202 to charge the electronic device 200.

[0107] The external interface 201 and the charging line interface 204 can both be USB interfaces, and the interface type of the external interface 201 is the same as the interface type of the charging line interface 204. For example, the external interface 201 and the charging line interface 204 are both Universal Serial Bus Type-A interfaces. Alternatively, the external interface 201 and the charging line interface 204 are both Universal Serial Bus Type-B interfaces. Alternatively, the external interface 201 and the charging line interface 204 are both Type-C interfaces.

[0108] Taking the example that both the external interface 201 and the charging line interface 204 are Type-C interfaces, the charging line interface 204 on the charging cable 203 can be called a Type-C female connector, and the external interface 201 on the electronic device 200 can be called a Type-C male connector.

[0109] There are two possible charging scenarios for electronic devices. One scenario involves charging an electronic device while a heavy-duty application is running. Heavy-duty applications can be understood as power-intensive applications. These applications can include gaming or video applications. Another scenario involves charging an electronic device while a heavy-duty application is not running.

[0110] The scenario where the electronic device is charging and a heavy-loaded application on the electronic device is running can be called a play-while-charging scenario. For example, the play-while-charging scenario is a scenario where a user plays a game on the electronic device 200 that is being charged.

[0111] A scenario in which the electronic device is being charged and the heavy-load application on the electronic device is not running may be referred to as a standby charging scenario.

[0112] It can be understood that the heat is proportional to the square of the current I. The greater the current in the circuit, the more heat is generated in the circuit. The smaller the current in the circuit, the less heat is generated in the circuit. When the hardware of the electronic device is fixed, the heat dissipation performance of the whole device is fixed. When the hardware of the electronic device is fixed, considering the user's thermal experience and the safety of the whole device, in order to control the temperature rise of the whole casing within a preset temperature range, the electronic device can control a lower charging power, thereby making the charging speed of the electronic device lower. Therefore, the charging power of the electronic device will be limited by the temperature rise of the whole casing.

[0113] The temperature rise of the entire housing limits the charging power of the electronic device. For example, as the temperature rise of the entire housing increases, the electronic device can control the charging power of the electronic device to reduce in order to control the temperature rise of the entire housing within a preset temperature range. It can be understood that controlling the temperature rise of the entire housing within the preset temperature range can achieve a better user thermal experience.

[0114] When an electronic device is charging, the charging chip on the device performs power conversion. This power conversion and the resistance in the charging path of the electronic device generate heat, which in turn increases the temperature of the entire housing. The heat generated by the charging chip on an electronic device is positively correlated with the charging power of the electronic device. The lower the charging power of the charging chip, the smaller the charging current of the charging chip and the less heat the charging chip generates. The higher the charging power of the charging chip, the greater the charging current of the charging chip and the more heat the charging chip generates. The temperature rise of the entire housing can be understood as the temperature of the entire housing exceeding the ambient temperature. The ambient temperature can be 25°C.

[0115] In the scenario of charging while playing, the SoC of the electronic device will also generate heat. The heat generated by the SoC will also increase the temperature rise of the entire casing of the electronic device. Therefore, in the scenario of charging while playing, the charging of the electronic device and the operation of heavy-load applications will increase the temperature rise of the entire casing of the electronic device, and the increase in the temperature rise of the entire casing will limit the charging power of the electronic device. The smaller the charging power of the electronic device, the lower the charging speed of the electronic device. Therefore, when the temperature rise of the entire casing limits the charging power of the electronic device, the user may perceive that the electronic device is charging slowly. When the charging speed is less than the power consumption rate, the electronic device may lose power.

[0116] In the standby charging scenario, the heat generated by the SoC is small or negligible, but the heat generated by the charging chip and charging path on the electronic device will increase the temperature rise of the entire casing, thereby limiting the charging power of the electronic device. In the case of high-power (such as high current) charging, the heat of the entire device will also limit the duration of high-current charging. For example: After an electronic device is charged with a high current in a short period of time, due to the limitation of the temperature rise of the entire casing, the electronic device will switch from high current to low current for long-term charging, so as to control the temperature rise of the entire casing within a preset range.

[0117] The greater the charging power of an electronic device, the faster it charges. Therefore, reducing the heat generated (heat dissipation) by the electronic device during charging can reduce the temperature rise of the entire electronic device housing, thereby reducing the limitation of the entire housing temperature rise on the charging power, thereby increasing the charging power. Therefore, reducing the heat generated (heat dissipation) by the electronic device during charging is an effective way to increase the charging speed.

[0118] In view of this, an embodiment of the present application provides a charging system comprising an electronic device, a connecting cable, and a charger. The electronic device includes an external interface and a battery cell. The external interface includes a Vbat pin connected to the battery cell. The connecting cable includes an interface a, at least one DC-DC converter, and an interface b. The DC-DC converter is disposed between interface a and interface b. When the external interface is connected to interface a and interface b is connected to a charger, the DC-DC converter receives direct current (DC) from the charger via interface b, performs power conversion on the DC power received from the charger, and transmits the converted voltage and current to the battery cell via the Vbat pin to charge the battery cell. The voltage and current before and after the power conversion are both DC. Because the connecting cable is independent of the electronic device, the heat generated by the power conversion in the connecting cable does not affect the overall housing temperature of the electronic device, thereby reducing the limitation of the overall housing temperature rise on the charging power of the electronic device. Reducing the limitation of the overall housing temperature rise on the charging power of the electronic device can reduce the probability of the electronic device's charging speed being reduced due to the overall housing temperature rise, thereby reducing the probability of the electronic device's power failure due to the charging speed being lower than the electronic device's power consumption rate. It can also reduce the time it takes for a battery cell to be fully charged.

[0119] It should be understood that direct current can be simply referred to as direct current. In the embodiment of the present application, power conversion can be understood as direct current-to-direct current (DC-DC) conversion. Exemplarily, power conversion can be achieved by converting a first direct current into a second direct current. The voltage of the first direct current is different from the voltage of the second direct current, and the current of the first direct current is different from the current of the second direct current. The current of the second direct current may be greater than the current of the first direct current. For example, a 10V voltage and a 2A current are subjected to power conversion to obtain a 5V voltage and a 4A current. A 10V voltage and a 2A current belong to direct current. A 5V voltage and a 4A current also belong to direct current.

[0120] Figure 3 A schematic diagram of a charging system provided in an embodiment of the present application is shown.

[0121] like Figure 3 As shown, the charging system includes an electronic device 300 , an external circuit cable 306 , and a charger 307 .

[0122] The circuit external cable 306 may include an interface a 302, an external charging unit 303, a charging cable 304, and an interface b 305. The charging cable 304 is connected to the interface a 302, the external charging unit 303, and the interface b 305, respectively. Optionally, the charging cable 304 may be connected to the external charging unit 303 via a connector. The connector may facilitate the removal or connection between the external charging unit 303 and the charging cable 304. The connector is not provided. Figure 3The charging cable 304 does not have a power conversion function. The charging cable 304 can be used to transmit voltage and current, and can also be used to transmit information of interaction between the charger 307 and the electronic device 300.

[0123] The charger 307 may include a charger interface 308. The charger 307 is used to convert mains electricity (e.g., 220V AC) into DC power and output the DC power. It should be understood that a charging chip or an external circuit cable 306 on the electronic device can perform power conversion on the DC power output by the charger 307 to obtain a voltage and current for charging the battery cells, thereby charging the battery cells.

[0124] The electronic device 300 may include an external connection interface 301 .

[0125] The external interface 301, interface a 302, interface b 305, and charger interface 308 can all be USB interfaces. The interface type of the external interface 301 is the same as that of the interface a 302. The interface type of the interface b 305 is the same as that of the charger interface 308.

[0126] When the external interface 301 is connected to the interface a 302 and the interface b 305 is connected to the charger interface 308, the charger 307 can supply power to the external charging unit 303. The external charging unit 303 can convert the voltage and current obtained from the charger 307 into power and transmit the converted voltage and current to the battery cell of the electronic device 300 to fast charge the battery cell of the electronic device 300. Figure 3 Shown in.

[0127] Because the external charging unit 303 is located outside the electronic device 300, the heat generated by the power conversion performed by the external charging unit 303 does not affect the overall housing temperature of the electronic device 300. Therefore, in the charging scenario of the electronic device 300, using the external charging unit 303 to fast charge the battery cells of the electronic device 300 can reduce the temperature rise of the overall housing temperature of the electronic device 300, thereby reducing the limitation of the overall housing temperature rise on the charging power of the electronic device 300.

[0128] Alternatively, as Figure 3 As shown, the electronic device 300 may further include a fast charging chip (integrated circuit, IC) a 311.

[0129] When the external interface 301 is connected to the interface a 302 and the interface b 305 is connected to the charger interface 308, the charger 307 can supply power to the fast charging chip a 311. The fast charging chip a 311 can also convert the voltage and current obtained from the charger 307 into power and transmit the converted voltage and current to the battery cell of the electronic device 300 to fast charge the battery cell of the electronic device 300.

[0130] In this way, by using a fast charging chip (such as fast charging chip a 302) and an external charging unit on an electronic device to fast charge the battery cell of the electronic device, the charging power of the electronic device can be increased, and thus the charging speed of the electronic device can be increased. For example, the maximum charging power supported by the external charging unit and the fast charging chip a is 50 (watt) W. In the case where the charger can support a power output of up to 150W, the external charging unit is used to fast charge the battery cell of the electronic device, and the maximum charging power of the battery cell does not exceed 50W. By using the fast charging chip a and the external charging unit to fast charge the battery cell of the electronic device, the maximum charging power of the battery cell can be greater than 50W and not more than 100W.

[0131] In addition, since the heat generated by the external charging unit will not affect the temperature of the entire casing of the electronic device, when the charging power of the electronic device is the same, the temperature of the entire casing of the electronic device using the fast charging chip a and the external charging unit to fast charge the battery unit of the electronic device is lower than that of the entire casing of the electronic device when the fast charging chip a is used to fast charge the battery unit. For example, if the charging power of the battery unit is 50W, when the fast charging chip a is used to fast charge the battery unit, the heat corresponding to the 50W charging power will affect the temperature of the entire casing. If the charging power of the fast charging chip a and the external charging unit for fast charging the battery unit is 25W respectively, when the fast charging chip a and the external charging unit are used to fast charge the battery unit, the heat generated by the fast charging chip a (equivalent to the heat generated by the 25W charging power) will affect the temperature of the entire casing, while the heat generated by the external charging unit (equivalent to the heat generated by the 25W charging power) will not affect the temperature of the entire casing. Therefore, using a fast charging chip a and an external charging unit to fast charge the battery unit of an electronic device can also reduce the temperature rise of the entire casing of the electronic device, thereby reducing the limitation of the temperature rise of the entire casing on the charging power of the electronic device.

[0132] Alternatively, as Figure 3 As shown, in order to further improve the charging power of the electronic device 300 and thus improve the charging speed, the electronic device 300 may further include a fast charging chip b 312. It should be understood that the fast charging chip a 311 and the fast charging chip b 312 are both charging chips of the electronic device.

[0133] When the external interface 301 is connected to the interface a 302 and the interface b 305 is connected to the charger interface 308, the fast charging chip b 312 can also obtain the voltage and current output by the charger 307. The fast charging chip b 312 can also perform power conversion on the voltage and current obtained from the charger 307 to fast charge the battery cells of the electronic device 300. The specific implementation principle is similar to the specific implementation principle of the fast charging chip a 311 for fast charging the battery cells of the electronic device 300, and will not be repeated here.

[0134] In this way, using two fast charging chips (such as fast charging chip a 302 and fast charging chip b 312) on an electronic device and an external charging unit to charge the battery cell of the electronic device can further improve the charging power of the electronic device, thereby increasing the charging speed of the electronic device. Since the heat generated by the external charging unit will not affect the temperature of the entire casing of the electronic device, under the same charging power, compared with the temperature of the entire casing when the fast charging chip a and the fast charging chip b are used to charge the battery cell of the electronic device, the temperature of the entire casing when the external charging unit, the fast charging chip a and the fast charging chip b are used to charge the battery of the electronic device is lower, and the restriction on the charging power is smaller. Therefore, using two fast charging chips and an external charging unit on an electronic device to charge the battery cell of the electronic device can also reduce the temperature rise of the entire casing of the electronic device, thereby reducing the restriction of the temperature rise of the entire casing on the charging power of the electronic device.

[0135] Therefore, in the scenario of playing and charging at the same time, using an external charging unit to fast charge the battery unit of the electronic device can reduce the probability of power failure of the electronic device.

[0136] The following combination Figure 4 and Figure 5 ,right Figure 3 The external cables for electronic devices and circuits are described in this document.

[0137] Electronic equipment including Figure 3 Take the fast charging chip a 311 and the fast charging chip b 312 as an example, Figure 3 On the basis of Figure 4 A circuit diagram of an electronic device provided in an embodiment of the present application is shown.

[0138] like Figure 4 As shown, the electronic device may include: an external interface 301, a switch unit a 401, a switch unit b 402, a switch unit c 403, an SoC 400, a battery unit 404, a fast charging chip a 311 and a fast charging chip b 312.

[0139] Among them, the fast charging chip a 311 may include a fast charging circuit a 406. The fast charging chip b 312 may include a fast charging circuit b 411. The battery unit 404 may include a positive electrode and a negative electrode. In some embodiments of the present application, the battery unit 404 may further include a groove (or battery slot) for loading a removable battery. It will be understood that when the removable battery is loaded in the groove of the battery unit 404, the removable battery can power the electronic device through the positive and negative electrodes of the battery unit 404. When the electronic device is connected to a charger, the positive and negative electrodes of the battery unit 404 can be used to charge the removable battery.

[0140] For example, the external interface 301 is a Type-C interface, and the TX1+ pin, TX1- pin, RX1+ pin, RX1- pin, TX2+ pin, TX2- pin, RX2+ pin, RX2- pin, SBU1 pin, and SBU2 pin in the external interface 301 can all be redefined.

[0141] For example, in the external interface 301, the RX2+ pin, TX2+ pin, TX1+ pin and RX1+ pin can be redefined as external charging pins. The external charging pin can be called the BAT pin or the Vbat pin. The external charging pin can be used to transmit fast charging voltage and fast charging current. The RX2- pin and the RX1- pin can be redefined as the IIC serial data channel clock line (SCL) pin. The TX2- pin and the TX1- pin can be redefined as the IIC serial data channel data line (SDA) pin. The SCL pin and the SDA pin can be used to transmit IIC communication signals. The SBU1 pin and the SBU2 pin can be used to transmit interrupts (INT).

[0142] It should be understood that the pin redefinition shown in the embodiments of this application is an example and does not limit the pin redefinition. In one implementation of the embodiments of this application, the data channel shown as the IIC bus can also be other low-speed data channels. Other low-speed data channels can include single bus transmission channels.

[0143] like Figure 4 As shown, the switch unit a 401 can be connected between the battery unit 404 and the Vbat pin of the external interface 301. For example, the four Vbat pins of the external interface 301 can be connected to one end of the switch unit a 401 respectively, and the other end of the switch unit a 401 can be connected to the positive electrode of the battery unit 404. The negative electrode of the battery unit 404 is grounded.

[0144] The switch unit b 402 may be connected between the SoC 400 and the SCL pin of the external interface 301. For example, the two SCL pins of the external interface 301 may be connected to one end of the switch unit b 402 respectively, and the other end of the switch unit b 402 may be connected to the SCL pin of the SoC 400.

[0145] The switch unit c 403 may be connected between the SoC 400 and the SDA pin of the external interface 301. For example, the two SDA pins of the external interface 301 may be connected to one end of the switch unit c 403 respectively, and the other end of the switch unit c 403 may be connected to the SDA pin of the SoC 400.

[0146] In this way, an IIC communication channel is established between the external interface 301 and the SoC 400. The control end of the switch unit a 401, the control end of the switch unit b 402 and the control end of the switch unit c 403 can be connected to the SoC 400 respectively. Figure 4 The control end of the switch unit a 401, the control end of the switch unit b 402 and the switch unit c 403 can each be a metal oxide semiconductor field effect transistor (MOSFET), or can each be composed of a plurality of MOSFETs.

[0147] Some or all of the four Vbus pins of the external interface 301 may also be connected to one end of the fast charging circuit a 406 , and the other end of the fast charging circuit a 406 may be connected to the positive electrode of the battery unit 404 .

[0148] Some or all of the four Vbus pins of the external interface 301 may also be connected to one end of the fast charging circuit b 411 , and the other end of the fast charging circuit b 411 may be connected to the positive electrode of the battery unit 404 .

[0149] The two D+ pins and two D- pins of the external interface 301 can also be connected to the fast charging chip a 311 respectively to establish a USB communication channel between the fast charging chip a 311 and the external interface 301. The two D+ pins and two D- pins of the external interface 301 can also be connected to the fast charging chip b 312 respectively to establish a USB communication channel between the fast charging chip b 312 and the external interface 301. The USB communication channel can be used for fast charging protocol interaction such as the super charge protocol (SCP).

[0150] SoC 400 can be connected to fast charging chip a 311 via an IIC bus. SoC 400 can be connected to fast charging chip b 312 via an IIC bus. It should be understood that the IIC bus can be used to implement IIC communication. In an embodiment of the present application, the communication between SoC 400 and fast charging chip a 311 can be implemented through the IIC bus between SoC 400 and fast charging chip a 311. The communication between SoC 400 and fast charging chip b 312 can be implemented through the IIC bus between SoC 400 and fast charging chip b 312.

[0151] Taking the SCP protocol as an example, when the external interface 301 of the electronic device is connected to the interface a 302 of the circuit external cable 306, and the interface b 305 of the circuit external cable 306 is connected to the charger interface 308 of the charger 307, the fast charging chip a 311 can perform fast charging protocol interaction with the charger 307 according to the SCP protocol through the USB communication channel between the fast charging chip a 311 and the charger 307; alternatively, the fast charging chip b 312 can perform fast charging protocol interaction with the charger 307 according to the SCP protocol through the USB communication channel between the fast charging chip b 312 and the charger 307. Fast charging protocol interaction can be understood as handshaking according to the fast charging protocol or transmitting data according to the fast charging protocol. Handshaking according to the fast charging protocol can be called a fast charging protocol handshake.

[0152] Among them, data transmission, for example, transmission of charging parameters. Charging parameters may include the output voltage value and output current value of the charger. The USB communication channel between the fast charging chip a 311 and the charger 307 may include: a USB communication channel between the fast charging chip a 311 and the external interface 301, and a USB communication channel between the external interface 301 and the charger 307. The USB communication channel between the fast charging chip b 312 and the charger 307 may include: a USB communication channel between the fast charging chip b 312 and the external interface 301, and a USB communication channel between the external interface 301 and the charger 307. The USB communication channel between the external interface 301 and the charger 307 will be described later. Figure 5 Described in the examples.

[0153] Exemplarily, the priority of the fast charging chip a 311 can be higher than the priority of the fast charging chip b 312. When the external interface 301 is connected to the interface a 302, and the interface b 305 is connected to the charger interface 308, the electronic device can use the fast charging chip a 311 to interact with the charger 307 for fast charging protocol. When the fast charging chip a 311 cannot communicate with the charger 307 due to a fault, the electronic device can use the fast charging chip b 312 to interact with the charger 307 for fast charging protocol. It should be understood that the implementation principle of the fast charging protocol interaction between the fast charging chip a 311 and the charger 307 is similar to the implementation principle of the fast charging protocol interaction between the fast charging chip a 311 and the charger 307. The following description will be made by taking the fast charging protocol interaction between the fast charging chip a 311 and the charger 307 as an example.

[0154] Alternatively, as Figure 4 As shown, the electronic device may further include a power management unit (PMU) 414. When an external device is connected to the external interface 301, the PMU 414 can identify the device type of the external device. The device type may include a charger type and a non-charger type. A charger type external device has a charging function. A non-charger type external device does not have a charging function.

[0155] For example, taking the charger 307 as a fast charger and the electronic device and the charger 307 both supporting the SCP protocol, when the external interface 301 is connected to the interface a 302 and the interface b 305 is connected to the charger interface 308, the PMU 414 can interact with the charger 307 via the communication channel between the PMU 414 and the charger 307 using the battery charging protocol version 1.2 (BC1.2) to identify the device type of the charger 307.

[0156] The communication channel between the PMU 414 and the charger 307 may include: a CC channel between the PMU 414 and the external interface 301, and a CC channel between the interface a 302 and the charger 307. The CC channel between the PMU 414 and the external interface 301 is, for example, a channel formed by connecting the CC1 pin and CC2 pin of the external interface 301 to the PMU 414. This channel is not in the Figure 4The CC channel between interface a 302 and charger 307 may include: a channel formed by connecting the CC1 pin of interface a 302 to the CC1 pin of interface b 305 and the CC1 pin of interface b 305 to the CC1 pin of charger interface 308; and a channel formed by connecting the CC2 pin of interface a 302 to the CC2 pin of interface b 305 and the CC2 pin of interface b 305 to the CC2 pin of charger interface 308. The CC pins of interface a 302, interface b 305 and charger interface 308 are described in detail below. Figure 5 Described in the examples.

[0157] When the PMU 414 identifies that the device type of the charger 307 is a charger type, the PMU 414 can transmit information indicating that the device type of the external device is a charger type to the SoC 400 via the IIC bus between the PMU 414 and the SoC 400. The SoC 400 can transmit a handshake instruction to the fast charging chip a 311 via the IIC bus between the SoC 400 and the fast charging chip a 311. The IIC bus used to connect the PMU 414 and the SoC 400 is not connected. Figure 4 In the embodiment of the present application, the communication between the PMU 414 and the SoC 400 may be implemented through an IIC bus between the PMU 414 and the SoC 400 .

[0158] Upon receiving the handshake instruction, the fast charging chip a 311 may perform a fast charging protocol handshake with the charger 307 according to the SCP protocol through the USB communication channel between the fast charging chip a 311 and the charger 307 .

[0159] When the fast charging chip a 311 and the charger 307 successfully complete the fast charging protocol handshake, the fast charging chip a 311 can transmit information indicating the successful handshake to the SoC 400 via the IIC bus between the SoC 400 and the fast charging chip a 311. The SoC 400 can control the switch unit b 402 and the switch unit c 403 to be in the on state.

[0160] The SoC 400 can read the anti-counterfeiting information and charging performance parameters of the external circuit cable 306 from the external charging unit 303 through the IIC communication channel between the SoC 400 and the external charging unit 303. The charging performance parameters may include the maximum supported charging current and the maximum supported charging voltage. For example, the IIC communication channel between the SoC 400 and the external charging unit 303 may include the IIC communication channel between the external interface 301 and the SoC 400, and the IIC communication channel between the interface a 302 and the external charging unit 303.

[0161] For ease of understanding, the IIC communication channel between the interface a 302 and the external charging unit 303 is described later. Figure 5 Described in the examples.

[0162] In the embodiment of the present application, the anti-counterfeiting information of the external circuit cable 306 may be referred to as the anti-counterfeiting information. The charging performance parameters of the external circuit cable 306 may be referred to as the external charging performance parameters.

[0163] When the anti-counterfeiting information is obtained, the SoC 400 may parse the anti-counterfeiting information using a preset parsing rule to obtain the parsed anti-counterfeiting information, and may determine whether the parsed anti-counterfeiting information is consistent with the pre-stored anti-counterfeiting information.

[0164] If the parsed anti-counterfeiting information is determined to be consistent with the pre-stored anti-counterfeiting information, it can indicate that the electronic device supports external charging of the external circuit cable 306, or that the authentication is successful. External charging of the external circuit cable can be understood as charging the battery unit by the external charging unit on the external circuit cable or the fast charging circuit on the external circuit cable. The fast charging circuit on the external circuit cable is a circuit used for power conversion.

[0165] If it is determined that the parsed anti-counterfeiting information is inconsistent with the pre-stored anti-counterfeiting information, it may indicate that the electronic device does not support external charging of the circuit external cable 306, or that the authentication is unsuccessful.

[0166] Taking the scenario where authentication is successful as scenario one and the scenario where authentication is unsuccessful as scenario two as examples, the following describes the charging method of the electronic device in scenario one and the charging method of the electronic device in scenario two respectively.

[0167] Scenario 1:

[0168] If the authentication is successful, SoC 400 can determine the charging current Ib of the battery cell, and then determine the charging strategy corresponding to the charging current Ib. The specific implementation principle of determining the charging current Ib of the battery cell and then determining the charging strategy corresponding to the charging current Ib will be described in detail later. Figure 7 Described in the examples.

[0169] Taking the charging strategy corresponding to charging current Ib as an example, in which the fast-charging chip a 311, the fast-charging chip b 312, and the external charging unit 303 on the electronic device are used to charge the battery cell 404, the SoC 400 can calculate the external charging performance parameters, the charging performance parameters of the fast-charging chip a 311, the charging performance parameters of the fast-charging chip b 312, the first temperature, and the capacity of the battery cell 404 according to a preset calculation method to obtain a first charging parameter. The SoC 400 can transmit the first charging parameter to the fast-charging chip a 311 via the IIC bus.

[0170] Among them, the first temperature may include the entire casing temperature of the electronic device or the ambient temperature measured by the electronic device, etc. The embodiment of the present application is described by taking the first temperature as the entire casing temperature of the electronic device as an example. The capacity of the battery cell 404 may include the voltage of the battery cell 404. It should be understood that the charging performance parameters of the fast charging chip a 311 and the charging performance parameters of the fast charging chip b 312 may be pre-stored in the electronic device. The first charging parameter can be understood as the charging parameter when the battery cell 404 is charged using the external charging unit 303 and the fast charging circuit on the electronic device. The fast charging circuit on the electronic device is, for example: fast charging circuit a 406 and fast charging circuit b 411.

[0171] When the first charging parameter is obtained, the SoC 400 may control the switch unit a 401 to be in the on state. Alternatively, the SoC 400 may also control the switch unit a 401 to be in the on state before the authentication is successful and the first charging parameter is obtained.

[0172] Upon receiving the first charging parameter transmitted by SoC 400, fast charging chip a 311 may transmit first charging requirement information to charger 307 via the USB communication channel between fast charging chip a 311 and charger 307. The first charging requirement information may include the first charging parameter. It should be understood that the transmission of the charging requirement information by fast charging chip a 311 to charger 307 constitutes data transmission between the fast charging chip a 311 and charger 307 in accordance with the fast charging protocol.

[0173] Upon receiving the first charging requirement information, charger 307 may output a first voltage and a first current corresponding to the first charging requirement information. It should be understood that upon receiving the charging requirement information, charger 307 outputs a voltage and a current corresponding to the charging parameters in the charging requirement information. For example, the first voltage may be consistent with the output voltage value in the first charging parameter. The first current may be consistent with the output current value in the first charging parameter.

[0174] When the charger 307 outputs the first voltage and the first current, the external charging unit 303 can obtain the voltage and current from the charger 307 through the charger interface 308 and the interface b 305. The external charging unit 303 can convert the obtained voltage and current into a fast charge voltage 1 and a fast charge current 1, and transmit the fast charge voltage 1 and the fast charge current 1 to the battery unit 404 through the Vbat pin of the external interface 301 to fast charge the battery unit 404.

[0175] When the charger 307 outputs the first voltage and the first current, the fast charging circuit a 406 can obtain the voltage and current from the charger 307 via the charger interface 308, the interface b 305, the interface a 303, and the Vbus pin of the external interface 301. The fast charging circuit a 406 can convert the obtained voltage and current into a fast charging voltage 2 and a fast charging current 2, and transmit the fast charging voltage 2 and the fast charging current 2 to the battery cell 404 to fast charge the battery cell 404.

[0176] When the charger 307 outputs the first voltage and the first current, the fast charging circuit b 411 may also obtain the voltage and current from the charger 307 via the charger interface 308, the interface b 305, the interface a 303, and the Vbus pin of the external interface 301. The fast charging circuit b 411 may convert the obtained voltage and current into a fast charging voltage 3 and a fast charging current 3, and transmit the fast charging voltage 3 and the fast charging current 3 to the battery cell 404 to fast charge the battery cell 404.

[0177] In this way, when the charger outputs the first voltage and the first current, the battery unit can be fast-charged using the external charging unit, the fast-charging circuit a, and the fast-charging circuit b. When the charging power is increased, the heat generated by the fast-charging circuit on the electronic device can be distributed to the fast-charging circuit a and the fast-charging circuit b, thereby dispersing the heat and facilitating heat dissipation. This can reduce the temperature rise of the entire housing. The heat generated by the external charging unit (such as the heat generated by power conversion) will not affect the temperature of the entire housing, further reducing the temperature rise of the entire housing, thereby reducing the limitation of the temperature rise of the entire housing on the charging power of the electronic device.

[0178] It is understood that the product of the first voltage and the first current can be referred to as output power 1 of the charger 307. The product of the fast charge voltage 1 and the fast charge current 1 can be referred to as output power 2 of the external charging unit 303. The product of the fast charge voltage 2 and the fast charge current 2 can be referred to as output power 3 of the fast charge circuit a 406. The product of the fast charge voltage 3 and the fast charge current 3 can be referred to as output power 4 of the fast charge circuit b 411.

[0179] Without considering the heat loss caused by current and voltage transmission, the sum of output power 2, output power 3, and output power 4 can be equal to output power 1. The charging power of the battery unit can be equal to the sum of output power 2, output power 3, and output power 4.

[0180] Taking into account the heat loss caused by current and voltage transmission, the sum of output power 2, output power 3, and output power 4 can be less than output power 1. The charging power of the battery unit can be less than the sum of output power 2, output power 3, and output power 4.

[0181] Optionally, the SBU1 pin and the SBU2 pin of the external interface 301 can be connected to the SoC 400 respectively. In the event of overvoltage and / or overcurrent of the external charging unit 303, the external charging unit 303 can transmit an interrupt (INT) to the SoC 400 via the SBU1 pin and / or the SBU2 pin of the external interface 301. The SoC 400 can control the switch unit a 401 to be in an off state to stop the external charging unit 303 from charging the battery unit 404, thereby reducing damage to the battery unit 404 or the electronic device caused by the external charging unit 303 charging the battery unit 404 due to overvoltage and / or overcurrent.

[0182] Optionally, upon receiving an interruption transmitted by the external charging unit 303, the SoC 400 may transmit information indicating the stop of external charging to the external charging unit 303 via the IIC communication channel between the SoC 400 and the external charging unit 303. The external charging unit 303 may control the fast charging circuit on the external charging unit 303 to be disabled, so that the external charging unit 303 stops charging the battery unit 404.

[0183] In this way, when the electronic device supports the external charging unit 303 to charge the battery cell, the external charging unit 303, fast charging circuit a 406, and fast charging circuit b 411 can be used to charge the battery cell 404, so that the battery charging power is high. In addition, the heat generated by the external charging unit 303 will not affect the entire housing temperature of the electronic device 300, and can reduce the temperature rise of the entire housing temperature of the electronic device 300, thereby reducing the limitation of the temperature rise of the entire housing temperature on the charging power of the battery cell 404. In the event of overvoltage and / or overcurrent in the external charging unit 303, the external charging unit 303 can be stopped from charging the battery cell 404 to reduce the probability of the external charging unit 303 damaging the battery cell 404 or the electronic device due to overvoltage and / or overcurrent.

[0184] Scenario 2:

[0185] If the authentication fails, the SoC 400 can control the switch unit a 401 to be in the off state. In this way, the probability of damage to the battery unit or the electronic device caused by external charging of the circuit external cable can be reduced when the electronic device does not support external charging of the circuit external cable.

[0186] If authentication fails or the control switch unit a 401 is in the off state, the SoC 400 can calculate the charging performance parameters of the fast charging chip a 311, the charging performance parameters of the fast charging chip b 312, the first temperature, and the capacity of the battery unit 404 according to a preset calculation method to obtain a second charging parameter. The SoC 400 can transmit the second charging parameter to the fast charging chip a 311 via the IIC bus. The fast charging chip a 311 can transmit the second charging requirement information to the charger 307 via the USB communication channel between the fast charging chip a 311 and the charger 307. The second charging requirement information may include the second charging parameter.

[0187] Upon receiving the second charging requirement information, the charger 307 may output a second voltage and a second current corresponding to the second charging requirement information. Fast charging circuit a 406 may obtain voltage and current from the charger 307 via the charger interface 308, interface b 305, interface a 303, and the Vbus pin of the external interface 301. Fast charging circuit a 406 may convert the obtained voltage and current into a fast charging voltage 4 and a fast charging current 4 to fast charge the battery cell 404. Fast charging circuit b 411 may obtain voltage and current from the charger 307 via the charger interface 308, interface b 305, interface a 303, and the Vbus pin of the external interface 301. Fast charging circuit b 411 may convert the obtained voltage and current into a fast charging voltage 5 and a fast charging current 5 to fast charge the battery cell 404. Since the switch unit a 401 is in the off state, the external charging unit 303 cannot charge the battery cell 404. In this way, when the electronic device does not support external charging with an external circuit cable, the fast charging circuit on the electronic device can be used to quickly charge the battery unit. This can also reduce the probability of battery unit damage caused by charging with an unsupported external charging unit.

[0188] Alternatively, as Figure 4 As shown, the PMU 414 may include a main charging unit (main charger) 405, a capacitor C1, a capacitor C2, a capacitor C3, and an inductor L1. The main charging unit 405 may include a switch M1, a switch M2, a switch M3, and a switch Q4.

[0189] The four Vbus pins of external interface 301 can also be connected to one end of switch M1, respectively. The other end of switch M1 is connected to one end of switch M2. The other end of switch M2 is connected to one end of inductor L1. The other end of inductor L1 is connected to a load. Switch Q4 is connected between the other end of inductor L1 and the positive terminal of battery cell 404. Switch M3 is connected between the other end of switch M2 and one end of capacitor C3. The other end of capacitor C3 is connected to the other end of inductor L1. The load may include SoC 400.

[0190] Switch M2, inductor L1, capacitor C3 and switch M3 can form a buck circuit. When the electronic device is connected to a charger 307 via an external circuit cable 306, and the charger 307 is a non-fast charging charger, or in the trickle charging stage of the electronic device, the PMU 414 can control the switch M1, the switch M2 and the switch Q4 to be in the on state. Charging of the battery cell 404 is achieved through the buck circuit. It is also possible to output the system voltage (Vsys) at the other end of the inductor L1 to power the load. When the battery cell 404 is fully charged, the electronic device can control the switch Q4 to be in the off state to stop charging the battery cell 404, and the other end of the inductor L1 can continue to output the system voltage (Vsys) to power the load.

[0191] For example, taking the charger 307 as a non-fast charging charger, when the external interface 301 is connected to the interface a 302 and the interface b 305 is connected to the charger interface 308, the fast charging chip a 311 can perform a fast charging protocol handshake with the charger 307.

[0192] If the fast charging protocol handshake between the fast charging chip a 311 and the charger 307 fails, the fast charging chip a 311 can transmit information indicating the handshake failure to the SoC 400 via the IIC bus. The SoC 400 can control both the switch unit b 402 and the switch unit c 403 to be in the off state. In this way, the impact of the IIC communication between the SoC 400 and other modules on the external charging unit 303 can be reduced. Other modules can be modules on the electronic device that can communicate with the SoC 400 through IIC.

[0193] If the SoC 400 receives information indicating a handshake failure, it can transmit information indicating slow charging to the PMU 414 via the IIC bus. The PMU 414 can transmit third charging requirement information to the charger 307 via the communication channel between the PMU 414 and the charger 307, causing the charger 307 to output a third voltage and third current corresponding to the third charging requirement information. The third charging requirement information may include third charging parameters. The third charging parameters may be pre-stored on the electronic device. It should be understood that the charging power of slow charging is lower than that of fast charging.

[0194] Upon receiving information indicating slow charging, PMU 414 can control switches M1, M2, and Q4 to be in an on state. Thus, when charger 307 outputs a third voltage and a third current, PMU 414 can obtain the third voltage and current via charger interface 308, interface b 305, interface a 303, and the Vbus pin of external interface 301. The step-down circuit can convert the third voltage and current into a slow charging voltage and current, and transmit the slow charging voltage and current to battery cell 404 via the other end of inductor L1, thereby implementing slow charging for battery cell 404.

[0195] Switch M1 can be used to protect the main charging unit 405 from overvoltage. One end of switch M1 can also be connected to one end of capacitor C1, the other end of which is grounded. The other end of switch M1 can also be connected to one end of capacitor C2, the other end of which is grounded. Both capacitors C1 and C2 can function as voltage stabilizers.

[0196] For example, the main charging unit 405 may be a closed-loop control buck type or a three-level charger type. The type of the main charging unit 405 is not specifically limited in the embodiment of the present application.

[0197] In one embodiment of the present application, the main charging unit 405 may be a device independent of the PMU 414, and the main charging unit 405 is connected to the PMU 414. For example, the main charging unit 405 is an independent chip.

[0198] Optionally, the battery unit 404 may include a single battery. The battery unit 404 may also include multiple batteries connected in series and / or multiple batteries connected in parallel. For example, Figure 4 As shown, battery cell 404 may include battery a 412 and battery b 413 connected in parallel. The positive electrode of battery cell 404 may include the positive electrode of battery a 412 and the positive electrode of battery b 413. The negative electrode of battery cell 404 may include the negative electrode of battery a 412 and the negative electrode of battery b 413.

[0199] It should be understood that in the embodiment of the present application, charging the battery unit 404 can be understood as charging the battery in the battery unit 404.

[0200] Alternatively, as Figure 4 As shown, the electronic device may further include: a voltage clamping module 408 , a voltage clamping module 409 , an overvoltage protection unit 407 and an overvoltage protection unit 410 .

[0201] The four Vbus pins of the external interface 301 can be connected to one end of the voltage clamping module 408 respectively, and the other end of the voltage clamping module 408 is grounded to achieve electrostatic protection for the fast charging circuit a 406.

[0202] The four Vbus pins of the external interface 301 may be connected to one end of the voltage clamping module 409 respectively, and the other end of the voltage clamping module 409 is grounded to achieve electrostatic protection for the fast charging circuit b 411.

[0203] The four Vbus pins of the external interface 301 can be connected to one end of the overvoltage protection unit 407 respectively, and the other end of the overvoltage protection unit 407 is connected to the fast charging circuit a 406 to achieve overvoltage protection for the fast charging circuit a 406.

[0204] The four Vbus pins of the external interface 301 can be connected to one end of the overvoltage protection unit 410 respectively, and the other end of the overvoltage protection unit 410 is connected to the fast charging circuit b 411 to achieve overvoltage protection for the fast charging circuit b 411.

[0205] For example, the voltage clamping module 408 and the voltage clamping module 409 may each be composed of one or more transient voltage suppression diodes (TVS). The overvoltage protection unit 407 and the overvoltage protection unit 410 may each be composed of one or more MOSFETs.

[0206] Alternatively, as Figure 4 As shown, the electronic device may further include: a resistor R2, a resistor R3, a resistor R6, a resistor R7 and a resistor R1.

[0207] Among them, one end of resistor R6 can be connected between switch unit c 403 and the SDA pin of SoC 400, and the other end of resistor R6 is connected to the power supply of SoC 400. The power supply of SoC 400 can provide a power supply voltage (voltage supply, VDD). One end of resistor R7 can be connected between switch unit b 402 and the SCL pin of SoC 400, and the other end of resistor R7 is connected to the power supply of SoC 400. Resistor R6 and resistor R7 are both pull-up resistors of the IIC bus, which can be used to maintain the high level of the IIC bus, so that the IIC communication has the ability to output a high level. Resistor R6 and resistor R7 can also protect the device or module that performs IIC communication with SoC 400. The device that performs IIC communication with SoC 400, for example, the circuit external cable 306.

[0208] One end of the resistor R1 can be connected between the SBU pin of the external interface 301 and the INT pin of the SoC 400, and the other end of the resistor R1 is connected to the power supply of the SoC 400. The resistor R1 can be used to maintain the stability of the level of interrupt transmission and can also achieve accurate transmission of interrupts. It should be understood that the SBU pins can include the SBU1 pin and the SBU2 pin. The INT pin is Figure 4 and Figure 5 It can be expressed as "INT / ".

[0209] Pin CC1 of external interface 301 is connected to one end of resistor R2, the other end of which is grounded. Pin CC2 of external interface 301 is connected to one end of resistor R3, the other end of which is grounded. Resistors R2 and R3 can be used to identify whether external interface 301 is connected to an external device in a forward or reverse direction. For example, resistors R2 and R3 can both have a resistance of 5.1 kilo-ohms (KΩ).

[0210] Optionally, the PMU 414 can support the USB power delivery (PD) protocol, and the charger interface 308 on the charger 307 and the interface b 305 of the circuit external cable 306 can both be Type-C interfaces. When the external interface 301 is connected to the interface a 302, and the interface b 305 is connected to the charger interface 308, and the fast charging protocol supported by the charger 307 is the PD protocol, the PMU 414 can perform a fast charging protocol handshake with the charger 307 according to the PD protocol. For example, the PMU 414 can perform a fast charging protocol handshake with the charger 307 according to the PD protocol through the communication channel between the PMU 414 and the charger 307. It should be understood that the PMU 414 can also perform data transmission with the charger 307 according to the PD protocol through the communication channel between the PMU 414 and the charger 307.

[0211] If the PMU 414 successfully completes the fast charging protocol handshake with the charger 307, the PMU 414 can transmit information indicating the successful handshake to the SoC 400 via the communication channel between the PMU 414 and the SoC 400. The SoC 400 can control both the switch unit b 402 and the switch unit c 403 to be in an on state to enable communication and authentication between the SoC 400 and the external charging unit 303. The specific implementation principles and technical effects of this embodiment are similar to those of the embodiment in which the charger 307 is a fast charging charger and supports the SCP protocol, and will not be repeated here.

[0212] In one embodiment of the present application, the fast charging protocol supported by the fast charging chip a 311, the fast charging chip b 312, and the charger 307 may be the PD protocol. The two CC pins of the external interface 301 may be connected to the fast charging chip a 311 respectively, so that the fast charging chip a 311 can interact with the charger 307 through the two CC pins of the external interface 301 in accordance with the PD protocol for fast charging protocol. The two CC pins of the external interface 301 may also be connected to the fast charging chip b 312 respectively, so that the fast charging chip b 312 can interact with the charger 307 through the two CC pins of the external interface 301 in accordance with the PD protocol for fast charging protocol.

[0213] When the fast charging chip a 311 or the fast charging chip b 312 successfully handshakes with the charger 307 through the two CC pins of the external interface 301, the SoC 400 can control the switch unit b 402 and the switch unit c 403 to be in the on state to achieve communication between the SoC 400 and the external charging unit 303 and perform authentication.

[0214] It should be understood that Figure 4 The electronic device shown includes two fast charging chips (such as fast charging chip a 311 and fast charging chip b 312) and two fast charging circuits (such as fast charging circuit a 406 and fast charging circuit b 411). In one embodiment of the present application, the electronic device may include a fast charging chip and two fast charging circuits, and the two fast charging circuits are respectively connected to the one fast charging chip. The one fast charging chip can interact with the charger for a fast charging protocol. The one fast charging chip can also control the two fast charging circuits separately, so that both fast charging circuits can be enabled, both fast charging circuits can be disabled, or one of the two fast charging circuits can be enabled and the other can be disabled.

[0215] In one embodiment of the present application, if an electronic device includes a fast-charging chip and two fast-charging circuits, one of the two fast-charging circuits can be deployed on the fast-charging chip, and the other of the two fast-charging circuits can be an independent device and connected to the fast-charging chip. Alternatively, both fast-charging circuits are deployed on the fast-charging chip. Alternatively, the two fast-charging circuits can be two independent devices.

[0216] Alternatively, as Figure 4 As shown, the two D+ pins and the two D- pins of the external interface 301 can be connected to the SoC 400 respectively. In this way, a USB communication channel is established between the external interface 301 and the SoC 400. In the case where the device type of the external device connected to the electronic device 300 is not a charger type, the SoC 400 can communicate with the external device through the USB communication channel between the external interface 301 and the SoC 400.

[0217] exist Figure 4 On the basis of Figure 5 A circuit diagram of an external circuit cable provided in an embodiment of the present application is shown.

[0218] like Figure 5 As shown, the external cable circuit may include interface a 302, an external charging unit 303, a charging cable 304, and interface b 305. Specifically, the external charging unit 303 may include an external charging IC 504. The external charging IC 504 may include a fast charging circuit c 501. Fast charging circuit c 501 is the charging circuit of the external charging unit 303.

[0219] Still taking interface a 302 as a Type-C interface as an example, the TX1+ pin, TX1- pin, RX1+ pin, RX1- pin, TX2+ pin, TX2- pin, RX2+ pin, RX2- pin, SBU1 pin, and SBU2 pin in interface a 302 can also be redefined. For the principle of redefining the pins in interface a 302, please refer to Figure 4 The principle of redefining the pins in the external interface 301 in the embodiment will not be described in detail here.

[0220] like Figure 5 As shown, in order to save manufacturing costs, the number of each of the SCL pin, SDA pin, D+ pin and D- pin in interface a 302 is 1. In one embodiment of the present application, the number of each of the SCL pin, SDA pin, D+ pin and D- pin in interface a 302 is 2.

[0221] For example, the number of each of the SCL pin, SDA pin, D+ pin and D- pin in the interface a 302 is 1. Figure 5 As shown, the SCL pin and SDA pin of interface a 302 are respectively connected to the external charging IC 504. In this way, an IIC communication channel is constructed between interface a 302 and the external charging IC 504. The IIC communication channel between interface a 302 and the external charging IC 504 belongs to the IIC communication channel between interface a 302 and the external charging unit 303. When the external interface 301 of the electronic device is connected to the interface a 302, the SoC 400 can read the anti-counterfeiting information and the external charging performance parameters from the external charging IC 504 through the IIC communication channel between the external interface 301 and the SoC 400, and the IIC communication channel between the interface a 302 and the external charging IC 504. It should be understood that when the external interface 301 is connected to the interface a 302 , the SCL pin of the external interface 301 is connected to the SCL pin of the interface a 302 , and the SDA pin of the external interface 301 is connected to the SDA pin of the interface a 302 .

[0222] The SBU1 pin and the SBU2 pin of the interface a 302 are respectively connected to the INT pin of the external charging IC 504, so that the external charging IC 504 transmits an interrupt to the electronic device through the SBU1 pin and the SBU2 pin of the interface a 302 and the SBU1 pin and the SBU2 pin of the external interface 301 in the event of overvoltage and / or overcurrent of the external charging unit 303.

[0223] The interface b 305 may include a Vbus pin, a D+ pin, a D- pin, and a GND pin.

[0224] The Vbus pin of the interface b 305 may be connected to the Vbus pin of the interface a 302. For example, the four Vbus pins of the interface a 302 may be connected to the Vbus pins of the interface b 305, respectively.

[0225] The Vbus pin of the interface b 305 may also be connected to the fast charging circuit c 501 to transmit the voltage and current output by the charger 307 to the fast charging circuit c 501 .

[0226] The four Vbat pins of the interface a 302 can be connected to the fast charging circuit c 501 respectively to transmit the fast charging voltage and fast charging current output by the fast charging circuit c 501 to the electronic device.

[0227] The D+ pin of interface b 305 may be connected to the D+ pin of interface a 302. The D- pin of interface b 305 may be connected to the D- pin of interface a 302. The GND pin of interface b 305 may be connected to the GND pin of interface a 302.

[0228] In one embodiment of the present application, interface a 302 may include two D+ pins and two D- pins. The two D+ pins of interface a 302 may be connected to the D+ pins of interface b 305, respectively. The two D- pins of interface a 302 may be connected to the D- pins of interface b 305, respectively.

[0229] In this way, a USB communication channel is established between interface a 302 and interface b 305. The USB communication channel can be used for fast charging protocol interaction.

[0230] It should be understood that the interface b 305 may be of the same interface type as the charger interface 308 of the charger 307. The charger interface 308 may also include a Vbus pin, a D+ pin, a D- pin, and a GND pin.

[0231] When the external interface 301 of the electronic device is connected to the interface a 302, and the interface b 305 is connected to the charger interface 308, the data transmission pin of the external interface 301 of the electronic device is connected to the data transmission pin of the interface a 302, and the data transmission pin of the interface b 305 is connected to the data transmission pin of the charger interface 308, thereby forming a USB communication channel between the external interface 301 and the charger 307. The USB communication channel between the external interface 301 and the charger 307 can be used for the electronic device and the charger 307 to perform fast charging protocol interaction according to the SCP protocol. The data transmission pins include the D+ pin and the D- pin.

[0232] It is understood that when external interface 301 is connected to interface a 302, the target pin of external interface 301 is connected to the target pin of interface a 302, and the pin type of the target pin of external interface 301 is the same as the pin type of the target pin of interface a 302. The pin type can be any of GDN, Vbat, Vbus, SCL, SDA, SBU, D-, D+, or CC. For example, if the target pin is the Vbus pin, when external interface 301 is connected to interface a 302, the Vbus pin of external interface 301 is connected to the Vbus pin of interface a 302. If the target pin is the CC1 pin, when external interface 301 is connected to interface a 302, the CC1 pin of external interface 301 can be connected to the CC1 pin of interface a 302.

[0233] Similarly, when the interface b 305 is connected to the charger interface 308 , the target pin of the interface b 305 is connected to the target pin of the charger interface 308 , and the pin type of the target pin of the interface b 305 is the same as the pin type of the target pin of the charger interface 308 .

[0234] For example, Figure 4As shown in the embodiment, the charger 307 can receive the first charging demand information transmitted by the electronic device. Upon receiving the first charging demand information, the charger 307 can output a first voltage and a first current through the Vbus pin of the charger interface 308. Both the fast charging circuit a 406 and the fast charging circuit b 411 can obtain the voltage and current through the Vbus pin of the interface b 305, the Vbus pin of the interface a 302, and the Vbus pin of the external interface 301, so as to realize fast charging of the battery cell 404 of the electronic device through the fast charging circuit a 406 and the fast charging circuit b 411. And the fast charging circuit c 501 can obtain the voltage and current through the Vbus pin of the interface b 305. The fast charging circuit c 501 can convert the voltage and current obtained from the charger 307 into a fast charging voltage 1 and a fast charging current 1, and transmit the fast charging voltage 1 and the fast charging current 1 to the battery cell 404 through the Vbat pin of the interface a 302 and the Vbat pin of the external interface 301, so as to realize fast charging of the battery cell 404.

[0235] In one embodiment of the present application, the interface b 305 may include a CC pin. The two CC pins of the interface a 302 may be connected to the CC pins of the interface b 305 respectively. The two CC pins of the interface a 302 may refer to Figure 5 The CC1 pin and CC2 pin shown. When interface b 305 is connected to the charger interface 308, the CC pin of interface a 302, the CC pin of interface b 305, and the CC pin of charger interface 308 constitute the CC channel between interface a 302 and charger 307. The CC channel between interface a 302 and charger 307 can be used for the electronic device and charger 307 to perform fast charging protocol interaction according to the PD protocol. Exemplarily, interface b 305 can be a Type-C interface.

[0236] Alternatively, as Figure 5 As shown, the external charging unit 303 may further include an anti-counterfeiting IC 503. The SCL pin and the SDA pin of the interface a 302 may further be connected to the anti-counterfeiting IC 503, respectively. An IIC communication channel between the interface a 302 and the anti-counterfeiting IC 503 is constructed. The IIC communication channel between the interface a 302 and the anti-counterfeiting IC 503 also belongs to the IIC communication channel between the interface a 302 and the external charging unit 303. Anti-counterfeiting information may be stored in the anti-counterfeiting IC 503. When the electronic device and the charger 307 successfully handshake the fast charging protocol, the electronic device may read the anti-counterfeiting information from the anti-counterfeiting IC 503 through the IIC communication channel between the interface a 302 and the anti-counterfeiting IC 503 for authentication.

[0237] If the authentication is successful, the electronic device can read the charging performance parameters stored in the external charging IC 504 through the IIC communication channel between the interface a 302 and the external charging IC 504 to complete the calculation of the charging parameters.

[0238] Alternatively, the anti-counterfeiting IC 503 may be a passive chip or an electrically erasable programmable read-only memory (EEPROM) device. For example, a passive chip may be an electronically marked (E-marker) cable chip. An E-marker chip may also be called an emark chip.

[0239] Alternatively, as Figure 5 As shown, the external charging IC 504 may include a linear power supply 502. The linear power supply 502 may be connected to the Vbus pin of the interface b 305. Thus, when the interface b 305 is connected to the charger interface 308, the linear power supply 502 may convert the power output by the charger 307 to power the external charging IC 504. The linear power supply 502 may also be connected to the anti-counterfeiting IC 503 to provide power to the anti-counterfeiting IC 503. For example, the voltage output terminal (REGN terminal) of the external charging IC 504 may be connected to the power input terminal (VCC terminal) of the anti-counterfeiting IC 503 to enable the external charging IC 504 to power the anti-counterfeiting IC 503.

[0240] For example, the linear power supply 502 may be a low dropout regulator (LDO).

[0241] In one embodiment of the present application, the external charging IC 504 may also be an emark chip.

[0242] In one embodiment of the present application, the fast charging circuit c 501 may be a device independent of the external charging IC 504 , and the fast charging circuit c 501 is connected to the external charging IC 504 .

[0243] Alternatively, as Figure 5As shown, the circuit external cable may further include a resistor R4 and / or a resistor R5. One end of the resistor R4 is connected to the Vbus pin on one side of the interface a 302, and the other end of the resistor R4 is connected to the CC1 pin of the interface a 302. One end of the resistor R5 is connected to the Vbus pin on the other side of the interface a 302, and the other end of the resistor R5 is connected to the CC2 pin of the interface a 302. Both the resistor R4 and the resistor R5 can be used to identify whether the circuit external cable is a fast charging cable, and can also be used to identify the insertion direction of the circuit external cable when it is inserted into an electronic device. One side of the interface a 302 is, for example: layer A or layer B of the interface a 302.

[0244] Exemplarily, taking the circuit external cable 306 including resistor R4 as an example, when the external interface 301 is connected to the interface a 302, and the interface b 305 is connected to the charger interface 308, if the electronic device detects the pull-up voltage corresponding to the resistor R4, it can be identified that the circuit external cable 306 connected to the electronic device is a fast charging cable. If the electronic device detects the voltage divided by the resistor R4 and the resistor R2, it can be identified that the insertion mode of the circuit external cable 306 is forward insertion. If the electronic device detects the voltage divided by the resistor R4 and the resistor R3, it can be identified that the insertion mode of the circuit external cable 306 is reverse insertion.

[0245] For example, the resistance value of the resistor R4 and the resistance value of the resistor R5 may be the same or different. For example, the resistance value of the resistor R4 and the resistance value of the resistor R5 may both be 56KΩ.

[0246] It will be understood that the fast charging circuit in the embodiment of the present application has a high-power charging function. For example, the fast charging circuit can perform power conversion so that the input voltage of the fast charging circuit is N times the output voltage. N can be an integer greater than 1. For example, N can be any value of 2, 3, 4, 5, 6, 7, 8, or a larger value. The circuit architecture of the fast charging circuit in the embodiment of the present application can be a charge pump architecture, an interleaved cascade architecture, or a series-parallel architecture. Optionally, the fast charging circuit in the circuit external cable can be the same as or different from the fast charging circuit of the electronic device.

[0247] Optionally, the external circuit cable may include multiple fast charging circuits. Each of the multiple fast charging circuits of the external circuit cable may be the same as the fast charging circuit c 501. The deployment method of each of the multiple fast charging circuits of the external circuit cable in the external circuit cable is the same as the deployment method of the fast charging circuit c 501 in the external circuit cable. Each of the multiple fast charging circuits of the external circuit cable may be connected to the external charging IC 504. The external charging IC 504 may control whether any of the multiple fast charging circuits of the external circuit cable is enabled or disabled. Some or all of the multiple fast charging circuits of the external circuit cable may fast charge the battery cells of the electronic device, so that the external circuit cable may provide faster charging than Figure 5 In the embodiment, the fast charging circuit c 501 has a higher charging power to charge the battery cell. This allows only the fast charging circuit on the external cable to charge the battery cell while meeting the higher charging power requirement of the battery cell, thereby reducing the temperature rise of the entire housing of the electronic device at higher charging power.

[0248] like Figure 4 and Figure 5As shown, when the external interface of the electronic device is connected to the interface a of the external circuit cable, and the interface b of the external circuit cable is connected to the charger interface of the charger, there is a channel for protocol interaction between the electronic device and the charger to realize fast charging protocol interaction between the electronic device and the charger, such as realizing that the electronic device transmits charging demand information to the charger, thereby enabling the charger to output the voltage and current corresponding to the charging demand information. An IIC communication channel is provided between the electronic device and the external charging unit of the external circuit cable to realize IIC communication between the electronic device and the external charging unit, so that the electronic device can obtain the anti-counterfeiting information and charging performance parameters of the external circuit cable to complete the calculation of authentication and charging parameters. There is also a voltage and current transmission channel between the electronic device and the charger to realize that the charger supplies power to the fast charging circuit on the electronic device, so that the fast charging circuit on the electronic device can charge the battery unit after power conversion from the voltage and current obtained from the charger. There is also a channel between the charger and the external charging unit for the charger to supply power to the external charging unit, and a transmission channel for fast charging voltage and fast charging current is provided between the external charging unit and the battery unit of the electronic device, so that the external charging unit can convert the voltage and current obtained from the charger into fast charging voltage and fast charging current to fast charge the battery unit. It is possible to fast charge the battery unit using the fast charging circuit and the external charging unit on the electronic device, and distribute part of the charging-related heat on the external charging unit, thereby reducing the temperature rise of the entire housing of the electronic device in the charging scenario, and further reducing the limitation of the temperature rise of the entire housing on the charging power of the electronic device, so that the charging speed of the battery unit is high. By using the fast charging circuit and the external charging unit on the electronic device to fast charge the battery unit, the charging power of the battery unit can also be high, thereby making the charging speed of the battery unit high. For example, if the charger supports an output power of 150 watts (W) and the heat loss caused by voltage and current transmission is not considered, when the entire housing temperature of the electronic device reaches the target temperature, the electronic device can bear the heat dissipation capacity of 100W charging power. If the fast charging circuit on the electronic device is used for charging, the maximum charging power of the electronic device is 100W. When the entire housing temperature of the electronic device reaches the target temperature, the electronic device can bear the heat dissipation capacity of 100W charging power. If the fast charging circuit on the electronic device and the fast charging circuit on the external charging unit are used to charge the battery unit, and the fast charging circuit on the external charging unit can provide an output power of 50W, the maximum charging power of the electronic device can reach 150W.

[0249] It is understandable that the fast charging protocol in the embodiment of the present application may include the super fast charging protocol (SCP), the universal fast charging specification (UFCS), the USB power transmission protocol (PD) or the Qualcomm quick charge protocol (QC), etc. The embodiment of the present application does not specifically limit the fast charging protocol. It should be understood that if the fast charging protocol interaction channel specified in the target fast charging protocol is a USB communication channel, then the specific implementation principle of the fast charging protocol interaction between the electronic device and the charger according to the target fast charging protocol is similar to the specific implementation principle of the fast charging protocol interaction between the electronic device and the charger according to the SCP protocol. If the fast charging protocol interaction channel specified in the target fast charging protocol is a CC channel, then the specific implementation principle of the fast charging protocol interaction between the electronic device and the charger according to the target fast charging protocol is similar to the specific implementation principle of the fast charging protocol interaction between the electronic device and the charger according to the PD protocol, which will not be repeated here.

[0250] Figure 6 A schematic flow chart of a charging method provided in an embodiment of the present application is shown.

[0251] like Figure 6 As shown, the charging method may include:

[0252] S601: When an electronic device is connected to an external device, the electronic device may identify the type of the external device.

[0253] If the device type of the external device is identified as a charger type, the electronic device may further identify the charging type of the external device.

[0254] For example, in combination Figure 4 and Figure 5 When the external interface 301 is connected to the interface a 302 and the interface b 305 is connected to the charger interface 308 , the PMU 414 of the electronic device can interact with the charger 307 via BC1.2 to identify whether the device type of the charger 307 is a charger type.

[0255] In a case where the PMU 414 recognizes that the device type of the charger 307 is a charger type, the electronic device may execute S602 .

[0256] Optionally, when the PMU 414 identifies that the device type of the charger 307 is a charger type, the electronic device may execute S603 without executing S602 .

[0257] Optionally, when the PMU 414 identifies that the device type of the charger 307 is a charger type, the electronic device may execute S603. After executing S603, the electronic device may execute S602.

[0258] S602: When it is identified that the device type of the external device connected to the electronic device is a charger type, the electronic device may determine whether the cable connected to the electronic device is a fast charging cable.

[0259] If it is determined that the cable connected to the electronic device is a fast charging cable, the electronic device may execute S603.

[0260] If it is determined that the cable connected to the electronic device is a non-fast charging cable, the electronic device may execute S611. In this way, the probability of damage to the electronic device caused by fast charging using a non-fast charging cable can be reduced.

[0261] For example, when the PMU 414 identifies that the device type of the charger 307 is a charger type, the PMU 414 may transmit information indicating that the device type of the external device is a charger type to the SoC 400 through the IIC bus.

[0262] When receiving information indicating that the device type of the external device is a charging type, the SoC 400 can detect the pull-up voltage corresponding to the pull-up resistor on the interface a 302 through the CC channel between the SoC 400 and the interface a 302 to determine whether the external cable of the circuit is a fast charging cable. The pull-up resistor on the interface a 302 is detected, for example: resistor R4 and / or resistor R5. The CC channel between the SoC 400 and the interface a 302 can be a channel formed by connecting the CC pin of the interface a 302 to the SoC 400.

[0263] If the pull-up voltage corresponding to the pull-up resistor is detected, the SoC 400 can determine that the external cable 306 is a fast charging cable, or can determine that the external cable 306 has the performance of a fast charging cable. The SoC 400 can transmit a handshake instruction to the fast charging chip a 311 via the IIC bus, so that the fast charging chip a 311 executes S603.

[0264] If the pull-up voltage corresponding to the pull-up resistor is not detected, SoC 400 can determine that the external circuit cable 306 is not a fast charging cable, or can determine that the external circuit cable 306 does not have the performance of a fast charging cable, and SoC 400 can execute S611.

[0265] Optionally, when the PMU 414 identifies that the device type of the charger 307 is a charger type, the PMU 414 may maintain the flag indicating the device type of the external device as an identifier indicating the charger type, and transmit an interrupt to the SoC 400 via the IIC bus.

[0266] Upon receiving an interrupt transmitted by PMU 414, SoC 400 of the electronic device can read the flag indicating the device type of the external device. If the flag indicating the charger type is read, SoC 400 can detect the pull-up voltage corresponding to the pull-up resistor on interface a 302 through the CC channel between SoC 400 and interface a 302 to determine whether the external cable is a fast charging cable.

[0267] If the pull-up voltage corresponding to the pull-up resistor is detected, it can be determined that the external circuit cable 306 is a fast charging cable, and SoC400 can transmit a handshake instruction to the fast charging chip a 311 so that the fast charging chip a 311 executes S603.

[0268] S603: The electronic device may interact with the charger via a fast charging protocol.

[0269] For example, taking the SCP protocol as an example, when the fast charging protocol supported by the electronic device and the charger 307 is received, the fast charging chip a 311 can perform a fast charging protocol handshake with the charger 307 according to the SCP protocol through the USB communication channel between the fast charging chip a 311 and the charger 307.

[0270] In the case where the fast charging protocol handshake between the fast charging chip a 311 and the charger 307 is successful, the fast charging chip a 311 can transmit information indicating a successful handshake to the SoC 400 through the IIC bus. SoC 400 can execute S604. Optionally, in the case where the fast charging protocol handshake between the fast charging chip a 311 and the charger 307 is successful, the fast charging chip a 311 can maintain the flag indicating the charging type as an identifier indicating fast charging, and transmit an interrupt to the SoC 400 through the IIC bus. Upon receiving the interrupt transmitted by the fast charging chip a 311, the SoC 400 can read the flag indicating the charging type. If the identifier indicating fast charging is read, the SoC 400 can execute S604.

[0271] In the case where the fast charging protocol handshake between the fast charging chip a 311 and the charger 307 is unsuccessful, the fast charging chip a 311 may transmit information indicating that the handshake was unsuccessful to the SoC 400 through the IIC bus. SoC 400 may execute S611. Optionally, in the case where the fast charging protocol handshake between the fast charging chip a 311 and the charger 307 is unsuccessful, the fast charging chip a 311 may maintain the flag indicating the charging type as an identifier indicating non-fast charging, and transmit an interrupt to the SoC 400. Upon receiving the interrupt transmitted by the fast charging chip a 311, the SoC 400 may read the flag indicating the charging type. If the identifier indicating non-fast charging is read, the SoC 400 may execute S611.

[0272] S604: When the electronic device successfully interacts with the charger via the fast charging protocol, the electronic device may switch the IIC channel so as to identify the external charging function of the external cable of the circuit through the IIC channel.

[0273] For example, when receiving information indicating a successful handshake or reading an identification indicating fast charging, SoC400 can control switch unit b 402 and switch unit c 403 to be in the on state to achieve switching of the IIC channel.

[0274] S605: The electronic device can read the external charging related information of the external cable of the circuit.

[0275] The external charging related information may include anti-counterfeiting information. The external charging related information may also include external charging performance parameters. When the anti-counterfeiting information and external charging performance parameters are read, the electronic device may execute S606.

[0276] Exemplarily, when SoC 400 controls switch unit b 402 and switch unit c 403 to be in the on state, SoC 400 can read anti-counterfeiting information and external charging performance parameters from the external charging unit 303 through the IIC communication channel between the external interface 301 and SoC 400, and the IIC communication channel between interface a 302 and the external charging unit 303.

[0277] S606: When the information related to external charging of the external circuit cable is obtained, the electronic device may determine whether external charging of the external circuit cable is supported.

[0278] For example, when the anti-counterfeiting information and the external charging performance parameters are read, the SoC 400 can use the anti-counterfeiting information for authentication. Figure 4The specific implementation principle of the SoC 400 using anti-counterfeiting information for authentication in the embodiment will not be repeated here.

[0279] If the authentication is successful, it indicates that the electronic device supports external charging via the external cable 306 , and the SoC 400 may execute S607 .

[0280] If the authentication is unsuccessful, it indicates that the electronic device does not support external charging via the external cable 306 , and the SoC 400 may execute S610 .

[0281] S607: When it is determined that the electronic device supports external charging using an external cable, the electronic device may configure charging parameters to support external charging.

[0282] For example, if the authentication is successful, SoC 400 can obtain the temperature of the entire housing from the temperature measurement module on the electronic device. Figure 4 Based on the correspondence between the entire housing temperature and the current pre-stored on the electronic device, the SoC 400 can determine the current It corresponding to the entire housing temperature.

[0283] The SoC 400 may also obtain the voltage of the battery cell 404 from the fuel gauge. The SoC 400 may determine the current Ic corresponding to the voltage of the battery cell 404 based on a battery charging curve pre-stored in the electronic device.

[0284] SoC 400 can select the minimum value from It and Ic as the charging current Ib of battery cell 404. Charging current Ib can also be understood as the charging current required to charge the battery. SoC 400 can determine the charging strategy corresponding to charging current Ib based on the correspondence between charging current Ib and charging strategy pre-stored on the electronic device. The process of SoC 400 determining charging current Ib and determining charging strategy can be found in the subsequent Figure 7 The embodiment shown.

[0285] When the charging strategy corresponding to the charging current Ib is obtained, the SoC 400 may calculate the charging parameters under the charging strategy.

[0286] For example, taking the charging strategy corresponding to the charging current Ib as an example of using the fast charging chip a 311, the fast charging chip b 312 and the external charging unit 303 on the electronic device to charge the battery unit 404, the SoC 400 can calculate the external charging performance parameters, the charging performance parameters of the fast charging chip a 311, the charging performance parameters of the fast charging chip b 312, the temperature of the entire casing and the voltage of the battery unit 404 to obtain the first charging parameter.

[0287] When the first charging parameter is obtained, the SoC 400 can transmit the first charging parameter to the fast charging chip a 311 through the IIC communication channel between the SoC 400 and the fast charging chip a 311, thereby enabling the charger 307 to output the first voltage and the first current. For the specific implementation principle of the charger 307 outputting the first voltage and the first current, please refer to Figure 4 The specific implementation principle of the charger 307 outputting the first voltage and the first current in the embodiment will not be repeated here.

[0288] In one embodiment of the present application, the first charging parameter can be calculated by SoC 400 according to a preset calculation method based on the external charging performance parameters, the charging performance parameters of the fast charging chip a 311, the charging performance parameters of the fast charging chip b 312 and the charging current Ib.

[0289] S608: The electronic device may enable an external charging power channel.

[0290] For example, when the SoC 400 completes S607 or obtains the first charging parameter, the SoC 400 may control the switch unit a 401 to be in an on state.

[0291] Optionally, when the SoC 400 completes S607 or obtains the first charging parameter, the SoC 400 may further transmit information indicating that the fast charging circuit is enabled to the fast charging chip a 311, the fast charging chip b 312 and the external charging IC 504 respectively.

[0292] Upon receiving information indicating that the fast charge circuit is enabled, the external charging IC 504 can control the fast charge circuit c 501 to be enabled. The fast charge chip a 311 can control the fast charge circuit a 406 to be enabled. The fast charge chip b 312 can control the fast charge circuit b 411 to be enabled.

[0293] S609: The external circuit cable can perform power conversion on the voltage and current output by the charger to realize external charging of the battery unit of the electronic device.

[0294] The fast charging circuit on the electronic device can also perform power conversion on the voltage and current output by the charger to charge the battery unit of the electronic device.

[0295] For example, when the charger 307 outputs the first voltage and the first current, the fast charging circuit c 501 in the enabled state can fast charge the battery cell 404. The fast charging circuit a 406 in the enabled state can fast charge the battery cell 404. The fast charging circuit b 411 in the enabled state can fast charge the battery cell 404. The specific implementation principle can be found in Figure 5The specific implementation principle of fast charging the battery unit 404 using the fast charging circuit c 501, the fast charging circuit a 406 and the fast charging circuit b 411 in the embodiment will not be repeated here.

[0296] In this way, the fast charging circuit a 406, the fast charging circuit b 411 and the fast charging circuit c 501 are used to fast charge the battery unit 404, so that the heat generated by the power conversion of the fast charging circuit on the electronic device is distributed on the fast charging circuit a 406 and the fast charging circuit b 411, thereby dispersing the heat and reducing the temperature rise of the entire casing. The heat generated by the power conversion of the fast charging circuit c 501 is located outside the electronic device, which can further reduce the temperature rise of the entire casing, thereby reducing the limitation of the entire casing temperature on the charging power of the battery unit, so that the charging speed of the battery unit is high.

[0297] S610: When it is determined that the electronic device does not support external charging using an external cable, the electronic device may be configured with charging parameters that do not support external charging.

[0298] For example, if authentication fails, SoC 400 can control switch unit a 401 to be in an off state. SoC 400 can calculate the charging performance parameters of fast charging chip a 311, the charging performance parameters of fast charging chip b 312, the temperature of the entire housing, and the voltage of battery unit 404 to obtain a second charging parameter.

[0299] When the second charging parameter is obtained, the SoC 400 can transmit the second charging parameter to the fast charging chip a 311 via the IIC bus, thereby enabling the charger 307 to output the second voltage and the second current. For the specific implementation principle of the charger 307 outputting the second voltage and the second current, please refer to Figure 4 The specific implementation principle of the charger 307 outputting the second voltage and the second current in the embodiment will not be repeated here.

[0300] In the event that authentication is unsuccessful, or when the second charging parameter is obtained, the SoC 400 can control the switch unit a 401 to be in the off state. The SoC 400 can transmit information indicating that the fast charging circuit is enabled to the fast charging chip a 311 and the fast charging chip b 312 respectively. The fast charging chip a 311 can control the fast charging circuit a 406 to be in the enabled state, so that the fast charging circuit a 406 performs power conversion on the voltage and current obtained from the charger 307 to achieve fast charging of the battery cell 404. The fast charging chip b 312 can control the fast charging circuit b 411 to be in the enabled state, so that the fast charging circuit b 411 can perform power conversion on the voltage and current obtained from the charger 307 to achieve fast charging of the battery cell 404.

[0301] In this way, if it is determined that the electronic device does not support external charging via an external cable, the fast charging chip on the electronic device can be used to fast charge the battery cell of the electronic device. By controlling the switch unit a to be in the off state by the SoC, the external charging IC is controlled not to charge the battery cell, which can reduce the probability of the external charging IC charging the battery cell and affecting the battery cell performance.

[0302] S611. When it is determined that the cable connected to the electronic device is a non-fast charging cable, or when the interaction with the charger's fast charging protocol is unsuccessful, the electronic device may configure non-fast charging parameters to perform non-fast charging.

[0303] Among them, non-fast charging parameters can be called slow charging parameters. Non-fast charging can be called slow charging.

[0304] For example, when SoC 400 determines that the circuit external cable 306 is not a fast charging cable or does not have the performance of a fast charging cable, SoC 400 can transmit information indicating slow charging to PMU 414 through the IIC bus between PMU 414 and SoC 400.

[0305] PMU 414 can transmit the third charging requirement information to charger 307 via the communication channel between PMU 414 and charger 307, so that charger 307 outputs the third voltage and third current. PMU 414 can control switches M1, M2, and Q4 to be in an on state, thereby implementing slow charging of battery cell 404 using a step-down circuit.

[0306] In this way, the probability of abnormal charging or damage to electronic devices caused by fast charging through non-fast charging cables can be reduced.

[0307] It is understandable that the electronic device can determine the charging current Ib of the battery cell according to the preset frequency to adjust the charging parameters according to the preset frequency, and adjust the charging strategy, thereby reducing the probability of short battery life while making the charging speed higher.

[0308] Figure 7 A schematic diagram of a flow chart for determining the charging current Ib and the charging strategy provided in an embodiment of the present application is shown.

[0309] like Figure 7 As shown, the process may include:

[0310] S701: When the electronic device determines that the electronic device supports external charging using an external circuit cable, the electronic device may determine whether a battery temperature is greater than a temperature threshold Tb.

[0311] If the battery temperature is less than or equal to Tb, the electronic device may execute S702.

[0312] If the battery temperature is greater than Tb, the electronic device may execute S712.

[0313] Where, It is the charging current corresponding to the entire case temperature, It can also be called the maximum temperature-controlled current. Tb can be 40°C.

[0314] For example, in Figure 6 In the embodiment shown, if authentication is successful, SoC 400 can obtain the battery temperature from the temperature measurement module. The battery temperature can be obtained by fitting the temperatures of the multiple batteries in battery unit 404. For example, the battery temperature can be the average temperature of the multiple batteries in battery unit 404.

[0315] In a case where the battery temperature is less than or equal to Tb, the SoC 400 may execute S702 .

[0316] In a case where the battery temperature is greater than Tb, the SoC 400 may execute S712 .

[0317] S702: When the battery temperature is less than or equal to Tb, the electronic device may determine whether the entire housing temperature is greater than a preset temperature T1.

[0318] Among them, T1<Tb.

[0319] If the entire housing temperature is greater than T1, the electronic device may execute S703.

[0320] If the entire housing temperature is less than or equal to T1, the electronic device may execute S713.

[0321] For example, when the battery temperature is less than or equal to Tb, the SoC 400 may obtain the entire housing temperature from the temperature measurement module. Optionally, when the SoC 400 obtains the battery temperature from the temperature measurement module, the SoC 400 may also obtain the entire housing temperature.

[0322] S703: When the temperature of the entire housing is greater than T1, the electronic device may determine whether the temperature of the entire housing is greater than a preset temperature T2.

[0323] Among them, T1<T2<Tb.

[0324] If the entire housing temperature is greater than T2, the electronic device may execute S704.

[0325] If the entire housing temperature is less than or equal to T2, the electronic device may execute S714.

[0326] S704: When the temperature of the entire housing is greater than T2, the electronic device may determine whether the temperature of the entire housing is greater than a preset temperature T3.

[0327] Among them, T1<T2<T3<Tb.

[0328] If the entire housing temperature is greater than T3, the electronic device may execute S705.

[0329] If the entire housing temperature is less than or equal to T3, the electronic device may execute S715.

[0330] S705: The electronic device may maintain the value of the temperature-controlled maximum current It as I4, so as to subsequently use the value of It to determine the charging current Ib of the battery unit. I4 may be the maximum current value corresponding to T3.

[0331] The value of the maximum current It for maintaining temperature control of the electronic device is I4. For example, the SoC 400 sets It=I4.

[0332] When the electronic device completes step S705 , the electronic device may execute S706 .

[0333] S706: The electronic device may obtain the voltage of the battery cell and determine the current Ic corresponding to the voltage of the battery cell based on the battery charging curve. The electronic device may select the minimum value from the temperature-controlled maximum current It and the current Ic as the charging current Ib of the battery cell.

[0334] Wherein, Ib satisfies the formula: Ib=min[It, Ic]. The battery charging curve may include a corresponding relationship between the voltage and the current Ic of the battery cell.

[0335] When the electronic device obtains the charging current Ib, the electronic device can determine the charging strategy corresponding to the charging current Ib based on the pre-stored correspondence between the charging current Ib and the charging strategy. Determining the charging strategy corresponding to the charging current Ib is described in detail in subsequent S707 and S708. For example, when the charging current Ib is obtained, the electronic device executes S707.

[0336] Exemplarily, when the electronic device obtains the voltage of the battery cell, the electronic device may determine whether the voltage of the battery cell is greater than a pre-charge voltage threshold.

[0337] If the voltage of the battery cell is greater than the pre-charge voltage threshold, it indicates that the charging of the battery cell is in the constant current charging stage of the charging curve, and the electronic device may execute S707 to perform fast charging.

[0338] If the voltage of the battery cell is less than or equal to the pre-charge voltage threshold, it means that the charging of the battery cell is in the trickle charge stage of the charging curve, and the electronic device can execute S712 or execute Figure 6 S611 in for slow charging.

[0339] S707 : The electronic device may determine whether the charging current Ib of the battery cell is greater than the current threshold Is1 .

[0340] If Ib>Is1, it may indicate that the charging strategy corresponding to the charging current Ib is to use an external fast charging circuit and all fast charging circuits on the electronic device to charge the battery unit, and the electronic device may execute S711.

[0341] If Ib≤Is1, the electronic device may execute S708.

[0342] Among them, the external fast charging circuit is as follows: Figure 5 The fast charging circuit c 501 is shown. The entire fast charging circuit on the electronic device is as follows: Figure 4 The electronic device shown has two fast charging circuits (eg, fast charging circuit a 406 and fast charging circuit b 411 ).

[0343] S708 : When the charging current Ib is less than or equal to the current threshold Is1 , the electronic device may determine whether Ib is greater than the current threshold Is2 .

[0344] Among them, Is1>Is2.

[0345] If Ib>Is2, it may indicate that the charging strategy corresponding to the charging current Ib is to use an external fast charging circuit and part of the fast charging circuit on the electronic device to charge the battery unit, and the electronic device may execute S710.

[0346] If Ib≤Is2, it may indicate that the charging strategy corresponding to the charging current Ib is to use an external fast charging circuit to charge the battery unit, and the electronic device may execute S709.

[0347] Among them, some fast charging circuits on electronic devices are as follows: Figure 4 One of the two fast charging circuits of the electronic device shown (such as fast charging circuit a 406 or fast charging circuit b 411).

[0348] S709: When the charging current Ib is less than or equal to the current threshold Is2, the electronic device may use an external fast charging circuit to charge the battery unit.

[0349] It is understandable that Figure 7 The execution subject of the embodiment shown may be a SoC of an electronic device (such as Figure 4 SoC 400 of the electronic device shown).

[0350] For example, still combined with Figure 4 and Figure 5For illustration, if the SoC 400 determines that Ib≤Is2, it may indicate that the charging current Ib required for charging the battery cell is small, and a fast charging circuit can meet the charging requirements. The charging requirements may include the charging current required by the battery cell and / or the preset charging speed. When the SoC 400 determines that Ib≤Is2, the SoC 400 may control the switch unit a 401 to be in the on state. The SoC 400 may transmit information indicating that the fast charging circuit is enabled to the external charging IC 504 through the IIC communication channel between the external interface 301 and the SoC 400, and the IIC communication channel between the interface a 302 and the external charging IC 504. The SoC 400 may also transmit information indicating that the fast charging circuit is not enabled to the fast charging chip a 311 through the IIC bus between the SoC 400 and the fast charging chip a 311. The SoC 400 may also transmit information indicating that the fast charging circuit is not enabled to the fast charging chip b 312 via the IIC bus between the SoC 400 and the fast charging chip b 312 .

[0351] When receiving the information indicating that the fast charging circuit is enabled, the external charging IC 504 may control the fast charging circuit c 501 to be in an enabled state.

[0352] When receiving information indicating that the fast charging circuit is disabled, the fast charging chip a 311 can control the fast charging circuit a 406 to be in a disabled state. In this way, the fast charging circuit a 406 does not charge the battery cell 404, which can reduce the temperature rise of the entire housing.

[0353] When receiving information indicating that the fast charging circuit is disabled, the fast charging chip b 312 can control the fast charging circuit b 411 to be in a disabled state. In this way, the fast charging circuit b 411 does not charge the battery cell 404, which can reduce the temperature rise of the entire housing.

[0354] It can be understood that the SoC 400 transmits information indicating that the fast charging circuit is enabled to the external charging IC 504, the SoC 400 transmits information indicating that the fast charging circuit is disabled to the fast charging chip a 311, and the SoC 400 transmits information indicating that the fast charging circuit is disabled to the fast charging chip b 312 can be executed concurrently.

[0355] When SoC 400 transmits information indicating that the fast charging circuit is enabled to the external charging IC 504, and also transmits information indicating that the fast charging circuit is not enabled to the fast charging chip a 311 and the fast charging chip b 312, SoC 400 can calculate the external charging performance parameters, the temperature of the entire housing and the voltage of the battery cell 404 according to a preset calculation method to obtain a fourth charging parameter.

[0356] SoC 400 can transmit the fourth charging parameter to fast charging chip a311 through the IIC communication channel between SoC 400 and fast charging chip a311. Fast charging chip a311 can transmit fourth charging requirement information to charger 307 through the USB communication channel between fast charging chip a311 and charger 307. The fourth charging requirement information can include the fourth charging parameter.

[0357] In the case of receiving the fourth charging requirement information, the charger 307 can output a fourth voltage and a fourth current. The fast charging circuit c 501 can convert the voltage and current obtained from the charger 307 into power to realize fast charging of the battery unit 404. The specific implementation principle of the fast charging circuit c 501 for fast charging the battery unit 404 in this embodiment can be found in Figure 4 The specific implementation principle of the external charging unit 303 fast charging the battery unit 404 in the embodiment.

[0358] It is understood that the voltage value of the fourth voltage may be less than or equal to the voltage value of the first voltage. In different charging stages of the battery cell, the voltage value of the fourth voltage may be the same as the voltage value of the first voltage. Taking the battery as a lithium-ion battery as an example, the charging stage may include any of a trickle charge (low-voltage pre-charge) stage, a constant current charge stage, or a constant voltage charge stage.

[0359] In one embodiment of the present application, before the electronic device is connected to the charger, the fast charging circuits on the electronic device may be in a disabled state. When Ib≤Is2, the SoC 400 may not transmit information indicating that the fast charging circuit is enabled to the fast charging chip a 311 and the fast charging chip b 312. Therefore, the fast charging circuit a 406 and the fast charging circuit b 411 are both in a disabled state, and the fast charging circuit a 406 and the fast charging circuit b 411 do not need to charge the battery cell 404.

[0360] In this way, when Ib≤Is2, the electronic device can use an external fast charging circuit (such as fast charging circuit c501) to fast charge the battery cell. The heat generated by the fast charging circuit during power conversion is distributed on the external cable of the circuit without affecting the overall casing temperature of the electronic device. The fast charging circuit on the electronic device does not need to perform power conversion and will not generate heat, thereby reducing the temperature rise of the overall casing temperature of the electronic device and reducing the limitation of the overall casing temperature on the charging power of the battery cell.

[0361] S710: When Is2<Ib≤Is1, the electronic device may use an external fast charging circuit and a portion of the fast charging circuit on the electronic device to charge the battery unit.

[0362] If Ib satisfies Is2<Ib≤Is1, then based on the correspondence between Ib and the charging strategy, SoC 400 can determine that the charging strategy corresponding to Ib is: using an external fast charging circuit and part of the fast charging circuit on the electronic device to charge the battery cell.

[0363] For example, still combined with Figure 4 and Figure 5 For illustration, if the SoC 400 determines that Is2<Ib≤Is1, the SoC 400 may control the switch unit a 401 to be in the on state. The SoC 400 may transmit information indicating that the fast charging circuit is enabled to the external charging IC 504 and the fast charging chip a 311, and transmit information indicating that the fast charging circuit is disabled to the fast charging chip b 312.

[0364] SoC 400 can calculate the external charging performance parameters, the charging performance parameters of the fast charging chip a 311, the temperature of the entire housing and the voltage of the battery unit 404 according to a preset calculation method to obtain the fifth charging parameter.

[0365] SoC 400 can transmit the fifth charging parameter to fast charging chip a311 through the IIC communication channel between SoC 400 and fast charging chip a311. Fast charging chip a311 can transmit the fifth charging requirement information to charger 307 through the USB communication channel between fast charging chip a311 and charger 307. The fifth charging requirement information can include the fifth charging parameter.

[0366] Upon receiving the fifth charging requirement information, the charger 307 may output a fifth voltage and a fifth current.

[0367] When the charger 307 outputs the fifth voltage and the fifth current, the fast charging circuit c 501 can convert the voltage and current obtained from the charger 307 into power to realize fast charging of the battery cell 404. The fast charging circuit a 406 can also convert the voltage and current obtained from the charger 307 into power to realize fast charging of the battery cell 404. The specific implementation principle of the fast charging circuit c 501 charging the battery cell 404 in this embodiment can be seen in FIG. Figure 4 The specific implementation principle of the external charging unit 303 charging the battery unit 404 in the embodiment. The specific implementation principle of the fast charging circuit a 406 charging the battery unit 404 can be found in Figure 4 The specific implementation principle of the fast charging chip a 311 charging the battery unit 404 in the embodiment.

[0368] It is understandable that the voltage value of the fifth voltage may be less than or equal to the voltage value of the first voltage. In different charging stages of the battery cell, the voltage value of the fifth voltage may be the same as the voltage value of the first voltage.

[0369] The voltage value of the fifth voltage may be greater than the voltage value of the fourth voltage. In the case of Is2<Ib≤Is1, the electronic device uses an external fast charging circuit and a part of the fast charging circuit on the electronic device (such as Figure 4 The fast charging circuit a 406 shown in the figure fast charges the battery cell, which can reduce the temperature rise of the entire housing of the electronic device while increasing the charging power of the battery cell, thereby reducing the limitation of the entire housing temperature on the charging power of the battery cell.

[0370] S711 . When Ib>Is1 , the electronic device may use the external fast charging circuit and all the fast charging circuits on the electronic device to charge the battery unit.

[0371] For example, still combined with Figure 4 and Figure 5 For illustration, if SoC 400 determines that Ib>Is1, it may indicate that the charging current Ib required by the battery cell is large, and more fast charging circuits are needed to charge the battery cell to meet the charging requirements. SoC 400 can control switch unit a 401 to be in an on state. SoC 400 can transmit information indicating that the fast charging circuit is enabled to the external charging IC 504, fast charging chip a 311, and fast charging chip b 312.

[0372] SoC 400 can calculate the external charging performance parameters, the charging performance parameters of the fast charging chip a 311, the charging performance parameters of the fast charging chip b 312, the temperature of the entire housing and the voltage of the battery unit 404 according to a preset calculation method to obtain a first charging parameter.

[0373] SoC 400 can transmit the first charging parameter to the fast charging chip a 311. The fast charging chip a 311 can transmit the first charging requirement information to the charger 307. The charger 307 can output the first voltage and the first current, thereby realizing the fast charging of the battery cell 404 using the fast charging circuit c 501, the fast charging circuit a 406 and the fast charging circuit b 411. The specific implementation principle and technical effect of this step can be seen in Figure 4 The specific implementation principle and technical effect of the fast charging circuit c 501, the fast charging circuit a 406 and the fast charging circuit b 411 for fast charging the battery unit 404 in the embodiment.

[0374] In this way, when Ib>Is1 or the charging current required for charging the battery cell is large, the electronic device can use the external fast charging circuit (such as fast charging circuit c 501) and all the fast charging circuits on the electronic device (such as Figure 4The fast charging circuit a 406 and the fast charging circuit b 411 shown in the figure fast charge the battery cell to realize the dispersion of the heat generated by the power conversion of the fast charging circuit on the electronic device, so as to reduce the temperature rise of the whole casing. The heat generated by the power conversion of the external fast charging circuit is distributed on the external cable of the circuit, further reducing the temperature rise of the whole casing of the electronic device, thereby reducing the limitation of the whole casing temperature on the charging power of the battery cell.

[0375] S712: When the electronic device determines that the battery temperature is greater than the temperature threshold Tb, the electronic device may maintain the value of the temperature-controlled maximum current It at Ir and charge the battery cell of the electronic device through a buck circuit, where Ir may be the maximum current value corresponding to Tb.

[0376] For example, when the SoC 400 determines that the battery temperature is greater than the temperature threshold Tb, the SoC 400 may set It = Ir. The SoC 400 may transmit information indicating slow charging to the PMU 414 via the communication channel between the PMU 414 and the SoC 400. The PMU 414 may transmit third charging requirement information to the charger 307 via the communication channel between the PMU 414 and the charger 307, so that the charger 307 outputs a third voltage and a third current. The PMU 414 may control the switches M1, M2, and Q4 to be in the on state. In order to achieve the above, the PMU 414 may control the switches M1, M2, and Q4 to be in the on state. Figure 4 The buck circuit shown provides a slow charge to the battery cell 404 .

[0377] S713: When the electronic device determines that the entire housing temperature is less than or equal to the preset temperature T1, the electronic device may maintain the value of the temperature-controlled maximum current It at I1. Here, I1 may be the maximum current value corresponding to T1. I1>Ir.

[0378] The value of the maximum current It for maintaining temperature control of the electronic device is I1. For example, the SoC 400 sets It=I1.

[0379] When the electronic device completes step S713 , the electronic device may execute S706 .

[0380] S714: When the electronic device determines that the entire housing temperature is less than or equal to the preset temperature T2, the electronic device may maintain the value of the temperature-controlled maximum current It at I2. Here, I2 may be the maximum current value corresponding to T2. I1>I2>Ir.

[0381] The value of the maximum current It for maintaining temperature control of the electronic device is I2. For example, the SoC 400 sets It=I2.

[0382] When the electronic device completes step S714 , the electronic device may execute S706 .

[0383] S715: When the electronic device determines that the entire housing temperature is less than or equal to the preset temperature T3, the electronic device may maintain the value of the temperature control maximum current It at I3. Here, I3 may be the maximum current value corresponding to T3. I1>I2>I3>Ir.

[0384] The electronic device may maintain the value of the temperature-controlled maximum current It at I3. For example, the SoC 400 sets It=I3.

[0385] When the electronic device completes step S715 , the electronic device may execute S706 .

[0386] Regarding the heat generated when charging the battery cells of the electronic device, Table 1 shows a comparison of the heat generated when charging using the charging system provided by the embodiment of the present application and the heat generated when charging without using the charging system provided by the embodiment of the present application.

[0387] Table 1 Comparison between the charging system provided by the embodiment of the present application and the charging system not provided by the embodiment of the present application

[0388]

[0389] As shown in Table 1, when the charging power is 100 and the charging current Ib=20, the heat loss Q2 of the electronic device motherboard charged by the charging system provided by the embodiment of the present application is 3225.27, and the heat loss Q1 of the electronic device motherboard not charged by the charging system provided by the embodiment of the present application is 4869.77. Q2 is 66.23% of Q1. When the charging power is 35 and the charging current Ib=7, Q2 is 71.13% of Q1. Compared with the heat loss Q1 of the electronic device motherboard charged by the charging system provided by the embodiment of the present application, the heat loss Q2 of the electronic device motherboard charged by the charging system provided by the embodiment of the present application is smaller, which can indicate that the temperature rise of the entire housing temperature of the electronic device charged by the charging system provided by the embodiment of the present application is smaller. The electronic device motherboard can be used to deploy the fast charging chip, fast charging circuit, SoC and PMU of the electronic device.

[0390] like Figure 7 As shown in the embodiment, the whole casing temperature of the electronic device can be divided into five temperature levels. For example, the five temperature levels are: whole casing temperature ≤ T1, T1 < whole casing temperature ≤ T2, T2 < whole casing temperature ≤ T3 and T3 < whole casing temperature ≤ Tb. One temperature level corresponds to one temperature-controlled maximum current It. It should be understood that the correspondence between the whole casing temperature and the temperature-controlled maximum current It pre-stored on the electronic device may include the above-mentioned five temperature levels, and may also include more temperature levels and It values ​​corresponding to each temperature level in more temperature levels. In one embodiment of the present application, the whole casing temperature of the electronic device may also be divided into fewer temperature levels.

[0391] Figure 7 The embodiment divides the charging current of the battery cell into three charging current levels. The three charging current levels are, for example: Ib>Is1, Is1≥Ib>Is2, and Is2≥Ib. One charging current level may correspond to one charging strategy. It should be understood that the correspondence between Ib and charging strategy pre-stored on the electronic device may include the above three charging current levels and the charging strategies corresponding to the above three charging current levels, or may include more charging current levels and the charging strategies corresponding to each of the more charging current levels. In one embodiment of the present application, the charging current of the electronic device may also be divided into fewer current levels.

[0392] like Figure 7 As shown in the embodiment, the electronic device determines the charging current Ib of the battery cell based on the temperature-controlled maximum current It and the voltage of the battery cell. The electronic device determines the charging current level based on the charging current Ib and the current threshold (such as Is1 or Is2), and then selects the charging strategy corresponding to the charging current level, that is, selects the number of fast charging circuits, which can reduce the number of fast charging circuits used in the electronic device while meeting the charging power of the battery cell, thereby reducing the temperature rise of the entire housing of the electronic device and reducing the limitation of the temperature rise of the entire housing on the charging power. The charging method provided in the embodiment of the present application, when using a fast charging circuit to fast charge the battery cell, implements the priority use of the fast charging circuit in the circuit external cable to charge the battery cell, and realizes the distribution of the heat generated by the power conversion outside the electronic device, thereby reducing the temperature rise of the entire housing of the electronic device.

[0393] In the embodiment of the present application, the charging performance parameters of the fast charging chip a 311 may include the maximum charging current and maximum charging voltage supported by the fast charging circuit a 406. The charging performance parameters of the fast charging chip b 312 may include the maximum charging current and maximum charging voltage supported by the fast charging circuit b 411. The external charging performance parameters may include the maximum charging current and maximum charging voltage supported by the fast charging circuit c 501. It should be understood that the electronic device can execute the preset frequency. Figure 7 When the battery cell is fully charged, the electronic device can control the fast charging circuit a 406, the fast charging circuit b 411 and the fast charging circuit c 501 to stop charging the battery cell.

[0394] Figure 8 A structural schematic diagram of an electronic device provided in an embodiment of the present application is shown.

[0395] like Figure 8As shown, the electronic device 300 may include a SoC 400, a PMU 414, a fast charging chip a 311, a fast charging chip b 312, a battery unit 404, a battery protection board 801 and an external interface 301.

[0396] The battery protection board 801 is disposed between the battery unit 404 and the external interface 301 .

[0397] Since the fast charge voltage and fast charge current will generate heat during the transmission process, the transmission line will also generate heat, which will affect the temperature of the entire housing of the electronic device. By deploying the battery protection board 801 between the battery unit 404 and the external interface 301, the Figure 5 The charging line between the fast charging circuit c 501 of the external cable of the circuit shown to the battery cell 404 can shorten the charging line from the Vbat pin in the external interface 301 to the battery cell 404, and can reduce the heat generated by the fast charging voltage and fast charging current output by the fast charging circuit c 501, thereby reducing the temperature rise of the entire casing of the electronic device, thereby reducing the limitation of the charging power of the electronic device caused by the temperature rise of the entire casing.

[0398] In addition, compared to the heat generated by the fast charging chip a 311 or the fast charging chip b 312 during fast charging, the heat generated by the PMU 414 during operation is lower. Figure 8 As shown, the fast charging chip a 311 can be deployed close to the PMU 414, and the fast charging chip b 312 can be deployed away from the PMU 414. In this way, heat can be dispersed, which is beneficial for heat dissipation, reduces the probability of heat concentration, and thus reduces the temperature rise of the entire casing.

[0399] Figure 9 Another structural schematic diagram of an electronic device provided in an embodiment of the present application is shown.

[0400] like Figure 9As shown, 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 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0401] It should be understood that the structure illustrated in the embodiments of the present invention does 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.

[0402] For example, the USB interface 130 can be used with Figure 4 The Vbat pin in the USB interface 130 can be connected to the battery 142. Figure 4 , the USB interface 130 may include Figure 4 The Vbat pin shown. When the USB interface 130 is connected to the external circuit cable 306 and the external circuit cable 306 is connected to the charger 307, the Vbat pin of the USB interface 130 is connected to the external circuit cable 306. The external circuit cable 306 can obtain electrical energy from the charger 307 and perform power conversion on the obtained electrical energy to obtain the voltage and current for charging the battery 142. The external circuit cable 306 can transmit the voltage and current for charging the battery 142 to the battery 142 through the Vbat pin of the USB interface 130 to fast charge the battery 142.

[0403] In this way, the heat generated by power conversion by the external circuit cable 306 does not affect the overall housing temperature of the electronic device 100, thereby reducing the temperature rise of the overall housing temperature of the electronic device 100, and further reducing the limitation of the overall housing temperature rise of the electronic device 100 on the charging power of the battery 142. It is understood that the electronic device 100 and the electronic device 300 can be the same.

[0404] It should be noted that the module names involved in the embodiments of the present application can be defined as other names as long as the functions of each module can be achieved, and there is no specific restriction on the names of the modules.

[0405] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the embodiments of the present application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0406] The charging method provided in the embodiment of the present application can be applied to electronic devices with communication functions. The electronic devices include terminal devices. The specific device form of the terminal device can refer to the above related descriptions and will not be repeated here.

[0407] An embodiment of the present application provides an electronic device. The electronic device includes one or more processors and a memory. The memory is coupled to the one or more processors and is configured to store computer program code, which includes computer instructions. The one or more processors invoke the computer instructions to cause the electronic device to perform the aforementioned charging method.

[0408] An embodiment of the present application provides a chip or chip system, which includes at least one processor and a communication interface. The communication interface and the at least one processor are interconnected via a circuit, and the at least one processor is configured to execute a computer program or instruction to perform the above-described charging method. The communication interface in the chip can be an input / output interface, a pin, or a circuit.

[0409] The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the above-mentioned method is implemented. The methods described in the above embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the functions can be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium. Computer-readable media can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium that can be accessed by a computer.

[0410] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage or other magnetic storage devices, or any other medium intended to carry or store the desired program code in the form of instructions or data structures and accessible by a computer. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave) is used to transmit software from a website, server or other remote source, the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disk and optical disc as used herein include optical disc, laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks generally reproduce data magnetically, while optical discs reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0411] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the above-mentioned charging method.

[0412] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to produce a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0413] The above specific implementation methods further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solutions of the present invention should be included in the scope of protection of the present invention.

Claims

1. A connecting cable, characterized in that: include: a first interface, at least one DC-DC converter and a second interface; The DC-DC converter is arranged between the first interface and the second interface.

2. The connecting cable according to claim 1, wherein: The first interface includes a first pin; the second interface includes a second pin; the DC-DC converter is connected between the second pin and the first pin; Some or all of the at least one DC-DC converter are used to charge the battery cell of the electronic device through the first pin when the first interface is connected to the electronic device and the second interface is connected to the charger; wherein the charger is used to power the DC-DC converter through the second pin; and the connection cable is independent of the electronic device and the charger.

3. The connecting cable according to claim 2, characterized in that The first interface further includes a third pin; The third pin is used to output a first signal indicating overvoltage and / or overcurrent of the connection cable.

4. The connecting cable according to any one of claims 2 or 3, characterized in that: The first interface further includes a fourth pin; the fourth pin is used to implement communication between the connection cable and the electronic device.

5. The connecting cable according to claim 4, characterized in that Also includes: First charging chip; The fourth pins include: a first serial data channel data line SDA pin and a first serial data channel clock line SCL pin; The first SDA pin and the first SCL pin are respectively connected to the first charging chip; The first SDA pin and the first SCL pin are used to implement integrated circuit bus IIC communication between the first charging chip and the electronic device.

6. The connecting cable according to claim 4, characterized in that Also includes: First charging chip; The fourth pin includes: a first single bus pin; the first single bus pin is connected to the first charging chip; The first single bus pin is used to implement single bus communication between the first charging chip and the electronic device.

7. The connecting cable according to claim 5 or 6, characterized in that: Also includes: anti-counterfeiting chip; The anti-counterfeiting chip is connected to the fourth pin; The anti-counterfeiting chip is used to transmit anti-counterfeiting information for authentication to the electronic device through the fourth pin when the first interface is connected to the electronic device.

8. The connecting cable according to claim 7, characterized in that The first charging chip includes a linear power supply, one end of which is connected between the second pin and the DC-DC converter; the anti-counterfeiting chip is also connected to the linear power supply; The linear power supply is used to supply power to the first charging chip and the anti-counterfeiting chip.

9. The connecting cable according to any one of claims 2 to 8, characterized in that: The first interface further includes a fifth pin; the fifth pin is connected to the second pin; The fifth pin and the second pin are used to enable the electronic device to obtain power from the charger when the first interface is connected to the electronic device and the second interface is connected to the charger.

10. The connecting cable according to any one of claims 2 to 9, characterized in that: The first interface further includes a sixth pin, and the second interface further includes a seventh pin; the sixth pin is connected to the seventh pin; The sixth pin and the seventh pin are used to implement communication between the electronic device and the charger when the first interface is connected to the electronic device and the second interface is connected to the charger.

11. The connecting cable according to any one of claims 1 to 10, characterized in that: The DC-DC converter is arranged on one end of the connecting cable close to the first interface.

12. An electronic device, characterized in that: include: A third interface and a battery unit; the third interface includes an eighth pin; the eighth pin is connected to the battery unit; The eighth pin is used to connect a connecting cable; when the connecting cable is connected to a power source, the connecting cable charges the battery unit through the eighth pin; wherein a DC-DC converter is provided in the connecting cable, and the connecting cable is independent of the electronic device.

13. The electronic device according to claim 12, wherein: Also includes: a control unit and a first switch unit; the control unit is connected to the first switch unit; the first switch unit is connected between the eighth pin and the battery unit; The control unit is used to control the first switch unit to be in an on state or an off state.

14. The electronic device according to claim 13, wherein: The third interface further includes a ninth pin, and the ninth pin is connected to the control unit; The control unit is further used to control the first switch unit to be in an off state when a first signal is received through the ninth pin; wherein the first signal indicates that the connection cable is overvoltage and / or overcurrent; the first signal is transmitted to the control unit by the connection cable when the eighth pin is connected to the connection cable.

15. The electronic device according to claim 13 or 14, characterized in that: Also includes: A second switch unit, the third interface further comprising a tenth pin; the second switch unit is connected between the control unit and the tenth pin; The control unit is further configured to control the second switch unit to be in an on state or an off state; The tenth pin is used to enable communication between the control unit and the connection cable when the second switch unit is in the on state.

16. The electronic device according to claim 15, characterized in that The tenth pin includes: a second serial data channel data line SDA pin and a second serial data channel clock line SCL pin, and the second switch unit includes a first switch and a second switch; The first switch is connected between the control unit and the second SDA pin, and the second switch is connected between the control unit and the second SCL pin; The control unit is further configured to control the first switch and the second switch to be in an on state or in an off state; The second SDA pin and the second SCL pin are used to implement integrated circuit bus IIC communication between the control unit and the connection cable when the first switch and the second switch are both in the on state.

17. The electronic device according to claim 15, characterized in that The tenth pin includes: a second single bus pin; the second switch unit includes a third switch; The control unit is further configured to control the third switch to be in an on state or in an off state; The second single bus pin is used to implement single bus communication between the control unit and the connection cable when the third switch is in the on state.

18. The electronic device according to any one of claims 13 to 17, characterized in that: Also includes: at least one first circuit; the third interface further comprising an eleventh pin; the first circuit being connected between the eleventh pin and the battery unit, and the first circuit being connected to the control unit; The control unit is further used to control the use of part or all of the at least one first circuit to charge the battery unit; the first circuit obtains electrical energy through the eleventh pin, and the first circuit is used for power conversion.

19. The electronic device according to any one of claims 12 to 18, characterized in that: The third interface further includes a twelfth pin; The twelfth pin is used to realize communication between the electronic device and the charger when the third interface is connected to the connection cable and the connection cable is connected to the charger.

20. A charging system, characterized in that: include: Electronic devices, connecting cables and chargers; The electronic device comprises: a third interface and a battery unit; the third interface comprises an eighth pin; the eighth pin is connected to the battery unit; The connecting cable includes: a first interface, at least one DC-DC converter and a second interface; the DC-DC converter is arranged between the first interface and the second interface; Some or all of the at least one DC-DC converter are used to charge the battery cell through the eighth pin when the third interface is connected to the first interface and the second interface is connected to the charger; wherein the charger is used to power the DC-DC converter through the second interface; and the connection cable is independent of the electronic device and the charger.

21. The charging system according to claim 20, wherein: The first interface includes a first pin; the second interface includes a second pin; the DC-DC converter is connected between the second pin and the first pin; Some or all of the at least one DC-DC converter are configured to charge the battery cell through the first pin and the eighth pin when the third interface is connected to the first interface and the second interface is connected to the charger; wherein the charger is configured to power the DC-DC converter through the second pin; and the connection cable is independent of the electronic device and the charger.

22. The charging system according to claim 21, characterized in that The electronic device further comprises: a control unit and a first switch unit; the control unit is connected to the first switch unit; the first switch unit is connected between the eighth pin and the battery unit; The third interface further includes a ninth pin, and the first interface further includes a third pin; the ninth pin is connected to the control unit; In the case of overvoltage and / or overcurrent in the connection cable, the connection cable transmits a first signal to the control unit through the third pin and the ninth pin, and the control unit controls the first switch unit to be in an off state.

23. The charging system according to claim 22, wherein: The electronic device further includes: a second switch unit, the third interface further includes a tenth pin; the second switch unit is connected between the control unit and the tenth pin; the first interface further includes a fourth pin; The control unit is further configured to control the second switch unit to be in an on state or an off state; The tenth pin and the fourth pin are used to implement communication between the control unit and the connection cable when the second switch unit is in the on state.

24. The charging system according to any one of claims 22 or 23, characterized in that: The electronic device further includes: at least one first circuit; the third interface further includes an eleventh pin; the first interface further includes a fifth pin; the first circuit is connected between the eleventh pin and the battery unit; the fifth pin is connected to the second pin; and the first circuit is connected to the control unit; The control unit is further configured to control the use of part or all of the at least one first circuit to charge the battery cell when the third interface is connected to the first interface and the second interface is connected to the charger; wherein the first circuit obtains electrical energy from the charger through the eleventh pin, the fifth pin, and the second pin, and the first circuit is used for power conversion.

25. The charging system according to any one of claims 20 to 24, characterized in that: The third interface further includes a twelfth pin; the first interface includes a sixth pin, and the second interface includes a seventh pin; the sixth pin is connected to the seventh pin; The twelfth pin, the sixth pin, and the seventh pin are used to implement communication between the electronic device and the charger when the third interface is connected to the first interface and the second interface is connected to the charger.