Electronic device and charging control method
By introducing a control mechanism of switching switches in electronic devices, the problem of rapid charging in the prior art is solved, and fast charging of other devices is achieved, and user experience is improved.
Patent Information
- Application Number
- CN202311452577.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-02
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2043-11-02
AI Technical Summary
Existing electronic devices are restricted by internal circuit structure when charging, and cannot quickly charge other devices, resulting in poor user experience.
Design an electronic device, including a signal transmission interface, a charging and discharging chip, a processor and a switching switch. Through the control of the switch, electronic devices can perform high-power extraction when identified as a dedicated charging port, thereby enabling fast charging of other devices.
It realizes that electronic devices are quickly charged when providing equipment as power supplies, improving user experience.
Smart Images

Figure CN118449217B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and in particular to an electronic device and a charging control method. Background Art
[0002] With the development of science and technology, electronic devices such as mobile phones, tablet computers, and laptops have more and more functions. For example, when two electronic devices are connected via a CTC (type-c to type-c) cable, the two electronic devices can serve as a power supply device and a power consumption device respectively, and the power supply device can charge the power consumption device.
[0003] In the related art, a charge-discharge chip is provided in an electronic device, and the charge-discharge chip supports a fast charge protocol, so that the charge-discharge chip has the functions of fast charge and fast discharge.
[0004] However, in the related art, due to the limitation of the internal circuit structure of the electronic device, the power supply device cannot quickly charge the power consumption device. Summary of the invention
[0005] The present application provides an electronic device and a charging control method. When the electronic device is used as a power supply device, it can quickly charge a power consumption device, thereby improving the user experience. The technical solution is as follows:
[0006] In a first aspect, an electronic device is provided, which includes a signal transmission interface, a charge and discharge chip, a processor, and a switch.
[0007] The signal transmission interface is used to connect with other electronic devices. The signal transmission interface includes a communication terminal, a power terminal, a first data terminal and a second data terminal. Among them, the communication terminal of the signal transmission interface is connected to the first communication terminal of the charge and discharge chip, so that the charge and discharge chip can communicate with other electronic devices through the communication terminal of the signal transmission interface. The second communication terminal of the charge and discharge chip is connected to the communication terminal of the processor. Here, the charge and discharge chip is a charge and discharge chip that supports the fast charging protocol.
[0008] The power supply end of the signal transmission interface is connected to the power supply end of the charge-discharge chip, so that the charge-discharge chip can output or input electric energy through the power supply end of the signal transmission interface. The first data end and the second data end of the signal transmission interface, as well as the first data end and the second data end of the processor are all connected to the switch. The output end of the processor is connected to the control end of the switch, so that the processor can control the switch to be in the first switch state or the second switch state.
[0009] When the switch is in the first switch state, the first data end of the signal transmission interface is connected to the first data end of the processor, and the second data end of the signal transmission interface is connected to the second data end of the processor. In this case, when other electronic devices are connected to the signal transmission interface of the electronic device and the other electronic devices identify the signal transmission interface of the electronic device, the signal transmission interface of the electronic device will be identified as a standard downstream port, and at this time, the other electronic devices will not perform high-power extraction, that is, the electronic device cannot quickly charge other electronic devices.
[0010] When the switching switch is in the second switching state, the first data terminal and the second data terminal of the signal transmission interface are short-circuited. In this case, when other electronic devices are connected to the signal transmission interface of the electronic device and other electronic devices identify the signal transmission interface of the electronic device, the signal transmission interface of the electronic device will be identified as a dedicated charging port. At this time, other electronic devices will perform high-power extraction, that is, the electronic device can quickly charge other electronic devices. In other words, by using a charging and discharging chip that supports the fast charging protocol and a switching switch in the second switching state, the electronic device can quickly charge power consuming devices when used as a power supply device, thereby improving the user experience.
[0011] In some embodiments, the first end of the switching switch is connected to the first data end of the signal transmission interface, and the second end of the switching switch is connected to the second data end of the signal transmission interface. The third end of the switching switch is connected to the first data end of the processor, and the fourth end of the switching switch is connected to the second data end of the processor. The fifth end of the switching switch is short-circuited with the sixth end of the switching switch. When the first end and the third end of the switching switch are connected, and the second end and the fourth end of the switching switch are connected, the switching switch is in a first switching state. When the first end and the fifth end of the switching switch are connected, and the second end and the sixth end of the switching switch are connected, the switching switch is in a second switching state. In some specific embodiments, the fifth end of the switching switch is short-circuited with the sixth end of the switching switch through a zero-ohm resistor.
[0012] In some other embodiments, the switching switch is a field effect transistor. The first end of the field effect transistor is connected to the first data end of the signal transmission interface and the first data end of the processor. The second end of the field effect transistor is connected to the second data end of the signal transmission interface and the second data end of the processor. The control end of the field effect transistor is connected to the output end of the processor. When the first end and the second end of the field effect transistor are disconnected, the switching switch is in the first switching state. When the first end and the second end of the field effect transistor are connected, the switching switch is in the second switching state.
[0013] In some specific embodiments, the fast charging protocol is the power delivery PD3.0 protocol. The signal transmission interface is a type-c interface. The communication end of the signal transmission interface is a configuration channel CC port of the type-c interface. The power end of the signal transmission interface is a universal serial bus power VBUS port of the type-c interface. The first data end of the signal transmission interface is a positive data port of the type-c interface, and the second data end of the signal transmission interface is a negative data port of the type-c interface.
[0014] In a second aspect, a charging control method is also provided, which is applied to an electronic device as described in any one of the first aspects, so as to quickly charge other electronic devices.
[0015] The charging control method is explained below from two different scenarios.
[0016] In the first scenario, when the electronic device is in a powered-off state, other electronic devices are connected to the signal transmission interface of the electronic device. After the other electronic devices are connected to the signal transmission interface of the electronic device, the charging and discharging chip and processor of the electronic device are awakened. Based on this, the method includes:
[0017] If the charge-discharge chip detects a preset electrical signal at the first communication end of the charge-discharge chip, the first communication signal is transmitted to the processor. After receiving the first communication signal, if the processor determines that the current working time of the processor is less than or equal to the first preset time, the switching switch is controlled to be in the second switch state, and the first control signal is transmitted to the charge-discharge chip.
[0018] Specifically, after the charge and discharge chip detects a preset electrical signal at its first communication end indicating that the electronic device is connected to other electronic devices, the electronic device acts as a power supply device and other electronic devices act as power consumption devices. Based on this, the charge and discharge chip can transmit a first communication signal to the processor, and the first communication signal is used to indicate that the electronic device acts as a power supply device. The processor determines the relationship between the current working time and the first preset time, that is, determines whether the processor is awakened by the connection of other electronic devices. Here, when the current working time of the processor is less than or equal to the first preset time, the processor determines that it is awakened by the connection of other electronic devices. In this case, the processor can control the switching switch to be in the second switch state and transmit the first control signal to the charge and discharge chip. The first control signal is used to control the power supply end of the charge and discharge chip to output a preset voltage. At this time, the signal transmission interface of the electronic device can be recognized by other electronic devices as a dedicated charging port, and the electronic device can quickly charge other electronic devices.
[0019] In this embodiment, the charging control method may further include a process in which the charging and discharging chip wakes up the processor, that is, the charging and discharging chip transmits a wake-up signal to the processor when a preset voltage is input to the power supply terminal of the charging and discharging chip.
[0020] In the second scenario, when the electronic device is powered on, other electronic devices are connected to the signal transmission interface of the electronic device. Based on this, the method includes:
[0021] If the charge and discharge chip detects a preset electrical signal at the first communication end of the charge and discharge chip, the first communication signal is transmitted to the processor. After the processor receives the first communication signal, if it is determined that the current working time of the processor is greater than the first preset time, the first control signal is transmitted to the charge and discharge chip. If the processor determines that the fast charging function is turned on, the second control signal is transmitted to the charge and discharge chip. After transmitting the second control signal to the charge and discharge chip, the processor controls the switching switch to be in the second switch state and transmits the first control signal to the charge and discharge chip.
[0022] Specifically, when the current working time of the processor is greater than the first preset time, the processor determines that when other electronic devices are connected to the electronic device, the electronic device is already in the power-on state. In this case, the processor can transmit a first control signal to the charge and discharge chip. The first control signal is used to control the power supply end of the charge and discharge chip to output a preset voltage. At this time, the electronic device can charge other electronic devices normally. In the process of charging other electronic devices normally, the electronic device can also determine whether the user turns on the fast charging function. If the user turns on the fast charging function, the processor transmits a second control signal to the charge and discharge chip, and the second control signal is used to instruct the power supply end of the charge and discharge chip to stop outputting the preset voltage. After transmitting the second control signal to the charge and discharge chip, the processor controls the switching switch to be in the second switch state, and transmits the first control signal to the charge and discharge chip. At this time, the signal transmission interface of the electronic device can be recognized by other electronic devices as a dedicated charging port, and the electronic device can charge other electronic devices quickly.
[0023] In this embodiment, the charging control method may further include prompting the user to turn on the fast charging function, and the process of turning on the fast charging function. Specifically, the method further includes:
[0024] The processor controls the display screen of the electronic device to display the charging selection message. If the processor receives a confirmation instruction for the charging selection message, the fast charging function is turned on.
[0025] The charging selection message is used to indicate whether to use the fast charging protocol to charge other electronic devices.
[0026] In the above two scenarios, the charging control method further includes: if the charging and discharging chip detects a preset electrical signal at the first communication end of the charging and discharging chip, transmitting a second communication signal to the signal transmission interface.
[0027] Specifically, when the electronic device is connected to other electronic devices and it is confirmed that the electronic device is used as a power supply device and the other electronic devices are used as power consumption devices, the power supply device also outputs a second communication signal to the power consumption device. The second communication signal is used to indicate multiple power supply voltage values that the electronic device can output.
[0028] In this case, after the processor executes the step of "controlling the switching switch to be in the second switch state, and transmitting the first control signal to the charging and discharging chip", the charging method may further include the following steps:
[0029] If the charge-discharge chip receives a third communication signal including one of the multiple supply voltage values at the first communication end of the charge-discharge chip within the second preset time after receiving the first control signal, the supply voltage value is transmitted to the processor. After receiving the supply voltage value, the processor transmits the third control signal to the charge-discharge chip. And, if the charge-discharge chip does not receive the third communication signal within the second preset time after receiving the first control signal, the fourth communication signal is transmitted to the processor; after receiving the fourth communication signal, the processor controls the switching switch to be in the first switch state, and transmits the first control signal to the charge-discharge chip.
[0030] The third control signal is used to control the power supply terminal of the charge and discharge chip to output a specified voltage, and the voltage value of the specified voltage is equal to a power supply voltage value. That is to say, after the electronic device can be quickly charged externally, if a power supply voltage value requirement transmitted by other electronic devices is received within the second preset time length, the voltage of the power supply voltage value is output. If the power supply voltage value requirement transmitted by other electronic devices is not received within the second preset time length, the switch is switched back to the first switch state, and other electronic devices are charged normally.
[0031] The technical effect obtained by the above-mentioned second aspect is similar to the technical effect obtained by the corresponding technical means in the above-mentioned first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a schematic diagram of the appearance of the first electronic device in the related art;
[0033] Figure 2 It is a schematic diagram of the appearance of a second electronic device in the related art;
[0034] Figure 3 It is a schematic diagram of a connection structure of two electronic devices in the related art;
[0035] Figure 4 It is a structural schematic diagram of the female connector of the type-c interface in the related art;
[0036] Figure 5 It is a structural schematic diagram of the male connector of the type-c interface in the related art;
[0037] Figure 6 It is a schematic diagram of the internal structure of a first electronic device in the related art;
[0038] Figure 7 is a schematic diagram of a connection structure between a first electronic device and a second electronic device in the related art;
[0039] Figure 8 It is a schematic diagram of the internal structure of a first electronic device provided in an embodiment of the present application;
[0040] Fig. 9 is an equivalent circuit diagram of the internal structure of an electronic device provided in an embodiment of the present application;
[0041] Fig.10 is a schematic diagram of the internal structure of a second electronic device provided in an embodiment of the present application;
[0042] Fig.11 is a schematic diagram of the internal structure of a third electronic device provided in an embodiment of the present application;
[0043] Fig.12 is a schematic diagram of a connection structure between a first electronic device and a second electronic device provided in an embodiment of the present application;
[0044] Fig.13 is a communication flow chart between a first electronic device and a second electronic device provided in an embodiment of the present application;
[0045] Fig.14 is a flow chart of a first charging control method provided in an embodiment of the present application;
[0046] Fig.15 It is a schematic diagram of the internal structure of a charging and discharging chip provided in an embodiment of the present application;
[0047] Fig.16 This is a schematic diagram of the connection structure of a charging and discharging chip between an electronic device and a power adapter provided in an embodiment of the present application;
[0048] Fig.17 This is a schematic diagram of the connection structure of a charging and discharging chip between a first electronic device and a second electronic device provided in an embodiment of the present application;
[0049] Fig.18 is a schematic diagram of a charging selection message provided in an embodiment of the present application;
[0050] Fig.19 This is a setting interface diagram of a first electronic device provided in an embodiment of the present application;
[0051] Fig. 20 is a structural schematic diagram of a first electronic device provided in an embodiment of the present application;
[0052] Fig.21 This is a communication flow chart of the first mobile phone and laptop provided in the embodiment of the present application;
[0053] Fig. 22 is a communication flow chart between a second first electronic device and a second electronic device provided in an embodiment of the present application;
[0054] Fig.23 is a flow chart of a second charging control method provided in an embodiment of the present application;
[0055] Fig.24 This is a schematic diagram of the connection structure of a charging and discharging chip between a first electronic device and a second electronic device provided in an embodiment of the present application;
[0056] Fig.25 This is a communication flow chart of a second mobile phone and a laptop provided in an embodiment of the present application;
[0057] Fig.26 This is a communication flow chart between a third first electronic device and a second electronic device provided in an embodiment of the present application.
[0058] The meanings of the figures are as follows:
[0059] Related technologies:
[0060] 10. Electronic device; 102. Signal transmission interface; 110. Charging and discharging chip; 120. Processor; 130. Energy storage unit; 20. Signal transmission line;
[0061] This application:
[0062] 30. Electronic device; 302. Signal transmission interface; 310. Charging and discharging chip; 320. Processor; 330. Energy storage unit; 340. Switch; 350. Fast charging switch. DETAILED DESCRIPTION
[0063] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0064] It should be understood that the "multiple" mentioned in this application refers to two or more. In the description of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of this application, the words "first" and "second" are used to distinguish between the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not limit them to be different.
[0065] Before explaining in detail the electronic device and the charging control method provided in the embodiments of the present application, the application scenarios of the electronic device and the charging control method are first explained.
[0066] The electronic device 10 includes a mobile phone, a tablet computer, a laptop computer, etc. Figure 1 and Figure 2 1 is a schematic diagram of the appearance of two different electronic devices 10 in the related art. Figure 1 In the embodiment shown, the electronic device 10 is a notebook computer; Figure 2 In the illustrated embodiment, the electronic device 10 is a mobile phone.
[0067] like Figure 1 and Figure 2 As shown, the electronic device 10 has a signal transmission interface 102. The signal transmission interface 102 is used to transmit electrical signals. By transmitting electrical signals, the signal transmission interface 102 can realize power transmission on the one hand, and communication signal transmission on the other hand. Figure 3 1 is a schematic diagram of a connection structure of two electronic devices 10 in the related art. Figure 3 As shown, the two electronic devices 10 can be connected via a signal transmission line 20. For ease of description, the two electronic devices 10 are respectively referred to as a first electronic device 10A and a second electronic device 10B. One end of the signal transmission line 20 is connected to a signal transmission interface 102 of the first electronic device 10A, and the other end of the signal transmission line 20 is connected to a signal transmission interface 102 of the second electronic device 10B.
[0068] After the two electronic devices 10 are connected via the signal transmission line 20, the two electronic devices 10 can be used as a power supply device (source) and a power consumption device (sink) respectively, and the source charges the sink. For example, taking the first electronic device 10A as the source and the second electronic device 10B as the sink, after the first electronic device 10A and the second electronic device 10B are connected via the signal transmission line 20, the first electronic device 10A can charge the second electronic device 10B.
[0069] In the related art, both the first electronic device 10A and the second electronic device 10B are provided with a charging and discharging chip. The charging and discharging chip supports the fast charging protocol, so that the charging and discharging chip has the functions of fast charging and fast discharging. However, in the related art, when the first electronic device 10A charges the second electronic device 10B, the first electronic device 10A cannot quickly charge the second electronic device 10B due to the limitation of the internal circuit structure of the first electronic device 10A.
[0070] The following is a detailed explanation of the reason why "due to the limitation of the internal circuit structure of the first electronic device 10A, the first electronic device 10A cannot quickly charge the second electronic device 10B" in the related art.
[0071] Generally, the signal transmission interface 102 of the electronic device 10 (including the first electronic device 10A and the second electronic device 10B) can be a universal serial bus (USB) type-c interface (hereinafter referred to as type-c interface). In this case, the signal transmission line 20 connected between the first electronic device 10A and the second electronic device 10B can be a CTC (type-c to type-c) cable.
[0072] The type-c interface is generally divided into a female head and a male head. The male head of the type-c interface can be inserted into the female head to achieve structural and electrical connection between the male head and the female head. The female head can be set on the electronic device 10, and the male head can be set on the signal transmission line 20. For example, both ends of the CTC cable are male heads of the type-c interface. Figure 4 This is a schematic diagram of the structure of the female connector of the type-c interface in the related technology. Figure 5 This is a schematic diagram of the structure of the male connector of the type-c interface in the related art. Figure 4 and Figure 5 The correspondence between the ports and names in the type-c interface (including female and male connectors) is shown in Table 1 below.
[0073] Table 1
[0074]
[0075]
[0076] Figure 6 1 is a schematic diagram of the internal structure of a first electronic device 10A in the related art. Figure 6 The first electronic device 10A includes a signal transmission interface 102, a charge and discharge chip 110 and a processor 120. Among them, the communication terminal a of the signal transmission interface 102 is connected to the first communication terminal e of the charge and discharge chip 110. The second communication terminal g of the charge and discharge chip 110 is connected to the communication terminal k of the processor 120. The power terminal b of the signal transmission interface 102 is connected to the first power terminal f of the charge and discharge chip 110, and the second power terminal h of the charge and discharge chip 110 is used to connect to the energy storage unit 130 of the electronic device 10. The first data terminal c of the signal transmission interface 102 is connected to the first data terminal i of the processor 120, and the second data terminal d of the signal transmission interface 102 is connected to the second data terminal j of the processor 120. Here, the communication terminal a of the signal transmission interface 102 is a configuration channel (CC) port of the type-c interface, that is, any one of the CC1 port and the CC2 port. The power terminal of the signal transmission interface 102 is the VBUS port of the type-c interface. The first data terminal c of the signal transmission interface 102 is the D+ port of the type-c interface, and the second data terminal d of the signal transmission interface 102 is the D- port of the type-c interface. The charging and discharging chip 110 is a chip that supports a fast charging protocol, such as a power delivery (PD) protocol.
[0077] It can be understood that the internal structure of the second electronic device 10B in the related art is also as follows. Figure 6 Thus, when the first electronic device 10A and the second electronic device 10B are connected via the signal transmission line 20, the connection structure between the first electronic device 10A and the second electronic device 10B can be as shown. Figure 7 In this case, the communication process between the first electronic device 10A and the second electronic device 10B is as follows:
[0078] S1 , the charge-discharge chip 110A of the first electronic device 10A and the charge-discharge chip 110B of the second electronic device 10B perform CC handshake to determine the source and the sink.
[0079] S2, after determining the source and sink, the charge and discharge chip 110B of the second electronic device 10B transmits a communication signal to the processor 120B of the second electronic device 10B, for reporting the information that the second electronic device 10B is a sink; the charge and discharge chip 110A of the first electronic device 10A transmits a communication signal to the processor 120A of the first electronic device 10A, for reporting the information that the first electronic device 10A is a source.
[0080] S3, after determining the source and the sink, the charge-discharge chip 110A of the first electronic device 10A as the source transmits a communication signal to the charge-discharge chip 110B of the second electronic device 10B as the sink, and the communication signal is used to indicate the power supply capacity of the charge-discharge chip 110A of the first electronic device 10A, such as 9V (volts) 2A (amperes) (i.e., 9V voltage, 2A current), 9V3A, 10V2.5A, etc. After receiving the "power supply capacity of the charge-discharge chip 110A of the first electronic device 10A", the charge-discharge chip 110B of the second electronic device 10B also reports the information to the processor 120B of the second electronic device 10B.
[0081] There is no order distinction between steps S2 and S3.
[0082] S4, after the processor 120A of the first electronic device 10A receives the communication signal transmitted by the charging and discharging chip 110A of the first electronic device 10A, it controls the first power supply terminal f of the charging and discharging chip 110A of the first electronic device 10A to output 5V0.5A or 5V2A (5V2A is used as an example below) of electric energy. At this time, the first power supply terminal of the charging and discharging chip 110B of the second electronic device 10B inputs 5V2A of electric energy.
[0083] S5, after the first power supply terminal of the charge and discharge chip 110B of the second electronic device 10B is input with a voltage of 5V, a communication signal is transmitted to the processor 120B of the second electronic device 10B to report information that the first power supply terminal of the charge and discharge chip 110B of the second electronic device 10B is input with a voltage of 5V.
[0084] S6, after receiving the communication signal transmitted by the charge and discharge chip 110B of the second electronic device 10B, the processor 120B of the second electronic device 10B detects the type of the signal transmission interface 102A of the first electronic device 10A.
[0085] The processor 120B of the second electronic device 10B detects the type of the signal transmission interface 102A of the first electronic device 10A, that is, BC1.2 (battery charging v1.2) detection.
[0086] S7, after the processor 120B of the second electronic device 10B detects the type of the signal transmission interface 102A of the first electronic device 10A, it performs unloading according to the "power supply capacity of the charging and discharging chip 110A of the first electronic device 10A" in step S3 and the "type of the signal transmission interface 102A of the first electronic device 10A" in step S6.
[0087] Generally, the types of signal transmission interface 102 include standard downstream port (SDP) and dedicated charging port (DCP). Among them, the SDP type signal transmission interface 102 refers to a signal transmission interface 102 in which both the D+ port and the D- port are respectively connected to a pull-down resistor with a resistance of 15KΩ (kilo-ohm), and the SDP type signal transmission interface 102 supports the transmission of differential signals. The DCP type signal transmission interface 102 refers to a signal transmission interface 102 in which the D+ port and the D- port are short-circuited, and the DCP type signal transmission interface 102 does not support the transmission of differential signals.
[0088] In step S6, if the processor 120B of the second electronic device 10B detects that the type of the signal transmission interface 102A of the first electronic device 10A is DCP, it will control the charge and discharge chip 110B in the second electronic device 10B to perform high-power extraction according to the power supply capacity of the charge and discharge chip 110A of the first electronic device 10A received in step S2, and the first electronic device 10A can quickly charge the second electronic device 10B. If the processor 120B of the second electronic device 10B detects that the type of the signal transmission interface 102A of the first electronic device 10A is SDP, it will not control the charge and discharge chip 110B in the second electronic device 10B to perform high-power extraction. In this case, the first electronic device 10A continues to output 5V2A low-power electrical energy to the second electronic device 10B, that is, the first electronic device 10A performs normal charging on the second electronic device 10B.
[0089] Here, since in the first electronic device 10A, the first data terminal c of the signal transmission interface 102 is connected to the first data terminal i of the processor 120, and the second data terminal d of the signal transmission interface 102 is connected to the second data terminal j of the processor 120, when the processor 120B of the second electronic device 10B detects the type of the signal transmission interface 102A of the first electronic device 10A, it will be obtained that the type of the signal transmission interface 102A of the first electronic device 10A is SDP. It can be seen that when the charging and discharging chip 110A of the first electronic device 10A supports the fast charging protocol and can perform fast discharge, the first electronic device 10A cannot perform fast charging on the second electronic device 10B, because the type of the signal transmission interface 102A of the first electronic device 10A as the source is SDP.
[0090] To this end, an embodiment of the present application provides an electronic device and a charging control method. When the electronic device acts as a source, it can quickly charge the sink, thereby improving the user experience.
[0091] The electronic device provided in the embodiment of the present application is explained in detail below. In the embodiment of the present application, the connection between two electronic devices refers to an electrical connection. The electrical connection here refers to the wired connection between the two electronic devices to transmit electrical signals.
[0092] Figure 8 Schematic diagram of the internal structure of an electronic device 30 provided in an embodiment of the present application. Figure 8 As shown, the electronic device 30 includes a signal transmission interface 302 , a charge and discharge chip 310 , a processor 320 and a switch 340 .
[0093] The signal transmission interface 302 is an interface used by the electronic device 30 to connect with other electronic devices. The signal transmission interface 302 is used to transmit electrical signals. By transmitting electrical signals, the signal transmission interface 302 can realize the transmission of electrical energy on the one hand, and the transmission of communication signals on the other hand. Here, the signal transmission interface 302 includes a communication terminal a, a power terminal b, a first data terminal c, and a second data terminal d. Among them, the communication terminal a of the signal transmission interface 302 is used to transmit communication signals. The power terminal b of the signal transmission interface 302 is used to input or output electrical energy. The first data terminal c and the second data terminal d of the signal transmission interface 302 are used to transmit differential signals, which are a type of data signals.
[0094] The charge and discharge chip 310 is a chip for charging and discharging that supports the fast charge protocol. Among them, the charge and discharge chip 310 supports the fast charge protocol means that the charge and discharge chip 310 can communicate through the fast charge protocol. The fast charge protocol here can be, for example, the PD protocol, the quick charge (QC) protocol, the supercharge protocol (SCP), the fast charger protocol (FCP), the superVOOC protocol, the adaptive fast charge (AFC) protocol, etc. In some specific embodiments, the fast charge protocol is the PD3.0 protocol that supports the programmable power supply (PPS) protocol.
[0095] The charge and discharge chip 310 has a first communication terminal e, a second communication terminal g, a first power terminal f and a second power terminal h. Among them, the communication terminal a of the signal transmission interface 302 is connected to the first communication terminal e of the charge and discharge chip 310, so that the charge and discharge chip 310 can communicate with other electronic devices through the communication terminal a of the signal transmission interface 302. The second communication terminal g of the charge and discharge chip 310 is connected to the communication terminal of the processor 320, so that the charge and discharge chip 310 can communicate with the processor 320. The power terminal b of the signal transmission interface 302 is connected to the first power terminal f of the charge and discharge chip 310, and the second power terminal h of the charge and discharge chip 310 is connected to the energy storage unit 330 of the electronic device 30. Generally, a DC voltage conversion circuit, such as a boost conversion circuit or a buck conversion circuit, is provided between the first power terminal f and the second power terminal of the charge and discharge chip 310. When the electronic device 30 acts as a source, the second power supply terminal h of the charge-discharge chip 310 is used to input electric energy, and the first power supply terminal f of the charge-discharge chip 310 outputs electric energy through the signal transmission interface 302. When the electronic device 30 acts as a sink, the first power supply terminal f of the charge-discharge chip 310 inputs electric energy through the signal transmission interface 302, and the second power supply terminal h of the charge-discharge chip 310 outputs electric energy to the energy storage unit 330. The second communication terminal g of the discharge chip 310 and the communication terminal of the processor 320 can be connected through an I2C (interintegrated circuit) bus or a system power management interface bus (system power management interface, SPMI).
[0096] The processor 320 may be a central processing unit (CPU) 320 in the electronic device 30. The processor 320 also has a first data terminal i and a second data terminal j. The first data terminal i and the second data terminal j of the processor 320 are used to transmit differential signals. In the embodiment of the present application, the first data terminal c and the second data terminal d of the signal transmission interface 302, and the first data terminal i and the second data terminal j of the processor 320 are all connected to the switch 340. The output terminal m of the processor 320 is connected to the control terminal n of the switch 340, so that the processor 320 can control the switch 340 to be in the first switch state or the second switch state.
[0097] Among them, when the switching switch 340 is in the first switching state, the first data terminal c of the signal transmission interface 302 is connected to the first data terminal i of the processor 320, and the second data terminal d of the signal transmission interface 302 is connected to the second data terminal j of the processor 320. At this time, if other electronic devices are connected to the signal transmission interface 302 of the electronic device 30, the processor 320 of the electronic device 30 can transmit differential signals to other electronic devices through the first data terminal c and the second data terminal d of the signal transmission interface 302. In this case, when other electronic devices identify the signal transmission interface 302 of the electronic device 30, the signal transmission interface 302 of the electronic device 30 will be identified as SDP. As described in the related art, other electronic devices will not perform high-power extraction at this time, that is, the electronic device 30 cannot quickly charge other electronic devices.
[0098] When the switching switch 340 is in the second switching state, the first data terminal c and the second data terminal d of the signal transmission interface 302 are short-circuited together. At this time, when other electronic devices are connected to the signal transmission interface 302 of the electronic device 30, the processor 320 of the electronic device 30 cannot transmit differential signals through the first data terminal c and the second data terminal d of the signal transmission interface 302. In this case, when other electronic devices identify the signal transmission interface 302 of the electronic device 30, the signal transmission interface 302 of the electronic device 30 will be identified as DCP. As described in the related art, other electronic devices will perform high-power extraction at this time, that is, the electronic device 30 can quickly charge other electronic devices. In other words, by supporting the charging and discharging chip 310 of the fast charging protocol and the switching switch 340 in the second switching state, the electronic device 30 can quickly charge the power consumption device when it is used as a power supply device, thereby improving the user experience.
[0099] It is understandable that in the above embodiment, for ease of understanding, the energy storage unit 330 is introduced to describe the internal structure and working process of the electronic device 30 of the present application. In fact, the electronic device 30 provided in the embodiment of the present application may include the energy storage unit 330, or may not include the energy storage unit 330. In other words, for the electronic device 30 provided in the embodiment of the present application, the energy storage unit 330 exists as an environmental element, and its existence should not be understood as a limitation on the electronic device 30 provided in the embodiment of the present application.
[0100] In some specific embodiments, as described in the related art, the signal transmission interface 302 can be a type-c interface of the electronic device 30. In this case, the communication terminal a of the signal transmission interface 302 is the CC port of the type-c interface, that is, any one of the CC1 port and the CC2 port. The power terminal b of the signal transmission interface 302 is the VBUS port of the type-c interface. The first data terminal c of the signal transmission interface 302 is the D+ port of the type-c interface, and the second data terminal d of the signal transmission interface 302 is the D- port of the type-c interface. In some specific embodiments, the electronic device 30 is an electronic device based on an advanced RISC machine (ARM) architecture.
[0101] Two possible implementations of the switch 340 are explained in detail below in conjunction with the accompanying drawings.
[0102] In the first possible implementation, Figure 8 As shown, the switch 340 has a first terminal 1, a second terminal 2, a third terminal 3, a fourth terminal 4, a fifth terminal 5, a sixth terminal 6 and a control terminal n.
[0103] The third end 3 and the fifth end 5 of the switch 340 can be selectively connected to the first end 1 of the switch 340; and the fourth end 4 and the sixth end 6 of the switch 340 can be selectively connected to the second end 2 of the switch 340. Here, the first end 1 of the switch 340 is connected to the first data end c of the signal transmission interface 302, and the second end 2 of the switch 340 is connected to the second data end d of the signal transmission interface 302. The third end 3 of the switch 340 is connected to the first data end i of the processor 320, and the fourth end 4 of the switch 340 is connected to the second data end j of the processor 320. The fifth end 5 of the switch 340 is short-circuited with the sixth end 6 of the switch 340.
[0104] The switch 340 is in the first switch state when: the first terminal 1 and the third terminal 3 of the switch 340 are connected, and the second terminal 2 and the fourth terminal 4 of the switch 340 are connected. In this case, the first data terminal i of the processor 320 is connected to the first data terminal c of the signal transmission interface 302 through the third terminal 3 and the first terminal 1 of the switch 340; the second data terminal j of the processor 320 is connected to the second data terminal d of the signal transmission interface 302 through the fourth terminal 4 and the second terminal 2 of the switch 340. At this time, the equivalent circuit of the electronic device 30 can be as follows: Figure 6 Based on this, when other electronic devices identify the signal transmission interface 302 of the electronic device 30, they will identify the signal transmission interface 302 of the electronic device 30 as SDP, so the electronic device 30 cannot quickly charge other electronic devices.
[0105] The switching switch 340 is in the second switching state means: the first end 1 and the fifth end 5 of the switching switch 340 are connected, and the second end 2 and the sixth end 6 of the switching switch 340 are connected. In this case, the first data end c of the signal transmission interface 302 is connected to the second data end d of the signal transmission interface 302 through the first end 1, the fifth end 5, the sixth end 6, and the second end 2 of the switching switch 340. That is, the first data end c and the second data end d of the signal transmission interface 302 are short-circuited together. At this time, the equivalent circuit of the electronic device 30 can be as follows Fig. 9 Based on this, when other electronic devices identify the signal transmission interface 302 of the electronic device 30, they will identify the signal transmission interface 302 of the electronic device 30 as DCP. Therefore, when the electronic device 30 is also provided with a charge and discharge chip 310 supporting the fast charging protocol, the electronic device 30 can quickly charge other electronic devices.
[0106] In some specific embodiments, the fifth terminal 5 and the sixth terminal 6 of the switch 340 can be short-circuited by a wire. Fig.10 As shown, a resistor R may also be connected between the fifth terminal 5 and the sixth terminal 6 of the switch 340. The resistor R is a zero-ohm resistor. A zero-ohm resistor refers to a resistor with a resistance value of 0 ohms, and its actual resistance is generally not greater than 50 mΩ (milliohms).
[0107] In the second possible implementation, Fig.11 As shown, the switch 340 is a three-terminal switch device, such as a field effect transistor (FET). For example, the switch 340 can be a metal oxide semiconductor field effect transistor (MOSFET).
[0108] The FET has a first end, a second end and a control end. The control end of the FET refers to the gate of the FET, and the control end of the FET is the control end n of the switch 340. In other words, the control end of the FET is connected to the output end m of the processor 320. The first end and the second end of the FET are the source and the drain of the FET, respectively. In this embodiment, the first end of the FET is connected to the first data end c of the signal transmission interface 302 and the first data end i of the processor 320. The second end of the FET is connected to the second data end d of the signal transmission interface 302 and the second data end j of the processor 320.
[0109] Here, the switching switch 340 being in the first switching state means that the first and second ends of the FET are disconnected. In this case, the first data end c and the second data end d of the signal transmission interface 302 cannot be connected through the FET, so the first data end c of the signal transmission interface 302 is connected to the first data end i of the processor 320, and the second data end d of the signal transmission interface 302 is connected to the second data end j of the processor 320. At this time, the equivalent circuit of the electronic device 30 can be as follows: Figure 6 Based on this, when other electronic devices identify the signal transmission interface 302 of the electronic device 30, they will identify the signal transmission interface 302 of the electronic device 30 as SDP, so the electronic device 30 cannot quickly charge other electronic devices.
[0110] The switching switch 340 being in the second switching state means that the first end and the second end of the FET are turned on. In this case, the first data end c and the second data end d of the signal transmission interface 302 are connected through the FET, and the first data end i and the second data end j of the processor 320 are short-circuited by the FET. That is, the first data end c and the second data end d of the signal transmission interface 302 are short-circuited together. Based on this, when other electronic devices identify the signal transmission interface 302 of the electronic device 30, they will identify the signal transmission interface 302 of the electronic device 30 as a DCP. Therefore, when the electronic device 30 is also provided with a charging and discharging chip 310 that supports the fast charging protocol, the electronic device 30 can quickly charge other electronic devices.
[0111] The charging control method provided in the embodiment of the present application is explained in detail below.
[0112] The charging control method provided in the embodiment of the present application is applied to the electronic device 30 in any of the above embodiments. When the charging control method is executed, the electronic device 30 executing the charging control method can be used as a source to quickly charge other electronic devices.
[0113] It is understandable that the internal structure of other electronic devices acting as sinks can be as follows: Figure 6 As shown, it can also be Figure 8 , Fig.10 or Fig.11 When the internal structure of other electronic devices is as shown Figure 8 , Fig.10 or Fig.11 As shown, the switch 340 of other electronic devices serving as a sink should be in the first switch state.
[0114] For ease of description, the electronic device 30 serving as a source is referred to as a first electronic device 30A, and the other electronic device serving as a sink is referred to as a second electronic device 30B. When the first electronic device 30A and the second electronic device 30B are connected via a signal transmission line, the connection structure between the first electronic device 30A and the second electronic device 30B can be as follows: Fig.12 shown.
[0115] The charging control method provided in the embodiment of the present application is explained below from three different working scenarios.
[0116] 1. The first working scenario.
[0117] The first working scenario is: when the first electronic device 30A is powered on, the second electronic device 30B is connected to the signal transmission interface 302A of the first electronic device 30A. The switch 340 of the first electronic device 30A is in the first switch state by default.
[0118] In this case, if Fig.13 As shown, the communication process between the first electronic device 30A and the second electronic device 30B includes the following steps SA1 to SA12.
[0119] SA1, the charge-discharge chip 310A of the first electronic device 30A and the charge-discharge chip 310B of the second electronic device 30B perform CC handshake, and determine that the first electronic device 30A is a source and the second electronic device 30B is a sink.
[0120] SA2, after determining the source and sink, the charge and discharge chip 310A of the first electronic device 30A transmits a first communication signal to the processor 320A of the first electronic device 30A, for reporting the information that the first electronic device 30A is the source; the charge and discharge chip 310B of the second electronic device 30B transmits a communication signal to the processor 320B of the second electronic device 30B, for reporting the information that the second electronic device 30B is the sink.
[0121] SA3, after determining the source and the sink, the charge-discharge chip 310A of the first electronic device 30A as the source transmits a second communication signal to the charge-discharge chip 310B of the second electronic device 30B as the sink. The second communication signal is used to indicate the power supply capacity of the charge-discharge chip 310A of the first electronic device 30A, that is, the multiple power supply voltage values that the first power supply terminal f of the charge-discharge chip 310A of the first electronic device 30A can output and the power supply current value corresponding to each power supply voltage value, such as 9V2A, 9V3A, 10V2A, 10V2.25A, 10V2.5A, 10V4A, 11V6A, 11V8A, 20V4.4A, etc. After receiving the "power supply capacity of the charge-discharge chip 310A of the first electronic device 30A", the charge-discharge chip 310B of the second electronic device 30B also reports the information to the processor 320B of the second electronic device 30B.
[0122] SA4, after the processor 320A of the first electronic device 30A receives the first communication signal, it first determines whether it is awakened by the connection of the second electronic device 30B; if not (i.e., the "first working scenario" described in the embodiment of the present application), the processor 320A of the first electronic device 30A transmits a first control signal to the charge and discharge chip 310A of the first electronic device 30A, and the first control signal is used to control the first power supply terminal f of the charge and discharge chip 310A of the first electronic device 30A to output a preset voltage. Generally, the preset voltage is 5V, and the current output by the first power supply terminal f of the charge and discharge chip 310A of the first electronic device 30A is 0.5A or 2A (5V2A is used as an example below).
[0123] SA5, after the preset voltage is input to the first power terminal of the charge and discharge chip 310B of the second electronic device 30B, a communication signal is transmitted to the processor 320B of the second electronic device 30B to report the information that the preset voltage is input to the first power terminal of the charge and discharge chip 310B of the second electronic device 30B.
[0124] SA6: After receiving the communication signal transmitted by the charge and discharge chip 310B of the second electronic device 30B, the processor 320B of the second electronic device 30B detects the type of the signal transmission interface 302A of the first electronic device 30A.
[0125] Since the switch 340A of the first electronic device 30A is in the first switch state by default, in step SA5 , the processor 320B of the second electronic device 30B detects that the type of the signal transmission interface 302A of the first electronic device 30A is SDP.
[0126] SA7, after the processor 320B of the second electronic device 30B detects the type of the signal transmission interface 302A of the first electronic device 30A, it performs unloading according to the "power supply capacity of the charging and discharging chip 310A of the first electronic device 30A" in step SA3 and the "type of the signal transmission interface 302A of the first electronic device 30A" in step SA6.
[0127] Here, based on step SA6, the processor 320B of the second electronic device 30B controls the charge and discharge chip 310B of the second electronic device 30B to draw the load according to the power supply capacity of 5V2A. At this time, the first electronic device 30A performs normal charging on the second electronic device 30B.
[0128] SA8, after step SA4, that is, during the process of the second electronic device 30B performing any one of steps SA5 to SA7, the processor 320A of the first electronic device 30A is further used to determine whether the fast charging function is turned on. If the fast charging function is turned on, the processor 320A of the first electronic device 30A also transmits a second control signal to the charge and discharge chip 310A of the first electronic device 30A, which is used to control the first power supply terminal f of the charge and discharge chip 310A of the first electronic device 30A to stop outputting a preset voltage.
[0129] SA9, after step SA8, the processor 320A of the first electronic device 30A controls the switching switch 340A of the first electronic device 30A to be in the second switching state, and simultaneously transmits a first control signal to the charging and discharging chip 310A of the first electronic device 30A to control the first power supply terminal f of the charging and discharging chip 310A of the first electronic device 30A to output the preset voltage again.
[0130] SA10, after the first power supply terminal of the charge-discharge chip 310B of the second electronic device 30B inputs the preset voltage, a communication signal is transmitted to the processor 320B of the second electronic device 30B to report the information that the first power supply terminal of the charge-discharge chip 310B of the second electronic device 30B inputs the preset voltage. This step is the same as step SA5.
[0131] SA11, after receiving the communication signal transmitted by the charge and discharge chip 310B of the second electronic device 30B, the processor 320B of the second electronic device 30B detects the type of the signal transmission interface 302A of the first electronic device 30A.
[0132] Since the switch 340A of the first electronic device 30A is in the second switch state at this time, in step SA11, the processor 320B of the second electronic device 30B detects that the type of the signal transmission interface 302A of the first electronic device 30A is DCP.
[0133] SA12, after the processor 320B of the second electronic device 30B detects the type of the signal transmission interface 302A of the first electronic device 30A, it performs unloading according to the "power supply capacity of the charging and discharging chip 310A of the first electronic device 30A" in step SA3 and the "type of the signal transmission interface 302A of the first electronic device 30A" in step SA11.
[0134] Here, based on step SA11, the processor 320B of the second electronic device 30B controls the charge and discharge chip 310B of the second electronic device 30B to draw power according to one of the power supply capacities (depending on the fast charging protocol) of 9V2A, 9V3A, 10V2A, 10V2.25A, 10V2.5A, 10V4A, 11V6A, 11V8A, and 20V4.4A. At this time, the first electronic device 30A quickly charges the second electronic device 30B.
[0135] Taking the example that the processor 320B of the second electronic device 30B controls the charge-discharge chip 310B of the second electronic device 30B to perform load extraction according to the power supply capacity of 9V3A, step SA12 specifically includes the following steps SA12A to SA12E.
[0136] SA12A, after the processor 320B of the second electronic device 30B detects that the type of the signal transmission interface 302A of the first electronic device 30A is DCP, it determines that the power supply voltage value requirement is 9V in combination with the "power supply capacity of the charging and discharging chip 310A of the first electronic device 30A" received in step SA3, and transmits the power supply voltage value requirement to the charging and discharging chip 310B of the second electronic device 30B.
[0137] SA12B, after receiving the power supply voltage value requirement, the charge-discharge chip 310B of the second electronic device 30B transmits a third communication signal to the charge-discharge chip 310A of the first electronic device 30A. The third communication signal includes the power supply voltage value required by the second electronic device 30B.
[0138] SA12C: After receiving the third communication signal, the charge-discharge chip 310A of the first electronic device 30A reports the power supply voltage value included in the third communication signal to the processor 320A of the first electronic device 30A.
[0139] SA12D, after receiving the power supply voltage value reported by the charge-discharge chip 310A of the first electronic device 30A, the processor 320A of the first electronic device 30A controls the first power supply terminal f of the charge-discharge chip 310A of the first electronic device 30A to output a voltage of 9V. After the first power supply terminal of the charge-discharge chip 310B of the second electronic device 30B inputs a voltage of 9V, a communication signal is transmitted to the processor 320B of the second electronic device 30B to report the information that the first power supply terminal of the charge-discharge chip 310B of the second electronic device 30B inputs a voltage of 9V.
[0140] SA12E, the processor 320B of the second electronic device 30B controls the charge and discharge chip 310B of the second electronic device 30B to draw load according to the power supply capacity of 9V3A.
[0141] The following describes the charging control method executed by the first electronic device 30A and the charging control method executed by the second electronic device 30B in the above steps SA1 to SA12 respectively.
[0142] 1. A charging control method executed by the first electronic device 30A.
[0143] Fig.14 1 is a flow chart of a charging control method provided by an embodiment of the present application. The charging control method shown in the figure is a charging control method executed by the first electronic device 30A. The following is divided into four parts to explain in detail the charging control method executed by the first electronic device 30A.
[0144] (1) Fig.14 As shown, in the above steps SA1 and SA2, the charging control method executed by the first electronic device 30A includes: S110, if the charging and discharging chip 310A detects a first preset electrical signal at the first communication end e of the charging and discharging chip 310A, a first communication signal is transmitted to the processor 320A.
[0145] Specifically, in step SA1, the charge-discharge chip 310A of the first electronic device 30A needs to perform a CC handshake with the charge-discharge chip 310B of the second electronic device 30B to determine that the first electronic device 30A is a source and the second electronic device 30B is a sink. Here, the specific process of the charge-discharge chip 310A of the first electronic device 30A determining that the first electronic device 30A is a source is as follows: the charge-discharge chip 310A of the first electronic device 30A detects a first preset electrical signal at its first communication terminal e.
[0146] In some possible embodiments, the first preset electrical signal is a pull-down electrical signal. Fig.15 Schematic diagram of the internal structure of a charge-discharge chip 310 provided in an embodiment of the present application. Fig.15 As shown, the charge and discharge chip 310 may include a pull-up resistor Rp, a pull-down resistor Rd and a switch K. Among them, the switch K is a single-pole double-throw switch, and any one of the second contact 2 and the third contact 3 of the switch K can be connected to the first contact 1. The pull-up resistor Rp is connected between the 5V voltage terminal and the second contact 2 of the switch K. The pull-down resistor Rd is connected between the ground wire GND and the third contact 3 of the switch K. The first contact 1 of the switch K is the first communication terminal e of the charge and discharge chip 310 of the electronic device 30. In the electronic device 30, the switch K in the charge and discharge chip 310 can be controlled by the processor 320. The charge and discharge chip 310 can detect the voltage signal of its first communication terminal e.
[0147] Generally, in the charge-discharge chip 310 of the electronic device 30, the first contact 1 of the switch K is connected to the third contact 3 by default. It can be understood that the power adapter used to charge the electronic device 30 also has a charge-discharge chip. The charge-discharge chip of the power adapter may only include a pull-up resistor Rp, but not a pull-down resistor Rd.
[0148] As a case, when the electronic device 30 is connected to the power adapter, the connection structure of the charge and discharge chip 310 between the electronic device 30 and the power adapter can be as follows: Fig.16 In this case, the charge-discharge chip 310 of the electronic device 30 detects the pull-up electrical signal at its first communication terminal e, thereby determining that the electronic device 30 is a sink; similarly, the charge-discharge chip 310C of the power adapter detects the pull-down electrical signal at its first communication terminal, thereby determining that the power adapter is a source.
[0149] As another example, when the first electronic device 30A and the second electronic device 30B are connected via a signal transmission line, the connection structure of the charge-discharge chip 310 between the first electronic device 30A and the second electronic device 30B can be as follows: Fig.17As shown. In this case, when two electronic devices 30 are connected through a signal transmission line, the processors 320 in the two electronic devices 30 can control the action of switch K according to their respective priorities to determine the source and sink. For example, if the two electronic devices 30 are a laptop and a mobile phone, respectively, after the laptop and the mobile phone are connected, the processor 320A in the laptop will preferentially control the first contact 1 and the second contact 2 of switch K1 to be turned on, and the processor 320B in the mobile phone will not control the action of switch K2. That is, the first contact 1 and the second contact 2 of switch K1 in the charge and discharge chip 310A of the laptop are connected, and the first contact 1 and the third contact 3 of switch K2 in the charge and discharge chip 310B of the mobile phone are connected. In this case, the charge and discharge chip 310A of the laptop will detect the pull-down electrical signal at its first communication end, thereby determining that the laptop is the source; the charge and discharge chip 310B of the mobile phone will detect the pull-up electrical signal at its first communication end, thereby determining that the mobile phone is the sink. In other specific embodiments, the processor 320 of the electronic device 30 can also receive instructions input by the user and control the switch K according to the instructions input by the user. In this way, the user can determine, by inputting instructions, that one of the two connected electronic devices 30 is used as a source and the other is used as a sink.
[0150] In some other possible embodiments, the first preset electrical signal may also be a low level signal or a high level signal, which will not be described in detail herein.
[0151] After the charge-discharge chip 310A of the first electronic device 30A determines that the first electronic device 30A is the source, it transmits a first communication signal to the processor 320A of the first electronic device 30A. The first communication signal is used to indicate that the first electronic device 30A is the source.
[0152] (2) Fig.14 As shown, in the above-mentioned step SA4, the charging control method executed by the first electronic device 30A includes: S120, after the processor 320A receives the first communication signal, if it is determined that the current working time of the processor 320A is greater than the first preset time, a first control signal is transmitted to the charging and discharging chip 310A.
[0153] Specifically, in step SA4, after receiving the first communication signal, the processor 320A of the first electronic device 30A first determines the working scene. That is, the processor 320A of the first electronic device 30A determines whether "when the first electronic device 30A is in the power-on state, the second electronic device 30B is connected to the signal transmission interface 302A of the first electronic device 30A", or "when the first electronic device 30A is in the power-off state, the second electronic device 30B is connected to the signal transmission interface 302A of the first electronic device 30A". Since when the first electronic device 30A is in the power-off state, the second electronic device 30B is connected to the first electronic device 30A through the signal transmission line, and the processor 320A of the first electronic device 30A is also awakened to enter the working state, so here the processor 320A of the first electronic device 30A can determine the working scene by determining the relationship between its working time and the first preset time. The working time here refers to the working time of the processor 320 after it is powered on this time.
[0154] Generally, if the current working duration of the processor 320A of the first electronic device 30A is greater than the first preset duration, the processor 320A of the first electronic device 30A can determine that the working scenario of the first electronic device 30A is the "first working scenario" described in the embodiment of the present application, that is, the processor 320A of the first electronic device 30A is not awakened by the connection of the second electronic device 30B. The first preset duration here can be, for example, 3S (seconds), 5S or 10S. The length of the first preset duration can be set by those skilled in the art according to needs and experience, and is not limited here.
[0155] In some other embodiments, the processor 320A of the first electronic device 30A may also determine the working scenario by determining whether it receives a wake-up signal transmitted by the charge-discharge chip 310A of the first electronic device 30A. In this case, if the processor 320A of the first electronic device 30A does not receive the wake-up signal transmitted by the charge-discharge chip 310A of the first electronic device 30A, it is determined that the working scenario of the first electronic device 30A is the "first working scenario" described in the embodiment of the present application.
[0156] When the processor 320A of the first electronic device 30A determines that the first electronic device 30A is in the first working scenario, it transmits a first control signal to the charge-discharge chip 310A of the first electronic device 30A. The first control signal is used to control the first power supply terminal f of the charge-discharge chip 310 to output a preset voltage. The preset voltage here is 5V, and the corresponding current is generally 2A (or 0.5A).
[0157] After the above step SA4, the first electronic device 30A can continue to be in the state of "determining whether the fast charging function is turned on" in step SA8. If it is determined that the fast charging function is not turned on, the subsequent steps are not executed. In this case, the first electronic device 30A continues to output 5V2A power to the second electronic device 30B, and the first electronic device 30A performs normal charging on the second electronic device 30B. If it is determined that the fast charging function is turned on, the subsequent steps are executed.
[0158] (3) Fig.14 As shown, in the above step SA8, the charging control method executed by the first electronic device 30A includes: S130, if the processor 320A determines that the fast charging function has been turned on, transmitting a second control signal to the charging and discharging chip 310A.
[0159] Specifically, in step SA8, the processor 320A of the first electronic device 30A needs to determine whether the fast charging function is turned on. Whether the fast charging function is turned on or not can be controlled by the user. This is described below from three different embodiments.
[0160] In a first possible embodiment, the charging control method executed by the first electronic device 30A may further include, between step S120 and step S130, prompting the user to turn on the fast charging function, and a process of turning on the fast charging function.
[0161] For example, between step S120 and step S130, the charging control method executed by the first electronic device 30A also includes the following steps: the processor 320A controls the display screen of the electronic device 30A to display a charging selection message; if the processor 320A receives a confirmation instruction for the charging selection message, the fast charging function is turned on.
[0162] The charging selection message is used to indicate whether to use the fast charging protocol to charge other electronic devices. The charging selection message may be popped up after step S120. Fig.18 Schematic diagram of a charging selection message provided by an embodiment of the present application. Fig.18 As shown, the charging selection message may be "whether to fast charge the inserted device". Fig.18 In the illustrated embodiment, the charging selection message also includes a "yes" control and a "no" control. If the user selects the "yes" control by touching or clicking the mouse, the processor 320 will receive a confirmation instruction for the charging selection message, and the fast charging function will be turned on. If the user selects the "no" control by touching or clicking the mouse, the processor 320 will not receive a confirmation instruction for the charging selection message, and the fast charging function will not be turned on.
[0163] exist Fig.18In the illustrated embodiment, the charging selection message also includes a note message for the fast charging function, namely, "data cannot be transferred with the inserted device". The note message is used to remind the user that when the first electronic device 30A is fast charging the second electronic device 30B, data cannot be transferred between the first electronic device 30A and the second electronic device 30B. Generally, when the user selects the "yes" control or the "no" control, the electronic device 30 will close the charging selection message.
[0164] exist Fig.18 In the illustrated embodiment, the user can also close the charging selection message by clicking the "×" control in the upper right corner of the display screen of the electronic device 30. If the user does not select the "Yes" control or the "No" control, but closes the charging selection message through the "×" control, the processor 320 will not receive a confirmation instruction for the charging selection message, and the fast charging function is not turned on.
[0165] In a second possible embodiment, Fig.19 As shown, the user can also open the "settings" window of the first electronic device 30A by himself, and control the "on" or "off" of the external fast charging function of the first electronic device 30A in the "settings" window of the first electronic device 30A. When the user selects the external fast charging function to be "on", the processor 320A will receive a confirmation instruction for the charging selection message, and the fast charging function is turned on.
[0166] In a third possible embodiment, Fig. 20 As shown, the electronic device 30 may also be provided with a fast charging switch 350. The fast charging switch 350 is a hardware switch on the electronic device 30. The user may send an instruction of "enabling external fast charging function" to the processor 320A of the first electronic device 30A by pressing the fast charging switch 350 of the first electronic device 30A. When the processor 320A of the first electronic device 30A receives the instruction, the fast charging function is enabled.
[0167] After the fast charging function is turned on, the processor 320A of the first electronic device 30A transmits a second control signal to the charge-discharge chip 310A of the first electronic device 30A. The second control signal is used to instruct the first power terminal f of the charge-discharge chip 310 to stop outputting a preset voltage.
[0168] (4) Fig.14 As shown, in the above step SA9, the charging control method executed by the first electronic device 30A includes: S140, after the processor 320A transmits the second control signal to the charging and discharging chip 310A, controls the switching switch 340A to be in the second switching state, and transmits the first control signal to the charging and discharging chip 310A.
[0169] Specifically, from the above description, it can be seen that there are two prerequisites for the first electronic device 30A to quickly charge the second electronic device 30B: one is that the charging and discharging chip 310A of the first electronic device 30A supports the fast charging protocol, and the other is that the second electronic device 30B detects that the signal transmission interface 302A type of the first electronic device 30A is DCP.
[0170] In the aforementioned step S130, the processor 320A of the first electronic device 30A has determined that the fast charging function is turned on, and controls the first power terminal f of the charge-discharge chip 310A of the first electronic device 30A to stop outputting the preset voltage. Therefore, in step S140, the processor 320A of the first electronic device 30A needs to control the switch 340A of the first electronic device 30A to be in the second switch state, the purpose of which is: when the switch 340A of the first electronic device 30A is in the second switch state, the second electronic device 30B detects that the type of the signal transmission interface 302A of the first electronic device 30A is DCP.
[0171] The trigger condition for the processor 320B of the second electronic device 30B to detect the type of the signal transmission interface 302A of the first electronic device 30A is: the first power supply terminal of the charge-discharge chip 310B of the second electronic device 30B inputs a preset voltage. Therefore, the processor 320A of the first electronic device 30A, while controlling the switching switch 340A of the first electronic device 30A to be in the second switch state, also needs to transmit a first control signal to the charge-discharge chip 310A of the first electronic device 30A, thereby controlling the first power supply terminal f of the charge-discharge chip 310A of the first electronic device 30A to output the preset voltage again, the purpose of which is to make the second electronic device 30B re-detect the type of the signal transmission interface 302A of the first electronic device 30A.
[0172] By executing the above steps S110 to S140, the first electronic device 30A can trigger the second electronic device 30B that has been connected to the first electronic device 30A to re-detect the type of the signal transmission interface 302A of the first electronic device 30A when determining that the external fast charging function has been turned on, and can make the second electronic device 30B detect that the type of the signal transmission interface 302A of the first electronic device 30A is DCP. In this case, the second electronic device 30B will perform high power extraction, so the first electronic device 30A can quickly charge the second electronic device 30B.
[0173] The charging control method executed by the first electronic device 30A is further expanded below.
[0174] In some embodiments, in the above step SA3, the charging control method executed by the first electronic device 30A includes: S150, if the charging and discharging chip 310A detects a first preset electrical signal at the first communication end e of the charging and discharging chip 310A, a second communication signal is transmitted to the signal transmission interface 302A.
[0175] Step S150 is performed simultaneously with step S110. Specifically, "the charge-discharge chip 310A detects the first preset electrical signal at the first communication terminal e of the charge-discharge chip 310A" means that the charge-discharge chip 310A determines that the first electronic device 30A is the source, which will not be repeated. After the charge-discharge chip 310A determines that the first electronic device 30A is the source, it also transmits a second communication signal to the charge-discharge chip 310B of the second electronic device 30B through the signal transmission interface 302A of the first electronic device 30A.
[0176] Based on this, in the above steps SA12B to SA12D, the charging control method executed by the first electronic device 30A includes the following steps S152, S154 and S162, S164.
[0177] S152, if the charge-discharge chip 310A receives a third communication signal including one of the multiple supply voltage values at the first communication end e of the charge-discharge chip 310A within the second preset time after receiving the first control signal, then transmit the one supply voltage value to the processor 320A.
[0178] Specifically, step S152 is performed after step S140. The "first control signal" in step S152 refers to the first control signal transmitted by the processor 320A of the first electronic device 30A to the charge and discharge chip 310A of the first electronic device 30A in step S140. The second preset duration refers to the preset duration for the charge and discharge chip 310A of the first electronic device 30A to receive the third communication signal transmitted by the charge and discharge chip 310B of the second electronic device 30B. The second preset duration can be set by those skilled in the art based on experience and needs, and is not limited here. The third communication signal is a communication signal containing the power supply voltage value required by the second electronic device 30B.
[0179] After receiving the third communication signal, the charge-discharge chip 310A of the first electronic device 30A transmits the power supply voltage value included in the third communication signal to the processor 320A of the first electronic device 30A.
[0180] S154, after receiving a supply voltage value, the processor 320A transmits a third control signal to the charge-discharge chip 310A.
[0181] After receiving the power supply voltage value required by the second electronic device 30B, the processor 320A of the first electronic device 30A transmits a third control signal to the charge-discharge chip 310A of the first electronic device 30A. The third control signal is used to control the first power supply terminal f of the charge-discharge chip 310A to output a specified voltage, and the voltage value of the specified voltage is equal to the power supply voltage value required by the second electronic device 30B.
[0182] S162: If the charge-discharge chip 310A does not receive the third communication signal within the second preset time after receiving the first control signal, it transmits a fourth communication signal to the processor 320A.
[0183] Specifically, step S162 is parallel to step S152, which refers to the situation where the charge and discharge chip 310A of the first electronic device 30A does not receive the third communication signal within the second preset time after receiving the first control signal. In this case, it indicates that the charge and discharge chip 310A of the first electronic device 30A and the charge and discharge chip 310B of the second electronic device 30B have failed to communicate. Based on this, the charge and discharge chip 310A of the first electronic device 30A can transmit a fourth communication signal to the processor 320A of the first electronic device 30A to report the information that "the charge and discharge chip 310A of the first electronic device 30A and the charge and discharge chip 310B of the second electronic device 30B have failed to communicate". In other words, the fourth communication signal is used to indicate the information that "communication with the charge and discharge chip 310B of the sink has failed".
[0184] S164, after receiving the fourth communication signal, the processor 320A controls the switching switch 340A to be in the first switching state, and transmits the first control signal to the charging and discharging chip 310A.
[0185] After receiving the fourth communication signal, the processor 320A of the first electronic device 30A switches the state of the switch 340A of the first electronic device 30A back to the first switch state, and transmits a first control signal to the charge-discharge chip 310A to control the first power supply terminal f of the charge-discharge chip 310A of the first electronic device 30A to output a preset voltage. At this time, the first electronic device 30A performs normal charging on the second electronic device 30B.
[0186] While the processor 320A of the first electronic device 30A executes step S164, it can also control the display screen of the first electronic device 30A to display a prompt message indicating that the fast charging function has failed. For example, the prompt message indicating that the fast charging function has failed may be "The current device cannot perform fast charging on the inserted device and has switched to normal charging".
[0187] 2. A charging control method executed by the second electronic device 30B.
[0188] The following is divided into nine parts to explain in detail the charging control method executed by the second electronic device 30B.
[0189] (1) In the above steps SA1 and SA2, the charging control method executed by the second electronic device 30B includes: S210, if the charging and discharging chip 310B detects the second preset electrical signal at the first communication end of the charging and discharging chip 310B, a fifth communication signal is transmitted to the processor 320B.
[0190] Specifically, in step SA1, the charge and discharge chip 310A of the first electronic device 30A needs to perform a CC handshake with the charge and discharge chip 310B of the second electronic device 30B to determine the source and sink. Here, the specific process of the charge and discharge chip 310B of the second electronic device 30B determining that the second electronic device 30B is a sink is: the charge and discharge chip 310B of the second electronic device 30B detects a second preset electrical signal at its first communication end. Among them, the second preset electrical signal and the first preset electrical signal are two opposite electrical signals. That is, when the first preset electrical signal is a pull-down electrical signal, the second preset electrical signal is a pull-up electrical signal. When the first preset electrical signal is a low-level signal, the second preset electrical signal is a high-level signal.
[0191] After the charge-discharge chip 310B of the second electronic device 30B determines that the second electronic device 30B is a sink, it transmits a fifth communication signal to the processor 320B of the second electronic device 30B. The fifth communication signal is used to instruct the second electronic device 30B to be a sink.
[0192] (2) In the above step SA3, the charging control method executed by the second electronic device 30B includes: S220, if the charging and discharging chip 310B receives the second communication signal, the multiple power supply voltage values and the power supply current value corresponding to each power supply voltage value contained in the second communication signal are transmitted to the processor 320B.
[0193] After receiving the second communication signal, the charge-discharge chip 310B of the second electronic device 30B transmits the multiple power supply voltage values and the power supply current value corresponding to each power supply voltage value contained in the second communication signal to the processor 320B of the second electronic device 30B. The processor 320B of the second electronic device 30B is also used to store the received "multiple power supply voltage values and the power supply current value corresponding to each power supply voltage value".
[0194] (3) In the above step SA5, the charging control method executed by the second electronic device 30B includes: S230, if the first power terminal of the charge-discharge chip 310B inputs the preset voltage, a sixth communication signal is transmitted to the processor 320B. The sixth communication signal is used to indicate that the first power terminal of the charge-discharge chip 310B inputs the preset voltage.
[0195] (4) In the above step SA6, the charging control method executed by the second electronic device 30B includes: S240, after receiving the sixth communication signal, the processor 320B detects the type of the signal transmission interface 302A of the connected first electronic device 30A.
[0196] Generally, the processor 320B of the second electronic device 30B can obtain the type of the signal transmission interface 302A of the connected first electronic device 30A by detecting the resistance of the first data terminal and the second data terminal. When the resistance of the first data terminal and the second data terminal of the processor 320B of the second electronic device 30B is 15KΩ, it indicates that the type of the signal transmission interface 302A of the connected first electronic device 30A is SDP; when the resistance of the first data terminal and the second data terminal of the processor 320B of the second electronic device 30B is 0, it indicates that the type of the signal transmission interface 302A of the connected first electronic device 30A is DCP.
[0197] (5) In the above step SA7, the charging control method executed by the second electronic device 30B includes: S250, when the processor 320B detects that the type of the signal transmission interface 302A of the connected first electronic device 30A is SDP, it transmits a fourth control signal to the charging and discharging chip 310B. The fourth control signal is used to control the charging and discharging chip 310B of the second electronic device 30B to draw the load according to the power supply capacity of 5V2A.
[0198] (6) In the above steps SA10 and SA11, the second electronic device 30B executes steps S230 and S240 again to detect that the type of the signal transmission interface 302A of the connected first electronic device 30A is DCP.
[0199] At this time, the charging control method executed by the second electronic device 30B includes: S260, determining the supply voltage value requirement. The processor 320B of the second electronic device 30B can read the "multiple supply voltage values and the supply current value corresponding to each supply voltage value" stored in step S220, and determine one of the supply voltage values as the supply voltage value requirement. In this embodiment, the processor 320B of the second electronic device 30B determines the voltage value of 9V as the supply voltage value requirement.
[0200] (7) In the above step SA12A, the charging control method executed by the second electronic device 30B includes: S270, the processor 320B transmits a seventh communication signal to the charging and discharging chip 310B, and the seventh communication signal is used to indicate the power supply voltage value requirement.
[0201] After receiving the seventh communication signal, the charge-discharge chip 310B of the second electronic device 30B transmits a third communication signal to the charge-discharge chip 310A of the first electronic device 30A.
[0202] (8) After the above step SA12D and before SA12E, the charging control method executed by the second electronic device 30B includes: S280, if the first power terminal of the charge-discharge chip 310B inputs the specified voltage, an eighth communication signal is transmitted to the processor 320B. The eighth communication signal is used to indicate that the voltage value of the specified voltage input to the first power terminal of the charge-discharge chip 310B is 9V.
[0203] (9) In the above step SA12E, the charging control method executed by the second electronic device 30B includes: S290, after receiving the eighth communication signal, the processor 320B transmits a fifth control signal to the charge-discharge chip 310B. The fifth control signal is used to control the charge-discharge chip 310B to draw the load according to 9V3A. At this time, the first electronic device 30A quickly charges the second electronic device 30B.
[0204] The following briefly summarizes the inventive concept of the charging control method in the first working scenario from a specific embodiment in conjunction with the accompanying drawings.
[0205] Fig.21 This is a communication flow chart of a mobile phone and a laptop provided in an embodiment of the present application. In this specific embodiment, the laptop is a source, the mobile phone is a sink, the laptop and the mobile phone are connected via a CTC cable, and the charging and discharging chips of the laptop and the mobile phone both support the PPS protocol. The switch in the laptop is in the first switch state by default.
[0206] like Fig.21 As shown, the communication process between the laptop and the mobile phone is as follows:
[0207] Step 1: The laptop is turned on, and the mobile phone is connected to the laptop via a CTC cable. After CC handshake and BC1.2 detection, the laptop outputs 5V2A power to the mobile phone.
[0208] Step 2: The display screen of the laptop displays a charging selection message, prompting the user to select whether to fast charge the mobile phone. If the user selects no, step 3 is executed. If the user selects yes, step 4 is executed.
[0209] Step 3, the laptop continuously outputs 5V2A power to the mobile phone.
[0210] Step 4: The processor of the notebook computer controls the VBUS port to be powered down to 0. That is, the processor of the notebook computer controls the output voltage of the first power supply terminal of the charge-discharge chip to be powered down to 0.
[0211] Step 5: The processor of the notebook computer controls the switch to be in the second switch state, and controls the VBUS port to output 5V to the mobile phone.
[0212] Step 6: The mobile phone performs BC1.2 detection again.
[0213] Step 7: The mobile phone recognizes that the type-C interface type of the laptop is DCP.
[0214] Step 8: The laptop computer quickly charges the mobile phone via the PPS protocol.
[0215] It can be seen that the inventive idea of the charging control method is: after the laptop and mobile phone are connected and the mobile phone is charged normally, if the user chooses to charge the mobile phone quickly, the switch is switched to the second switch state, and the VBUS is controlled to be powered off and then powered on again to trigger the mobile phone to perform BC1.2 detection again. Since the switch is in the second switch state, when the mobile phone performs BC1.2 detection for the second time, it will identify the type of the laptop's type-C interface as DCP. In this way, the mobile phone can perform high-power extraction, that is, the laptop can charge the computer quickly.
[0216] 2. The second working scenario.
[0217] The second working scenario is: when the first electronic device 30A is in a shutdown state, the second electronic device 30B is connected to the signal transmission interface 302A of the first electronic device 30A, thereby waking up the first electronic device 30A. After the first electronic device 30A is woken up, it quickly charges the connected second electronic device 30B.
[0218] In this case, if Fig. 22 As shown, the communication process between the first electronic device 30A and the second electronic device 30B includes the following steps SB1 to SB11.
[0219] SB1, the charge-discharge chip 310A of the first electronic device 30A and the charge-discharge chip 310B of the second electronic device 30B perform CC handshake, and determine that the second electronic device 30B is a source and the first electronic device 30A is a sink.
[0220] SB2, after determining the source and the sink, the charge and discharge chip 310B of the second electronic device 30B transmits a communication signal to the processor 320B of the second electronic device 30B to report the information that the second electronic device 30B serves as a source.
[0221] SB3, the processor 320B of the second electronic device 30B controls the first power terminal of the charging and discharging chip 310B of the second electronic device 30B to output a preset voltage.
[0222] SB4, when the first power supply terminal of the charge-discharge chip 310A of the first electronic device 30A inputs a preset voltage, the charge-discharge chip 310A transmits a wake-up signal to the processor 320A of the first electronic device 30A. The wake-up signal is used to wake up the processor 320A of the first electronic device 30A.
[0223] SB5, the processor 320A of the first electronic device 30A operates to control the charge and discharge chip 310A of the first electronic device 30A and the charge and discharge chip 310B of the second electronic device 30B to re-perform CC handshake, and determines that the first electronic device 30A is a source and the second electronic device 30B is a sink.
[0224] SB6, after determining the source and sink, the charge and discharge chip 310A of the first electronic device 30A transmits a first communication signal to the processor 320A of the first electronic device 30A, for reporting the information that the first electronic device 30A is the source; the charge and discharge chip 310B of the second electronic device 30B transmits a communication signal to the processor 320B of the second electronic device 30B, for reporting the information that the second electronic device 30B is the sink.
[0225] This step is the same as step SA2 in the first working scenario.
[0226] SB7, after determining the source and the sink, the charge-discharge chip 310A of the first electronic device 30A as the source transmits a second communication signal to the charge-discharge chip 310B of the second electronic device 30B as the sink. The second communication signal is used to indicate the power supply capacity of the charge-discharge chip 310A of the first electronic device 30A, that is, the multiple power supply voltage values that the first power supply terminal f of the charge-discharge chip 310A of the first electronic device 30A can output and the power supply current value corresponding to each power supply voltage value, such as 9V2A, 9V3A, 10V2A, 10V2.25A, 10V2.5A, 10V4A, 11V6A, 11V8A, 20V4.4A, etc. After receiving the "power supply capacity of the charge-discharge chip 310A of the first electronic device 30A", the charge-discharge chip 310B of the second electronic device 30B also reports the information to the processor 320B of the second electronic device 30B.
[0227] This step is the same as step SA3 in the first working scenario.
[0228] SB8. After the processor 320A of the first electronic device 30A receives the first communication signal, it first determines whether it is awakened due to the connection with the second electronic device 30B; if so (that is, the "second working scenario" described in the embodiment of the present application), the processor 320A of the first electronic device 30A controls the switching switch 340A of the first electronic device 30A to be in the second switching state, and at the same time transmits a first control signal to the charging and discharging chip 310A of the first electronic device 30A to control the first power supply terminal f of the charging and discharging chip 310A of the first electronic device 30A to output a preset voltage.
[0229] SB9, after the preset voltage is input to the first power supply terminal of the charge and discharge chip 310B of the second electronic device 30B, a communication signal is transmitted to the processor 320B of the second electronic device 30B to report the information that the preset voltage is input to the first power supply terminal of the charge and discharge chip 310B of the second electronic device 30B.
[0230] This step is the same as step SA10 in the first working scenario.
[0231] SB10, after receiving the communication signal transmitted by the charge and discharge chip 310B of the second electronic device 30B, the processor 320B of the second electronic device 30B detects the type of the signal transmission interface 302A of the first electronic device 30A.
[0232] Since the switch 340A of the first electronic device 30A is in the second switch state, the processor 320B of the second electronic device 30B detects that the type of the signal transmission interface 302A of the first electronic device 30A is DCP. This step is the same as step SA11 in the first working scenario.
[0233] SB11, after the processor 320B of the second electronic device 30B detects the type of the signal transmission interface 302A of the first electronic device 30A, it performs unloading according to the "power supply capacity of the charging and discharging chip 310A of the first electronic device 30A" in step SB7 and the "type of the signal transmission interface 302A of the first electronic device 30A" in step SB11.
[0234] This step is the same as step SA12 in the first working scenario. Here, the following description is still based on the example that the processor 320B of the second electronic device 30B controls the charge-discharge chip 310B of the second electronic device 30B to perform load extraction according to the power supply capacity of 9V3A.
[0235] The following describes the charging control method executed by the first electronic device 30A and the charging control method executed by the second electronic device 30B in the above steps SB1 to SB11 , respectively.
[0236] 1. A charging control method executed by the first electronic device 30A.
[0237] Fig.23 1 is a flow chart of another charging control method provided in an embodiment of the present application. The charging control method shown in the figure is a charging control method executed by the first electronic device 30A. The following is a detailed explanation of the charging control method executed by the first electronic device 30A in two parts.
[0238] (1) Fig.23 As shown, in the above steps SB5 and SB6, the charging control method executed by the first electronic device 30A includes: S310, if the charging and discharging chip 310A detects a first preset electrical signal at the first communication end e of the charging and discharging chip 310A, a first communication signal is transmitted to the processor 320A.
[0239] This step is the same as step S110. That is, the first electronic device 30A is in the power-on state, and the charge-discharge chip 310A of the first electronic device 30A performs CC handshake with the charge-discharge chip 310B of the second electronic device 30B to determine that the first electronic device 30A is the source and the second electronic device 30B is the sink. After the charge-discharge chip 310A of the first electronic device 30A determines that the first electronic device 30A is the source, it transmits a first communication signal to the processor 320A of the first electronic device 30A. The first communication signal is used to indicate that the first electronic device 30A is the source.
[0240] (2) Fig.23 As shown, in the above-mentioned step SB8, the charging control method executed by the first electronic device 30A includes: S320, after the processor 320A receives the first communication signal, if it is determined that the current working time of the processor 320A is less than or equal to the first preset time, the switching switch 340A is controlled to be in the second switching state, and the first control signal is transmitted to the charging and discharging chip 310A.
[0241] Specifically, in step SB8, after receiving the first communication signal, the processor 320A of the first electronic device 30A must first determine the working scene. In parallel with step S120, if the current working duration of the processor 320A of the first electronic device 30A is less than or equal to the first preset duration, the processor 320A of the first electronic device 30A can determine that the working scene of the first electronic device 30A is the "second working scene" described in the embodiment of the present application, that is, the processor 320A of the first electronic device 30A is awakened by the connection of the second electronic device 30B. Or, in some other embodiments, if the processor 320A of the first electronic device 30A receives a wake-up signal transmitted by the charge and discharge chip 310A of the first electronic device 30A, it is determined that the working scene of the first electronic device 30A is the "second working scene" described in the embodiment of the present application.
[0242] In this case, the processor 320A of the first electronic device 30A controls the switch 340A to be in the second switch state; at the same time, the processor 320A transmits a first control signal to the charge-discharge chip 310A to control the first power supply terminal f of the charge-discharge chip 310A of the first electronic device 30A to output a preset voltage. In this way, the second electronic device 30B that has been connected to the first electronic device 30A will be triggered to detect the type of the signal transmission interface 302A of the first electronic device 30A, and the second electronic device 30B can detect that the type of the signal transmission interface 302A of the first electronic device 30A is DCP. In this case, the second electronic device 30B will perform high-power extraction, so the first electronic device 30A can quickly charge the second electronic device 30B.
[0243] That is, in this working scenario, if the second electronic device 30B is connected to the first electronic device 30A, the first electronic device 30A directly fast charges the second electronic device 30B without the user turning on the fast charging function.
[0244] The charging control method executed by the first electronic device 30A is further expanded below.
[0245] It can be understood that in step SB1, since the first electronic device 30A is still in the shutdown state, that is, the processor 320A and the charge-discharge chip 310A of the first electronic device 30A are both in the non-operating state, no charging control method is executed in the first electronic device 30A. In this case, after the first electronic device 30A and the second electronic device 30B are connected via the signal transmission line, the connection structure of the charge-discharge chip 310 between the first electronic device 30A and the second electronic device 30B can be as follows: Fig.24As shown. Still taking the first electronic device 30A as a laptop computer and the second electronic device 30B as a mobile phone as an example, at this time, the processor 320A in the laptop computer cannot control the action of the switch K1 in the charge and discharge chip 310A, and the first contact 1 of the switch K1 is connected to the third contact 3 (default state). The processor 320B in the mobile phone can control the action of the switch K2 in the charge and discharge chip 310B, and the first contact 1 of the switch K2 is connected to the second contact 2. In this case, the charge and discharge chip 310B of the mobile phone will detect the pull-down electrical signal at its first communication terminal, thereby determining that the mobile phone is the source and the laptop computer is the sink.
[0246] In some embodiments, in the above step SB4, the charging control method executed by the first electronic device 30A includes: S330, the charging and discharging chip 310A transmits a wake-up signal to the processor 320A when a preset voltage is input to the first power terminal f of the charging and discharging chip 310A.
[0247] Specifically, step S330 is located before step S310. In step SB1, after determining that the second electronic device 30B is used as the source, the charge-discharge chip 310B of the second electronic device 30B can output a preset voltage to the first power supply terminal f of the charge-discharge chip 310A of the first electronic device 30A under the control of the processor 320B of the second electronic device 30B. In this case, the first power supply terminal f of the charge-discharge chip 310A of the first electronic device 30A inputs a preset voltage, and the charge-discharge chip 310A of the first electronic device 30A enters a working state. After the charge-discharge chip 310A of the first electronic device 30A enters a working state, a wake-up signal can be transmitted to the processor 320A of the first electronic device 30A to wake up the processor 320A of the first electronic device 30A and put it into a working state. After that, steps S310 and S320 can be executed.
[0248] In some embodiments, in step SB11 in this working scenario, the charging control method executed by the first electronic device 30A also includes the above-mentioned steps S152, S154 and S162, S164, which will not be repeated here.
[0249] 2. A charging control method executed by the second electronic device 30B.
[0250] The following is a detailed explanation of the charging control method executed by the second electronic device 30B in three parts.
[0251] (1) In the above steps SB1 and SB2, the charging control method executed by the second electronic device 30B includes: S410, if the charging and discharging chip 310B detects a first preset electrical signal at the first communication end of the charging and discharging chip 310B, a ninth communication signal is transmitted to the processor 320B.
[0252] Specifically, in step SB1, the charge-discharge chip 310B of the second electronic device 30B needs to perform CC handshake with the charge-discharge chip 310A of the first electronic device 30A to determine that the second electronic device 30B is the source. Here, the specific process of the charge-discharge chip 310B of the second electronic device 30B determining that the second electronic device 30B is the source is: the charge-discharge chip 310B of the second electronic device 30B detects the first preset electrical signal at its first communication end.
[0253] After the charge-discharge chip 310B of the second electronic device 30B determines that the second electronic device 30B is the source, it transmits a ninth communication signal to the processor 320B of the second electronic device 30B. The ninth communication signal is used to indicate that the second electronic device 30B is the source.
[0254] (2) In the above step SB3, the charging control method executed by the second electronic device 30B includes: S420, after receiving the ninth communication signal, the processor 320B controls the first power terminal of the charging and discharging chip 310B to output a preset voltage.
[0255] After receiving the ninth communication signal, the processor 320B of the second electronic device 30B outputs a control signal to the charge-discharge chip 310B of the second electronic device 30B to control the first power supply terminal of the charge-discharge chip 310B of the second electronic device 30B to output a preset voltage of 5V.
[0256] (3) In the above steps SB5 and SB6, the charging control method executed by the second electronic device 30B further includes S210; in the above step SB7, the charging control method executed by the second electronic device 30B further includes S220; in the above step SB9, the charging control method executed by the second electronic device 30B further includes S230; in the above step SB10, the charging control method executed by the second electronic device 30B further includes S240; when determining the supply voltage value requirement, the charging control method executed by the second electronic device 30B further includes S260; in the above step SB11, the charging control method executed by the second electronic device 30B further includes S270 to S290, and these steps that are the same as those in the first working scenario are not repeated here.
[0257] The following briefly summarizes the inventive concept of the charging control method in the second working scenario from a specific embodiment in conjunction with the accompanying drawings.
[0258] Fig.251 is another communication flow chart of a mobile phone and a laptop provided in an embodiment of the present application. In this specific embodiment, the laptop and the mobile phone are connected via a CTC cable, and the charging and discharging chips of the laptop and the mobile phone both support the PPS protocol. The switch in the laptop is in the first switch state by default.
[0259] like Fig.25 As shown, the communication process between the laptop and the mobile phone is as follows:
[0260] Step 1: The laptop is turned off and the mobile phone is connected to the laptop via a CTC cable.
[0261] Step 2: After the mobile phone and the laptop complete CC handshake, the mobile phone outputs 5V2A power to the laptop as a source.
[0262] Step 3, a 5V voltage is input to the first power supply terminal of the charging and discharging chip of the laptop computer to wake up the processor of the laptop computer.
[0263] Step 4: The laptop computer performs CC handshake with the mobile phone again, and the mobile phone stops outputting 5V voltage as a sink.
[0264] Step 5: The laptop computer serves as a source, and the processor of the laptop computer controls the switch to be in the second switch state, and controls the VBUS port to output 5V to the mobile phone.
[0265] Step 6: The mobile phone performs BC1.2 detection.
[0266] Step 7: The mobile phone recognizes that the type-C interface type of the laptop is DCP.
[0267] Step 8: The laptop computer quickly charges the mobile phone via the PPS protocol.
[0268] It can be seen that the inventive idea of the charging control method is: when the laptop is in the off state, if the mobile phone is connected to the laptop, the mobile phone first outputs 5V power to the laptop as a source to wake up the laptop. After the laptop enters the working state from the off state, the switch is directly switched to the second switch state, and VBUS is controlled to output 5V power to the mobile phone to trigger the mobile phone to perform BC1.2 detection. Since the switch is in the second switch state, when the mobile phone performs BC1.2 detection, it will identify the type of the laptop's type-C interface as DCP. In this way, the mobile phone can perform high-power extraction, that is, the laptop can quickly charge the computer.
[0269] 3. The third working scenario.
[0270] The third working scenario is: when the first electronic device 30A is powered on, the second electronic device 30B is connected to the signal transmission interface 302A of the first electronic device 30A. The switch 340A of the first electronic device 30A is in the second switch state by default.
[0271] In this case, if Fig.26 As shown, the communication process between the first electronic device 30A and the second electronic device 30B includes the following steps SC1 to SC7.
[0272] SC1, the charge-discharge chip 310A of the first electronic device 30A and the charge-discharge chip 310B of the second electronic device 30B perform CC handshake, and determine that the first electronic device 30A is a source and the second electronic device 30B is a sink.
[0273] SC2, after determining the source and sink, the charge and discharge chip 310A of the first electronic device 30A transmits a first communication signal to the processor 320A of the first electronic device 30A, for reporting the information that the first electronic device 30A is the source; the charge and discharge chip 310B of the second electronic device 30B transmits a communication signal to the processor 320B of the second electronic device 30B, for reporting the information that the second electronic device 30B is the sink.
[0274] SC3, after determining the source and the sink, the charge-discharge chip 310A of the first electronic device 30A as the source transmits a second communication signal to the charge-discharge chip 310B of the second electronic device 30B as the sink. The second communication signal is used to indicate the power supply capacity of the charge-discharge chip 310A of the first electronic device 30A, that is, the multiple power supply voltage values that the first power supply terminal f of the charge-discharge chip 310A of the first electronic device 30A can output and the power supply current value corresponding to each power supply voltage value, such as 9V2A, 9V3A, 10V2A, 10V2.25A, 10V2.5A, 10V4A, 11V6A, 11V8A, 20V4.4A, etc. After receiving the "power supply capacity of the charge-discharge chip 310A of the first electronic device 30A", the charge-discharge chip 310B of the second electronic device 30B also reports the information to the processor 320B of the second electronic device 30B.
[0275] SC4, after receiving the first communication signal, the processor 320A of the first electronic device 30A transmits a first control signal to the charge and discharge chip 310A of the first electronic device 30A, and the first control signal is used to control the first power terminal f of the charge and discharge chip 310A of the first electronic device 30A to output a preset voltage.
[0276] SC5, after the preset voltage is input to the first power terminal of the charge and discharge chip 310B of the second electronic device 30B, a communication signal is transmitted to the processor 320B of the second electronic device 30B to report information that the preset voltage is input to the first power terminal of the charge and discharge chip 310B of the second electronic device 30B.
[0277] SC6, after receiving the communication signal transmitted by the charge and discharge chip 310B of the second electronic device 30B, the processor 320B of the second electronic device 30B detects the type of the signal transmission interface 302A of the first electronic device 30A.
[0278] Since the switch 340A of the first electronic device 30A is in the second switch state by default, in step SC6 , the processor 320B of the second electronic device 30B detects that the type of the signal transmission interface 302A of the first electronic device 30A is DCP.
[0279] SC7, after the processor 320B of the second electronic device 30B detects the type of the signal transmission interface 302A of the first electronic device 30A, it performs loading according to the "power supply capacity of the charging and discharging chip 310A of the first electronic device 30A" in step SC3 and the "type of the signal transmission interface 302A of the first electronic device 30A" in step SC6. At this time, the first electronic device 30A quickly charges the second electronic device 30B.
[0280] In this working scenario, the user can connect the first electronic device 30A and the second electronic device 30B through the CTC cable. Fig.19 The interface shown sets the first electronic device 30A so that the "external fast charging function" of the first electronic device 30A is turned on by default, that is, the switch 340A of the first electronic device 30A is in the second switch state by default.
[0281] In this working scenario, compared with the first working scenario, the communication process between the first electronic device 30A and the second electronic device 30B omits the following steps: starting from "first determining whether it is awakened due to the connection of the second electronic device 30B" in step SA4, and ending with "the processor 320A of the first electronic device 30A controls the switch 340A of the first electronic device 30A to be in the second switch state" in step SA9. Based on this, the charging control method executed by the first electronic device 30A and the charging control method executed by the second electronic device 30B in this working scenario are not described in detail.
[0282] In this working scenario, the inventive idea of the charging control method is: before the laptop and the mobile phone are connected, the switch of the laptop is switched to the second switch state. In this way, when the laptop and the mobile phone are connected, the mobile phone will directly identify the type of the laptop's type-C interface as DCP. In this way, the mobile phone can perform high-power extraction, that is, the laptop can quickly charge the computer.
[0283] The present application also provides a charging system, including a second electronic device and a first electronic device as in any of the above embodiments. The first electronic device and the second electronic device respectively execute their corresponding charging control methods, so that the first electronic device can quickly charge the second electronic device.
[0284] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. An electronic device, characterized in that: The electronic device comprises: a signal transmission interface, a charge and discharge chip, a processor and a switch; The signal transmission interface is used to connect with other electronic devices; the communication end of the signal transmission interface is connected to the first communication end of the charge and discharge chip; the second communication end of the charge and discharge chip is connected to the communication end of the processor, and the charge and discharge chip supports the fast charging protocol; The power supply end of the signal transmission interface is connected to the power supply end of the charge and discharge chip; The first data terminal and the second data terminal of the signal transmission interface, and the first data terminal and the second data terminal of the processor are all connected to the switch; the output terminal of the processor is connected to the control terminal of the switch to control the switch to be in the first switch state or the second switch state; When the switching switch is in the first switching state, the first data terminal of the signal transmission interface is connected to the first data terminal of the processor, and the second data terminal of the signal transmission interface is connected to the second data terminal of the processor; when the switching switch is in the second switching state, the first data terminal and the second data terminal of the signal transmission interface are short-circuited; The charge-discharge chip is used to: if a preset electrical signal is detected at the first communication end of the charge-discharge chip, transmit a first communication signal to the processor, wherein the first communication signal is used to indicate that the electronic device is a power supply device; The processor is used to: after receiving the first communication signal, if it is determined that the current working time of the processor is less than or equal to the first preset time, control the switching switch to be in the second switching state, and transmit a first control signal to the charging and discharging chip, wherein the first control signal is used to control the power supply end of the charging and discharging chip to output a preset voltage.
2. The electronic device according to claim 1, wherein: The first end of the switch is connected to the first data end of the signal transmission interface, the second end of the switch is connected to the second data end of the signal transmission interface, the third end of the switch is connected to the first data end of the processor, the fourth end of the switch is connected to the second data end of the processor, and the fifth end of the switch is short-circuited with the sixth end of the switch; When the first end and the third end of the switching switch are connected, and the second end and the fourth end of the switching switch are connected, the switching switch is in the first switching state; when the first end and the fifth end of the switching switch are connected, and the second end and the sixth end of the switching switch are connected, the switching switch is in the second switching state.
3. The electronic device according to claim 2, characterized in that: The fifth end of the switch and the sixth end of the switch are short-circuited via a zero-ohm resistor.
4. The electronic device according to claim 1, wherein: The switch is a field effect transistor; a first end of the field effect transistor is connected to a first data end of the signal transmission interface and a first data end of the processor, a second end of the field effect transistor is connected to a second data end of the signal transmission interface and a second data end of the processor, and a control end of the field effect transistor is connected to an output end of the processor; When the first end and the second end of the field effect transistor are disconnected, the switch is in the first switch state; when the first end and the second end of the field effect transistor are connected, the switch is in the second switch state.
5. The electronic device according to any one of claims 1 to 4, characterized in that: The fast charging protocol is the Power Delivery PD3.0 protocol.
6. The electronic device according to any one of claims 1 to 4, characterized in that: The signal transmission interface is a type-c interface; the communication end of the signal transmission interface is the configuration channel CC port of the type-c interface, the power end of the signal transmission interface is the universal serial bus power VBUS port of the type-c interface, the first data end of the signal transmission interface is the positive phase data port of the type-c interface, and the second data end of the signal transmission interface is the negative phase data port of the type-c interface.
7. A charging control method, applied to the electronic device according to any one of claims 1 to 6, characterized in that: The method comprises: If the charge-discharge chip detects a preset electrical signal at the first communication end of the charge-discharge chip, the first communication signal is transmitted to the processor, where the first communication signal is used to indicate that the electronic device is a power supply device; After the processor receives the first communication signal, if it is determined that the current working time of the processor is less than or equal to the first preset time, the switching switch is controlled to be in the second switch state, and a first control signal is transmitted to the charging and discharging chip, and the first control signal is used to control the power supply end of the charging and discharging chip to output a preset voltage.
8. The method according to claim 7, characterized in that If the charge-discharge chip detects a preset electrical signal at the first communication end of the charge-discharge chip, before transmitting the first communication signal to the processor, the method further includes: The charge-discharge chip transmits a wake-up signal to the processor when the preset voltage is input to the power supply terminal of the charge-discharge chip.
9. The method according to claim 7 or 8, characterized in that If the charge-discharge chip detects a preset electrical signal at the first communication end of the charge-discharge chip, after transmitting the first communication signal to the processor, the method further includes: After receiving the first communication signal, if the processor determines that the current working time of the processor is greater than the first preset time, the processor transmits a first control signal to the charge-discharge chip; If the processor determines that the fast charging function is turned on, the processor transmits a second control signal to the charge-discharge chip, wherein the second control signal is used to instruct the power supply terminal of the charge-discharge chip to stop outputting the preset voltage; After transmitting the second control signal to the charge and discharge chip, the processor controls the switch to be in the second switch state, and transmits the first control signal to the charge and discharge chip.
10. The method according to claim 9, characterized in that After the processor receives the first communication signal, if it is determined that the current working time of the processor is greater than the first preset time, then after transmitting the first control signal to the charging and discharging chip, the method further includes: The processor controls the display screen of the electronic device to display a charging selection message, wherein the charging selection message is used to indicate whether to use a fast charging protocol to charge other electronic devices; If the processor receives a confirmation instruction for the charging selection message, the fast charging function is enabled.
11. The method according to claim 7 or 8, characterized in that The method further comprises: If the charge-discharge chip detects the preset electrical signal at the first communication end of the charge-discharge chip, a second communication signal is transmitted to the signal transmission interface, where the second communication signal is used to indicate a plurality of supply voltage values that the electronic device can output; After the processor controls the switch to be in the second switch state and transmits the first control signal to the charge and discharge chip, the method further includes: If the charge-discharge chip receives a third communication signal including one of the multiple supply voltage values at the first communication end of the charge-discharge chip within a second preset time after receiving the first control signal, the one supply voltage value is transmitted to the processor; After receiving the one supply voltage value, the processor transmits a third control signal to the charge and discharge chip, wherein the third control signal is used to control the power supply end of the charge and discharge chip to output a specified voltage, and the voltage value of the specified voltage is equal to the one supply voltage value.
12. The method according to claim 11, characterized in that After controlling the switching switch to be in the second switch state and transmitting the first control signal to the charging and discharging chip, the method further includes: If the charge-discharge chip does not receive the third communication signal within a second preset time after receiving the first control signal, transmitting a fourth communication signal to the processor; After receiving the fourth communication signal, the processor controls the switch to be in the first switch state, and transmits the first control signal to the charge and discharge chip.
Citation Information
Patent Citations
Charging equipment and charging method thereof
CN106026247A
Electronic equipment
CN111245057A
Charging control method, electronic equipment and charging control system
CN115882535A