Charging and communication interface circuits and interface devices

CN224637800UActive Publication Date: 2026-08-14SHENZHEN BREO TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2025-09-19
Publication Date
2026-08-14

AI Technical Summary

Technical Problem

[0005]本申请的主要目的在于提供一种充电兼通信接口电路及接口设备,旨在解决接口电路的功能性不高的技术问题

Benefits of technology

[0032]本申请实施例提供了一种充电兼通信接口电路,包括接地端口,接地端口用于与第一设备的接地端连接;电源端口,电源端口用于与第一设备的电源端连接;第一控制单元,第一控制单元的第一端与电源端口连接,第一控制单元的第二端用于与第二设备的第一端连接,第一控制单元用于将第二设备的第一电平编码发送至第一设备,以实现数据发送;第二控制单元,第二控制单元的第一端与电源端口和第一控制单元的第一端连接,第二控制单元的第二端与接地端口连接,第二控制单元的第三端用于与第二设备的第二端连接,第二控制单元用于将第一设备的第二电平编码发送至第二设备,以实现数据接收,第二控制单元还用于基于第一设备对第二设备进行充电,这种充电兼通信接口电路一方面通过第一控制单元将第二设备的第一电平编码发送至第一设备,以实现数据发送,以及第二控制单元将第一设备的第二电平编码发送至第二设备,以实现数据接收,进而实现了第一设备与第二设备直接的通信,另一方面第二控制单元还可以基于第一设备对第二设备进行充电,从而避免了仅包含电源端口及GND引脚的接口电路仅能实现充电功能的现象,这种充电兼通信接口电路可以基于以上电路实现第一设备和第二设备之间的通信及充电功能,即可以使用了仅包含电源端口及GND引脚的接口电路实现通信及充电功能,进而提高了接口电路的功能性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN224637800U_ABST
    Figure CN224637800U_ABST
Patent Text Reader

Abstract

This application discloses a charging and communication interface circuit and interface device, relating to the field of interface connection technology. It includes: a ground port for connecting to a first device; a power port for connecting to the first device; a first control unit, with a first terminal connected to the power port and a second terminal connected to a first terminal of a second device, for transmitting a first-level code from the second device to the first device to achieve data transmission; and a second control unit, with a first terminal connected to both the power port and the first terminal of the first control unit, a second terminal connected to the ground port, and a third terminal connected to a second terminal of the second device, for transmitting a second-level code from the first device to the second device to achieve data reception, and also for charging the second device based on the first device. This application improves the functionality of the interface circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of interface connection technology, and in particular to a charging and communication interface circuit and interface device. Background Technology

[0002] As interface circuits are used more and more widely in various fields, users are also putting forward higher requirements for interface circuits.

[0003] Traditional interface circuits, designed solely to reduce costs, often cripple the standard TYPE-C interface by only retaining the power and GND pins. This approach has significant drawbacks, as it limits the functionality of the interface circuit to charging capabilities.

[0004] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Utility Model Content

[0005] The main purpose of this application is to provide a charging and communication interface circuit and interface device, which aims to solve the technical problem of low functionality of the interface circuit.

[0006] To achieve the above objectives, this application provides a charging and communication interface circuit, which includes:

[0007] A grounding port, which is used to connect to the grounding terminal of the first device;

[0008] A power port, which is used to connect to the power supply terminal of the first device;

[0009] A first control unit, wherein a first end of the first control unit is connected to the power port, a second end of the first control unit is used to connect to a first end of the second device, and the first control unit is used to send a first level code of the second device to the first device to realize data transmission;

[0010] The second control unit has a first terminal connected to the power port and the first terminal of the first control unit, a second terminal connected to the ground port, and a third terminal connected to the second terminal of the second device. The second control unit is used to send the second level code of the first device to the second device to achieve data reception. The second control unit is also used to charge the second device based on the first device.

[0011] In one embodiment, the first control unit includes:

[0012] A first resistor, the first end of which serves as the second end of the first control unit and is connected to the first end of the second device;

[0013] The second resistor has a first end connected to the second end of the first resistor, and the second end of the second resistor is connected to the power supply.

[0014] A first switching transistor, the first end of which is connected to the second end of the first resistor and the first end of the second resistor, the second end of which is connected to the power supply, and the third end of which serves as the first end of the first control unit and is connected to the power supply port.

[0015] In one embodiment, the first control unit further includes:

[0016] The third resistor, the first end of which serves as the first end of the first control unit, is connected to the power port;

[0017] A diode, wherein the cathode of the diode is connected to the second terminal of the third resistor, and the anode of the diode is connected to the third terminal of the first switching transistor.

[0018] In one embodiment, the second control unit includes:

[0019] A fourth resistor, the first end of which is connected to the power supply, and the second end of which serves as the third end of the second control unit and is connected to the second end of the second device;

[0020] The second switch has a first end that serves as the first end of the second control unit and is connected to the power port and the first end of the first control unit. The second end of the second switch serves as the second end of the second control unit and is connected to the ground port. The third end of the second switch is connected to the second end of the fourth resistor and the second end of the second device.

[0021] In one embodiment, the second control unit further includes:

[0022] The fifth resistor has its first end serving as the first end of the second control unit and connected to the power port and the first end of the first control unit. The second end of the fifth resistor is connected to the first end of the second switching transistor.

[0023] The sixth resistor has its first end serving as the second end of the second control unit and connected to the grounding port and the second end of the second switching transistor. The second end of the sixth resistor is also connected to the second end of the fifth resistor and the first end of the second switching transistor.

[0024] In one embodiment, the second end of the second device includes a data receiving end and a charging end, and the charging and communication interface circuit further includes:

[0025] A mode switching unit, wherein a first end of the mode switching unit is connected to the data receiving end, a second end of the mode switching unit is connected to the charging end, and a third end of the mode switching unit is connected to the third end of the second control unit;

[0026] A control switch, the first end of which is connected to the fourth end of the mode switching unit, and the second end of which is connected to a power supply.

[0027] In one embodiment, the mode switching unit includes:

[0028] The two-to-one device has a first output terminal serving as the first terminal of the mode switching unit and connected to the data receiving terminal, a second output terminal serving as the second terminal of the mode switching unit and connected to the charging terminal, an input terminal serving as the third terminal of the mode switching unit and connected to the third terminal of the second control unit, and a control terminal serving as the fourth terminal of the mode switching unit and connected to the first terminal of the control switch.

[0029] In one embodiment, the first switch in the first control unit includes one of a switch that is turned on at a high level and a switch that is turned on at a low level, and the second switch in the second control unit includes one of a switch that is turned on at a high level and a switch that is turned on at a low level, wherein the turn-on level of the first switch and the turn-on level of the second switch are different.

[0030] In one embodiment, when the first device is a first communication device, the second device is a second communication device; when the first device is a power supply device, the second device is a charging device.

[0031] In addition, to achieve the above objectives, an interface device is also provided, which includes the charging and communication interface circuit described above.

[0032] This application provides a charging and communication interface circuit, including a ground port for connecting to the ground terminal of a first device; a power port for connecting to the power terminal of the first device; a first control unit, with a first terminal connected to the power port and a second terminal connected to a first terminal of a second device, the first control unit being used to send a first level code of the second device to the first device to achieve data transmission; and a second control unit, with a first terminal connected to the power port and the first terminal of the first control unit, a second terminal connected to the ground port, and a third terminal connected to a second terminal of the second device, the second control unit being used to send a second level code of the first device to the second device to achieve data reception. The second control unit also... This charging and communication interface circuit enables direct communication between the first and second devices by sending the first level code of the second device to the first device via the first control unit for data transmission, and sending the second level code of the first device to the second device via the second control unit for data reception. Furthermore, the second control unit can also charge the second device based on the first device, thus avoiding the limitation of interface circuits containing only power ports and GND pins that can only perform charging functions. This charging and communication interface circuit can achieve both communication and charging functions between the first and second devices using the above circuitry, thereby improving the functionality of the interface circuit. Attached Figure Description

[0033] Figure 1 A schematic diagram of the framework of the first embodiment of the charging and communication interface circuit of this application;

[0034] Figure 2 A schematic diagram of the circuit connection for a first embodiment of the charging and communication interface circuit of this application;

[0035] Figure 3 A schematic diagram of the circuit connection for a second embodiment of the charging and communication interface circuit of this application;

[0036] Figure 4 A schematic diagram of the circuit connection for the third embodiment of the charging and communication interface circuit of this application;

[0037] Figure 5 This is a schematic diagram of the circuit connection for the fourth embodiment of the charging and communication interface circuit of this application.

[0038] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings.

[0039] Explanation of icon numbers:

[0040] 200, First device; 300, Second device; 110, Power port; 120 (GND), Ground port; 10, First control unit; 20, Second control unit; VCC, Power supply; TX, Data transmission terminal; R1, First resistor; R2, Second resistor; R3, Third resistor; D1, Diode; Q1, First switching transistor;

[0041] R5, fifth resistor; R6, sixth resistor; R4, fourth resistor; Q2, second switch transistor; RX(310), data receiver; 40, control switch; 30, mode switching unit; 31, two-to-one selector; 320, charging terminal. Detailed Implementation

[0042] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.

[0043] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0044] Most standard Type-C interfaces include charging and data transfer capabilities. However, due to cost considerations, many use a stripped-down version (retaining only the power port 110 and GND pin). This stripped-down version (the traditional interface circuit) only has the power port 110 and GND pin, while the D+ and D- pins used for data transfer are removed. Consequently, the stripped-down Type-C only has charging functionality and lacks communication capabilities, affecting the implementation of normal communication functions. Similarly, 2-wire DC interfaces also suffer from this problem; they only have the power port 110 and GND pin, thus only enabling charging and not communication.

[0045] Therefore, based on the shortcomings of the above interface methods, the charging and communication interface circuit of this application is proposed: on the one hand, the first control unit 10 sends the first level code of the second device 300 to the first device 200 to realize data transmission, and the second control unit 20 sends the second level code of the first device 200 to the second device 300 to realize data reception, thereby realizing direct communication between the first device 200 and the second device 300. On the other hand, the second control unit 20 can also charge the second device 300 based on the first device 200, thereby avoiding the phenomenon that the interface circuit containing only the power port 110 and the GND pin can only realize the charging function. This charging and communication interface circuit can realize the communication and charging functions between the first device 200 and the second device 300 based on the above circuit, that is, the communication and charging functions can be realized using the interface circuit containing only the power port 110 and the GND pin, thereby improving the functionality of the interface circuit.

[0046] Based on this, the embodiments of this application provide a charging and communication interface circuit, referring to... Figure 1 , Figure 1 This is a schematic diagram of the first embodiment of the charging and communication interface circuit of this application.

[0047] Reference Figure 1 This application provides a charging and communication interface circuit, which includes:

[0048] Grounding port 120 is used to connect to the grounding terminal of the first device 200;

[0049] Power port 110 is used to connect to the power supply terminal of the first device 200;

[0050] The first control unit 10 has a first end connected to the power port 110 and a second end connected to the first end of the second device 300. The first control unit 10 is used to send the first level code of the second device 300 to the first device 200 to realize data transmission.

[0051] The second control unit 20 has a first terminal connected to the power port 110 and the first terminal of the first control unit 10, a second terminal connected to the ground port 120, and a third terminal connected to the second terminal of the second device 300. The second control unit 20 is used to send the second level code of the first device 200 to the second device 300 to realize data reception. The second control unit 20 is also used to charge the second device 300 based on the first device 200.

[0052] In this embodiment, the charging and communication interface circuit is a stripped-down version of the TYPE-C or 2-wire DC interface. That is, the charging and communication interface circuit only retains the power port 110 and the GND pin, meaning it only includes two connection lines: the ground port 120 and the power port 110. It is worth noting that in use, one side of the charging and communication interface circuit (ground port 120 and power port 110) is connected to the first device 200, and the other side (the second end of the first control unit 10 and the third end of the second control unit 20) is connected to the second device 300. This allows for communication or charging functions between the second device 300 and the first device 200 based on their different types (mutual communication or charging / waiting-to-charge). By designing the first control unit 10 and the second control unit 20 within the charging and communication interface circuit, the communication function of the stripped-down TYPE-C or 2-wire DC interface is achieved. During normal charging, the first device 200 is a device with charging capabilities, and the second device 300 is a device waiting to be charged. The second control unit 20 can be directly connected to the first device 200 to connect the power supply terminal of the first device 200 to the second terminal of the second device 300. Since the second terminal of the second device 300 is its charging terminal, charging of the second device 300 can be achieved normally. When communication is required, both the second device 300 and the first device 200 are communication devices, such as a mobile phone and a computer. Communication between the two devices involves control of communication reception and communication transmission. When the mobile phone acts as the second device 300 to send data, it pulls the level of the second terminal of the first control unit 10 high or low based on the second device 300, so as to output a first level code based on the first control unit 10, thereby enabling the second device 300 to send data to the first device 200. When the mobile phone acts as the second device 300 to receive data, it pulls the power port 110 of the second control unit 20 high or low based on the first device 200, so as to output a second level code based on the second control unit 20, thereby enabling the first device 200 to send data to the second device 300. For example, taking data transmission as an example, assuming the level signal is high, it will be converted by the first control unit 10 and then output as a high level to the first device 200. Of course, it does not necessarily have to be a high level input and high level output correspondence; it can also be a high level input and low level output correspondence, as long as different input levels result in different output levels from the first device 200.As a feasible embodiment, the first control unit 10 and the second control unit 20 can be directly a device with a continuous output level or a device with an inverted level, and there is no direct interference between the two. That is, the input or output of one device will not affect the input or output of the other device, thereby ensuring the accuracy of communication. At the same time, the entire charging and communication interface circuit can realize normal charging and data communication functions, thereby improving the functionality of the interface circuit.

[0053] In this embodiment, a charging and communication interface circuit is provided, including a ground port 120 for connecting to the ground terminal of a first device 200; a power port 110 for connecting to the power terminal of the first device 200; a first control unit 10, with a first terminal connected to the power port 110 and a second terminal connected to the first terminal of a second device 300. When the first device 200 and the second device 300 are connected through the charging and communication interface circuit, the first control unit 10 sends a first level code of the second device 300 to the first device 200 to achieve data transmission; and a second control unit 20, with a first terminal connected to the power port 110 and the first terminal of the first control unit 10, a second terminal connected to the ground port 120, and a third terminal connected to the second terminal of the second device 300. When the first device 200 and the second device 300 are connected through the charging and communication interface circuit, the second control unit 20 sends a second level code of the first device 200 to the second device 300. To achieve data reception, the second control unit 20 is also used to charge the second device 300 based on the first device 200. This charging and communication interface circuit, on the one hand, sends the first level code (a string of high and low level codes as data, such as 00001) of the second device 300 to the first device 200 through the first control unit 10 to achieve data transmission, and the second control unit 20 sends the second level code (a string of high and low level codes as data, such as 11110) of the first device 200 to the second device 300 to achieve data reception, thereby realizing communication between the first device 200 and the second device 300. On the other hand, the second control unit 20 can also charge the second device 300 based on the first device 200, thereby avoiding the phenomenon that the interface circuit containing only the power port 110 and the GND pin can only realize the charging function. This charging and communication interface circuit can realize the communication and charging functions between the first device 200 and the second device 300 based on the above circuit, that is, the interface circuit containing only the power port 110 and the GND pin can realize the communication and charging functions, thereby improving the functionality of the interface circuit.

[0054] Furthermore, based on the first embodiment of this application described above, a second embodiment of the charging and communication interface circuit of this application is proposed, referring to... Figure 2 , Figure 2 This is a schematic diagram of the circuit connection of the first embodiment of the charging and communication interface circuit of this application. The first control unit 10 includes:

[0055] The first resistor R1 has its first end serving as the second end of the first control unit 10 and connected to the first end of the second device 300.

[0056] The second resistor R2 has its first end connected to the second end of the first resistor R1, and its second end connected to the power supply VCC.

[0057] The first switch Q1 has its first terminal connected to the second terminal of the first resistor R1 and the first terminal of the second resistor R2. The second terminal of the first switch Q1 is connected to the second terminal of the second resistor R2 and the power supply VCC. The third terminal of the first switch Q1 serves as the first terminal of the first control unit 10 and is connected to the power supply port 110.

[0058] Furthermore, the first control unit 10 also includes:

[0059] The third resistor R3, the first end of the third resistor R3 serves as the first end of the first control unit 10 and is connected to the power port 110.

[0060] Diode D1 has its cathode connected to the second terminal of the third resistor R3, and its anode connected to the third terminal of the first switching transistor Q1.

[0061] In this embodiment, when the communication function of the charging and communication interface circuit is activated, it is assumed that the data transmission function needs to be implemented at this time. The external communication module, as the first device 200, is connected to the ground port 120 and the power port 110 of the charging and communication interface circuit. The ground port 120 and the power port 110 can be in the form of USB (Universal Serial Bus). Assuming the second device 300 is a main control chip within a mobile phone used for communication, when the first bit of the first level code to be sent is high, and the first control unit 10 is the circuit described in the above embodiment, the main control chip will set the data transmission terminal TX low. The data transmission terminal TX refers to the second terminal of the first control unit 10. The second terminal of the first control unit 10 is the port name of the unit, and the data transmission terminal TX is the function name when data is sent. That is, when the control data transmission terminal TX is low, the first switch Q1 is turned on, and the power port 110 is high, meaning a high level is output to the external communication module. When the second bit of the first level code is low, the main control chip will set the data transmission terminal TX high, that is, when the control data transmission terminal TX is high, the first switch Q1 is turned off, and the power port 110 is low, meaning a low level is output to the external communication module. In this way, the high and low levels can be encoded to form a data stream, and the main control chip can send data to the external communication module.

[0062] For example, the diode D1 in the first control unit 10 is designed to prevent signal (high and low level) reverse current, thereby avoiding the influence of other signals from the power port 110 (which serves as both the receiving port and the transmitting port of the external communication module) on data transmission. Of course, other switching transistors could also be used, such as the first switching transistor Q1, which uses a high-level conduction switching transistor. Other circuits could also be designed to achieve the functions described in the above embodiment. To ensure that the level of the data transmitting end TX is the same as the level of the power port 110, a level inverter can be connected to the data transmitting end TX to ensure input and output correspondence. The data input to the data transmitting end TX can be directly converted to output using an analog-to-digital converter, or other output methods can be used; this is not limited here.

[0063] In one embodiment, reference is made to Figure 3 , Figure 3 This is a schematic diagram of the circuit connection for a second embodiment of the charging and communication interface circuit of this application. The second control unit 20 includes:

[0064] The fourth resistor R4 has its first end connected to the power supply VCC, and its second end serves as the third end of the second control unit 20 and is connected to the second end of the second device 300.

[0065] The second switch Q2 has its first end serving as the first end of the second control unit 20 and connected to the power supply port 110 and the first end of the first control unit 10. The second end of the second switch Q2 serves as the second end of the second control unit 20 and is connected to the ground port 120. The third end of the second switch Q2 is connected to the second end of the fourth resistor R4 and the second end of the second device 300.

[0066] Furthermore, the second control unit 20 also includes:

[0067] The fifth resistor R5 has its first end serving as the first end of the second control unit 20 and connected to the power port 110 and the first end of the first control unit 10. The second end of the fifth resistor R5 is connected to the first end of the second switching transistor Q2.

[0068] The sixth resistor R6 has its first end serving as the second end of the second control unit 20 and connected to the ground port 120 and the second end of the second switch Q2. The second end of the sixth resistor R6 is also connected to the second end of the fifth resistor R5 and the first end of the second switch Q2.

[0069] In this embodiment, when the communication function of the charging and communication interface circuit is activated, assuming that data reception is required, the external communication module, as the first device 200, is connected to the ground port 120 and power port 110 of the charging and communication interface circuit. The second device 300 is a main control chip within the mobile phone used for communication. Further, referring to... Figure 4 , Figure 4 The circuit connection diagram for the third embodiment of the charging and communication interface circuit of this application is shown below. When the first bit of the second level code sent by the external communication module is high, and the first bit of the second level code is low, the external communication module pulls the power port 110 high, that is, the power port 110 is high. At this time, diode D1 is cut off, the first switch Q1 is off, and the second switch Q2 is on. The data receiving end RX is low. The data receiving end RX refers to the third terminal of the second control unit 20. The third terminal of the second control unit 20 is the port name of the unit. The data receiving end RX is the function name when receiving data. That is, at this time, a low level is output to the main control chip. When the second bit of the second level code is high, the external communication module pulls the power port 110 low, that is, the power port 110 is low. Diode D1 is cut off, the first switch Q1 is off, and the second switch Q2 is off. The data receiving end RX is high. That is, at this time, a high level is output to the main control chip. In this way, the high and low levels can be encoded to form a data stream, and the external communication module can send data to the main control chip.

[0070] For example, the design of diode D1 in the first control unit 10 becomes apparent at this point, and the design of the sixth grounding resistor R6 includes preventing direct grounding to protect the entire circuit. It is worth noting that the second switching transistor Q2 can also be other switching transistors, such as those that conduct at low levels. Other circuits can also be designed to achieve the functions described in the above embodiment. Of course, to ensure that the input level of the power supply port 110 and the output level of the data receiving terminal RX are the same, a level inverter can be connected to the data receiving terminal RX to ensure input and output correspondence. The data input to the data receiving terminal RX can be directly converted to output using an analog-to-digital converter, or other output methods can be used; this is not limited here.

[0071] For example, the first switch Q1 in the first control unit 10 includes one of a switch that is turned on at a high level and a switch that is turned on at a low level, and the second switch Q2 in the second control unit 20 includes one of a switch that is turned on at a high level and a switch that is turned on at a low level, wherein the turn-on level of the first switch Q1 and the turn-on level of the second switch Q2 are different.

[0072] In this embodiment, the first switch Q1 includes one of two types: a high-level on switch and a low-level on switch, such as a transistor or a triode. The second switch Q2 also includes one of two types: a high-level on switch and a low-level on switch, and the on-levels of the two switches are different. For example, if the two switches are low-level on and high-level on respectively, the signal from the power port 110 can be prevented from affecting the data receiver RX. The main control chip will set the data transmitter TX high, i.e., control the data transmitter TX to a high level, turn off the first switch Q1, and the power port 110 will be low, i.e., outputting a low level to the external communication module. However, assuming the second switch Q2 is also low-level on, the data receiver RX will be low-level due to the second switch Q2, thus affecting the accuracy of data reception at the data receiver RX.

[0073] For example, when the first device 200 is a first communication device, the second device 300 is a second communication device; when the first device 200 is a power supply device, the second device 300 is a charging device.

[0074] In this embodiment, because the entire charging and communication interface circuit can realize both charging and communication functions, when the first device 200 is the first communication device, the second device 300 is the second communication device, such as communication between a mobile phone and a computer. When the first device 200 is the power supply device and the second device 300 is the charging device, such as charging between a mobile phone and a computer, the ground port 120 and the power port 110 are connected to the power supply device and then to the charging device to enable the computer to charge the mobile phone. Therefore, the entire circuit can realize different functions based on different connected devices, thus expanding the functionality of the interface circuit.

[0075] In one embodiment, reference is made to Figure 5 , Figure 5 This is a circuit connection diagram of the fourth embodiment of the charging and communication interface circuit of this application. The second terminal of the second device 300 includes a data receiving terminal RX and a charging terminal 320. The charging and communication interface circuit also includes:

[0076] The mode switching unit 30 has a first end connected to the data receiving end RX, a second end connected to the charging end 320, and a third end connected to the third end of the second control unit 20.

[0077] Control switch 40, the first end of control switch 40 is connected to the fourth end of mode switching unit 30, and the second end of control switch 40 is connected to power supply VCC.

[0078] Furthermore, the mode switching unit 30 includes:

[0079] The 2-to-1 multiplexer 31 (which can be a 2-to-1 multiplexer chip in a digital circuit or other devices that implement 2-to-1 multiplexing) has the following functions: the first output terminal of the 2-to-1 multiplexer 31 serves as the first terminal of the mode switching unit 30 and is connected to the data receiving terminal RX; the second output terminal of the 2-to-1 multiplexer 31 serves as the second terminal of the mode switching unit 30 and is connected to the charging terminal 320; the input terminal of the 2-to-1 multiplexer 31 serves as the third terminal of the mode switching unit 30 and is connected to the third terminal of the second control unit 20; and the control terminal of the 2-to-1 multiplexer 31 serves as the fourth terminal of the mode switching unit 30 and is connected to the first terminal of the control switch 40.

[0080] In this embodiment, the second terminal of the second device 300 includes a data receiving terminal RX and a charging terminal 320. To switch between charging and communication functions, a mode switching unit 30 and a control switch 40 can be used. The mode switching unit 30 can be a two-to-one multiplexer 31. The first output terminal of the two-to-one multiplexer 31 is used as the first terminal of the mode switching unit 30 and connected to the data receiving terminal RX. The second output terminal of the two-to-one multiplexer 31 is used as the second terminal of the mode switching unit 30 and connected to the charging terminal 320. The input terminal of the two-to-one multiplexer 31 is used as the third terminal of the mode switching unit 30 and connected to the third terminal of the second control unit 20. The control switch 40 is connected to the power supply VCC to achieve different connection methods. When the control switch 40 is pressed, the control terminal of the two-to-one multiplexer 31 is connected to the power supply VCC (high level). At this time, the first output terminal of the two-to-one multiplexer 31 is connected to the input terminal, enabling the communication function of the charging and communication interface circuit. When the control switch 40 is not pressed, the control terminal of the two-to-one device 31 is not connected to the power supply VCC, i.e., it is at a low level. At this time, the second output terminal of the two-to-one device 31 is connected to the input terminal of the two-to-one device 31. At this time, it is the charging function of the charging and communication interface circuit. At this time, the control switch 40 can be pressed or not pressed according to the user's choice, thereby realizing different functions.

[0081] For example, the charging terminal 320 can also be directly connected to the power port 210 to achieve charging directly. However, the mode switching unit 30 should be designed as a two-to-one selection device. The principle of this device is to select one of the two lines to conduct, such as conducting the data receiving terminal RX and the third terminal of the second control unit 20 to achieve communication, or conducting the charging terminal 320 and the power port 210 to achieve charging. Thus, the charging and communication functions of the charging and communication interface circuit can be realized based on the two-to-one selection device.

[0082] Based on embodiments of the charging and communication interface circuit, this application also provides an interface device, which includes the charging and communication interface circuit described above.

[0083] It is worth noting that, according to the interface device of this utility model embodiment, on the one hand, the interface device sends the first level code of the second device 300 to the first device 200 through the first control unit 10 to realize data transmission, and the second control unit 20 sends the second level code of the first device 200 to the second device 300 to realize data reception, thereby realizing direct communication between the first device 200 and the second device 300. On the other hand, the second control unit 20 can also charge the second device 300 based on the first device 200, thereby avoiding the phenomenon that the interface circuit containing only the power port 110 and the GND pin can only realize the charging function. This charging and communication interface circuit can realize the communication and charging functions between the first device 200 and the second device 300 based on the above circuit. That is, the interface circuit containing only the power port 110 and the GND pin can realize the communication and charging functions, thereby improving the functionality of the interface circuit.

[0084] The interface device provided in this application offers a novel charging and communication interface circuit to improve the functionality of the interface circuit. Compared with the prior art, the beneficial effects of the device provided in this application are the same as those of the charging and communication interface circuit provided in the above embodiments, and will not be repeated here.

[0085] It is worth noting that the interface device may also include other hardware, such as power protection circuits and encoding generation circuits, which will not be described in detail here.

[0086] The above are only some embodiments of this application and do not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.

Claims

1. A charging and communication interface circuit, characterized in that, The charging and communication interface circuit includes: A grounding port, which is used to connect to the grounding terminal of the first device; A power port, which is used to connect to the power supply terminal of the first device; A first control unit, wherein a first end of the first control unit is connected to the power port, a second end of the first control unit is used to connect to a first end of the second device, and the first control unit is used to send a first level code of the second device to the first device to realize data transmission; The second control unit has a first terminal connected to the power port and the first terminal of the first control unit, a second terminal connected to the ground port, and a third terminal connected to the second terminal of the second device. The second control unit is used to send the second level code of the first device to the second device to achieve data reception. The second control unit is also used to charge the second device based on the first device.

2. The charging and communication interface circuit of claim 1, wherein, The first control unit includes: A first resistor, the first end of which serves as the second end of the first control unit and is connected to the first end of the second device; The second resistor has a first end connected to the second end of the first resistor, and the second end of the second resistor is connected to the power supply. A first switching transistor, the first end of which is connected to the second end of the first resistor and the first end of the second resistor, the second end of which is connected to the power supply, and the third end of which serves as the first end of the first control unit and is connected to the power supply port.

3. The charge and communication interface circuit of claim 2, wherein, The first control unit also includes: The third resistor, the first end of which serves as the first end of the first control unit, is connected to the power port; A diode, wherein the cathode of the diode is connected to the second terminal of the third resistor, and the anode of the diode is connected to the third terminal of the first switching transistor.

4. The charging and communication interface circuit of claim 1, wherein, The second control unit includes: A fourth resistor, the first end of which is connected to the power supply, and the second end of which serves as the third end of the second control unit and is connected to the second end of the second device; The second switch has a first end that serves as the first end of the second control unit and is connected to the power port and the first end of the first control unit. The second end of the second switch serves as the second end of the second control unit and is connected to the ground port. The third end of the second switch is connected to the second end of the fourth resistor and the second end of the second device.

5. The charging and communication interface circuit as described in claim 4, characterized in that, The second control unit also includes: The fifth resistor has its first end serving as the first end of the second control unit and connected to the power port and the first end of the first control unit. The second end of the fifth resistor is connected to the first end of the second switching transistor. The sixth resistor has its first end serving as the second end of the second control unit and connected to the grounding port and the second end of the second switching transistor. The second end of the sixth resistor is also connected to the second end of the fifth resistor and the first end of the second switching transistor.

6. The charging and communication interface circuit of claim 1, wherein, The second end of the second device includes a data receiving end and a charging end, and the charging and communication interface circuit further includes: A mode switching unit, wherein a first end of the mode switching unit is connected to the data receiving end, a second end of the mode switching unit is connected to the charging end, and a third end of the mode switching unit is connected to the third end of the second control unit; A control switch, the first end of which is connected to the fourth end of the mode switching unit, and the second end of which is connected to a power supply.

7. The charge and communication interface circuit of claim 6, wherein, The mode switching unit includes: The two-to-one device has a first output terminal serving as the first terminal of the mode switching unit and connected to the data receiving terminal, a second output terminal serving as the second terminal of the mode switching unit and connected to the charging terminal, an input terminal serving as the third terminal of the mode switching unit and connected to the third terminal of the second control unit, and a control terminal serving as the fourth terminal of the mode switching unit and connected to the first terminal of the control switch.

8. A charge and communication interface circuit as claimed in any one of claims 1 to 7, characterized in that, The first switch in the first control unit includes one of a switch that is turned on at a high level and a switch that is turned on at a low level, and the second switch in the second control unit includes one of a switch that is turned on at a high level and a switch that is turned on at a low level, wherein the turn-on level of the first switch and the turn-on level of the second switch are different.

9. A charge and communication interface circuit as claimed in any one of claims 1 to 7, characterized in that, When the first device is a first communication device, the second device is a second communication device; when the first device is a power supply device, the second device is a charging device.

10. An interface device, comprising: The interface device includes the charging and communication interface circuit as described in any one of claims 1 to 9.