WO2018053901A1 - 电子装置及其充电方法 - Google Patents

电子装置及其充电方法 Download PDF

Info

Publication number
WO2018053901A1
WO2018053901A1 PCT/CN2016/103869 CN2016103869W WO2018053901A1 WO 2018053901 A1 WO2018053901 A1 WO 2018053901A1 CN 2016103869 W CN2016103869 W CN 2016103869W WO 2018053901 A1 WO2018053901 A1 WO 2018053901A1
Authority
WO
WIPO (PCT)
Prior art keywords
charger
charging
electronic device
protocol
type
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/CN2016/103869
Other languages
English (en)
French (fr)
Inventor
丁兆刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Publication of WO2018053901A1 publication Critical patent/WO2018053901A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or discharging batteries or for supplying loads from batteries
    • H02J7/90Regulation of charging or discharging current or voltage
    • H02J7/94Regulation of charging or discharging current or voltage in response to battery current
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or discharging batteries or for supplying loads from batteries
    • H02J7/40Circuit arrangements for charging or discharging batteries or for supplying loads from batteries characterised by the exchange of charge or discharge related data
    • H02J7/47Arrangements for checking compatibility or authentication between one component, e.g. a battery or a battery charger, and another component, e.g. a power source

Definitions

  • the present invention relates to the field of rapid charging technologies, and in particular, to an electronic device and a charging method thereof.
  • a mobile phone supporting the QC2.0 protocol usually does not support VOOC (Voltage Open Loop Multi-step Constant-Current Charging). Charging) protocol and Pump Express 2.0 fast charging protocol (referred to as PE+2.0), which can only be quickly charged with a charger supporting QC 2.0 protocol, and cannot be quickly matched with a charger supporting VOOC protocol and PE+2.0 protocol. Charging.
  • Mobile phones that support the VOOC protocol usually do not support the QC2.0 protocol and the PE+2.0 protocol, that is, they can only be quickly charged with a charger that supports the VOOC protocol, and cannot be used with the QC2.0 protocol and the PE+2.0 protocol.
  • Fast charging is not support the QC2.0 protocol and the PE+2.0 protocol.
  • Mobile phones that support the PE+2.0 protocol usually do not support the QC2.0 protocol and the VOOC protocol. That is, they can only be quickly charged with a charger that supports the PE+2.0 protocol, and cannot be used with the QC2.0 protocol and the VOOC protocol. Fast charging. Therefore, the compatibility of the existing electronic device with the charger is poor.
  • An electronic device comprising:
  • the charging module is configured to connect to a charger
  • a central processing unit CPU the CPU being connected to the charging module, configured to control the charging module
  • the block detects a port type of the connected charger, and acquires a charging current corresponding to the port type from the charger according to a port type of the charger to charge the electronic device;
  • the CPU is further configured to further control, when the charging module detects that the charger is a dedicated charging port type charger, to detect the first type fast charging protocol supported by the charging device, and select Corresponding first type fast charging protocol scheme controls the charger to charge the electronic device;
  • a micro control unit MCU the MCU is connected to the charging module, and the MCU is configured to further control the charging module to detect when the charging module detects that the charger is a dedicated charging port type charger a second type of fast charging protocol supported by the charger, and selecting a corresponding second type of fast charging protocol to control the charger to charge the electronic device, wherein the first type of fast charging protocol includes a Quick Charge 2.0 protocol and Pump Express 2.0 protocol, the second type of fast charging protocol includes a voltage open loop multi-step constant current charging VOOC protocol;
  • the charging module detects that the charger is a standard downlink port type charger, the CPU acquires a first charging current from the charger to charge the electronic device;
  • the charging module detects that the charger is a charging downlink port type charger, the CPU acquires a second charging current from the charger to charge the electronic device.
  • the electronic device further includes a power management module, the power management module is configured to detect whether the charging module is connected to the charger, and when the electronic device is connected to the charger, The CPU controls the charging module to detect a port type of the charger.
  • the charging module detects the USB battery charging specification 1.2 protocol to complete the first handshake of the electronic device and the charger.
  • the charging module when the charging module detects that the charger is a dedicated charging port type charger and does not detect a dedicated charging protocol supported by the charger, according to the 5V charger type The electronic device is charged.
  • a charging method for controlling a charger to charge an electronic device comprising:
  • Retrieving the electronic device by acquiring a corresponding charging current from the charger according to a port type of the charger;
  • the first type of fast charging protocol includes a Quick Charge 2.0 protocol and a Pump Express 2.0 protocol
  • the second type of fast charging protocol includes a voltage open loop multi-step constant current charging VOOC protocol
  • the second charging current is obtained from the charger to charge the electronic device.
  • the method further includes detecting whether a charging module of the electronic device is connected to the charger, and detecting a port type of the charger when the electronic device is connected to the charger .
  • the method further includes:
  • USB Battery Charging Specification 1.2 protocol is detected to complete the first handshake of the electronic device and the charger.
  • the method further includes:
  • the electronic device When it is detected that the charger is a dedicated charging port type charger and the dedicated charging protocol supported by the charger is not detected, the electronic device is charged according to the 5V charger type.
  • the electronic device and the charging method thereof can detect a charging protocol supported by the charger, and select a corresponding charging protocol to perform charging according to the detection result, so that the electronic device can be compatible with the first type of fast charging.
  • the protocol and the charger of the second type of fast charge protocol are convenient for users to enhance the user experience.
  • FIG. 1 is a circuit diagram of an electronic device in accordance with a preferred embodiment of the present invention.
  • FIG. 2 is a flow chart of the method of the first preferred embodiment of the present invention.
  • Figure 3 is a flow chart showing the method of the second preferred embodiment of the present invention.
  • FIG. 4 is a flow chart of a method in accordance with a third preferred embodiment of the present invention.
  • Figure 5 is a flow chart showing the method of the fourth preferred embodiment of the present invention.
  • Figure 6 is a flow chart showing the method of the fifth preferred embodiment of the present invention.
  • Figure 7 is a flow chart showing the method of the sixth preferred embodiment of the present invention.
  • the electronic device 100 includes a charging module 10, a CPU (Central Processing Unit) 30, and an MCU (Micro Controller Unit) 50.
  • the electronic device 100 can be connected to the charger 200 for charging.
  • the charger 200 includes a connector 201.
  • the connector 201 may be a USB connector, and the connector 201 includes a voltage pin VBUS, a ground pin GND, data pins USB_D+(D+), and USB_D-(D-).
  • the charging module 10 is disposed to be connected to the charger 200.
  • the charging module 10 is directly connected to the VBUS pin and the ground pin GND, and is connected to the data pin USB_D+ via the first resistor R1, and the second resistor R2 and the data.
  • Pin USB_D- is connected.
  • the CPU 30 is connected to the charging module 10, and is configured to control the charging module 10 to detect the port type of the connected charger 200, and control the charger 200 according to the port type of the charger 200.
  • the charging scheme of the electronic device 100 Specifically, the CPU 30 acquires a charging current corresponding to the port type from the charger 200 to charge the electronic device 100.
  • the port type of the charger 200 includes an SDP (Standard Downstream Port) and a CDDP (Charging Downstream Port). Downstream port) and DCP (Dedicated Charging Port).
  • SDP Standard Downstream Port
  • CDDP Charging Downstream Port
  • DCP Dedicated Charging Port
  • the charging module 10 detects that the charger 200 is of the SDP type, acquiring a first charging current from the charger 200 to charge the electronic device, if the charging module 10 detects the charger 200 For the CDP type, the second charging current is obtained from the charger 200 to charge the electronic device.
  • the first charging current is a charging current having a maximum current of about 500 mA
  • the second charging current is a charging current having a maximum current of about 900 mA.
  • the charging module 10 detects that the charger 200 is a DCP type charger, the CPU 30 controls the charging module 10 to further detect whether the charger 200 supports a first type of fast charging protocol, if the charging The device 200 supports the first type of fast charging protocol, and then selects a corresponding first type of fast charging protocol to charge the electronic device 100.
  • the MCU 50 is connected to the charging module 10 via a third resistor R3 and a fourth resistor R4, and the MCU 50 is configured to detect when the charging module 10 detects that the charger 200 is a DCP type charger. Whether the charger 200 supports the second type fast charging protocol, if the charger 200 supports the second type fast charging protocol, the corresponding second type fast charging protocol scheme is selected to charge the electronic device 100. In other embodiments, the charging module 10 may also be controlled by the CPU 30 to further detect whether the charger 200 supports the second type of fast charging protocol.
  • the first type of fast charging protocol includes a Quick Charge 2.0 protocol and a Pump Express 2.0 fast charging protocol (referred to as PE+2.0), and the second type of fast charging protocol includes a VOOC (Voltage Open Loop).
  • PE+2.0 Pump Express 2.0 fast charging protocol
  • VOOC Voltage Open Loop
  • Multi-step Constant-Current Charging, voltage open-loop multi-step constant current charging) protocol The method for the CPU 30 to specifically detect the first type fast charging protocol supported by the charger 200 and the MCU 50 specifically detecting the second type fast charging protocol supported by the charger 200 will be as shown in FIG. 2
  • the preferred embodiment of the invention shown in Figure 7 is specifically described in detail.
  • the electronic device 100 further includes a power management module 70, the power management module 70 is configured to detect whether the electronic device 100 is connected to the charger 200, if The charging module 10 is connected to the charger 200, and the charging module 10 detects the port type of the charger 200. If the charging module 10 is not connected to the charger 200, the power management module 70 The detection is repeated at a preset frequency until it is detected that the charger 200 is connected to the electronic device 100.
  • FIG. 2 a flow chart of a first preferred embodiment of the charging method of the present invention.
  • the charging method includes the following steps.
  • the preferred embodiment is also a preferred embodiment of the invention.
  • the order of execution in the flowchart shown in the figure may vary depending on various requirements, and some may be omitted.
  • Step 300 the power management module 70 detects whether the charging module 10 is connected to the charger 200. If it is detected that the electronic device 100 is connected to the charger 200, the process proceeds to step 301, if the electronic device is not detected. The device 100 is connected to the charger 200, and the steps are repeated.
  • Step 301 the CPU 30 controls the charging module 10 to detect the USB Battery Charging Specification 1.2 protocol (BC 1.2 for short) to complete the first handshake of the electronic device 100 and the charger 200. .
  • BC 1.2 USB Battery Charging Specification 1.2 protocol
  • Step 302 the CPU 30 controls the charging module 10 to detect whether the connected charger 200 is a DCP type charger. If it is detected that the connected charger 200 is a DCP type charger 200, then the process proceeds to step 303. If it is detected that the connected charger 200 is not a DCP type charger, then step 310 is entered.
  • the pull-up power supply VDM_SRC of the D-signal of the electronic device 100 is turned on, that is, the D-signal of the electronic device 100 is high, disconnected.
  • the pull-up power source VDP_SRC of the D+ signal of the electronic device 100 turns on the pull-down current source IDP_SINK of the D+ signal of the electronic device 100.
  • the D+ signal of the electronic device 100 will become a high level, and at this time, the connected charging is judged accordingly.
  • the device is a DCP type charger.
  • Step 303 the CPU 30 controls the charging module 10 to detect whether the charger 200 supports the QC2.0 protocol. If the charger 200 supports the QC2.0 protocol, the process proceeds to step 304, if the charger 200 does not If the QC2.0 protocol is supported, the process proceeds to step 305.
  • the electronic device 100 performs detection according to the USB BC 1.2 specification.
  • the electronic device 100 turns on a pull-up power supply VDP_SRC at its D+.
  • the charger 200 detects the output voltage on D+ and ensures that the output voltage on D+ is higher than the first determination level VDAT_REF and lower than the second determination level VSEL_REF in one second.
  • the charger 200 opens D+ and D- and turns on the pull-down resistor Rdm_dwn. If D- remains low, the electronic device 100 does not support the QC2.0 protocol specification. If D- remains high, the electronic device 100 supports the QC2.0 protocol.
  • Step 304 the CPU 30 controls the charging module 10 to adopt a QC2.0 protocol scheme.
  • the electronic device 100 performs charging.
  • Step 305 the CPU 30 controls the charging module 10 to detect whether the charger 200200 supports the PE+2.0 protocol. If the charger 200 supports the PE+2.0 protocol, the process proceeds to step 306, if the charger 200 does not If the PE+2.0 protocol is supported, the process proceeds to step 307.
  • the charging module 10 when the charging module 10 determines that the charger connected to the electronic device 100 is of the CDP type or the DCP type, the charging module 10 sends a voltage boosting pattern to further distinguish whether the inserted device is in conformity.
  • the output voltage of the charger 200 is adjusted to 7V and maintained. Therefore, the charging module 10 can determine whether the device inserted via the USB connector is a FC-compliant power adapter by measuring VBUS. If the VBUS meets the 7V specification of the power adapter output, it can be determined that the charger 200 supports the PE+2.0 protocol.
  • Step 306 the CPU 30 controls the charging module 10 to charge the electronic device 100 by using a PE+2.0 protocol scheme.
  • Step 307 the MCU 50 detects whether the charger 200 supports the VOOC protocol. If the charger 200 supports the VOOC protocol, the process proceeds to step 308. If the charger 200 does not support the QC2.0 protocol, the process proceeds to step 309. .
  • the charging module 10 determines the protocol of the VOOC by detecting the D+ signal of the connector 201 and the D-signal, wherein D+ is used to transmit the CLK data of the handshake signal, and D- is used to transmit the handshake signal. DATA data.
  • Step 308 the MCU 50 charges the electronic device 100 by using a VOOC protocol scheme.
  • Step 309 the CPU 30 controls the charging module 10 to perform regular charging according to a common 5V charger type.
  • step 310 the CPU 30 controls the charging module 10 to detect whether the connected charger 200 is an SDP type charger 200. If it is detected that the connected charger 200 is an SDP type charger, the process proceeds to step 311. If it is detected that the connected charger 200 is not an SDP type charger, then step 312 is entered.
  • the charging module 10 detects that the D+ and D- signals of the electronic device are low, it determines that the connected device is an SDP type charger. .
  • Step 311 the CPU 30 controls the charging module 10 to acquire the first charging current from the charger 200 to charge the electronic device 100.
  • the first charging current is a charging current having a maximum current of about 500 mA.
  • Step 312 the CPU 30 controls the charging module 10 to detect whether the connected charger 200 is a CDP type charger 200. If it is detected that the connected charger 200 is a CDP type charger, then the process proceeds to step 305. If it is detected that the connected charger 200 is not a CDP type charger, then step 306 is entered.
  • the pull-up power supply VDM_SRC of the D-signal of the electronic device 100 is turned on, that is, the D-signal of the electronic device 100 is high, disconnected.
  • the pull-up power source VDP_SRC of the D+ signal of the electronic device 100 turns on the pull-down current source IDP_SINK of the D+ signal of the electronic device 100.
  • the D+ signal of the electronic device 100 will become a low level, and the connected charger can be judged accordingly.
  • a charger for the CDP type when the electronic device 100 is connected to a charger, then the pull-up power supply VDM_SRC of the D-signal of the electronic device 100 is turned on, that is, the D-signal of the electronic device 100 is high, disconnected.
  • the pull-up power source VDP_SRC of the D+ signal of the electronic device 100 turns on the pull-down current source IDP_SINK of the D+ signal of the electronic device 100.
  • the D+ signal of the electronic device 100 will become a low level, and the
  • Step 313 the CPU 30 controls the charging module 10 to acquire the second charging current from the charger 200 to charge the electronic device 100.
  • the second charging current is a charging current having a maximum current of about 900 mA.
  • Step 314 the CPU 30 controls the charging module 10 to set to acquire a third charging current from the charger 200 to charge the electronic device 100.
  • the third charging current is a charging current having a maximum current of about 500 mA.
  • step 303 when the determination in step 302 is YES, step 303 is performed. If the determination in step 303 is YES, step 304 is performed; if the determination in step 303 is no, step 307 is performed. When the determination in step 307 is YES, step 308 is performed; if the determination in step 307 is NO, step 305 is performed. When the determination in step 305 is NO, step 309 is performed. When the determination in step 305 is YES, step 306 is performed. The other steps are the same as in FIG. 2 and will not be described again.
  • step 305 is performed.
  • step 306 is performed; If the determination is no, step 303 is performed.
  • step 304 is performed; if the determination in step 303 is no, step 307 is performed.
  • step 309 is performed.
  • step 308 is performed. The other steps are the same as in FIG. 2 and will not be described again.
  • step 305 is performed. If the determination in step 305 is YES, step 306 is performed; if the determination in step 305 is no, step 307 is performed. If the determination in step 307 is YES, step 308 is performed; if the determination in step 307 is no, step 303 is performed. When the determination in step 303 is NO, step 309 is performed. When the determination in step 303 is YES, step 304 is performed. The other steps are the same as in FIG. 2 and will not be described again.
  • step 307 when the determination in step 302 is YES, step 307 is performed. If the determination in step 307 is YES, step 308 is performed; if the determination in step 307 is no, step 303 is performed. If the determination in step 303 is YES, step 304 is performed; if the determination in step 303 is no, step 305 is performed. If the determination in step 305 is YES, step 306 is performed; if the determination in step 305 is no, step 309 is performed. The other steps are the same as in FIG. 2 and will not be described again.
  • step 307 when the determination in step 302 is YES, step 307 is performed.
  • step 308 is performed; if the determination in step 307 is NO, step 305 is performed.
  • step 306 is performed; if the determination in step 305 is no, step 303 is performed.
  • step 304 is performed; if the determination in step 303 is no, step 309 is performed.
  • the other steps are the same as in FIG. 2 and will not be described again.
  • the electronic device 100 and the charging method thereof can detect the dedicated fast charging and charging protocol supported by the charger 200, and select a corresponding dedicated fast charging and charging protocol to perform charging according to the detection result, so that the electronic device 100 can be compatible with the first support.
  • the fast charging protocol and the second type of fast charging protocol charger 200 are convenient for users to enhance the user experience.

Landscapes

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

Abstract

一种电子装置(100),该电子装置(100)包括:充电模块(10),充电模块(10)设置为连接充电器(200);CPU(30),CPU(30)与充电模块(10)相连,设置为控制充电模块(10)检测所连接的充电器(200)的端口类型,并根据充电器(200)的端口类型,从充电器(200)获取与端口类型对应的充电电流,以对电子装置(100)进行充电;以及MCU(50),MCU(50)与充电模块(10)相连, MCU(50)以及充电模块(10)还设置为,在充电模块(10)检测到充电器(200)的端口类型为专用充电端口类型的充电器(200)时,进一步检测充电器(200)所支持的专用充电协议,并选择对应的专用充电协议方案控制充电器(200)对电子装置(100)进行充电。还提供一种充电方法。

Description

电子装置及其充电方法
本申请要求于2016年9月26日提交中国专利局,申请号为201610851450.0、发明名称为“电子装置及其充电方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及快速充电技术领域,具体涉及一种电子装置及其充电方法。
背景技术
现有的手机等电子装置通常只支持一种的快速充电协议,例如,支持QC2.0协议的手机通常就不支持VOOC(Voltage Open Loop Multi-step Constant-Current Charging,电压开环多步恒流充电)协议方案及Pump Express2.0快充协议,(简称PE+2.0),即只能搭配支持QC 2.0协议的充电器实现快速充电,无法搭配支持VOOC协议及PE+2.0协议的充电器进行快速充电。支持VOOC协议方案的手机通常就不支持QC2.0协议方案及PE+2.0协议方案,即只能搭配支持VOOC协议的充电器实现快速充电,无法搭配支持QC2.0协议及PE+2.0协议的充电器进行快速充电。支持PE+2.0协议方案的手机通常就不支持QC2.0协议方案及VOOC协议方案,即只能搭配支持PE+2.0协议的充电器实现快速充电,无法搭配支持QC2.0协议及VOOC协议的充电器进行快速充电。因此,现有电子装置对充电器的兼容性较差。
发明内容
鉴于以上内容,有必要提供一种可同时兼容支持QC2.0协议、PE+2.0协议及VOOC协议的充电器的电子装置。
另外,有必要提供一种上述电子装置对应的充电方法
一种电子装置,所述电子装置包括:
充电模块,所述充电模块设置为连接充电器;
中央处理器CPU,所述CPU与所述充电模块相连,设置为控制所述充电模 块检测所连接的所述充电器的端口类型,并根据所述充电器的端口类型,从所述充电器获取与所述端口类型对应的充电电流,以对所述电子装置进行充电;
所述CPU还设置为当所述充电模块检测到所述充电器为专用充电端口类型的充电器时,进一步控制所述充电模块检测所述充电器所支持的第一类快充协议,并选择对应的第一类快充协议方案控制所述充电器对所述电子装置进行充电;
微控制单元MCU,所述MCU与所述充电模块相连,所述MCU设置为当所述充电模块检测到所述充电器为专用充电端口类型的充电器时,进一步控制所述充电模块检测所述充电器所支持的第二类快充协议,并选择对应的第二类快充协议方案控制所述充电器对所述电子装置进行充电,所述第一类快充协议包括Quick Charge 2.0协议及Pump Express 2.0协议,所述第二类快充协议包括电压开环多步恒流充电VOOC协议;
在所述充电模块检测到所述充电器为标准下行端口类型的充电器时,所述CPU从所述充电器获取第一充电电流对所述电子装置进行充电;及
在所述充电模块检测到所述充电器为充电下行端口类型的充电器时,所述CPU从所述充电器获取第二充电电流对所述电子装置进行充电。
根据本发明优选实施例,所述电子装置还包括电源管理模块,所述电源管理模块设置为检测所述充电模块是否与充电器相连,并在所述电子装置与所述充电器相连时,所述CPU控制所述充电模块检测所述充电器的端口类型。
根据本发明优选实施例,所述充电模块检测USB电池充电规范1.2协议,以完成电子装置与充电器的第一次握手。
根据本发明优选实施例,当所述充电模块检测到所述充电器为专用充电端口类型的充电器,且没有检测到所述充电器所支持的专用充电协议时,按照5V充电器类型对所述电子装置进行充电。
一种充电方法,用于控制充电器对电子装置进行充电,所述方法包括:
检测所述充电器的端口类型;
根据所述充电器的端口类型,从所述充电器获取对应充电电流对所述电子装置进行充电;
当检测到所述充电器为专用充电端口类型的充电器,且检测到所述充电器支持第一类快充协议时,选择对应的第一类快充协议方案控制所述充电器对所述电子装置进行充电;
当检测到所述充电器为专用充电端口类型的充电器,且检测到所述充电器支持第二类快充协议时,选择对应的第二类快充协议方案控制所述充电器对所述电子装置进行充电,所述第一类快充协议包括Quick Charge 2.0协议及Pump Express 2.0协议,所述第二类快充协议包括电压开环多步恒流充电VOOC协议;
当检测到所述充电器为标准下行端口类型的充电器时,从所述充电器获取第一充电电流对所述电子装置进行充电;及
当检测到所述充电器为充电下行端口类型的充电器时,从所述充电器获取第二充电电流对所述电子装置进行充电。
根据本发明优选实施例,所述方法还包括检测所述电子装置的充电模块是否与所述充电器相连,并在所述电子装置与所述充电器相连时,检测所述充电器的端口类型。
根据本发明优选实施例,所述方法还包括:
检测USB电池充电规范1.2协议,以完成电子装置与充电器的第一次握手。
根据本发明优选实施例,所述方法还包括:
当检测到所述充电器为专用充电端口类型的充电器,且没有检测到所述充电器所支持的专用充电协议时,按照5V充电器类型对所述电子装置进行充电。
相较于现有技术,所述电子装置及其充电方法可检测所述充电器所支持的充电协议,并根据检测结果选择对应的充电协议进行充电,使得电子装置可兼容支持第一类快充协议及第二类快充协议的充电器,方便用户使用,提升用户体验。
附图说明
图1所示是本发明一较佳实施例的电子装置的电路图。
图2所示是本发明第一较佳实施例的方法的流程图。
图3所示是本发明第二较佳实施例的方法的流程图。
图4所示是本发明第三较佳实施例的方法的流程图。
图5所示是本发明第四较佳实施例的方法的流程图。
图6所示是本发明第五较佳实施例的方法的流程图。
图7所示是本发明第六较佳实施例的方法的流程图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清除、完整地描述,显然,所描述的实施例仅仅是本发明的一部分实施例,而不是全部的实施例。
基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。
参考图1所示,是本发明较佳实施例的电子装置100的电路图。所述电子装置100包括充电模块10、CPU(Central Processing Unit,中央处理器)30及MCU(Micro Controller Unit,微控制单元)50。所述电子装置100可与充电器200相连,以进行充电。所述充电器200包括连接器201。所述连接器201可以是USB连接器,所述连接器201包括电压引脚VBUS、接地引脚GND、数据引脚USB_D+(D+)及USB_D-(D-)。
所述充电模块10设置为与充电器200相连,所述充电模块10与VBUS引脚、接地引脚GND直接相连,经第一电阻R1与数据引脚USB_D+相连,以及经第二电阻R2与数据引脚USB_D-相连。
所述CPU30与所述充电模块10相连,设置为控制所述充电模块10检测所连接的所述充电器200的端口类型,并根据所述充电器200的端口类型,控制所述充电器200对电子装置100的充电方案。具体的,CPU30从所述充电器200获取与所述端口类型对应的充电电流,以对所述电子装置100进行充电。
在本较佳实施例中,所述充电器200的端口类型包括SDP(Standard Downstream Port,标准下行端口)、CDP(Charging Downstream Port,充电 下行端口)以及DCP(Dedicated Charging Port,专用充电端口)。如果所述充电模块10检测到所述充电器200为SDP类型,则从所述充电器200获取第一充电电流对所述电子装置进行充电,如果所述充电模块10检测到所述充电器200为CDP类型,则从所述充电器200获取第二充电电流对所述电子装置进行充电。在本较佳实施例中,所述第一充电电流为最大电流约为500mA的充电电流,所述第二充电电流为最大电流约为900mA的充电电流。
如果所述充电模块10检测到所述充电器200为DCP类型的充电器,所述CPU 30控制所述充电模块10进一步检测所述充电器200是否支持第一类快充协议,如果所述充电器200支持第一类快充协议,则选择对应的第一类快充协议方案对所述电子装置100进行充电。
所述MCU50经第三电阻R3与第四电阻R4与所述充电模块10相连,所述MCU50设置为在所述充电模块10检测到所述充电器200为DCP类型的充电器时,检测所述充电器200是否支持第二类快充协议,如果所述充电器200支持第二类快充协议,则选择对应的第二类快充协议方案对所述电子装置100进行充电。在其他实施例中,也可以由所述CPU30控制所述充电模块10进一步检测所述充电器200是否支持第二类快充协议。
在本较佳实施例中,所述第一类快充协议包括Quick Charge 2.0协议及Pump Express 2.0快充协议,(简称PE+2.0),所述第二类快充协议包括VOOC(Voltage Open Loop Multi-step Constant-Current Charging,电压开环多步恒流充电)协议。所述CPU 30具体检测所述充电器200所支持的第一类快充协议及所述MCU 50具体检测所述充电器200所支持的第二类快充协议的方法将在如图2-图7中所示的本发明的较佳实施方式中具体详述。
在本发明的另一较佳实施例中,所述电子装置100还包括电源管理模块70,所述电源管理模块70设置为检测所述电子装置100是否与所述充电器200相连,如果所述充电模块10与所述充电器200相连,则所述充电模块10检测所述充电器200的端口类型,如果所述充电模块10未与所述充电器200相连,则所述电源管理模块70则以预设频率重复检测,直至检测到所述充电器200与所述电子装置100相连。
参考图2所示,本发明充电方法第一较佳实施方式的流程图。所述充电方法包括以下步骤。所述较佳实施方式也是本发明的较佳实施例。根据不同的需求,该图所示流程图中的执行顺序可以改变,某些可以省略。
步骤300,所述电源管理模块70检测所述充电模块10是否与所述充电器200相连,如果检测到所述电子装置100与充电器200相连,则进入步骤301,如果未检测到所述电子装置100与充电器200相连,则重复所述步骤。
步骤301,所述CPU 30控制所述充电模块10检测USB电池充电规范1.2协议(简称BC 1.2),以完成电子装置100与充电器200的第一次握手。。
步骤302,所述CPU 30控制所述充电模块10检测所连接的充电器200是否是DCP类型的充电器,如果检测到所连接的充电器200是DCP类型的充电器200,则进入步骤303,如果检测到所连接的充电器200不是DCP类型的充电器,则进入步骤310。
在本发明的一个实施例中,当电子装置100连接到一个充电器时,然后打开电子装置100的D-信号的上拉电源VDM_SRC,即电子装置100的D-信号为高电平,断开电子装置100的D+信号的上拉电源VDP_SRC,打开电子装置100的D+信号的下拉电流源IDP_SINK,此时电子装置100的D+信号将变成高电平,此时,据此判断所连接的充电器为DCP类型的充电器。
步骤303,所述CPU 30控制所述充电模块10检测所述充电器200是否支持QC2.0协议,如果所述充电器200支持QC2.0协议,则进入步骤304,如果所述充电器200不支持QC2.0协议,则进入步骤305。
在本发明的一个实施例中,电子装置100根据USB BC1.2规范执行检测,当检测到DCP类型的充电器200时,电子装置100在其D+打开一个上拉电源VDP_SRC。充电器200检测D+上的输出电压、并确保D+上的输出电压在一秒的时长里高于第一判断电平VDAT_REF并低于第二判断电平VSEL_REF。一秒以后,充电器200将D+和D-开路并接通下拉电阻Rdm_dwn。如果D-保持为低,那么电子装置100不支持QC2.0协议规范。如果D-保持为高,则电子装置100支持QC2.0协议。
步骤304,所述CPU 30控制所述充电模块10采用QC2.0协议方案对所 述电子装置100进行充电。
步骤305,所述CPU 30控制所述充电模块10检测所述充电器200200是否支持PE+2.0协议,如果所述充电器200支持PE+2.0协议,则进入步骤306,如果所述充电器200不支持PE+2.0协议,则进入步骤307。
在本发明的一个实施例中,当充电模块10确定与电子装置100相连的充电器为CDP类型或者DCP类型时,充电模块10发送升电压指令Current Pattern,目的是进一步区别插入的装置是否为符合PE+2.0协议的电源适配器。
充电器200的输出电压调整至7V并维持。因此,充电模块10透过量测VBUS可以判定经由USB连接器插入的装置是否为符合FC协议的电源适配器。若VBUS符合电源适配器输出7V的规格,可以判定为充电器200支持PE+2.0协议。
步骤306,所述CPU 30控制所述充电模块10采用PE+2.0协议方案对所述电子装置100进行充电。
步骤307,所述MCU 50检测所述充电器200是否支持VOOC协议,如果所述充电器200支持VOOC协议,则进入步骤308,如果所述充电器200不支持QC2.0协议,则进入步骤309。
在本发明的一个实施例中,充电模块10通过检测连接器201的D+信号,及D-信号来判断VOOC的协议,其中D+用于传输握手信号的CLK数据,D-用于传输握手信号的DATA数据。
步骤308,所述MCU 50采用VOOC协议方案对所述电子装置100进行充电。
步骤309,所述CPU 30控制所述充电模块10按照普通5V充电器类型进行常规充电。
步骤310,所述CPU 30控制所述充电模块10检测所连接的充电器200是否是SDP类型的充电器200,如果检测到所连接的充电器200是SDP类型的充电器,则进入步骤311,如果检测到所连接的充电器200不是SDP类型的充电器,则进入步骤312。
在本发明的一个实施例中,当电子装置100连接到充电器200后,若充电模块10检测到电子装置的D+、D-信号为低电平时,则确定所接的设备为SDP类型充电器。
步骤311,所述CPU 30控制所述充电模块10从充电器200获取第一充电电流对所述电子装置100进行充电。在本较佳实施例中,所述第一充电电流为最大电流约为500mA的充电电流。
步骤312,所述CPU 30控制所述充电模块10检测所连接的充电器200是否是CDP类型的充电器200,如果检测到所连接的充电器200是CDP类型的充电器,则进入步骤305,如果检测到所连接的充电器200不是CDP类型的充电器,则进入步骤306。
在本发明的一个实施例中,当电子装置100连接到一个充电器时,然后打开电子装置100的D-信号的上拉电源VDM_SRC,即电子装置100的D-信号为高电平,断开电子装置100的D+信号的上拉电源VDP_SRC,打开电子装置100的D+信号的下拉电流源IDP_SINK,此时电子装置100的D+信号将变成低电平,则可据此判断所连接的充电器为CDP类型的充电器。
步骤313,所述CPU 30控制所述充电模块10从充电器200获取第二充电电流对所述电子装置100进行充电。在本较佳实施例中,所述第二充电电流为最大电流约为900mA的充电电流。
步骤314,所述CPU 30控制所述充电模块10设定从充电器200获取第三充电电流对所述电子装置100进行充电。在本较佳实施例中,所述第三充电电流为最大电流约为500mA的充电电流。
可以理解的是,如图3所示,在本发明第二较佳实施方式中,在步骤302判断为是时,执行步骤303。步骤303判断为是时,执行步骤304;步骤303判断为否时,执行步骤307。步骤307判断为是时,执行步骤308;步骤307判断为否时,执行步骤305。步骤305判断为否时,执行步骤309。步骤305判断为是时,执行步骤306。其他步骤与图2相同,不在赘述。
可以理解的是,如图4所示,在本发明第三较佳实施方式中,在步骤302判断为是时,执行步骤305。步骤305判断为是时,执行步骤306;步骤305 判断为否时,执行步骤303。步骤303判断为是时,执行步骤304;步骤303判断为否时,执行步骤307。步骤307判断为否时,执行步骤309。步骤307判断为是时,执行步骤308。其他步骤与图2相同,不在赘述。
可以理解的是,如图5所示,在本发明第四较佳实施方式中,在步骤302判断为是时,执行步骤305。步骤305判断为是时,执行步骤306;步骤305判断为否时,执行步骤307。步骤307判断为是时,执行步骤308;步骤307判断为否时,执行步骤303。步骤303判断为否时,执行步骤309。步骤303判断为是时,执行步骤304。其他步骤与图2相同,不在赘述。
可以理解的是,如图6所示,在本发明第五较佳实施方式中,在步骤302判断为是时,执行步骤307。步骤307判断为是时,执行步骤308;步骤307判断为否时,执行步骤303。步骤303判断为是时,执行步骤304;步骤303判断为否时,执行步骤305。步骤305判断为是时,执行步骤306;步骤305判断为否时,执行步骤309。其他步骤与图2相同,不在赘述。
可以理解的是,如图7所示,在本发明第六较佳实施方式中,在步骤302判断为是时,执行步骤307。步骤307判断为是时,执行步骤308;步骤307判断为否时,执行步骤305。步骤305判断为是时,执行步骤306;步骤305判断为否时,执行步骤303。步骤303判断为是时,执行步骤304;步骤303判断为否时,执行步骤309。其他步骤与图2相同,不在赘述。
本发明的电子装置100及其充电方法可检测所述充电器200所支持的专用快充充电协议,并根据检测结果选择对应的专用快充充电协议进行充电,使得电子装置100可兼容支持第一类快充协议、第二类快充协议的充电器200,方便用户使用,提升用户体验。
对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。此外,显然 “包括”一词不排除其他单元或,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第一,第二等词语用来表示名称,而并不表示任何特定的顺序。
最后应说明的是,以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或等同替换,而不脱离本发明技术方案的精神和范围。

Claims (8)

  1. 一种电子装置,其特征在于,所述电子装置包括:
    充电模块,所述充电模块设置为连接充电器;
    中央处理器CPU,所述CPU与所述充电模块相连,设置为控制所述充电模块检测所连接的所述充电器的端口类型,并根据所述充电器的端口类型,从所述充电器获取与所述端口类型对应的充电电流,以对所述电子装置进行充电;
    所述CPU还设置为当所述充电模块检测到所述充电器为专用充电端口类型的充电器时,进一步控制所述充电模块检测所述充电器所支持的第一类快充协议,并选择对应的第一类快充协议方案控制所述充电器对所述电子装置进行充电;
    微控制单元MCU,所述MCU与所述充电模块相连,所述MCU设置为当所述充电模块检测到所述充电器为专用充电端口类型的充电器时,进一步控制所述充电模块检测所述充电器所支持的第二类快充协议,并选择对应的第二类快充协议方案控制所述充电器对所述电子装置进行充电,所述第一类快充协议包括Quick Charge 2.0协议及Pump Express 2.0协议,所述第二类快充协议包括电压开环多步恒流充电VOOC协议;
    在所述充电模块检测到所述充电器为标准下行端口类型的充电器时,所述CPU从所述充电器获取第一充电电流对所述电子装置进行充电;及
    在所述充电模块检测到所述充电器为充电下行端口类型的充电器时,所述CPU从所述充电器获取第二充电电流对所述电子装置进行充电。
  2. 如权利要求1所述的电子装置,其特征在于,所述电子装置还包括电源管理模块,所述电源管理模块设置为检测所述充电模块是否与充电器相连,并在所述电子装置与所述充电器相连时,所述CPU控制所述充电模块检测所述充电器的端口类型。
  3. 如权利要求1所述的电子装置,其特征在于,所述充电模块检测USB电池充电规范1.2协议,以完成电子装置与充电器的第一次握手。
  4. 如权利要求1所述的电子装置,其特征在于,当所述充电模块检测到所述充电器为专用充电端口类型的充电器,且没有检测到所述充电器所支持的专 用充电协议时,按照5V充电器类型对所述电子装置进行充电。
  5. 一种充电方法,用于控制充电器对电子装置进行充电,其特征在于,所述方法包括:
    检测所述充电器的端口类型;
    根据所述充电器的端口类型,从所述充电器获取对应充电电流对所述电子装置进行充电;
    当检测到所述充电器为专用充电端口类型的充电器,且检测到所述充电器支持第一类快充协议时,选择对应的第一类快充协议方案控制所述充电器对所述电子装置进行充电;
    当检测到所述充电器为专用充电端口类型的充电器,且检测到所述充电器支持第二类快充协议时,选择对应的第二类快充协议方案控制所述充电器对所述电子装置进行充电,所述第一类快充协议包括Quick Charge 2.0协议及Pump Express 2.0协议,所述第二类快充协议包括电压开环多步恒流充电VOOC协议;
    当检测到所述充电器为标准下行端口类型的充电器时,从所述充电器获取第一充电电流对所述电子装置进行充电;及
    当检测到所述充电器为充电下行端口类型的充电器时,从所述充电器获取第二充电电流对所述电子装置进行充电。
  6. 如权利要求5所述的充电方法,其特征在于,所述方法还包括检测所述电子装置的充电模块是否与所述充电器相连,并在所述电子装置与所述充电器相连时,检测所述充电器的端口类型。
  7. 如权利要求5所述的充电方法,其特征在于,所述方法还包括:
    检测USB电池充电规范1.2协议,以完成电子装置与充电器的第一次握手。
  8. 如权利要求5所述的充电方法,其特征在于,所述方法还包括:
    当检测到所述充电器为专用充电端口类型的充电器,且没有检测到所述充电器所支持的专用充电协议时,按照5V充电器类型对所述电子装置进行充电。
PCT/CN2016/103869 2016-09-26 2016-10-29 电子装置及其充电方法 Ceased WO2018053901A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610851450.0A CN106329654A (zh) 2016-09-26 2016-09-26 电子装置及其充电方法
CN201610851450.0 2016-09-26

Publications (1)

Publication Number Publication Date
WO2018053901A1 true WO2018053901A1 (zh) 2018-03-29

Family

ID=57820085

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/103869 Ceased WO2018053901A1 (zh) 2016-09-26 2016-10-29 电子装置及其充电方法

Country Status (2)

Country Link
CN (1) CN106329654A (zh)
WO (1) WO2018053901A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114156991A (zh) * 2021-12-10 2022-03-08 苏州博创集成电路设计有限公司 调度计时器的方法和装置、充电电路、充电设备、芯片
EP4024653A4 (en) * 2019-10-16 2022-11-09 Guangdong Oppo Mobile Telecommunications Corp., Ltd. CHARGING CONTROL METHOD AND DEVICE, AND READABLE STORAGE MEDIA
EP3993218A4 (en) * 2019-10-16 2023-06-28 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Device to be charged and charging method

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107508330A (zh) * 2017-07-05 2017-12-22 深圳天珑无线科技有限公司 一种电子装置及其充电方法
CN107508331B (zh) * 2017-07-11 2024-10-29 道县龙威盛科技有限公司 充电单元及充电装置
CN107732999B (zh) * 2017-08-29 2021-01-26 深圳天珑无线科技有限公司 一种充电方法、充电系统及电子设备
CN107465236A (zh) * 2017-09-22 2017-12-12 深圳天珑无线科技有限公司 充电器类型的判断方法、判断系统及用户终端

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025173A (zh) * 2009-09-10 2011-04-20 美国博通公司 用于区分下行充电端口和专用充电端口的方法和设备
CN102684270A (zh) * 2012-05-31 2012-09-19 华为技术有限公司 一种识别usb充电器类型的方法及usb设备
CN105098883A (zh) * 2015-07-01 2015-11-25 深圳天珑无线科技有限公司 充电系统
CN105553001A (zh) * 2015-12-23 2016-05-04 深圳市万普拉斯科技有限公司 充电方法和智能终端

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI384721B (zh) * 2009-08-19 2013-02-01 立錡科技股份有限公司 充電器及具有該充電器的可攜式裝置
KR101667707B1 (ko) * 2009-10-22 2016-10-19 엘지전자 주식회사 이동 단말기 및 그의 usb전용 충전기 판별방법
TWI460594B (zh) * 2011-02-11 2014-11-11 Via Tech Inc 適應性通用串列匯流排充電方法及系統

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025173A (zh) * 2009-09-10 2011-04-20 美国博通公司 用于区分下行充电端口和专用充电端口的方法和设备
CN102684270A (zh) * 2012-05-31 2012-09-19 华为技术有限公司 一种识别usb充电器类型的方法及usb设备
CN105098883A (zh) * 2015-07-01 2015-11-25 深圳天珑无线科技有限公司 充电系统
CN105553001A (zh) * 2015-12-23 2016-05-04 深圳市万普拉斯科技有限公司 充电方法和智能终端

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4024653A4 (en) * 2019-10-16 2022-11-09 Guangdong Oppo Mobile Telecommunications Corp., Ltd. CHARGING CONTROL METHOD AND DEVICE, AND READABLE STORAGE MEDIA
EP3993218A4 (en) * 2019-10-16 2023-06-28 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Device to be charged and charging method
US12614917B2 (en) 2019-10-16 2026-04-28 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Device to be charged compatible with multiple charging solutions, and charging method therefor
CN114156991A (zh) * 2021-12-10 2022-03-08 苏州博创集成电路设计有限公司 调度计时器的方法和装置、充电电路、充电设备、芯片

Also Published As

Publication number Publication date
CN106329654A (zh) 2017-01-11

Similar Documents

Publication Publication Date Title
WO2018053901A1 (zh) 电子装置及其充电方法
US12549017B2 (en) Method and apparatus for charging a battery
CN103106167B (zh) 一种usb设备及其控制方法
US9431841B2 (en) Device to device charging via USB type-C interfaces
US9201480B2 (en) Method and system for determining an arbitrary charging protocol in USB charging ports
US20160372936A1 (en) Automatic scheme to detect Multi-Standard Charger Types
CN105518967B (zh) 改变电流限制的装置和方法
CN107742912A (zh) 充电方法、快充设备及计算机可读存储介质
US8941361B2 (en) Computer system and control method thereof
EP3771987B1 (en) Electronic device for preventing damage of usb device and operating method thereof
CN112448423B (zh) 充电方法和装置、电子设备、存储介质
CN106489139A (zh) 用于区分专有非浮置和浮置充电器以供调节充电电流的装置和方法
CN106300549A (zh) 电子装置及其充电方法
CN106374563A (zh) 电子装置及其充电方法
CN106410894A (zh) 电子装置及其充电方法
CN106329625B (zh) 一种充电方法及装置
WO2018053902A1 (zh) 电子装置及其充电方法
CN104953631A (zh) 一种电流控制方法及终端设备
CN106329652A (zh) 电子装置及其充电方法
CN106451617A (zh) 电子装置及其充电方法
CN106451615A (zh) 电子装置及其充电方法
CN106356933A (zh) 电子装置及其充电方法
CN106374566A (zh) 电子装置及其充电方法
CN106300551A (zh) 电子装置及其充电方法
CN106356935A (zh) 电子装置及其充电方法

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: 16916640

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: 16916640

Country of ref document: EP

Kind code of ref document: A1