Movatterモバイル変換


[0]ホーム

URL:


CN105790356A - Data line having charging circuit - Google Patents

Data line having charging circuit
Download PDF

Info

Publication number
CN105790356A
CN105790356ACN201610211118.8ACN201610211118ACN105790356ACN 105790356 ACN105790356 ACN 105790356ACN 201610211118 ACN201610211118 ACN 201610211118ACN 105790356 ACN105790356 ACN 105790356A
Authority
CN
China
Prior art keywords
interface
switch
port
voltage
voltage terminal
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
CN201610211118.8A
Other languages
Chinese (zh)
Other versions
CN105790356B (en
Inventor
周涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Eyes Intelligent Technology Co ltd
Beijing Eyecool Technology Co Ltd
Original Assignee
Beijing Techshino Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Techshino Technology Co LtdfiledCriticalBeijing Techshino Technology Co Ltd
Priority to CN201610211118.8ApriorityCriticalpatent/CN105790356B/en
Publication of CN105790356ApublicationCriticalpatent/CN105790356A/en
Application grantedgrantedCritical
Publication of CN105790356BpublicationCriticalpatent/CN105790356B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明公开了一种具有充电电路的数据线,该充电电路包括:第一接口、第二接口、第三接口、控制处理电路、第一开关电路和第二开关电路,其中第一接口电压端经第一开关电路连接第二接口电压端,第二接口电压端经第二开关电路连接第三接口电压端;控制处理电路用于根据第一接口电压端、第二接口电压端、第三接口电压端的电平,配置第二接口和第三接口的充放电状态,控制第一开关电路和/或第二开关电路导通,使第一接口的外部电源给第二接口和第三接口的电子设备充电,或者使第二接口的电子设备与第三接口的电子设备之间相互充电。本发明的具有充电电路的数据线可实现同时给多个电子设备充电,以及电子设备之间的相互充电。

The invention discloses a data line with a charging circuit. The charging circuit includes: a first interface, a second interface, a third interface, a control processing circuit, a first switch circuit and a second switch circuit, wherein the first interface voltage terminal The second interface voltage terminal is connected to the second interface voltage terminal through the first switch circuit, and the second interface voltage terminal is connected to the third interface voltage terminal through the second switch circuit; the control processing circuit is used to The level of the voltage terminal configures the charging and discharging states of the second interface and the third interface, controls the conduction of the first switch circuit and/or the second switch circuit, and makes the external power supply of the first interface supply to the electronics of the second interface and the third interface. The device is charged, or the electronic device on the second interface and the electronic device on the third interface are mutually charged. The data line with the charging circuit of the present invention can realize simultaneous charging of multiple electronic devices and mutual charging between the electronic devices.

Description

Translated fromChinese
一种具有充电电路的数据线A data line with a charging circuit

技术领域technical field

本发明涉及电子技术领域,特别涉及一种具有充电电路的数据线。The invention relates to the field of electronic technology, in particular to a data line with a charging circuit.

背景技术Background technique

随着电子技术的发展,便捷式电子设备的应用范围越来越广泛,种类也越来越多,例如:手机、蓝牙耳机、智能手表、智能手环等等,成为人们日常生活出行必不可少的装配。而给这些电子设备充电需要多条数据线,携带不方便。且普通USB线缆只能通过适配器或者PC的USB接口给手机等外设充电,当不存在适配器或PC时,只有手机有电时要想给其他的蓝牙耳机等设备充电时还需要一条OTG线缆,且手机只能给不带OTG功能的设备充电不能给手机等带OTG功能的设备充电。目前市场上还不存在这样一种既可以同时对多个设备充电,又可以用于移动设备之间充电的多功能数据线。With the development of electronic technology, the application range of portable electronic devices is becoming wider and wider, and there are more and more types, such as mobile phones, Bluetooth headsets, smart watches, smart bracelets, etc., which have become indispensable for people's daily travel assembly. However, charging these electronic devices requires multiple data lines, which is inconvenient to carry. And ordinary USB cables can only charge peripherals such as mobile phones through the USB interface of the adapter or PC. When there is no adapter or PC, only the mobile phone has power and an OTG cable is needed to charge other Bluetooth headsets and other devices. cable, and the mobile phone can only charge devices without OTG function and cannot charge mobile phones and other devices with OTG function. At present, there is no such multifunctional data cable that can charge multiple devices at the same time and be used for charging between mobile devices.

发明内容Contents of the invention

本发明的目的在于提供一种具有充电电路的数据线,该充电电路通过检测接口的电压状态,配置相应接口的充放电状态,实现一条数据线同时给多个电子设备充电,以及电子设备之间的相互充电。The purpose of the present invention is to provide a data line with a charging circuit. The charging circuit configures the charging and discharging state of the corresponding interface by detecting the voltage state of the interface, so that one data line can charge multiple electronic devices at the same time, and the electronic devices can be connected to each other. mutual charging.

本发明提供技术方案如下:The present invention provides technical scheme as follows:

一种具有充电电路的数据线,所述充电电路包括:第一接口、第二接口、第三接口、控制处理电路、第一开关电路和第二开关电路,所述第一接口电压端经第一开关电路连接第二接口电压端,所述第二接口电压端经第二开关电路连接第三接口电压端;A data line with a charging circuit, the charging circuit includes: a first interface, a second interface, a third interface, a control processing circuit, a first switch circuit and a second switch circuit, the voltage terminal of the first interface is A switch circuit is connected to the second interface voltage terminal, and the second interface voltage terminal is connected to the third interface voltage terminal through the second switch circuit;

所述控制处理电路用于根据第一接口电压端、第二接口电压端、第三接口电压端的电平,配置第二接口和第三接口的充放电状态,控制第一开关电路和/或第二开关电路导通,使第一接口的外部电源给第二接口和第三接口的电子设备充电,或者使第二接口的电子设备与第三接口的电子设备之间相互充电;其中,第一、二开关电路初始默认为断开状态。The control processing circuit is used to configure the charging and discharging states of the second interface and the third interface according to the levels of the first interface voltage terminal, the second interface voltage terminal, and the third interface voltage terminal, and control the first switch circuit and/or the second interface voltage terminal. The second switch circuit is turned on, so that the external power supply of the first interface charges the electronic equipment of the second interface and the third interface, or charges the electronic equipment of the second interface and the electronic equipment of the third interface; wherein, the first , The second switch circuit is initially in the disconnected state by default.

本发明具有以下有益效果:The present invention has the following beneficial effects:

本发明的一种具有充电电路的数据线包括多个接口、控制处理电路和多个开关电路,控制处理电路可自动检测多个接口接入的电压高低,控制多个开关电路的导通或关闭状态,配置相应接口的充放电状态,自动智能的实现数据线是同时给多个电子设备充电,还是电子设备之间的相互充电以及充电方向。本发明的具有充电电路的数据线其电路结构简单,控制智能,减少了用户携带数据线的数量,且当不存在适配器或PC时,方便用户用具有OTG功能的电子设备给不具有OTG功能的设备充电,或者实现具有OTG功能的电子设备之间相互充电,例如:具有OTG功能的手机给不具有OTG功能的蓝牙耳机充电或者手机与手机之间相互充电。A data line with a charging circuit of the present invention includes a plurality of interfaces, a control processing circuit and a plurality of switch circuits, the control processing circuit can automatically detect the voltage level connected to the multiple interfaces, and control the on or off of the multiple switch circuits Status, configure the charging and discharging status of the corresponding interface, automatically and intelligently realize whether the data line is charging multiple electronic devices at the same time, or charging each other and the charging direction between electronic devices. The data line with charging circuit of the present invention has simple circuit structure, intelligent control, reduces the number of data lines carried by the user, and when there is no adapter or PC, it is convenient for the user to use an electronic device with OTG function to charge an electronic device without OTG function. Device charging, or mutual charging between electronic devices with OTG function, for example: a mobile phone with OTG function charges a Bluetooth headset without OTG function or a mobile phone charges each other.

附图说明Description of drawings

图1为本发明提供的一种具有充电电路的数据线的一个实施例的结构示意图;Fig. 1 is a schematic structural view of an embodiment of a data line with a charging circuit provided by the present invention;

图2为本发明提供的一种具有充电电路的数据线的一个具体实施例的电路图。FIG. 2 is a circuit diagram of a specific embodiment of a data line with a charging circuit provided by the present invention.

具体实施方式detailed description

为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the following will describe in detail with reference to the drawings and specific embodiments.

请参阅图1及图2,本发明实施例提供一种具有充电电路的数据线100,其包括:第一接口10、第二接口20、第三接口30、控制处理电路40、第一开关电路50和第二开关电路60,其中:第一接口电压端经第一开关电路连接第二接口电压端,第二接口电压端经第二开关电路连接第三接口电压端,第一、第二及第三接口,第一及第二开关电路均连接控制处理电路。1 and 2, the embodiment of the present invention provides a data line 100 with a charging circuit, which includes: a first interface 10, a second interface 20, a third interface 30, a control processing circuit 40, a first switch circuit 50 and the second switch circuit 60, wherein: the first interface voltage end is connected to the second interface voltage end through the first switch circuit, the second interface voltage end is connected to the third interface voltage end through the second switch circuit, the first, second and In the third interface, both the first and second switch circuits are connected to the control processing circuit.

控制处理电路用于根据第一接口电压端、第二接口电压端、第三接口电压端的电平,配置第二接口和第三接口的充放电状态,控制第一开关电路和/或第二开关电路导通,使第一接口的外部电源给第二接口和第三接口的电子设备充电,或者使第二接口的电子设备与第三接口的电子设备之间相互充电;其中,第一、二开关电路初始默认为断开状态,默认将第一接口作为主接口,接入外部电源,如适配器或PC,第一、第二接口作为从接口,接入具有OTG功能的电子设备,或者接入不具有OTG功能的电子设备,此处所称带OTG功能的电子设备是指具有可对外放电功能的电子设备,例如:手机、ipad等,而不带OTG功能的电子设备是指不具有对外放电功能的电子设备,例如:蓝牙耳机、U盘等。The control processing circuit is used to configure the charge and discharge states of the second interface and the third interface according to the levels of the first interface voltage terminal, the second interface voltage terminal, and the third interface voltage terminal, and control the first switch circuit and/or the second switch The circuit is turned on, so that the external power supply of the first interface charges the electronic equipment of the second interface and the third interface, or charges the electronic equipment of the second interface and the electronic equipment of the third interface; wherein, the first and second The switch circuit is initially disconnected by default. By default, the first interface is used as the main interface to connect to an external power supply, such as an adapter or a PC. The first and second interfaces are used as slave interfaces to connect to electronic devices with OTG functions, or to connect to Electronic equipment without OTG function. The electronic equipment with OTG function referred to here refers to electronic equipment with external discharge function, such as mobile phones, ipads, etc. Electronic equipment without OTG function refers to electronic equipment without external discharge function. Electronic devices, such as Bluetooth headsets, U disks, etc.

上述实施例的一种具有充电电路的数据线是以三个接口、两个开关电路和控制处理电路的充电电路结构作为代表阐述本发明的技术方案,本发明的一种具有充电电路的数据线可包括三个以上的接口,及相应的两个以上开关电路,在第一个接口的电压端和最后一个接口的电压端之间串联连接多个开关电路,每两个开关电路的连接节点连接另一个接口的电压端,其中,第一个接口为主接口,其他接口为从接口,因其充电电路的原理相同,实现功能亦相同,此处不再一一阐述。A data line with a charging circuit in the above-mentioned embodiment uses the charging circuit structure of three interfaces, two switch circuits and a control processing circuit as a representative to illustrate the technical solution of the present invention. A data line with a charging circuit in the present invention It may include more than three interfaces, and more than two corresponding switch circuits, multiple switch circuits are connected in series between the voltage end of the first interface and the voltage end of the last interface, and the connection nodes of every two switch circuits are connected The voltage terminal of the other interface, in which the first interface is the main interface, and the other interfaces are slave interfaces, because the principle of the charging circuit is the same, and the functions are also the same, so it will not be elaborated here.

本发明实施例的一种具有充电电路的数据线包括多个接口、控制处理电路和多个开关电路,控制处理电路可自动检测多个接口接入的电压高低,控制多个开关电路的导通或关闭状态,配置相应接口的充放电状态,自动智能的实现数据线是同时给多个电子设备充电,还是电子设备之间的相互充电以及充电方向,其充电电路结构简单,控制智能,减少了用户携带数据线的数量,且当不存在适配器或PC时,方便用户用具有OTG功能的电子设备给不具有OTG功能的电子设备充电,或者实现具有OTG功能的电子设备之间相互充电,例如:具有OTG功能的手机给不具有OTG功能的蓝牙耳机充电或者手机与手机之间相互充电。A data line with a charging circuit according to an embodiment of the present invention includes a plurality of interfaces, a control processing circuit and a plurality of switch circuits, the control processing circuit can automatically detect the voltage level of the multiple interfaces, and control the conduction of the multiple switch circuits Or close state, configure the charge and discharge state of the corresponding interface, automatically and intelligently realize whether the data line charges multiple electronic devices at the same time, or charges each other and the charging direction between electronic devices. The charging circuit has a simple structure and intelligent control, which reduces the The number of data lines carried by the user, and when there is no adapter or PC, it is convenient for the user to use the electronic device with the OTG function to charge the electronic device without the OTG function, or to realize mutual charging between the electronic devices with the OTG function, for example: The mobile phone with OTG function charges the bluetooth earphone without OTG function or the mutual charging between mobile phones.

进一步的,当第一接口电压端为高电平时,控制处理电路配置第二接口和第三接口为充电状态,并控制第一开关电路和第二开关电路导通,使第一接口的外部电源给第二接口和第三接口的电子设备充电。当控制处理电路检测到第一接口电压端为高电平时,表明第一接口接入外部电源,无论第一、第二接口接入何种电子设备,均作为被充电设备。本发明实施例的一种具有充电电路的数据线可实现外部电源同时对多个电子设备充电。Further, when the voltage terminal of the first interface is at a high level, the control processing circuit configures the second interface and the third interface to be in the charging state, and controls the first switch circuit and the second switch circuit to conduct, so that the external power supply of the first interface Charge the electronic equipment on the second interface and the third interface. When the control processing circuit detects that the voltage terminal of the first interface is at a high level, it indicates that the first interface is connected to an external power supply, and no matter what kind of electronic equipment is connected to the first and second interfaces, it is regarded as a device to be charged. A data line with a charging circuit according to an embodiment of the present invention can realize simultaneous charging of multiple electronic devices by an external power source.

再进一步的,当第一接口电压端为低电平,第二接口电压端为高电平,第三接口为低电平时,控制处理电路配置第二接口为放电状态,第三接口为充电状态,并控制第二开关电路导通,使第二接口的电子设备给第三接口的电子设备充电;当第一接口电压端为低电平,第二接口电压端为低电平,第三接口为高电平时,控制处理电路配置第二接口为充电状态,第三接口为放电状态,并控制第二开关电路导通,使第三接口的电子设备给第二接口的电子设备充电。本发明实施例的一种具有充电电路的数据线可实现具有OTG功能的电子设备给不具有OTG功能的电子设备充电。Still further, when the voltage terminal of the first interface is at low level, the voltage terminal of the second interface is at high level, and the third interface is at low level, the control processing circuit configures the second interface to be in a discharging state and the third interface to be in a charging state , and control the conduction of the second switch circuit, so that the electronic equipment of the second interface charges the electronic equipment of the third interface; when the voltage terminal of the first interface is low level, the voltage terminal of the second interface is low level, and the third interface When the level is high, the control processing circuit configures the second interface to be in the charging state and the third interface to be in the discharging state, and controls the second switch circuit to conduct, so that the electronic equipment on the third interface charges the electronic equipment on the second interface. A data line with a charging circuit according to an embodiment of the present invention can enable an electronic device with an OTG function to charge an electronic device without an OTG function.

作为一个举例说明,当第一接口电压端为低电平,第二接口电压端为高电平,第三接口电压端为高电平时,控制处理电路配置第三接口为充电状态、第二接口为放电状态,并控制第二开关电路导通,使第二接口的电子设备给第三接口的电子设备充电。本发明实施例的一种具有充电电路的数据线可实现具有OTG功能的电子设备之间的相互充电,其采用默认配置充电方向的方式,当同时接入具有OTG功能的电子设备时,默认第二接口的电子设备给第三接口的电子设备充电。As an example, when the first interface voltage terminal is at a low level, the second interface voltage terminal is at a high level, and the third interface voltage terminal is at a high level, the control processing circuit configures the third interface to be in a charging state, and the second interface It is in a discharging state, and controls the conduction of the second switch circuit, so that the electronic equipment of the second interface charges the electronic equipment of the third interface. A data line with a charging circuit according to an embodiment of the present invention can realize mutual charging between electronic devices with an OTG function. It adopts a default charging direction configuration method. When an electronic device with an OTG function is connected at the same time, the default first The electronic equipment on the second interface charges the electronic equipment on the third interface.

作为一个举例说明,本发明实施例的一种具有充电电路的数据线还包括一切换开关70,切换开关连接控制处理电路;As an example, a data line with a charging circuit in an embodiment of the present invention further includes a switch 70, and the switch is connected to a control processing circuit;

在第一接口电压端为低电平,第二接口电压端为高电平,第三接口电压端为高电平,且切换开关被触发时,控制处理电路还用于配置第二接口为充电状态、配置第三接口为放电状态,并控制第二开关电路导通,使第三接口的电子设备给第二接口的电子设备充电。When the voltage terminal of the first interface is at low level, the voltage terminal of the second interface is at high level, and the voltage terminal of the third interface is at high level, and the switching switch is triggered, the control processing circuit is also used to configure the second interface as charging state, configure the third interface to be in a discharging state, and control the second switch circuit to conduct, so that the electronic equipment on the third interface charges the electronic equipment on the second interface.

作为另一个举例说明,当第一接口电压端为低电平,第二接口电压端为高电平,第三接口电压端为高电平时,控制处理电路配置第三接口为放电状态、第二接口为充电状态,并控制第二开关电路导通,使第三接口的电子设备给第二接口的电子设备充电。As another example, when the voltage terminal of the first interface is at a low level, the voltage terminal of the second interface is at a high level, and the voltage terminal of the third interface is at a high level, the control processing circuit configures the third interface to be in a discharging state, and the second interface voltage terminal is at a high level. The interface is in the charging state, and controls the second switch circuit to conduct, so that the electronic equipment of the third interface charges the electronic equipment of the second interface.

作为另一个举例说明,在第一接口电压端为低电平,第二接口电压端为高电平,第三接口电压端为高电平,且切换开关被触发时,控制处理电路还用于配置第二接口为放电状态、配置第三接口为充电状态,并控制第二开关电路导通,使第二接口的电子设备给第三接口的电子设备充电。As another example, when the first interface voltage terminal is at low level, the second interface voltage terminal is at high level, and the third interface voltage terminal is at high level, and the switching switch is triggered, the control processing circuit is also used to Configuring the second interface to be in a discharging state, configuring the third interface to be in a charging state, and controlling the conduction of the second switch circuit, so that the electronic equipment on the second interface charges the electronic equipment on the third interface.

本发明实施例的一种具有充电电路的数据线增加切换开关实现上述默认充电方向的切换,通过用户人为的触发切换开关,给予控制处理器切换信号,控制处理器通过配置第二、第三接口的充放电状态,实现第三接口的电子设备向第二接口的电子设备充电或者第二接口的电子设备向第三接口的电子设备充电。本发明实施例通过增加切换开关实现具有OTG功能的电子设备间充电方向的控制,相较于默认充电方向的方式以及通过比较移动设备电压高低决定充电方向的方式而言,用户可根据意愿确定充电方向,更加方便,体验性更好。According to an embodiment of the present invention, a data line with a charging circuit is added with a switching switch to realize the switching of the above-mentioned default charging direction. By manually triggering the switching switch by the user, a switching signal is given to the control processor, and the control processor configures the second and third interfaces. The charging and discharging state of the charging and discharging state realizes that the electronic device of the third interface charges the electronic device of the second interface or the electronic device of the second interface charges the electronic device of the third interface. In the embodiment of the present invention, the control of the charging direction between electronic devices with OTG function is realized by adding a toggle switch. Compared with the default charging direction method and the method of determining the charging direction by comparing the voltage level of the mobile device, the user can determine the charging direction according to his will. The direction is more convenient and the experience is better.

进一步的,本发明实施例的一种具有充电电路的数据线其控制处理电路包括一控制处理器41和用于配置第二接口、第三接口充放电状态的第一配置单元42和第二配置单元43,其中:控制处理器的输入端口包括电压端口,与第一接口电压端、第二接口电压端、第三接口电压端分别连接的第三电压检测端口、第二电压检测端口、第一电压检测端口,以及接地端口,其输出端口包括与第一配置单元和第二配置单元的输入口分别连接的第一配置端口、第二配置端口,以及与第一开关电路、第二开关电路分别连接的第一控制端口和第二控制端口,第一配置单元和第二配置单元的输出口分别连接第二接口和第三接口的状态端。Further, the control processing circuit of a data line with a charging circuit in the embodiment of the present invention includes a control processor 41 and a first configuration unit 42 and a second configuration unit 42 for configuring the charging and discharging states of the second interface and the third interface. Unit 43, wherein: the input port of the control processor includes a voltage port, a third voltage detection port, a second voltage detection port, a first A voltage detection port, and a grounding port, the output ports of which include a first configuration port and a second configuration port respectively connected to the input ports of the first configuration unit and the second configuration unit, and are respectively connected to the first switch circuit and the second switch circuit. The connected first control port and the second control port, the output ports of the first configuration unit and the second configuration unit are respectively connected to the state ports of the second interface and the third interface.

本发明实施例充电电路的具体电路连接可参阅图2所示,本发明实施例的控制处理器可为单片机处理芯片,如51单片机,其具体的输入/输出端口的功能可根据需要设定,参阅图2中的控制处理器U1包括电压端口VCC,GPIO1-3端口分别为第一电压检测端口、第二电压检测端口、第三电压检测端口,GPIO4和GPIO5端口分别为第一配置端口和第二配置端口,GPIO8和GPIO9端口分别为第一控制端口和第二控制端口,GPIO10可用于接入切换开关输入信号,接地端口GND以及其他备用端口GPIO11和GPIO12等。The specific circuit connection of the charging circuit in the embodiment of the present invention can be referred to as shown in Figure 2. The control processor in the embodiment of the present invention can be a single-chip microcomputer processing chip, such as a 51 single-chip microcomputer, and the functions of its specific input/output ports can be set as required. Referring to the control processor U1 in Fig. 2, it includes a voltage port VCC, the GPIO1-3 ports are respectively the first voltage detection port, the second voltage detection port, and the third voltage detection port, and the GPIO4 and GPIO5 ports are respectively the first configuration port and the second voltage detection port. Two configuration ports, GPIO8 and GPIO9 ports are the first control port and the second control port respectively, GPIO10 can be used to access the switch input signal, the ground port GND and other spare ports GPIO11 and GPIO12, etc.

优选的,本发明实施例的一种具有充电电路的数据线的第一接口电压端VBUS0经第一二极管D1连接控制处理器的电压端口,并经第六电阻R6连接控制处理器的第三电压检测端口,第二接口的电压端VBUS1经第二二极管D2连接控制处理器的电压端口,并经第三电阻R3连接控制处理器的第二电压检测端口,第三接口的电压端VBUS2经第三二极管D3连接控制处理器的电压端口,并经第四电阻R4连接控制处理器的第一电压检测端口。Preferably, the first interface voltage terminal VBUS0 of the data line with the charging circuit in the embodiment of the present invention is connected to the voltage port of the control processor through the first diode D1, and connected to the first voltage port of the control processor through the sixth resistor R6. Three voltage detection ports, the voltage terminal VBUS1 of the second interface is connected to the voltage port of the control processor through the second diode D2, and connected to the second voltage detection port of the control processor through the third resistor R3, the voltage terminal of the third interface VBUS2 is connected to the voltage port of the control processor through the third diode D3, and connected to the first voltage detection port of the control processor through the fourth resistor R4.

其中第一接口可为USB公口,第二接口和第三接口可为微型公口,包括苹果手机公口、MiniUSB公口及MicroUSB公口等,如图2中所示,第一接口J2为USB公口,其包括四个引脚,分别为电压端VBUS,数据引脚D+、D-和接地端GND,第二接口J3和第三接口J5均为MicroUSB公口,其包括五个引脚,分别为电压端VBUS,数据引脚D+、D-,ID状态端和接地端GND。The first interface can be a USB male port, the second interface and the third interface can be miniature male ports, including Apple mobile phone male ports, MiniUSB male ports, and MicroUSB male ports, etc. As shown in Figure 2, the first interface J2 is USB male port, which includes four pins, which are voltage terminal VBUS, data pins D+, D- and ground terminal GND, the second interface J3 and the third interface J5 are both MicroUSB male ports, which include five pins , respectively voltage terminal VBUS, data pins D+, D-, ID status terminal and ground terminal GND.

为了稳定第一、第二及第三接口的电压,第一接口电压端和接地端之间连接第一去耦电容C1、第二接口电压端和接地端之间连接第二去耦电容C2以及第二接口电压端和接地端之间连接第三去耦电容C3。In order to stabilize the voltages of the first, second and third interfaces, a first decoupling capacitor C1 is connected between the first interface voltage terminal and the ground terminal, a second decoupling capacitor C2 is connected between the second interface voltage terminal and the ground terminal, and A third decoupling capacitor C3 is connected between the second interface voltage terminal and the ground terminal.

优选的,第一配置单元包括第一MOS管开关Q1,第二配置单元包括第二MOS管开关Q4,第一MOS管开关和第二MOS管开关均为P型场效应管,第一MOS管开关的栅极(1脚)连接控制处理器的第一配置端口并经第二电阻R2接地,源极(2脚)连接第二接口的状态端ID1并经第一电阻R1连接控制处理器的电压端口,漏极(3脚)接地,第二MOS管开关的栅极连接控制处理器的第二配置端口并经第十电阻R10接地,源极连接第三接口的状态端ID2并经第七电阻R7连接控制处理器的电压端口,漏极接地。Preferably, the first configuration unit includes a first MOS transistor switch Q1, the second configuration unit includes a second MOS transistor switch Q4, the first MOS transistor switch and the second MOS transistor switch are both P-type field effect transistors, the first MOS transistor The gate (pin 1) of the switch is connected to the first configuration port of the control processor and grounded through the second resistor R2, the source (pin 2) is connected to the state terminal ID1 of the second interface and connected to the control processor through the first resistor R1 Voltage port, the drain (pin 3) is grounded, the gate of the second MOS transistor switch is connected to the second configuration port of the control processor and grounded through the tenth resistor R10, the source is connected to the state terminal ID2 of the third interface and passed through the seventh The resistor R7 is connected to the voltage port of the control processor, and its drain is grounded.

优选的,第一开关电路包括第一继电器开关J1,第二开关电路包括第二继电器开关J4,第一继电器开关J1的第一公共端(com1)连接第一接口电压端,第一线圈端(L1)连接控制处理器的电压端口,常开端(NC)悬空,常闭端(NO)连接第二接口电压端,第二线圈端(L2)连接控制处理器的第一控制端口,第二公共端(com2)悬空,第二继电器开关J4的第一公共端连接第二接口电压端,第一线圈端连接控制处理器的电压端口,常开端悬空,常闭端连接第三接口电压端,第二线圈端连接控制处理器的第二控制端口,第二公共端悬空。Preferably, the first switch circuit includes a first relay switch J1, the second switch circuit includes a second relay switch J4, the first common terminal (com1) of the first relay switch J1 is connected to the first interface voltage terminal, and the first coil terminal ( L1) is connected to the voltage port of the control processor, the normally open terminal (NC) is suspended, the normally closed terminal (NO) is connected to the second interface voltage terminal, the second coil terminal (L2) is connected to the first control port of the control processor, and the second common Terminal (com2) is suspended, the first common terminal of the second relay switch J4 is connected to the second interface voltage terminal, the first coil terminal is connected to the voltage port of the control processor, the normally open terminal is suspended, and the normally closed terminal is connected to the third interface voltage terminal. The second coil end is connected to the second control port of the control processor, and the second common end is suspended.

优选的,第一开关电路还包括连接在第一继电器开关第二线圈端与控制处理器第一控制端口之间的第三MOS管开关Q2,第二开关电路还包括连接在第二继电器开关第二线圈端与控制处理器第二控制端口之间的第四MOS管开关Q3,第三MOS管开关和第四MOS管开关均为N型场效应管,第三MOS管的栅极(1脚)连接第一控制端口,源极(2脚)接地,漏极(3脚)连接第一继电器开关第二线圈端,第四MOS管开关的栅极连接第二控制端口,源极接地,漏极连接第一继电器开关第二线圈端。Preferably, the first switch circuit also includes a third MOS transistor switch Q2 connected between the second coil end of the first relay switch and the first control port of the control processor, and the second switch circuit also includes a third MOS transistor switch Q2 connected to the first control port of the second relay switch. The fourth MOS tube switch Q3 between the second coil end and the second control port of the control processor, the third MOS tube switch and the fourth MOS tube switch are all N-type field effect transistors, and the gate of the third MOS tube (pin 1 ) is connected to the first control port, the source (pin 2) is grounded, the drain (pin 3) is connected to the second coil end of the first relay switch, the gate of the fourth MOS tube switch is connected to the second control port, the source is grounded, and the drain The pole is connected to the second coil end of the first relay switch.

进一步的,本发明实施例的一种具有充电电路的数据线还包括指示单元,用于指示充电方向,方便用户的使用。指示单元包括第一发光二极管D4和第二发光二极管D5,第一发光二极管的正极连接控制处理器的输入端口GPIO11,负极接地,第二发光二极管的正极连接控制处理器的输入端口GPIO12,负极接地,第一发光二极管和第二发光二极管的颜色可根据需要确定。Further, the data line with the charging circuit in the embodiment of the present invention further includes an indicating unit, which is used to indicate the charging direction, which is convenient for users to use. The indicating unit includes a first light-emitting diode D4 and a second light-emitting diode D5, the anode of the first light-emitting diode is connected to the input port GPIO11 of the control processor, the cathode is grounded, the anode of the second light-emitting diode is connected to the input port GPIO12 of the control processor, and the cathode is grounded , the colors of the first light emitting diode and the second light emitting diode can be determined as required.

以图2的具体电路图来详细描述本发明实施例具有充电电路的数据线的功能实现:Use the specific circuit diagram of Figure 2 to describe in detail the implementation of the function of the data line with the charging circuit in the embodiment of the present invention:

(1)当第一接口J2连接适配器或者其他电源(如PCUSB插口),第二接口J3和第三接口J5可以同时连接蓝牙指纹仪、手表、手环,蓝牙耳机等或其他移动设备(如手机,Pad等),也可以单独连接其中的一个。(1) When the first interface J2 is connected to an adapter or other power sources (such as a PCUSB socket), the second interface J3 and the third interface J5 can be connected to Bluetooth fingerprint devices, watches, wristbands, Bluetooth headsets, etc. or other mobile devices (such as mobile phones) at the same time. , Pad, etc.), or one of them can be connected separately.

第一接口J2连接适配器或者其他电源(如PCUSB插口),J2的电压端VBUS0被连接到+5V电源上,第一二极管D1导通,将+5V电压连接到控制处理器U1的电压端口VCC上,此时控制处理器U1开始上电工作。控制处理器U1上电后首先检查第一至第三电压检测端口GPIO1-3的电压状态,因为第一接口J2有电,所以GPIO3电平为高电平,控制处理器判断有外部电源插入,将配置第一及第二配置端口GPIO4/5以及第一、第二控制端口GPIO8/9的输出为高电平,从而第一配置单元的第一MOS管开关Q1及第二配置单元的第二MOS管开关Q4不导通,第二接口和第三接口的状态端ID1、ID2连接网络的电压端VBUS为高电平,因此无论J3和J5插入何种设备,第二接口和第三接口均配置为充电状态。同时,由于第一、第二控制端口GPIO8/9为高电平,第三MOS管开关Q2和第四MOS管开关Q3导通,从而触发第一、第二继电器开关J1和J4闭合,即第一开关电路和第二开关电路导通,从而实现第一接口J2的外部电源给第二接口J3和第三接口J5的电子设备充电。另外,控制处理器U1通过程序控制指示灯端口JPIO11和JPIO12输出高电平,点亮第一及第二发光二极管D4/D5,指示充电电流方向。The first interface J2 is connected to an adapter or other power sources (such as a PCUSB socket), the voltage terminal VBUS0 of J2 is connected to the +5V power supply, the first diode D1 is turned on, and the +5V voltage is connected to the voltage port of the control processor U1 VCC, at this time the control processor U1 starts to power on. After the control processor U1 is powered on, it first checks the voltage status of the first to third voltage detection ports GPIO1-3. Because the first interface J2 has power, the level of GPIO3 is high, and the control processor judges that an external power supply is plugged in. Configure the output of the first and second configuration ports GPIO4/5 and the first and second control ports GPIO8/9 as high level, so that the first MOS transistor switch Q1 of the first configuration unit and the second configuration unit of the second configuration unit The MOS tube switch Q4 is not conducting, and the voltage terminal VBUS of the state terminal ID1 and ID2 of the second interface and the third interface connected to the network is at a high level, so no matter which device J3 and J5 are inserted into, the second interface and the third interface are both Configured for charging state. At the same time, since the first and second control ports GPIO8/9 are at high level, the third MOS transistor switch Q2 and the fourth MOS transistor switch Q3 are turned on, thereby triggering the closing of the first and second relay switches J1 and J4, that is, the first The first switch circuit and the second switch circuit are turned on, so that the external power supply of the first interface J2 can charge the electronic equipment of the second interface J3 and the third interface J5. In addition, the control processor U1 controls the indicator port JPIO11 and JPIO12 to output a high level through a program, and lights up the first and second light-emitting diodes D4/D5 to indicate the direction of the charging current.

(2)当第一接口J2悬空(不连接任何适配器或电源),第二接口J3连接蓝牙指纹仪、蓝牙耳机等不带OTG功能的设备,第三接口J5连接带OTG功能的手机、pad等设备。(2) When the first interface J2 is suspended (not connected to any adapter or power supply), the second interface J3 is connected to devices without OTG functions such as Bluetooth fingerprint readers and Bluetooth headsets, and the third interface J5 is connected to mobile phones and pads with OTG functions. equipment.

由于第一接口J2悬空其电压端VBUS0为低电平,此时控制处理器未上电工作,默认第一、第二配置端口GPIO4、GPIO5输出为低电平,此时第一、第二配置单元的MOS管开关Q1和Q4是导通的,所以第二接口J3和第三接口J5的状态端ID1和ID2接地,为低电平。而第三接口J5连接支持OTG功能的电子设备,其电压端VBUS2有电压为+5v,因此第三二极管D3导通给控制处理器U1供电,控制处理器U1上电工作,首先第一至第三电压检测端口GPIO1-3的电压状态,此时只有第一电压检测端口GPIO1为高电平,判断只有第三接口J5有电,而当前第二接口J3虽然没有电但状态端ID1已经被拉低,所以控制处理器控制第一控制端口GPIO8为低电平,Power1网络被拉低,第二控制端口GPIO9为高电平,Power2网络被拉高,因此第三MOS管开关Q2不导通,第一继电开关器J1不动作处于断开状态,即第一开关电路不导通,第四MOS管开关Q4导通,第二继电器开关J4闭合,即第二开关电路导通,J4的第1脚连接第四脚将第三接口J5的电压端VBUS2连接第二接口J3的电压端VBUS1,实现第三接口的电子设备给第二接口的电子设备充电。另外控制处理器U1通过程序控制指示灯端口JPIO11输出高电平,点亮第一发光二极管D4,指示充电电流方向。Since the first interface J2 is floating, its voltage terminal VBUS0 is at low level. At this time, the control processor is not powered on. By default, the output of the first and second configuration ports GPIO4 and GPIO5 are at low level. At this time, the first and second configuration ports The MOS transistor switches Q1 and Q4 of the unit are turned on, so the state terminals ID1 and ID2 of the second interface J3 and the third interface J5 are grounded and are at low level. The third interface J5 is connected to an electronic device that supports the OTG function, and its voltage terminal VBUS2 has a voltage of +5v, so the third diode D3 is turned on to supply power to the control processor U1, and the control processor U1 is powered on to work. To the voltage state of the third voltage detection port GPIO1-3, at this time only the first voltage detection port GPIO1 is at a high level, and it is judged that only the third interface J5 has power, and the current second interface J3 has no power but the state terminal ID1 has is pulled low, so the control processor controls the first control port GPIO8 to be low, the Power1 network is pulled low, the second control port GPIO9 is high, and the Power2 network is pulled high, so the third MOS tube switch Q2 does not conduct On, the first relay switch J1 does not act and is in the off state, that is, the first switch circuit is not conducting, the fourth MOS transistor switch Q4 is conducting, the second relay switch J4 is closed, that is, the second switching circuit is conducting, J4 The first pin is connected to the fourth pin to connect the voltage terminal VBUS2 of the third interface J5 to the voltage terminal VBUS1 of the second interface J3, so that the electronic equipment of the third interface can charge the electronic equipment of the second interface. In addition, the control processor U1 controls the indicator port JPIO11 to output a high level through a program, and lights up the first light-emitting diode D4 to indicate the direction of the charging current.

同理,若第一接口J2悬空,第三接口J5连接蓝牙指纹仪、蓝牙耳机等不带OTG功能的设备,第二接口J3连接带OTG功能的手机、pad等设备,该充电电路实现第二接口的电子设备给第三接口的电子设备充电,第二发光二极管D5点亮,指示充电电流方向。Similarly, if the first interface J2 is suspended, the third interface J5 is connected to devices without OTG function such as Bluetooth fingerprint reader and Bluetooth headset, and the second interface J3 is connected to devices such as mobile phones and pads with OTG function, the charging circuit realizes the second The electronic equipment on the interface charges the electronic equipment on the third interface, and the second light emitting diode D5 lights up to indicate the direction of the charging current.

(3)当第一接口J2悬空(不连接任何适配器或电源),第二接口J3和第三接口J5均连接带OTG功能的手机、pad等设备。(3) When the first interface J2 is suspended (no adapter or power supply is connected), the second interface J3 and the third interface J5 are both connected to mobile phones, pads and other devices with OTG functions.

第一接口J2悬空,第二接口J3和第三接口J5的状态端ID1和ID2默认为低电平。由于第二接口J3和第三接口J5均为带OTG功能电子设备,其电压端VBUS1和VBUS2均有电,因此第二二极管D2和第三二极管D3导通,控制处理器U1上电工作。控制处理器U1检测第一至第三电压检测端口GPIO1-3的电压状态,判断第二接口J3和第三接口J5均支持OTG功能,但目前需要一个对另一个设备供电,控制处理器执行默认程序配置,配置第二配置端口GPIO5输出为高电平,将POWER_EN_2网络拉高,第二MOS管开关Q4不导通,将第三接口的状态端ID2连接到网络电压端,从而控制第三接口状态端ID2为高电平,第三接口J5配置为充电状态,因此第三接口J5连接的电子设备的OTG功能被关闭,只能用作被充电设备,而第二接口J3连接的电子设备用作放电设备。控制处理器控制第一控制端口GPIO8为低电平,Power1网络被拉低,第二控制端口GPIO9为高电平,Power2网络被拉高,因此第三MOS管开关Q2不导通,第一继电开关器J1不动作处于断开状态,即第一开关电路不导通,第四MOS管开关Q4导通,第二继电器开关J4闭合,即第二开关电路导通,J4的第1脚连接第四脚将第三接口J5的电压端J5连接第二接口J3的电压端,实现第二接口的电子设备给第三接口的电子设备充电。另外,控制处理器U1通过程序控制指示灯端口JPIO12输出高电平,点亮第二发光二极管D5,指示充电电流方向。The first interface J2 is floating, and the state terminals ID1 and ID2 of the second interface J3 and the third interface J5 are at low level by default. Since the second interface J3 and the third interface J5 are both electronic devices with OTG functions, and their voltage terminals VBUS1 and VBUS2 are powered, the second diode D2 and the third diode D3 are turned on, and the control processor U1 Electric work. The control processor U1 detects the voltage status of the first to third voltage detection ports GPIO1-3, and judges that both the second interface J3 and the third interface J5 support the OTG function, but currently one needs to supply power to the other device, and the control processor executes the default Program configuration, configure the output of the second configuration port GPIO5 to be high level, pull the POWER_EN_2 network high, the second MOS tube switch Q4 is not turned on, and connect the status terminal ID2 of the third interface to the network voltage terminal to control the third interface The state terminal ID2 is high level, and the third interface J5 is configured as a charging state, so the OTG function of the electronic device connected to the third interface J5 is turned off, and can only be used as a charged device, while the electronic device connected to the second interface J3 is used as a discharge device. The control processor controls the first control port GPIO8 to be low level, the Power1 network is pulled low, the second control port GPIO9 is high level, and the Power2 network is pulled high, so the third MOS tube switch Q2 is not turned on, and the first relay The electric switch J1 is in the off state without action, that is, the first switch circuit is not conducting, the fourth MOS tube switch Q4 is conducting, the second relay switch J4 is closed, that is, the second switching circuit is conducting, and the first pin of J4 is connected The fourth pin connects the voltage terminal J5 of the third interface J5 to the voltage terminal of the second interface J3, so that the electronic equipment of the second interface can charge the electronic equipment of the third interface. In addition, the control processor U1 controls the indicator port JPIO12 to output a high level through a program, and lights up the second light-emitting diode D5 to indicate the direction of the charging current.

若默认程序配置不符合使用者要求,使用者想通过第三接口J5的电子设备对第二接口J3的电子设备充电,可以通过切换开关K1来切换。程序默认切换信号输入端口GPIO10是高电平,当切换开关K1触发时,端口GPIO10被拉低为低电平,控制处理器U1检测到电平变化后判断开关K1被触发,控制处理器U1控制第二控制端口GPIO9输出为低电平,将POWER2网络拉低,从而第四MOS管开关不导通,第二继电器J4断开,先切断第第二接口向第三接口的充电。之后控制处理器U1配置第二配置端口GPIO5为低电平,将POWER_EN_2网络拉低,使得第三接口J5状态端ID2为低电平,配置为放电状态,第三接口J5的电子设备的OTG功能被打开,然后控制处理器U1配置第一配置端口GPIO4输出为高电平,将POWER_EN_1网络拉高,使得第二接口状态端ID1为高电平,配置为充电状态,第二接口J3的电子设备的OTG功能被关闭,实现第三接口的电子设备给第二接口的电子设备充电。另外,控制处理器U1通过程序控制指示灯端口JPIO11输出高电平,点亮第一发光二极管D4,指示充电电流方向。If the default program configuration does not meet the user's requirements, and the user wants to charge the electronic device on the second interface J3 through the electronic device on the third interface J5, the user can switch it by switching the switch K1. The program defaults to switch the signal input port GPIO10 to a high level. When the switch K1 is triggered, the port GPIO10 is pulled down to a low level. After the control processor U1 detects the level change, the judgment switch K1 is triggered, and the control processor U1 controls The output of the second control port GPIO9 is low level, which pulls down the POWER2 network, so that the fourth MOS transistor switch is not conducted, the second relay J4 is disconnected, and the charging from the second interface to the third interface is firstly cut off. Afterwards, the control processor U1 configures the second configuration port GPIO5 to be at a low level, and pulls the POWER_EN_2 network low, so that the state terminal ID2 of the third interface J5 is at a low level, configured as a discharge state, and the OTG function of the electronic device of the third interface J5 is turned on, and then the control processor U1 configures the output of the first configuration port GPIO4 to be high, and the POWER_EN_1 network is pulled high, so that the second interface state terminal ID1 is high, and it is configured as a charging state. The electronic device of the second interface J3 The OTG function of the device is turned off, so that the electronic device with the third interface can charge the electronic device with the second interface. In addition, the control processor U1 controls the indicator port JPIO11 to output a high level through a program, and lights up the first light-emitting diode D4 to indicate the direction of the charging current.

以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above description is a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.

Claims (10)

Translated fromChinese
1.一种具有充电电路的数据线,其特征在于,所述充电电路包括:第一接口、第二接口、第三接口、控制处理电路、第一开关电路和第二开关电路,所述第一接口电压端经第一开关电路连接第二接口电压端,所述第二接口电压端经第二开关电路连接第三接口电压端;1. A data line with a charging circuit, characterized in that the charging circuit includes: a first interface, a second interface, a third interface, a control processing circuit, a first switch circuit and a second switch circuit, and the first An interface voltage terminal is connected to a second interface voltage terminal via a first switch circuit, and the second interface voltage terminal is connected to a third interface voltage terminal via a second switch circuit;所述控制处理电路用于根据第一接口电压端、第二接口电压端、第三接口电压端的电平,配置第二接口和第三接口的充放电状态,控制第一开关电路和/或第二开关电路导通,使第一接口的外部电源给第二接口和第三接口的电子设备充电,或者使第二接口的电子设备与第三接口的电子设备之间相互充电;其中,第一、二开关电路初始默认为断开状态。The control processing circuit is used to configure the charging and discharging states of the second interface and the third interface according to the levels of the first interface voltage terminal, the second interface voltage terminal, and the third interface voltage terminal, and control the first switch circuit and/or the second interface voltage terminal. The second switch circuit is turned on, so that the external power supply of the first interface charges the electronic equipment of the second interface and the third interface, or charges the electronic equipment of the second interface and the electronic equipment of the third interface; wherein, the first , The second switch circuit is initially in the disconnected state by default.2.根据权利要求1所述的具有充电电路的数据线,其特征在于,当第一接口电压端为高电平时,所述控制处理电路配置第二接口和第三接口为充电状态,并控制第一开关电路和第二开关电路导通,使第一接口的外部电源给第二接口和第三接口的电子设备充电。2. The data line with charging circuit according to claim 1, characterized in that, when the first interface voltage terminal is at a high level, the control processing circuit configures the second interface and the third interface to be in a charging state, and controls The first switch circuit and the second switch circuit are turned on, so that the external power supply of the first interface charges the electronic equipment of the second interface and the third interface.3.根据权利要求1所述的具有充电电路的数据线,其特征在于,3. The data line with charging circuit according to claim 1, characterized in that,当第一接口电压端为低电平,第二接口电压端为高电平,第三接口为低电平时,所述控制处理电路配置第二接口为放电状态,第三接口为充电状态,并控制第二开关电路导通,使第二接口的电子设备给第三接口的电子设备充电;When the voltage terminal of the first interface is at a low level, the voltage terminal of the second interface is at a high level, and the third interface is at a low level, the control processing circuit configures the second interface to be in a discharging state and the third interface to be in a charging state, and controlling the conduction of the second switch circuit, so that the electronic equipment of the second interface charges the electronic equipment of the third interface;当第一接口电压端为低电平,第二接口电压端为低电平,第三接口为高电平时,所述控制处理电路配置第二接口为充电状态,第三接口为放电状态,并控制第二开关电路导通,使第三接口的电子设备给第二接口的电子设备充电。When the voltage terminal of the first interface is at low level, the voltage terminal of the second interface is at low level, and the third interface is at high level, the control processing circuit configures the second interface to be in the charging state and the third interface to be in the discharging state, and The second switch circuit is controlled to be turned on, so that the electronic equipment of the third interface charges the electronic equipment of the second interface.4.根据权利要求1所述的具有充电电路的数据线,其特征在于,4. The data line with charging circuit according to claim 1, characterized in that,当第一接口电压端为低电平,第二接口电压端为高电平,第三接口电压端为高电平时,所述控制处理电路配置第三接口为充电状态、第二接口为放电状态,并控制第二开关电路导通,使第二接口的电子设备给第三接口的电子设备充电。When the voltage terminal of the first interface is at a low level, the voltage terminal of the second interface is at a high level, and the voltage terminal of the third interface is at a high level, the control processing circuit configures the third interface to be in a charging state and the second interface to be in a discharging state , and control the conduction of the second switch circuit, so that the electronic equipment on the second interface charges the electronic equipment on the third interface.5.根据权利要求4所述的具有充电电路的数据线,其特征在于,所述充电电路还包括一切换开关,所述切换开关连接控制处理电路;5. The data line with charging circuit according to claim 4, characterized in that, the charging circuit further comprises a switch, and the switch is connected to the control processing circuit;在第一接口电压端为低电平,第二接口电压端为高电平,第三接口电压端为高电平,且切换开关被触发时,所述控制处理电路还用于配置第二接口为充电状态、配置第三接口为放电状态,并控制第二开关电路导通,使第三接口的电子设备给第二接口的电子设备充电。When the first interface voltage terminal is at low level, the second interface voltage terminal is at high level, and the third interface voltage terminal is at high level, and the switching switch is triggered, the control processing circuit is also used to configure the second interface Configure the third interface to be in the charging state, and configure the third interface to be in the discharging state, and control the conduction of the second switch circuit, so that the electronic equipment on the third interface charges the electronic equipment on the second interface.6.根据权利要求1-5任一所述的具有充电电路的数据线,其特征在于,所述控制处理电路包括一控制处理器和用于配置第二接口、第三接口充放电状态的第一配置单元和第二配置单元,所述控制处理器的输入端口包括电压端口,与第一接口电压端、第二接口电压端、第三接口电压端分别连接的第三电压检测端口、第二电压检测端口、第一电压检测端口,以及接地端口,其输出端口包括与第一配置单元和第二配置单元的输入口分别连接的第一配置端口、第二配置端口,以及与第一开关电路、第二开关电路分别连接的第一控制端口和第二控制端口,所述第一配置单元和第二配置单元的输出口分别连接第二接口和第三接口的状态端。6. The data line with a charging circuit according to any one of claims 1-5, characterized in that, the control processing circuit includes a control processor and a second interface for configuring the charging and discharging states of the second interface and the third interface. A configuration unit and a second configuration unit, the input port of the control processor includes a voltage port, a third voltage detection port connected to the first interface voltage end, the second interface voltage end, and the third interface voltage end, the second A voltage detection port, a first voltage detection port, and a ground port, the output port of which includes a first configuration port connected to the input port of the first configuration unit and a second configuration unit, a second configuration port, and a first switch circuit , the first control port and the second control port connected to the second switch circuit respectively, the output ports of the first configuration unit and the second configuration unit are respectively connected to the state terminals of the second interface and the third interface.7.根据权利要求6所述的具有充电电路的数据线,其特征在于,所述第一接口电压端经第一二极管连接控制处理器的电压端口,并经第六电阻连接控制处理器的第三电压检测端口,所述第二接口的电压端经第二二极管连接控制处理器的电压端口,并经第三电阻连接控制处理器的第二电压检测端口,所述第三接口的电压端经第三二极管连接控制处理器的电压端口,并经第四电阻连接控制处理器的第一电压检测端口。7. The data line with charging circuit according to claim 6, characterized in that, the first interface voltage terminal is connected to the voltage port of the control processor via the first diode, and connected to the control processor via the sixth resistor The third voltage detection port of the second interface, the voltage end of the second interface is connected to the voltage port of the control processor through the second diode, and connected to the second voltage detection port of the control processor through the third resistor, the third interface The voltage end of the voltage terminal is connected to the voltage port of the control processor through the third diode, and connected to the first voltage detection port of the control processor through the fourth resistor.8.根据权利要求6所述的具有充电电路的数据线,其特征在于,所述第一配置单元包括第一MOS管开关,所述第二配置单元包括第二MOS管开关,第一MOS管开关和第二MOS管开关均为P型场效应管,所述第一MOS管开关的栅极连接控制处理器的第一配置端口并经第二电阻接地,源极连接第二接口的状态端并经第一电阻连接控制处理器的电压端口,漏极接地,所述第二MOS管开关的栅极连接控制处理器的第二配置端口并经第十电阻接地,源极连接第三接口的状态端并经第七电阻连接控制处理器的电压端口,漏极接地。8. The data line with a charging circuit according to claim 6, wherein the first configuration unit includes a first MOS transistor switch, the second configuration unit includes a second MOS transistor switch, and the first MOS transistor Both the switch and the second MOS transistor switch are P-type field effect transistors, the gate of the first MOS transistor switch is connected to the first configuration port of the control processor and grounded through the second resistor, and the source is connected to the state terminal of the second interface And connect the voltage port of the control processor through the first resistor, the drain is grounded, the gate of the second MOS transistor switch is connected to the second configuration port of the control processor and grounded through the tenth resistor, and the source is connected to the third interface The status end is connected to the voltage port of the control processor through the seventh resistor, and the drain is grounded.9.根据权利要求6所述的具有充电电路的数据线,其特征在于,所述第一开关电路包括第一继电器开关,所述第二开关电路包括第二继电器开关,所述第一继电器开关的第一公共端连接第一接口电压端,第一线圈端连接控制处理器的电压端口,常开端悬空,常闭端连接第二接口电压端,第二线圈端连接控制处理器的第一控制端口,第二公共端悬空,所述第二继电器开关的第一公共端连接第二接口电压端,第一线圈端连接控制处理器的电压端口,常开端悬空,常闭端连接第三接口电压端,第二线圈端连接控制处理器的第二控制端口,第二公共端悬空。9. The data line with charging circuit according to claim 6, characterized in that, the first switch circuit comprises a first relay switch, the second switch circuit comprises a second relay switch, and the first relay switch The first common end of the terminal is connected to the first interface voltage end, the first coil end is connected to the voltage port of the control processor, the normally open end is suspended, the normally closed end is connected to the second interface voltage end, and the second coil end is connected to the first control port of the control processor. port, the second common end is suspended, the first common end of the second relay switch is connected to the second interface voltage end, the first coil end is connected to the voltage port of the control processor, the normally open end is suspended, and the normally closed end is connected to the third interface voltage end, the second coil end is connected to the second control port of the control processor, and the second common end is suspended.10.根据权利要求9所述的具有充电电路的数据线,其特征在于,所述第一开关电路还包括连接在第一继电器开关第二线圈端与控制处理器第一控制端口之间的第三MOS管开关,所述第二开关电路还包括连接在第二继电器开关第二线圈端与控制处理器第二控制端口之间的第四MOS管开关,第三MOS管开关和第四MOS管开关均为N型场效应管,所述第三MOS管的栅极连接第一控制端口,源极接地,漏极连接第一继电器开关第二线圈端,所述第四MOS管开关的栅极连接第二控制端口,源极接地,漏极连接第一继电器开关第二线圈端。10. The data line with charging circuit according to claim 9, characterized in that, the first switch circuit further comprises a second coil connected between the second coil terminal of the first relay switch and the first control port of the control processor. Three MOS tube switches, the second switch circuit also includes a fourth MOS tube switch connected between the second coil end of the second relay switch and the second control port of the control processor, the third MOS tube switch and the fourth MOS tube switch The switches are all N-type field effect transistors, the gate of the third MOS transistor is connected to the first control port, the source is grounded, and the drain is connected to the second coil end of the first relay switch, and the gate of the fourth MOS transistor switch is Connect to the second control port, the source is grounded, and the drain is connected to the second coil end of the first relay switch.
CN201610211118.8A2016-04-062016-04-06A kind of data line with charging circuitActiveCN105790356B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201610211118.8ACN105790356B (en)2016-04-062016-04-06A kind of data line with charging circuit

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610211118.8ACN105790356B (en)2016-04-062016-04-06A kind of data line with charging circuit

Publications (2)

Publication NumberPublication Date
CN105790356Atrue CN105790356A (en)2016-07-20
CN105790356B CN105790356B (en)2018-07-03

Family

ID=56395782

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610211118.8AActiveCN105790356B (en)2016-04-062016-04-06A kind of data line with charging circuit

Country Status (1)

CountryLink
CN (1)CN105790356B (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2018045714A1 (en)*2016-09-122018-03-15珠海格力电器股份有限公司Partner charging control method and system, and mobile device
CN108206444A (en)*2017-12-262018-06-26努比亚技术有限公司Data line and data transmission method
WO2018137298A1 (en)*2017-01-242018-08-02华为技术有限公司Charging cable
CN108536627A (en)*2018-03-302018-09-14联想(北京)有限公司The control method and electronic equipment of electronic equipment
CN108631401A (en)*2018-05-232018-10-09北京小米移动软件有限公司Charging circuit, method, electronic equipment and storage medium
CN108696688A (en)*2018-07-132018-10-23维沃移动通信有限公司A kind of camera, terminal and image pickup method
CN108988629A (en)*2018-06-212018-12-11上海艾为电子技术股份有限公司Detection circuit, increasing apparatus and DC/DC converter
CN109388601A (en)*2017-08-102019-02-26成都圣成通幽科技有限公司A kind of OTG power supply, charging automatic switching module and its control method
CN109510045A (en)*2018-12-052019-03-22北京阿法龙科技有限公司A kind of USB data line of auxiliary power supply
CN110380469A (en)*2019-06-282019-10-25联想(北京)有限公司Electronic equipment and method of supplying power to
WO2019218854A1 (en)*2018-05-142019-11-21维沃移动通信有限公司Data line and driving method thereof
CN110518651A (en)*2019-06-252019-11-29商洛市虎之翼科技有限公司A kind of portable charge and discharge electric appliance
CN110880805A (en)*2019-12-192020-03-13维沃移动通信有限公司 A charging device and control method
CN111146653A (en)*2019-12-122020-05-12立讯精密工业股份有限公司Circuit and connector with same
CN111509815A (en)*2020-05-292020-08-07维沃移动通信有限公司 Data cables and charging equipment
CN111890962A (en)*2020-08-252020-11-06威海市泓淋电力技术股份有限公司Charging gun for electric vehicle and household load electric power interaction and control method thereof
CN112086830A (en)*2020-07-232020-12-15福建联迪商用设备有限公司Data line circuit communicating with Apple equipment
CN112260019A (en)*2020-10-292021-01-22深圳市时商创展科技有限公司 a connecting line
CN113067390A (en)*2021-04-272021-07-02维沃移动通信有限公司Interface circuit, electronic device, and communication signal transmission method

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP1742140A2 (en)*2005-07-052007-01-10High Tech Computer Corp.Cradle for connecting to portable electronic apparatus
CN202957436U (en)*2012-12-112013-05-29詹昌漫Multifunctional mobile terminal data line
CN104953406A (en)*2015-06-302015-09-30努比亚技术有限公司Data line

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP1742140A2 (en)*2005-07-052007-01-10High Tech Computer Corp.Cradle for connecting to portable electronic apparatus
CN202957436U (en)*2012-12-112013-05-29詹昌漫Multifunctional mobile terminal data line
CN104953406A (en)*2015-06-302015-09-30努比亚技术有限公司Data line

Cited By (28)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2018045714A1 (en)*2016-09-122018-03-15珠海格力电器股份有限公司Partner charging control method and system, and mobile device
WO2018137298A1 (en)*2017-01-242018-08-02华为技术有限公司Charging cable
CN108886225A (en)*2017-01-242018-11-23华为技术有限公司A kind of charge cable
CN108886225B (en)*2017-01-242020-06-02华为技术有限公司Charging cable
CN109388601B (en)*2017-08-102023-07-18成都圣成通幽科技有限公司Control method of OTG power supply and charging automatic switching module
CN109388601A (en)*2017-08-102019-02-26成都圣成通幽科技有限公司A kind of OTG power supply, charging automatic switching module and its control method
CN108206444A (en)*2017-12-262018-06-26努比亚技术有限公司Data line and data transmission method
CN108536627A (en)*2018-03-302018-09-14联想(北京)有限公司The control method and electronic equipment of electronic equipment
CN108536627B (en)*2018-03-302021-07-16联想(北京)有限公司Control method of electronic equipment and electronic equipment
WO2019218854A1 (en)*2018-05-142019-11-21维沃移动通信有限公司Data line and driving method thereof
CN108631401A (en)*2018-05-232018-10-09北京小米移动软件有限公司Charging circuit, method, electronic equipment and storage medium
CN108988629A (en)*2018-06-212018-12-11上海艾为电子技术股份有限公司Detection circuit, increasing apparatus and DC/DC converter
CN108988629B (en)*2018-06-212020-12-11上海艾为电子技术股份有限公司Detection circuit, boosting device, and DC/DC converter
CN108696688A (en)*2018-07-132018-10-23维沃移动通信有限公司A kind of camera, terminal and image pickup method
CN109510045B (en)*2018-12-052024-12-03北京阿法龙科技有限公司 A USB data cable with auxiliary power supply
CN109510045A (en)*2018-12-052019-03-22北京阿法龙科技有限公司A kind of USB data line of auxiliary power supply
CN110518651A (en)*2019-06-252019-11-29商洛市虎之翼科技有限公司A kind of portable charge and discharge electric appliance
CN110380469A (en)*2019-06-282019-10-25联想(北京)有限公司Electronic equipment and method of supplying power to
CN111146653A (en)*2019-12-122020-05-12立讯精密工业股份有限公司Circuit and connector with same
CN110880805B (en)*2019-12-192021-09-17维沃移动通信有限公司Charging device and control method
CN110880805A (en)*2019-12-192020-03-13维沃移动通信有限公司 A charging device and control method
CN111509815B (en)*2020-05-292022-02-08维沃移动通信有限公司Data line and charging equipment
CN111509815A (en)*2020-05-292020-08-07维沃移动通信有限公司 Data cables and charging equipment
CN112086830A (en)*2020-07-232020-12-15福建联迪商用设备有限公司Data line circuit communicating with Apple equipment
CN111890962A (en)*2020-08-252020-11-06威海市泓淋电力技术股份有限公司Charging gun for electric vehicle and household load electric power interaction and control method thereof
CN112260019A (en)*2020-10-292021-01-22深圳市时商创展科技有限公司 a connecting line
CN113067390A (en)*2021-04-272021-07-02维沃移动通信有限公司Interface circuit, electronic device, and communication signal transmission method
CN113067390B (en)*2021-04-272024-04-26维沃移动通信有限公司 Interface circuit, electronic device and communication signal transmission method

Also Published As

Publication numberPublication date
CN105790356B (en)2018-07-03

Similar Documents

PublicationPublication DateTitle
CN105790356B (en)A kind of data line with charging circuit
CN202872406U (en)Interface multiplexing circuit and mobile terminal
TWI474183B (en)Portable electronical device
US20120166697A1 (en)Electronic device with power output function
CN205787042U (en) Battery power detection circuit and battery power detection system
US20070075680A1 (en)Charging mode control circuit
CN102055223A (en)USB special charger recognition circuit
CN103208822A (en)Universal serial bus (USB) charging control circuit
CN207320876U (en)A kind of charging circuit and charger
CN111313508B (en)Forward and reverse plug switching circuit, system and intelligent wearable equipment
CN108924691A (en)A kind of bluetooth headset and its charge cabin, charging system
TWI387180B (en)Power switch circuit of portable electronic device
CN107643998A (en)OTG and the difunctional system that charges are realized based on intelligent object
CN102810884B (en)Charging circuit
CN116054309A (en) Charging circuit, electronic device, charging system and reverse charging method
CN105676986B (en) Electronic equipment interface switching system
CN212965358U (en)Broken line detection circuit with load access automatic wake-up function and power bank
CN210927185U (en)Mobile power supply
CN221551213U (en)Interface control circuit and electronic equipment
CN210468883U (en)Power supply switching circuit and electronic equipment
CN103997101B (en)A kind of charging circuit and a kind of electronic equipment
CN107733025B (en)USB and DC compatible double-charging circuit and operation method thereof
CN111537915A (en)Broken string detection circuitry and treasured that charges of polymorphic type charging wire
CN108631377B (en) Power-on control circuit and mobile power supply device using the same
WO2018133409A1 (en)Power management circuit, electronic device, and method for controlling electronic device

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CP03Change of name, title or address
CP03Change of name, title or address

Address after:Room 208, 2nd Floor, Building 1, East Campus, No. 10 Xibeiwang East Road, Haidian District, Beijing 100193

Patentee after:Beijing Eyes Intelligent Technology Co.,Ltd.

Country or region after:China

Address before:100085 Beijing Haidian District Shangdi 10th Street Brilliant International 1st Building, 8th Floor 802

Patentee before:BEIJING TECHSHINO TECHNOLOGY Co.,Ltd.

Country or region before:China

TR01Transfer of patent right
TR01Transfer of patent right

Effective date of registration:20250317

Address after:071800 Room 306, Building S6, No. 001 North of Baojing Road, Xiongxian County, Xiong'an New Area, Hebei Province (self declared)

Patentee after:BEIJING EYECOOL TECHNOLOGY Co.,Ltd.

Country or region after:China

Patentee after:Beijing Eyes Intelligent Technology Co.,Ltd.

Address before:Room 208, 2nd Floor, Building 1, East Campus, No. 10 Xibeiwang East Road, Haidian District, Beijing 100193

Patentee before:Beijing Eyes Intelligent Technology Co.,Ltd.

Country or region before:China


[8]ページ先頭

©2009-2025 Movatter.jp