WO2019113732A1 - Dispositif électronique et procédé de commande de charge - Google Patents

Dispositif électronique et procédé de commande de charge Download PDF

Info

Publication number
WO2019113732A1
WO2019113732A1 PCT/CN2017/115447 CN2017115447W WO2019113732A1 WO 2019113732 A1 WO2019113732 A1 WO 2019113732A1 CN 2017115447 W CN2017115447 W CN 2017115447W WO 2019113732 A1 WO2019113732 A1 WO 2019113732A1
Authority
WO
WIPO (PCT)
Prior art keywords
charging
current
electronic device
processor
type
Prior art date
Application number
PCT/CN2017/115447
Other languages
English (en)
Chinese (zh)
Inventor
谢俊
Original Assignee
深圳市柔宇科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市柔宇科技有限公司 filed Critical 深圳市柔宇科技有限公司
Priority to PCT/CN2017/115447 priority Critical patent/WO2019113732A1/fr
Priority to CN201780095802.7A priority patent/CN111201689B/zh
Publication of WO2019113732A1 publication Critical patent/WO2019113732A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to an electronic device and a charging control method.
  • Smart devices such as mobile phones and tablets are becoming more and more popular among consumers. They can pass the universal serial bus (Universal Serial Bus) through a common power adapter, a fast charging source adapter or a computer as a USB host device. , USB) to charge.
  • USB Universal Serial Bus
  • the smart device does not distinguish the type of the charging device and can only be charged through a single fixed charging channel.
  • smart devices cannot take full advantage of the convenience of charging different charging devices. Therefore, how to make smart devices make full use of the convenience brought by different charging devices is an urgent problem to be solved.
  • the embodiment of the invention discloses an electronic device and a charging control method, which can enable the electronic device to select a charging mode suitable for the type of the charging device connected thereto, realize the diversity of the charging mode, and realize the maximum utilization of the value of the charging device. .
  • the first aspect of the embodiments of the present invention discloses an electronic device, including a processor, a charging management chip, and a rechargeable battery.
  • the processor is connected to the charging management chip, and the electronic device further includes a fast charging channel switch and a charging interface.
  • the fast charge channel switch is respectively connected to a power pin of the charging interface, the processor, and the rechargeable battery;
  • the processor controls a data pin of the charging interface to be electrically connected to the charging management chip, and detects whether the charging device is of a first type device of;
  • the processor controls the fast charging channel switch to be turned off to place the electronic device in a normal charging mode.
  • a second aspect of the embodiments of the present invention discloses a charging control method, which is applied to an electronic device, where the electronic device includes a processor, a charging management chip, and a rechargeable battery, and the electronic device further includes a fast charging And a charging switch, wherein the fast charging channel switch is respectively connected to a power pin of the charging interface, the processor and the rechargeable battery, and the method comprises:
  • the electronic device After the electronic device is connected to a charging device through the charging interface, the electronic device controls a data pin of the charging interface to be electrically connected to the charging management chip, and detects whether the charging device is of a first type device of;
  • the electronic device controls the fast charging channel switch to be turned off to place the electronic device in a normal charging mode.
  • a third aspect of the embodiments of the present invention discloses a computer readable storage medium, wherein the computer readable storage medium stores instructions for causing a computer to perform the charging described in the second aspect when the instructions are run on a computer Control Method.
  • a fourth aspect of the embodiments of the present invention discloses a computer program product comprising instructions for causing a computer to perform the charging control method of the second aspect described above when the instructions are run on a computer.
  • the electronic device includes a processor, a charging management chip, a rechargeable battery, a fast charging channel switch, and a charging interface, and the fast charging channel switch is respectively connected with a power pin of the charging interface, a processor, and a rechargeable battery;
  • the processor controls the data pin of the charging interface to be electrically connected with the charging management chip, and detects whether the charging device is the first type of device, and when the charging device is the first type of device, processing
  • the device controls the fast charge channel switch to be off, so that the electronic device is in the normal charging mode, so that the electronic device can select the charging mode that is compatible with the type of the charging device connected thereto, thereby realizing the diversity of the charging mode and realizing the value of the charging device.
  • FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • FIG. 2a is a schematic structural diagram of a general power adapter according to an embodiment of the present invention.
  • 2b is a schematic structural diagram of a fast charging source adapter according to an embodiment of the present invention.
  • 2c is a schematic structural diagram of a computer device according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of another electronic device according to an embodiment of the present invention.
  • FIG. 4a is a schematic structural diagram of a first charging system according to an embodiment of the present invention, the charging system includes a general power adapter and an electronic device;
  • FIG. 4b is a schematic structural diagram of a second charging system according to an embodiment of the present invention, the charging system includes a fast charging source adapter and an electronic device;
  • FIG. 4c is a schematic structural diagram of a third charging system according to an embodiment of the present invention, the charging system includes a computer device and an electronic device;
  • FIG. 5 is a schematic flow chart of a charging control method according to an embodiment of the present invention.
  • the embodiment of the invention discloses an electronic device and a charging control method, wherein the electronic device comprises a processor, a charging management chip, a rechargeable battery, a fast charging channel switch and a charging interface, and a fast charging channel switch and a power supply pin of the charging interface respectively , processor and rechargeable battery connection.
  • the electronic device and the charging control method provided by the embodiments of the present invention can enable the electronic device to select a charging mode that is compatible with the type of the charging device connected thereto, thereby realizing the diversity of the charging mode and realizing the maximum utilization of the value of the charging device, Detailed instructions are given separately.
  • FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • the electronic device includes a processor 101, a charge management chip 102, a rechargeable battery 103, a charging interface 104, a fast charging channel switch 105, and a communication channel switching switch 106.
  • the processor 101 is communicatively coupled to the charge management chip 102.
  • the processor 101 includes DSEL2, INT2, SCL2, and SDA2 pins
  • the charge management chip 102 includes DSEL1, INT2, SCL1, and SDA1 pins.
  • the DSEL2, INT2, SCL2, and SDA2 pins are respectively connected to the DSEL1, INT2, SCL1, and SDA1 pins, and the pins INT2, SCL2, and SDA2, and the pins INT2, SCL1, and SDA1 are integrated circuit buses (Inter-Integrated Circuit, I 2 C) Pin used.
  • the power supply pin V BUS2 of the charge management chip 102 is connected to the power supply pin V BUS1 of the charging interface 104, and the output end of the charge management chip 102 is connected to the rechargeable battery 103.
  • the first end 1051 of the fast charging channel switch 105 is connected to the power pin V BUS1 of the charging interface 104, the second end 1052 of the fast charging channel switch 105 is connected to the rechargeable battery 103, and the fast charging channel switch 105 further includes a control terminal 1053.
  • the control terminal 1053 is electrically connected to the SEL pin of the processor 101, and the processor 101 is configured to control the switching state of the fast charge channel switch 105 by controlling the output level of the SEL pin.
  • the communication channel switch 106 includes a first switch group 1061, a second switch group 1062, and a third switch group 1063 that are connected in parallel with each other.
  • One ends of the first switch group 1061 are electrically connected to the data pin groups D1+ and D1- of the charging interface 104, respectively, and the other ends of the first switch group 1061 are electrically connected to the data pin groups D2+ and D2- of the charge management chip 102, respectively.
  • the first switch group 1061 includes a first sub-switch 10611 and a second sub-switch 10612.
  • One end of the first sub-switch 10611 is electrically connected to the first data pin D1+ of the charging interface 104, and the other end of the first sub-switch 10611.
  • one end of the second sub-switch 10612 is electrically connected to the second data pin D1- of the charging interface 104, and the other end of the second sub-switch 10612 is electrically connected to the charging management The second data pin D2- of the chip 102.
  • the second switch group 1062 is electrically connected to the data pin groups D1+ and D1- of the charging interface 104, respectively, and the other end of the second switch group 1062 is electrically connected to the communication pin groups R X and T X of the processor 101, respectively.
  • the second switch group 1062 includes a third sub-switch 10621 and a fourth sub-switch 10622.
  • One end of the third sub-switch 10621 is electrically connected to the first data pin D1+ of the charging interface 104, and the other end of the third sub-switch 10621.
  • one end of the fourth sub-switch 10622 is electrically connected to the second data pin D1- of the charging interface 104, and the other end of the fourth sub-switch 10622
  • the second sub-pin T X of the communication pin group of the processor 101 is electrically connected.
  • the third switch group 1063 is electrically connected to the data pin groups D1+ and D1- of the charging interface 104, respectively, and the other end of the third switch group 1063 is electrically connected to the data pin groups D3+ and D3- of the processor 101, respectively.
  • the third switch group 1063 includes a fifth sub-switch 10631 and a sixth sub-switch 10632.
  • One end of the fifth sub-switch 10631 is electrically connected to the first data pin D1+ of the charging interface 104, and the other end of the fifth sub-switch 10631 Electrically connected to the first sub-pin D3+ of the data pin group of the processor 101; one end of the sixth sub-switch 10632 is electrically connected to the second data pin D1- of the charging interface 104, and the other end of the sixth sub-switch 10632 is electrically A second sub-pin D3- connected to the data pin group of the processor 101.
  • the first control pin groups SEL2 and SEL3 of the communication channel switch 106 are electrically connected to the control pin groups SEL0 and SEL1 of the processor 101, respectively, and the processor 101 is used to control the output levels of the control pin groups SEL0 and SEL1, The switching states of the first switch group 1061, the second switch group 1062, and the third switch group 1063 are controlled.
  • FIG. 2a is a schematic diagram of a general power adapter according to an embodiment of the present invention.
  • the conventional power adapter includes a controller 201 and a charging interface 202.
  • the charging interface 202 includes a power pin V BUS , a ground pin GND, and two data pins D4+ and D4-. Among them, the two data pins D4+ and D4- are short-circuited.
  • FIG. 2b is a schematic diagram of a fast charging source adapter according to an embodiment of the present invention.
  • the fast charge source adapter includes a controller 301 and a charging interface 302.
  • the charging interface 302 includes a power pin V BUS , a ground pin GND, and a data pin D5+ and a data pin D5-, wherein the data pin D5+ and the data pin
  • the D5- phase is disconnected and is connected to the controller 301.
  • 2c is a schematic diagram of a computer device according to an embodiment of the present invention.
  • the computer device includes a controller 401 and a charging interface 402.
  • the charging interface 402 includes a power pin V BUS , a ground pin GND, and a data pin D6+ and a data pin D6-, wherein the data pin D6+ and the data pin D6-
  • computer equipment includes, but is not limited to, a USB main device such as a notebook computer or a desktop computer.
  • the charging management chip 102 when a charging device is electrically connected to the electronic device through the charging interface 104, the charging management chip 102 detects that the level on the power pin V BUS2 is high, and detects the power pin V. When the level on BUS2 is high, the processor 101 is notified through the I 2 C protocol communication that the charging device is inserted.
  • the specific process of the I 2 C protocol communication is: when the charging management chip 102 has data to be transmitted to the processor 101, the processor 101 transmits a pulse signal by continuously changing the output level of the INT1 pin, and the processor 101 passes The rising edge or the falling edge performs interrupt detection.
  • the processor 101 when the processor 101 detects that a charging device is inserted by the charging management chip 102, the processor 101 first controls the first switch group 1061 to be closed, and controls the second switch group 1062 and the third switch group 1063 to be disconnected.
  • the data pin groups D1+ and D1- of the charging interface 104 are electrically connected to the data pin groups D2+ and D2- of the charge management chip 102, respectively.
  • the processor 101 closes the first switch group 1061, the second switch group 1062, and the third by controlling the SEL0 pin and the SEL1 pin to output a low level. Switch group 1063 is open. Then, it is detected whether the charging device is the first type of device.
  • the processor 101 determines whether the charging management chip 102 receives the preset communication signal sent by the charging device through the data pin groups D2+ and D2-, the preset The communication signal is a handshake request signal; when the charging management chip 102 does not receive the preset communication signal, the processor 101 determines that the charging device is the first type of device; wherein the first type of device is a normal power adapter.
  • the processor 101 determines that the charging device is the first type of device, the processor 101 first identifies whether the fast charging channel switch 105 is in an off state. If not, the processor 101 controls the fast charge channel switch 105 to be turned off by controlling the SEL pin to output a low level to cause the electronic device to be in the normal charging mode. In the normal charging mode, when the fast charging channel switch 105 is turned off, and the electronic device detects that the output of the charging device (for example, voltage output or current output) exists, the charging management chip 102 acquires the input current of the electronic device, that is, the charging device.
  • the output of the charging device for example, voltage output or current output
  • the charging management chip 102 adjusts the input current of the electronic device to the target charging current and outputs to the rechargeable battery 103, wherein the target charging current is smaller than the input current of the electronic device, that is, in the normal charging mode, the electronic device passes the charging management
  • the chip 102 charges the rechargeable battery 103 to slowly charge the rechargeable battery 103.
  • the processor 101 determines that the charging device is not the first type of device.
  • the processor 101 controls both the first switch group 1061 and the third switch group 1063 to be turned off, and controls the second switch group 1062 to be closed, so that the charging interface 104 is closed.
  • the data pin groups D1+ and D1- are electrically connected to the communication pin groups R X and T X of the processor 101, respectively, and the communication pin groups R X and T X of the processor 101 are pins used in the serial communication protocol.
  • the processor turns off the second switch group 1062, and the first switch group 1061 and the third switch group 1063 are both turned off by controlling the SEL0 pin to output a high level and the SEL1 pin to output a low level.
  • the processor 101 detects whether the charging device is a second type of device, wherein the second type of device is a fast charging source adapter. Specifically, the processor 101 performs handshake communication with the charging device through the communication pin groups R X , T X .
  • the processor 101 may send a handshake string to the charging device through the communication pin groups R X , T X (eg “ Royole”), if the charging device is a second type of device, after receiving the handshake string sent by the processor 101, the charging device sends the handshake string back to the processor 101; If the handshake string sent by the charging device is received within the preset duration (for example, 5 ms) after the charging device sends the handshake string, it is determined that the handshake communication with the charging device is successful; if the handshake is not received by the charging device If the character string or the handshake character sent back by the received charging device does not match the transmitted character, it is determined that the handshake communication with the charging device fails.
  • the preset duration for example, 5 ms
  • the processor 101 determines that the charging device is not the second type of device but the third type of device, wherein the third type of device is inconsistent when the received handshake character sent by the charging device is inconsistent with the sent character. It is a USB host device such as a computer.
  • the processor 101 determines that the charging device is the third type of device, the processor 101 controls the first switch group 1061 and the second switch group 1062 to be both turned off, and controls the third switch group 1063 to be closed, so that the charging interface 104 is closed.
  • the data pin groups D1+ and D1- are electrically connected to the data pin groups D3+ and D3- of the processor 101, respectively; and the processor 101 can perform USB protocol communication with a USB host device such as a computer.
  • the processor outputs a low level by controlling the SEL0 pin, and outputs a high level to the SEL1 pin to turn off both the first switch group 1061 and the second switch group 1062, and the third switch group 1063 is closed.
  • the processor 101 controls the fast charge channel switch 105 to be turned off by controlling the SEL pin to output a low level, so that the electronic device is in the normal charging mode.
  • the processor 101 determines that the charging device is a normal power adapter of the first type. Because the two data pins on the charging interface of the ordinary power adapter are short-circuited with each other, when the electronic device is connected to the ordinary power adapter, the electronic device cannot communicate with the ordinary power adapter, that is, the electronic device cannot be ordinary.
  • the power adapter receives the communication signal.
  • the processor 101 determines that the charging device is the second type of device. After the processor 101 determines that the charging device is the second type of device, the processor 101 controls the fast charging channel switch 105 to close by controlling the SEL pin to output a high level, so that the electronic device is in the fast direct charging mode.
  • the fast direct charging mode when the fast charging channel switch 105 is closed and the electronic device detects that the charging device voltage output or the current output exists, the input current of the electronic device is directly output to the rechargeable battery 103 via the fast charging channel switch 105, that is, in the fast straight In the charging mode, the electronic device bypasses the charging management chip 102 to charge the rechargeable battery 103, so that the loss of the charging path can be reduced, and the current tolerance of the charging management chip 102 can be eliminated, and the charging can be performed with a larger current.
  • the battery 103 is charged to quickly charge the rechargeable battery 103.
  • the processor 101 can send a current or voltage adjustment command to the charging device through the communication pin group R X , T X to control the output voltage or the output current of the charging device.
  • the rechargeable battery 103 further includes a fuel gauge chip 1031.
  • the pins SDA3, SCL3, and INT3 of the fuel gauge chip 1031 are electrically connected to the pins SDA2, SCL2, and INT3 of the processor 101, respectively; the fuel gauge chip 1031 can be processed through the pins SDA3, SCL3, and INT3.
  • the device 101 performs I 2 C protocol communication.
  • the fuel gauge chip 1031 acquires the current battery parameter of the rechargeable battery 103, the current battery parameter includes temperature, power, and charging current; then the fuel gauge chip 1031, the current power value and the temperature value of the obtained rechargeable battery 103 are sent to the processor 101 through the pins SDA3, SCL3, and INT3; the second processor 101 determines the first reference current according to the current power value of the rechargeable battery 103, according to the charging.
  • the current voltage value of the battery 103 determines a second reference current, and determines a minimum value of the first reference current, the second reference current, and the maximum charging current of the rechargeable battery 103 as a first target current; further, the processor 103 Transmitting, by the communication pin sets R X and T X , a first current adjustment command carrying the first target current value to the second type of fast charge source adapter, the first current adjustment command being used to indicate the second type of fast charge source
  • the adapter adjusts the value of its output current to the first target current value.
  • the fuel gauge chip 1031 acquires the current charging current value of the rechargeable battery 103, and obtains the current current of the charged battery 103.
  • the charging current value is sent to the processor 101; the processor 101 calculates an error current according to the current charging current value of the rechargeable battery 103 and the first target current value, wherein the error current is equal to the current charging current value and the first target current value Difference.
  • the processor 101 obtains the current power value and the temperature value of the rechargeable battery 103 again through the fuel gauge chip 1031, and determines the second target current according to the current power value and the temperature value of the rechargeable battery 103 that is acquired again.
  • the specific determination manner refer to the foregoing description.
  • the processor 101 determines a third target current according to the second target current and the error current, wherein the third target current is equal to a sum of the second target current and the error current. After determining the third target current, the processor 101 sends a second current adjustment command carrying the third target current value to the second type of fast charge source adapter through the communication pin sets R X and T X , the second current adjustment The instruction is for indicating that the second type of fast charge source adapter adjusts the value of its output current to the third target current value. In the above manner, it is ensured that the charging current of the rechargeable battery 103 coincides with the target current, thereby ensuring rapid charging of the rechargeable battery 103.
  • the processor 101 can pass the fuel gauge every preset time period (for example, 1 min).
  • the chip 1031 acquires the current charging current, temperature and power of the primary rechargeable battery 103, and determines an error current according to the obtained current charging current and the target current last transmitted to the fast charging source adapter; and then determines according to the error current, the current temperature, and the power amount.
  • the new target current can be determined by referring to the above description, and will not be described here.
  • the new target current is sent to the fast charge source adapter to control the fast charge source adapter to adjust the value of its output current to the new target current.
  • the value of the current can continuously reduce the error between the actual charging current and the target current to ensure fast charging of the rechargeable battery.
  • the battery document provided by the battery manufacturer includes the upper limit of the current of the rechargeable battery 103 under different charging parameters, such as the current upper limit at the current temperature, the current upper limit under the current power, and the maximum upper limit of the charging current.
  • the battery document is stored in the processor 101 of the electronic device in the form of a mapping table, so the processor 101 can obtain the reference current under different charging parameters by looking up the mapping table.
  • FIG. 4a is an equivalent circuit diagram of a common power adapter and a charging management chip 102 of the electronic device
  • FIG. 4b is a fast charging source adapter and an electronic device.
  • the equivalent circuit diagram after the charging management chip 102 of the device is electrically connected
  • FIG. 4c is an equivalent circuit diagram after the computer device is electrically connected to the charging management chip 102 of the electronic device.
  • the charge management chip 102 of the electronic device includes a voltage detection module 1021.
  • the voltage detecting module 1021 includes a voltage detecting unit 1022, a resistor R, and a power supply voltage interface V CC .
  • One end of the resistor R is connected to the supply voltage interface V CC , and the other end of the resistor R is connected to a data pin (D2+ or D2-) of the charge management chip 102 and the voltage detecting unit 1022, respectively.
  • Another data pin of the charge management chip 102 is electrically connected to the voltage detecting unit 1022 and grounded. As shown in FIG.
  • the charging device when the charging device is a normal power adapter, since the two data pins D4+ and D4- on the charging interface 202 of the ordinary power adapter are short-circuited with each other, when the electronic device is connected to the ordinary power adapter, the electronic device
  • the two data pins D2+ and D2- of the charging management chip 102 of the device form a conductive loop with the two data pins D4+ and D4- on the charging interface 202 of the common power adapter. Therefore, if the power supply voltage interface Vcc is connected When a certain voltage is applied, a current is generated on the loop. Therefore, the voltage detecting unit 1022 can detect the voltage difference between the two data pins D2+ and D2- of the charge management chip 102.
  • the charging interface 402 of the computer device is disconnected due to the disconnection of the two data pins D5+ and D5- on the charging interface 302 of the fast charging source adapter.
  • the two data pins D6+ and D6- are disconnected, and no conductive path is formed between the two data pins D2+ and D2- of the charging management chip 102 of the electronic device.
  • the voltage detecting unit 1022 cannot be in the two data. A voltage difference is detected between pins D2+ and D2- or a voltage difference is detected equal to the voltage to which the supply voltage interface Vcc is connected.
  • the processor 101 detects that there is a charging device insertion, and controls the first switch group 1061 to be closed, the second switch group 1062 and the third switch group 1063 to be turned off, so that the data pin groups D1+ and D1 of the charging interface 104 are enabled.
  • - or the data pins D+ and D- of the charging device
  • the voltage detecting unit 1022 determines whether a specific voltage value is detected. Whether the charging device is the first type of device.
  • the charge management chip 102 can determine that the charging device is a first type of common power adapter; when the voltage value detected between the node A and the node B detected by the voltage detecting unit 1022 is equal to the preset power supply voltage interface V CC When the voltage value or voltage value is zero, the charge management chip 102 can determine that the charging device is not the first type of common power adapter.
  • a preset voltage threshold for example, At 0.33 V
  • the DSEL1 pin is controlled to keep outputting a low level; when the charging management chip 102 detects that the charging device is not the first type of common power adapter, the charging management chip 102 controls The DSEL1 pin holds the output high.
  • the processor 101 determines that the DSEL2 pin is low, and determines that the charging device is the first type of common power adapter; if the DSEL2 pin is detected to be high, Make sure the charging device is not the first type of common power adapter.
  • the electronic device includes a processor, a charging management chip, a rechargeable battery, a fast charging channel switch, and a charging interface, and the fast charging channel switch is respectively connected with a power pin of the charging interface, a processor, and a rechargeable battery;
  • the processor controls the data pin of the charging interface to be electrically connected with the charging management chip, and detects whether the charging device is the first type of device, and when the charging device is the first type of device, processing
  • the device controls the fast charge channel switch to be off, so that the electronic device is in the normal charging mode, so that the electronic device can select the charging mode that is compatible with the type of the charging device connected thereto, thereby realizing the diversity of the charging mode and realizing the value of the charging device.
  • FIG. 5 is a schematic flowchart diagram of a charging control method according to an embodiment of the present invention.
  • the charging control method described in the embodiment of the present invention is applied to an electronic device, wherein the electronic device includes a processor, a charging management chip, a rechargeable battery, a fast charging channel switch and a charging interface, and a fast charging channel switch and a charging interface respectively.
  • a pin, a processor and a rechargeable battery are connected, and the charging control method comprises:
  • Step 101 After the electronic device is connected to a charging device through the charging interface, the data pin of the charging interface is controlled to be electrically connected to the charging management chip.
  • the electronic device further includes a communication channel switch, the communication channel switch includes a first switch group, a second switch group, and a third switch group; the first switch group is electrically connected to the data pin of the charging interface and charging The data pin of the management chip, the second switch group is electrically connected to the data pin of the charging interface and the processor, and the third switch group is electrically connected to the data pin of the charging interface and the processor.
  • the electronic device detects that an input voltage or an input current exists, controlling the first switch group to be closed, and controlling the second switch group and the third switch group to be disconnected, so that the data pin of the charging interface and the charge management chip The data pins are electrically connected.
  • Step 102 Detect whether the charging device is a device of the first type. If yes, go to step 103. If no, go to step 104.
  • the first type of device is a common power adapter, and the data pins of the charging interface of the common power adapter are short-circuited.
  • the specific manner of detecting whether the charging device is the first type of device is: the electronic device first detects the voltage value between the data pins of the charging management chip, that is, detects the voltage value between the data pins of the charging device; Then determining whether the voltage value between the data pins of the detected charging management chip is less than a preset voltage threshold; when determining that the voltage value between the data pins of the charging management chip is less than a preset voltage threshold, the electronic device determines charging The device is a first type of device; when it is determined that the voltage value between the data pins of the charging management chip is equal to a voltage value or a voltage value introduced by the preset power supply voltage interface, the electronic device determines that the charging device is not the first type device of.
  • the specific manner of the electronic device detecting whether the charging device is the first type of device is: the electronic device determining whether the charging management chip receives the preset communication signal sent by the charging device through the data pin of the charging management chip, The preset communication signal is a handshake request signal; when charging When the management chip does not receive the preset communication signal within the first preset duration, the processor determines that the charging device is the first type of device; when the charging management chip receives the preset communication signal, the processor determines to charge The device is not the first type of device.
  • Step 103 Controlling the fast charge channel switch to be off causes the electronic device to be in a normal charging mode.
  • the fast charging channel switch in the normal charging mode, the fast charging channel switch is disconnected, and after the electronic device detects the voltage output or current output of the charging device, the charging management chip acquires the input current of the electronic device, that is, the output of the charging device. Current; then the charging management chip adjusts the input current of the electronic device to the target charging current and outputs to the rechargeable battery; wherein, the target charging current is smaller than the input current of the electronic device, that is, in the normal charging mode, the electronic device is given by the charging management chip The rechargeable battery is charged to charge the rechargeable battery slowly.
  • Step 104 Control a data pin of the charging interface to be connected to the processor.
  • the electronic device when the electronic device detects that the charging device is not the first type of device, the electronic device controls the second switch group to be closed, and controls the first switch group and the third switch group to be disconnected, so that the data pins of the charging interface are Electrically connected to the processor.
  • Step 105 Detect whether the charging device is a device of the second type. If yes, go to step 106. If no, go to step 107.
  • the second type of device is a fast charging source adapter, and the data pin of the charging interface of the fast charging source adapter is disconnected.
  • the electronic device performs a handshake communication with the charging device. Specifically, the electronic device sends a handshake request to the charging device by using the processor, where the handshake request carries the first verification information, where the first verification information is, for example, a fast charge identification identifier. It can also be a specific pulse signal, or it can be a handshake character (such as Handshake). Then, the electronic device receives the second verification information that is sent back by the charging device after receiving the first verification information, where the second verification information includes the first verification information.
  • the electronic device determines whether the first verification information included in the second verification information is consistent with the first verification information sent by the electronic device; and the first verification information and the electronic information included in the second verification information When the first verification information sent by the device is consistent, the electronic device determines that the handshake communication with the charging device is successful; and the first verification information included in the second verification information and the first verification information sent by the electronic device In case of inconsistency, the electronic device determines that the handshake communication with the charging device fails. If the electronic device does not receive the second verification information sent back by the charging device according to the first verification information within the second preset duration, it is also determined that the handshake communication with the charging device fails.
  • the electronic device determines that the charging device is a second type of device.
  • the electronic device fails to communicate with the charging device, the electronic device determines that the charging device is not the second type of device but The third type of device.
  • the third type of device is a USB host device such as a computer.
  • Step 106 Control the fast charging channel switch to be closed to cause the electronic device to be in a fast direct charging mode.
  • the input current of the electronic device is directly output to the rechargeable battery through the fast charging channel switch, that is, In the fast direct charge mode, the electronic device bypasses the charge management chip to charge the rechargeable battery, thereby reducing the loss of the charging path, and can directly utilize the input current of the electronic device without considering the current withstand capability of the charge management chip.
  • the electronic device may send a current or voltage adjustment command to the charging device through the processor, thereby controlling the output voltage or the output current of the charging device.
  • the electronic device after the electronic device controls the fast charging channel switch to be closed so that the electronic device is in the fast direct charging mode, the electronic device first acquires the current battery parameter of the rechargeable battery, and the current battery parameter includes temperature, power, and charging current;
  • the current temperature value of the obtained rechargeable battery determines a first reference current, determines a second reference current according to the current power value of the obtained rechargeable battery, and uses the first reference current, the second reference current, and the maximum charging current of the rechargeable battery
  • the minimum value is determined as the first target current; further, the electronic device sends, by the processor, a first current adjustment instruction carrying the first target current value to the charging device, the first current adjustment instruction is used to instruct the charging device to output the current thereof The value of the value is adjusted to the first target current value.
  • the electronic device After the electronic device sends the first current adjustment command carrying the first target current value to the charging device, the electronic device acquires a current charging current value of the rechargeable battery, and according to the current charging current value of the rechargeable battery and the first target The current value calculates an error current, wherein the error current is equal to a difference between the current charging current value and the first target current value; the electronic device acquires the current power value and the temperature value of the rechargeable battery again, and according to the re-acquired rechargeable battery The current power value and the temperature value determine the second target current.
  • the specific determination manner refer to the foregoing description, and details are not described herein.
  • the electronic device determines the third target current according to the second target current and the error current, where The third target current is equal to the sum of the second target current and the error current; after determining the third target current, the electronic device sends a second current adjustment command carrying the third target current value to the charging device by the processor, where The second current adjustment command is for instructing the charging device to adjust the value of its output current to the third target current value.
  • the second current adjustment command is for instructing the charging device to adjust the value of its output current to the third target current value.
  • Step 107 Control a data pin of the charging interface to be connected to the processor, and control the fast charging channel switch to be off to enable the electronic device to be in the normal charging mode.
  • the electronic device when the electronic device detects that the charging device is not the second type of device but the third type of device, the electronic device controls the third switch group to be closed, and controls the first switch group and the second switch group to be disconnected to The data pins of the charging interface are electrically connected to the processor. At the same time, the control fast charge channel switch is turned off to put the electronic device in the normal charging mode.
  • the electronic device includes a processor, a charging management chip, a rechargeable battery, a fast charging channel switch, and a charging interface, and the fast charging channel switch is respectively connected with a power pin of the charging interface, a processor, and a rechargeable battery;
  • the electronic device controls the data pin of the charging interface to be electrically connected to the charging management chip, and detects whether the charging device is the first type of device, and when the charging device is the first type of device, the electronic device The device controls the fast charging channel switch to be off, so that the electronic device is in the normal charging mode, so that the electronic device can select the charging mode that is compatible with the type of the charging device connected thereto, and realize the diversity of the charging mode while realizing the value of the charging device.
  • the present invention also provides a computer readable storage medium having stored therein instructions that, when run on a computer, cause the computer to perform the charging control method described in the above method embodiments.
  • the present invention also provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the charge control method described in the above method embodiments.
  • the steps in the method of the embodiment of the present invention may be sequentially adjusted, merged, and deleted according to actual needs.
  • the structure in the electronic device of the embodiment of the invention can be improved and optimized according to actual needs.
  • the program may be stored in a computer readable storage medium, and the storage medium may include: Flash disk, Read-Only Memory (ROM), Random Access Memory (RAM), disk or optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

L'invention concerne un dispositif électronique et un procédé de commande de charge. Le dispositif électronique comprend : un processeur, une puce de gestion de charge et une batterie de charge, le processeur étant connecté à la puce de gestion de charge. Le dispositif électronique comprend en outre un commutateur de canal de charge rapide et une interface de charge, le commutateur de canal de charge rapide étant respectivement connecté à une broche de source d'alimentation de l'interface de charge, au processeur et à la batterie de charge. Une fois que le dispositif électronique est connecté à un dispositif de charge au moyen de l'interface de charge, le processeur commande une broche de données de l'interface de charge, de telle sorte qu'elle soit électriquement connectée à la puce de gestion de charge et détecte si le dispositif de charge est un dispositif d'un premier type. Lorsque le dispositif de charge est un dispositif du premier type, le processeur commande la mise hors circuit du commutateur de canal de charge rapide, de telle sorte que le dispositif électronique soit dans un mode de charge normale. Au moyen des modes de réalisation de la présente invention, un dispositif électronique peut sélectionner un mode de charge approprié pour le type de dispositif de charge connecté au dispositif électronique, ce qui permet d'utiliser au maximum la valeur du dispositif de charge, tout en réalisant également la diversité de modes de charge.
PCT/CN2017/115447 2017-12-11 2017-12-11 Dispositif électronique et procédé de commande de charge WO2019113732A1 (fr)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/115447 WO2019113732A1 (fr) 2017-12-11 2017-12-11 Dispositif électronique et procédé de commande de charge
CN201780095802.7A CN111201689B (zh) 2017-12-11 2017-12-11 一种电子设备及充电控制方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/115447 WO2019113732A1 (fr) 2017-12-11 2017-12-11 Dispositif électronique et procédé de commande de charge

Publications (1)

Publication Number Publication Date
WO2019113732A1 true WO2019113732A1 (fr) 2019-06-20

Family

ID=66818868

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/115447 WO2019113732A1 (fr) 2017-12-11 2017-12-11 Dispositif électronique et procédé de commande de charge

Country Status (2)

Country Link
CN (1) CN111201689B (fr)
WO (1) WO2019113732A1 (fr)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111293744A (zh) * 2020-01-22 2020-06-16 维沃移动通信有限公司 充电方法、装置、电子设备及介质
CN112366708A (zh) * 2020-11-30 2021-02-12 深圳市汇拓新邦科技有限公司 一种充电管理方法、装置、设备及存储介质
CN113078696A (zh) * 2020-01-03 2021-07-06 北京小米移动软件有限公司 电子设备及其充电方法,装置,可读存储介质
CN113764754A (zh) * 2020-06-02 2021-12-07 Oppo广东移动通信有限公司 充电方法、装置、设备及存储介质

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112994149A (zh) * 2021-02-05 2021-06-18 深圳市承越创展科技有限公司 一种充电线、充电系统及其充电方法
CN113036859A (zh) * 2021-03-15 2021-06-25 Oppo广东移动通信有限公司 电源提供装置、电源提供方法以及电源提供系统
CN117318220A (zh) * 2021-04-13 2023-12-29 上海传英信息技术有限公司 一种充电芯片、充电装置及移动终端
CN113178927A (zh) * 2021-05-18 2021-07-27 深圳市卡莱福科技有限公司 一种自动调节充电模式的充电系统及方法
CN113949123A (zh) * 2021-10-09 2022-01-18 展讯通信(深圳)有限公司 电子设备及充电控制方法
CN114967894B (zh) * 2022-07-27 2023-01-17 荣耀终端有限公司 电子设备、设备识别方法及充电系统
CN115603432B (zh) * 2022-12-12 2023-03-21 深圳市美矽微半导体有限公司 一种充电控制芯片及充电控制方法
CN116742761B (zh) * 2023-08-10 2023-11-17 北京小米移动软件有限公司 充电方法、装置、电子设备和存储介质

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104993182A (zh) * 2015-08-05 2015-10-21 青岛海信移动通信技术股份有限公司 一种移动终端、可直充电源适配器及充电方法
US20170294789A1 (en) * 2016-04-11 2017-10-12 Microsoft Technology Licensing, Llc Smart senses for direct charging

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104993182A (zh) * 2015-08-05 2015-10-21 青岛海信移动通信技术股份有限公司 一种移动终端、可直充电源适配器及充电方法
US20170294789A1 (en) * 2016-04-11 2017-10-12 Microsoft Technology Licensing, Llc Smart senses for direct charging

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113078696A (zh) * 2020-01-03 2021-07-06 北京小米移动软件有限公司 电子设备及其充电方法,装置,可读存储介质
CN113078696B (zh) * 2020-01-03 2024-05-07 北京小米移动软件有限公司 电子设备及其充电方法,装置,可读存储介质
CN111293744A (zh) * 2020-01-22 2020-06-16 维沃移动通信有限公司 充电方法、装置、电子设备及介质
CN111293744B (zh) * 2020-01-22 2022-08-02 维沃移动通信有限公司 充电方法、装置、电子设备及介质
CN113764754A (zh) * 2020-06-02 2021-12-07 Oppo广东移动通信有限公司 充电方法、装置、设备及存储介质
CN113764754B (zh) * 2020-06-02 2023-11-03 Oppo广东移动通信有限公司 充电方法、装置、设备及存储介质
CN112366708A (zh) * 2020-11-30 2021-02-12 深圳市汇拓新邦科技有限公司 一种充电管理方法、装置、设备及存储介质
CN112366708B (zh) * 2020-11-30 2023-07-25 深圳市康必达控制技术有限公司 一种充电管理方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN111201689A (zh) 2020-05-26
CN111201689B (zh) 2021-09-14

Similar Documents

Publication Publication Date Title
WO2019113732A1 (fr) Dispositif électronique et procédé de commande de charge
US10910853B2 (en) Quick charging method, power adapter and mobile terminal
CN111697663B (zh) 充电电路与充电线缆
US10042801B2 (en) System for detecting universal serial bus (USB) device and method thereof
US8769317B2 (en) USB hub for supplying power upon determination whether a USB device is chargeable according to data transfer rate of the USB device
US20140239886A1 (en) Automatic Protocol (AP) for USB Charger System
EP2584471A1 (fr) Procédé et terminal de sélection interne d'un circuit selon l'état de l'interface USB
TWI645645B (zh) 快速充電方法、移動終端和轉接器
TW201424190A (zh) 用於可攜式裝置之高電壓充電
US20200004309A1 (en) Electronic device
JP7288038B2 (ja) アダプタの出力状態テスト方法、アダプタの出力状態テストシステム及びコンピュータ記憶媒体
JP2018032221A (ja) 電子機器およびその制御方法
CN106597143B (zh) 一种测试设备以及测试方法
TWI612750B (zh) 電子裝置及其充電方法
CN111602313B (zh) 用于无线充电和有线数据传输的系统和方法
CN112448435A (zh) 终端设备充电方法、装置和存储介质
US11977618B2 (en) Electronic device and control method
CN111201690A (zh) 充电控制方法、电子装置、电源适配器及充电控制系统
US10956350B2 (en) Electronic device with USB type-C connector
US20170063105A1 (en) Charging method, charging controller and charging system
WO2018032503A1 (fr) Adaptateur d'alimentation, dispositif terminal, système de charge et procédé de charge
US11181958B2 (en) Electronic device with power source control ciruitry for determining a current
JP6916629B2 (ja) 電子機器および制御方法
WO2021077285A1 (fr) Dispositif de gestion de pile, dispositif électronique et dispositif, système et procédé de gestion d'énergie
WO2019084813A1 (fr) Dispositif électronique et procédé de vérification de câble de recharge

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17934508

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17934508

Country of ref document: EP

Kind code of ref document: A1