[go: up one dir, main page]

CN111817384A - Data cables and charging equipment - Google Patents

Data cables and charging equipment Download PDF

Info

Publication number
CN111817384A
CN111817384A CN202010674287.1A CN202010674287A CN111817384A CN 111817384 A CN111817384 A CN 111817384A CN 202010674287 A CN202010674287 A CN 202010674287A CN 111817384 A CN111817384 A CN 111817384A
Authority
CN
China
Prior art keywords
pin
switch
bus controller
charger
interface
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.)
Granted
Application number
CN202010674287.1A
Other languages
Chinese (zh)
Other versions
CN111817384B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010674287.1A priority Critical patent/CN111817384B/en
Publication of CN111817384A publication Critical patent/CN111817384A/en
Application granted granted Critical
Publication of CN111817384B publication Critical patent/CN111817384B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • H02J7/40
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • 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)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application discloses data line and battery charging outfit belongs to communication technology field. Wherein, the data line includes: the device comprises a first Type-A interface, a Type-C interface, a single bus controller and a switch module; the first Type-A interface and the Type-C interface both comprise CC pins, and the CC pins in the first Type-A interface and the Type-C interface are communicated through CC wiring; the switch module is respectively connected with the CC wiring and the single bus controller; when the single bus controller determines that the data line is connected with the matched first charger based on the identification information transmitted on the CC pin, the switch module is communicated with the CC wiring under the control of the single bus controller. According to the embodiment of the application, the data line with the Type-A interface is connected with the matched charger through the CC wiring, so that the PD charging function is supported.

Description

数据线和充电设备Data cables and charging equipment

技术领域technical field

本申请属于通信技术领域,具体涉及一种数据线和充电设备。The present application belongs to the field of communication technologies, and specifically relates to a data cable and a charging device.

背景技术Background technique

随着科技的发展,快速充电的应用越来越广泛。With the development of science and technology, the application of fast charging is becoming more and more extensive.

在相关技术中,通常采用电力输送(Power Delivery,PD)协议进行快速充电,为支持PD协议充电的充电器需要采用CC信号线进行通信,该支持PD协议充电的充电器通常采用第三标准(Type-C)接口,并搭配Type-C to Type-C的数据线。对于采用第一标准(Type-A或者Standard-A)接口的充电器,其通过D+/D-信号线进行通信,不能够支持PD协议充电,从而使得具有Type-A接口的数据线不支持PD充电。In the related art, the Power Delivery (PD) protocol is usually used for fast charging, and the charger supporting the PD protocol charging needs to use the CC signal line for communication, and the charger supporting the PD protocol charging usually adopts the third standard ( Type-C) interface with a Type-C to Type-C data cable. For the charger using the first standard (Type-A or Standard-A) interface, it communicates through the D+/D- signal line and cannot support PD protocol charging, so that the data line with the Type-A interface does not support PD Charge.

发明内容SUMMARY OF THE INVENTION

本申请实施例的目的是提供一种数据线和充电设备,能够解决具有Type-A接口的数据线不支持PD充电的问题。The purpose of the embodiments of the present application is to provide a data cable and a charging device, which can solve the problem that a data cable with a Type-A interface does not support PD charging.

为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:

第一方面,本申请实施例提供了一种数据线,包括:第一Type-A接口、Type-C接口、单总线控制器和开关模组;In a first aspect, an embodiment of the present application provides a data cable, including: a first Type-A interface, a Type-C interface, a single-bus controller, and a switch module;

所述第一Type-A接口和所述Type-C接口均包括D+引脚、D-引脚、VBUS引脚和GND引脚,且所述第一Type-A接口和所述Type-C接口中的D+引脚、D-引脚、VBUS引脚和GND引脚一一对应连接,所述第一Type-A接口还包括第一CC引脚,所述Type-C接口还包括第二CC引脚;The first Type-A interface and the Type-C interface both include D+ pins, D- pins, VBUS pins and GND pins, and the first Type-A interface and the Type-C interface The D+ pins, D- pins, VBUS pins and GND pins are connected in one-to-one correspondence, the first Type-A interface also includes a first CC pin, and the Type-C interface also includes a second CC pin pin;

所述开关模组与所述第一CC引脚、所述单总线控制器以及所述第二CC引脚连接;the switch module is connected to the first CC pin, the single bus controller and the second CC pin;

在所述数据线与充电器连接时,若所述充电器为第一充电器,所述开关模组在所述单总线控制器的控制下连通所述第一CC引脚与所述第二CC引脚,且断开所述第一CC引脚与所述单总线控制器;若所述充电器为第二充电器,所述开关模组在所述单总线控制器的控制下连通所述第一CC引脚与所述单总线控制器,且断开所述第一CC引脚与所述第二CC引脚;When the data cable is connected to the charger, if the charger is the first charger, the switch module connects the first CC pin and the second charger under the control of the single-bus controller. CC pin, and disconnect the first CC pin from the single-bus controller; if the charger is the second charger, the switch module is connected to the single-bus controller under the control of the The first CC pin and the single bus controller are disconnected, and the first CC pin and the second CC pin are disconnected;

其中,所述单总线控制器在与所述第一CC引脚连通时,所述单总线控制器基于经所述第一CC引脚传输的识别信息,确定所述充电器与所述数据线匹配时,所述充电器为所述第一充电器;所述单总线控制器基于经所述第一CC引脚传输的识别信息,确定所述充电器与所述数据线不匹配时,所述充电器为所述第二充电器。Wherein, when the single-bus controller is connected to the first CC pin, the single-bus controller determines the charger and the data line based on the identification information transmitted through the first CC pin When matching, the charger is the first charger; based on the identification information transmitted by the first CC pin, the single-bus controller determines that the charger does not match the data line, the The charger is the second charger.

第二方面,本申请实施例提供了一种充电设备,包括:充电器和与所述充电器连接的数据线,所述数据线为第一方面所述数据线,所述充电器包括第二Type-A接口、控制单元、切换单元、PD充电处理单元和非PD充电处理单元,且所述第二Type-A接口包括第四CC引脚、D+引脚、D-引脚、VBUS引脚和GND引脚,所述第四CC引脚与所述第一CC引脚连接,且所述第二Type-A接口和所述数据线的第一Type-A接口中的D+引脚、D-引脚、VBUS引脚和GND引脚一一对应连接;In a second aspect, an embodiment of the present application provides a charging device, including: a charger and a data cable connected to the charger, where the data cable is the data cable of the first aspect, and the charger includes a second Type-A interface, control unit, switching unit, PD charging processing unit and non-PD charging processing unit, and the second Type-A interface includes a fourth CC pin, D+ pin, D- pin, and VBUS pin and GND pin, the fourth CC pin is connected with the first CC pin, and the D+ pin, D in the second Type-A interface and the first Type-A interface of the data line -The pins, VBUS pins and GND pins are connected one by one;

所述切换单元与所述控制单元、所述PD充电处理单元以及所述第四CC引脚连接,所述第二Type-A接口中的D+引脚以及D-引脚与所述非PD充电处理单元连接;The switching unit is connected to the control unit, the PD charging processing unit and the fourth CC pin, and the D+ pin and the D- pin in the second Type-A interface are connected to the non-PD charging processing unit connection;

在所述控制单元基于所述第四CC引脚传输的识别信息确定所述充电器与所述数据线匹配时,所述单总线控制器控制所述开关模组连通所述第一CC引脚与所述第二CC引脚,且断开所述第一CC引脚与所述单总线控制器,且所述控制单元还控制所述切换单元断开所述控制单元与所述第四CC引脚,且连通所述第四CC引脚与所述PD充电处理单元,以使所述PD充电处理单元基于经所述第四CC引脚传输的CC信号对待充电设备进行PD充电,或者使所述非PD充电处理单元基于经所述D+引脚和所述D-引脚传输的通信信号对待充电设备进行非PD充电。When the control unit determines that the charger matches the data line based on the identification information transmitted by the fourth CC pin, the single bus controller controls the switch module to connect the first CC pin and the second CC pin, and disconnect the first CC pin and the single-bus controller, and the control unit also controls the switching unit to disconnect the control unit and the fourth CC pin, and connect the fourth CC pin with the PD charging processing unit, so that the PD charging processing unit performs PD charging on the device to be charged based on the CC signal transmitted through the fourth CC pin, or makes The non-PD charging processing unit performs non-PD charging on the device to be charged based on the communication signal transmitted through the D+ pin and the D- pin.

本申请实施例提供的数据线,包括第一Type-A接口、单总线控制器和开关模组,其中,单总线控制器能够根据第一CC引脚上传输的识别信息确定数据线连接的充电器是否为相互匹配的第一充电器,并在确定所述数据线与所述第一充电器连接时,控制开关模组将第一CC引脚与第二CC引脚连通,即连通所述数据线内的CC走线,从而能够经该CC走线传输PD充电信号,以实现PD充电功能。The data cable provided by the embodiment of the present application includes a first Type-A interface, a single-bus controller, and a switch module, wherein the single-bus controller can determine the charging connected to the data cable according to the identification information transmitted on the first CC pin whether the chargers are the first chargers that match each other, and when it is determined that the data line is connected to the first charger, the switch module is controlled to connect the first CC pin with the second CC pin, that is, to connect the The CC line in the data line can transmit the PD charging signal through the CC line, so as to realize the PD charging function.

附图说明Description of drawings

图1是本申请实施例提供的一种充电设备的电路图;1 is a circuit diagram of a charging device provided by an embodiment of the present application;

图2是本申请实施例提供的一种充电器的电路图;2 is a circuit diagram of a charger provided by an embodiment of the present application;

图3是本申请实施例提供的一种数据线的电路图;3 is a circuit diagram of a data line provided by an embodiment of the present application;

图4是本申请实施例提供的另一种数据线的电路图;4 is a circuit diagram of another data line provided by an embodiment of the present application;

图5是本申请实施例提供的数据线中的Type-A接口的引脚示意图;5 is a schematic diagram of pins of a Type-A interface in a data line provided by an embodiment of the present application;

图6是本申请实施例提供的充电器中的Type-A接口的引脚示意图;6 is a schematic diagram of pins of a Type-A interface in a charger provided by an embodiment of the present application;

图7是本申请实施例提供的充电设备的工作流程图之一;FIG. 7 is one of the working flowcharts of the charging device provided by the embodiment of the present application;

图8是本申请实施例提供的充电设备的工作流程图之二。FIG. 8 is the second working flowchart of the charging device provided by the embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between "first", "second", etc. The objects are usually of one type, and the number of objects is not limited. For example, the first object may be one or more than one. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的数据线和充电设备进行详细地说明。The data cable and the charging device provided by the embodiments of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.

请同时参阅图1、图2和图3,其中,图1是本申请实施例提供的充电设备的电路图;图2是本申请实施例提供的充电器的电路图;图3是本申请实施例提供的数据线的电路图。Please refer to FIGS. 1 , 2 and 3 at the same time, wherein FIG. 1 is a circuit diagram of a charging device provided by an embodiment of the present application; FIG. 2 is a circuit diagram of a charger provided by an embodiment of the present application; FIG. 3 is a circuit diagram provided by an embodiment of the present application circuit diagram of the data line.

本申请实施例提供的的数据线2和充电器1之间通过Type-A接口连接,以构成本申请实施例提供的充电设备。且上述Type-A接口中增加设置了CC引脚,使得数据线2和充电器1之间经过CC信号进行握手匹配。The data cable 2 provided in the embodiment of the present application and the charger 1 are connected through a Type-A interface, so as to constitute the charging device provided in the embodiment of the present application. In addition, the CC pin is added to the above Type-A interface, so that the data line 2 and the charger 1 are handshaked and matched by the CC signal.

本实施方式中,如图3和图4所示数据线中,Type-C接口22与第一Type-A接口21之间通过线缆23连接,且Type-C接口22与第一Type-A接口21中的各引脚和线缆中各走线的连接关系具体为如下表1中所示的连接关系:In this embodiment, in the data cables shown in FIGS. 3 and 4 , the Type-C interface 22 and the first Type-A interface 21 are connected by a cable 23 , and the Type-C interface 22 and the first Type-A interface 22 are connected to each other through a cable 23 . The connection relationship between each pin in the interface 21 and each line in the cable is specifically the connection relationship shown in Table 1 below:

表1Table 1

Figure BDA0002583486700000041
Figure BDA0002583486700000041

本申请实施例提供的数据线2能够在与匹配的充电器1连接且匹配成功时,连通数据线内的CC走线,即将第一CC引脚、第二CC引脚以及第四CC引脚连通,从而基于CC走线传输的PD通信信号,以支持PD充电(或者称之为:PD协议充电)功能。The data line 2 provided in the embodiment of the present application can connect the CC traces in the data line, that is, the first CC pin, the second CC pin, and the fourth CC pin, when it is connected to the matching charger 1 and the matching is successful. Connected, so as to support the PD charging (or called: PD protocol charging) function based on the PD communication signal transmitted by the CC line.

在具体实施中,若本申请实施例提供的充电设备与支持PD充电的待充电设备连接,则PD充电处理单元13经CC走线与待充电设备的充电模块连通,且非PD充电处理单元14也能够经D+走线和D-走线与待充电设备的充电模块连通。In a specific implementation, if the charging device provided by the embodiment of the present application is connected to a device to be charged that supports PD charging, the PD charging processing unit 13 is connected to the charging module of the device to be charged via the CC wiring, and the non-PD charging processing unit 14 It can also be connected to the charging module of the device to be charged via the D+ wiring and the D- wiring.

此时,非PD充电处理单元14能够基于经所述D+走线和所述D-走线传输的通信信号对待充电设备进行非PD充电,且PD充电处理单元13能够经CC走线传输的通信信号对待充电设备进行PD充电,其具体的充电方式可以根据与待充电设备之间的充电协议协商确定,或者按照预设优先级确定。At this time, the non-PD charging processing unit 14 can perform non-PD charging on the device to be charged based on the communication signals transmitted through the D+ wiring and the D- wiring, and the PD charging processing unit 13 can communicate via the CC wiring. The signal performs PD charging on the device to be charged, and the specific charging method can be determined according to the negotiation of the charging protocol with the device to be charged, or determined according to a preset priority.

另外,若本申请实施例提供的充电设备与不支持PD充电的待充电设备连接,则PD充电处理单元13与待充电设备的充电模块之间断开,且非PD充电处理单元14也能够经D+走线和D-走线与待充电设备的充电模块连通,从而经能够使非PD充电处理单元14经D+走线和D-走线传输的通信信号对待充电设备进行非PD充电。In addition, if the charging device provided in the embodiment of the present application is connected to a device to be charged that does not support PD charging, the PD charging processing unit 13 is disconnected from the charging module of the device to be charged, and the non-PD charging processing unit 14 can also be charged via D+ The wiring and the D- wiring are in communication with the charging module of the device to be charged, so that the device to be charged is non-PD charging via the communication signal that enables the non-PD charging processing unit 14 to transmit through the D+ wiring and the D- wiring.

另外,在本申请实施例提供的数据线2与不匹配的充电器连接时,可以断开数据线内的CC走线,从而不支持PD充电通信,此时,使非PD充电处理单元14基于经所述D+引脚和所述D-引脚传输的通信信号对待充电设备进行非PD充电(或者称之为:D+/D-协议充电)。In addition, when the data line 2 provided in the embodiment of the present application is connected to an unmatched charger, the CC wiring in the data line can be disconnected, so that PD charging communication is not supported. At this time, the non-PD charging processing unit 14 is made based on the The communication signal transmitted through the D+ pin and the D- pin performs non-PD charging (or called as: D+/D- protocol charging) for the device to be charged.

其中,本申请实施例提供的充电设备包括本申请实施例提供的数据线2,以及与该数据线2匹配的充电器1。The charging device provided by the embodiment of the present application includes the data cable 2 provided by the embodiment of the present application, and the charger 1 matched with the data cable 2 .

需要说明的是,本申请实施例提供的充电设备支持PD充电功能和非PD充电功能,具体可以根据待充电设备的配置确定连通CC走线还是断开CC走线。It should be noted that the charging device provided in the embodiment of the present application supports the PD charging function and the non-PD charging function. Specifically, it may be determined whether to connect the CC wiring or disconnect the CC wiring according to the configuration of the device to be charged.

具体的,如图1和图2所示,本申请实施例提供的充电器1内包括:第二Type-A接口11、控制单元12、切换单元、PD充电处理单元13和非PD充电处理单元14,且第二Type-A接口11包括第四CC引脚、D+引脚、D-引脚、VBUS引脚和GND引脚,所述第四CC引脚与所述第一CC引脚连接,且第二Type-A接口11和数据线2的第一Type-A接口21中的D+引脚、D-引脚、VBUS引脚和GND引脚一一对应连接;Specifically, as shown in FIGS. 1 and 2 , the charger 1 provided in the embodiment of the present application includes: a second Type-A interface 11 , a control unit 12 , a switching unit, a PD charging processing unit 13 and a non-PD charging processing unit 14, and the second Type-A interface 11 includes a fourth CC pin, a D+ pin, a D- pin, a VBUS pin and a GND pin, the fourth CC pin is connected to the first CC pin , and the D+ pin, D- pin, VBUS pin and GND pin in the second Type-A interface 11 and the first Type-A interface 21 of the data line 2 are connected in one-to-one correspondence;

切换单元与控制单元12、PD充电处理单元13以及第四CC引脚连接,第二Type-A接口11中的D+引脚以及D-引脚与非PD充电处理单元14连接;The switching unit is connected to the control unit 12, the PD charging processing unit 13 and the fourth CC pin, and the D+ pin and the D- pin in the second Type-A interface 11 are connected to the non-PD charging processing unit 14;

在控制单元12基于第四CC引脚传输的识别信息确定充电器1与数据线2匹配时,单总线控制器(也可以称之为:one wire control IC)24控制开关模组连通所述第一CC引脚与CC1引脚(即连通数据线2内的CC走线),且断开所述第一CC引脚与单总线控制器24,且控制单元12还控制切换单元断开控制单元12与第四CC引脚,且连通第四CC引脚与PD充电处理单元13。When the control unit 12 determines that the charger 1 is matched with the data line 2 based on the identification information transmitted by the fourth CC pin, the single bus controller (also referred to as: one wire control IC) 24 controls the switch module to connect the A CC pin and a CC1 pin (ie, the CC wiring in the data line 2 is connected), and the first CC pin and the single-bus controller 24 are disconnected, and the control unit 12 also controls the switching unit to disconnect the control unit 12 and the fourth CC pin, and connect the fourth CC pin with the PD charging processing unit 13 .

在如图2所示充电器1与如图3所示数据线2连接,且数据线2的Type-C借接口22连接待充电设备时,由于该充电设备内的数据线2与充电器1相互匹配,从而连通CC走线。此时,充电器1内的PD充电处理单元13经CC走线向待充电设备发送PD充电协商信号,时可以分为以下两种情况:When the charger 1 is connected to the data line 2 shown in FIG. 3 as shown in FIG. 2 , and the Type-C of the data line 2 is connected to the device to be charged through the interface 22 , since the data line 2 in the charging device is connected to the charger 1 match each other to connect the CC traces. At this time, the PD charging processing unit 13 in the charger 1 sends the PD charging negotiation signal to the device to be charged via the CC line, which can be divided into the following two cases:

情况一Case 1

当待充电设备支持PD充电功能时,待充电设备将经CC走线向PD充电处理单元13反馈PD充电协商信号,此时,充电器1内的控制单元12能够基于PD充电处理单元13接收到反馈PD充电协商信号而控制单总线控制器24使CC走线保持连通,且充电器1内的控制单元12还能够基于该反馈PD充电协商信号保持PD充电处理单元13与CC走线连通,并执行PD充电。When the device to be charged supports the PD charging function, the device to be charged will feed back the PD charging negotiation signal to the PD charging processing unit 13 via the CC line. At this time, the control unit 12 in the charger 1 can receive the PD charging processing unit 13 Feedback the PD charging negotiation signal to control the single-bus controller 24 to keep the CC wiring connected, and the control unit 12 in the charger 1 can also keep the PD charging processing unit 13 and the CC wiring connected based on the feedback PD charging negotiation signal, and Perform PD charging.

其中,上述控制单元12可以是微控制单元(Microcontroller Unit,MCU)等,在此不作具体的限定。且上述充电器1内还包括切换单元,该切换单元能够将充电器1内的CC引脚与控制单元12连通,或者,与PD充电处理单元13连通,或者,控制单元12和PD充电处理单元13均断开。Wherein, the above-mentioned control unit 12 may be a Microcontroller Unit (Microcontroller Unit, MCU) or the like, which is not specifically limited herein. And the above-mentioned charger 1 also includes a switching unit, which can connect the CC pin in the charger 1 with the control unit 12, or communicate with the PD charging processing unit 13, or, the control unit 12 and the PD charging processing unit. 13 are disconnected.

具体的,如图2所示,切换单元为为切换开关SW1。Specifically, as shown in FIG. 2 , the switching unit is a switching switch SW1 .

情况二Case 2

当待充电设备不支持PD充电功能时,该待充电设备不会经CC走线向PD充电处理单元13反馈PD充电协商信号,此时,充电器1内的控制单元12能够基于PD充电处理单元13未接收到反馈PD充电协商信号而控制单总线控制器24使CC走线断开,且充电器1内的控制单元12还能够基于未经CC走线获取到反馈PD充电协商信号控制PD充电处理单元13与CC走线断开,并执行非PD充电。When the device to be charged does not support the PD charging function, the device to be charged will not feed back a PD charging negotiation signal to the PD charging processing unit 13 via the CC line. At this time, the control unit 12 in the charger 1 can be based on the PD charging processing unit. 13 does not receive the feedback PD charging negotiation signal and controls the single-bus controller 24 to disconnect the CC line, and the control unit 12 in the charger 1 can also control PD charging based on the feedback PD charging negotiation signal obtained without the CC line The processing unit 13 is disconnected from the CC trace and performs non-PD charging.

其中,上述非PD充电处理单元14可以理解为:经D+引脚和D-引脚上传输的通信信号与待充电设备进行充电协商的充电单元。该PD充电处理单元14也可以称之为:D+/D-充电处理单元,该非PD充电处理单元14支持经D+引脚和D-引脚传输的通信信号的通信协议。The above-mentioned non-PD charging processing unit 14 can be understood as a charging unit that negotiates charging with the device to be charged via the communication signal transmitted on the D+ pin and the D- pin. The PD charging processing unit 14 may also be referred to as a D+/D- charging processing unit, and the non-PD charging processing unit 14 supports the communication protocol of the communication signal transmitted through the D+ pin and the D- pin.

在应用中,本申请实施例提供的充电设备与不支持PD充电的待充电设备连接时,该充电设备能够经D+引脚和D-引脚与该不支持PD充电的待充电设备进行非PD充电协商通信,其中,充电设备经D+引脚和D-引脚与该不支持PD充电的待充电设备进行非PD充电协商通信的过程,与现有技术中的D+/D-充电方式相同,在此不再赘述。In application, when the charging device provided by the embodiment of the present application is connected to a device to be charged that does not support PD charging, the charging device can perform non-PD charging with the device to be charged that does not support PD charging via the D+ pin and the D- pin. Charging negotiation communication, wherein the process of non-PD charging negotiation and communication between the charging device and the device to be charged that does not support PD charging via the D+ pin and the D- pin is the same as the D+/D- charging method in the prior art, It is not repeated here.

在一种实施方式中,上述数据线2与充电器1之间的匹配过程可以是:数据线2连接电源的情况下,单总线控制器24通电,以初始化识别信息以供充电器1内的控制单元12经CC引脚向单总线控制器24获取识别信息,若控制单元12经CC引脚获取到的识别信息与控制单元12中预先存储的识别信息匹配,则控制单元12向单总线控制器24发送控制信号,以使单总线控制器24接收到控制信号时确定所述充电器1为第一充电器。In one embodiment, the matching process between the data line 2 and the charger 1 may be as follows: when the data line 2 is connected to a power source, the single-bus controller 24 is powered on to initialize the identification information for use in the charger 1 The control unit 12 obtains identification information from the single-bus controller 24 through the CC pin. If the identification information obtained by the control unit 12 through the CC pin matches the identification information pre-stored in the control unit 12, the control unit 12 sends the single-bus control to the control unit 12. The controller 24 sends a control signal, so that the single-bus controller 24 determines that the charger 1 is the first charger when receiving the control signal.

其中,上述识别信息可以是字符串,上述匹配成功可以是获取到的字符串与单总线控制器24预先配置的字符串相同或者一一对应。The identification information may be a character string, and the successful matching may be that the obtained character string is the same as the character string preconfigured by the single-bus controller 24 or has a one-to-one correspondence.

其中,单总线控制器24与控制单元12之间仅需连通一根信号走线(即CC走线),便能够实现控制过程和数据交互过程。Wherein, only one signal line (ie, CC line) needs to be connected between the single-bus controller 24 and the control unit 12, so that the control process and the data exchange process can be realized.

本实施方式中,能够使控制单元12获取单总线控制器24内预先存储的识别信息,并由控制单元12进行匹配,以得到匹配结果,能够简化单总线控制器24的控制逻辑,并简化单总线控制器24与控制单元12之间的数据交互过程。In this embodiment, the control unit 12 can obtain the identification information pre-stored in the single-bus controller 24, and the control unit 12 can perform matching to obtain a matching result, which can simplify the control logic of the single-bus controller 24 and simplify the single-bus controller 24. Data exchange process between the bus controller 24 and the control unit 12 .

当然,在具体实施中,数据线2内的单总线控制器24也能够经CC引脚获取充电器1内的控制单元12内预先存储的识别信息,并将获取到的识别信息与单总线控制器24预先配置的识别信息进行匹配,在匹配成功时确定数据线2与相互匹配的充电器1连接,并向控制单元12反馈匹配成功的控制信号,以使控制单元12控制切换单元将PD充电处理单元13与CC走线连通,在此不做具体限定。Of course, in the specific implementation, the single-bus controller 24 in the data line 2 can also obtain the identification information pre-stored in the control unit 12 in the charger 1 through the CC pin, and associate the acquired identification information with the single-bus control The pre-configured identification information of the controller 24 is matched, and when the matching is successful, it is determined that the data line 2 is connected to the matching charger 1, and the control signal of the successful matching is fed back to the control unit 12, so that the control unit 12 controls the switching unit to charge the PD. The processing unit 13 is connected to the CC wiring, which is not specifically limited here.

本实施方式中,能够使单总线控制器24经CC走线向控制单元12获取识别信息,并由单总线控制器24进行匹配,以得到匹配结果。In this embodiment, the single-bus controller 24 can obtain identification information from the control unit 12 via the CC line, and the single-bus controller 24 can perform matching to obtain a matching result.

请参阅图1和3,数据线2,包括:第一Type-A接口21、Type-C接口22、单总线控制器24和开关模组(包括开关:SW2、SW3、SW4以及SW5);1 and 3, the data line 2 includes: a first Type-A interface 21, a Type-C interface 22, a single bus controller 24 and a switch module (including switches: SW2, SW3, SW4 and SW5);

第一Type-A接口21和Type-C接口22均包括D+引脚、D-引脚、VBUS引脚和GND引脚,且第一Type-A接口21和Type-C接口22中的D+引脚、D-引脚、VBUS引脚和GND引脚一一对应连接,第一Type-A接口21还包括第一CC引脚,Type-C接口22还包括第二CC引脚(如图1和图3中所示CC1引脚);The first Type-A interface 21 and the Type-C interface 22 both include D+ pins, D- pins, VBUS pins and GND pins, and the D+ pins in the first Type-A interface 21 and the Type-C interface 22 The pins, D-pins, VBUS pins and GND pins are connected in one-to-one correspondence. The first Type-A interface 21 also includes a first CC pin, and the Type-C interface 22 also includes a second CC pin (as shown in FIG. 1 ). and the CC1 pin shown in Figure 3);

开关模组与所述第一CC引脚、单总线控制器24以及Type-C接口22中的CC1引脚连接;The switch module is connected with the first CC pin, the single bus controller 24 and the CC1 pin in the Type-C interface 22;

在数据线2与充电器1连接时,若充电器1为第一充电器,开关模组在单总线控制器24的控制下连通第一CC引脚与CC1引脚,且断开所述第一CC引脚与单总线控制器24;若充电器1为第二充电器,开关模组在单总线控制器24的控制下连通所述第一CC引脚与单总线控制器24,且断开所述第一CC引脚与CC1引脚;When the data line 2 is connected to the charger 1, if the charger 1 is the first charger, the switch module connects the first CC pin and the CC1 pin under the control of the single bus controller 24, and disconnects the first CC pin and the CC1 pin. A CC pin and the single bus controller 24; if the charger 1 is the second charger, the switch module connects the first CC pin and the single bus controller 24 under the control of the single bus controller 24, and disconnects the Open the first CC pin and the CC1 pin;

其中,单总线控制器24在与所述第一CC引脚连通时,单总线控制器24基于经所述第一CC引脚传输的识别信息,确定充电器1与数据线2匹配时,充电器1为所述第一充电器;单总线控制器24基于经所述第一CC引脚传输的识别信息,确定充电器1与数据线2不匹配时,充电器1为所述第二充电器。Wherein, when the single-bus controller 24 is connected to the first CC pin, the single-bus controller 24 determines, based on the identification information transmitted through the first CC pin, that when the charger 1 matches the data line 2, charging The device 1 is the first charger; the single-bus controller 24 determines that the charger 1 does not match the data line 2 based on the identification information transmitted through the first CC pin, and the charger 1 is the second charger. device.

本申请实施例提供的数据线,包括第一Type-A接口、单总线控制器和开关模组,其中,单总线控制器能够根据第一CC引脚上传输的识别信息确定数据线连接的充电器是否为相互匹配的第一充电器,并在确定所述数据线与所述第一充电器连接时,控制开关模组将第一CC引脚与第二CC引脚连通,即连通所述数据线内的CC走线,从而能够经该CC走线传输PD充电信号,以实现PD充电功能。The data cable provided by the embodiment of the present application includes a first Type-A interface, a single-bus controller, and a switch module, wherein the single-bus controller can determine the charging connected to the data cable according to the identification information transmitted on the first CC pin whether the chargers are the first chargers that match each other, and when it is determined that the data line is connected to the first charger, the switch module is controlled to connect the first CC pin with the second CC pin, that is, to connect the The CC line in the data line can transmit the PD charging signal through the CC line, so as to realize the PD charging function.

作为一种可选的实施方式,如图3所示,Type-C接口22还包括第三CC引脚(如图1和图3中所示CC2引脚),数据线2上还设置有第一电阻Rp;As an optional implementation manner, as shown in FIG. 3 , the Type-C interface 22 further includes a third CC pin (the CC2 pin shown in FIG. 1 and FIG. 3 ), and the data line 2 is also provided with a third CC pin. A resistance Rp;

在数据线2与第二充电器连接时,开关模组还用于在单总线控制器24)控制下将CC2引脚通过第一电阻Rp与所述VBUS引脚连接。When the data line 2 is connected to the second charger, the switch module is also used to connect the CC2 pin to the VBUS pin through the first resistor Rp under the control of the single bus controller 24).

具体的,上述第一电阻Rp可以是56KΩ(千欧姆)的电阻。Specifically, the above-mentioned first resistance Rp may be a resistance of 56KΩ (kiloohm).

本实施方式中,在将CC2引脚通过第一电阻Rp与所述VBUS引脚连接时,能够经CC2引脚向待充电设备传输电信号,以使待充电设备基于该电信号触发非PD充电功能,即通过D+引脚和D-引脚与充电器进行非PD充电协商通信。In this embodiment, when the CC2 pin is connected to the VBUS pin through the first resistor Rp, an electrical signal can be transmitted to the device to be charged through the CC2 pin, so that the device to be charged triggers non-PD charging based on the electrical signal Function, that is, non-PD charging negotiation communication with the charger through the D+ pin and D- pin.

作为一种可选的实施方式。如图3所示,开关模组包括第一开关SW2、第二开关SW4、第三开关SW3、第四开关SW5、第二电阻R1、第三电阻R2、第四电阻R3和第五电阻R4;as an optional implementation. As shown in FIG. 3 , the switch module includes a first switch SW2, a second switch SW4, a third switch SW3, a fourth switch SW5, a second resistor R1, a third resistor R2, a fourth resistor R3 and a fifth resistor R4;

第二电阻R1的第一端、所第三电阻R2的第一端、第四电阻R3的第一端以及第五电阻R4的第一端均与数据线2中的VBUS引脚连接,第二电阻R1的第二端与单总线控制器24的第一端连接,第三电阻R2的第二端与单总线控制器24的第二端连接,第四电阻R3的第二端与单总线控制器24的第三端连接,第五电阻R4的第二端与第一开关SW2的第一端连接;The first end of the second resistor R1, the first end of the third resistor R2, the first end of the fourth resistor R3, and the first end of the fifth resistor R4 are all connected to the VBUS pin in the data line 2, and the second The second end of the resistor R1 is connected to the first end of the single bus controller 24, the second end of the third resistor R2 is connected to the second end of the single bus controller 24, and the second end of the fourth resistor R3 is connected to the single bus controller 24. The third end of the resistor 24 is connected, and the second end of the fifth resistor R4 is connected to the first end of the first switch SW2;

单总线控制器24的第二端(如图1中所示A端)与第一开关SW2的控制端连接,第一开关SW2的第二端与接地端连接,第一开关SW2的第一端(如图1中所示C端)还与第三开关SW3的控制端以及第四开关SW5的控制端连接,第三开关SW3的第一端与数据线2中的VBUS引脚连接,第三开关SW3的第二端与第一电阻Rp的第二端连接,第四开关SW5的第一端与第一CC引脚连接,第四开关SW5的第二端与CC1引脚连接;The second terminal of the single bus controller 24 (the terminal A shown in FIG. 1 ) is connected to the control terminal of the first switch SW2, the second terminal of the first switch SW2 is connected to the ground terminal, and the first terminal of the first switch SW2 is connected to the ground terminal. (C terminal as shown in FIG. 1) is also connected to the control terminal of the third switch SW3 and the control terminal of the fourth switch SW5, the first terminal of the third switch SW3 is connected to the VBUS pin in the data line 2, and the third switch SW3 is connected to the VBUS pin of the data line 2. The second end of the switch SW3 is connected to the second end of the first resistor Rp, the first end of the fourth switch SW5 is connected to the first CC pin, and the second end of the fourth switch SW5 is connected to the CC1 pin;

单总线控制器24的第三端(如图1中所示B端)与第二开关SW4的控制端连接,第二开关SW4的第一端与所述第一CC引脚连接,第二开关SW4的第二端与单总线控制器24的第一端连接;The third end of the single bus controller 24 (the B end shown in FIG. 1 ) is connected to the control end of the second switch SW4, the first end of the second switch SW4 is connected to the first CC pin, and the second switch SW4 is connected to the first CC pin. The second end of SW4 is connected with the first end of the single bus controller 24;

其中,单总线控制器24用于经单总线控制器24的第二端控制第一开关SW2的开关状态,并在控制第一开关SW2的开关状态之后,经单总线控制器24的第三端控制第二开关SW4的开关状态;The single bus controller 24 is used to control the switching state of the first switch SW2 through the second terminal of the single bus controller 24, and after controlling the switching state of the first switch SW2, the single bus controller 24 passes through the third terminal of the single bus controller 24. Control the switch state of the second switch SW4;

在第一开关SW2断开时,第三开关SW3闭合,且第四开关SW5断开;When the first switch SW2 is turned off, the third switch SW3 is turned on, and the fourth switch SW5 is turned off;

在第一开关SW2闭合时,第三开关SW3断开,且第四开关SW5闭合。When the first switch SW2 is closed, the third switch SW3 is opened, and the fourth switch SW5 is closed.

在具体实施中,上述第一开关SW2、第二开关SW4、第三开关SW3以及第四开关SW5可以是模拟信号控制开关(例如:三极管、晶体管等),此时,单总线控制器24分别向第一开关SW2和第二开关SW4发送相应的模拟信号,以控制第一开关SW2和第二开关SW4的开关状态。In a specific implementation, the first switch SW2, the second switch SW4, the third switch SW3 and the fourth switch SW5 may be analog signal control switches (eg, triodes, transistors, etc.). The first switch SW2 and the second switch SW4 send corresponding analog signals to control the switching states of the first switch SW2 and the second switch SW4.

另外,在第一开关SW2闭合时,第三开关SW3的控制端经第一开关SW2接地,由此可控制第三开关SW3断开。In addition, when the first switch SW2 is closed, the control terminal of the third switch SW3 is grounded via the first switch SW2, so that the third switch SW3 can be controlled to be turned off.

另外,在第一开关SW2闭合时,第四开关SW5的控制端经第一开关SW2接地,由此可控制第四开关SW5断开。In addition, when the first switch SW2 is closed, the control terminal of the fourth switch SW5 is grounded via the first switch SW2, so that the fourth switch SW5 can be controlled to be turned off.

相应的,在第一开关SW2断开时,第三开关SW3的控制端经第五电阻R4上拉至VBUS引脚,由此可经VBUS引脚向第三开关SW3的控制端提供电压,以控制第三开关SW3连通。Correspondingly, when the first switch SW2 is turned off, the control terminal of the third switch SW3 is pulled up to the VBUS pin through the fifth resistor R4, so that a voltage can be supplied to the control terminal of the third switch SW3 through the VBUS pin to The third switch SW3 is controlled to be connected.

另外,在第一开关SW2闭合时,第四开关SW5的控制端经第五电阻R4上拉至VBUS引脚,由此可经VBUS引脚向第四开关SW5的控制端提供电压,以控制第四开关SW5连通。In addition, when the first switch SW2 is closed, the control terminal of the fourth switch SW5 is pulled up to the VBUS pin through the fifth resistor R4, so that a voltage can be supplied to the control terminal of the fourth switch SW5 through the VBUS pin to control the first switch SW5. The four switches SW5 are connected.

本实施方式中,将开关模组设置为模拟电路,以简化单总线控制器24的控制逻辑。In this embodiment, the switch module is set as an analog circuit to simplify the control logic of the single-bus controller 24 .

另外,在调节第一开关SW2的开关状态之后,再调节第二开关SW4的开关状态,可以确保单总线控制器24在与CC走线连接的情况下,根据CC走线上是否有CC信号传输,以据此控制第一开关SW2的开关状态。In addition, after adjusting the switch state of the first switch SW2, and then adjusting the switch state of the second switch SW4, it can ensure that the single-bus controller 24 is connected to the CC line according to whether there is a CC signal transmission on the CC line. , so as to control the switching state of the first switch SW2 accordingly.

作为一种可选的实施方式,控制单元12预先存储有第二识别信息,所述控制单元12在经所述第四CC引脚获取到的第一识别信息与所述第二识别信息匹配时,经所述第四CC引脚向单总线控制器24发送第一控制指令,在发送所述第一控制指令第一预设时间后经所述第四CC引脚向单总线控制器24发送第二控制指令,并控制所述切换单元断开所述控制单元12与所述第四CC引脚,且连通所述第四CC引脚与所述PD充电处理单元13;As an optional implementation manner, the control unit 12 pre-stores second identification information, and the control unit 12 when the first identification information obtained through the fourth CC pin matches the second identification information , send the first control command to the single bus controller 24 through the fourth CC pin, and send the first control command to the single bus controller 24 through the fourth CC pin after the first preset time of sending the first control command a second control instruction, and controls the switching unit to disconnect the control unit 12 and the fourth CC pin, and connect the fourth CC pin and the PD charging processing unit 13;

其中,所述单总线控制器24响应于所述第一控制指令,控制所述开关模组连通所述第一CC引脚与CC1引脚,单总线控制器24响应于所述第二控制指令,控制所述开关模组断开所述第一CC引脚与单总线控制器24。The single bus controller 24 controls the switch module to connect the first CC pin and the CC1 pin in response to the first control command, and the single bus controller 24 responds to the second control command , controlling the switch module to disconnect the first CC pin from the single bus controller 24 .

本实施方式中,可以由充电器1内的控制单元12向单总线控制器24先发送第一控制指令,再发送第二控制指令,以实现在调节第一开关SW2的开关状态之后,再调节第二开关SW4的开关状态,这样可以避免在单总线控制器24内设置计时器等,能够简化数据线2的结构,避免在数据线2上设置结构复杂且体积较大的控制模块。In this embodiment, the control unit 12 in the charger 1 can send the first control command to the single-bus controller 24 first, and then send the second control command, so as to adjust the switching state of the first switch SW2 and then adjust the The switch state of the second switch SW4 can avoid setting a timer in the single-bus controller 24 , simplifying the structure of the data line 2 , and avoiding arranging a complex and bulky control module on the data line 2 .

可选的,第一开关SW2、第二开关SW4以及第四开关SW5为NMOS管,第三开关SW3为PMOS管。Optionally, the first switch SW2, the second switch SW4 and the fourth switch SW5 are NMOS transistors, and the third switch SW3 is a PMOS transistor.

在具体实施中,当数据线2通电且与充电器1进行匹配之前,单总线控制器24的第一端经第二电阻R1上拉至VBUS引脚,单总线控制器24的第二端经第三电阻R2上拉至VBUS引脚,单总线控制器24的第三端经第四电阻R3上拉至VBUS引脚,从而使得,第一开关SW2的控制端和第二开关SW4的控制端上具有高电平,进而使得第一开关SW2闭合,第二开关SW4闭合,此时第三开关SW3的控制端和第四开关SW5的控制端经第一开关SW2接地,从而使的第三开关SW3的控制端和第四开关SW5的控制端上具有低电平,进而使得第三开关SW3断开,且第四开关SW5闭合。In a specific implementation, before the data line 2 is powered on and matched with the charger 1, the first end of the single bus controller 24 is pulled up to the VBUS pin through the second resistor R1, and the second end of the single bus controller 24 is pulled up to the VBUS pin through the second resistor R1. The third resistor R2 is pulled up to the VBUS pin, and the third end of the single bus controller 24 is pulled up to the VBUS pin through the fourth resistor R3, so that the control end of the first switch SW2 and the control end of the second switch SW4 There is a high level on the switch, so that the first switch SW2 is closed, and the second switch SW4 is closed. At this time, the control terminal of the third switch SW3 and the control terminal of the fourth switch SW5 are grounded through the first switch SW2, so that the third switch The control terminal of SW3 and the control terminal of the fourth switch SW5 have a low level, so that the third switch SW3 is turned off and the fourth switch SW5 is turned on.

在本实施方式下,在数据线2通电且与充电器1匹配成功之后,单总线控制器24用于响应于所述第一控制指令,经单总线控制器24的第二端输出第一低电平信号,单总线控制器24还用于响应于所述第二控制指令,经单总线控制器24的第三端输出第二低电平信号。In this embodiment, after the data line 2 is powered on and successfully matched with the charger 1, the single bus controller 24 is configured to output the first low voltage through the second end of the single bus controller 24 in response to the first control command level signal, the single bus controller 24 is further configured to output a second low level signal through the third terminal of the single bus controller 24 in response to the second control command.

具体的,单总线控制器24向第一开关SW2的控制端输出低电平信号时,为NMOS管的第一开关SW2断开。此时,第三开关SW3的控制端经第五电阻R4上拉至VBUS引脚,从而使得第三开关SW3的控制端上具有高电平信号,从而使得为PMOS管的第三开关SW3断开。另外,第四开关SW5的控制端上也具有高电平信号,从而使得为NMOS管的第四开关SW5闭合。Specifically, when the single-bus controller 24 outputs a low-level signal to the control terminal of the first switch SW2, the first switch SW2, which is an NMOS transistor, is turned off. At this time, the control terminal of the third switch SW3 is pulled up to the VBUS pin through the fifth resistor R4, so that the control terminal of the third switch SW3 has a high-level signal, so that the third switch SW3, which is a PMOS transistor, is disconnected . In addition, the control terminal of the fourth switch SW5 also has a high level signal, so that the fourth switch SW5 which is an NMOS transistor is closed.

另外,单总线控制器24在向第一开关SW2的控制端输出低电平信号之后的预设时间之后,还向第二开关SW4的控制端输出低电平信号,从而使得为NMOS管的第二开关SW4断开。In addition, the single-bus controller 24 also outputs a low-level signal to the control terminal of the second switch SW4 after a preset time after outputting the low-level signal to the control terminal of the first switch SW2, so that the first signal of the NMOS transistor is the first The second switch SW4 is turned off.

这样,便实现了,在数据线2通电且与充电器1匹配成功时,将CC走线连通,并且将CC走线与VBUS引脚以及单总线控制器24均断开。In this way, when the data line 2 is powered on and successfully matched with the charger 1 , the CC line is connected, and the CC line is disconnected from the VBUS pin and the single-bus controller 24 .

另外,在数据线2通电且与充电器1匹配失败之后,单总线控制器24向第一开关SW2的控制端输出高电平,以使为NMOS管的第一开关SW2闭合,此时第三开关SW3的控制端和第四开关SW5的控制端均经第一开关SW2接地,从而使得为PMOS管的第三开关SW3闭合,并使得为NMOS管的第四开关SW5断开。In addition, after the data line 2 is powered on and fails to match with the charger 1, the single-bus controller 24 outputs a high level to the control terminal of the first switch SW2, so that the first switch SW2, which is an NMOS transistor, is closed. At this time, the third The control terminal of the switch SW3 and the control terminal of the fourth switch SW5 are both grounded through the first switch SW2, so that the third switch SW3, which is a PMOS transistor, is closed, and the fourth switch SW5, which is an NMOS transistor, is opened.

且单总线控制器24还向第二开关SW4的控制端输出搞电平信号,从而使得为NMOS管的第二开关SW4闭合。In addition, the single bus controller 24 also outputs a level-on signal to the control terminal of the second switch SW4, so that the second switch SW4, which is an NMOS transistor, is closed.

这样,便实现了,在数据线2通电且与充电器1不匹配时,将CC走线断开,并且将CC走线与VBUS引脚以及单总线控制器24连通,以使待充电设备能够根据CC引脚上接收的电信号触发非PD充电通信。In this way, when the data line 2 is powered on and does not match the charger 1, the CC line is disconnected, and the CC line is connected to the VBUS pin and the single-bus controller 24, so that the device to be charged can be Non-PD charging communication is triggered based on the electrical signal received on the CC pin.

需要说明的是,在数据线未连接电源或者未连接待充电设备的状态下,第二开关SW4和第四开关SW5均处于闭合状态,且第一开关SW2和第三开关SW3出具断开状态,以使单总线控制器24与CC走线连接,从而能够经CC引脚接收充电器1内的控制单元12发送的控制指令。It should be noted that when the data line is not connected to the power supply or the device to be charged, both the second switch SW4 and the fourth switch SW5 are in a closed state, and the first switch SW2 and the third switch SW3 are in an open state, So that the single bus controller 24 is connected to the CC line, so that the control command sent by the control unit 12 in the charger 1 can be received through the CC pin.

需要说明的是,在具体实施中,上述开关模组还可也包括数字信号控制开关,例如:切换开关组等,在此不作具体阐述。It should be noted that, in a specific implementation, the above-mentioned switch module may also include a digital signal control switch, such as a switch switch group, etc., which will not be described in detail here.

作为一种可选的实施方式,如图5所示,第一Type-A接口21中的D+引脚、D-引脚、VBUS引脚和GND引脚位于第一Type-A接口21的第一侧边,所述第一CC引脚位于第一Type-A接口21的第二侧边,所述第一侧边和所述第二侧边位于第一Type-A接口21的相对两侧。As an optional implementation manner, as shown in FIG. 5 , the D+ pin, D- pin, VBUS pin and GND pin in the first Type-A interface 21 are located on the first Type-A interface 21 . On one side, the first CC pin is located on the second side of the first Type-A interface 21 , and the first side and the second side are located on opposite sides of the first Type-A interface 21 .

当然,第一Type-A接口21中各引脚的分布位置还可以交换或者改变,在此不作具体限定,另外,该VBUS引脚以及GND引脚的结构和工作原理与现有技术中的VBUS引脚以及GND引脚的结构和工作原理相同,在此不再具体阐述。Of course, the distribution position of each pin in the first Type-A interface 21 can also be exchanged or changed, which is not specifically limited here. In addition, the structure and working principle of the VBUS pin and the GND pin are the same as the VBUS pin in the prior art. The structure and working principle of the pin and the GND pin are the same, and will not be described in detail here.

本实施方式中,将CC引脚设置于第一Type-A接口21的第二侧边,从而可以使第一Type-A接口21的第一侧年上的GND引脚、D+引脚、D-引脚以及VBUS引脚的结构以及位置分布与现有技术中的Type-A接口相同,从而使得该本申请实施例中提供的数据线能够与具有常规Type-A接口的充电器连接。In this embodiment, the CC pin is arranged on the second side of the first Type-A interface 21, so that the GND pin, D+ pin, D pin on the first side of the first Type-A interface 21 can be - The structure and position distribution of pins and VBUS pins are the same as the Type-A interface in the prior art, so that the data line provided in this embodiment of the present application can be connected to a charger with a conventional Type-A interface.

当然,在本申请实施例中提供的数据线2与设置有常规Type-A接口的充电器连接的情况下,由于常规的Type-A接口中未设置CC引脚,从而使得第一Type-A接口21中的CC引脚不能够传输识别信息,此时,该充电设备仅支持经D+引脚和D-引脚传输充电信号的快速充电方式。Of course, in the case where the data line 2 provided in the embodiment of the present application is connected to a charger provided with a conventional Type-A interface, since the CC pin is not set in the conventional Type-A interface, the first Type-A The CC pin in the interface 21 cannot transmit identification information. At this time, the charging device only supports the fast charging method of transmitting the charging signal through the D+ pin and the D- pin.

相应的,如图6所示,本申请实施例提供的充电器1内的第二Type-A接口内的各引脚的分布位置与如图5所示第一Type-A接口21中各引脚的分布位置一一对应,且同样能够兼容具有常规Type-A接口的数据线,在此再赘述。Correspondingly, as shown in FIG. 6 , the distribution positions of the pins in the second Type-A interface in the charger 1 provided by the embodiment of the present application are the same as those in the first Type-A interface 21 shown in FIG. 5 . The distribution positions of the pins correspond one-to-one, and are also compatible with data lines with conventional Type-A interfaces, which will be repeated here.

在工作中,在本申请实施例中提供的充电器1与设置有常规Type-A接口的数据线连接的情况下,由于常规的Type-A接口中未设置CC引脚,从而使得第二Type-A接口中的CC引脚不能够传输识别信息,此时,该充电设备仅支持经D+引脚和D-引脚传输充电信号的快速充电方式。In operation, when the charger 1 provided in the embodiment of the present application is connected to a data line provided with a conventional Type-A interface, since the CC pin is not set in the conventional Type-A interface, the second Type-A interface is not provided with a CC pin. The CC pin in the -A interface cannot transmit identification information. At this time, the charging device only supports the fast charging method of transmitting the charging signal through the D+ pin and the D- pin.

需要说明的是,本申请实施例提供的充电器1还能够与常规的数据线连接,并能够对待充电设备进行非PD充电,如图7所示,下面以充电器1与常规的数据线连接或者与如图3所示数据线2连接时的工作流程为例进行具体说明:It should be noted that the charger 1 provided in the embodiment of the present application can also be connected to a conventional data line, and can perform non-PD charging on the device to be charged. As shown in FIG. 7 , the charger 1 is connected to a conventional data line below. Or take the workflow when the data line 2 is connected as shown in Figure 3 as an example for specific description:

步骤701、判断充电器1是否连接电源。Step 701 , determine whether the charger 1 is connected to a power source.

其中,上述充电器1为本申请实施例提供的充电器1.Wherein, the above charger 1 is the charger 1 provided by the embodiment of the application.

在本步骤的判断结果为“是”的情况下,执行步骤702,否则可以继续等待,直至充电器1连接电源。In the case that the judgment result of this step is "Yes", step 702 is executed, otherwise, it can continue to wait until the charger 1 is connected to the power supply.

步骤702、判断是否连接标配的数据线2。Step 702, judging whether the standard data line 2 is connected.

其中,上述标配的数据线2为本申请实施例提供的数据线2。The above-mentioned standard data line 2 is the data line 2 provided by the embodiment of the application.

在本步骤的判断结果为“是”的情况下,执行步骤703,否则可以执行步骤704。If the judgment result of this step is "Yes", step 703 is performed, otherwise, step 704 may be performed.

在具体实施中,当将测到充电器1连接电源,但未连接任何数据线时,可以继续等待,直至充电器1与数据线连接。In a specific implementation, when it is detected that the charger 1 is connected to the power source, but no data cable is connected, it can continue to wait until the charger 1 is connected to the data cable.

步骤703、单总线控制器启动,初始化识别信息和所述单总线控制器第二端与第三端的控制信号。Step 703 , the single bus controller is started, and the identification information and the control signals of the second terminal and the third terminal of the single bus controller are initialized.

其中,初始化识别信息可以理解为,读取预先存储的标识信息,以供充电器1内的控制单元12读取。The initialization identification information can be understood as reading pre-stored identification information for the control unit 12 in the charger 1 to read.

上述初始单总线控制器第二端与第三端的控制信号可以理解为:单总线控制器经其第二端与第三端输出电信号,以使第一开关SW2、第二开关SW4和第三开关SW3导通,并使第四开关SW5断开。The above-mentioned control signals of the second terminal and the third terminal of the initial single bus controller can be understood as: the single bus controller outputs electrical signals through the second terminal and the third terminal, so that the first switch SW2, the second switch SW4 and the third The switch SW3 is turned on, and the fourth switch SW5 is turned off.

需要说明的是,此时充电器1内的控制单元12与第四CC引脚连接。It should be noted that, at this time, the control unit 12 in the charger 1 is connected to the fourth CC pin.

步骤705、控制单元12经CC走线与单总线控制器24进行通信。Step 705: The control unit 12 communicates with the single-bus controller 24 via the CC wiring.

本步骤具体为控制单元12经CC走线读取单总线控制器24中预先存储的识别信息。In this step, the control unit 12 reads the identification information pre-stored in the single-bus controller 24 through the CC wiring.

步骤706、判断数据线2与充电器1是否匹配成功。Step 706 , determine whether the data line 2 and the charger 1 are successfully matched.

本步骤具体为控制单元12判断其预先存储的识别信息与从单总线控制器24中读取到的识别信息是否匹配。In this step, the control unit 12 determines whether the pre-stored identification information matches the identification information read from the single-bus controller 24 .

在本步骤的判断结果为“是”的情况下,执行步骤708,否则可以执行步骤707。If the judgment result of this step is "Yes", step 708 is performed; otherwise, step 707 may be performed.

步骤707、SW1将CC引脚与控制单元12连通,SW2、SW3和SW4导通,且SW5断开。Step 707: SW1 connects the CC pin with the control unit 12, SW2, SW3 and SW4 are turned on, and SW5 is turned off.

此时,SW1将CC引脚与PD充电处理单元13断开,从而使得PD充电通道断开,仅能够使非PD充电处理单元14经D+引脚和D-引脚与待充电设备进行充电通信,以执行非PD充电功能。At this time, SW1 disconnects the CC pin from the PD charging processing unit 13, so that the PD charging channel is disconnected, and only the non-PD charging processing unit 14 can perform charging communication with the device to be charged via the D+ pin and the D- pin , to perform non-PD charging functions.

步骤708、SW1将CC引脚与PD充电处理单元13连通,SW2、SW3和SW4断开,且SW5导通。Step 708 , SW1 connects the CC pin with the PD charging processing unit 13 , SW2 , SW3 and SW4 are turned off, and SW5 is turned on.

此时,SW1将CC引脚与控制单元12断开,且CC通信通道连通,从而使得PD充电处理单元14能够经CC走线与待充电设备进行充电通信,以执行PD充电功能。At this time, SW1 disconnects the CC pin from the control unit 12, and the CC communication channel is connected, so that the PD charging processing unit 14 can perform charging communication with the device to be charged via the CC wiring to perform the PD charging function.

步骤709、充电器1通过数据线与待充电设备进行通信,若待充电设备支持PD充电,则进行PD充电,若待充电设备不支持PD充电,则进行D+/D-协议充电。Step 709: The charger 1 communicates with the device to be charged through the data line. If the device to be charged supports PD charging, PD charging is performed, and if the device to be charged does not support PD charging, D+/D- protocol charging is performed.

步骤704、充电器读取不到匹配的识别信息,判断与非标配的数据线连接。Step 704: The charger cannot read the matching identification information, and judges that it is connected to a non-standard data cable.

步骤710、进行D+/D-协议充电。Step 710 , perform D+/D- protocol charging.

通过上述过程,可以使本申请实施例提供的充电器1与标配的数据线2连接时,能够实现PD充电功能和非PD充电功能,且在与非标配的数据线连接时,能够实现非PD充电功能。Through the above process, when the charger 1 provided in the embodiment of the present application is connected with the standard data cable 2, the PD charging function and the non-PD charging function can be realized, and when the charger 1 is connected with the non-standard data cable, the PD charging function and the non-PD charging function can be realized. Non-PD charging function.

相应的,本申请实施例提供的数据线2还能够与常规的充电器连接,并能够对待充电设备进行非PD充电,如图8所示,下面以数据线2与常规的数据线连接或者与如图2所示充电器1连接时的工作流程为例进行具体说明:Correspondingly, the data cable 2 provided in the embodiment of the present application can also be connected to a conventional charger, and can perform non-PD charging on the device to be charged. As shown in FIG. As shown in Figure 2, the work flow when the charger 1 is connected is taken as an example to describe in detail:

步骤801、判断非标配的充电器是否连接电源。Step 801: Determine whether the non-standard charger is connected to a power source.

其中,上述非标配的充电器即非本申请实施例提供的充电器1,其可以使任一具有Type-A接口的充电器。The above-mentioned non-standard charger is not the charger 1 provided in the embodiment of the present application, and it can be any charger with a Type-A interface.

在本步骤的判断结果为“是”的情况下,执行步骤802,否则可以继续等待,直至充电器1连接电源。In the case that the judgment result of this step is "Yes", step 802 is executed, otherwise, it can continue to wait until the charger 1 is connected to the power supply.

步骤802、判断是否连接标配的数据线2。Step 802, judging whether the standard data line 2 is connected.

其中,上述标配的数据线2为本申请实施例提供的数据线2。The above-mentioned standard data line 2 is the data line 2 provided by the embodiment of the application.

在本步骤的判断结果为“是”的情况下,执行步骤804,否则可以执行步骤803。If the judgment result of this step is "Yes", step 804 is performed; otherwise, step 803 may be performed.

步骤803、进行D+/D-协议充电。Step 803 , perform D+/D- protocol charging.

其中,上述进行D+/D-协议充电的过程与现有技术中进行D+/D-协议充电的过程相同,在此不再赘述。The above-mentioned process of performing D+/D- protocol charging is the same as the process of performing D+/D- protocol charging in the prior art, and will not be repeated here.

步骤804、单总线控制器启动,初始化识别信息和所述单总线控制器第二端与第三端的控制信号。Step 804 , the single bus controller is started, and the identification information and the control signals of the second terminal and the third terminal of the single bus controller are initialized.

其中,初始化识别信息可以理解为,读取预先存储的标识信息,以供充电器读取。The initialization identification information can be understood as reading pre-stored identification information for the charger to read.

上述初始单总线控制器第二端与第三端的控制信号可以理解为:单总线控制器经其第二端与第三端输出电信号,以使第一开关SW2、第二开关SW4和第三开关SW3导通,并使第四开关SW5断开。The above-mentioned control signals of the second terminal and the third terminal of the initial single bus controller can be understood as: the single bus controller outputs electrical signals through the second terminal and the third terminal, so that the first switch SW2, the second switch SW4 and the third The switch SW3 is turned on, and the fourth switch SW5 is turned off.

步骤805、配对失败。Step 805, the pairing fails.

需要说明的是,常规的充电器内无CC引脚,从而不会经CC引脚主动获取单总线控制器24内的识别信息,更不会经CC引脚向单总线控制器24发送控制指令,从而使得数据线2与充电器匹配失败。It should be noted that there is no CC pin in the conventional charger, so the identification information in the single bus controller 24 will not be actively obtained through the CC pin, and control commands will not be sent to the single bus controller 24 through the CC pin. , so that the data line 2 fails to match the charger.

步骤806、第一开关SW2、第二开关SW4和第三开关SW3保持导通,第四开关SW5保持断开,并进行D+/D-协议充电。Step 806, the first switch SW2, the second switch SW4 and the third switch SW3 are kept on, the fourth switch SW5 is kept off, and the D+/D- protocol charging is performed.

通过上述过程,可以使本申请实施例提供的数据线2与非标配的充电器连接时,能够实现非PD充电功能。Through the above process, when the data cable 2 provided in the embodiment of the present application is connected to a non-standard charger, the non-PD charging function can be realized.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和电子设备的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. In addition, it should be noted that the scope of the methods and electronic devices in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved To perform functions, for example, the methods described may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course hardware can also be used, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (10)

1.一种数据线,其特征在于,包括:第一Type-A接口、Type-C接口、单总线控制器和开关模组;1. a data line, is characterized in that, comprises: the first Type-A interface, Type-C interface, single bus controller and switch module; 所述第一Type-A接口和所述Type-C接口均包括D+引脚、D-引脚、VBUS引脚和GND引脚,且所述第一Type-A接口和所述Type-C接口中的D+引脚、D-引脚、VBUS引脚和GND引脚一一对应连接,所述第一Type-A接口还包括第一CC引脚,所述Type-C接口还包括第二CC引脚;The first Type-A interface and the Type-C interface both include D+ pins, D- pins, VBUS pins and GND pins, and the first Type-A interface and the Type-C interface The D+ pins, D- pins, VBUS pins and GND pins are connected in one-to-one correspondence, the first Type-A interface also includes a first CC pin, and the Type-C interface also includes a second CC pin pin; 所述开关模组与所述第一CC引脚、所述单总线控制器以及所述第二CC引脚连接;the switch module is connected to the first CC pin, the single bus controller and the second CC pin; 在所述数据线与充电器连接时,若所述充电器为第一充电器,所述开关模组在所述单总线控制器的控制下连通所述第一CC引脚与所述第二CC引脚,且断开所述第一CC引脚与所述单总线控制器;若所述充电器为第二充电器,所述开关模组在所述单总线控制器的控制下连通所述第一CC引脚与所述单总线控制器,且断开所述第一CC引脚与所述第二CC引脚;When the data cable is connected to the charger, if the charger is the first charger, the switch module connects the first CC pin and the second charger under the control of the single-bus controller. CC pin, and disconnect the first CC pin from the single-bus controller; if the charger is the second charger, the switch module is connected to the single-bus controller under the control of the The first CC pin and the single bus controller are disconnected, and the first CC pin and the second CC pin are disconnected; 其中,所述单总线控制器在与所述第一CC引脚连通时,所述单总线控制器基于经所述第一CC引脚传输的识别信息,确定所述充电器与所述数据线匹配时,所述充电器为所述第一充电器;所述单总线控制器基于经所述第一CC引脚传输的识别信息,确定所述充电器与所述数据线不匹配时,所述充电器为所述第二充电器。Wherein, when the single-bus controller is connected to the first CC pin, the single-bus controller determines the charger and the data line based on the identification information transmitted through the first CC pin When matching, the charger is the first charger; based on the identification information transmitted by the first CC pin, the single-bus controller determines that the charger does not match the data line, the The charger is the second charger. 2.根据权利要求1所述数据线,其特征在于,所述Type-C接口还包括第三CC引脚,所述数据线上还设置有第一电阻;2. The data line according to claim 1, wherein the Type-C interface further comprises a third CC pin, and the data line is also provided with a first resistance; 在所述数据线与第二充电器连接时,所述开关模组还用于在所述单总线控制器的控制下将所述第三CC引脚通过所述第一电阻与所述VBUS引脚连接。When the data line is connected to the second charger, the switch module is further configured to connect the third CC pin to the VBUS through the first resistor under the control of the single bus controller pin connection. 3.根据权利要求2所述数据线,其特征在于,所述开关模组包括第一开关、第二开关、第三开关、第四开关、第二电阻、第三电阻、第四电阻和第五电阻;3 . The data line according to claim 2 , wherein the switch module comprises a first switch, a second switch, a third switch, a fourth switch, a second resistor, a third resistor, a fourth resistor, and a third switch. 4 . Five resistors; 所述第二电阻的第一端、所述第三电阻的第一端、所述第四电阻的第一端以及所述第五电阻的第一端均与所述数据线中的VBUS引脚连接,所述第二电阻的第二端与所述单总线控制器的第一端连接,所述第三电阻的第二端与所述单总线控制器的第二端连接,所述第四电阻的第二端与所述单总线控制器的第三端连接,所述第五电阻的第二端与所述第一开关的第一端连接;The first end of the second resistor, the first end of the third resistor, the first end of the fourth resistor, and the first end of the fifth resistor are all connected to the VBUS pin in the data line. connected, the second end of the second resistor is connected to the first end of the single bus controller, the second end of the third resistor is connected to the second end of the single bus controller, the fourth The second end of the resistor is connected to the third end of the single bus controller, and the second end of the fifth resistor is connected to the first end of the first switch; 所述单总线控制器的第二端与所述第一开关的控制端连接,所述第一开关的第二端与接地端连接,所述第一开关的第一端还与所述第三开关的控制端以及所述第四开关的控制端连接,所述第三开关的第一端与所述数据线中的VBUS引脚连接,所述第三开关的第二端通过所述第一电阻与所述第三CC引脚连接,所述第四开关的第一端与所述第一CC引脚连接,所述第四开关的第二端与所述第二CC引脚连接;The second end of the single-bus controller is connected to the control end of the first switch, the second end of the first switch is connected to the ground end, and the first end of the first switch is also connected to the third The control end of the switch is connected to the control end of the fourth switch, the first end of the third switch is connected to the VBUS pin in the data line, and the second end of the third switch passes through the first The resistor is connected to the third CC pin, the first end of the fourth switch is connected to the first CC pin, and the second end of the fourth switch is connected to the second CC pin; 所述单总线控制器的第三端与所述第二开关的控制端连接,所述第二开关的第一端与所述第一CC引脚连接,所述第二开关的第二端与所述单总线控制器的第一端连接;The third end of the single bus controller is connected to the control end of the second switch, the first end of the second switch is connected to the first CC pin, and the second end of the second switch is connected to the first CC pin. the first end of the single bus controller is connected; 其中,所述单总线控制器用于经所述单总线控制器的第二端控制所述第一开关的开关状态,并在控制所述第一开关的开关状态之后,经所述单总线控制器的第三端控制所述第二开关的开关状态;The single-bus controller is configured to control the switching state of the first switch through the second terminal of the single-bus controller, and after controlling the switching state of the first switch, the single-bus controller The third terminal of the control the switch state of the second switch; 在所述第一开关断开时,所述第三开关闭合,且所述第四开关断开;When the first switch is turned off, the third switch is turned on, and the fourth switch is turned off; 在所述第一开关闭合时,所述第三开关断开,且所述第四开关闭合。When the first switch is closed, the third switch is open and the fourth switch is closed. 4.根据权利要求3所述数据线,其特征在于,所述第一开关、所述第二开关、所述第三开关以及所述第四开关为晶体管。4 . The data line of claim 3 , wherein the first switch, the second switch, the third switch and the fourth switch are transistors. 5 . 5.根据权利要求3所述数据线,其特征在于,所述第一开关、所述第二开关以及所述第四开关为NMOS管,所述第三开关为PMOS管。5 . The data line according to claim 3 , wherein the first switch, the second switch and the fourth switch are NMOS transistors, and the third switch is a PMOS transistor. 6 . 6.根据权利要求1所述数据线,其特征在于,所述第一Type-A接口中的D+引脚、D-引脚、VBUS引脚和GND引脚位于所述第一Type-A接口的第一侧边,所述第一CC引脚位于所述第一Type-A接口的第二侧边,所述第一侧边和所述第二侧边位于所述第一Type-A接口的相对两侧。6. The data line according to claim 1, wherein the D+ pin, the D- pin, the VBUS pin and the GND pin in the first Type-A interface are located in the first Type-A interface the first side, the first CC pin is located on the second side of the first Type-A interface, the first side and the second side are located on the first Type-A interface opposite sides. 7.一种充电设备,包括充电器和与所述充电器连接的数据线,其特征在于,所述数据线为如权利要求1-6中任一项所述数据线,所述充电器包括第二Type-A接口、控制单元、切换单元、PD充电处理单元和非PD充电处理单元,且所述第二Type-A接口包括第四CC引脚、D+引脚、D-引脚、VBUS引脚和GND引脚,所述第四CC引脚与所述第一CC引脚连接,且所述第二Type-A接口和所述数据线的第一Type-A接口中的D+引脚、D-引脚、VBUS引脚和GND引脚一一对应连接;7. A charging device, comprising a charger and a data cable connected to the charger, wherein the data cable is the data cable according to any one of claims 1-6, and the charger comprises The second Type-A interface, the control unit, the switching unit, the PD charging processing unit and the non-PD charging processing unit, and the second Type-A interface includes the fourth CC pin, D+ pin, D- pin, VBUS pin and GND pin, the fourth CC pin is connected to the first CC pin, and the D+ pin in the second Type-A interface and the first Type-A interface of the data line , D-pin, VBUS pin and GND pin are connected one by one; 所述切换单元与所述控制单元、所述PD充电处理单元以及所述第四CC引脚连接,所述第二Type-A接口中的D+引脚以及D-引脚与所述非PD充电处理单元连接;The switching unit is connected to the control unit, the PD charging processing unit and the fourth CC pin, and the D+ pin and the D- pin in the second Type-A interface are connected to the non-PD charging processing unit connection; 在所述控制单元基于所述第四CC引脚传输的识别信息确定所述充电器与所述数据线匹配时,所述单总线控制器控制所述开关模组连通所述第一CC引脚与所述第二CC引脚,且断开所述第一CC引脚与所述单总线控制器,且所述控制单元还控制所述切换单元断开所述控制单元与所述第四CC引脚,且连通所述第四CC引脚与所述PD充电处理单元,以使所述PD充电处理单元基于经所述第四CC引脚传输的CC信号对待充电设备进行PD充电,或者使所述非PD充电处理单元基于经所述D+引脚和所述D-引脚传输的通信信号对待充电设备进行非PD充电。When the control unit determines that the charger matches the data line based on the identification information transmitted by the fourth CC pin, the single bus controller controls the switch module to connect the first CC pin and the second CC pin, and disconnect the first CC pin and the single-bus controller, and the control unit also controls the switching unit to disconnect the control unit and the fourth CC pin, and connect the fourth CC pin with the PD charging processing unit, so that the PD charging processing unit performs PD charging on the device to be charged based on the CC signal transmitted through the fourth CC pin, or makes The non-PD charging processing unit performs non-PD charging on the device to be charged based on the communication signal transmitted through the D+ pin and the D- pin. 8.根据权利要求7所述充电设备,其特征在于,所述控制单元预先存储有第二识别信息,所述控制单元在经所述第四CC引脚获取到的第一识别信息与所述第二识别信息匹配时,经所述第四CC引脚向所述单总线控制器发送第一控制指令,在发送所述第一控制指令第一预设时间后经所述第四CC引脚向所述单总线控制器发送第二控制指令,并控制所述切换单元断开所述控制单元与所述第四CC引脚,且连通所述第四CC引脚与所述PD充电处理单元;8 . The charging device according to claim 7 , wherein the control unit pre-stores second identification information, and the control unit compares the first identification information obtained through the fourth CC pin with the When the second identification information matches, the first control command is sent to the single-bus controller through the fourth CC pin, and the fourth CC pin is sent after the first preset time of sending the first control command. Send a second control command to the single bus controller, and control the switching unit to disconnect the control unit and the fourth CC pin, and connect the fourth CC pin and the PD charging processing unit ; 其中,所述单总线控制器响应于所述第一控制指令,控制所述开关模组连通所述第一CC引脚与所述第二CC引脚,所述单总线控制器响应于所述第二控制指令,控制所述开关模组断开所述第一CC引脚与所述单总线控制器。The single bus controller controls the switch module to connect the first CC pin and the second CC pin in response to the first control instruction, and the single bus controller responds to the The second control instruction controls the switch module to disconnect the first CC pin from the single-bus controller. 9.根据权利要求8所述充电设备,其特征在于,在所述开关模组包括第一开关、第二开关、第三开关、第四开关、第二电阻、第三电阻、第四电阻和第五电阻,且所述第一开关、所述第二开关、所述第四开关为NMOS管,所述第三开关为PMOS管情况下,所述单总线控制器用于响应于所述第一控制指令,经所述单总线控制器的第二端输出第一低电平信号,所述单总线控制器还用于响应于所述第二控制指令,经所述单总线控制器的第三端输出第二低电平信号。9 . The charging device according to claim 8 , wherein the switch module comprises a first switch, a second switch, a third switch, a fourth switch, a second resistor, a third resistor, a fourth resistor and a fifth resistor, and the first switch, the second switch, and the fourth switch are NMOS transistors, and the third switch is a PMOS transistor, the single-bus controller is used to respond to the first switch a control instruction, outputting a first low-level signal via the second terminal of the single-bus controller, and the single-bus controller is further configured to respond to the second control instruction, outputting a first low-level signal via the third terminal of the single-bus controller The terminal outputs a second low-level signal. 10.根据权利要求7所述充电设备,其特征在于,在所述充电设备连接待充电设备的情况下,若所述待充电设备支持PD充电,则所述充电设备基于CC引脚上传输的CC信号对所述待充电设备进行PD充电;若所述待充电设备不支持PD充电,则所述充电设备基于D+引脚和D-引脚传输的通信信号对所述待充电设备进行非PD充电。10 . The charging device according to claim 7 , wherein, when the charging device is connected to a device to be charged, if the device to be charged supports PD charging, the charging device is based on the data transmitted on the CC pin. 11 . The CC signal performs PD charging on the device to be charged; if the device to be charged does not support PD charging, the charging device performs non-PD charging on the device to be charged based on the communication signals transmitted by the D+ pin and the D- pin. Charge.
CN202010674287.1A 2020-07-14 2020-07-14 Data line and charging equipment Active CN111817384B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010674287.1A CN111817384B (en) 2020-07-14 2020-07-14 Data line and charging equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010674287.1A CN111817384B (en) 2020-07-14 2020-07-14 Data line and charging equipment

Publications (2)

Publication Number Publication Date
CN111817384A true CN111817384A (en) 2020-10-23
CN111817384B CN111817384B (en) 2022-04-22

Family

ID=72842531

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010674287.1A Active CN111817384B (en) 2020-07-14 2020-07-14 Data line and charging equipment

Country Status (1)

Country Link
CN (1) CN111817384B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112952485A (en) * 2021-01-28 2021-06-11 深圳慧能泰半导体科技有限公司 Compatible charging cable and control method thereof
WO2022160295A1 (en) * 2021-01-29 2022-08-04 华为技术有限公司 Apparatus with forward/reverse plug interface, and detection method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150155729A1 (en) * 2012-06-21 2015-06-04 Cresyn Co., Ltd. Data cable for fast charging
CN108233130A (en) * 2017-08-01 2018-06-29 珠海市魅族科技有限公司 USB cable, USB interface and adapter
CN208158154U (en) * 2018-03-20 2018-11-27 新港海岸(北京)科技有限公司 Fast charge line and fast charging system
CN110534988A (en) * 2019-09-25 2019-12-03 上海爻火微电子有限公司 Type A-Type C cable and its cable chip

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150155729A1 (en) * 2012-06-21 2015-06-04 Cresyn Co., Ltd. Data cable for fast charging
CN108233130A (en) * 2017-08-01 2018-06-29 珠海市魅族科技有限公司 USB cable, USB interface and adapter
CN208158154U (en) * 2018-03-20 2018-11-27 新港海岸(北京)科技有限公司 Fast charge line and fast charging system
CN110534988A (en) * 2019-09-25 2019-12-03 上海爻火微电子有限公司 Type A-Type C cable and its cable chip

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112952485A (en) * 2021-01-28 2021-06-11 深圳慧能泰半导体科技有限公司 Compatible charging cable and control method thereof
WO2022160295A1 (en) * 2021-01-29 2022-08-04 华为技术有限公司 Apparatus with forward/reverse plug interface, and detection method

Also Published As

Publication number Publication date
CN111817384B (en) 2022-04-22

Similar Documents

Publication Publication Date Title
US20230134179A1 (en) Charging circuit and charging cable
KR101494900B1 (en) Mobile phone and method for charging through discernment charging cable
CN111817386B (en) Data line and charging device
CN111817380B (en) Chargers, cables, charging equipment and electronic equipment
CN111817382B (en) Charger, data line and charging equipment
WO2021135687A1 (en) Electronic device and accessory having both quick charging function and audio transmission function
CN103631744A (en) Accessory apparatus, system, and method for supporting hierarchical connection
CN109313626A (en) Universal Serial Bus (USB) Cable Type Detection and Control Technology
CN111509818B (en) Charger, data line and charging equipment
EP4160856B1 (en) Data line and charging device
CN111509815B (en) Data line and charging equipment
CN111817384A (en) Data cables and charging equipment
CN111817096B (en) Data line and charging equipment
CN114967894A (en) Electronic device, device identification method and charging system
WO2022012529A1 (en) Charger, data line and charging device
CN111509816B (en) Charger, data line and charging equipment
US10193286B2 (en) Electronic device and control method thereof
CN111817381B (en) Charger, data line and charging equipment
CN116632953A (en) Adapter device and associated electronic device
CN211239378U (en) Charging circuits and electronic equipment
JP2019109898A (en) Method, electronic device, and charger device for rapid USB charging
KR20160081676A (en) Travel adapter
US8266348B2 (en) System and method of communicating with portable devices
CN111817379B (en) Charger, data line and charging equipment
CN223181528U (en) Data line

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