CN110620602A - Reverse charging and data transmission sharing system, multiplexing data line and electronic device - Google Patents

Reverse charging and data transmission sharing system, multiplexing data line and electronic device Download PDF

Info

Publication number
CN110620602A
CN110620602A CN201810627565.0A CN201810627565A CN110620602A CN 110620602 A CN110620602 A CN 110620602A CN 201810627565 A CN201810627565 A CN 201810627565A CN 110620602 A CN110620602 A CN 110620602A
Authority
CN
China
Prior art keywords
pin
data
connector
interface
port
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
CN201810627565.0A
Other languages
Chinese (zh)
Other versions
CN110620602B (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810627565.0A priority Critical patent/CN110620602B/en
Publication of CN110620602A publication Critical patent/CN110620602A/en
Application granted granted Critical
Publication of CN110620602B publication Critical patent/CN110620602B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • H—ELECTRICITY
    • H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02J—ELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries
    • H02J7/50—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries acting upon multiple batteries simultaneously or sequentially
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04B—TRANSMISSION
    • H04B3/00—Line transmission systems
    • H04B3/54—Systems for transmission via power distribution lines

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

本申请实施例公开了一种反向充电与数据传输共用系统、复用数据线和电子装置,该系统包括第一设备、第二设备、第三设备以及复用数据线,第一设备包括第一接口、控制器和充电模块,第二设备包括第二接口,第三设备包括第三接口,复用数据线包括第一接头、第二接头、第三接头和切换芯片,第一接头与第一接口连接,第二接头与第二接口连接,第三接头与第三接口连接;当切换芯片控制第一接头的数据引脚与第二接头的数据引脚连通时,第一设备向第二设备充电;当切换芯片控制第一接头的数据引脚与第三接头的数据引脚连通时,第一设备与第三设备进行数据传输。本申请实施例可以同时与两个外部设备分别进行反向充电和数据传输。

The embodiment of the present application discloses a reverse charging and data transmission sharing system, a multiplexed data line and an electronic device. The system includes a first device, a second device, a third device and a multiplexed data line. The first device includes a first An interface, a controller and a charging module, the second device includes a second interface, the third device includes a third interface, the multiplexing data line includes a first connector, a second connector, a third connector and a switching chip, the first connector and the third connector One interface is connected, the second joint is connected with the second interface, and the third joint is connected with the third interface; The device is charged; when the switching chip controls the data pin of the first connector to communicate with the data pin of the third connector, the first device and the third device perform data transmission. The embodiment of the present application can perform reverse charging and data transmission with two external devices at the same time.

Description

反向充电与数据传输共用系统、复用数据线和电子装置Reverse charging and data transmission shared system, multiplexing data lines and electronic devices

技术领域technical field

本申请涉及终端技术领域,具体涉及一种反向充电与数据传输共用系统、复用数据线和电子装置。The present application relates to the technical field of terminals, in particular to a reverse charging and data transmission shared system, multiplexing data lines and electronic devices.

背景技术Background technique

随着智能手机等电子装置的发展,电子装置的硬件电路设计也越来越复杂。电子装置一般都配置有串行通用总线(Universal Serial Bus,USB)接口,USB接口用于电子装置与外部设备之间的连接与通信。具有(on-the-go,OTG)功能的USB接口可以通过OTG数据线向外部设备传输数据或者充电。目前,USB接口只能同时与一个外部设备进行数据传输或者充电。With the development of electronic devices such as smart phones, the hardware circuit design of the electronic devices is becoming more and more complex. Electronic devices are generally equipped with a Universal Serial Bus (USB) interface, and the USB interface is used for connection and communication between the electronic device and external devices. A USB interface with (on-the-go, OTG) function can transmit data or charge to an external device through an OTG data cable. At present, the USB interface can only transmit data or charge with one external device at the same time.

发明内容Contents of the invention

本申请实施例提供了一种反向充电与数据传输共用系统、复用数据线和电子装置,可以同时与两个外部设备分别进行反向充电和数据传输。The embodiment of the present application provides a reverse charging and data transmission sharing system, a multiplexed data line and an electronic device, which can respectively perform reverse charging and data transmission with two external devices at the same time.

本申请实施例第一方面提供一种反向充电与数据传输共用系统,包括第一设备、第二设备、第三设备以及复用数据线,所述第一设备包括第一接口、控制器和充电模块,所述第二设备包括第二接口,所述第三设备包括第三接口,所述复用数据线包括第一接头、第二接头、第三接头和切换芯片,其中:The first aspect of the embodiment of the present application provides a reverse charging and data transmission shared system, including a first device, a second device, a third device and a multiplexed data line, the first device includes a first interface, a controller and In the charging module, the second device includes a second interface, the third device includes a third interface, and the multiplexing data line includes a first connector, a second connector, a third connector and a switching chip, wherein:

所述第一接头与所述第一接口连接,所述第二接头与所述第二接口连接,所述第三接头与所述第三接口连接;所述第一接头的电源引脚连接所述第二接头的电源引脚和所述第三接头的电源引脚;The first connector is connected to the first interface, the second connector is connected to the second interface, and the third connector is connected to the third interface; the power pin of the first connector is connected to the The power pin of the second connector and the power pin of the third connector;

当所述切换芯片控制所述第一接头的数据引脚与所述第二接头的数据引脚连通时,所述控制器用于检测所述第二设备是否为待充电设备以及检测所述第二设备的允许充电电流,若所述第二设备为待充电设备并且所述第二设备的允许充电电流为第一目标充电电流,用于控制所述充电模块以所述第一目标充电电流向所述第二设备充电;When the switching chip controls the data pin of the first connector to communicate with the data pin of the second connector, the controller is used to detect whether the second device is a device to be charged and to detect whether the second device is a device to be charged. The allowable charging current of the device, if the second device is a device to be charged and the allowable charging current of the second device is the first target charging current, it is used to control the charging module to charge the charging current with the first target charging current charging the second device;

当所述切换芯片控制所述第一接头的数据引脚与所述第三接头的数据引脚连通时,所述控制器用于检测所述第三设备是否为数据传输设备,若所述第三设备为数据传输设备,用于控制所述第一接口与所述第三设备进行数据传输。When the switching chip controls the data pin of the first joint to communicate with the data pin of the third joint, the controller is used to detect whether the third device is a data transmission device, if the third The device is a data transmission device, configured to control the first interface to perform data transmission with the third device.

本申请实施例第二方面提供一种复用数据线,所述复用数据线用于连接第一设备与第二设备,所述复用数据线还用于连接所述第一设备和第三设备,所述复用数据线包括第一接头、第二接头、第三接头和切换芯片,所述第一接头包括第一电源引脚、第一正数据引脚、第一负数据引脚、第一接地引脚和第一检测引脚;所述第二接头包括第二电源引脚、第二正数据引脚、第二负数据引脚和第二接地引脚;所述第三接头包括第三电源引脚、第三正数据引脚、第三负数据引脚和第三接地引脚;所述切换芯片包括第一选择端口、第二选择端口、第一正数据端口、第一负数据端口和第二正数据端口、第二负数据端口;The second aspect of the embodiment of the present application provides a multiplexed data line, the multiplexed data line is used to connect the first device and the second device, and the multiplexed data line is also used to connect the first device and the third device device, the multiplexing data line includes a first joint, a second joint, a third joint and a switching chip, and the first joint includes a first power supply pin, a first positive data pin, a first negative data pin, The first ground pin and the first detection pin; the second connector includes a second power supply pin, a second positive data pin, a second negative data pin and a second ground pin; the third connector includes The third power supply pin, the third positive data pin, the third negative data pin and the third ground pin; the switching chip includes a first selection port, a second selection port, a first positive data port, a first negative a data port and a second positive data port, a second negative data port;

所述第一电源引脚连接所述第二电源引脚和所述第三电源引脚,所述第一正数据引脚连接所述第一选择端口,所述第二正数据引脚连接所述第二选择端口,所述第一正数据端口连接所述第二正数据引脚,所述第一负数据端口连接所述第二负数据引脚,所述第二正数据端口连接所述第三正数据引脚,所述第二负数据端口连接所述第三负数据引脚;The first power supply pin is connected to the second power supply pin and the third power supply pin, the first positive data pin is connected to the first selection port, and the second positive data pin is connected to all The second selection port, the first positive data port is connected to the second positive data pin, the first negative data port is connected to the second negative data pin, and the second positive data port is connected to the a third positive data pin, the second negative data port is connected to the third negative data pin;

所述第一接头插入所述第一设备,所述第二接头插入所述第二设备,所述第三接头插入所述第三设备;the first connector is plugged into the first device, the second connector is plugged into the second device, and the third connector is plugged into the third device;

所述切换芯片控制所述第一正数据引脚连接所述第一正数据端口,控制所述第一负数据引脚连接所述第一负数据端口时,所述第一设备用于检测所述第二设备是否为待充电设备以及检测所述第二设备的充电电流,若所述第二设备为待充电设备并且所述第二设备的充电电流为第一目标充电电流,所述第一设备用于以所述第一目标充电电流向所述第二设备充电。The switching chip controls the first positive data pin to be connected to the first positive data port, and controls the first negative data pin to be connected to the first negative data port, the first device is used to detect the Whether the second device is a device to be charged and detect the charging current of the second device, if the second device is a device to be charged and the charging current of the second device is the first target charging current, the first The device is configured to charge the second device with the first target charging current.

本申请实施例第三方面提供一种电子装置,包括第一接口、控制器和充电模块,其中:本发明实施例第二方面所述的复用数据线的第一接头插入所述第一接口,所述复用数据线还包括第二接头和第三接头,所述第二接头插入待充电设备的接口,所述第三接头插入数据传输设备的接口;The third aspect of the embodiment of the present application provides an electronic device, including a first interface, a controller, and a charging module, wherein: the first connector of the multiplexed data line described in the second aspect of the embodiment of the present invention is inserted into the first interface , the multiplexing data line further includes a second connector and a third connector, the second connector is inserted into the interface of the device to be charged, and the third connector is inserted into the interface of the data transmission device;

所述电子装置用于通过所述充电模块向与所述复用数据线连接的所述待充电设备充电,以及用于与所述复用数据线连接的所述数据传输设备进行数据传输。The electronic device is used to charge the device to be charged connected to the multiplexed data line through the charging module, and is used to transmit data to the data transmission device connected to the multiplexed data line.

本申请实施例具有如下有益效果:The embodiment of the present application has the following beneficial effects:

当切换芯片控制第一接头的数据引脚与第二接头的数据引脚连通时,控制器用于检测第二设备是否为待充电设备以及检测第二设备的允许充电电流,若第二设备为待充电设备并且第二设备的允许充电电流为第一目标充电电流,用于控制充电模块以第一目标充电电流向第二设备充电;当切换芯片控制第一接头的数据引脚与第三接头的数据引脚连通时,控制器用于检测第三设备是否为数据传输设备,若第三设备为数据传输设备,用于控制第一接口与第三设备进行数据传输。本申请实施例中的第一设备可以向第二设备进行反向充电,以及与第三设备进行数据传输,通过复用数据线实现第一设备的反向充电和数据传输的功能复用,可以同时与两个外部设备分别进行反向充电和数据传输。When the switching chip controls the data pin of the first connector to connect with the data pin of the second connector, the controller is used to detect whether the second device is the device to be charged and detect the allowable charging current of the second device. The allowable charging current of the charging device and the second device is the first target charging current, which is used to control the charging module to charge the second device with the first target charging current; when the switching chip controls the data pin of the first connector and the third connector When the data pin is connected, the controller is used to detect whether the third device is a data transmission device, and if the third device is a data transmission device, it is used to control the first interface to perform data transmission with the third device. In the embodiment of the present application, the first device can perform reverse charging to the second device and perform data transmission with the third device. By multiplexing the data line, the function multiplexing of the reverse charging and data transmission of the first device can be realized. Simultaneously perform reverse charging and data transmission with two external devices respectively.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1是本申请实施例公开的一种反向充电与数据传输共用系统的结构示意图;Fig. 1 is a schematic structural diagram of a reverse charging and data transmission sharing system disclosed in an embodiment of the present application;

图2是本申请实施例公开的一种第一设备的结构示意图;FIG. 2 is a schematic structural diagram of a first device disclosed in an embodiment of the present application;

图3是本申请实施例公开的另一种第一设备的结构示意图;Fig. 3 is a schematic structural diagram of another first device disclosed in the embodiment of the present application;

图4是本申请实施例公开的一种复用数据线的结构示意图;FIG. 4 is a schematic structural diagram of a multiplexed data line disclosed in an embodiment of the present application;

图5是本申请实施例公开的一种电子装置的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is only It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the scope of protection of this application.

本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the specification and claims of the present application and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally includes Other steps or units inherent in a process, product, or equipment.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.

此外,本申请实施例所涉及到的电子装置可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为电子装置。In addition, the electronic devices involved in the embodiments of the present application may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to wireless modems, as well as various forms of user equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal device) and so on. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.

需要说明的是,本申请实施例中的连接,指的均是电连接。It should be noted that the connections in the embodiments of the present application refer to electrical connections.

下面对本申请实施例进行详细介绍。The following describes the embodiments of the present application in detail.

请参阅图1,图1是本申请实施例公开的一种反向充电与数据传输共用系统的结构示意图,如图1所示,该系统包括第一设备10、第二设备20、第三设备30以及复用数据线40,第一设备10包括第一接口11、控制器12和充电模块13,第二设备20包括第二接口21,第三设备30包括第三接口31,复用数据线40包括第一接头41、第二接头42、第三接头43和切换芯片44,其中:Please refer to FIG. 1. FIG. 1 is a schematic structural diagram of a reverse charging and data transmission sharing system disclosed in an embodiment of the present application. As shown in FIG. 1, the system includes a first device 10, a second device 20, and a third device 30 and a multiplexing data line 40, the first device 10 includes a first interface 11, a controller 12, and a charging module 13, the second device 20 includes a second interface 21, and the third device 30 includes a third interface 31, and the multiplexing data line 40 includes a first joint 41, a second joint 42, a third joint 43 and a switching chip 44, wherein:

第一接头41与第一接口11连接,第二接头42与第二接口21连接,第三接头43与第三接口31连接;第一接头41的电源引脚411连接第二接头42的电源引脚421和第三接头43的电源引脚431;The first connector 41 is connected to the first interface 11, the second connector 42 is connected to the second interface 21, and the third connector 43 is connected to the third interface 31; the power pin 411 of the first connector 41 is connected to the power lead of the second connector 42 pin 421 and the power supply pin 431 of the third connector 43;

当切换芯片44控制第一接头41的数据引脚与第二接头42的数据引脚连通时,控制器12用于检测第二设备20是否为待充电设备以及检测第二设备20的允许充电电流,若第二设备20为待充电设备并且第二设备20的允许充电电流为第一目标充电电流,用于控制充电模块13以第一目标充电电流向第二设备20充电;When the switching chip 44 controls the data pin of the first connector 41 to communicate with the data pin of the second connector 42, the controller 12 is used to detect whether the second device 20 is a device to be charged and detect the allowable charging current of the second device 20 , if the second device 20 is the device to be charged and the allowable charging current of the second device 20 is the first target charging current, it is used to control the charging module 13 to charge the second device 20 with the first target charging current;

当切换芯片44控制第一接头31的数据引脚与第三接头43的数据引脚连通时,控制器12用于检测第三设备30是否为数据传输设备,若第三设备30为数据传输设备,用于控制第一接口11与第三设备30进行数据传输。When the switching chip 44 controls the data pin of the first connector 31 to communicate with the data pin of the third connector 43, the controller 12 is used to detect whether the third device 30 is a data transmission device, if the third device 30 is a data transmission device , for controlling the data transmission between the first interface 11 and the third device 30 .

本申请实施例中,第一接头41的数据引脚包括正数据引脚412和负数据引脚413,第二接头42的数据引脚包括正数据引脚422和负数据引脚423,第二接头43的数据引脚包括正数据引脚432和负数据引脚433。第一接口11包括电源引脚111、正数据引脚112、负数据引脚113、接地引脚114和检测引脚115,第二接口21包括电源引脚211、正数据引脚212、负数据引脚213和接地引脚214,第二接口31包括电源引脚311、正数据引脚312、负数据引脚313和接地引脚314。In the embodiment of the present application, the data pins of the first connector 41 include positive data pins 412 and negative data pins 413, the data pins of the second connector 42 include positive data pins 422 and negative data pins 423, and the second The data pins of the connector 43 include a positive data pin 432 and a negative data pin 433 . The first interface 11 includes a power supply pin 111, a positive data pin 112, a negative data pin 113, a ground pin 114 and a detection pin 115, and the second interface 21 includes a power supply pin 211, a positive data pin 212, a negative data pin pin 213 and ground pin 214 , the second interface 31 includes a power pin 311 , a positive data pin 312 , a negative data pin 313 and a ground pin 314 .

第一接头41与第一接口11连接时,第一接头41的正数据引脚412和负数据引脚413分别与第一接口11的正数据引脚112和负数据引脚113连接,第一接头41的电源引脚411与第一接口11的电源引脚111连接,第一接头41的接地引脚414与第一接口11的接地引脚114连接,第一接头41的检测引脚415与第一接口11的检测引脚115连接。When the first joint 41 is connected to the first interface 11, the positive data pin 412 and the negative data pin 413 of the first joint 41 are respectively connected to the positive data pin 112 and the negative data pin 113 of the first interface 11, the first The power pin 411 of the joint 41 is connected to the power pin 111 of the first interface 11, the ground pin 414 of the first joint 41 is connected to the ground pin 114 of the first interface 11, and the detection pin 415 of the first joint 41 is connected to the ground pin 114 of the first joint 41. The detection pin 115 of the first interface 11 is connected.

第二接头42与第二接口21连接时,第二接头42的正数据引脚422和负数据引脚423分别与第二接口21的正数据引脚212和负数据引脚213连接,第二接头42的电源引脚421与第二接口21的电源引脚211连接,第二接头42的接地引脚424与第二接口21的接地引脚214连接。When the second joint 42 is connected to the second interface 21, the positive data pin 422 and the negative data pin 423 of the second joint 42 are respectively connected to the positive data pin 212 and the negative data pin 213 of the second interface 21, and the second The power pin 421 of the joint 42 is connected to the power pin 211 of the second interface 21 , and the ground pin 424 of the second joint 42 is connected to the ground pin 214 of the second interface 21 .

第三接头43与第三接口31连接时,第三接头43的正数据引脚432和负数据引脚433分别与第三接口31的正数据引脚312和负数据引脚313连接,第三接头43的电源引脚431与第三接口31的电源引脚311连接,第三接头43的接地引脚434与第三接口31的接地引脚314连接。When the third joint 43 is connected to the third interface 31, the positive data pin 432 and the negative data pin 433 of the third joint 43 are respectively connected to the positive data pin 312 and the negative data pin 313 of the third interface 31, and the third The power pin 431 of the joint 43 is connected to the power pin 311 of the third interface 31 , and the ground pin 434 of the third joint 43 is connected to the ground pin 314 of the third interface 31 .

切换芯片44可以包括供电端447,其中,切换芯片44的供电端447检测到第一接头411输出的供电电压时,切换芯片44开始工作。其中,供电电压可以为5V。The switch chip 44 may include a power supply terminal 447 , wherein when the power supply terminal 447 of the switch chip 44 detects the supply voltage output by the first connector 411 , the switch chip 44 starts to work. Wherein, the power supply voltage may be 5V.

切换芯片44还可以包括存储器,存储器中存储有程序指令,当切换芯片44的供电端447检测到供电电压时,触发切换芯片44执行包含如下步骤的程序指令。The switch chip 44 may also include a memory, in which program instructions are stored. When the power supply terminal 447 of the switch chip 44 detects the supply voltage, the switch chip 44 is triggered to execute the program instructions including the following steps.

(11)切换芯片44控制第一接头41的数据引脚与第二接头42的数据引脚连通;(11) The switching chip 44 controls the data pin of the first joint 41 to communicate with the data pin of the second joint 42;

(12)切换芯片44控制第一接头31的数据引脚与第三接头43的数据引脚连通。(12) The switching chip 44 controls the data pin of the first connector 31 to communicate with the data pin of the third connector 43 .

其中,步骤(11)和步骤(12)的时间间隔为预设时间间隔,预设时间间隔可以预先进行设定并存储在切换芯片的存储器中。比如,预设时间间隔可以设置为5秒。Wherein, the time interval between step (11) and step (12) is a preset time interval, which can be set in advance and stored in the memory of the switching chip. For example, the preset time interval may be set to 5 seconds.

切换芯片44执行步骤(11)时,第一设备10的第一接口11与第二设备20的第二接口21连接,此时,第一接口11的电源引脚111连接第二接口21的电源引脚211,第一接口11的正数据引脚112连接第二接口21的正数据引脚212,第一接口11的负数据引脚113连接第二接口21的负数据引脚213,第一接口11的接地引脚114连接第二接口21的接地引脚214。此时,第一设备10的控制器12可以通过第一接口11的正数据引脚112和负数据引脚113检测第二设备20是否为待充电设备以及检测第二设备20的允许充电电流,若第二设备20为待充电设备并且第二设备20的允许充电电流为第一目标充电电流,用于控制充电模块13以第一目标充电电流向第二设备20充电。When the switching chip 44 executes step (11), the first interface 11 of the first device 10 is connected to the second interface 21 of the second device 20, at this time, the power supply pin 111 of the first interface 11 is connected to the power supply of the second interface 21 Pin 211, the positive data pin 112 of the first interface 11 is connected to the positive data pin 212 of the second interface 21, the negative data pin 113 of the first interface 11 is connected to the negative data pin 213 of the second interface 21, the first The ground pin 114 of the interface 11 is connected to the ground pin 214 of the second interface 21 . At this time, the controller 12 of the first device 10 can detect whether the second device 20 is a device to be charged and detect the allowable charging current of the second device 20 through the positive data pin 112 and the negative data pin 113 of the first interface 11, If the second device 20 is a device to be charged and the allowable charging current of the second device 20 is the first target charging current, it is used to control the charging module 13 to charge the second device 20 with the first target charging current.

切换芯片44执行步骤(12)时,第一设备10的第一接口11与第三设备30的第三接口31连接,此时,第一接口11的电源引脚111连接第三接口31的电源引脚311,第一接口11的正数据引脚112连接第三接口31的正数据引脚312,第一接口11的负数据引脚113连接第三接口31的负数据引脚313,第一接口11的接地引脚114连接第三接口31的接地引脚314。此时,第一设备10的控制器12可以通过第一接口11的正数据引脚112和负数据引脚113检测第三设备30是否为数据传输设备,若第三设备30为数据传输设备,用于控制第一接口11与第三设备30进行数据传输。当第一设备10与第三设备30进行数据传输时,第一接口11的电源引脚111依然连接第三接口31的电源引脚311,此时,第一接口11的电源引脚111向第三接口31的电源引脚311供电,并非向第三接口31的电源引脚311充电,也即第三接口31的电源引脚311的电流较小。When the switching chip 44 executes step (12), the first interface 11 of the first device 10 is connected to the third interface 31 of the third device 30, at this time, the power supply pin 111 of the first interface 11 is connected to the power supply of the third interface 31 Pin 311, the positive data pin 112 of the first interface 11 is connected to the positive data pin 312 of the third interface 31, the negative data pin 113 of the first interface 11 is connected to the negative data pin 313 of the third interface 31, the first The ground pin 114 of the interface 11 is connected to the ground pin 314 of the third interface 31 . At this time, the controller 12 of the first device 10 can detect whether the third device 30 is a data transmission device through the positive data pin 112 and the negative data pin 113 of the first interface 11, if the third device 30 is a data transmission device, It is used for controlling the data transmission between the first interface 11 and the third device 30 . When the first device 10 and the third device 30 are performing data transmission, the power pin 111 of the first interface 11 is still connected to the power pin 311 of the third interface 31, at this time, the power pin 111 of the first interface 11 is connected to the third interface 31. The power pin 311 of the third interface 31 supplies power instead of charging the power pin 311 of the third interface 31 , that is, the current of the power pin 311 of the third interface 31 is relatively small.

需要说明的是,当切换芯片44执行步骤(12)时,第一接口11的电源引脚111依然连接第二接口21的电源引脚211,此时,第一设备10仍然可以向第二设备20充电。It should be noted that when the switching chip 44 executes step (12), the power supply pin 111 of the first interface 11 is still connected to the power supply pin 211 of the second interface 21. 20 charges.

本申请实施例中,第一设备可以向第二设备进行反向充电,以及与第三设备进行数据传输,通过复用数据线实现第一设备的反向充电和数据传输的功能复用,可以同时与两个外部设备分别进行反向充电和数据传输。In the embodiment of the present application, the first device can perform reverse charging to the second device and perform data transmission with the third device, and realize the function multiplexing of reverse charging and data transmission of the first device by multiplexing the data line, which can Simultaneously perform reverse charging and data transmission with two external devices respectively.

可选的,如图1所示,当第一接头41与第一接口11连接时,第一接头41的检测引脚415与第一接口11的检测引脚115连接,第一接头41的电源引脚411与第一接口11的电源引脚111连接,第一接头41的检测引脚415接地;Optionally, as shown in FIG. 1, when the first joint 41 is connected to the first interface 11, the detection pin 415 of the first joint 41 is connected to the detection pin 115 of the first interface 11, and the power supply of the first joint 41 The pin 411 is connected to the power pin 111 of the first interface 11, and the detection pin 415 of the first connector 41 is grounded;

控制器12还用于在检测到第一接口11的检测引脚115接地时,控制充电模块13输出电源电压至第一接口11的电源引脚111。The controller 12 is further configured to control the charging module 13 to output the power supply voltage to the power supply pin 111 of the first interface 11 when detecting that the detection pin 115 of the first interface 11 is grounded.

本申请实施例中,第一接口11的检测引脚115可以检测第一接头11的检测引脚115是否接地来判断第一设备10是主设备还是从设备。如果第一接口11的检测引脚115检测到第一接头11的检测引脚115接地,则第一设备10判断自身为主设备,则控制充电模块13输出电源电压至第一接口11的电源引脚111,为从设备(如图1所示的第二设备20和第三设备30)供电,第一设备10可以向第二设备20和第三设备30反向充电。如果第一接口11的检测引脚115检测到第一接头11的检测引脚115不接地,则第一设备10判断自身为从设备,则第一接口11的电源引脚111可以接收外部设备输入的电压,可以接收外部设备为自身充电。In the embodiment of the present application, the detection pin 115 of the first interface 11 can detect whether the detection pin 115 of the first connector 11 is grounded to determine whether the first device 10 is a master device or a slave device. If the detection pin 115 of the first interface 11 detects that the detection pin 115 of the first connector 11 is grounded, the first device 10 judges itself as the master device, and then controls the charging module 13 to output the power supply voltage to the power supply pin of the first interface 11. The pin 111 supplies power to the slave devices (such as the second device 20 and the third device 30 shown in FIG. 1 ), and the first device 10 can reversely charge the second device 20 and the third device 30 . If the detection pin 115 of the first interface 11 detects that the detection pin 115 of the first joint 11 is not grounded, then the first device 10 judges itself as a slave device, and the power supply pin 111 of the first interface 11 can receive external device input The voltage can receive external equipment to charge itself.

可选的,控制器12检测第二设备20是否为待充电设备的方式具体为:Optionally, the manner in which the controller 12 detects whether the second device 20 is a device to be charged is specifically as follows:

控制器12检测第一接头41的数据引脚的电流是否处于第一预设电流区间。The controller 12 detects whether the current of the data pin of the first connector 41 is within a first preset current interval.

本申请实施例中,第一接头41的数据引脚可以包括正数据引脚412和负数据引脚413。如果第二设备20为待充电设备,则第二设备20的第二接口21的正数据引脚212或负数据引脚213通过第一特定电阻接地。一般而言,待充电设备的允许充电电流越大,第一特定电阻越小。举例来说,第一预设电流区间可以位于0.5mA~5mA。In the embodiment of the present application, the data pins of the first connector 41 may include a positive data pin 412 and a negative data pin 413 . If the second device 20 is a device to be charged, the positive data pin 212 or the negative data pin 213 of the second interface 21 of the second device 20 is grounded through the first specific resistor. Generally speaking, the larger the allowable charging current of the device to be charged is, the smaller the first specific resistance is. For example, the first preset current range may be located at 0.5mA˜5mA.

可选的,控制器12检测第二设备20的允许充电电流的方式具体为:Optionally, the manner in which the controller 12 detects the allowable charging current of the second device 20 is specifically:

控制器12根据数据引脚电流与允许电流的对应关系确定与第一接头41的数据引脚的电流对应的第一目标充电电流。The controller 12 determines the first target charging current corresponding to the current of the data pin of the first connector 41 according to the corresponding relationship between the current of the data pin and the allowable current.

本申请实施例中,数据引脚电流与允许电流的对应关系可以预先建立并存储在控制器12的存储器中。请参阅表1,表1是本申请实施例中公开的一种引脚电流与允许电流的对应关系表。In the embodiment of the present application, the corresponding relationship between the data pin current and the allowable current may be established in advance and stored in the memory of the controller 12 . Please refer to Table 1. Table 1 is a correspondence table between pin current and allowable current disclosed in the embodiment of the present application.

表1Table 1

引脚电流(mA)Pin Current (mA) 允许电流(mA)Allowable current (mA) 0.5-10.5-1 500500 1-31-3 10001000 3-53-5 20002000

如表1所示,不同引脚电流区间,对应不同的引脚电流区间对应不同的允许电流。允许电流即为第二设备20允许的最大充电电流。As shown in Table 1, different pin current ranges correspond to different pin current ranges corresponding to different allowable currents. The allowed current is the maximum charging current allowed by the second device 20 .

可选的,控制器12检测第三设备30是否为数据传输设备的方式具体为:Optionally, the manner in which the controller 12 detects whether the third device 30 is a data transmission device is specifically:

控制器12检测第一接头41的数据引脚的电流是否处于第二预设电流区间,第一预设电流区间与第一预设电流区间没有交集。如果第三设备30为数据传输设备,则第三设备30的第三接口31的正数据引脚312或负数据引脚313为悬空状态。第一接头41的数据引脚的电流非常的小,接近于0mA。The controller 12 detects whether the current of the data pin of the first connector 41 is in the second preset current range, and the first preset current range does not overlap with the first preset current range. If the third device 30 is a data transmission device, the positive data pin 312 or the negative data pin 313 of the third interface 31 of the third device 30 is in a floating state. The current of the data pin of the first connector 41 is very small, close to 0mA.

其中,第二预设电路区间小于第二预设电流区间。举例来说,第二预设电流区间可以位于0mA~0.5mA。Wherein, the second preset circuit interval is smaller than the second preset current interval. For example, the second preset current range may be located at 0 mA˜0.5 mA.

需要说明的是,当检测到第三设备30为数据传输设备时,第一接口11的电源引脚111可以向第三接口31的电源引脚311供电。其供电电流较小,举例来说,第一接口11的电源引脚111可以向第三接口31的电源引脚311供电的供电电流为25mA。It should be noted that, when it is detected that the third device 30 is a data transmission device, the power pin 111 of the first interface 11 may supply power to the power pin 311 of the third interface 31 . The power supply current is relatively small. For example, the power supply current that the power supply pin 111 of the first interface 11 can supply to the power supply pin 311 of the third interface 31 is 25 mA.

可选的,请参阅图2,图2是本申请实施例公开的一种第一设备的结构示意图。如图2所示,充电模块13包括电池131和升压电路132;Optionally, please refer to FIG. 2 . FIG. 2 is a schematic structural diagram of a first device disclosed in an embodiment of the present application. As shown in Figure 2, the charging module 13 includes a battery 131 and a boost circuit 132;

电池131的输出端口1311连接升压电路132的输入端口1321,升压电路132的输出端口1322连接第一接口11的电源引脚111。The output port 1311 of the battery 131 is connected to the input port 1321 of the boost circuit 132 , and the output port 1322 of the boost circuit 132 is connected to the power pin 111 of the first interface 11 .

其中,升压电路132可以将电池131的电压(比如,4.35V)升高至充电标准的电压(比如,5V)。升压电路132也可以称为boost电路。Wherein, the boost circuit 132 can boost the voltage of the battery 131 (for example, 4.35V) to a charging standard voltage (for example, 5V). The boost circuit 132 can also be called a boost circuit.

可选的,控制器12还用于在电池131的电量低于预设电量阈值时,降低充电模块13输出至第二设备20的充电电流。Optionally, the controller 12 is further configured to reduce the charging current output by the charging module 13 to the second device 20 when the power of the battery 131 is lower than a preset power threshold.

本申请实施例中,第一设备10可以根据自身电池的电量大小来调整充电模块输出的充电电流。比如,第一设备10可以自身电池的电量低于预设电量阈值时,降低充电模块13输出的充电电流,以使充电模块13输出的充电电流小于第一目标电流。预设电量阈值可以预先进行设定,比如,可以设置预设电量阈值为电池总电量的40%。In the embodiment of the present application, the first device 10 may adjust the charging current output by the charging module according to the power level of its own battery. For example, the first device 10 may reduce the charging current output by the charging module 13 when the power of its own battery is lower than the preset power threshold, so that the charging current output by the charging module 13 is smaller than the first target current. The preset power threshold can be set in advance, for example, the preset power threshold can be set to be 40% of the total battery power.

比如,如果当第一设备10向第二设备20充电时,如果第一设备10允许的最大充电电流为1000mA,当检测到第一设备10的电池电量低于40%时,则将第一设备10的充电模块13输出的充电电流从1000mA降低至100mA,以防止第一设备10的电池电量快速消耗。For example, if when the first device 10 is charging the second device 20, if the maximum charging current allowed by the first device 10 is 1000mA, when it is detected that the battery power of the first device 10 is lower than 40%, then the first device The charging current output by the charging module 13 of 10 is reduced from 1000mA to 100mA, so as to prevent the battery power of the first device 10 from being consumed rapidly.

可选的,控制器12还用于在电池131在第一设备10的供电电流超过预设电流阈值时,降低充电模块13输出至第二设备20的充电电流。Optionally, the controller 12 is further configured to reduce the charging current output by the charging module 13 to the second device 20 when the supply current of the battery 131 in the first device 10 exceeds a preset current threshold.

其中,第一设备10可以在自身的供电电流较大时,降低充电模块13输出至第二设备20的充电电流,可以保证电池工作的稳定性,避免出现电池输出总电流过大导致第一设备10发热的情况。Among them, the first device 10 can reduce the charging current output by the charging module 13 to the second device 20 when its own power supply current is relatively large, which can ensure the stability of the battery operation and avoid the occurrence of excessive battery output current that causes the first device to 10 In case of fever.

可选的,如图3所示,第一设备10还包括显示装置14,显示装置14用于接收用户输入的充电电流调节指令,充电电流调节指令用于在第三预设电流区间内调整第一设备10向第二设备20充电的电流,第三预设电流区间的上限为第一目标充电电流。Optionally, as shown in FIG. 3 , the first device 10 further includes a display device 14, and the display device 14 is configured to receive a charging current adjustment instruction input by the user, and the charging current adjustment instruction is used to adjust the charging current adjustment instruction in the third preset current interval. The current for charging the second device 20 from one device 10 , the upper limit of the third preset current interval is the first target charging current.

本申请实施例中,举例来说,如果第二设备20运行的最大充电电流为1000mA,则可以在显示装置14上显示充电电流调节进度条。如图3所示,用户可以通过手指在充电电流调节进度条上滑动,将第一设备10向第二设备20充电的电流从1000mA调整至700mA。本申请实施例可以通过用户主动灵活的调整第一设备10向第二设备20充电的电流。In the embodiment of the present application, for example, if the maximum charging current of the second device 20 is 1000mA, a charging current adjustment progress bar may be displayed on the display device 14 . As shown in FIG. 3 , the user can adjust the charging current from the first device 10 to the second device 20 from 1000 mA to 700 mA by sliding a finger on the charging current adjustment progress bar. In the embodiment of the present application, the user can actively and flexibly adjust the charging current of the first device 10 to the second device 20 .

请参阅图4,图4是本申请实施例公开的一种复用数据线的结构示意图,如图4所示,复用数据线40用于连接第一设备10与第二设备20,复用数据线40还用于连接第一设备10和第三设备30,复用数据线40包括第一接头41、第二接头42、第三接头43和切换芯片44,第一接头41包括第一电源引脚411、第一正数据引脚412、第一负数据引脚413、第一接地引脚414和第一检测引脚415;第二接头42包括第二电源引脚421、第二正数据引脚422、第二负数据引脚423和第二接地引脚424;第三接头43包括第三电源引脚431、第三正数据引脚432、第三负数据引脚433和第三接地引脚434;切换芯片44包括第一选择端口441、第二选择端口442、第一正数据端口443、第一负数据端口444和第二正数据端口445、第二负数据端口446;Please refer to FIG. 4. FIG. 4 is a schematic structural diagram of a multiplexed data line disclosed in the embodiment of the present application. As shown in FIG. 4, the multiplexed data line 40 is used to connect the first device 10 and the second device 20. The data line 40 is also used to connect the first device 10 and the third device 30. The multiplexing data line 40 includes a first joint 41, a second joint 42, a third joint 43 and a switching chip 44. The first joint 41 includes a first power supply Pin 411, the first positive data pin 412, the first negative data pin 413, the first ground pin 414 and the first detection pin 415; the second connector 42 includes the second power supply pin 421, the second positive data pin Pin 422, second negative data pin 423 and second ground pin 424; third connector 43 includes third power supply pin 431, third positive data pin 432, third negative data pin 433 and third ground Pin 434; switching chip 44 includes a first selection port 441, a second selection port 442, a first positive data port 443, a first negative data port 444, a second positive data port 445, and a second negative data port 446;

第一电源引脚411连接第二电源引脚421和第三电源引脚431,第一正数据引脚412连接第一选择端口441,第二正数据引脚422连接第二选择端口442,第一正数据端口443连接第二正数据引脚422,第一负数据端口444连接第二负数据引脚423,第二正数据端口445连接第三正数据引脚432,第二负数据端口446连接第三负数据引脚433;The first power pin 411 is connected to the second power pin 421 and the third power pin 431, the first positive data pin 412 is connected to the first selection port 441, the second positive data pin 422 is connected to the second selection port 442, and the first positive data pin 412 is connected to the second selection port 442. A positive data port 443 is connected to the second positive data pin 422, the first negative data port 444 is connected to the second negative data pin 423, the second positive data port 445 is connected to the third positive data pin 432, and the second negative data port 446 Connect the third negative data pin 433;

第一接头41插入第一设备10,第二接头42插入第二设备20,第三接头43插入第三设备30;The first connector 41 is inserted into the first device 10, the second connector 42 is inserted into the second device 20, and the third connector 43 is inserted into the third device 30;

切换芯片44控制第一选择端口441连接第一正数据端口443,控制第第二选择端口442连接第一负数据端口444时,第一设备10用于检测第二设备20是否为待充电设备以及检测第二设备20的充电电流,若第二设备20为待充电设备并且第二设备20的充电电流为第一目标充电电流,第一设备10用于以第一目标充电电流向第二设备20充电。When the switch chip 44 controls the first selection port 441 to connect to the first positive data port 443, and controls the second selection port 442 to connect to the first negative data port 444, the first device 10 is used to detect whether the second device 20 is a device to be charged and Detecting the charging current of the second device 20, if the second device 20 is a device to be charged and the charging current of the second device 20 is the first target charging current, the first device 10 is used to charge the second device 20 with the first target charging current. Charge.

可选的,切换芯片44控制第一选择端口441连接第二正数据端口445,控制第二选择端口442连接第二负数据端口446时,第一设备10用于检测第三设备30是否为数据传输设备,若第三设备30为数据传输设备,第一设备10用于与第三设备30进行数据传输。Optionally, when the switching chip 44 controls the first selection port 441 to connect to the second positive data port 445, and controls the second selection port 442 to connect to the second negative data port 446, the first device 10 is used to detect whether the third device 30 is a data port. The transmission device, if the third device 30 is a data transmission device, the first device 10 is used to perform data transmission with the third device 30 .

本申请实施例中,复用数据线40的第一接头41与第一设备10连接,第二接头42与第二设备20连接,第三接头43与第三设备30连接。第一设备10为主设备,第一设备10可以向第二设备20充电,也可以向第三设备30进行数据传输。采用图4所示的复用数据线,实现第一设备的反向充电和数据传输的功能复用,可以让第一设备同时与两个外部设备分别进行反向充电和数据传输。In the embodiment of the present application, the first connector 41 of the multiplexing data line 40 is connected to the first device 10 , the second connector 42 is connected to the second device 20 , and the third connector 43 is connected to the third device 30 . The first device 10 is the master device, and the first device 10 can charge the second device 20 or transmit data to the third device 30 . The multiplexing data line shown in FIG. 4 is used to realize the function multiplexing of reverse charging and data transmission of the first device, which allows the first device to perform reverse charging and data transmission with two external devices at the same time.

本申请实施例还公开了一种电子装置。该电子装置可以参见图2或图3所示的第一设备。该电子装置包括第一接口、控制器和充电模块,复用数据线的第一接头插入第一接口,复用数据线还包括第二接头和第三接头,第二接头插入待充电设备的接口,第三接头插入数据传输设备的接口;The embodiment of the present application also discloses an electronic device. For the electronic device, refer to the first device shown in FIG. 2 or FIG. 3 . The electronic device includes a first interface, a controller and a charging module, the first connector of the multiplexed data line is inserted into the first interface, the multiplexed data line also includes a second connector and a third connector, and the second connector is inserted into the interface of the device to be charged , the third connector is inserted into the interface of the data transmission device;

电子装置用于通过充电模块向与复用数据线连接的待充电设备充电,以及用于与复用数据线连接的数据传输设备进行数据传输。The electronic device is used for charging the equipment to be charged connected with the multiplexing data line through the charging module, and for performing data transmission with the data transmission equipment connected with the multiplexing data line.

本申请实施例还提供了一种电子装置,如图5所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例的电路部分。该电子装置可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以电子装置为手机为例:The embodiment of the present application also provides an electronic device, as shown in Figure 5, for the sake of illustration, only the parts related to the embodiment of the present application are shown, and the specific technical details are not disclosed, please refer to the circuit of the embodiment of the present application part. The electronic device can be any terminal equipment including mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, sales terminal), vehicle-mounted computer, etc. Taking the electronic device as a mobile phone as an example:

请参阅图5,图5是本申请实施例公开的一种电子装置的结构示意图,图5中以手机为例进行说明。参考图5,手机包括:射频(Radio Frequency,RF)电路910、存储器920、输入单元930、显示单元940、传感器950、音频电路960、无线保真(Wireless Fidelity,WiFi)模块970、处理器980、以及电源990等部件。本领域技术人员可以理解,图5中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Please refer to FIG. 5 . FIG. 5 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application. In FIG. 5 , a mobile phone is taken as an example for illustration. 5, the mobile phone includes: a radio frequency (Radio Frequency, RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (Wireless Fidelity, WiFi) module 970, a processor 980 , and power supply 990 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 5 is not limited to the mobile phone, and may include more or less components than shown in the figure, or combine some components, or arrange different components.

下面结合图5对手机的各个构成部件进行具体的介绍:The following is a specific introduction to each component of the mobile phone in conjunction with Figure 5:

RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobilecommunication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code DivisionMultiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。RF circuitry 910 may be used for the reception and transmission of information. Generally, the RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, RF circuitry 910 may also communicate with networks and other devices via wireless communications. The above wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (Global System of Mobilecommunication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (Short Messaging Service, SMS), etc.

存储器920可用于存储软件程序以及模块,处理器980通过运行存储在存储器920的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器920可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据手机的使用所创建的数据等。此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 920 can be used to store software programs and modules, and the processor 980 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 920 . The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function, etc.; the data storage area may store data created according to the use of the mobile phone, etc. In addition, the memory 920 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.

输入单元930可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括指纹识别模组931以及其他输入设备932。指纹识别模组931,可采集用户在其上的指纹数据。除了指纹识别模组931,输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于触控屏、物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 930 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone. Specifically, the input unit 930 may include a fingerprint identification module 931 and other input devices 932 . The fingerprint identification module 931 can collect the fingerprint data of the user on it. In addition to the fingerprint recognition module 931 , the input unit 930 may also include other input devices 932 . Specifically, other input devices 932 may include but not limited to one or more of a touch screen, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, joystick, and the like.

显示单元940可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元940可包括显示屏941,可选的,可以采用液晶显示器(Liquid CrystalDisplay,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示屏941。虽然在图5中,指纹识别模组931与显示屏941是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将指纹识别模组931与显示屏941集成而实现手机的输入和播放功能。The display unit 940 may be used to display information input by or provided to the user and various menus of the mobile phone. The display unit 940 may include a display screen 941. Optionally, the display screen 941 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. Although in FIG. 5, the fingerprint identification module 931 and the display screen 941 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the fingerprint identification module 931 and the display screen 941 can be Integrated to realize the input and playback functions of the mobile phone.

手机还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏941的亮度,接近传感器可在手机移动到耳边时,关闭显示屏941和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor can include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display screen 941 according to the brightness of the ambient light, and the proximity sensor can turn off the display screen 941 and/or when the mobile phone is moved to the ear. or backlight. 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 application of mobile phone posture (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. repeat.

音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号播放;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据播放处理器980处理后,经RF电路910以发送给比如另一手机,或者将音频数据播放至存储器920以便进一步处理。The audio circuit 960, the speaker 961, and the microphone 962 can provide an audio interface between the user and the mobile phone. The audio circuit 960 can transmit the electrical signal converted from the received audio data to the loudspeaker 961, and the loudspeaker 961 converts it into a sound signal for playback; After being received, it is converted into audio data, and after being processed by the audio data playback processor 980, the audio data is sent to, for example, another mobile phone through the RF circuit 910, or the audio data is played to the memory 920 for further processing.

WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图4示出了WiFi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 970. It provides users with wireless broadband Internet access. Although Fig. 4 shows the WiFi module 970, it can be understood that it is not an essential component of the mobile phone, and can be completely omitted as required without changing the essence of the invention.

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

手机还包括给各个部件供电的电源990(比如电池),优选的,电源可以通过电源管理系统与处理器980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power supply 990 (such as a battery) for supplying power to each component. Preferably, the power supply can be logically connected to the processor 980 through the power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system.

手机还可以包括摄像头9100,摄像头9100用于拍摄图像与视频,并将拍摄的图像和视频传输到处理器980进行处理。The mobile phone may also include a camera 9100, and the camera 9100 is used to capture images and videos, and transmit the captured images and videos to the processor 980 for processing.

手机还可以蓝牙模块等,在此不再赘述。The mobile phone can also be a Bluetooth module, etc., which will not be repeated here.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been introduced in detail above, and specific examples have been used in this paper to illustrate the principles and implementation methods of the present application. The descriptions of the above embodiments are only used to help understand the core idea of the present application; meanwhile, for those in the art Ordinary technicians, based on the idea of this application, will have changes in specific implementation methods and application ranges. In summary, the content of this specification should not be construed as limiting this application.

Claims (11)

1. The utility model provides a reverse charge and data transmission sharing system, characterized in that, includes first equipment, second equipment, third equipment and multiplexing data line, first equipment includes first interface, controller and charging module, the second equipment includes the second interface, the third equipment includes the third interface, multiplexing data line includes first joint, second joint, third joint and switches the chip, wherein:
the first joint is connected with the first interface, the second joint is connected with the second interface, and the third joint is connected with the third interface; the power pin of the first connector is connected with the power pin of the second connector and the power pin of the third connector;
when the switching chip controls the data pin of the first connector to be communicated with the data pin of the second connector, the controller is used for detecting whether the second device is a device to be charged and detecting the allowable charging current of the second device, and if the second device is the device to be charged and the allowable charging current of the second device is a first target charging current, the controller is used for controlling the charging module to charge the second device with the first target charging current;
when the switching chip controls the data pin of the first connector to be communicated with the data pin of the third connector, the controller is configured to detect whether the third device is a data transmission device, and if the third device is the data transmission device, the controller is configured to control the first interface to perform data transmission with the third device.
2. The system of claim 1, wherein when the first connector is connected to the first interface, the detection pin of the first connector is connected to the detection pin of the first interface, the power pin of the first connector is connected to the power pin of the first interface, and the detection pin of the first connector is grounded;
the controller is further configured to control the charging module to output a power supply voltage to the power supply pin of the first interface when it is detected that the detection pin of the first interface is grounded.
3. The system according to claim 1 or 2, wherein the controller detects whether the second device is a device to be charged specifically by:
the controller detects whether the current of the data pin of the first connector is in a first preset current interval.
4. The system of claim 3, wherein the controller detects the allowable charging current of the second device by:
and the controller determines a first target charging current corresponding to the current of the data pin of the first connector according to the corresponding relation between the current of the data pin and the allowable current.
5. The system according to claim 3 or 4, wherein the controller detects whether the third device is a data transmission device by:
the controller detects whether the current of the data pin of the first connector is in a second preset current interval, and the first preset current interval have no intersection.
6. The system according to any one of claims 2 to 5, wherein the charging module comprises a battery and a boost circuit;
the output port of the battery is connected with the input port of the booster circuit, and the output port of the booster circuit is connected with the power pin of the first interface.
7. The system of claim 6, wherein the controller is further configured to decrease the charging current output by the charging module when the charge level of the battery is lower than a preset charge level threshold.
8. The system of claim 6, wherein the first device further comprises a display device, and the display device is configured to receive a charging current adjustment instruction input by a user, the charging current adjustment instruction is configured to adjust a current for charging the second device by the first device within a third preset current interval, and an upper limit of the third preset current interval is the first target charging current.
9. A multiplexing data line is characterized in that the multiplexing data line is used for connecting a first device and a second device, the multiplexing data line is also used for connecting the first device and a third device, the multiplexing data line comprises a first joint, a second joint, a third joint and a switching chip, and the first joint comprises a first power supply pin, a first positive data pin, a first negative data pin, a first grounding pin and a first detection pin; the second connector comprises a second power supply pin, a second positive data pin, a second negative data pin and a second grounding pin; the third connector comprises a third power supply pin, a third positive data pin, a third negative data pin and a third ground pin; the switching chip comprises a first selection port, a second selection port, a first positive data port, a first negative data port, a second positive data port and a second negative data port;
the first power pin is connected with the second power pin and the third power pin, the first positive data pin is connected with the first selection port, the second positive data pin is connected with the second selection port, the first positive data port is connected with the second positive data pin, the first negative data port is connected with the second negative data pin, the second positive data port is connected with the third positive data pin, and the second negative data port is connected with the third negative data pin;
the first connector is inserted into the first device, the second connector is inserted into the second device, and the third connector is inserted into the third device;
the switching chip controls the first selection port to be connected with the first positive data port, controls the second selection port to be connected with the first negative data port, and when the first device is used for detecting whether the second device is a device to be charged and detecting the charging current of the second device, if the second device is the device to be charged and the charging current of the second device is a first target charging current, the first device is used for charging the second device with the first target charging current.
10. The multiplexed data line of claim 9,
the switching chip controls the first selection port to be connected with the second positive data port, and when the second selection port is controlled to be connected with the second negative data port, the first device is used for detecting whether the third device is a data transmission device, and if the third device is the data transmission device, the first device is used for carrying out data transmission with the third device.
11. An electronic device, comprising a first interface, a controller, and a charging module, wherein: the first connector of the multiplexing data line of any one of claims 9 to 10 is plugged into the first interface, the multiplexing data line further comprises a second connector and a third connector, the second connector is plugged into an interface of a device to be charged, and the third connector is plugged into an interface of a data transmission device;
the electronic device is used for charging the equipment to be charged connected with the multiplexing data line through the charging module and transmitting data to the data transmission equipment connected with the multiplexing data line.
CN201810627565.0A 2018-06-19 2018-06-19 Reverse charging and data transmission sharing system, multiplexing data lines and electronic devices Expired - Fee Related CN110620602B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810627565.0A CN110620602B (en) 2018-06-19 2018-06-19 Reverse charging and data transmission sharing system, multiplexing data lines and electronic devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810627565.0A CN110620602B (en) 2018-06-19 2018-06-19 Reverse charging and data transmission sharing system, multiplexing data lines and electronic devices

Publications (2)

Publication Number Publication Date
CN110620602A true CN110620602A (en) 2019-12-27
CN110620602B CN110620602B (en) 2021-07-06

Family

ID=68919961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810627565.0A Expired - Fee Related CN110620602B (en) 2018-06-19 2018-06-19 Reverse charging and data transmission sharing system, multiplexing data lines and electronic devices

Country Status (1)

Country Link
CN (1) CN110620602B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111061667A (en) * 2019-12-31 2020-04-24 深圳市倍行科技有限公司 Wire rod for realizing data transmission of any one way by one dragging of multiple wires
WO2021175073A1 (en) * 2020-03-06 2021-09-10 维沃移动通信有限公司 Electronic device
CN116800570A (en) * 2022-03-15 2023-09-22 北京小米移动软件有限公司 Signal transmission method, signal transmission device and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2750584Y (en) * 2004-12-02 2006-01-04 上海贝豪通讯电子有限公司 A three-in-one handset interface realizing functions of earphone, serial port, and charging
US20130002192A1 (en) * 2011-06-30 2013-01-03 Standard Microsystems Corporation Method and system for sampling multiple profiles in a charging port without host intervention
CN104035357A (en) * 2014-06-27 2014-09-10 广东欧珀移动通信有限公司 Headset, charging and OTG equipment circuit design based on USB socket
CN204030193U (en) * 2014-06-26 2014-12-17 深圳市非凡创新实业有限公司 Connecting line with OTG function
CN104638732A (en) * 2015-03-03 2015-05-20 上海创远仪器技术股份有限公司 System with external equipment accessing and battery charging management functions, and method thereof
CN106026247A (en) * 2016-06-17 2016-10-12 上海与德通讯技术有限公司 Charging equipment and charging method thereof
CN206116826U (en) * 2016-10-12 2017-04-19 重庆蓝岸通讯技术有限公司 USB data line of compatible OTG function
CN206878285U (en) * 2017-05-31 2018-01-12 深圳市深鑫科技有限公司 A kind of two-in-one patchcord of audio charging
CN107622031A (en) * 2017-08-09 2018-01-23 深圳市亿道数码技术有限公司 A kind of double type c interface arrangements based on intel kabylake platforms
CN207038872U (en) * 2017-06-07 2018-02-23 苏州优函信息科技有限公司 Multifunction intelligent mobile telephone data wire

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2750584Y (en) * 2004-12-02 2006-01-04 上海贝豪通讯电子有限公司 A three-in-one handset interface realizing functions of earphone, serial port, and charging
US20130002192A1 (en) * 2011-06-30 2013-01-03 Standard Microsystems Corporation Method and system for sampling multiple profiles in a charging port without host intervention
CN204030193U (en) * 2014-06-26 2014-12-17 深圳市非凡创新实业有限公司 Connecting line with OTG function
CN104035357A (en) * 2014-06-27 2014-09-10 广东欧珀移动通信有限公司 Headset, charging and OTG equipment circuit design based on USB socket
CN104638732A (en) * 2015-03-03 2015-05-20 上海创远仪器技术股份有限公司 System with external equipment accessing and battery charging management functions, and method thereof
CN106026247A (en) * 2016-06-17 2016-10-12 上海与德通讯技术有限公司 Charging equipment and charging method thereof
CN206116826U (en) * 2016-10-12 2017-04-19 重庆蓝岸通讯技术有限公司 USB data line of compatible OTG function
CN206878285U (en) * 2017-05-31 2018-01-12 深圳市深鑫科技有限公司 A kind of two-in-one patchcord of audio charging
CN207038872U (en) * 2017-06-07 2018-02-23 苏州优函信息科技有限公司 Multifunction intelligent mobile telephone data wire
CN107622031A (en) * 2017-08-09 2018-01-23 深圳市亿道数码技术有限公司 A kind of double type c interface arrangements based on intel kabylake platforms

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111061667A (en) * 2019-12-31 2020-04-24 深圳市倍行科技有限公司 Wire rod for realizing data transmission of any one way by one dragging of multiple wires
WO2021175073A1 (en) * 2020-03-06 2021-09-10 维沃移动通信有限公司 Electronic device
US12476477B2 (en) 2020-03-06 2025-11-18 Vivo Mobile Communication Co., Ltd. Electronic device
CN116800570A (en) * 2022-03-15 2023-09-22 北京小米移动软件有限公司 Signal transmission method, signal transmission device and storage medium

Also Published As

Publication number Publication date
CN110620602B (en) 2021-07-06

Similar Documents

Publication Publication Date Title
US12057725B2 (en) Charging control circuit, terminal device, control method and computer-readable storage medium
CN107546808B (en) Charging identification circuit, identification method and terminal equipment
CN107635069B (en) UART (Universal asynchronous receiver transmitter) and USB (Universal Serial bus) multiplexing circuit and mobile terminal
CN107678989B (en) UART (Universal asynchronous receiver transmitter) and USB (Universal Serial bus) multiplexing circuit and mobile terminal
CN107749647B (en) Battery pack structure, mobile terminal and charging control method
CN106549451A (en) A kind of wireless charging method and device
CN106817540A (en) A camera control method and device
CN106786961A (en) Charging process method, device and terminal
CN107947825A (en) Antenna selection circuit and mobile terminal
CN106155557A (en) A virtual button display method and mobile terminal
KR102831062B1 (en) Electronic devices
CN108415865A (en) Interface circuit and electronic device
CN107613126A (en) UART (Universal asynchronous receiver transmitter) and USB (Universal Serial bus) multiplexing circuit and mobile terminal
CN106845422A (en) A kind of fingerprint recognition module, fingerprint identification method and mobile terminal
CN107516917A (en) Charge control method, terminal, intelligent charge equipment and computer-readable storage medium
CN107196384A (en) A kind of charging method, wireless charging device and computer-readable recording medium
CN106549465A (en) Charge control method, device, system and terminal
CN206595696U (en) A kind of short-circuit protection circuit, power supply adaptor and mobile terminal
CN106532876A (en) Power supply control method and device and computer equipment
CN108595352A (en) A kind of guard method of mobile terminal and device
CN107834640A (en) A kind of charging method and terminal
CN110620602B (en) Reverse charging and data transmission sharing system, multiplexing data lines and electronic devices
CN108777627A (en) A kind of method of supplying power to and device
CN107565650A (en) Design of Compatibility method and circuit
CN113572232A (en) Charging 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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210706

CF01 Termination of patent right due to non-payment of annual fee