[go: up one dir, main page]

CN110190641A - Charging control circuit, terminal equipment and data line - Google Patents

Charging control circuit, terminal equipment and data line Download PDF

Info

Publication number
CN110190641A
CN110190641A CN201910356271.3A CN201910356271A CN110190641A CN 110190641 A CN110190641 A CN 110190641A CN 201910356271 A CN201910356271 A CN 201910356271A CN 110190641 A CN110190641 A CN 110190641A
Authority
CN
China
Prior art keywords
data line
interface
pull
terminal
terminal device
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
CN201910356271.3A
Other languages
Chinese (zh)
Other versions
CN110190641B (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 CN201910356271.3A priority Critical patent/CN110190641B/en
Publication of CN110190641A publication Critical patent/CN110190641A/en
Priority to PCT/CN2020/085650 priority patent/WO2020221043A1/en
Application granted granted Critical
Publication of CN110190641B publication Critical patent/CN110190641B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • 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
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/0077

Landscapes

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

Abstract

本发明实施例公开了一种充电控制电路、终端设备及数据线。其中,该充电控制电路包括:检测模块,用于与终端设备的第一接口连接,获取与第一接口连接的数据线的电流限值;其中,第一接口包括Type‑C接口,Type‑C接口包括SBU1引脚和SBU2引脚;控制模块,用于根据检测模块的检测结果对充电过程中数据线上的电流进行控制,以使电流不超过数据线的电流限值。利用本发明实施例,保证具有不同电流限值的数据线在安全条件下为终端设备充电的同时,降低数据线的设计难度以及制作成本。

The embodiment of the invention discloses a charging control circuit, a terminal device and a data line. Wherein, the charging control circuit includes: a detection module, which is used to connect to the first interface of the terminal device, and obtain the current limit value of the data line connected to the first interface; wherein, the first interface includes a Type-C interface, Type-C The interface includes SBU1 pin and SBU2 pin; the control module is used to control the current on the data line during the charging process according to the detection result of the detection module, so that the current does not exceed the current limit of the data line. The embodiment of the present invention ensures that the data lines with different current limit values can charge the terminal equipment under safe conditions, and at the same time reduces the design difficulty and production cost of the data lines.

Description

充电控制电路、终端设备及数据线Charging control circuit, terminal equipment and data line

技术领域technical field

本发明实施例涉及终端设备技术领域,尤其涉及一种充电控制电路、终端设备及数据线。The embodiments of the present invention relate to the technical field of terminal equipment, and in particular, to a charging control circuit, a terminal equipment, and a data line.

背景技术Background technique

随着终端设备在生活中使用频率的增加,终端设备充电的问题成为人们关注的问题。终端设备充电时,可以利用快速充电技术通过数据线连接电源的方式进行充电。在这种情况下,由于充电速度变快,会使数据线上流过的电流变大,电流越大,数据线上的温升就会越高。如果一个支持快速充电技术的终端设备搭配了一个不支持快速充电技术的数据线进行充电,在充电过程中,由于流过数据线的电流过大,会出现烧坏数据线的风险。With the increase in frequency of use of terminal devices in daily life, the problem of terminal device charging has become a concern of people. When the terminal device is charging, it can be charged by using the fast charging technology to connect to the power supply through the data cable. In this case, since the charging speed becomes faster, the current flowing through the data line becomes larger, and the larger the current, the higher the temperature rise on the data line. If a terminal device that supports fast charging technology is charged with a data cable that does not support fast charging technology, during the charging process, due to the excessive current flowing through the data cable, there will be a risk of burning the data cable.

目前,针对该风险,主要是在数据线上设置识别芯片,用于表示数据线最大能够承受的过流能力,以便终端设备对其进行识别,并对充电过程中经过数据线上的电流进行控制。但是,该方案会提高数据线的制作成本。At present, in response to this risk, it is mainly to set an identification chip on the data line to indicate the maximum overcurrent capacity that the data line can withstand, so that the terminal equipment can identify it and control the current passing through the data line during the charging process. . However, this solution will increase the manufacturing cost of the data line.

发明内容Contents of the invention

本发明实施例提供一种充电控制电路、终端设备及数据线,以保证数据线为终端设备安全充电的同时,解决数据线制作成本较高的问题。Embodiments of the present invention provide a charging control circuit, a terminal device, and a data line, so as to ensure that the data line safely charges the terminal device and solve the problem of high manufacturing cost of the data line.

为了解决上述技术问题,本发明是这样实现的:In order to solve the problems of the technologies described above, the present invention is achieved in that:

第一方面,本发明实施例提供了一种充电控制电路,应用于终端设备,该充电控制电路可以包括:In the first aspect, an embodiment of the present invention provides a charging control circuit, which is applied to a terminal device, and the charging control circuit may include:

检测模块,用于与终端设备的第一接口连接,获取与第一接口连接的数据线的电流限值;其中,第一接口包括Type-C接口,Type-C接口包括SBU1引脚和SBU2引脚;The detection module is used to connect to the first interface of the terminal device, and obtain the current limit value of the data line connected to the first interface; wherein, the first interface includes a Type-C interface, and the Type-C interface includes SBU1 pins and SBU2 pins foot;

控制模块,用于根据检测模块的检测结果对充电过程中数据线上的电流进行控制,以使电流不超过数据线的电流限值。The control module is used to control the current on the data line during the charging process according to the detection result of the detection module, so that the current does not exceed the current limit of the data line.

第二方面,本发明实施例提供了一种终端设备,包括如第一方面中涉及的充电控制电路。In a second aspect, an embodiment of the present invention provides a terminal device, including the charging control circuit as mentioned in the first aspect.

第三方面,本发明实施例提供了一种充电控制方法,应用于如第二方面中涉及的终端设备包括:In the third aspect, the embodiment of the present invention provides a charging control method, which is applied to the terminal device involved in the second aspect, including:

在数据线与终端设备的第一接口电连接时,获取与第一接口连接的数据线的电流限值;其中,第一接口包括Type-C接口,Type-C接口包括SBU1引脚和SBU2引脚;When the data line is electrically connected to the first interface of the terminal device, the current limit value of the data line connected to the first interface is obtained; wherein, the first interface includes a Type-C interface, and the Type-C interface includes SBU1 pins and SBU2 pins foot;

根据检测模块的检测结果对充电过程中数据线上的电流进行控制,以使电流不超过数据线的电流限值According to the detection result of the detection module, the current on the data line during the charging process is controlled so that the current does not exceed the current limit of the data line

第四方面,本发明实施例提供了一种Type-C数据线,包括:第二阻抗元件,第二阻抗元件与数据线的第二接口连接,用于在数据线的第一接口与终端设备的第二接口连接之后形成分压电路;其中,In a fourth aspect, the embodiment of the present invention provides a Type-C data line, including: a second impedance element, the second impedance element is connected to the second interface of the data line, and is used to communicate with the terminal device at the first interface of the data line After the second interface is connected, a voltage divider circuit is formed; wherein,

第一接口中的SBU1引脚与第二接口中的SBU1引脚连接;The SBU1 pin in the first interface is connected to the SBU1 pin in the second interface;

第二接口中的SBU2引脚与第二接口中的SBU2引脚连接。The SBU2 pin in the second interface is connected to the SBU2 pin in the second interface.

在本发明实施例中,终端设备通过在与数据线连接的第一接口处设置充电控制电路,使充电控制电路与数据线中的阻抗元件形成分压电路,终端设备通过获取分压电路的电压信号,确定数据线的电流限值,以便终端设备对充电过程中数据线上的电流进行控制,使数据线上的电流不超过数据线的电流限值。可以实现,数据线在安全条件下为终端设备充电的同时,降低数据线的设计难度以及制作成本。In the embodiment of the present invention, the terminal device sets the charging control circuit at the first interface connected to the data line, so that the charging control circuit and the impedance element in the data line form a voltage divider circuit, and the terminal device obtains the voltage of the voltage divider circuit signal to determine the current limit of the data line, so that the terminal device can control the current on the data line during the charging process, so that the current on the data line does not exceed the current limit of the data line. It can be realized that while the data line charges the terminal equipment under safe conditions, the design difficulty and production cost of the data line are reduced.

附图说明Description of drawings

从下面结合附图对本发明的具体实施方式的描述中可以更好地理解本发明其中,相同或相似的附图标记表示相同或相似的特征。The present invention can be better understood from the following description of specific embodiments of the present invention in conjunction with the accompanying drawings, wherein the same or similar reference numerals represent the same or similar features.

图1示出了本发明实施例的充电控制电路的结构示意图;FIG. 1 shows a schematic structural diagram of a charging control circuit according to an embodiment of the present invention;

图2示出了本发明一个实施例的终端设备中的电路结构图;Fig. 2 shows a circuit structure diagram in a terminal device according to an embodiment of the present invention;

图3示出了本发明一个实施例的数据线的电路结构图;Fig. 3 shows a circuit structure diagram of a data line according to an embodiment of the present invention;

图4示出了本发明一个实施例的终端设备和数据线连接时的电路结构图;Fig. 4 shows a circuit structure diagram when a terminal device and a data line are connected according to an embodiment of the present invention;

图5示出了本发明另一个实施例的终端设备和数据线连接时的电路结构图;FIG. 5 shows a circuit structure diagram when a terminal device and a data line are connected according to another embodiment of the present invention;

图6示出了本发明实施例的充电控制方法的流程示意图;FIG. 6 shows a schematic flowchart of a charging control method according to an embodiment of the present invention;

图7为实现本发明实施例的一种终端设备的硬件结构示意图。FIG. 7 is a schematic diagram of a hardware structure of a terminal device implementing an embodiment of the present invention.

具体实施方式Detailed ways

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

为了解决目前出现的技术问题,本发明实施例提供了一种充电控制电路、终端设备、方法、以及数据线。In order to solve the current technical problems, the embodiments of the present invention provide a charging control circuit, a terminal device, a method, and a data line.

首先,结合图1对本发明实施例提供的充电控制电路进行详细描述。Firstly, the charging control circuit provided by the embodiment of the present invention will be described in detail with reference to FIG. 1 .

如图1所示,应用于终端设备中的充电控制电路10包括:检测模块110和控制模块120。As shown in FIG. 1 , the charging control circuit 10 applied to a terminal device includes: a detection module 110 and a control module 120 .

其中,检测模块110用于与终端设备的第一接口连接,获取与第一接口连接的数据线的电流限值。其中,第一接口可以是Type-C接口,Type-C接口进一步包括SBU(Side banduse)1引脚和SBU2引脚。Wherein, the detection module 110 is configured to connect with the first interface of the terminal device, and acquire the current limit value of the data line connected with the first interface. Wherein, the first interface may be a Type-C interface, and the Type-C interface further includes SBU (Side banduse) 1 pins and SBU2 pins.

控制模块120,用于根据检测模块的检测结果对充电过程中数据线上的电流进行控制,以使电流不超过数据线的电流限值。The control module 120 is configured to control the current on the data line during charging according to the detection result of the detection module, so that the current does not exceed the current limit of the data line.

由此,本发明实施例提供的充电控制电路10,通过在与数据线连接的第一接口处设置充电控制电路,使充电控制电路与数据线中的阻抗元件形成分压电路,终端设备通过获取充电过程中数据线上的电流,确定数据线的电流限值,以便终端设备对充电过程中数据线上的电流进行控制,使数据线上的电流不超过数据线的电流限值。Therefore, in the charging control circuit 10 provided by the embodiment of the present invention, by setting the charging control circuit at the first interface connected to the data line, the charging control circuit and the impedance element in the data line form a voltage divider circuit, and the terminal device obtains The current on the data line during the charging process determines the current limit of the data line, so that the terminal device can control the current on the data line during the charging process, so that the current on the data line does not exceed the current limit of the data line.

另外,本发明实施例提供的第一接口可以包括用于充电的充电端子和用于检测数据线的电流限值的连接端子。其中,用于充电的充电端子可以包括VBus引脚;用于检测数据线的电流限值的连接端子包括上述涉及到的SBU1引脚和SBU2引脚。In addition, the first interface provided by the embodiment of the present invention may include a charging terminal for charging and a connection terminal for detecting the current limit of the data line. Wherein, the charging terminal for charging may include the VBus pin; the connecting terminal for detecting the current limit of the data line includes the above-mentioned SBU1 pin and SBU2 pin.

下面结合图2、3分别对充电控制电路和数据线作进一步介绍。The charging control circuit and the data line are further introduced below in combination with FIGS. 2 and 3 respectively.

如图2所示,在本发明实施例的检测模块110中,具体可以包括第一阻抗元件210和电压采样电路220。As shown in FIG. 2 , the detection module 110 in the embodiment of the present invention may specifically include a first impedance element 210 and a voltage sampling circuit 220 .

其中,第一阻抗元件210与第一接口130连接;电压采样电路220用于采集终端设备中的第一接口130的电压信号。Wherein, the first impedance element 210 is connected to the first interface 130; the voltage sampling circuit 220 is used to collect the voltage signal of the first interface 130 in the terminal device.

进一步地,本发明实施例的第一阻抗元件210包括下拉电阻,下拉电阻的一端与第一接口130连接,下拉电阻的另一端与终端设备的电源连接。Further, the first impedance element 210 in the embodiment of the present invention includes a pull-down resistor, one end of the pull-down resistor is connected to the first interface 130 , and the other end of the pull-down resistor is connected to the power supply of the terminal device.

这里,在第一接口130与数据线连接的情况下,第一接口130与设置于数据线中的下拉电阻电连接。Here, in case the first interface 130 is connected to the data line, the first interface 130 is electrically connected to a pull-down resistor provided in the data line.

本发明实施例的第一接口130包括第一连接端子,第一阻抗元件包括第一上拉电阻,下拉电阻包括第一下拉电阻;第一上拉电阻的一端与第一连接端子连接,第一上拉电阻另一端与电源连接,第一接口130与数据线连接时,第一连接端子与第三连接端子电连接,第一下拉电阻的一端与第三连接端子连接,第一下拉电阻另一端用于与外接电源连接,其中,第三连接端子位于数据线的第二接口。The first interface 130 of the embodiment of the present invention includes a first connection terminal, the first impedance element includes a first pull-up resistor, and the pull-down resistor includes a first pull-down resistor; one end of the first pull-up resistor is connected to the first connection terminal, and the first pull-up resistor is connected to the first connection terminal. The other end of a pull-up resistor is connected to the power supply. When the first interface 130 is connected to the data line, the first connection terminal is electrically connected to the third connection terminal, and one end of the first pull-down resistor is connected to the third connection terminal. The other end of the resistor is used to connect to an external power supply, wherein the third connection terminal is located at the second interface of the data line.

本发明实施例的第一接口130还包括第二连接端子,第一阻抗元件还包括第二上拉电阻;下拉电阻还包括第二下拉电阻;第二上位电阻的一端与第二连接端子连接,第二上拉电阻的另一端与终端设备的电源连接,第一接口130与数据线连接时,第二连接端子与第四连接端子电连接;第二下拉电阻的一端与第四连接端子相连,第二下拉电阻的另一端用于与外接电源连接;其中,第四连接端子位于数据线的第二接口。The first interface 130 of the embodiment of the present invention also includes a second connection terminal, the first impedance element also includes a second pull-up resistor; the pull-down resistor also includes a second pull-down resistor; one end of the second upper resistor is connected to the second connection terminal, The other end of the second pull-up resistor is connected to the power supply of the terminal device. When the first interface 130 is connected to the data line, the second connection terminal is electrically connected to the fourth connection terminal; one end of the second pull-down resistor is connected to the fourth connection terminal, The other end of the second pull-down resistor is used to connect to an external power supply; wherein, the fourth connection terminal is located at the second interface of the data line.

本发明实施例的电压采样电路220包括第一数模转换器和第二数模转换器;其中,第一数模转换器分别与第一连接端子、控制模块连接;第二数模转换器分别与第二连接端子、控制模块连接。The voltage sampling circuit 220 of the embodiment of the present invention includes a first digital-to-analog converter and a second digital-to-analog converter; wherein, the first digital-to-analog converter is respectively connected to the first connection terminal and the control module; the second digital-to-analog converter is respectively Connect with the second connection terminal and the control module.

控制模块120,用于根据检测模块的检测结果,计算数据线的电流限值,然后,对充电过程中数据线上的电流进行控制。The control module 120 is configured to calculate the current limit of the data line according to the detection result of the detection module, and then control the current on the data line during the charging process.

如图3所示,在本发明实施例提供了一种数据线,该数据线包括:第二阻抗元件310,第二阻抗元件310与数据线的第二接口320连接,用于在数据线的第一接口与终端设备的第二接口320连接之后形成分压电路,以对数据线的电流限值进行检测。第一接口中的SBU1引脚与第二接口中的SBU1引脚连接;第一接口中的SBU2引脚与第二接口中的SBU2引脚连接。其中,本发明实施例中的数据线均可为Type-C数据线。第二接口可以是Type-C接口As shown in Figure 3, the embodiment of the present invention provides a data line, the data line includes: a second impedance element 310, the second impedance element 310 is connected to the second interface 320 of the data line, for After the first interface is connected to the second interface 320 of the terminal device, a voltage dividing circuit is formed to detect the current limit of the data line. The SBU1 pin in the first interface is connected to the SBU1 pin in the second interface; the SBU2 pin in the first interface is connected to the SBU2 pin in the second interface. Wherein, the data lines in the embodiments of the present invention can all be Type-C data lines. The second interface can be a Type-C interface

进一步地,第二阻抗元件包括下拉电阻,用于与第一接口中的SBU1引脚和/或SBU2引脚连接。进一步地,下拉电阻的一端与第一接口中的SBU1引脚和/或SBU2引脚连接,另一端与外接电源连接,外接电源可以包括:插座提供的电源。Further, the second impedance element includes a pull-down resistor for connecting with the SBU1 pin and/or the SBU2 pin in the first interface. Further, one end of the pull-down resistor is connected to the SBU1 pin and/or the SBU2 pin in the first interface, and the other end is connected to an external power supply, and the external power supply may include: power provided by the socket.

这里,当数据线中设置下拉电阻时,需要预先对下拉电阻的阻值进行预先配置。具体地,在对数据线进行生产时,根据数据线具有的不同的电流限值,对下拉电阻的电阻值进行配置,其配置关系主要是下拉电阻的电阻值与数据线具有的电流限值成反比关系,这样做的目的是,防止终端设备误判数据线的电流限值,以保证具有不同电流限值的数据线在安全条件下都可以为终端设备进行充电。Here, when the pull-down resistor is set in the data line, the resistance value of the pull-down resistor needs to be configured in advance. Specifically, when the data line is produced, the resistance value of the pull-down resistor is configured according to the different current limit values of the data line. The configuration relationship is mainly that the resistance value of the pull-down resistor is proportional to the current limit value of the data line. The purpose of this is to prevent the terminal equipment from misjudging the current limit of the data line, so as to ensure that the data lines with different current limit values can charge the terminal equipment under safe conditions.

具体地,当数据线与终端设备连接并为终端设备进行供电时,两者连接处的充电端子和连接端子发生短路时,连接端子的电压会被充电端子拉高,这里,终端设备将大电流的数据线误识别为小电流的数据线,要好于将小电流的数据线误识别为大电流的数据线。下面进行举例说明,当USB口内充电端子Vbus引脚和连接端子SBU引脚由进异物或者进液体引起短路时,SBU引脚的电压会被Vbus引脚拉高,终端设备根据SBU引脚的电压,判定与终端设备连接的数据线上的电阻为大电阻,从而确定该连接线的电流限值对应的电流值是小电流值,终端设备在充电过程中会以小电流值为标准对数据线上的电流进行控制,因为小电流值没有超过该数据线的电流限值对应的最大电流值,所以不会烧坏数据线。Specifically, when the data line is connected to the terminal device and supplies power to the terminal device, when a short circuit occurs between the charging terminal and the connecting terminal at the connection between the two, the voltage of the connecting terminal will be pulled up by the charging terminal. Here, the terminal device will draw a large current It is better to misidentify a data line with a low current as a data line with a low current than to misidentify a data line with a low current as a data line with a high current. The following is an example to illustrate, when the Vbus pin of the charging terminal in the USB port and the SBU pin of the connecting terminal are short-circuited by foreign objects or liquids, the voltage of the SBU pin will be pulled up by the Vbus pin, and the terminal device will adjust according to the voltage of the SBU pin. , it is determined that the resistance on the data line connected to the terminal device is a large resistance, so as to determine that the current value corresponding to the current limit of the connection line is a small current value, and the terminal device will use the small current value as a standard for the data line during charging. The current on the circuit is controlled, because the small current value does not exceed the maximum current value corresponding to the current limit of the data line, so the data line will not be burned.

此外,在另一种实例中,可以将上述数据线中的下拉电阻替换为接地电阻,下拉电阻在电路中的连接方式均与替换之后的接地电阻在电路中的连接方式相同,具体可以参照上述一种实例中的连接方式与功能。In addition, in another example, the pull-down resistor in the above data line can be replaced with a grounding resistor, and the connection mode of the pull-down resistor in the circuit is the same as that of the replaced grounding resistor in the circuit. For details, please refer to the above-mentioned Connection mode and function in an example.

由此,终端设备通过在与数据线连接的第一接口处设置充电控制电路,使充电控制电路与数据线中的阻抗元件形成分压电路,终端设备通过获取分压电路的电压信号,确定数据线的电流限值,以便终端设备对充电过程中数据线上的电流进行控制,使数据线上的电流不超过数据线的电流限值。可以实现,数据线在安全条件下为终端设备充电的同时,降低数据线的设计难度以及制作成本。Thus, the terminal device sets the charging control circuit at the first interface connected to the data line, so that the charging control circuit and the impedance element in the data line form a voltage divider circuit, and the terminal device determines the data by obtaining the voltage signal of the voltage divider circuit. The current limit of the data line, so that the terminal equipment can control the current on the data line during the charging process, so that the current on the data line does not exceed the current limit of the data line. It can be realized that while the data line charges the terminal equipment under safe conditions, the design difficulty and production cost of the data line are reduced.

下面具体结合图4和图5,对在终端设备与数据线连接的情况下进行详细说明。The following describes in detail the case where the terminal device is connected to the data line with reference to FIG. 4 and FIG. 5 .

图4示出了本发明一个实施例的终端设备和数据线连接时的电路结构图。Fig. 4 shows a circuit structure diagram when a terminal device is connected to a data line according to an embodiment of the present invention.

如图4所示,终端设备中的充电控制电路包括:检测模块和控制模块。As shown in Fig. 4, the charging control circuit in the terminal device includes: a detection module and a control module.

其中,检测模块包括:至少一个上拉电阻和至少一个数模转换器(Analog-to-Digital Converter,ADC);控制模块包括至少一个处理器,本发明实施例以中央处理器(Central Processing Unit,CPU)为例进行说明。其中,至少一个上拉电阻包括R1和R2;至少一个数模转换器包括ADC1和ADC2。Wherein, the detection module includes: at least one pull-up resistor and at least one digital-to-analog converter (Analog-to-Digital Converter, ADC); the control module includes at least one processor, and the embodiment of the present invention uses a central processing unit (Central Processing Unit, CPU) as an example. Wherein, at least one pull-up resistor includes R1 and R2; at least one digital-to-analog converter includes ADC1 and ADC2.

检测模块与终端设备中的第一接口连接。其中,第一接口可以为Type-C接口,第一连接端子包括SBU1(B8)引脚,第二连接端子包括SBU2(A8)引脚。The detection module is connected to the first interface in the terminal device. Wherein, the first interface may be a Type-C interface, the first connection terminal includes a SBU1 (B8) pin, and the second connection terminal includes an SBU2 (A8) pin.

基于上述充电控制电路,进一步地,R1的一端与SBU1(B8)引脚连接,R1的另一端与第一电源(VCC)连接。在R1和SBU1(B8)引脚之间的连接线上设置有连接点1,这里,ADC1连接连接点1,用于检测连接点1的电压信号。同理,R2的一端与SBU2(A8)引脚连接,R2的另一端与第一电源(VCC)连接。在R2和SBU2(A8)引脚之间的连接线上设置有连接点2,这里,ADC2连接连接点2。ADC1和ADC2分别与CPU连接。在此实例中,R1和R2的电阻值是相等的。Based on the above charging control circuit, further, one end of R1 is connected to the SBU1 (B8) pin, and the other end of R1 is connected to the first power supply (VCC). A connection point 1 is provided on the connection line between R1 and the SBU1 (B8) pin, where ADC1 is connected to the connection point 1 for detecting the voltage signal of the connection point 1. Similarly, one end of R2 is connected to the SBU2 (A8) pin, and the other end of R2 is connected to the first power supply (VCC). A connection point 2 is provided on the connection line between R2 and the SBU2 (A8) pin, where ADC2 is connected to the connection point 2. ADC1 and ADC2 are respectively connected with CPU. In this example, the resistance values of R1 and R2 are equal.

数据线具体可以包括:第二阻抗元件,第二阻抗元件与数据线的第二接口连接,其中,第二阻抗元件包括下拉电阻R3和R4;数据线的第二接口包括第二连接端子SBU1(B8)引脚和SBU2(A8)引脚。下拉电阻R3与SBU1(B8)引脚连接,下拉电阻R4与SBU2(A8)引脚连接。这里,选择SBU1引脚和SBU2引脚,是因为这两个引脚在包括USB-A to USB-C双端口转接器的数据线上没有明确的功能定义,所以本发明实施例将在数据线的这两个引脚处,增加两个下拉电阻R3和R4,用于在数据线与终端设备连接之后形成分压电路。The data line may specifically include: a second impedance element connected to the second interface of the data line, wherein the second impedance element includes pull-down resistors R3 and R4; the second interface of the data line includes a second connection terminal SBU1 ( B8) pin and SBU2 (A8) pin. The pull-down resistor R3 is connected to the SBU1 (B8) pin, and the pull-down resistor R4 is connected to the SBU2 (A8) pin. Here, the SBU1 pin and the SBU2 pin are selected because these two pins have no clear functional definition on the data line including the USB-A to USB-C dual-port adapter, so the embodiment of the present invention will be in the data At these two pins of the line, two pull-down resistors R3 and R4 are added to form a voltage divider circuit after the data line is connected to the terminal device.

进一步地,R3的一端与SBU1(B8)引脚连接,另一端与数据线连接的外接电源相连。同理,R4的一端与SBU2(A8)引脚连接,另一端与数据线连接的外接电源相连。在此实例中,需要对R3和R4的电阻值预先进行配置,具体配置如表1所示:Further, one end of R3 is connected to the SBU1 (B8) pin, and the other end is connected to an external power supply connected to the data line. Similarly, one end of R4 is connected to the SBU2 (A8) pin, and the other end is connected to the external power supply connected to the data line. In this example, the resistance values of R3 and R4 need to be configured in advance, and the specific configuration is shown in Table 1:

表1Table 1

数据线过流能力Data line overcurrent capability R3电阻值R3 resistance value R4电阻值R4 resistance value I1I1 R11R11 R21R21 I2I2 R12R12 R22R22 I3I3 R13R13 R23R23

其中,R3=R4;I1<I2<I3;R11<R12<R13,这里,数据线电流限值与数据线上配置的下拉电阻的阻值呈反比关系。Wherein, R3=R4; I1<I2<I3; R11<R12<R13, here, the current limit of the data line is inversely proportional to the resistance value of the pull-down resistor configured on the data line.

当数据线连接外接电源为终端设备充电时,充电控制电路与数据线电连接,以形成如下结构:When the data line is connected to an external power supply to charge the terminal device, the charging control circuit is electrically connected to the data line to form the following structure:

终端设备中的SBU1(B8)引脚与数据线中SBU1(B8)引脚相连接,这里,当两个引脚内阻足够小时,可将两个引脚当作连接线,将R1和R3串联连接。由此,终端设备中的电源和R1与数据线连接的外接电源和R3通过两个引脚的连接形成了分压电路1,这里,检测点1设置在R1和终端设备中的SBU1(B8)引脚之间(包含引脚处),ADC1连接检测点1,检测分压电路1的信号,并将信号1发送到CPU中。The SBU1 (B8) pin in the terminal equipment is connected to the SBU1 (B8) pin in the data line. Here, when the internal resistance of the two pins is small enough, the two pins can be used as connecting lines, and R1 and R3 connected in series. Thus, the power supply in the terminal equipment, the external power supply connected to R1 and the data line, and R3 form a voltage divider circuit 1 through the connection of two pins. Here, the detection point 1 is set at R1 and SBU1 (B8) in the terminal equipment. Between the pins (including the pins), ADC1 is connected to the detection point 1, detects the signal of the voltage divider circuit 1, and sends the signal 1 to the CPU.

同理,终端设备中的SBU2(A8)引脚与数据线中SBU2(A8)引脚相连接,这里,当两个引脚内阻足够小时,可将两个引脚当作连接线,将R2和R4串联连接。由此,终端设备中的电源和R2与数据线连接的外接电源和R4通过两个引脚的连接形成了分压电路2,这里,检测点2设置在R2和终端设备中的SBU2(A8)引脚之间(包含引脚处),ADC2连接检测点2,检测分压电路2的信号,并将信号2发送到CPU中。Similarly, the SBU2 (A8) pin in the terminal equipment is connected to the SBU2 (A8) pin in the data line. Here, when the internal resistance of the two pins is small enough, the two pins can be used as a connecting line, and the R2 and R4 are connected in series. Thus, the power supply in the terminal equipment and the external power supply connected to R2 and the data line and R4 form a voltage divider circuit 2 through the connection of two pins. Here, the detection point 2 is set at R2 and SBU2 (A8) in the terminal equipment Between the pins (including the pins), ADC2 is connected to the detection point 2, detects the signal of the voltage divider circuit 2, and sends the signal 2 to the CPU.

基于上述结构,本发明实施例提供的充电控制原理如下:Based on the above structure, the charging control principle provided by the embodiment of the present invention is as follows:

具有不同电流限值的数据线与终端设备连接之后,开启ADC1和ADC2分别检测检测点1和2的电压信号,将信号1和2发送到CPU。CPU根据接收到的信号1和2,选取其中一个信号计算数据线的电流限值对应的最大电流值,也就是说,当任意一个ADC采集到信号时,就可以判定与终端设备相连的是具备哪一个等级的电流限值的数据线。为了避免数据线和终端设备在充电过程中不适配,导致烧坏数据线的风险,终端设备根据数据线的电流限值控制在终端设备中的电源抽取电流的大小,从而对充电过程中数据线上的电流进行控制,以使充电过程中数据线上的电流小于或等于数据线的电流限值。After the data lines with different current limits are connected to the terminal equipment, ADC1 and ADC2 are turned on to detect the voltage signals of detection points 1 and 2 respectively, and signals 1 and 2 are sent to the CPU. According to the received signals 1 and 2, the CPU selects one of the signals to calculate the maximum current value corresponding to the current limit of the data line. which level of current limit the data line. In order to avoid the data line and the terminal device from being incompatible during the charging process, resulting in the risk of burning the data line, the terminal device controls the current drawn by the power supply in the terminal device according to the current limit of the data line, so as to control the data during the charging process. The current on the line is controlled so that the current on the data line during charging is less than or equal to the current limit of the data line.

例如,结合表1:当CPU确定ADC1检测到的是R11或者ADC2检测到的是R21,则CPU判定为终端设备连接的数据线是表示过流能力I1的数据线,整个充电过程中,要控制数据线上流过的电流不大于I1。For example, combined with Table 1: When the CPU determines that ADC1 detects R11 or ADC2 detects R21, the CPU determines that the data line connected to the terminal device is the data line indicating the overcurrent capability I1. During the entire charging process, control The current flowing through the data line is not greater than I1.

或者,当CPU确定ADC1检测到的是R12或者ADC2检测到的是R22,则CPU判定为终端设备连接的数据线是表示过流能力I2的数据线,整个充电过程中,要控制数据线上流过的电流不大于I2。Or, when the CPU determines that ADC1 detects R12 or ADC2 detects R22, the CPU determines that the data line connected to the terminal device is the data line indicating the overcurrent capability I2. During the entire charging process, it is necessary to control the data line to flow The current is not greater than I2.

或者,当CPU确定ADC1检测到的是R13或者ADC2检测到的是R23,则CPU判定为终端设备连接的数据线是表示过流能力I3的数据线,整个充电过程中,要控制数据线上流过的电流不大于I3。Or, when the CPU determines that ADC1 detects R13 or ADC2 detects R23, the CPU determines that the data line connected to the terminal device is the data line indicating the overcurrent capability I3. During the entire charging process, it is necessary to control the data line to flow The current is not greater than I3.

此外,可以得出,当上拉电阻、下拉电阻、终端设备中的连接端子和数据线中的连接端子的个数分别为多个时,4者的连接方式均可以参照上述的连接方式一一对应连接。In addition, it can be concluded that when the numbers of the pull-up resistor, the pull-down resistor, the connection terminals in the terminal device and the connection terminals in the data line are respectively multiple, the connection methods of the four can refer to the above-mentioned connection methods one by one corresponding connection.

另外,图5示出了本发明另一个实施例的终端设备和数据线连接时的电路结构图。In addition, FIG. 5 shows a circuit structure diagram of another embodiment of the present invention when a terminal device is connected to a data line.

如图5所示,与图4中的充电控制电路不同的是,在第一阻抗元件中仅包含一个下拉电阻R3,R3可以与SBU1(B8)引脚或者SBU2(A8)引脚连接。这样,与图2中结论不同的是,因为数据线中仅有一个下拉电阻,所以,仅可以实现上述两个分压电路中的任意一个。故而,ADC仅连接到一个检测点,测量一个分压电路的信号。ADC将信号发送到CPU中,CPU根据信号确定数据线的电流限值。该结构也可以在保证数据线在安全条件下为终端设备充电的同时,达到降低数据线的设计难度以及制作成本的目的。As shown in FIG. 5 , the difference from the charge control circuit in FIG. 4 is that only one pull-down resistor R3 is included in the first impedance element, and R3 can be connected to the SBU1 (B8) pin or the SBU2 (A8) pin. In this way, different from the conclusion in FIG. 2, since there is only one pull-down resistor in the data line, only any one of the above two voltage dividing circuits can be implemented. Therefore, the ADC is only connected to one detection point and measures the signal of one voltage divider circuit. The ADC sends the signal to the CPU, and the CPU determines the current limit of the data line based on the signal. This structure can also achieve the purpose of reducing the design difficulty and production cost of the data line while ensuring that the data line charges the terminal equipment under safe conditions.

图6示出了本发明实施例的充电控制方法的流程示意图。应用于包括图1中的充电控制电路的终端设备,如图6所示,该方法具体包括:S610-S620,如下所示:Fig. 6 shows a schematic flowchart of a charging control method according to an embodiment of the present invention. Applied to a terminal device including the charging control circuit in Figure 1, as shown in Figure 6, the method specifically includes: S610-S620, as shown below:

S610:在数据线与终端设备的第一接口点连接时,获取与第一接口连接的数据线的电流限值;其中,第一接口包括Type-C接口,Type-C接口包括SBU1引脚和SBU2引脚。S610: When the data line is connected to the first interface point of the terminal device, obtain the current limit value of the data line connected to the first interface; wherein, the first interface includes a Type-C interface, and the Type-C interface includes an SBU1 pin and SBU2 pin.

S620:根据检测模块的检测结果对充电过程中数据线上的电流进行控制,以使电流不超过数据线的电流限值。S620: Control the current on the data line during charging according to the detection result of the detection module, so that the current does not exceed the current limit of the data line.

本发明实施例的充电控制方法,基于在与数据线连接的第一接口处设置充电控制电路,使充电控制电路与数据线中的阻抗元件形成分压电路,通过获取分压电路的电压信号,确定数据线的电流限值,以便终端设备对充电过程中数据线上的电流进行控制,使数据线上的电流不超过数据线的电流限值。可以实现,数据线在安全条件下为终端设备充电的同时,降低数据线的设计难度以及制作成本。The charging control method of the embodiment of the present invention is based on setting a charging control circuit at the first interface connected to the data line, so that the charging control circuit and the impedance element in the data line form a voltage dividing circuit, and by obtaining the voltage signal of the voltage dividing circuit, Determine the current limit of the data line, so that the terminal device controls the current on the data line during charging, so that the current on the data line does not exceed the current limit of the data line. It can be realized that while the data line charges the terminal equipment under safe conditions, the design difficulty and production cost of the data line are reduced.

图7为实现本发明实施例的一种终端设备的硬件结构示意图。FIG. 7 is a schematic diagram of a hardware structure of a terminal device implementing an embodiment of the present invention.

如图7所示,该终端设备700包括但不限于:射频模块706、网络模块702、音频输出模块703、输入模块704、传感器705、显示模块706、用户输入模块707、接口模块708、存储器709、处理器710、以及电源711等部件。本领域技术人员可以理解,图7中示出的终端设备结构并不构成对终端设备的限定,终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,终端设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、以及计步器等。As shown in Figure 7, the terminal device 700 includes, but is not limited to: a radio frequency module 706, a network module 702, an audio output module 703, an input module 704, a sensor 705, a display module 706, a user input module 707, an interface module 708, and a memory 709 , processor 710, and power supply 711 and other components. Those skilled in the art can understand that the terminal device structure shown in FIG. 7 does not constitute a limitation on the terminal device, and the terminal device may include more or less components than shown in the figure, or combine some components, or different components layout. In the embodiment of the present invention, the terminal devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminal devices, wearable devices, and pedometers.

本发明实施例的终端设备还包括检测模块(图7并未示出)和控制模块(图7并未示出)。其中,检测模块的一个输入端与物理接口(包括第一接口)连接,检测模块的输出端与控制模块的输入端连接。其中,接口单元508包括物理接口。The terminal device in the embodiment of the present invention further includes a detection module (not shown in FIG. 7 ) and a control module (not shown in FIG. 7 ). Wherein, one input end of the detection module is connected to the physical interface (including the first interface), and the output end of the detection module is connected to the input end of the control module. Wherein, the interface unit 508 includes a physical interface.

控制模块,用于根据检测模块的检测结果对充电过程中数据线上的电流进行控制,以使所述电流不超过所述数据线的电流限值。其中,检测模块包括处理器710。The control module is used to control the current on the data line during charging according to the detection result of the detection module, so that the current does not exceed the current limit of the data line. Wherein, the detection module includes a processor 710 .

终端设备通过在与数据线连接的第一接口处设置检测模块和控制模块,使充电控制电路与数据线中的阻抗元件形成分压电路,终端设备通过获取分压电路的电压信号,确定数据线的电流限值,以便终端设备对充电过程中数据线上的电流进行控制,使数据线上的电流不超过数据线的电流限值。可以实现,数据线在安全条件下为终端设备充电的同时,降低数据线的设计难度以及制作成本。The terminal device sets the detection module and the control module at the first interface connected to the data line, so that the charging control circuit and the impedance element in the data line form a voltage divider circuit, and the terminal device determines the voltage of the data line by obtaining the voltage signal of the voltage divider circuit. The current limit of the data line, so that the terminal equipment can control the current on the data line during the charging process, so that the current on the data line does not exceed the current limit of the data line. It can be realized that while the data line charges the terminal equipment under safe conditions, the design difficulty and production cost of the data line are reduced.

应理解的是,本发明实施例中,射频模块706可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器760处理;另外,将上行的数据发送给基站。通常,射频模块706包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频模块706还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency module 706 can be used for receiving and sending signals during sending and receiving information or during a call. Specifically, the downlink data from the base station is received and processed by the processor 760; Uplink data is sent to the base station. Generally, the radio frequency module 706 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency module 706 can also communicate with the network and other devices through a wireless communication system.

终端设备通过网络模块702为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The terminal device provides users with wireless broadband Internet access through the network module 702, such as helping users send and receive emails, browse web pages, and access streaming media.

音频输出模块703可以将射频模块706或网络模块702接收的或者在存储器709中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出模块703还可以提供与终端设备700执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出模块703包括扬声器、蜂鸣器以及受话器等。The audio output module 703 may convert audio data received by the radio frequency module 706 or the network module 702 or stored in the memory 709 into an audio signal and output as sound. Moreover, the audio output module 703 may also provide audio output related to a specific function performed by the terminal device 700 (for example, call signal receiving sound, message receiving sound, etc.). The audio output module 703 includes a speaker, a buzzer, a receiver and the like.

输入模块704用于接收音频或视频信号。输入模块704可以包括图形处理器(Graphics Processing Unit,GPU)7041和麦克风7042,图形处理器7041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示模块706上。经图形处理器7041处理后的图像帧可以存储在存储器709(或其它存储介质)中或者经由射频模块706或网络模块702进行发送。麦克风7042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频模块706发送到移动通信基站的格式输出。The input module 704 is used for receiving audio or video signals. The input module 704 may include a graphics processing unit (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processing unit 7041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frames can be displayed on the display module 706 . The image frames processed by the graphics processor 7041 may be stored in the memory 709 (or other storage media) or sent via the radio frequency module 706 or the network module 702 . The microphone 7042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into an output format that can be sent to a mobile communication base station via the radio frequency module 706 in the case of a phone call mode.

终端设备700还包括至少一种传感器705,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板7061的亮度,接近传感器可在终端设备700移动到耳边时,关闭显示面板7061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器705还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The terminal device 700 also includes at least one sensor 705, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 7061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 7061 and the / or backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the posture of terminal equipment (such as horizontal and vertical screen switching, related games) , magnetometer posture calibration), vibration recognition-related functions (such as pedometer, knocking), etc.; the sensor 705 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.

显示模块706用于显示由用户输入的信息或提供给用户的信息。显示模块706可包括显示面板7061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板7061。The display module 706 is used to display information input by the user or information provided to the user. The display module 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.

用户输入模块707可用于接收输入的数字或字符信息,以及产生与终端设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入模块707包括触控面板7071以及其他输入设备7072。触控面板7071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板7071上或在触控面板7071附近的操作)。触控面板7071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器710,接收处理器710发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板7071。除了触控面板7071,用户输入模块707还可以包括其他输入设备7072。具体地,其他输入设备7072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input module 707 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the terminal device. Specifically, the user input module 707 includes a touch panel 7071 and other input devices 7072 . The touch panel 7071, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 7071 or near the touch panel 7071). operate). The touch panel 7071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the For the processor 710, receive the command sent by the processor 710 and execute it. In addition, the touch panel 7071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 7071 , the user input module 707 may also include other input devices 7072 . Specifically, other input devices 7072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

进一步的,触控面板7071可覆盖在显示面板7061上,当触控面板7071检测到在其上或附近的触摸操作后,传送给处理器710以确定触摸事件的类型,随后处理器710根据触摸事件的类型在显示面板7061上提供相应的视觉输出。虽然在图7中,触控面板7071与显示面板7061是作为两个独立的部件来实现终端设备的输入和输出功能,但是在某些实施例中,可以将触控面板7071与显示面板7061集成而实现终端设备的输入和输出功能,具体此处不做限定。Furthermore, the touch panel 7071 can be covered on the display panel 7061. When the touch panel 7071 detects a touch operation on or near it, it will be sent to the processor 710 to determine the type of the touch event. The type of event provides a corresponding visual output on the display panel 7061. Although in FIG. 7, the touch panel 7071 and the display panel 7061 are used as two independent components to realize the input and output functions of the terminal device, in some embodiments, the touch panel 7071 and the display panel 7061 can be integrated The implementation of the input and output functions of the terminal device is not specifically limited here.

接口模块708为外部装置与终端设备700连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口模块708可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到终端设备700内的一个或多个元件或者可以用于在终端设备700和外部装置之间传输数据。The interface module 708 is an interface for connecting an external device to the terminal device 700 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface module 708 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.

另外,接口模块708还可以用于连接检测模块和数据线,以形成分压电路。In addition, the interface module 708 can also be used to connect the detection module and the data line to form a voltage dividing circuit.

存储器709可用于存储软件程序以及各种数据。存储器709可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器709可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 709 can be used to store software programs as well as various data. The memory 709 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 709 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

处理器710是终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分,通过运行或执行存储在存储器709内的软件程序和/或模块,以及调用存储在存储器709内的数据,执行终端设备的各种功能和处理数据,从而对终端设备进行整体监控。处理器710可包括一个或多个处理模块;优选的,处理器710可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器710中。The processor 710 is the control center of the terminal equipment, and uses various interfaces and lines to connect various parts of the entire terminal equipment, by running or executing software programs and/or modules stored in the memory 709, and calling data stored in the memory 709 , execute various functions of the terminal equipment and process data, so as to monitor the terminal equipment as a whole. The processor 710 may include one or more processing modules; preferably, the processor 710 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 710 .

终端设备700还可以包括给各个部件供电的电源711(即第一电源),优选的,电源711可以通过电源管理系统与处理器710逻辑连接,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The terminal device 700 may also include a power supply 711 (that is, a first power supply) for supplying power to various components. Preferably, the power supply 711 may be logically connected to the processor 710 through a power management system, so as to manage charging, discharging, and function through the power management system. Consumption management and other functions.

另外,终端设备700包括一些未示出的功能模块,在此不再赘述。In addition, the terminal device 700 includes some functional modules not shown, which will not be repeated here.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限值的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article or apparatus comprising that element.

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

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限值性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than limiting, and those of ordinary skill in the art Under the enlightenment of the present invention, many forms can also be made without departing from the gist of the present invention and the protection scope of the claims, all of which belong to the protection of the present invention.

Claims (10)

1. A charging control circuit is applied to terminal equipment and is characterized in that,
the detection module is used for being connected with a first interface of the terminal equipment and acquiring a current limit value of a data line connected with the first interface; the first interface comprises a Type-C interface, and the Type-C interface comprises an SBU1 pin and an SBU2 pin;
and the control module is used for controlling the current on the data line in the charging process according to the detection result of the detection module so that the current does not exceed the current limit value of the data line.
2. The circuit of claim 1, wherein the detection module comprises:
a first impedance element connected to the first interface;
and the voltage sampling circuit is used for acquiring the voltage signal of the first interface.
3. The circuit of claim 2, wherein the first impedance element comprises a pull-down resistor, one end of the pull-down resistor is connected to the first interface, and the other end of the pull-down resistor is connected to a power supply of the terminal device.
4. The circuit of claim 2, wherein when the first interface is connected to the data line, the first interface is electrically connected to a pull-down resistor disposed in the data line.
5. The circuit of claim 4, wherein the first interface comprises a first connection terminal, wherein the first impedance element comprises a first pull-up resistor, and wherein the pull-down resistor comprises a first pull-down resistor;
one end of the first pull-up resistor is connected with the first connecting terminal, and the other end of the first pull-up resistor is connected with a power supply of the terminal equipment; when the first interface is connected with the data line, the first connecting terminal is electrically connected with a third connecting terminal, one end of the first pull-down resistor is connected with the third connecting terminal, and the other end of the first pull-down resistor is used for being connected with an external power supply;
the third connecting terminal is located at a second interface of the data line.
6. The circuit of claim 4, wherein the first interface further comprises a second connection terminal; the first impedance element further comprises a second pull-up resistor; the pull-down resistor further comprises a second pull-down resistor;
one end of the second pull-up resistor is connected with the second connecting terminal, and the other end of the second pull-up resistor is connected with a power supply of the terminal equipment; when the first interface is connected with the data line, the second connecting terminal is electrically connected with the fourth connecting terminal; one end of the second pull-down resistor is connected with the fourth connecting terminal, and the other end of the second pull-down resistor is used for being connected with an external power supply;
the fourth connecting terminal is located at the second interface of the data line.
7. The circuit of claim 6, wherein the voltage sampling circuit comprises: a first digital-to-analog converter and a second digital-to-analog converter; wherein,
the first digital-to-analog converter is respectively connected with the first connecting terminal and the control module;
the second digital-to-analog converter is respectively connected with the second connecting terminal and the control module.
8. A terminal device characterized by comprising a charge control circuit according to any one of claims 1 to 7.
9. A Type-C data line, comprising: the second impedance element is connected with the second interface of the data line and used for forming a voltage division circuit after the first interface in the data line is connected with the second interface of the terminal equipment; wherein,
an SBU1 pin in the first interface is connected with an SBU1 pin in the second interface;
the SBU2 pin in the second interface is connected with the SBU2 pin in the second interface.
10. The data line of claim 9, wherein the second impedance element comprises a pull-down resistor for connection with SBU1 pin and/or SBU2 pin in the first interface.
CN201910356271.3A 2019-04-29 2019-04-29 Charging control circuit, terminal equipment and data cable Active CN110190641B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910356271.3A CN110190641B (en) 2019-04-29 2019-04-29 Charging control circuit, terminal equipment and data cable
PCT/CN2020/085650 WO2020221043A1 (en) 2019-04-29 2020-04-20 Charge control circuit, terminal device and data line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910356271.3A CN110190641B (en) 2019-04-29 2019-04-29 Charging control circuit, terminal equipment and data cable

Publications (2)

Publication Number Publication Date
CN110190641A true CN110190641A (en) 2019-08-30
CN110190641B CN110190641B (en) 2022-04-05

Family

ID=67715443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910356271.3A Active CN110190641B (en) 2019-04-29 2019-04-29 Charging control circuit, terminal equipment and data cable

Country Status (2)

Country Link
CN (1) CN110190641B (en)
WO (1) WO2020221043A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111509814A (en) * 2020-05-29 2020-08-07 维沃移动通信有限公司 Data line and charging equipment
WO2020221043A1 (en) * 2019-04-29 2020-11-05 维沃移动通信有限公司 Charge control circuit, terminal device and data line

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106170710A (en) * 2015-04-29 2016-11-30 广东欧珀移动通信有限公司 How to Identify the Type of Cable, Power Adapter and Cable
CN106445044A (en) * 2016-08-18 2017-02-22 硅谷数模半导体(北京)有限公司 Data conversion interface protection method and system
CN206353652U (en) * 2016-11-02 2017-07-25 上海传英信息技术有限公司 USB transmission line, mobile terminal
US20180069395A1 (en) * 2016-09-05 2018-03-08 Canon Kabushiki Kaisha Electronic device and method of controlling the same
CN207517932U (en) * 2017-08-01 2018-06-19 珠海市魅族科技有限公司 USB cable, USB interface and adapter
US20180314662A1 (en) * 2014-10-15 2018-11-01 Icron Techonologies Corporation Devices and methods for providing concurrent superspeed communication and four-lane displayport communication via a usb type-c receptacle

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101494900B1 (en) * 2007-07-25 2015-02-24 삼성전자주식회사 A portable terminal having a charging function through charging device identification and a method
CN104253458B (en) * 2013-06-28 2018-06-15 富泰华工业(深圳)有限公司 Performance Test System, test method and the electronic device of USB charge cables
CN104469347B (en) * 2014-12-08 2016-08-24 硅谷数模半导体(北京)有限公司 The testing circuit of video transmission cable and video frequency output chip
CN106129501B (en) * 2016-06-29 2019-05-03 珠海市魅族科技有限公司 A kind of method and device of terminal charge
CN110190641B (en) * 2019-04-29 2022-04-05 维沃移动通信有限公司 Charging control circuit, terminal equipment and data cable

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180314662A1 (en) * 2014-10-15 2018-11-01 Icron Techonologies Corporation Devices and methods for providing concurrent superspeed communication and four-lane displayport communication via a usb type-c receptacle
CN106170710A (en) * 2015-04-29 2016-11-30 广东欧珀移动通信有限公司 How to Identify the Type of Cable, Power Adapter and Cable
CN106445044A (en) * 2016-08-18 2017-02-22 硅谷数模半导体(北京)有限公司 Data conversion interface protection method and system
US20180069395A1 (en) * 2016-09-05 2018-03-08 Canon Kabushiki Kaisha Electronic device and method of controlling the same
CN206353652U (en) * 2016-11-02 2017-07-25 上海传英信息技术有限公司 USB transmission line, mobile terminal
CN207517932U (en) * 2017-08-01 2018-06-19 珠海市魅族科技有限公司 USB cable, USB interface and adapter

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020221043A1 (en) * 2019-04-29 2020-11-05 维沃移动通信有限公司 Charge control circuit, terminal device and data line
CN111509814A (en) * 2020-05-29 2020-08-07 维沃移动通信有限公司 Data line and charging equipment

Also Published As

Publication number Publication date
CN110190641B (en) 2022-04-05
WO2020221043A1 (en) 2020-11-05

Similar Documents

Publication Publication Date Title
CN108390117B (en) Charging method and mobile terminal
CN106412249A (en) Detection method and device of drop information
CN112148104B (en) Electronic device control method
CN107887947B (en) A charging port protection method and mobile terminal
CN110213686A (en) A kind of detection method and terminal of earphone socket
CN108829553A (en) Universal serial bus c-type interface detection circuit, detection method and electronic equipment
CN108767919A (en) A kind of charging unit, terminal device and charging method
EP4160428B1 (en) Interface circuit and electronic device
CN107834640A (en) A kind of charging method and terminal
CN105611446A (en) Selfie stick and selfie stick identification method, device and mobile terminal
CN110190641B (en) Charging control circuit, terminal equipment and data cable
CN108595352B (en) Protection method and device for mobile terminal
CN109151143B (en) Foreign matter detection structure and method and mobile terminal
CN109980727A (en) A kind of terminal, charger and charge protection method
CN105611445B (en) Recognition methods, device and the mobile terminal of self-shooting bar and self-shooting bar
CN108879856A (en) A kind of charging method and terminal
CN108845261A (en) A kind of electric quantity reminding method and terminal device
CN107728774A (en) Parameter regulation means and mobile terminal
CN111324498A (en) Hardware information detection device, identification device and method
CN108336775B (en) Charging method and mobile terminal
CN110825682B (en) USB control method and electronic equipment
CN110209543A (en) A kind of detection method and terminal of earphone socket
CN110620602A (en) Reverse charging and data transmission sharing system, multiplexing data line and electronic device
CN108458796A (en) A kind of temperature checking method and mobile terminal
CN107995372A (en) A kind of false touch ground connection identifying processing method, circuit and mobile terminal

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