Electronic device, control method and related device
By designing two fast charging protocol handshake links in electronic devices, the problem that electronic devices cannot charge quickly when connected to the fast charging charger is solved, and a more efficient charging process is achieved.
Patent Information
- Application Number
- CN202311202129.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-15
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2043-09-15
AI Technical Summary
When electronic devices are connected to the fast charging charger, they may not be able to perform fast charging, resulting in a reduced charging efficiency.
An electronic device is designed, including two fast charging protocol modules (first fast charging protocol module and second fast charging protocol module), and two fast charging protocol handshake links are formed through the data transmission pins and SoC of the Type-C interface. When one link fails, the device can shake hands with the fast charging charger through another link to achieve fast charging.
Fast charging is achieved through the second fast charging protocol handshake link, which reduces the probability that electronic devices cannot charge quickly when connected to the fast charging charger, and improves charging efficiency and user experience.
Smart Images

Figure CN118473035B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to an electronic device, a control method and related devices. Background Art
[0002] In a possible implementation, an external interface is provided on the electronic device, and the electronic device can be connected to a fast charging charger through the external interface to achieve fast charging of the electronic device.
[0003] However, during the use of the electronic device, when the electronic device is connected to a fast charging charger, the electronic device may not be fast charged. Summary of the invention
[0004] The embodiment of the present application provides an electronic device, a control method and a related device, which are applied to the field of terminal technology. The electronic device includes a first fast charging protocol module and a second fast charging protocol module. The first fast charging protocol module and the second fast charging protocol module can both handshake with a fast charging charger according to the fast charging protocol of the electronic device. The data transmission pin of the Type-C interface, the first fast charging protocol module and the SoC constitute a fast charging protocol handshake link of the electronic device, and the data transmission pin of the Type-C interface, the second fast charging protocol module and the SoC constitute another fast charging protocol handshake link of the electronic device. When the electronic device is connected to a fast charging charger, if one of the fast charging protocol handshake links of the electronic device fails, the electronic device can handshake with the fast charging charger through another fast charging protocol handshake link to realize fast charging of the electronic device.
[0005] In the first aspect, an embodiment of the present application proposes an electronic device, comprising: a first fast charging unit, a second fast charging unit, a data transmission interface and a control unit. The first fast charging unit includes a first fast charging circuit and a first fast charging protocol module, and the second fast charging unit includes a second fast charging circuit and a second fast charging protocol module. The data transmission interface is used to communicate with the charging device to which the electronic device is connected. The data transmission interface is connected to the first fast charging protocol module and the second fast charging protocol module, respectively. The control unit is used to instruct the first fast charging protocol module to communicate with the charging device according to the fast charging protocol when the electronic device is connected to the charging device, and when the communication connection result transmitted by the first fast charging protocol module is not obtained after the first time period is reached, the second fast charging protocol module is instructed to communicate with the charging device according to the fast charging protocol. The first fast charging circuit and / or the second fast charging circuit are used to charge the electronic device when the electronic device successfully establishes a communication connection with the charging device.
[0006] For example, in a scenario where the charging device is a wired charging device, the first fast charging unit may be Figure 7 In the embodiment, the first band protocol SC unit 706 and the second fast charging unit may be Figure 7In the embodiment, the second band protocol SC unit 707, the data transmission interface can be Figure 7 The data transmission pin of the Type-C interface 301 in the embodiment, the control unit may be Figure 4 In the control unit of the embodiment, the fast charging protocol can be Figure 4 The preset SCP protocol of the electronic device in the embodiment, the charging device can be Figure 4 In the fast charging charger of the embodiment, the first fast charging circuit can be Figure 7 In the embodiment, the first SC circuit 701 and the second fast charging circuit can be Figure 7 In the embodiment, the second SC circuit 702 and the first fast charge protocol module may be Figure 7 In the embodiment, the first fast charging protocol module 401 and the second fast charging protocol module may be Figure 7 In the second fast charging protocol module 402 of the embodiment, the first duration may be Figure 4 The sum of the first timing duration in the embodiment and the duration of the SoC reading the handshake status identifier. In the scenario where the charging device is a wired charging device, the control unit instructs the first fast charging protocol module to communicate with the charging device according to the fast charging protocol when the electronic device is connected to the charging device. The specific implementation principle and technical effect are similar to Figure 4 In the embodiment, the implementation principle and technical effect of SoC404 instructing the first fast charging protocol module 401 to perform handshake with the fast charging charger according to the preset SCP protocol is similar. The specific implementation principle and technical effect of the control unit instructing the second fast charging protocol module to perform communication connection with the charging device according to the fast charging protocol when the communication connection result transmitted by the first fast charging protocol module is not obtained after the first time period is reached is similar to Figure 4 In the embodiment, the implementation principle and technical effect of SoC 404 instructing the second fast charging protocol module 402 to handshake with the fast charging charger according to the preset SCP protocol are similar. Figure 7 In the embodiment, the specific implementation principles of the first SC circuit 701 and the second SC circuit 702 for charging the electronic device are similar and will not be described in detail here.
[0007] For example, in a scenario where the charging device is a wireless charging device, the first fast charging unit may be Fig.10 In the embodiment, the first band protocol SC unit 706 and the second fast charging unit may be Fig.10 In the embodiment, the second band protocol SC unit 707, the data transmission interface can be Fig.11 The receiving unit in the embodiment, the control unit may be Fig.11 In the control unit of the embodiment, the first fast charging protocol module may be Fig.11 In the embodiment, the first fast charging protocol module 401 and the second fast charging protocol module may be Fig.11In the second fast charging protocol module 402 of the embodiment, the fast charging protocol can be Fig.11 In the embodiment, the preset SCP protocol, the charging device may be Fig.11 In the wireless charger 1101 of the embodiment, the first duration may be Fig.11 In the scenario where the charging device is a wireless charging device, the control unit instructs the first fast charging protocol module to communicate with the charging device according to the fast charging protocol when the electronic device is connected to the charging device. Fig.11 The implementation principle of the SoC 404 transmitting the identity request information to the first fast charging protocol module 401 in the embodiment is similar and will not be repeated here. The specific implementation principle of the control unit instructing the second fast charging protocol module to communicate with the charging device according to the fast charging protocol when the communication connection result transmitted by the first fast charging protocol module is not obtained after the first time period is reached is similar to Figure 4 In the embodiment, the implementation principle of SoC 404 transmitting identity request information to the second fast charging protocol module 402 is similar and will not be repeated here.
[0008] In this way, no matter whether the charging device is a wired charging device or a wireless charging device, when the electronic device is connected to the charging device, the first fast charging protocol module can communicate with the charging device according to the fast charging protocol to enable the charging device to fast charge the electronic device. When the electronic device is connected to the charging device and the first fast charging protocol module fails to successfully establish a communication connection with the charging device, the second fast charging protocol module can communicate with the charging device according to the fast charging protocol, so that the charging device can fast charge the electronic device, reducing the probability of the electronic device failing to fast charge when connected to the charging device.
[0009] In a possible implementation, the electronic device further includes: a first resistor and a second resistor. The first resistor is connected between the data transmission interface and the first fast charging unit. The second resistor is connected between the data transmission interface and the second fast charging unit.
[0010] Exemplarily, the first resistor may be Figure 5 The resistor R1 in the embodiment, the second resistor can be Figure 5 The resistor R2 in the embodiment. The data transmission interface can be Figure 5 The data transmission pin in the embodiment. The technical effect of the first resistor being connected between the data transmission interface and the first fast charging unit, and the second resistor being connected between the data transmission interface and the second fast charging unit is similar to Figure 5 The resistor R1 and the resistor R2 in the embodiment achieve similar technical effects.
[0011] In this way, the first resistor can divide the static electricity in the circuit, reduce the probability of the first fast charging protocol module in the first fast charging unit being damaged due to static electricity, and thus reduce the probability of the first fast charging unit being damaged due to static electricity. Similarly, the second resistor can also divide the static electricity in the circuit, reduce the probability of the second fast charging protocol module in the second fast charging unit being damaged due to static electricity, and thus reduce the probability of the second fast charging unit being damaged due to static electricity. When the electronic device is disconnected from the charging device and connected to other external devices, the signal transmitted between the control unit and the data transmission interface, such as Figure 5 For the high-frequency signal in the embodiment, the first resistor and the second resistor may also present a high-impedance state to the high-frequency signal on their respective circuit branches, thereby reducing the influence of the circuit branches on the transmission quality of the high-frequency signal.
[0012] In a possible implementation, the electronic device also includes: a first switch and a second switch. The first switch is connected between the data transmission interface and the first resistor, and the control end of the first switch is connected to the control unit. The second switch is connected between the data transmission interface and the second resistor, and the control end of the second switch is connected to the control unit. The control unit is also used to control the first switch to be in an on state and the second switch to be in an off state when instructing the first fast charging protocol module to communicate with the charging device in accordance with the fast charging protocol. It is also used to control the second switch to be in an on state and the first switch to be in an off state when instructing the second fast charging protocol module to communicate with the charging device in accordance with the fast charging protocol. It is also used to control the first switch and the second switch to be in an off state when the electronic device is disconnected from the charging device.
[0013] Exemplarily, the first switch may be Figure 6 In the embodiment of the switch 601, the second switch may be Figure 6 In the embodiment, the switch 602, the data transmission interface may be Figure 6 The data transmission pin in the embodiment. The specific implementation principle and technical effect of this embodiment are similar to Figure 6 The specific implementation principles and technical effects of the embodiments are similar.
[0014] In this way, when the first fast charging unit is communicating with the charging device, the second switch is controlled to be in an off state, which can reduce the probability of the second fast charging unit being damaged by static electricity in the circuit. When the electronic device is disconnected from the charging device, the first switch and the second switch are controlled to be in an off state, which can reduce the probability of the first fast charging unit and the second fast charging unit being damaged by static electricity in the circuit. In addition, when the first switch is in the off state, the influence of the circuit branch where the first switch is located on the quality of high-frequency signal transmission can be reduced. Similarly, when the second switch is in the off state, the influence of the circuit branch where the second switch is located on the quality of high-frequency signal transmission can be reduced. When the electronic device is disconnected from the charging device, the first switch and the second switch are controlled to be in an off state, which reduces the influence of the circuit branch where the first switch is located and the circuit branch where the second switch is located on the quality of high-frequency signal transmission.
[0015] In a possible implementation, the electronic device further includes: an audio processing unit and a third switch. The third switch is connected between the data transmission interface and the audio processing unit, and a control end of the third switch is connected to the control unit. The control unit is further configured to control the third switch to be in an on state when the electronic device is connected to an analog headset. When the electronic device is disconnected from the analog headset, the third switch is controlled to be in an off state.
[0016] Exemplarily, the third switch may be Figure 6 In the embodiment, the switch 604, the audio processing unit may be Figure 6 The specific implementation principle of the audio processing unit 603 in the embodiment. The control unit controls the third switch to be in the on state when the electronic device is connected to the analog headset, and controls the third switch to be in the off state when the electronic device is disconnected from the analog headset. Figure 6 The corresponding specific implementation principles in the embodiments are similar and will not be repeated here.
[0017] In this way, when the electronic device is disconnected from the analog headset, the third switch is controlled to be in an off state, thereby reducing the influence of the circuit branch where the third switch is located on the transmission quality of the high-frequency signal.
[0018] In one possible implementation, the electronic device also includes: a power supply interface, a first battery, and a second battery. The first fast charging circuit is connected between the power supply interface and the first battery, and the second fast charging circuit is connected between the power supply interface and the second battery. The power supply interface is used to transmit the first voltage and the first current output by the charging device to the first fast charging circuit and the second fast charging circuit respectively when the electronic device successfully establishes a communication connection with the charging device. The first fast charging circuit and the second fast charging circuit are both used to convert the first voltage and the first current transmitted by the power supply interface into a second voltage and a second current. The second voltage and the second current are used for fast charging of the first battery, and also for fast charging of the second battery.
[0019] Exemplarily, the power supply interface may be Figure 7 The VBUS pin in the embodiment. The first battery can be Figure 7 The first battery 703 in the embodiment. The second battery can be Figure 7 The second battery 704 in the embodiment. The first voltage can be Figure 7 The first voltage in the embodiment. The first current can be Figure 7 The second voltage may be Figure 7 The second voltage in the embodiment. The second current can be Figure 7 The second current in the embodiment. The product of the second voltage and the second current may be less than or equal to the product of the first voltage and the first current. The second voltage may be less than or equal to the rated voltage of the first battery. The second current may be less than or equal to the rated current of the first battery. The specific implementation principle and technical effect of this embodiment are similar to Figure 7 The specific implementation principles and technical effects of the embodiments are similar.
[0020] In this way, when the electronic device is connected to the charging device, the first fast charging circuit and the second fast charging circuit can convert the fast charging voltage and current transmitted by the charging device into the voltage and current for fast charging of the battery of the electronic device, and also meet the rated voltage and rated current requirements of the battery of the electronic device, thereby realizing fast charging of the electronic device and reducing the probability of shortening the battery life due to the input voltage exceeding the rated voltage and / or the input current exceeding the rated current.
[0021] In one possible implementation, the electronic device includes a first folding portion, a second folding portion and a rotating shaft. The first folding portion is connected to the second folding portion by a rotating shaft. The rotating shaft is used to rotate the first folding portion around the rotating shaft, and is also used to rotate the second folding portion around the rotating shaft. The data transmission interface, the power supply interface, the control unit, the first fast charging unit and the first battery are arranged on the first folding portion. The second fast charging unit and the second battery are arranged on the second folding portion.
[0022] Exemplarily, the first folded portion may be Fig.10 The first folding portion 1001 in the embodiment. The second folding portion may be Fig.10 The second folding portion 1002 in the embodiment. The rotating shaft can be Fig.10 The rotating shaft 1003 in the embodiment. The specific implementation principle of this embodiment is the same as Fig.10 The specific implementation principles of the embodiments are similar and will not be repeated here.
[0023] In this way, the data transmission interface, power supply interface, control unit, first fast charging unit and first battery are arranged on the first folding part, and the second fast charging unit and second battery are arranged on the second folding part, so that the foldable electronic device can be made thinner and lighter. In addition, the first fast charging unit and the first battery are deployed on the same folding part, which can shorten the transmission link of the voltage and current of the battery fast charging, and can reduce the temperature rise rate of the electronic device when the first battery is fast charged. Similarly, the second fast charging unit and the second battery are deployed on the same folding part, which can also shorten the transmission link of the voltage and current of the battery fast charging, and can reduce the temperature rise rate of the electronic device when the second battery is fast charged, which can improve the user experience.
[0024] In one possible implementation, the electronic device also includes: a power supply interface and a third battery, the third battery including a first positive electrode and a first negative electrode. The first fast charging circuit is connected between the power supply interface and the first positive electrode of the third battery, and the second fast charging circuit is also connected between the power supply interface and the first positive electrode of the third battery. The first negative electrode of the third battery is grounded. The power supply interface is used to transmit the third voltage and third current output by the charging device to the first fast charging circuit and the second fast charging circuit respectively when the electronic device successfully establishes a communication connection with the charging device. The first fast charging circuit and the second fast charging circuit are both used to convert the third voltage and the third current into a fourth voltage and a fourth current. The fourth voltage and the fourth current are used for fast charging of the third battery.
[0025] Exemplarily, the power supply interface may be Figure 8 The VBUS pin in the embodiment. The first fast charging circuit can be Figure 8 The first SC circuit 701 in the embodiment. The second fast charging circuit can be Figure 8 The second SC circuit 702 in the embodiment. The third battery can be Figure 8 The third battery 801 in the embodiment. The first positive electrode can be Figure 8 The first cathode can be Figure 8 The third voltage may be Figure 8 The third voltage in the embodiment. The third current can be Figure 8 The fourth voltage may be Figure 8 The fourth voltage in the embodiment. The fourth current can be Figure 8 The fourth current in the embodiment. The product of the fourth voltage and the fourth current may be less than or equal to the product of the third voltage and the third current. The fourth voltage may be less than or equal to the rated voltage of the third battery. The fourth current may be less than or equal to the rated current of the third battery. The specific implementation principle of this embodiment is the same as Figure 8 The specific implementation principles of the embodiments are similar and will not be repeated here.
[0026] In this way, when the electronic device is connected to the charging device, the first fast charging protocol module of the first fast charging unit can communicate with the charging device according to the fast charging protocol to enable the charging device to fast charge the third battery of the electronic device. When the electronic device is connected to the charging device and the first fast charging protocol module of the first fast charging unit fails to successfully establish a communication connection with the charging device, the second fast charging protocol module of the second fast charging unit can communicate with the charging device according to the fast charging protocol to enable the charging device to fast charge the third battery of the electronic device, thereby reducing the probability of the electronic device failing to fast charge when connected to the charging device. The first fast charging circuit and the second fast charging circuit can simultaneously transmit the fourth voltage and fourth current of fast charging to the third battery, which can further improve the charging efficiency of the third battery.
[0027] In one possible implementation, the electronic device also includes: a power supply interface and a fourth battery, and the fourth battery includes a second positive electrode, a third positive electrode and a second negative electrode. The first fast charging circuit is connected between the power supply interface and the second positive electrode of the fourth battery, and the second fast charging circuit is connected between the power supply interface and the third positive electrode of the fourth battery. The second negative electrode of the fourth battery is grounded. The power supply interface is used to transmit the fifth voltage and the fifth current output by the charging device to the first fast charging circuit and the second fast charging circuit respectively when the electronic device successfully establishes a communication connection with the charging device. The first fast charging circuit and the second fast charging circuit are both used to convert the fifth voltage and the fifth current into a sixth voltage and a sixth current. The sixth voltage and the sixth current are used for fast charging of the fourth battery.
[0028] Exemplarily, the power supply interface may be Fig. 9 The VBUS pin in the embodiment. The first fast charging circuit can be Fig. 9 The first SC circuit 701 in the embodiment. The second fast charging circuit can be Fig. 9 The second SC circuit 702 in the embodiment. The fourth battery can be Fig. 9 The fourth battery 901 in the embodiment. The second positive electrode can be Fig. 9 The second positive electrode in the embodiment. The third positive electrode can be Fig. 9 The third positive electrode in the embodiment. The second negative electrode can be Fig. 9 The fifth voltage may be Fig. 9 The fifth voltage in the embodiment. The fifth current can be Fig. 9 The sixth voltage may be Fig. 9 The sixth voltage in the embodiment. The sixth current can be Fig. 9 The sixth current in the embodiment. The product of the sixth voltage and the sixth current may be less than or equal to the product of the fifth voltage and the fifth current. The sixth voltage may be less than or equal to the rated voltage of the fourth battery. The sixth current may be less than or equal to the rated current of the fourth battery. The specific implementation principle of this embodiment is the same as Fig. 9 The specific implementation principles of the embodiments are similar and will not be repeated here.
[0029] In this way, when the electronic device is connected to the charging device, the first fast charging protocol module of the first fast charging unit communicates with the charging device according to the fast charging protocol to enable the charging device to fast charge the fourth battery of the electronic device. When the electronic device is connected to the charging device and the first fast charging protocol module of the first fast charging unit fails to successfully establish a communication connection with the charging device, the second fast charging protocol module of the second fast charging unit can communicate with the charging device according to the fast charging protocol to enable the charging device to fast charge the fourth battery of the electronic device, thereby reducing the probability of the electronic device failing to fast charge when connected to the charging device. The first fast charging circuit and the second fast charging circuit can simultaneously transmit the sixth voltage and sixth current of fast charging to the fourth battery, which can further improve the fast charging efficiency of the fourth battery.
[0030] In a possible implementation, the electronic device further includes a step-down circuit, which is used to slowly charge the electronic device when the electronic device fails to establish a communication connection with the charging device.
[0031] Exemplarily, the buck circuit may be Figure 7 Buck circuit 705 in the embodiment. The specific implementation principle of the buck circuit in this embodiment is similar to Figure 7 The specific implementation principle of the buck circuit 705 of the resistor R3 in the embodiment is similar and will not be repeated here.
[0032] In this way, when neither the first fast charging unit nor the second fast charging unit can successfully establish a communication connection with the charging device, the charging device can slowly charge the battery of the electronic device through the step-down circuit, thereby reducing the probability of the electronic device failing to charge when the electronic device is connected to the charging device.
[0033] In a second aspect, an embodiment of the present application provides a control method, which is applied to the electronic device of the first aspect, and the method includes: when the electronic device is connected to a charging device, instructing the first fast charging protocol module to communicate and connect with the charging device in accordance with the fast charging protocol, and when the communication connection result transmitted by the first fast charging protocol module is not obtained after the first time period is reached, instructing the second fast charging protocol module to communicate and connect with the charging device in accordance with the fast charging protocol. From the moment when the second fast charging protocol module is instructed to communicate and connect with the charging device in accordance with the fast charging protocol to the time when the first time period is reached, if the result of successfully establishing the communication connection transmitted by the second fast charging protocol module is obtained, the electronic device performs fast charging. Alternatively, from the moment when the second fast charging protocol module is instructed to communicate and connect with the charging device in accordance with the fast charging protocol to the time when the first time period is reached, if the result of successfully establishing the communication connection transmitted by the second fast charging protocol module is not obtained, the electronic device performs slow charging.
[0034] It can be understood that the specific implementation principle of the control method of the second aspect can refer to the specific implementation principle of the first aspect, which will not be repeated here.
[0035] In this way, when the electronic device is connected to the charging device, the first fast charging unit communicates with the charging device according to the fast charging protocol to enable the charging device to fast charge the battery of the electronic device. When the electronic device is connected to the charging device and the communication connection between the first fast charging unit and the charging device fails, the second fast charging unit can communicate with the charging device according to the fast charging protocol to enable the charging device to fast charge the battery of the electronic device, thereby reducing the probability that the electronic device cannot be fast charged when it is connected to the charging device. In the case where both the first fast charging unit and the second fast charging unit cannot successfully establish a communication connection with the charging device, the charging device can slowly charge the battery of the electronic device through the step-down circuit, thereby reducing the probability that the electronic device cannot be charged when it is connected to the charging device.
[0036] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory. The memory stores computer-executable instructions. The processor executes the computer-executable instructions stored in the memory, so that the electronic device executes the method of the second aspect.
[0037] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the method of the second aspect is implemented.
[0038] In a fifth aspect, 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 method of the second aspect.
[0039] In a sixth aspect, an embodiment of the present application provides a chip, the chip including a processor, the processor being used to call a computer program in a memory to execute a method as in the second aspect.
[0040] It should be understood that the third to sixth aspects of the present application correspond to the technical solutions of the second aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A schematic diagram of a scenario provided for an embodiment of the present application;
[0042] Figure 2 A schematic diagram of a Type-C interface of an electronic device 100 provided in an embodiment of the present application;
[0043] Figure 3A circuit diagram of an electronic device in a possible implementation;
[0044] Figure 4 A circuit diagram of an electronic device provided in an embodiment of the present application;
[0045] Figure 5 Another circuit diagram of an electronic device provided in an embodiment of the present application;
[0046] Figure 6 Another circuit diagram of an electronic device provided in an embodiment of the present application;
[0047] Figure 7 Another circuit diagram of an electronic device provided in an embodiment of the present application;
[0048] Figure 8 Another circuit diagram of an electronic device provided in an embodiment of the present application;
[0049] Fig. 9 Another circuit diagram of an electronic device provided in an embodiment of the present application;
[0050] Fig.10 A circuit deployment diagram of a foldable electronic device provided in an embodiment of the present application;
[0051] Fig.11 Another scene diagram provided for an embodiment of the present application. DETAILED DESCRIPTION
[0052] In order to clearly describe the technical solutions of the embodiments of the present application, some technical terms and techniques involved in the embodiments of the present application are briefly introduced below.
[0053] 1. External interface
[0054] The external interface includes a universal serial bus Type-C (USB Type-C) interface. The USB Type-C interface can be referred to as a Type-C interface.
[0055] The Type-C interface includes data transmission pins and charging pins. For example, the D+ pin and the D- pin in the Type-C interface are both data transmission pins. The VBUS pin in the Type-C interface is a charging pin.
[0056] For example, when an external device is connected to an electronic device, the electronic device can interact with the charger through the D-pin and D+pin of the Type-C interface to complete the 1.2 version of the battery charging protocol (battery charging v1.2, BC1.2) to determine whether the external device has a charging function. If the external device has a charging function, the external device can transmit the slow charging voltage and current to the electronic device through the VBUS pin.
[0057] 2. Battery Charging Protocol Version 1.2 (BC1.2)
[0058] BC1.2 is a protocol for regulating battery charging requirements. If an external device connected to an electronic device supports the BC1.2 protocol, the external device can provide the electronic device with a slow charging voltage and current to power the electronic device and / or to slowly charge the electronic device. The slow charging voltage includes a charging voltage of 5V, and the slow charging current includes a charging current of 500 milliamperes (mA), 1 ampere (A), 1.5A or 2A.
[0059] The BC1.2 protocol includes a charging port identification mechanism for external devices. The charging port of an external device is, for example, a Type-C interface. The charging port identification mechanism may include the following stages:
[0060] VBUS detection stage, during which the electronic device can determine whether the VBUS of the Type-C interface of the external device is valid.
[0061] The data contact detect phase is when the electronic device can detect the data connection of the Type-C interface of the external device.
[0062] The primary detection phase is when the electronic device can determine whether the Type-C interface of the external device is a charging port or a data port.
[0063] The secondary detection phase is when the electronic device can determine whether the Type-C interface of the external device supports the data protocol.
[0064] Exemplarily, when an external device is connected to an electronic device, the electronic device interacts with the external device. After the electronic device determines that the VBUS of the Type-C interface of the external device is valid during the VBUS detection phase, the electronic device and the external device enter into the data connection detection phase of interaction. After the data connection detection phase is completed, the electronic device and the external device enter into the first detection phase of interaction. After the electronic device determines that the Type-C interface of the external device is a charging port during the first detection phase, the electronic device and the external device enter into the secondary detection phase of interaction. The completion of the secondary detection phase indicates that the electronic device has completed the BC1.2 judgment.
[0065] If the external device has a charging function, when the electronic device completes the BC1.2 judgment, the external device can transmit the slow charging voltage and current to the electronic device, can supply power to the electronic device, and can also realize the slow charging of the electronic device.
[0066] It is understandable that if the Type-C interface of the external device is a charging port, it can indicate that the external device has a charging function, or that the external device is a charging type.
[0067] 3. shake hands
[0068] Handshake can refer to the process by which two electronic devices authenticate each other by exchanging information.
[0069] 4. Super charge protocol (SCP)
[0070] The SCP protocol is a charging protocol that achieves fast charging of electronic devices by changing the combination of charger output voltage and current. The SCP protocol also specifies the interaction rules and hardware implementation methods between the charger and the electronic device.
[0071] For example, take the external device as a fast charging charger. When the electronic device completes the BC1.2 judgment and has determined that the Type-C interface of the fast charging charger is the charging port, the electronic device can handshake with the fast charging charger according to the SCP protocol to determine whether the fast charging charger supports the SCP protocol. If the electronic device and the fast charging charger shake hands successfully, it means that the fast charging charger supports the SCP protocol. If the electronic device and the fast charging charger do not shake hands successfully, it means that the fast charging charger does not support the SCP protocol. After the handshake is successful, the fast charging charger can fast charge the electronic device.
[0072] Exemplarily, the process of an electronic device shaking hands with a fast charging charger according to the SCP protocol may include: the electronic device sends a fast charging message to the fast charging charger. The fast charging message contains the voltage and current of the fast charging specified by the SCP protocol. If the fast charging charger supports the SCP protocol, the fast charging charger will return a confirmation message. If the electronic device receives the confirmation message, it means that the electronic device has successfully shaken hands with the fast charging charger. It is understandable that if the fast charging charger does not support the SCP protocol, the fast charging charger may return a denial message, or the fast charging charger may not return a confirmation message. If the electronic device does not receive a confirmation message, it means that the handshake between the electronic device and the fast charging charger has failed.
[0073] Optionally, the process of the electronic device shaking hands with the fast charging charger according to the SCP protocol may also include: the electronic device transmits the first voltage specified in the SCP protocol to the fast charging charger through the D-pin and the D+ pin in the Type-C interface. The fast charging charger detects the first voltage between the D-pin and the D+ pin in the Type-C interface. If the fast charging charger supports the SCP protocol, the fast charging charger transmits the second voltage specified in the SCP protocol to the electronic device through the D-pin and the D+ pin in the Type-C interface. The electronic device detects the second voltage between the D-pin and the D+ pin, indicating that the electronic device and the fast charging charger have successfully shaken hands. Both the first voltage and the second voltage belong to the voltages for handshake specified in the SCP protocol. The first voltage is different from the second voltage. It is understandable that if the fast charging charger does not support the SCP protocol, the fast charging charger can transmit a third voltage to the electronic device through the D-pin and the D+ pin in the Type-C interface. The electronic device detects the third voltage between the D-pin and the D+ pin, indicating that the electronic device and the fast charging charger have failed to shake hands.
[0074] After the handshake is successful, the fast charging charger can transmit the fast charging voltage and current to the electronic device through the VBUS pin in the Type-C interface. It can be understood that the voltage and current of fast charging are different from those of slow charging.
[0075] 5. Electronic equipment
[0076] The electronic device of the embodiment of the present application may be any form of electronic device. For example, the electronic device may include a handheld device, a vehicle-mounted device, etc. with an image processing function. For example, some electronic devices are: 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, electronic devices in 5G networks or future evolved public land mobile communication networks (public land mobile The electronic devices in the network (PLMN) and the like are not limited to this in the embodiments of the present application.
[0077] As an example but not 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 powerful functions achieved through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include full-featured, large-sized, and fully or partially independent of smartphones, such as smart watches or smart glasses, as well as devices 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 types of smart bracelets and smart jewelry for vital sign monitoring.
[0078] In addition, in the embodiments of the present application, the electronic device may also be an electronic device in an 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 that interconnects people and machines and things.
[0079] 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.
[0080] 6. In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0081] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" 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: A exists alone, A and B exist at the same time, and B exists 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" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0082] It should be noted that the "at..." in the embodiment of the present application can be the instant when a certain situation occurs, or a period of time after a certain situation occurs, and the embodiment of the present application does not specifically limit this. In addition, the display interface provided in the embodiment of the present application is only an example, and the display interface can also include more or less content.
[0083] Figure 1 A schematic diagram of a scenario provided in an embodiment of the present application. Figure 1As shown, the electronic device may include a Type-C interface. The Type-C interface can realize the connection between the electronic device and an external device. The external device may be a charger, an analog headset (with a 3.5mm headset interface) or other electronic devices. Other electronic devices may be electronic devices that do not have a charging function. The charger may include a fast charging charger.
[0084] like Figure 1 As shown, the scene may include an electronic device 100, a charger 101 and a charging cable 102. The electronic device 100 and the charger 101 may be connected via the charging cable 102, and both the electronic device 100 and the charging cable 102 are provided with a Type-C interface.
[0085] The electronic device 100 may include a foldable electronic device. Figure 1 As shown, the foldable electronic device may include a first folding part, a second folding part and a rotating shaft. The rotating shaft is used to connect the first folding part and the second folding part. The first folding part may include a camera. The second folding part may include an external screen.
[0086] The charger 101 can be connected to the Type-C interface on the electronic device 100 through the Type-C interface on the charging cable 102 to charge the electronic device. The Type-C interface on the charging cable 102 can be called a Type-C male connector, and the Type-C interface on the electronic device 100 can be called a Type-C female connector.
[0087] It should be understood that Figure 1 The Type-C interface of the electronic device shown in the figure is only an example and does not limit the form of the external interface of the electronic device 100 in the present application. In addition, the charger and charging cable in the embodiment of the present application can also be replaced by other external devices connected to the electronic device. The external device can be connected to the electronic device through the Type-C interface or wirelessly.
[0088] For example, Figure 2 A schematic diagram of a Type-C interface of an electronic device 100 is shown.
[0089] like Figure 2 As shown in the figure, the Type-C interface includes 24 pins, namely A1-A12 and B1-B12. Because the functions of A1-A12 and B1-B12 are similar, the following takes pins A1-A12 as an example to explain the function of each pin.
[0090] Pins A1 and A12: Ground pins, also called GND pins.
[0091] Pins A2 and A3: data transmission pins, also known as TX1+ pin and TX1- pin, can be used for compatibility with USB3.0 and USB3.1.
[0092] 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 known as the VBUS pin.
[0093] Pin A5: External device detection pin, also known as CC1 pin, used to detect the type of external device. The types of external devices may include: downstream facing port (DFP) devices, upstream facing port (UFP) devices, and charging type devices.
[0094] Pins A6 and A7: Data transmission pins, also known as 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 USB decoding chip built into the charger can determine the voltage that the charger needs to output based on the voltage signal to quickly charge the electronic device. In normal charging mode (not using fast charging), the charging voltage transmitted by the above VBUS pin is generally not more than 5V. In fast charging mode, the charging voltage transmitted can be as high as 20V.
[0095] In the embodiment of the present application, the D+ pin may also be referred to as a first data transmission pin, and the D- pin may also be referred to as a second data transmission pin.
[0096] Pins A6 and A7 can be used for compatibility with USB2.0.
[0097] Pin A8: Function expansion pin, also known as SBU1 pin.
[0098] Pins A10 and A11: data receiving pins, also known as RX2+ pin and RX2- pin, can be used for compatibility with USB3.0 and USB3.1.
[0099] The functions of B1-B12 correspond to A1-A12, and will not be repeated here. B1-B12 can be called: GND, TX2+, TX2-, VBUS, CC2, D+, D-, SBU2, VBUS, RX1+, RX1-, GND respectively.
[0100] Pins A1-A12 correspond to the A-layer gold fingers, and pins B1-B12 correspond to the B-layer gold fingers. Figure 2 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 at other places.
[0101] Figure 3 A circuit diagram of an electronic device in a possible implementation is shown.
[0102] like Figure 3 As shown, the electronic device may include a Type-C interface 301, a protocol chip (integrated circuit chip, IC) 302, a power management IC (power management IC, PMIC) 303, a system-level chip (system on chip, SoC) 304, a first fuel gauge 305 and a second fuel gauge 306. The data transmission pins of the Type-C interface 301 are respectively connected to the protocol IC 302, the PMIC 303 and the SoC 304. The SoC 304 is respectively connected to the protocol IC 302, the PMIC 303, the first fuel gauge 305 and the second fuel gauge 306 through an integrated circuit bus (inter-integrated circuit, IIC).
[0103] Among them, PMIC 303 is used to interact with the fast charging charger according to the BC1.2 protocol when the Type-C interface 301 is connected to the fast charging charger to complete the BC1.2 judgment; it is also used to maintain the flag bit identification indicating the port attribute of the external device in the corresponding register of PMIC 303 as the identification indicating the charging port when judging that the Type-C interface of the fast charging charger is a charging port; it is also used to transmit an interrupt to SoC 304 when completing the BC1.2 judgment. The identification indicating the charging port can be called the charging port identification.
[0104] SoC 304 is used to read the flag bit identification indicating the attribute of the external device port from the corresponding register of PMIC 303 when receiving the interruption transmitted by PMIC 303; it is also used to instruct protocol IC 302 to handshake with the fast charging charger according to the SCP protocol preset in the electronic device when reading the charging port identification.
[0105] The protocol IC 302 is used to shake hands with the fast charging charger according to the preset SCP protocol when receiving the handshake instruction from the SoC 304; it is also used to maintain the flag bit indicating the handshake status in the corresponding register of the protocol IC 302 as an indication of successful handshake when the protocol IC 302 and the fast charging charger shake hands successfully, and transmit an interrupt to the SoC 304.
[0106] SoC 304 is also used to read the flag indicating the handshake status from the corresponding register of protocol IC 302 when receiving the interrupt transmitted by protocol IC 302; it is also used to read the voltage and current of the corresponding battery measured by the first fuel gauge 305 from the first fuel gauge 305, read the voltage and current of the corresponding battery measured by the second fuel gauge 306 from the second fuel gauge 306, and read the measured temperature from the temperature sensor of the electronic device when reading the flag indicating successful handshake; it is also used to calculate the read voltage, current and temperature according to the SCP protocol to obtain the calculation result, and find the fast charging requirement information corresponding to the calculation result from the SCP protocol, and transmit the fast charging requirement information to protocol IC 302. The fast charging requirement information includes the information of the voltage and current required for fast charging of the battery.
[0107] The protocol IC 302 is also used to transmit the fast charging requirement information to the fast charging charger through the data transmission pin of the Type-C interface 301 when receiving the fast charging requirement information, so that the fast charging charger transmits the fast charging voltage and current corresponding to the fast charging requirement information to the electronic device through the VBUS pin of the Type-C interface 301, thereby realizing fast charging of the electronic device.
[0108] It is understandable that the data transmission pins of the Type-C interface 301, the protocol IC 302, and the SoC 304 constitute a fast charging protocol handshake link of the electronic device. If the transmission link between the data transmission pin of the Type-C interface 301 and the protocol IC 302 fails, and / or the IIC communication between the protocol IC 302 and the SoC 304 fails or fails, the protocol IC 302 cannot shake hands with the fast charging charger, and the fast charging charger cannot receive the fast charging demand information, and the fast charging charger cannot transmit the fast charging voltage and current to the electronic device. Therefore, once this fast charging protocol handshake link of the electronic device fails, the electronic device will not be able to perform fast charging when the fast charging charger is connected to the electronic device.
[0109] For foldable electronic devices, foldable electronic devices may include an inner screen and an outer screen, which makes the foldable electronic device consume more power. Users often use fast charging chargers to fast charge the foldable electronic devices, and the number of fast charging is also large. If the foldable electronic device cannot be fast charged after being connected to the fast charging charger, it will reduce the user experience of the foldable electronic device.
[0110] In view of this, an embodiment of the present application provides an electronic device, including a first fast charging protocol module and a second fast charging protocol module, both of which can handshake with a fast charging charger according to the fast charging protocol of the electronic device, and the data transmission pin of the Type-C interface, the first fast charging protocol module and the SoC constitute a fast charging protocol handshake link of the electronic device, and the data transmission pin of the Type-C interface, the second fast charging protocol module and the SoC constitute another fast charging protocol handshake link of the electronic device. When the electronic device is connected to a fast charging charger, if one of the fast charging protocol handshake links of the electronic device fails, the electronic device can handshake with the fast charging charger through another fast charging protocol handshake link to achieve fast charging of the electronic device.
[0111] The electronic device provided by the embodiments of the present application is described below in conjunction with some embodiments.
[0112] Figure 4 A circuit diagram of an electronic device provided in an embodiment of the present application is shown.
[0113] like Figure 4 As shown, the electronic device includes: a Type-C interface 301, a first fast charging protocol module 401, a second fast charging protocol module 402, a PMIC 403, a SoC 404, a first fuel gauge 305, and a second fuel gauge 306. The data transmission pins of the Type-C interface 301 are respectively connected to the first fast charging protocol module 401, the second fast charging protocol module 402, the PMIC 403, and the SoC 404. The SoC 404 is respectively connected to the first fast charging protocol module 401, the second fast charging protocol module 402, the PMIC 403, the first fuel gauge 305, and the second fuel gauge 306 through IIC.
[0114] Among them, PMIC 403 is used to interact with the fast charging charger according to the BC1.2 protocol to complete the BC1.2 judgment when the Type-C interface 301 is connected to the fast charging charger; it is also used to maintain the flag bit indicating the port attribute of the external device in the corresponding register of PMIC 403 as the identifier indicating the charging port when it is determined that the Type-C interface of the fast charging charger is a charging port; it is also used to transmit an interrupt to SoC 404 when the BC1.2 judgment is completed.
[0115] SoC 404 is used to read the flag bit identifier representing the port attribute of the external device from the corresponding register of PMIC 403 when receiving the interruption transmitted by PMIC 403; it is also used to instruct the first fast charging protocol module 401 to shake hands with the fast charging charger according to the SCP protocol preset in the electronic device when reading the charging port identifier; it is also used to start the first timer when instructing the first fast charging protocol module 401 to shake hands with the fast charging charger, and the timing duration of the first timer is the first timing duration. When the first timer reaches the first timing duration and SoC 404 does not receive the interruption transmitted by the first fast charging protocol module 401, it instructs the second fast charging protocol module 402 to shake hands with the fast charging charger according to the preset SCP protocol; it is also used to read the flag bit identifier representing the handshake status in the corresponding register of the first fast charging protocol module 401 when receiving the interruption transmitted by the first fast charging protocol module 401, and when the flag bit identifier representing the handshake status in the corresponding register of the first fast charging protocol module 401 cannot be read, it instructs the second fast charging protocol module 402 to shake hands with the fast charging charger.
[0116] The first fast charge protocol module 401 is used to maintain the flag bit indicating the handshake status in the corresponding register as an identifier indicating a successful handshake when the handshake with the fast charge charger is successful, and transmit an interrupt to the SoC 404.
[0117] Similarly, the second fast charge protocol module 402 is used to maintain the flag bit indicating the handshake status in the corresponding register as an indicator indicating a successful handshake when the handshake with the fast charge charger is successful, and transmit an interrupt to the SoC 404.
[0118] The first fuel gauge 305 is used to measure the voltage and temperature of the corresponding battery. The second fuel gauge 306 is used to measure the voltage and temperature of the corresponding battery.
[0119] SoC 404 is also used to read the flag indicating the handshake status from the corresponding register of the first fast charging protocol module 401 when receiving the interrupt transmitted by the first fast charging protocol module 401; it is also used to read the voltage and current of the battery measured by the first fuel gauge 305 from the first fuel gauge 305, read the voltage and current of the battery measured by the second fuel gauge 306 from the second fuel gauge 306, and read the measured temperature from the temperature sensor of the electronic device when reading the flag indicating successful handshake; it is also used to calculate the read voltage, current and temperature according to the preset SCP protocol to obtain the first calculation result, and find the first fast charging requirement information corresponding to the first calculation result from the preset SCP protocol, and transmit the first fast charging requirement information to the first fast charging protocol module 401. The first fast charging requirement information includes information on the voltage and current required for fast charging of the battery of the electronic device.
[0120] It can be understood that the steps performed by SoC 404 when receiving an interrupt transmitted by the second fast charging protocol module 402 are similar to the steps performed by SoC 404 when receiving an interrupt transmitted by the first fast charging protocol module 401, and will not be repeated here.
[0121] The first fast charging protocol module 401 and the second fast charging protocol module 402 can also be used to transmit the first fast charging requirement information to the fast charging charger through the data transmission pin of the Type-C interface 301 when receiving the first fast charging requirement information transmitted by the SoC 404, so that the fast charging charger transmits the fast charging voltage and current corresponding to the first fast charging requirement information to the electronic device through the VBUS pin of the Type-C interface 301, thereby realizing fast charging of the electronic device.
[0122] It can be understood that the data transmission pins of the Type-C interface 301, the first fast charging protocol module 401 and the SoC 404 constitute a fast charging protocol handshake link of the electronic device. The data transmission pins of the Type-C interface 301, the second fast charging protocol module 402 and the SoC 404 constitute another fast charging protocol handshake link of the electronic device. If a fast charging protocol handshake link in an electronic device fails, the electronic device can handshake with the fast charging charger through another fast charging protocol handshake link to achieve fast charging of the electronic device, which can reduce the probability of the electronic device failing to perform fast charging after being connected to the fast charging charger.
[0123] Taking the fast charging protocol handshake link composed of the data transmission pin of the Type-C interface 301, the first fast charging protocol module 401 and the SoC 404 as an example, the fast charging protocol handshake link failure of the electronic device includes the following scenarios 1 and 2.
[0124] Scenario 1: When the fast charging charger is connected to the electronic device, the link between the first fast charging protocol module 401 and the SoC 404 fails, and / or the link between the first fast charging protocol module 401 and the data transmission pin of the Type-C interface 301 fails, so that the SoC 404 cannot receive the interruption of the transmission of the first fast charging protocol module 401 when the first timer reaches the first timing duration.
[0125] Scenario 2: When the fast charging charger is connected to an electronic device, the first fast charging protocol module 401 fails, for example, the register corresponding to the first fast charging protocol module 401 fails, so that the SoC 404 cannot read the flag indicating the handshake status in the register corresponding to the first fast charging protocol module 401 when receiving the interrupt transmitted by the first fast charging protocol module 401.
[0126] For situation one, when the first timer reaches the first timing duration and SoC 404 cannot receive the interruption transmitted by the first fast charging protocol module 401, SoC 404 can instruct the second fast charging protocol module 402 to handshake with the fast charging charger to achieve fast charging of the electronic device.
[0127] For situation two, when SoC 404 receives an interrupt transmitted by the first fast charging protocol module 401, but cannot read the flag bit identifier indicating the handshake status in the register corresponding to the first fast charging protocol module 401, SoC 404 can instruct the second fast charging protocol module 402 to shake hands with the fast charging charger to achieve fast charging of the electronic device. For example, when SoC 404 receives an interrupt transmitted by the first fast charging protocol module 401, SoC 404 reads the flag bit identifier indicating the handshake status in the register corresponding to the first fast charging protocol module 401. If SoC 404 reads the flag bit identifier indicating the handshake status in the register corresponding to the first fast charging protocol module 401 for m consecutive times and does not read the flag bit identifier indicating the handshake status, SoC 404 instructs the second fast charging protocol module 402 to shake hands with the fast charging charger. Wherein, m is a preset value, and m is an integer greater than 1.
[0128] Optionally, after reading the handshake success mark, SoC 404 can read the voltage and current of the battery measured by the first fuel gauge 305 from the first fuel gauge 305 in real time or periodically, read the voltage and current of the battery measured by the second fuel gauge 306 from the second fuel gauge 306, and read the measured temperature from the temperature sensor of the electronic device. SoC 304 calculates the voltage, current and temperature read each time according to the SCP protocol to obtain a first calculation result, and finds the first fast charging requirement information corresponding to the first calculation result from the SCP protocol, and transmits the first fast charging requirement information to the protocol IC 302. Protocol IC 302 can also transmit the first fast charging requirement information to the fast charging charger through the data transmission pin of the Type-C interface 301 in real time or periodically.
[0129] In this way, the fast charging charger can transmit the fast charging voltage and current corresponding to the first fast charging demand information to the electronic device in real time or periodically, so as to adjust the fast charging voltage and current transmitted to the electronic device. The first fast charging demand information includes the voltage and current required for fast charging that matches the charging state of the battery. During the fast charging process of the electronic device, the fast charging voltage and current transmitted by the fast charging charger to the electronic device can match the charging state of the battery, thereby reducing the probability of shortening the battery life due to the mismatch between the charging state of the battery and the voltage and current transmitted by the fast charging charger.
[0130] The electronic device provided in this embodiment includes a Type-C interface, a first fast charging protocol module, a second fast charging protocol module, a PMIC, a SoC, a first fuel gauge and a second fuel gauge. When the fast charging charger is connected to the electronic device, and the fast charging protocol handshake link composed of the data transmission pin of the Type-C interface, the first fast charging protocol module and the SoC fails or the fast charging protocol handshake link composed of the data transmission pin of the Type-C interface 301, the second fast charging protocol module and the SoC fails, the electronic device can handshake with the fast charging charger through the fast charging protocol handshake link that is not failed, and transmit the first fast charging requirement information to the fast charging charger, so that the fast charging charger transmits the fast charging voltage and current corresponding to the first fast charging requirement information to the electronic device, and realizes fast charging of the electronic device, reducing the probability of the electronic device not being able to be fast charged when the fast charging charger is connected to the electronic device. In addition, during the fast charging process of the electronic device, the fast charging charger can transmit the fast charging voltage and current that match the charging state of the electronic device to the electronic device, so that the probability of the battery life being shortened due to the mismatch between the charging state of the battery and the voltage and current transmitted by the fast charging charger can be reduced, thereby improving the user experience.
[0131] In one possible scenario, static electricity may occur in the circuit of the electronic device. To reduce the damage of the first fast charging protocol module 401 and the second fast charging protocol module 402 due to static electricity in the circuit, Figure 5 Another circuit diagram of an electronic device according to an embodiment of the present application is shown.
[0132] like Figure 5 As shown, in Figure 4 On the basis of, the electronic device also includes a resistor R1, a resistor R2 and a resistor R3. Among them, the resistor R1 is connected between the first fast charging protocol module 401 and the data transmission pin of the Type-C interface 301. The resistor R2 is connected between the second fast charging protocol module 402 and the data transmission pin of the Type-C interface 301. The resistor R3 is connected between the PMIC 403 and the data transmission pin of the Type-C interface 301. The resistor R1, the resistor R2 and the resistor R3 can all be 1 kilo-ohm (KΩ) resistors.
[0133] In this way, resistor R1 can divide the static electricity in the circuit, thereby reducing the probability of the first fast charging protocol module 401 being damaged by static electricity. Similarly, resistor R2 can divide the static electricity in the circuit, thereby reducing the probability of the second fast charging protocol module 402 being damaged by static electricity. Resistor R3 can divide the static electricity in the circuit, thereby reducing the probability of the PMIC 403 being damaged by static electricity.
[0134] It is understandable that the resistor divides the static electricity in the circuit, which is an example of an electrostatic protection method, rather than a limitation of the electrostatic protection method of the electronic device in the embodiment of the present application. Exemplarily, a voltage clamping module, an inductor, and any one of a resistor and an inductor connected in series can be connected between the first fast charge protocol module 401 and the data transmission pin of the Type-C interface 301 for electrostatic protection.
[0135] In one possible scenario, the electronic device is disconnected from the fast charging charger and connected to other external devices without charging function. The SoC communicates with the other connected external devices through the data transmission pins of the Type-C interface. It should be understood that the signal transmitted between the SoC and the data transmission pins of the Type-C interface is a high-frequency signal. High-frequency signals can also be called USB signals. The data transmission pins of the SoC and the Type-C interface constitute a high-frequency signal transmission link. The circuit branches (stubs) on the high-frequency signal transmission link will affect the transmission quality of the high-frequency signal. Figure 4 As shown, the circuit branches on the high-frequency signal transmission link include a link between the first fast charging protocol module 401 and the data transmission pin of the Type-C interface 301, a link between the second fast charging protocol module 402 and the data transmission pin of the Type-C interface 301, and a link between the PMIC 403 and the data transmission pin of the Type-C interface 301. Resistors R1, R2, and R3 can also present a high impedance state to high-frequency signals on their respective circuit branches, thereby reducing the impact of circuit branches on the transmission quality of high-frequency signals. It can be understood that since the signals transmitted between the first fast charging protocol module 401, the second fast charging protocol module 402, and the PMIC 403 and the data transmission pins of the Type-C interface are all low-frequency signals, resistors R1, R3, and R2 will not affect the transmission of low-frequency signals.
[0136] Alternatively, if Figure 5 As shown, the electronic device may further include a resistor R4, which is connected between the SoC 404 and the data transmission pin of the Type-C interface 301. The resistor R4 may be used to isolate static electricity in the circuit, reduce the probability of damage to the SoC 404 due to static electricity, and may also be used to adjust the quality of high-frequency signal transmission. For example, the resistor R4 may be a 4.7Ω resistor or a resistor of other resistance values.
[0137] For better electrostatic protection, the resistor R1 can be deployed close to the first fast charge protocol module 401. The resistor R3 can be deployed close to the PMIC 403. The resistor R2 can be deployed close to the second fast charge protocol module 402.
[0138] In order to further improve the electrostatic protection effect and reduce the impact of circuit branches on the high-frequency signal transmission link on the high-frequency signal transmission quality, Figure 6 Another circuit diagram of the electronic device according to the embodiment of the present application is shown.
[0139] like Figure 6 As shown, in Figure 5 On the basis of, the electronic device also includes a switch 601 and a switch 602. The switch 601 is connected between the data transmission pin of the Type-C interface 301 and the first fast charging protocol module 401, and the deployment position of the switch 601 is close to the data transmission pin of the Type-C interface 301. The switch 602 is connected between the data transmission pin of the Type-C interface 301 and the second fast charging protocol module 402, and the deployment position of the switch 602 is close to the data transmission pin of the Type-C interface 301.
[0140] By way of example, the switch 601 and the switch 602 may both be metal oxide semiconductor field effect transistors (MOSFETs). The SoC 404 is connected to a control terminal of the switch 601 and a control terminal of the switch 602, respectively.
[0141] PMIC 403 can also be used to maintain the flag bit indicating the port attribute of the external device in the corresponding register of PMIC 403 as the first initialization flag when the Type-C interface 301 is disconnected from the fast charging charger, and transmit an interrupt to SoC 404.
[0142] SoC 404 is also used to control the general purpose input / output voltage (GPIO) of the control end of switch 601 to turn on switch 601 when instructing the first fast charge protocol module 401 to shake hands with the fast charge charger; it is also used to control the GPIO of the control end of switch 602 to turn on switch 602 when instructing the second fast charge protocol module 402 to shake hands with the fast charge charger, and control the GPIO of the control end of switch 601 to turn off switch 601; it is also used to control switch 601 and switch 602 to be in the off state when the first initialization identifier is read from the corresponding register of PMIC 403, and maintain the flag indicating the handshake state in the corresponding registers of the first fast charge protocol module 401 and the second fast charge protocol module 402 as the second initialization identifier. It can be understood that SoC 404 controls switch 601 to be in the off state, for example, SoC 404 controls the GPIO of the control end of switch 601 to turn off switch 601. SoC 404 controls switch 601 to be in an on state, for example, a control terminal GPIO of SoC 404 controls switch 601 to turn on switch 601. Similarly, SoC 404 controls switch 602 to be in an off state, for example, a control terminal GPIO of SoC 404 controls switch 602 to turn off switch 602. SoC 404 controls switch 602 to be in an on state, for example, a control terminal GPIO of SoC 404 controls switch 602 to turn on switch 602.
[0143] In this way, when using the fast charge protocol handshake link composed of the data transmission pin of the Type-C interface 301, the first fast charge protocol module 401 and the SoC 404, the electronic device can control the switch 602 to be in the off state, thereby reducing the probability of the second fast charge protocol module 402 being damaged by static electricity in the circuit. When the Type-C interface is disconnected from the fast charge charger, the electronic device can control both the switch 601 and the switch 602 to be in the off state, which can reduce the probability of the first fast charge protocol module 401 and the second fast charge protocol module 402 being damaged by static electricity in the circuit.
[0144] In addition, since the influence of the circuit branch on the high-frequency signal transmission link on the high-frequency signal transmission quality is related to the length of the circuit branch, the longer the circuit branch, the greater the influence of the circuit branch on the high-frequency signal transmission quality. The shorter the circuit branch, the smaller the influence of the circuit branch on the high-frequency signal transmission quality.
[0145] Taking the circuit branch where switch 601 and the first fast charging protocol module 401 are located as an example, when switch 601 is turned on, the end point of the circuit branch that affects the quality of high-frequency signal transmission is the location of the first fast charging protocol module 401. When switch 601 is turned off, the end point of the circuit branch that affects the quality of high-frequency signal transmission is the location of switch 601. Compared with the length of the circuit branch that affects the quality of high-frequency signal transmission when switch 601 is turned on, the length of the circuit branch that affects the quality of high-frequency signal transmission is shortened when switch 601 is turned off, so that the influence of the circuit branch on the quality of high-frequency signal transmission is reduced when switch 601 is turned off.
[0146] The transmission quality of high-frequency signals can be represented by an eye diagram. The clearer or more regular the eye diagram is, the better the transmission quality of the high-frequency signal is. It has been verified through experiments that the eye diagram when switches 601 and 602 are in the off state is clearer than the eye diagram when switches 601 and 602 are in the on state. In other words, compared with the eye diagram when switches 601 and 602 are in the off state, the eye diagram when switches 601 and 602 are in the on state may be degraded.
[0147] In this way, when switch 601 is in the off state, the influence of the circuit branch where switch 601 is located on the quality of high-frequency signal transmission can be reduced. Similarly, when switch 602 is in the off state, the influence of the circuit branch where switch 602 is located on the quality of high-frequency signal transmission can be reduced. When the connection between the Type-C interface 301 and the fast charging charger is disconnected, both switch 601 and switch 602 are controlled to be in the off state, reducing the influence of the circuit branch where switch 601 is located and the circuit branch where switch 602 is located on the quality of high-frequency signal transmission.
[0148] Alternatively, if Figure 6 As shown, the electronic device may further include an audio processing unit 603 and a switch 604. The switch 604 is connected between the audio processing unit 603 and the data transmission pin of the Type-C interface 301, and the deployment position of the switch 604 is close to the data transmission pin of the Type-C interface 301. The control end of the switch 604 is connected to the SoC 404. The switch 604 may be a MOSFET.
[0149] The audio processing unit 603 is used to receive an audio signal transmitted from an external device to the electronic device through the data transmission pin of the Type-C interface 301, and process the received audio signal.
[0150] PMIC 403 is also used to maintain the flag bit indicating the port attribute of the external device in the corresponding register as the flag indicating the headphone port when the Type-C interface 301 is connected to the external device and identifies that the port of the external device is the headphone port, and send an interrupt to SoC404; and is also used to maintain the flag bit indicating the port attribute of the external device in the corresponding register as the first initialization flag when the Type-C interface 301 is disconnected from the external device, and send an interrupt to SoC 404. The flag indicating the headphone port can be called the headphone port flag.
[0151] SoC 404 is also used to turn on switch 604 through the GPIO of the control end of control switch 604 when the headphone port identifier is read from the corresponding register of PMIC 403; and is also used to turn off switch 604 through the GPIO of the control end of control switch 604 when the charging port identifier or the first initialization identifier is read from the corresponding register of PMIC 403.
[0152] Since the link formed by the audio processing unit 603 and the data transmission pin of the Type-C interface 301 is a circuit branch on the high-frequency signal transmission link, it will also affect the transmission quality of the high-frequency signal. Therefore, when the Type-C interface 301 is not connected to an analog headset, the SoC 404 can control the switch 604 to be in the off state. In this way, the influence of the circuit branch where the switch 604 is located on the high-frequency signal transmission quality can be reduced.
[0153] Figure 7 Another circuit diagram of an electronic device provided by an embodiment of the present application is shown.
[0154] like Figure 7 As shown, in Figure 6 On the basis of, the electronic device also includes a first super charger (SC) circuit 701, a second SC circuit 702, a first battery 703 and a second battery 704.
[0155] The VBUS pins of the Type-C interface 301 are connected to the first battery 703 and the second battery 704, respectively. The first SC circuit 701 is connected between the VBUS pin of the Type-C interface 301 and the first battery 703. The second SC circuit 702 is connected between the VBUS pin of the Type-C interface 301 and the second battery 704. One end of the first fuel gauge 305 is connected to the first battery 703, and the other end of the first fuel gauge 305 is grounded. One end of the second fuel gauge 306 is connected to the second battery 704, and the other end of the second fuel gauge 306 is grounded.
[0156] The first fuel gauge 305 is used to measure the voltage and temperature of the first battery 703. The second fuel gauge 306 is used to measure the voltage and temperature of the second battery 704.
[0157] like Figure 4 As described in the embodiment, when SoC 404 reads the handshake success mark, it reads the voltage and current of the battery measured by the first fuel gauge 305 from the first fuel gauge 305, reads the voltage and current of the battery measured by the second fuel gauge 306 from the second fuel gauge 306, and reads the measured temperature from the temperature sensor of the electronic device. SoC 404 calculates the read voltage, current and temperature according to the SCP protocol preset by the electronic device to obtain a first calculation result, and finds the first fast charging requirement information corresponding to the first calculation result from the preset SCP protocol, so that the fast charging charger transmits the first voltage and first current of the fast charging corresponding to the first fast charging requirement information to the electronic device.
[0158] The first SC circuit 701 is used to convert the first voltage and the first current transmitted by the fast charging charger through the VBUS pin of the Type-C interface 301 into a second voltage and a second current, and transmit the second voltage and the second current to the first battery 703. The product of the second voltage and the second current is less than or equal to the product of the first voltage and the first current. The second voltage is less than or equal to the rated voltage of the first battery. The second current is less than or equal to the rated current of the first battery.
[0159] Similarly, the second SC circuit 702 is used to convert the first voltage and the first current transmitted by the fast charging charger through the VBUS pin of the Type-C interface 301 into a second voltage and a second current, and transmit the second voltage and the second current to the second battery 704 to realize fast charging of the second battery 704. The second voltage is less than or equal to the rated voltage of the second battery. The second current is less than or equal to the rated current of the second battery.
[0160] Exemplarily, the first SC circuit 701 can convert the 9V voltage and 6A current output by the fast charging charger through the VBUS pin of the Type-C interface 301 into 4.5V voltage and 12A current, and transmit the 4.5V voltage and 12A current to the first battery 703 to achieve fast charging of the first battery 703.
[0161] It is understandable that the rated voltage and rated current of the battery may be determined by the battery manufacturer. The voltage transmitted to the battery is less than or equal to the rated voltage of the battery, and the current transmitted to the battery is less than or equal to the rated current of the battery, which can reduce the probability of shortening the battery life due to the input voltage exceeding the rated voltage and / or the input current exceeding the rated current.
[0162] Alternatively, if Figure 7 As shown, the first fast charge protocol module 401 and the first SC circuit 701 can be integrated in the first band protocol SC unit 706. The second fast charge protocol module 402 and the second SC circuit 702 can be integrated in the second band protocol SC unit 707.
[0163] In one possible scenario, the fast charging protocol handshake link composed of the data transmission pin of the Type-C interface 301, the first fast charging protocol module 401 and the SoC 404 fails, and the fast charging protocol handshake link composed of the data transmission pin of the Type-C interface 301, the second fast charging protocol module 402 and the SoC 404 also fails, and the electronic device cannot form a handshake with the fast charging charger. Then the fast charging charger can transmit the slow charging voltage and current to the electronic device through the VBUS pin of the Type-C interface 301 to slowly charge the electronic device. In this regard, if Figure 7 As shown, in Figure 6 On the basis of , the PMIC 403 further includes a buck circuit 705 .
[0164] The buck circuit 705 is connected between the VBUS pin of the Type-C interface 301 and the first battery 703 , and the buck circuit 705 is also connected between the VBUS pin of the Type-C interface 301 and the second battery 704 .
[0165] The buck circuit 705 is used to convert the slow charging voltage and current transmitted by the fast charging charger through the VBUS pin of the Type-C interface 301 into the slow charging voltage and current of the battery, so as to realize the slow charging of the first battery 703 and the second battery 704.
[0166] Exemplarily, when SoC 404 instructs the second fast charging protocol module 402 to shake hands with the fast charging charger and start the first timer, if no interruption is received from the second fast charging protocol module 402 when the first timer reaches the first timing duration, SoC 404 turns off the switch 602 and controls the buck circuit 705 to convert the slow charging voltage and current transmitted by the fast charging charger into the slow charging voltage and current of the battery, so as to realize slow charging of the first battery 703 and the second battery 704, and reduce the probability of the electronic device failing to charge when the electronic device is connected to the fast charging charger.
[0167] In one possible scenario, an electronic device includes a battery. Figure 8 FIG. 2 shows another circuit diagram of an electronic device provided in an embodiment of the present application. Figure 8As shown, the electronic device includes: a Type-C interface 301, a first fast charging protocol module 401, a second fast charging protocol module 402, a PMIC 403, a SoC 404, a third battery 801, a third fuel gauge 802, a resistor R1, a resistor R3, a resistor R2, a resistor R4, a switch 601, a switch 602, an audio processing unit 603, a switch 604, a first SC circuit 701, a second SC circuit 702 and a buck circuit 705. The third battery 801 includes a first positive electrode and a first negative electrode.
[0168] Figure 8 and Figure 7 The difference is that Figure 8 The first fuel gauge 305, the second fuel gauge 306, the first battery 703 and the second battery 704 are not included. Figure 8 The device includes a third battery 801 and a third fuel gauge 802 .
[0169] exist Figure 8 In the example, the connection mode, implementation principle and technical effect of the Type-C interface 301, the first fast charging protocol module 401, the second fast charging protocol module 402, the PMIC 403, the SoC 404, the resistor R1, the resistor R3, the resistor R2, the resistor R4, the switch 601, the switch 602, the audio processing unit 603, the switch 604, the first SC circuit 701, the second SC circuit 702 and the buck circuit 705 in the circuit can be seen in FIG. Figure 7 The corresponding connection method, implementation principle and technical effect in the circuit shown will not be repeated here.
[0170] like Figure 8 As shown, the first SC circuit 701 is connected between the VBUS pin of the Type-C interface 301 and the first positive electrode of the third battery 801. The second SC circuit 702 is also connected between the VBUS pin of the Type-C interface 301 and the first positive electrode of the third battery 801. The buck circuit 705 is also connected between the VBUS pin of the Type-C interface 301 and the first positive electrode of the third battery 801. The first negative electrode of the third battery 801 is connected to one end of the third fuel gauge 802. The other end of the third fuel gauge 802 is grounded. SoC404 is connected to the third fuel gauge 802 through IIC.
[0171] The third fuel meter 802 is used to measure the voltage and temperature of the third battery 801 .
[0172] Figure 8The SoC 404 in the embodiment is also used to read the voltage and current of the battery measured by the third fuel gauge 802 from the third fuel gauge 802 when a handshake success mark is read, read the measured temperature from the temperature sensor of the electronic device, calculate the read voltage, current and temperature according to the preset SCP protocol to obtain a second calculation result, and find the second fast charging requirement information corresponding to the second calculation result from the preset SCP protocol, so that the fast charging charger transmits the third voltage and third current of the fast charging corresponding to the second fast charging requirement information to the electronic device.
[0173] The first SC circuit 701 and the second SC circuit 702 are both used to convert the third voltage and the third current transmitted by the fast charging charger through the VBUS pin of the Type-C interface 301 into a fourth voltage and a fourth current, and transmit the fourth voltage and the fourth current to the third battery 801. The product of the fourth voltage and the fourth current is less than or equal to the product of the third voltage and the third current. The fourth voltage is less than or equal to the rated voltage of the third battery. The fourth current is less than or equal to the rated current of the third battery. In this way, fast charging of the third battery 801 is achieved, and the first SC circuit 701 and the second SC circuit 702 can simultaneously transmit the fourth voltage and the fourth current to the third battery 801, which can further improve the charging efficiency of the third battery 801.
[0174] For scenarios where the electronic device includes a battery, Fig. 9 FIG. 2 shows another circuit diagram of an electronic device provided in an embodiment of the present application. Fig. 9 As shown, the electronic device includes: a Type-C interface 301, a first fast charging protocol module 401, a second fast charging protocol module 402, a PMIC 403, a SoC 404, a fourth battery 901, a fourth fuel gauge 902, a resistor R1, a resistor R3, a resistor R2, a resistor R4, a switch 601, a switch 602, an audio processing unit 603, a switch 604, a first SC circuit 701, a second SC circuit 702 and a buck circuit 705. The fourth battery 901 includes a second positive electrode, a third positive electrode and a second negative electrode.
[0175] Fig. 9 and Figure 8 The difference is that Fig. 9 The third battery 801 and the third fuel gauge 802 are not included. Fig. 9 The device includes a fourth battery 901 and a fourth fuel gauge 902 .
[0176] exist Fig. 9In the example, the connection mode, implementation principle and technical effect of the Type-C interface 301, the first fast charging protocol module 401, the second fast charging protocol module 402, the PMIC 403, the SoC 404, the resistor R1, the resistor R3, the resistor R2, the resistor R4, the switch 601, the switch 602, the audio processing unit 603, the switch 604, the first SC circuit 701, the second SC circuit 702 and the buck circuit 705 in the circuit can be seen in FIG. Figure 7 The corresponding connection method, implementation principle and technical effect in the circuit shown will not be repeated here.
[0177] like Fig. 9 As shown, the VBUS pin of the Type-C interface 301 is respectively connected to the second positive pole of the fourth battery 901 and the third positive pole of the fourth battery 901. The second negative pole of the fourth battery 901 is connected to one end of the fourth fuel gauge 902. The other end of the fourth fuel gauge 902 is grounded. The first SC circuit 701 is connected between the VBUS pin of the Type-C interface 301 and the second positive pole of the fourth battery 901. The second SC circuit 702 is connected between the VBUS pin of the Type-C interface 301 and the third positive pole of the fourth battery 901. One end of the buck circuit 705 is connected to the VBUS pin of the Type-C interface 301, and the other end of the buck circuit 705 is respectively connected to the second positive pole of the fourth battery 901 and the third positive pole of the fourth battery 901. SoC 404 is respectively connected to the fourth fuel gauge 902 through IIC.
[0178] The first fast charging protocol module 401 and the second fast charging protocol module 402 are Fig. 9 The implementation principle and technical effect in Figure 8 The implementation principle and technical effect are similar to those in , and will not be repeated here.
[0179] The fourth fuel gauge 902 is used to measure the voltage and temperature of the fourth battery 901 .
[0180] Fig. 9 The SoC 404 in the embodiment is also used to read the temperature of the battery measured by the fourth fuel gauge 902 from the fourth fuel gauge 902 when a handshake success mark is read, read the measured temperature from the temperature sensor of the electronic device, calculate the read voltage, current and temperature according to the preset SCP protocol to obtain a third calculation result, and find the third fast charging requirement information corresponding to the third calculation result from the preset SCP protocol, so that the fast charging charger transmits the fifth voltage and fifth current of the fast charging corresponding to the third fast charging requirement information to the electronic device.
[0181] The first SC circuit 701 and the second SC circuit 702 are both used to convert the fifth voltage and the fifth current transmitted by the fast charging charger through the VBUS pin of the Type-C interface 301 into the sixth voltage and the sixth current, and transmit the sixth voltage and the sixth current for fast charging to the fourth battery 901. The product of the sixth voltage and the sixth current is less than or equal to the product of the fifth voltage and the fifth current. The sixth voltage is less than or equal to the rated voltage of the fourth battery. The sixth current is less than or equal to the rated current of the fourth battery. In this way, the fast charging of the fourth battery 901 is achieved, and the first SC circuit 701 and the second SC circuit 702 can simultaneously transmit the sixth voltage and the sixth current for fast charging to the fourth battery 901, which can further improve the fast charging efficiency of the fourth battery 901.
[0182] It is understandable that if the number of positive electrodes of the battery of the electronic device is n, where n is an integer greater than 2, the electronic device may include n SC units with a protocol, each SC unit with a protocol includes an SC circuit and a protocol IC. The deployment method of each SC circuit can be the same as Fig. 9 The first SC circuit 701 is deployed in a similar manner in the embodiment, and each protocol IC can be deployed in the same manner as Fig. 9 The deployment method of the first fast charging protocol module 401 in the embodiment is similar. In this way, the electronic device can include n fast charging protocol handshake links, which can further reduce the probability of the electronic device failing to fast charge when connected to a fast charging charger.
[0183] For foldable electronic devices, Figure 7 Take the circuit shown as an example, Fig.10 A circuit deployment diagram of a foldable electronic device provided in an embodiment of the present application is shown. Fig.10 The circuit structure shown is Figure 7 The circuit structures shown are the same.
[0184] like Fig.10 As shown, the electronic device includes a first folding portion 1001, a second folding portion 1002 and a rotation shaft 1003. The rotation shaft 1003 connects the first folding portion 1001 and the second folding portion 1002, and both the first folding portion 1001 and the second folding portion 1002 can rotate around the rotation shaft 1003.
[0185] The Type-C interface 301, the first band protocol SC unit 706, the first battery 703, the first fuel gauge 305, the PMIC 403 and the buck circuit 705 in the PMIC 403, the SoC 404, the resistor R1, the resistor R3, the resistor R4, the switch 601, the audio processing unit 603 and the switch 604 are all disposed on the first folding portion 1001. The first band protocol SC unit 706 includes a first fast charge protocol module 401 and a first SC circuit 701.
[0186] The second SC unit with protocol 707, the second battery 704, the second fuel gauge 306, the resistor R2 and the switch 602 are all disposed on the second folding portion 1002. The second SC unit with protocol 707 includes a second fast charge protocol module 402 and a second SC circuit 702.
[0187] Optionally, the Type-C interface 301 may also be deployed on a charging plate in the first folding portion 1001 .
[0188] Deploying the first battery 703 and the second battery 704 on different folding parts respectively can make the foldable electronic device thinner and lighter. In addition, deploying the first SC circuit 701 and the first battery 703 on the same folding part can shorten the transmission link of the voltage and current of the battery fast charging, and can reduce the temperature rise rate of the electronic device when the first battery 703 is fast charged. Similarly, deploying the second SC circuit 702 and the second battery 704 on the same folding part can also shorten the transmission link of the voltage and current of the battery fast charging, and can reduce the temperature rise rate of the electronic device when the second battery 704 is fast charged, which can improve the user experience.
[0189] exist Fig.10 The electronic equipment shown is based on Fig.11 Another scene diagram provided by an embodiment of the present application is shown.
[0190] like Fig.11 As shown, the electronic device can be stacked on the wireless charger 1101 so that the electronic device is connected to the wireless charger 1101 .
[0191] The wireless charger 1101 includes a transmitting unit 11011, which includes a coil. The electronic device also includes a receiving unit, which also includes a coil. The receiving unit is connected to the first SC circuit 701 and the second SC circuit 702 respectively. Fig.11 Shown in.
[0192] The transmitting unit is used to transmit a discovery signal to the receiving unit by electromagnetic induction when the electronic device is connected to the wireless charger 1101. The discovery signal is, for example, a digital ping.
[0193] The receiving unit is configured to transmit the identity request information corresponding to the discovery signal to the SoC 404 when the discovery signal is obtained.
[0194] SoC 404 is also used to transmit identity request information to the first fast charging protocol module 401 and start the first timer. It is also used to transmit identity request information to the second fast charging protocol module 402 when the first timer reaches the first timing duration and the identity identification data packet returned by the first fast charging protocol module 401 is not received. The identity identification data packet includes the power information required for fast charging of the electronic device.
[0195] The first fast charging protocol module 401 and the second fast charging protocol module 402 are both used to return an identity identification data packet to the SoC 404 according to a preset SCP protocol when receiving the identity request information.
[0196] The receiving unit is further used to convert the identity identification packet returned by the SoC 404 into an identity identification packet signal, and transmit the identity identification packet signal to the transmitting unit by electromagnetic induction.
[0197] The transmitting unit is also used to transmit the fast charging voltage and current to the receiving unit by electromagnetic induction when receiving the identity recognition package signal.
[0198] The receiving unit is also used to transmit the fast charging voltage and current transmitted by the transmitting unit to the first SC circuit 701 and the second SC circuit 702 respectively.
[0199] Optionally, the transmitter unit can also be integrated in Figure 4 In the control unit of the embodiment.
[0200] In this way, when the electronic device is connected to the wireless charger 1101, the first fast charging protocol module 401 can communicate with the wireless charger 1101 through the SoC404 and the receiving unit, so that the wireless charger 1101 transmits the fast charging voltage and current to the electronic device. When the electronic device is connected to the wireless charger 1101 and the first fast charging protocol module 401 cannot communicate with the wireless charger 1101, the second fast charging protocol module 402 can communicate with the wireless charger 1101 through the SoC 404 and the receiving unit, so that the wireless charger 1101 transmits the fast charging voltage and current to the electronic device, reducing the probability of the electronic device failing to fast charge when the electronic device is connected to the wireless charger 1101.
[0201] The embodiment of the present application also provides a control method, which is applied to the above-mentioned electronic device, and the method includes: when the electronic device is connected to the charging device, instructing the first fast charging protocol module to communicate and connect with the charging device according to the fast charging protocol, and when the communication connection result transmitted by the first fast charging protocol module is not obtained after the first time period is reached, instructing the second fast charging protocol module to communicate and connect with the charging device according to the fast charging protocol. From the moment when the second fast charging protocol module is instructed to communicate and connect with the charging device according to the fast charging protocol to the first time period, if the result of successfully establishing the communication connection transmitted by the second fast charging protocol module is obtained, the electronic device performs fast charging. Alternatively, from the moment when the second fast charging protocol module is instructed to communicate and connect with the charging device according to the fast charging protocol to the first time period, if the result of successfully establishing the communication connection transmitted by the second fast charging protocol module is not obtained, the electronic device performs slow charging.
[0202] For the specific implementation principle and technical effects of the control method of this embodiment, please refer to the specific implementation principle and technical effects of the control method described in the content of the invention, which will not be repeated here.
[0203] Those skilled in the art can understand that the method and the device can be combined and referenced with each other, and the relevant device provided in the embodiment of the present application can execute the steps in the above-mentioned control method.
[0204] The control method provided in the embodiment of the present application can be applied to electronic devices with communication functions. The electronic devices include terminal devices, and the specific device form of the terminal devices can refer to the above related descriptions, which will not be repeated here.
[0205] An embodiment of the present application provides an electronic device, which includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the electronic device executes the above method.
[0206] The embodiment of the present application provides a chip. The chip includes a processor, and the processor is used to call a computer program in a memory to execute the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above related embodiments, and will not be repeated here.
[0207] The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. The above method is implemented when the computer program is executed by the processor. The method described in the above embodiment can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the function 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.
[0208] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disk storage, disk storage or other magnetic storage devices, or any other medium that is intended to carry or store the required program code in the form of instructions or data structures and can be accessed 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. Disks and optical disks as used herein include optical disks, laser disks, optical disks, digital versatile disks (DVD), floppy disks and Blu-ray disks, where disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included in the scope of computer-readable media.
[0209] 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 method.
[0210] 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 generate 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 processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0211] The above specific implementation methods further illustrate the purpose, 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 substitutions, 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. An electronic device, characterized in that: include: A first fast charging unit, a second fast charging unit, a data transmission interface and a control unit; the first fast charging unit includes a first fast charging circuit and a first fast charging protocol module, the second fast charging unit includes a second fast charging circuit and a second fast charging protocol module; the control unit includes a system-on-chip SoC; The data transmission interface is used to communicate with a charging device connected to the electronic device; the data transmission interface is connected to the first fast charging protocol module and the second fast charging protocol module respectively; The control unit is used to instruct the first fast charging protocol module to communicate with the charging device according to the fast charging protocol when the electronic device is connected to the charging device, and to instruct the second fast charging protocol module to communicate with the charging device according to the fast charging protocol when the communication connection result transmitted by the first fast charging protocol module is not obtained after the first time period is reached; the SoC is connected to the first fast charging protocol module and the second fast charging protocol module respectively; The first fast charging circuit and / or the second fast charging circuit are used to charge the electronic device when the electronic device successfully establishes a communication connection with the charging device.
2. The electronic device according to claim 1, characterized in that: Also includes: a first resistor and a second resistor; The first resistor is connected between the data transmission interface and the first fast charging unit; The second resistor is connected between the data transmission interface and the second fast charging unit.
3. The electronic device according to claim 2, characterized in that: Also includes: a first switch and a second switch; The first switch is connected between the data transmission interface and the first resistor, and the control end of the first switch is connected to the control unit; the second switch is connected between the data transmission interface and the second resistor, and the control end of the second switch is connected to the control unit; The control unit is further used to control the first switch to be in an on state and the second switch to be in an off state when instructing the first fast charging protocol module to communicate with the charging device in accordance with the fast charging protocol; it is also used to control the second switch to be in an on state and the first switch to be in an off state when instructing the second fast charging protocol module to communicate with the charging device in accordance with the fast charging protocol; it is also used to control the first switch and the second switch to be in an off state when the electronic device disconnects from the charging device.
4. The electronic device according to any one of claims 1 to 3, characterized in that: Also includes: an audio processing unit and a third switch; The third switch is connected between the data transmission interface and the audio processing unit, and the control end of the third switch is connected to the control unit; The control unit is further configured to control the third switch to be in an on state when the electronic device is connected to an analog headset; and to control the third switch to be in an off state when the electronic device is disconnected from the analog headset.
5. The electronic device according to any one of claims 1 to 3, characterized in that: Also includes: A power supply interface, a first battery and a second battery; The first fast charging circuit is connected between the power supply interface and the first battery, and the second fast charging circuit is connected between the power supply interface and the second battery; The power supply interface is used to transmit the first voltage and the first current output by the charging device to the first fast charging circuit and the second fast charging circuit respectively when the electronic device successfully establishes a communication connection with the charging device; The first fast charging circuit and the second fast charging circuit are both used to convert the first voltage and the first current transmitted by the power supply interface into a second voltage and a second current; the second voltage and the second current are used for fast charging of the first battery and also for fast charging of the second battery.
6. The electronic device according to claim 5, characterized in that: The electronic device comprises a first folding portion, a second folding portion and a rotating shaft; The first folding portion and the second folding portion are connected via the rotating shaft; the rotating shaft is used to make the first folding portion rotate around the rotating shaft, and is also used to make the second folding portion rotate around the rotating shaft; The data transmission interface, the power supply interface, the control unit, the first fast charging unit and the first battery are arranged on the first folding portion; The second fast charging unit and the second battery are arranged on the second folding portion.
7. The electronic device according to any one of claims 1 to 3, characterized in that: Also includes: A power supply interface and a third battery, wherein the third battery comprises a first positive electrode and a first negative electrode; The first fast charging circuit is connected between the power supply interface and the first positive electrode of the third battery, and the second fast charging circuit is also connected between the power supply interface and the first positive electrode of the third battery; the first negative electrode of the third battery is grounded; The power supply interface is used to transmit the third voltage and the third current output by the charging device to the first fast charging circuit and the second fast charging circuit respectively when the electronic device successfully establishes a communication connection with the charging device; The first fast charging circuit and the second fast charging circuit are both used to convert the third voltage and the third current into a fourth voltage and a fourth current; the fourth voltage and the fourth current are used for fast charging of the third battery.
8. The electronic device according to any one of claims 1 to 3, characterized in that: Also includes: A power supply interface and a fourth battery, wherein the fourth battery includes a second positive electrode, a third positive electrode, and a second negative electrode; The first fast charging circuit is connected between the power supply interface and the second positive electrode of the fourth battery, and the second fast charging circuit is connected between the power supply interface and the third positive electrode of the fourth battery; the second negative electrode of the fourth battery is grounded; The power supply interface is used to transmit the fifth voltage and the fifth current output by the charging device to the first fast charging circuit and the second fast charging circuit respectively when the electronic device successfully establishes a communication connection with the charging device; The first fast charging circuit and the second fast charging circuit are both used to convert the fifth voltage and the fifth current into a sixth voltage and a sixth current; the sixth voltage and the sixth current are used for fast charging of the fourth battery.
9. The electronic device according to any one of claims 1 to 3 and 6, characterized in that: Also includes a step-down circuit; The step-down circuit is used to slowly charge the electronic device when the electronic device fails to successfully establish a communication connection with the charging device.
10. A control method, characterized in that: Applied to the electronic device according to any one of claims 1 to 9, the method comprising: When the electronic device is connected to the charging device, instruct the first fast charging protocol module to communicate with the charging device according to the fast charging protocol, and when the communication connection result transmitted by the first fast charging protocol module is not obtained after the first time period is reached, instruct the second fast charging protocol module to communicate with the charging device according to the fast charging protocol; From the moment when the second fast charging protocol module is instructed to establish a communication connection with the charging device according to the fast charging protocol to the first time duration, if a result of successful establishment of a communication connection is obtained from the second fast charging protocol module, the electronic device performs fast charging; or, From the moment when the second fast charging protocol module is instructed to establish a communication connection with the charging device in accordance with the fast charging protocol to the moment when the first time duration is reached, if the result of successfully establishing a communication connection is not transmitted by the second fast charging protocol module, the electronic device performs slow charging.
11. An electronic device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the electronic device performs the method according to claim 10 .
12. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to claim 10 is implemented.
Citation Information
Patent Citations
Charging method and device and electronic equipment
CN115986887A