[go: up one dir, main page]

CN112825401B - Charging cable, charger, charging control method and charging device - Google Patents

Charging cable, charger, charging control method and charging device Download PDF

Info

Publication number
CN112825401B
CN112825401B CN201911143707.7A CN201911143707A CN112825401B CN 112825401 B CN112825401 B CN 112825401B CN 201911143707 A CN201911143707 A CN 201911143707A CN 112825401 B CN112825401 B CN 112825401B
Authority
CN
China
Prior art keywords
charging
line
pin
charged
switch
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.)
Active
Application number
CN201911143707.7A
Other languages
Chinese (zh)
Other versions
CN112825401A (en
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201911143707.7A priority Critical patent/CN112825401B/en
Publication of CN112825401A publication Critical patent/CN112825401A/en
Application granted granted Critical
Publication of CN112825401B publication Critical patent/CN112825401B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R27/00Coupling parts adapted for co-operation with two or more dissimilar counterparts
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • H01R13/6608Structural association with built-in electrical component with built-in single component
    • H01R13/6616Structural association with built-in electrical component with built-in single component with resistor
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • H01R13/665Structural association with built-in electrical component with built-in electronic circuit
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • H01R13/665Structural association with built-in electrical component with built-in electronic circuit
    • H01R13/6683Structural association with built-in electrical component with built-in electronic circuit with built-in sensor
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • H01R13/70Structural association with built-in electrical component with built-in switch
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R29/00Coupling parts for selective co-operation with a counterpart in different ways to establish different circuits, e.g. for voltage selection, for series-parallel selection, programmable connectors
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R31/00Coupling parts supported only by co-operation with counterpart
    • H01R31/06Intermediate parts for linking two coupling parts, e.g. adapter
    • H01R31/065Intermediate parts for linking two coupling parts, e.g. adapter with built-in electric apparatus

Landscapes

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

Abstract

The disclosure relates to the technical field of chargers, in particular to a charging line, a charger, a charging control method and a charging device. A charging cord, comprising: the first connecting end is connected with the charger; the second connecting end is connected with the equipment to be charged; the first line charges the equipment to be charged which supports the first charging protocol type; the second line charges the equipment to be charged which supports the second charging protocol type; the switching unit switches the first line connection or the second line connection. The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: can judge the charging protocol type that supports automatically according to the interface type of the equipment of waiting to charge through a charging wire to accord with the charging circuit of the protocol type of charging according to various charging protocol types automatic switch-over, need not the user and prepare the charging wire respectively to the different equipment of waiting to charge, convenience of customers uses, and portable saves space.

Description

充电线、充电器、充电控制方法和充电装置Charging cable, charger, charging control method and charging device

技术领域technical field

本公开涉及充电器技术领域,尤其涉及一种充电线、充电器、充电控制方法和充电装置。The present disclosure relates to the technical field of chargers, in particular to a charging cable, a charger, a charging control method and a charging device.

背景技术Background technique

各种使用专用充电电池的电器都需要通过充电器与市电连接,对电池进行充电。充电器根据电器种类的不同充电协议也不同,因此,充电器需要配合相应的充电协议的电器使用。例如,数字通信协议(DCP,Digital Communication Protocol)、快充协议(QC,Quick Charge)和功率传输协议(PD,Power Delivery)等。Various electrical appliances using special rechargeable batteries need to be connected to the mains through a charger to charge the batteries. Chargers have different charging protocols according to different types of electrical appliances. Therefore, the charger needs to be used with electrical appliances with corresponding charging protocols. For example, Digital Communication Protocol (DCP, Digital Communication Protocol), Quick Charge Protocol (QC, Quick Charge) and Power Delivery Protocol (PD, Power Delivery), etc.

需要充电的电器种类越多,所需要的充电器也越多,具有各种充电协议的充电器之间互相不通用,因此,很多用户都要对应各种电器分别配备相应的充电器,尤其是用户旅行时,需要将各种充电器都随身携带,占用了行李空间,使用不便。The more types of electrical appliances that need to be charged, the more chargers are needed. The chargers with various charging protocols are not compatible with each other. Therefore, many users need to be equipped with corresponding chargers for various electrical appliances, especially When the user travels, he needs to carry various chargers with him, which takes up luggage space and is inconvenient to use.

发明内容Contents of the invention

为克服相关技术中存在的问题,本公开提供一种充电线、充电器、充电控制方法和充电装置。In order to overcome the problems existing in the related art, the present disclosure provides a charging cable, a charger, a charging control method and a charging device.

根据本公开实施例的一个方面,提供一种充电线,包括第一连接端、第二连接端、第一线路、第二线路和切换单元,其中:第一连接端,用于连接充电器;第二连接端,用于连接待充电设备;第一线路,用于对支持第一充电协议类型的待充电设备进行充电;第二线路,用于对支持第二充电协议类型的待充电设备进行充电;切换单元,用于根据待充电设备所支持的充电协议类型,切换第一连接端与第二连接端通过第一线路连接,或,切换第一连接端与第二连接端通过第二线路连接。According to an aspect of an embodiment of the present disclosure, a charging cable is provided, including a first connection end, a second connection end, a first line, a second line, and a switching unit, wherein: the first connection end is used to connect to a charger; The second connection end is used to connect the device to be charged; the first line is used to charge the device to be charged that supports the first charging protocol type; the second line is used to charge the device to be charged that supports the second charging protocol type Charging; switching unit, used to switch the first connection end and the second connection end through the first line according to the charging protocol type supported by the device to be charged, or switch the first connection end and the second connection end through the second line connect.

在一个实施例中,第一连接端和第二连接端均包括第一数据线引脚、第二数据线引脚、地线引脚、配置通道CC引脚和电源VBUS线引脚;第一线路包括:第一数据线、第二数据线、地线和CC线路;第二线路包括第二数据线、地线、CC线路和VBUS线;第一数据线电连接第一连接端的第一数据线引脚和第二连接端的第一数据线引脚;第二数据线电连接第一连接端的第二数据线引脚和第二连接端的第二数据线引脚;地线电连接第一连接端的地线引脚和第二连接端的地线引脚;CC线路电连接第一连接端的CC引脚和第二连接端的CC引脚;VBUS线电连接第一连接端的VBUS线引脚和第二连接端的VBUS引脚。In one embodiment, both the first connection end and the second connection end include a first data line pin, a second data line pin, a ground line pin, a configuration channel CC pin and a power supply VBUS line pin; the first The line includes: the first data line, the second data line, the ground line and the CC line; the second line includes the second data line, the ground line, the CC line and the VBUS line; the first data line is electrically connected to the first data line at the first connection end line pin and the first data line pin of the second connection end; the second data line is electrically connected to the second data line pin of the first connection end and the second data line pin of the second connection end; the ground wire is electrically connected to the first connection The ground pin of the first connection end and the ground wire pin of the second connection end; the CC line is electrically connected to the CC pin of the first connection end and the CC pin of the second connection end; the VBUS line is electrically connected to the VBUS line pin of the first connection end and the second connection end Connect to the VBUS pin.

在一个实施例中,切换单元包括第一开关和上拉电阻;所述第一开关包含公共触点、第一触点和第二触点,所述第一开关在所述第一触点和所述第二触点之间切换;所述上拉电阻电连接于所述第一触点和所述VBUS线之间;所述公共触点与所述第一连接端的第一数据线引脚连通,所述第二触点与所述第二连接端的第一数据线引脚连通,所述第一触点与所述上拉电阻连通。In one embodiment, the switching unit includes a first switch and a pull-up resistor; the first switch includes a common contact, a first contact, and a second contact, and the first switch is connected between the first contact and the second contact. switch between the second contacts; the pull-up resistor is electrically connected between the first contact and the VBUS line; the common contact is connected to the first data line pin of the first connection end connected, the second contact is connected with the first data line pin of the second connection end, and the first contact is connected with the pull-up resistor.

在一个实施例中,第二线路中还包括第二开关,第二开关用于控制VBUS线的连通或断开。In one embodiment, the second circuit further includes a second switch, and the second switch is used to control the connection or disconnection of the VBUS line.

在一个实施例中,第一连接端为A型口的USB接口;第二连接端为C型口的USB接口。In one embodiment, the first connection end is a USB interface of type A port; the second connection end is a USB interface of type C port.

在一个实施例中,充电线还包括控制单元;所述控制单元设置于所述第一连接端,用于检测所述待充电设备所支持的充电协议类型,以及用于控制所述切换单元和/或所述第二开关的切换。In one embodiment, the charging cable further includes a control unit; the control unit is arranged at the first connection end, and is used for detecting the charging protocol type supported by the device to be charged, and for controlling the switching unit and /or switching of the second switch.

根据本公开实施例的另一方面,提供一种充电器,与如上述第一方面或第一方面任意一项实施例的充电线配合使用;包括用于检测待充电设备所支持的充电协议类型的控制单元;控制单元,用于根据充电协议类型的检测结果,控制充电线的切换单元和/或第二开关的切换。According to another aspect of the embodiments of the present disclosure, there is provided a charger, which is used in conjunction with the charging line according to the first aspect or any one of the embodiments of the first aspect; including a method for detecting the charging protocol type supported by the device to be charged The control unit; the control unit is used to control the switching unit of the charging line and/or the switching of the second switch according to the detection result of the charging protocol type.

根据本公开实施例的另一方面,提供一种充电控制方法,应用于上述第一方面或第一方面中任意一项实施例的充电线,或,应用于上述第一方面或第一方面中任意一项实施例的充电线与上述第二方面的充电器配合使用的场景,包括:According to another aspect of the embodiments of the present disclosure, there is provided a charging control method, which is applied to the charging line in the above first aspect or any one of the embodiments of the first aspect, or applied to the above first aspect or the first aspect Scenarios where the charging cable of any one of the embodiments is used in conjunction with the charger of the second aspect above include:

在充电线连接充电器并连接待充电设备时,检测待充电设备所支持的充电协议类型;When the charging cable is connected to the charger and the device to be charged, detect the charging protocol type supported by the device to be charged;

在充电协议类型为第一充电协议类型时,通过切换单元切换至第一线路电连接第一连接端和第二连接端,并对待充电设备进行充电;When the charging protocol type is the first charging protocol type, switch to the first line to electrically connect the first connection end and the second connection end through the switching unit, and charge the device to be charged;

在充电协议类型为第二充电协议类型时,通过切换单元切换至第二线路电连接第一连接端和第二连接端,并对待充电设备进行充电。When the charging protocol type is the second charging protocol type, switch to the second line to electrically connect the first connection end and the second connection end through the switching unit, and charge the device to be charged.

在一个实施例中,判断待充电设备所支持的充电协议类型,包括:In one embodiment, determining the charging protocol type supported by the device to be charged includes:

在确定第一连接端的第一数据线引脚、开关、VBUS线、第一连接端VBUS线引脚之间未形成回路时,判定待充电设备支持第一充电协议类型;When it is determined that no loop is formed between the first data line pin of the first connection end, the switch, the VBUS line, and the VBUS line pin of the first connection end, it is determined that the device to be charged supports the first charging protocol type;

在确定第一连接端的第一数据线引脚、开关、VBUS线、第一连接端VBUS线引脚之间形成回路时,判定待充电设备支持第二充电协议类型。When it is determined that a loop is formed between the first data line pin of the first connection end, the switch, the VBUS line, and the VBUS line pin of the first connection end, it is determined that the device to be charged supports the second charging protocol type.

在一个实施例中,通过切换单元切换至第一线路电连接第一连接端和第二连接端,包括:控制第一开关断开与上拉电阻之间的连接,并控制第一开关与第一数据线以及第二连接端第一数据线引脚连接。In one embodiment, switching the first line to electrically connect the first connection terminal and the second connection terminal through the switching unit includes: controlling the first switch to disconnect the connection with the pull-up resistor, and controlling the connection between the first switch and the second connection terminal. A data line and the second connection end are connected to the pins of the first data line.

在一个实施例中,方法还包括:在通过切换单元切换至第一线路电连接第一连接端和第二连接端时,断开第二开关。In one embodiment, the method further includes: when the switching unit switches to the first line to electrically connect the first connection end and the second connection end, turning off the second switch.

在一个实施例中,所述充电协议类型为以下任意两种组合:功率传输协议、快充协议、数字通信协议。In one embodiment, the charging protocol type is a combination of any two of the following: power transmission protocol, fast charging protocol, and digital communication protocol.

根据本公开实施例的另一方面,提供一种充电装置,充电装置包括:检测单元,用于在充电线连接充电器并连接待充电设备时,检测待充电设备所支持的充电协议类型;执行单元,用于在充电协议类型为第一充电协议类型时,通过切换单元切换至第一线路电连接第一连接端和第二连接端,并对待充电设备进行充电;且,用于在充电协议类型为第二充电协议类型时,通过切换单元,切换至第二线路电连接第一连接端和第二连接端,并对待充电设备进行充电。According to another aspect of the embodiments of the present disclosure, there is provided a charging device. The charging device includes: a detection unit, configured to detect the charging protocol type supported by the device to be charged when the charging cable is connected to the charger and connected to the device to be charged; The unit is used to switch to the first line to electrically connect the first connection terminal and the second connection terminal through the switching unit when the charging protocol type is the first charging protocol type, and to charge the device to be charged; When the type is the second charging protocol type, switch to the second line to electrically connect the first connection end and the second connection end through the switching unit, and charge the device to be charged.

根据本公开实施例的另一方面,提供一种非临时性计算机可读存储介质,非临时性计算机可读存储介质存储有计算机可执行指令,计算机可执行指令在由处理器执行时,执行上述第三方面或第三方面任意一项实施例的方法。According to another aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided. The non-transitory computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by a processor, the above-mentioned The third aspect or the method of any one embodiment of the third aspect.

本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

针对不同接口类型的待充电设备,无需再更换满足接口类型对应的充电协议类型的不同充电线,在一根充电线的条件下,可以根据待充电设备的接口类型自动判断充电协议类型,并由充电线内部的切换单元,自动切换符合当前所需的充电协议类型的充电电路,对用户而言,无需再针对不同被充电设备分别准备各种充电线,一定程度上提升了用户体验。For devices to be charged with different interface types, there is no need to replace different charging cables that meet the charging protocol type corresponding to the interface type. Under the condition of one charging cable, the charging protocol type can be automatically judged according to the interface type of the device to be charged, and determined by The switching unit inside the charging line automatically switches the charging circuit that meets the current charging protocol type. For users, there is no need to prepare various charging lines for different devices to be charged, which improves the user experience to a certain extent.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.

图1是示出根据本公开的示例性实施例的充电线的原理示意图。FIG. 1 is a schematic diagram illustrating a charging line according to an exemplary embodiment of the present disclosure.

图2是示出根据本公开的示例性实施例的充电线的电路图。FIG. 2 is a circuit diagram illustrating a charging line according to an exemplary embodiment of the present disclosure.

图3是示出根据本公开的示例性实施例的应用于手机的充电线电路的示意图。FIG. 3 is a schematic diagram illustrating a charging line circuit applied to a mobile phone according to an exemplary embodiment of the present disclosure.

图4是示出根据本公开的示例性实施例的充电方法的流程图。FIG. 4 is a flowchart illustrating a charging method according to an exemplary embodiment of the present disclosure.

图5是示出根据本公开的示例性实施例的充电装置的结构框图。FIG. 5 is a structural block diagram illustrating a charging device according to an exemplary embodiment of the present disclosure.

图6是示出根据本公开的第六示例性实施例的一种装置的框图。FIG. 6 is a block diagram showing an apparatus according to a sixth exemplary embodiment of the present disclosure.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the invention as recited in the appended claims.

图1是示出根据本公开的示例性实施例的充电器的原理示意图。图2是示出根据本公开的示例性实施例的充电器的电路图。FIG. 1 is a schematic diagram illustrating the principle of a charger according to an exemplary embodiment of the present disclosure. FIG. 2 is a circuit diagram illustrating a charger according to an exemplary embodiment of the present disclosure.

根据本公开实施例的一个方面,参照图1和图2,提供一种充电线100,包括第一连接端110、第二连接端120、第一线路、第二线路和切换单元140。其中:第一连接端110,用于连接充电器。第二连接端120,用于连接待充电设备。第一线路,用于对支持第一充电协议类型的待充电设备进行充电。第二线路,用于对支持第二充电协议类型的待充电设备进行充电。切换单元140用于根据待充电设备所支持的充电协议类型,切换第一连接端110与第二连接端120通过第一线路连接,或,切换第一连接端110与第二连接端120通过第二线路连接。According to an aspect of the embodiments of the present disclosure, referring to FIG. 1 and FIG. 2 , a charging cable 100 is provided, including a first connection end 110 , a second connection end 120 , a first line, a second line and a switching unit 140 . Wherein: the first connecting end 110 is used for connecting the charger. The second connection terminal 120 is used for connecting the device to be charged. The first line is used to charge the device to be charged that supports the first charging protocol type. The second line is used to charge the device to be charged that supports the second charging protocol type. The switching unit 140 is used to switch the connection between the first connection terminal 110 and the second connection terminal 120 through the first line, or switch the connection between the first connection terminal 110 and the second connection terminal 120 through the first connection according to the charging protocol type supported by the device to be charged. Two line connection.

第一连接端110和第二连接端120之间通过第一线路和第二线路电连接,第一线路和第二线路通过设置在第一连接端110的芯片111判断待充电设备,例如,手机所支持的充电协议类型,根据不同的协议类型,通过切换单元140在第一线路和第二线路之间进行切换。通过一个充电器可以根据连接的被充电设备的接口类型自动判断充电协议类型,并且根据各种充电协议自动切换符合充电协议的充电电路,无需用户对不同的被充电设备分别准备充电器,The first connection end 110 and the second connection end 120 are electrically connected through the first line and the second line, and the first line and the second line determine the device to be charged through the chip 111 arranged at the first connection end 110, for example, a mobile phone The supported charging protocol type is switched between the first line and the second line through the switching unit 140 according to different protocol types. A charger can automatically determine the charging protocol type according to the interface type of the connected charged device, and automatically switch the charging circuit that conforms to the charging protocol according to various charging protocols, without the need for the user to prepare chargers for different charged devices separately.

在一个实施例中,第一连接端和第二连接端各自包括第一数据线引脚、第二数据线引脚、地线引脚、CC引脚和VBUS线引脚。In one embodiment, the first connection end and the second connection end each include a first data line pin, a second data line pin, a ground line pin, a CC pin and a VBUS line pin.

第一线路包括:第一数据线133、第二数据线132、地线131和CC线路134。第一数据线133电连接第一连接端110的第一数据线引脚和第二连接端120的第一数据线引脚。第二数据线132电连接第一连接端110的第二数据线引脚和第二连接端120的第二数据线引脚。地线131电连接第一连接端110的地线引脚和第二连接端120的地线引脚。CC线路134电连接第一连接端110的CC引脚和第二连接端20的CC引脚。The first lines include: a first data line 133 , a second data line 132 , a ground line 131 and a CC line 134 . The first data line 133 is electrically connected to the first data line pin of the first connection end 110 and the first data line pin of the second connection end 120 . The second data line 132 is electrically connected to the second data line pin of the first connection end 110 and the second data line pin of the second connection end 120 . The ground wire 131 is electrically connected to the ground wire pin of the first connection end 110 and the ground wire pin of the second connection end 120 . The CC line 134 is electrically connected to the CC pin of the first connection end 110 and the CC pin of the second connection end 20 .

第二线路包括第二数据线132、地线131、CC线路134和VBUS线135。VBUS线135电连接第一连接端110的VBUS线引脚和第二连接端120的VBUS引脚。The second lines include a second data line 132 , a ground line 131 , a CC line 134 and a VBUS line 135 . The VBUS line 135 is electrically connected to the VBUS line pin of the first connection end 110 and the VBUS pin of the second connection end 120 .

当待充电设备支持第一种充电协议类型进行充电时,可通过本公开提供的充电线的第一线路的四条线,即,第一数据线133、第二数据线132、地线131和CC线路134连通第一连接端110和第二连接端120,以使用第一种充电协议对待充电设备进行充电。当待充电设备支持第二种充电协议类型进行充电时,在上述第一线路的基础上,通过该充电线内置的切换单元,切换VBUS线135替换该第一线路中的第一数据线133,以使用第二线路对应的第二种充电协议对待充电设备进行充电。When the device to be charged supports the first type of charging protocol for charging, the four lines of the first line of the charging line provided by the present disclosure, that is, the first data line 133, the second data line 132, the ground line 131 and CC The line 134 communicates with the first connection end 110 and the second connection end 120 to charge the device to be charged using the first charging protocol. When the device to be charged supports the second charging protocol type for charging, on the basis of the above-mentioned first line, through the switching unit built in the charging line, switch the VBUS line 135 to replace the first data line 133 in the first line, The device to be charged is charged with the second charging protocol corresponding to the second line.

图3是示出根据本公开的示例性实施例的应用于手机的充电线电路的示意图。FIG. 3 is a schematic diagram illustrating a charging line circuit applied to a mobile phone according to an exemplary embodiment of the present disclosure.

上述结构的充电线将符合多个充电协议的多个电路设置在同一个充电线中,以PD协议和QC协议为例,参照图3,例如,在手机充电器中,对于符合QC协议和DCP协议的充电器通过第一数据线133(D+线路)和第二数据线132(D-线路)、地线131(GND线路)和配置通道线路134(CC线路)即可实现充电。例如,早期的USB充电器具有四个引脚,分别连接D+、D-、GND和CC线路。The charging line with the above structure sets multiple circuits conforming to multiple charging protocols in the same charging line. Taking the PD protocol and the QC protocol as an example, refer to Figure 3. For example, in a mobile phone charger, for compliance with the QC protocol and DCP The protocol charger can realize charging through the first data line 133 (D+ line), the second data line 132 (D- line), the ground line 131 (GND line) and the configuration channel line 134 (CC line). For example, early USB chargers had four pins connected to the D+, D-, GND, and CC lines.

对于符合PD协议的充电器通过第二数据线132(D-线路)、地线131(GND线路)、配置通道线路134和VBUS线路135(电源线路)可实现充电。因此,对于符合PD协议的USB充电器也具有四个引脚,分别连接D-、GND、CC和VBUS线路。For a charger conforming to the PD protocol, charging can be realized through the second data line 132 (D-line), ground line 131 (GND line), configuration channel line 134 and VBUS line 135 (power line). Therefore, a USB charger that conforms to the PD protocol also has four pins, which are connected to the D-, GND, CC and VBUS lines respectively.

当然,本申请实施例中并不限定于PD协议和QC协议,PD协议和DCP协议等等均适用本申请所提出的方案。Certainly, the embodiments of the present application are not limited to the PD protocol and the QC protocol, and the solutions proposed in the present application are applicable to the PD protocol and the DCP protocol.

在一个实施例中,开关切换单元140中包括第一开关141和上拉电阻142。第一开关141包含公共触点、第一触点和第二触点,第一开关141在第一触点和第二触点之间切换;上拉电阻142电连接于第一触点和VBUS线135之间;公共触点与第一连接端110的第一数据线引脚连通,第二触点与第二连接端120的第一数据线引脚连通,第一触点与上拉电阻142连通。In one embodiment, the switching unit 140 includes a first switch 141 and a pull-up resistor 142 . The first switch 141 includes a common contact, a first contact and a second contact, and the first switch 141 switches between the first contact and the second contact; the pull-up resistor 142 is electrically connected to the first contact and VBUS Between lines 135; the common contact communicates with the first data line pin of the first connection end 110, the second contact communicates with the first data line pin of the second connection end 120, and the first contact communicates with the pull-up resistor 142 connected.

通过第一开关141实现电路的切换,通过上拉电阻142与VBUS线135电连接实现电平的升高。上拉电阻142可以将不确定的信号钳位在高电平,为集电极开路输出型电路输出电流通道。通过上拉电阻142对VBUS线135进行PD充电协议的信息配置。在本实施例中,采用的上拉电阻值为56KΩ。The switching of the circuit is realized through the first switch 141 , and the voltage level is increased through the electrical connection with the VBUS line 135 through the pull-up resistor 142 . The pull-up resistor 142 can clamp uncertain signals at a high level, and is an output current channel for an open-collector output circuit. The information configuration of the PD charging protocol is performed on the VBUS line 135 through the pull-up resistor 142 . In this embodiment, the value of the pull-up resistor used is 56KΩ.

第一数据线引脚、第一开关141、第一数据线133以及第二连接端120第一数据线引脚依次串联连接形成第一线路,即,符合QC协议的充电电路。The first data line pin, the first switch 141 , the first data line 133 and the first data line pin of the second connection terminal 120 are sequentially connected in series to form a first circuit, that is, a charging circuit conforming to the QC protocol.

第一连接端110第一数据线引脚、第一开关141、上拉电阻142、VBUS线135、第一连接端110的VBUS线引脚依次串联连接形成第二线路,即,符合PD协议的充电电路。The first data line pin of the first connection end 110, the first switch 141, the pull-up resistor 142, the VBUS line 135, and the VBUS line pin of the first connection end 110 are sequentially connected in series to form a second line, that is, conforming to the PD protocol charging circuit.

在一个实施例中,第二线路中还包括第二开关112,第二开关112用于控制VBUS线135的连通或断开。In one embodiment, the second circuit further includes a second switch 112 for controlling the connection or disconnection of the VBUS line 135 .

当第一开关141的公共触点与第一触点断开,且与第二触点连通,以及第一连接端110与第二连接端120之间的CC线134处于连通状态,此时第一线路连通,可以对符合QC协议的待充电设备进行充电,充电设备端的接口应该为具有四个引脚,即,地线引脚、第一数据线引脚、第二数据线引脚和CC线路引脚的充电接口,因此充电线的VBUS线135与充电设备之间没有电流,VBUS线135连通不会影响充电设备的充电,但是,为了确保充电过程中不会出现意外情况,导致事故的发生,通过第一连接端110的控制单元111控制第二开关112断开,彻底将VBUS线135断路。在一个实施例中,VBUS线135的电压为5V。When the common contact of the first switch 141 is disconnected from the first contact and communicated with the second contact, and the CC line 134 between the first connection end 110 and the second connection end 120 is in a connection state, the second One line is connected, and the device to be charged that conforms to the QC protocol can be charged. The interface of the charging device should have four pins, namely, the ground pin, the first data line pin, the second data line pin and CC The charging interface of the line pin, so there is no current between the VBUS line 135 of the charging line and the charging device, and the connection of the VBUS line 135 will not affect the charging of the charging device. However, in order to ensure that no accidents occur during the charging process, resulting in accidents occurs, the control unit 111 of the first connection terminal 110 controls the second switch 112 to be turned off, and the VBUS line 135 is completely disconnected. In one embodiment, the voltage on the VBUS line 135 is 5V.

VBUS线是HOST/HUB向USB设备供电的电源线,即平常USB设备的+5V。The VBUS line is the power line for the HOST/HUB to supply power to the USB device, that is, the +5V of the normal USB device.

当第一开关141的公共触点与第一触点连通,且与第二触点断开,以及第一连接端110与第二连接端120之间的VBUS线135处于连通状态,此时第二线路连通,可以对符合PD协议的待充电设备进行充电。When the common contact of the first switch 141 is connected to the first contact and disconnected from the second contact, and the VBUS line 135 between the first connection end 110 and the second connection end 120 is in the connection state, the second The two lines are connected, and the device to be charged that conforms to the PD protocol can be charged.

在一个实施例中,第一连接端110为A型口的USB接口;第二连接端120为C型口的USB接口。In one embodiment, the first connection end 110 is a USB interface of type A port; the second connection end 120 is a USB interface of type C port.

如上,第一连接端110为具有5个引脚的A型口的USB接口。在本实施例中,第二连接端120为Type-C的USB接口。As mentioned above, the first connection end 110 is a USB interface with an A-type port having 5 pins. In this embodiment, the second connection end 120 is a Type-C USB interface.

在一个实施例中,充电线100还包括控制单元111;控制单元111设置于第一连接端110,用于检测待充电设备所支持的充电协议类型,以及用于控制切换单元140和/或第二开关112的切换。In one embodiment, the charging line 100 further includes a control unit 111; the control unit 111 is disposed at the first connection end 110, and is used to detect the charging protocol type supported by the device to be charged, and to control the switching unit 140 and/or the second Switching of the second switch 112 .

当然,控制单元111除了设置在充电线内部,还可以设置在与充电线配套使用的充电器内部,针对控制单元111不设置在充电线内部而设置在充电器内部的场景,本公开实施例还提供一种充电器,包括用于检测待充电设备所支持的充电协议类型的控制单元111,该控制单元111,主要用于根据充电协议类型的检测结果,控制充电线100的切换单元140和/或第二开关112的切换。Of course, the control unit 111 can also be set inside the charger used with the charging line in addition to being set inside the charging line. For the scene where the control unit 111 is set inside the charger instead of the charging line, the embodiment of the present disclosure also A charger is provided, including a control unit 111 for detecting the charging protocol type supported by the device to be charged, the control unit 111 is mainly used to control the switching unit 140 and/or the charging line 100 according to the detection result of the charging protocol type Or switching of the second switch 112 .

图4是示出根据本公开的示例性实施例的充电方法的流程图。FIG. 4 is a flowchart illustrating a charging method according to an exemplary embodiment of the present disclosure.

根据本公开实施例的另一方面,提供一种充电控制方法,参照图4,应用于前述一种充电线,或,前述一种充电线与前述一种充电器配合使用的场景,包括:According to another aspect of the embodiments of the present disclosure, there is provided a charging control method, referring to FIG. 4 , which is applied to the aforementioned charging line, or the scene where the aforementioned charging line is used in conjunction with the aforementioned charger, including:

在步骤S100中,在充电线连接充电器并连接待充电设备时,检测待充电设备所支持的充电协议类型。In step S100, when the charging cable is connected to the charger and connected to the device to be charged, the charging protocol type supported by the device to be charged is detected.

在步骤S200中,在充电协议类型为第一充电协议类型时,通过切换单元切换至第一线路电连接第一连接端和第二连接端,并对待充电设备进行充电。In step S200, when the charging protocol type is the first charging protocol type, switch to the first line to electrically connect the first connection end and the second connection end through the switching unit, and charge the device to be charged.

在步骤S300中,在充电协议类型为第二充电协议类型时,通过切换单元切换至第二线路电连接第一连接端和第二连接端,并对待充电设备进行充电。In step S300, when the charging protocol type is the second charging protocol type, switch to the second line to electrically connect the first connection end and the second connection end through the switching unit, and charge the device to be charged.

在一个实施例中,判断待充电设备所支持的充电协议类型,包括:In one embodiment, determining the charging protocol type supported by the device to be charged includes:

在确定第一连接端的第一数据线引脚、开关、VBUS线、第一连接端VBUS线引脚之间未形成回路时,判定待充电设备支持第一充电协议类型;When it is determined that no loop is formed between the first data line pin of the first connection end, the switch, the VBUS line, and the VBUS line pin of the first connection end, it is determined that the device to be charged supports the first charging protocol type;

在确定第一连接端的第一数据线引脚、开关、VBUS线、第一连接端VBUS线引脚之间形成回路时,判定待充电设备支持第二充电协议类型。When it is determined that a loop is formed between the first data line pin of the first connection end, the switch, the VBUS line, and the VBUS line pin of the first connection end, it is determined that the device to be charged supports the second charging protocol type.

当本公开所提供的充电线的第一连接端连接充电器,第二连接端连接待充电设备,例如,该待充电设备为手机时,通过第一连接端的控制单元判断接入第二连接端的手机所支持的充电协议类型,当充电线插入充电器时,充电器内部具有电流源,控制单元判断出该手机支持PD协议,第一开关和第一连接端内部的电流源形成回路,第一开关连接56KΩ的上拉电阻。第一连接端的CC引脚发出指令,与第二连接端进行通信,实现PD协议。When the first connection end of the charging line provided by the present disclosure is connected to the charger, and the second connection end is connected to the device to be charged, for example, when the device to be charged is a mobile phone, the control unit of the first connection end determines the connection to the second connection end. The type of charging protocol supported by the mobile phone. When the charging cable is inserted into the charger, there is a current source inside the charger. The control unit judges that the mobile phone supports the PD protocol. The first switch and the current source inside the first connection end form a loop. The switch is connected to a 56KΩ pull-up resistor. The CC pin of the first connection terminal issues commands to communicate with the second connection terminal to implement the PD protocol.

在本实施例中,第一开关连接上拉电阻为默认状态,即,在默认状态下,本公开的充电器适用于符合PD协议的充电器,连通第二线路。In this embodiment, the default state is that the first switch is connected to the pull-up resistor, that is, in the default state, the charger of the present disclosure is suitable for a charger conforming to the PD protocol, and is connected to the second line.

在一个实施例中,通过切换单元切换至第一线路电连接第一连接端和第二连接端,包括:控制第一开关断开与上拉电阻之间的连接,并控制第一开关与第一数据线以及第二连接端第一数据线引脚连接。In one embodiment, switching the first line to electrically connect the first connection terminal and the second connection terminal through the switching unit includes: controlling the first switch to disconnect the connection with the pull-up resistor, and controlling the connection between the first switch and the second connection terminal. A data line and the second connection end are connected to the pins of the first data line.

当充电线插入充电器时,控制单元判断出该手机支持QC协议或DCP协议,控制单元断开第二开关,并且第一开关断开与上拉电阻的连接,连接第一连接端的D+端子和第二连接端的D+端子,连通D+线路。通过第一线路对第二连接端的手机进行充电。When the charging line is inserted into the charger, the control unit judges that the mobile phone supports the QC protocol or the DCP protocol, the control unit disconnects the second switch, and the first switch disconnects the connection with the pull-up resistor, and connects the D+ terminal of the first connection end and The D+ terminal at the second connection end is connected to the D+ line. The mobile phone at the second connection end is charged through the first line.

在一个实施例中,方法还包括:在通过切换单元切换至第一线路电连接第一连接端和第二连接端时,断开第二开关。In one embodiment, the method further includes: when the switching unit switches to the first line to electrically connect the first connection end and the second connection end, turning off the second switch.

第一线路连通,可以对符合QC协议的充电设备进行充电,充电设备端的接口应该为具有四个引脚,即,地线引脚、第一数据线引脚、第二数据线引脚和CC线路引脚的充电接口,因此充电线的VBUS线与充电设备之间没有电流,VBUS线连通不会影响充电设备的充电,但是,为了确保充电过程中不会出现意外情况,导致事故的发生,通过第一连接端的控制单元控制第二开关断开,彻底将VBUS线断路。The first line is connected, and the charging device that conforms to the QC protocol can be charged. The interface of the charging device should have four pins, namely, the ground pin, the first data line pin, the second data line pin and CC The charging interface of the line pin, so there is no current between the VBUS line of the charging line and the charging device, and the connection of the VBUS line will not affect the charging of the charging device. However, in order to ensure that there will be no accidents during the charging process, resulting in accidents, The second switch is controlled to be turned off by the control unit at the first connection end, and the VBUS line is completely disconnected.

在一个实施例中,所述充电协议类型为以下任意两种组合:功率传输协议、快充协议、数字通信协议。In one embodiment, the charging protocol type is a combination of any two of the following: power transmission protocol, fast charging protocol, and digital communication protocol.

现在常用的充电协议为功率传输协议(PD协议),和快充协议(QC协议),最新技术为PD协议,因此,如上,本公开的充电线的默认状态为第二线路连通的状态。除此之外,很多用户还保留着符合更旧的充电技术的设备,即,数字通信协议(DCP),符合DCP协议的设备的电路与QC协议的设备的电路相同,因此,可以利用第一线路进行充电即可。Currently commonly used charging protocols are power transmission protocol (PD protocol) and fast charging protocol (QC protocol), and the latest technology is PD protocol. Therefore, as above, the default state of the charging line of the present disclosure is the state of the second line connected. In addition, many users still keep devices that conform to the older charging technology, that is, Digital Communication Protocol (DCP). The circuit of the device conforming to the DCP protocol is the same as that of the device using the QC protocol. Therefore, the first charging technology can be used. The line can be charged.

如上,本公开的充电线的默认状态为符合PD协议的第二线路连通的状态,因此,控制单元的判断策略的优先级为,PD协议优先,QC协议其次,最后是DCP协议,有效地保证了充电的可靠性。As above, the default state of the charging line of the present disclosure is the state of the second line connected to the PD protocol. Therefore, the priority of the judgment strategy of the control unit is that the PD protocol is first, the QC protocol is second, and the last is the DCP protocol, effectively ensuring charging reliability.

图5是示出根据本公开的示例性实施例的充电装置的结构框图。FIG. 5 is a structural block diagram illustrating a charging device according to an exemplary embodiment of the present disclosure.

根据本公开实施例的另一方面,提供一种充电装置200,参照图5,充电装置包括:检测单元210,用于在充电线连接充电器并连接待充电设备时,检测待充电设备所支持的充电协议类型;执行单元220,用于在充电协议类型为第一充电协议类型时,通过切换单元切换至第一线路电连接第一连接端和第二连接端,并对待充电设备进行充电;且,用于在充电协议类型为第二充电协议类型时,通过切换单元切换至第二线路电连接第一连接端和第二连接端,并对待充电设备进行充电。According to another aspect of the embodiments of the present disclosure, a charging device 200 is provided. Referring to FIG. 5 , the charging device includes: a detection unit 210, configured to detect the charging device supported by the device to be charged when the charging cable is connected to the charger and connected to the device to be charged. The charging protocol type; the execution unit 220 is used to switch to the first line to electrically connect the first connection terminal and the second connection terminal through the switching unit when the charging protocol type is the first charging protocol type, and charge the device to be charged; And, when the charging protocol type is the second charging protocol type, switch to the second line to electrically connect the first connection end and the second connection end through the switching unit, and charge the device to be charged.

根据本公开实施例的另一方面,提供一种非临时性计算机可读存储介质,非临时性计算机可读存储介质存储有计算机可执行指令,计算机可执行指令在由处理器执行时,执行上述第三方面或第三方面任意一项实施例的方法。According to another aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided. The non-transitory computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by a processor, the above-mentioned The third aspect or the method of any one embodiment of the third aspect.

图6是示出根据本公开的第六示例性实施例的一种用于终端的投屏方法和终端的投屏装置的装置600的框图。例如,装置600可以被提供为一服务器。参照图6,装置600包括处理组件622,其进一步包括一个或多个处理器,以及由存储器632所代表的存储器资源,用于存储可由处理组件622的执行的指令,例如应用程序。存储器632中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件622被配置为执行指令,以执行上述的终端的投屏方法。Fig. 6 is a block diagram showing an apparatus 600 for a method for projecting a screen of a terminal and an apparatus for projecting a screen of a terminal according to a sixth exemplary embodiment of the present disclosure. For example, the apparatus 600 may be provided as a server. Referring to FIG. 6 , apparatus 600 includes processing component 622 , which further includes one or more processors, and a memory resource represented by memory 632 for storing instructions executable by processing component 622 , such as application programs. The application program stored in memory 632 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 622 is configured to execute instructions, so as to execute the above-mentioned method for projecting a screen of a terminal.

装置600还可以包括一个电源组件626被配置为执行装置600的电源管理,一个有线或无线网络接口650被配置为将装置600连接到网络,和一个输入输出(I/O)接口658。装置600可以操作基于存储在存储器632的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。Device 600 may also include a power component 626 configured to perform power management of device 600 , a wired or wireless network interface 650 configured to connect device 600 to a network, and an input-output (I/O) interface 658 . The apparatus 600 may operate based on an operating system stored in the memory 632, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present invention, these modifications, uses or adaptations follow the general principles of the present invention and include common knowledge or conventional technical means in the technical field not disclosed in this disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the invention being indicated by the following claims.

应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It should be understood that the present invention is not limited to the precise constructions which have been described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (8)

1. The utility model provides a charging wire, its characterized in that includes first link, second link, first circuit, second circuit and switching unit, wherein:
the first connecting end is used for connecting a charger;
the second connecting end is used for connecting the equipment to be charged;
the first circuit comprises a first data line, a second data line, a ground line and a CC circuit and is used for charging the equipment to be charged which supports the first charging protocol type;
the second line comprises the second data line, the ground line, the CC line and the VBUS line and is used for charging equipment to be charged which supports a second charging protocol type;
a switching unit including a first switch and a pull-up resistor, configured to switch the first connection end to be connected to the second connection end through the first line or switch the first connection end to be connected to the second connection end through the second line according to a charging protocol type supported by the device to be charged,
the first connecting end and the second connecting end respectively comprise a first data line pin, a second data line pin, a ground wire pin, a configuration channel CC pin and a power supply VBUS wire pin;
the first switch includes a common contact, a first contact, and a second contact, the first switch switching between the first contact and the second contact;
the pull-up resistor is electrically connected between the first contact and the VBUS line;
the common contact is communicated with a first data line pin of the first connecting end, the second contact is communicated with a first data line pin of the second connecting end, and the first contact is communicated with the pull-up resistor;
the first data line is electrically connected with a first data line pin of the first connecting end and a first data line pin of the second connecting end;
the second data line is electrically connected with a second data line pin of the first connecting end and a second data line pin of the second connecting end;
the ground wire is electrically connected with the ground wire pin of the first connecting end and the ground wire pin of the second connecting end;
the CC circuit is electrically connected with the CC pin of the first connecting end and the CC pin of the second connecting end;
the VBUS wire is electrically connected with the VBUS wire pin of the first connecting end and the VBUS pin of the second connecting end;
the second line also comprises a second switch which is used for controlling the connection or disconnection of the VBUS line.
2. The charging cord according to claim 1,
the first connecting end is a USB interface of an A-shaped port;
the second connecting end is a USB interface of a C-shaped port.
3. The charging cord according to claim 1 or 2, characterized in that the charging cord further comprises a control unit;
the control unit is arranged at the first connection end and used for detecting the type of the charging protocol supported by the equipment to be charged and controlling the switching of the switching unit and/or the second switch.
4. A charger used with the charging cord according to any one of claims 1 to 3, comprising a control unit for detecting the type of charging protocol supported by the device to be charged;
the control unit is used for controlling the switching of the switching unit and/or the second switch of the charging line according to the detection result of the type of the charging protocol.
5. A charging control method is characterized in that the charging wire is applied to any one of claims 1 to 3, or the charging wire of any one of claims 1 to 3 is used together with the charger of claim 4, and comprises the following steps:
when the charging wire is connected with a charger and is connected with equipment to be charged, and a loop is not formed among a first data line pin of a first connecting end, a first switch, a VBUS line and a VBUS line pin of the first connecting end, judging that the equipment to be charged supports a first charging protocol type; when a loop is formed among a first data line pin of the first connection end, the first switch, the VBUS line and a VBUS line pin of the first connection end, determining that the equipment to be charged supports a second charging protocol type;
when the charging protocol type is a first charging protocol type, switching to a first line to electrically connect the first connection end and the second connection end through the switching unit, controlling the first switch to be disconnected from the pull-up resistor, controlling the first switch to be connected with the first data line and the first data line pin of the second connection end, and charging the device to be charged;
when the charging protocol type is a second charging protocol type, the switching unit is switched to a second line to be electrically connected with the first connecting end and the second connecting end, the second switch is disconnected, and the equipment to be charged is charged.
6. The charge control method according to claim 5, wherein the charging protocol type is any two of the following combinations:
power transmission protocol, fast charging protocol, digital communication protocol.
7. A charging device, characterized in that, when applied to the charging wire of any one of claims 1-3, the charging wire comprises a first connection end, a second connection end, a first line, a second line and a switching unit, the charging device comprises:
the detection unit is used for judging that the equipment to be charged supports a first charging protocol type when a first data line pin of a first connection end, a first switch, a VBUS line and a first connection end VBUS line pin do not form a loop when the charging line is connected with a charger and connected with the equipment to be charged; when a loop is formed among a first data line pin of the first connection end, the first switch, the VBUS line and a VBUS line pin of the first connection end, the device to be charged is judged to support a second charging protocol type;
the execution unit is used for switching to a first circuit to be electrically connected with the first connecting end and the second connecting end through the switching unit when the charging protocol type is a first charging protocol type, controlling the first switch to be disconnected with the pull-up resistor, controlling the first switch to be connected with the first data line and the second connecting end and the first data line pin, and charging the equipment to be charged; and the number of the first and second groups is,
and when the charging protocol type is a second charging protocol type, the switching unit is used for switching to a second line to electrically connect the first connecting end and the second connecting end, disconnecting the second switch and charging the equipment to be charged.
8. A non-transitory computer-readable storage medium storing computer-executable instructions that, when executed by a processor, perform the charge control method of any one of claims 5 to 6.
CN201911143707.7A 2019-11-20 2019-11-20 Charging cable, charger, charging control method and charging device Active CN112825401B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911143707.7A CN112825401B (en) 2019-11-20 2019-11-20 Charging cable, charger, charging control method and charging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911143707.7A CN112825401B (en) 2019-11-20 2019-11-20 Charging cable, charger, charging control method and charging device

Publications (2)

Publication Number Publication Date
CN112825401A CN112825401A (en) 2021-05-21
CN112825401B true CN112825401B (en) 2022-12-02

Family

ID=75906369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911143707.7A Active CN112825401B (en) 2019-11-20 2019-11-20 Charging cable, charger, charging control method and charging device

Country Status (1)

Country Link
CN (1) CN112825401B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI811058B (en) * 2022-08-12 2023-08-01 華碩電腦股份有限公司 Electronic device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204680875U (en) * 2015-06-24 2015-09-30 东莞林发电子有限公司 Quick charge data wire
CN204992152U (en) * 2015-07-25 2016-01-20 赵振涛 Quick charger data line
CN105429245B (en) * 2015-12-28 2018-09-14 魅族科技(中国)有限公司 A kind of charge control method and battery charge controller
CN105870988A (en) * 2015-12-31 2016-08-17 乐视移动智能信息技术(北京)有限公司 Charger
CN106230061A (en) * 2016-08-29 2016-12-14 北京小米移动软件有限公司 Charging method and charger
CN106329630B (en) * 2016-08-31 2019-06-11 宇龙计算机通信科技(深圳)有限公司 A kind of charging method and device
CN106329627A (en) * 2016-08-31 2017-01-11 宇龙计算机通信科技(深圳)有限公司 Charging method and device
CN107508330A (en) * 2017-07-05 2017-12-22 深圳天珑无线科技有限公司 A kind of electronic installation and its charging method

Also Published As

Publication number Publication date
CN112825401A (en) 2021-05-21

Similar Documents

Publication Publication Date Title
US11088552B2 (en) Charging method, terminal, and charging adapter
US9356460B2 (en) Method and apparatus of fast battery charging with universal high power input source
CN114336814B (en) A multi-port charging control circuit, charging chip and power supply equipment
CN104978296B (en) For determining the method and apparatus in the direction of power conveying
KR101933066B1 (en) Charging method, mobile device, charging device and charging system
CN108666826B (en) Adapter, terminal equipment and adapter system
US12316143B2 (en) Terminal device charging method and apparatus, and storage medium
CN103618356B (en) A charging system and charging method for a mobile terminal
US10025351B2 (en) System for controlling peripherals connected to a docking station
JP2002108514A (en) USB automatic charging device and operating method thereof
WO2013152662A1 (en) Power supply method for terminal device, and terminal device thereof
CN104467109B (en) Method for supplying power to electronic equipment and electronic equipment
CN111817097A (en) Charging control method and data cable
CN109254210B (en) Electronic equipment port type detection method and device, detection circuit and electronic equipment
CN105068959A (en) A charging method and device for a terminal and a terminal with a data exchange function
US11977618B2 (en) Electronic device and control method
CN107516919A (en) A charging method and charger
TWI559125B (en) Power bank apparatus and power control method thereof
CN112825401B (en) Charging cable, charger, charging control method and charging device
CN107706977B (en) Method for detecting charging current and charging device
CN106233568B (en) A kind of charging equipment is from ring detection method and device
CN106899061B (en) Mobile terminal, charging device and charging method
CN216530587U (en) Power supply connector for supplying power to master equipment and slave equipment
CN113934661A (en) Electronic equipment, control method, device and medium
CN106230061A (en) Charging method and charger

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant