Identification circuit for interface connection and identification method thereof

By designing an identification circuit for interface connection, using the voltage generation module and comparison module combined with diodes, the problem of being unable to identify the connection status after the output loop and the input loop are merged is solved, and accurate identification of load connection, power connection and no connection is achieved. , reducing the size of the device and improving recognition capabilities.

CN118604689APending Publication Date: 2024-09-06SHENZHEN HEQUNYI TRADING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410793120.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In the existing technology, after the output loop and the input loop are merged into the same loop, the system circuit cannot identify the three port connection states of load connection, power connection, and no connection.

Method used

Design an identification circuit for interface connection, including a second-line port, a voltage generation module and a voltage comparison module. By generating a DC regulated voltage or a DC pulse voltage, combined with a diode, it scans the status of the second-line port and passes the high voltage comparator and low voltage comparator. The voltage comparator determines the voltage level on the load line and determines the connection status.

Benefits of technology

It is realized that when the output loop and the input loop are merged, the three port connection states of load connection, power connection and no connection can be effectively identified, which reduces the size of the device and improves the identification ability of the system circuit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118604689A
    Figure CN118604689A
Patent Text Reader

Abstract

The invention relates to the technical field of circuit identification, and discloses an identification circuit for interface connection and an identification method thereof. The two-line port comprises two port lines, one high-potential port line is a load line, the other low-potential port line is a loop line, and the load line and the loop line can be in coupling connection with external power supply equipment or external electric equipment; the voltage generation module is connected with the two-wire port and is configured to generate a certain direct-current stabilized voltage or direct-current pulse voltage for scanning the state of the two-wire port; and the voltage comparison module is connected with the two-wire port, and the voltage comparison module is configured to compare the voltage on the load line with the preset horizontal voltage when the power supply is connected or the load is connected when the identification circuit is connected with external power supply equipment or external electric equipment through the two-wire port.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of circuit identification, and in particular to an identification circuit for interface connection and an identification method thereof. Background Art

[0002] In commonly used electronic circuits, the load connection is the output for the system circuit, and the power connection is the input for the system circuit. Generally speaking, the output and input are not the same circuit, but separate circuits.

[0003] In terms of current market technology applications, for example, if the output circuit and input circuit can be combined into one circuit to form a two-wire port for portable devices, it will undoubtedly reduce the size of the device and make the product more competitive. However, after the output circuit and input circuit are combined into one circuit, the system circuit will not be able to identify the three port connection states of load connection, power connection and no connection. Summary of the invention

[0004] The embodiment of the present invention aims to provide an identification circuit for interface connection to solve the technical problem in the prior art that after the output circuit and the input circuit are merged into the same circuit, the system circuit cannot identify three port connection states, namely, load connection, power connection and no connection.

[0005] The embodiment of the present invention solves the technical problem by adopting the following technical solution: Provided is an identification circuit for interface connection, comprising: A two-wire port, wherein the two-wire port includes two port lines, wherein one of the high-potential port lines is a load line, and the other low-potential port line is a return line, and the load line and the return line can be coupled and connected with an external power supply device or an external power-consuming device; A voltage generating module connected to the two-wire port, the voltage generating module being configured to: generate a certain DC regulated voltage or DC pulse voltage for scanning the state of the two-wire port; A voltage comparison module connected to the two-wire port, the voltage comparison module being configured to compare the voltage on the load line with a preset level voltage when the power supply is connected or the load is connected when the identification circuit is connected to an external power supply device or an external power consumption device through the two-wire port; Diode D1, the DC regulated voltage or DC pulse voltage generated by the voltage generating module flows to the load line through the diode D1.

[0006] In some embodiments, the voltage generating module includes a voltage generator, a resistor R1 and a resistor R2; The voltage generator is used for DC voltage stabilization or generation of DC pulse voltage; The voltage generator and the resistors R1 and R2 generate a first voltage Vs on the load line.

[0007] In some embodiments, the voltage comparison module includes a high voltage comparator and a low voltage comparator; The high voltage comparator and the low voltage comparator are connected in parallel; The high voltage comparator and the low voltage comparator are both coupled to the system circuit.

[0008] In some embodiments, when the external power supply device is connected to the system circuit through the load line, the system circuit and the external power supply device are connected as a power supply, and the horizontal voltage of the power supply connection is the second voltage VH; When the external electrical device is connected to the system circuit through the load line, the system circuit and the external electrical device are connected as a load, and the horizontal voltage of the load connection is the third voltage VL.

[0009] In some embodiments, when the external power supply device is connected to the system circuit through the load line, the voltage of the connected power supply input by the external power supply device is the fourth voltage Vp.

[0010] In some embodiments, when the system circuit works normally, the magnitude relationship among the first voltage Vs, the second voltage VH, the third voltage VL and the fourth voltage Vp is: Vp>VH>Vs>VL.

[0011] In some embodiments, when the voltage on the load line is higher than the second voltage VH, the output signal of the high voltage comparator is 1; When the voltage on the load line is lower than the second voltage VH, the output signal of the high voltage comparator is 0.

[0012] In some embodiments, when the voltage on the load line is higher than the third voltage VL, the output signal of the low voltage comparator circuit is 1; When the voltage on the load line is lower than the third voltage VL, the output signal of the low voltage comparator is 0.

[0013] On the other hand, there is also provided an identification method, which is applied to the above-mentioned identification circuit for interface connection, comprising: S1: Obtain output signals of the high voltage device and the low voltage device according to the comparison between the voltage on the load line and the second voltage VH or the third voltage VL; S2: Obtain the connection status of the two-wire port according to the output signals of the high voltage device and the low voltage device.

[0014] In some embodiments, the steps of determining the connection status of the second-line port are: S21: When the output state of the high voltage comparator is 0 and the output state of the low voltage comparator is 1, the state of the second-line port is no connection; S22: When the output state of the high voltage comparator is 1 and the output state of the low voltage comparator is 1, the state of the two-wire port is power connection; S23: When the output state of the high voltage comparator is 0 and the output state of the low voltage comparator is 0, the state of the two-wire port is load connection.

[0015] Compared with the prior art, in the identification circuit for interface connection provided by the embodiment of the present invention, the two-wire port includes two port lines, one of which is a high-potential port line as a load line, and the other is a low-potential port line as a loop line, and the load line and the loop line can be coupled and connected with an external power supply device or an external power-consuming device; a voltage generating module connected to the two-wire port, the voltage generating module is configured to: generate a certain DC regulated voltage or DC pulse voltage for scanning the state of the two-wire port; a voltage comparison module connected to the two-wire port, the voltage comparison module is configured to: when the identification circuit is connected to the external power supply device or the external power-consuming device through the two-wire port, the voltage comparison module compares the voltage on the load line with the preset horizontal voltage when the power supply is connected or the load is connected; a diode D1, the DC regulated voltage or DC pulse voltage generated by the voltage generating module flows to the load line through the diode D1. The identification circuit for interface connection provided by this embodiment merges the output loop and the input loop into the same loop, becoming a two-wire port, reducing the volume of the device; and can also enable the system circuit to effectively identify the three port connection states of load connection, power connection and no connection. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0017] Figure 1 is a schematic diagram of the structure of an identification circuit for interface connection provided by an embodiment of the present invention; Figure 2 is a schematic diagram of the structure of an identification circuit for interface connection provided by an embodiment of the present invention in a disconnected state; Figure 3 is a schematic diagram of the structure of an identification circuit for interface connection provided by an embodiment of the present invention in a power connection state; Figure 4is a structural schematic diagram of an identification circuit for interface connection provided by an embodiment of the present invention in a load connection state; Figure 5 is a structural schematic diagram of an identification circuit for interface connection in a load connection state provided by another embodiment of the present invention; Figure 6 is a flow chart of the identification method provided by an embodiment of the present invention; Figure 7 It is a flowchart of the identification method provided by an embodiment of the present invention. Implementation

[0018] In order to facilitate the understanding of the present invention, the present invention is described in more detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that when an element is described as "connecting" another element, it can be directly on another element, or there can be one or more centered elements therebetween. The orientation or positional relationship indicated by the terms "upper", "lower", "left", "right", "upper end", "lower end", "top" and "bottom" used in this specification is based on the orientation or positional relationship shown in the accompanying drawings, only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0019] The "1" and "0" mentioned in the present invention refer to the binary representation method in digital circuit science, using logical values ​​to represent the two opposites of things, such as the "on" and "off" of a switch, the "on" and "off" of a light, etc. In the present invention, "1" and "0" refer to the "high" and "low" of voltage. It is particularly important to note that negative logic is also applicable to the present invention (the general rule is that a high level corresponds to logic 1 and a low level corresponds to logic 0, which is called positive logic, and a high level corresponds to logic 0 and a low level corresponds to logic 1, which is called negative logic). No matter which logic is selected, it will not affect the consistent algebraic description of circuit characteristics. In other words, the name and selection of logic are for the convenience of using algebraic form to represent the logic of the circuit, and will not essentially affect the actual circuit analysis and design.

[0020] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0021] In addition, the technical features involved in different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0022] When the output loop and the input loop are combined into the same loop to form a two-wire port, the identification circuit for interface connection provided by the present invention can be used to identify the connection state of the external device and the two-wire port. Among them, the external device can be connected to the system circuit in three connection states: load connection, power connection or no connection. When the external device is connected to the system circuit as a load, the external device can be any suitable circuit load, such as a drive circuit, a motor, a rectifier circuit, an inverter circuit, a PFC circuit, a clock circuit or other microelectronic circuits.

[0023] The following will be combined Figure 1 Referring to the figure, the identification circuit provided in the embodiment of the present application is described in detail through a specific embodiment.

[0024] See also Figure 1 , Figure 1 1 is a schematic diagram of a structure of an identification circuit for interface connection provided by an embodiment of the present invention. An identification circuit for interface connection provided by one embodiment of the present invention comprises a two-wire port, a voltage generating module, a voltage comparing module and a diode D1.

[0025] The two-wire port includes two port lines, one of which is a high-potential port line as a load line and the other is a low-potential port line as a return line. The load line and the return line can be coupled and connected with external equipment, which can be an external power supply device or an external power consumption device.

[0026] The voltage generating module includes a voltage generator and resistors R1 and R2. The voltage generator can generate a certain DC regulated voltage or DC pulse voltage. The voltage generator and resistors R1 and R2 generate a first voltage Vs on the load line.

[0027] The voltage comparison module includes a high voltage comparator and a low voltage comparator, which are connected in parallel and are coupled to the system circuit. The high voltage comparator and the low voltage comparator can compare the input voltage of the external power supply device or the external power consumption device with the preset level voltage when the power supply is connected or the load is connected, and the output signal obtained after the comparison is 1 or 0. Among them, the high voltage comparator and the low voltage comparator both use the common voltage comparator on the market, and the difference is that one of them is used for the comparison of relatively high voltage levels, called the high voltage comparator; and the other is used for the comparison of relatively low voltage levels, called the low voltage comparator, to distinguish them.

[0028] Specifically, a voltage comparator is a circuit that identifies and compares input signals. It is used to compare the magnitudes of two voltages and use the high or low level of the output voltage to indicate the magnitude relationship between the two input voltages.

[0029] The voltage comparator has two inputs and one output. The non-inverting input is represented by "+" and the inverting input is represented by "-".

[0030] When the voltage at the “+” input terminal is higher than that at the “-” input terminal, the voltage comparator output is a high level, represented by the number 1; When the voltage at the “+” input terminal is lower than that at the “-” input terminal, the voltage comparator output is a low level, represented by the number 0.

[0031] In this patent application, the “+” input terminal voltage is the voltage coupled to the load line.

[0032] Diode D1 has unidirectional conductivity, which allows the DC regulated voltage or DC pulse voltage generated by the voltage generator to flow to the load line through diode D1, while the current of the external power supply equipment and system circuit connected to the two-wire port will not flow to the voltage generator through diode D1.

[0033] When the external power supply device is connected to the system circuit through the load line, the system circuit and the external power supply device are connected in a power supply manner, and the horizontal voltage of the power supply connection at this time is defined as the second voltage VH.

[0034] When the external electrical device is connected to the system circuit through the load line, the system circuit and the external electrical device are connected as a load, and the horizontal voltage of the load connection at this time is defined as the third voltage VL.

[0035] When the external power supply device is connected to the system circuit through the load line, the voltage of the connected power supply input by the external power supply device is the fourth voltage Vp. The fourth voltage Vp varies according to the different connected power supplies.

[0036] When the system circuit is working normally, the magnitude relationship among the first voltage Vs, the second voltage VH, the third voltage VL and the fourth voltage Vp must be: Vp>VH>Vs>VL.

[0037] Since the second voltage VH is greater than the third voltage VL, it can be seen that the high voltage comparator is used to compare the voltage on the load line with the second voltage VH; the low voltage comparator is used to compare the voltage on the load line with the third voltage VL.

[0038] When the system circuit is connected to an external electrical device or an external power supply device, the voltage on the load line can be compared with the second voltage VH and the voltage on the load line can be compared with the third voltage VL through a high voltage comparator and a low voltage comparator, respectively, to obtain the output signals of the high voltage comparator and the low voltage comparator at this time, and then the connection status of the two-wire port at this time can be judged according to the output signals of the high voltage comparator and the low voltage comparator.

[0039] See also Figure 2 , Figure 2 It is a structural diagram of the identification circuit for interface connection in the disconnected state provided by an embodiment of the present invention. In this scheme, if the two-wire port is not connected to any external power supply device or power consumption device at this time, the load line can be regarded as connected to an infinite resistance R∞. At this time, the voltage generator generates a certain DC regulated voltage or DC pulse voltage, and the DC regulated voltage or DC pulse voltage generates a first voltage Vs on the load line through the resistor R1 and the resistor R2. At this time, the voltage on the load line is a constant first voltage Vs. According to the magnitude relationship between the above-mentioned first voltage Vs, the second voltage VH, the third voltage VL and the fourth voltage Vp, it can be known that VH>Vs, the output signal of the high voltage comparator is 0, and at the same time, because Vs>VL, the output signal of the low voltage comparator is 1, so the system circuit can identify that the two-wire port is in a disconnected state according to "the output signal of the high voltage comparator is 0, and the output signal of the low voltage comparator is 1".

[0040] See also Figure 3 , Figure 3 It is a structural diagram of the identification circuit for interface connection provided by an embodiment of the present invention in the power connection state. If an external power supply device is connected to the load line at this time, the voltage of the connected power supply input by the external power supply device is the fourth voltage Vp. Due to the unidirectional conductivity of the diode D1, the power supply of the external power supply device cannot enter the voltage generating module through the diode D1. Therefore, the voltage on the load line at this time can be completely equal to the fourth voltage Vp. According to the magnitude relationship between the above-mentioned first voltage Vs, the second voltage VH, the third voltage VL and the fourth voltage Vp, it can be known that Vp>VH, the output signal of the high voltage comparator is 1, and at the same time, because Vp>VL, the output signal of the low voltage comparator is 1, so the system circuit can identify that the two-wire port is in the power connection state according to "the output signal of the high voltage comparator is 1, and the output signal of the low voltage comparator is 1".

[0041] See also Figure 4 , Figure 4It is a schematic structural diagram of the load connection state of the recognition circuit for interface connection provided by the embodiment of the present invention. If an external electrical device is connected to the load line at this time, since the load is connected to the load line of the recognition circuit, the load is regarded as an equivalent resistor RL with a certain value at this time. RL and resistor R2 are in parallel, and the total resistance value Rt = R2 * RL / (RL + R2). Since RL / (RL + R2) < 1, Rt must be less than R2. At this time, the voltage on the load line is the voltage division of resistor RL and resistor R2. At this time, the voltage on the load line is defined as the fifth voltage Vt, and the fifth voltage Vt must also be less than the first voltage Vs, Vt < VH. The output of the high-voltage comparator is 0. At the same time, Vt < VL, and the output state of the low-voltage comparator is 0. Therefore, the system circuit can identify that the two-wire port is in the load connection state according to "the output of the high-voltage comparator is 0, and the output state of the low-voltage comparator is 0".

[0042] In the actual application of this solution, the equivalent resistance of the load may be greater than the resistance value required in this solution, resulting in the inability to establish Vt < VL, so the load connection cannot be recognized. At this time, a certain additional resistor Rx can be connected in parallel to the load, as Figure 5 shown, so that the total resistance value Rt after parallel connection becomes smaller, and then the fifth voltage Vt on the load also becomes smaller, so as to meet the requirements of the system circuit.

[0043] From the above relationship, the truth table of the relationship between various connection states and the output signals of the high-voltage comparator and the low-voltage comparator can be obtained. The truth table is as follows:

[0044] The recognition circuit for interface connection provided by this embodiment can combine the output loop and the input loop into the same loop to form a two-wire port, reducing the volume of the device; and it can also enable the system circuit to effectively recognize three port connection states: load connection, power supply connection, and no connection.

[0045] The above is a detailed description of an embodiment of a recognition circuit for interface connection provided by the present invention. The following is a detailed description of an embodiment of a recognition method provided by this application.

[0046] Please refer to Figure 6 and Figure 7 , Figure 6 which is a schematic flowchart of the recognition method provided by the embodiment of the present invention. Figure 7 which is a schematic flowchart of the recognition method provided by the embodiment of the present invention. The present invention also provides a recognition method, which is applied to the recognition circuit for interface connection in the above embodiment, including: S1: Obtain output signals of the high voltage device and the low voltage device according to the comparison between the voltage on the load line and the second voltage VH or the third voltage VL; S2: Determine the connection status of the two-wire port according to the output signal of the high voltage device and the output signal of the low voltage device.

[0047] Furthermore, the steps for determining the connection status of the second-line port are: S21: When the output state of the high voltage comparator is 0 and the output state of the low voltage comparator is 1, the state of the second-line port is no connection; S22: When the output state of the high voltage comparator is 1 and the output state of the low voltage comparator is 1, the state of the two-wire port is power connection; S23: When the output state of the high voltage comparator is 0 and the output state of the low voltage comparator is 0, the state of the two-wire port is load connection.

[0048] It should be particularly noted that the identification circuit for interface connection provided in the embodiment of the present invention only shows the part related to the technical problem to be solved by the embodiment of the present invention. It can be understood that the identification circuit for interface connection provided in the embodiment of the present invention also includes other structures for realizing the functions of the identification circuit for interface connection, including but not limited to a power module, a data interface, etc.

[0049] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other changes in different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity. Although the present invention is described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. An identification circuit for interface connection, characterized in that: include: A two-wire port, wherein the two-wire port includes two port lines, wherein one of the high-potential port lines is a load line, and the other low-potential port line is a return line, and the load line and the return line can be coupled and connected with an external power supply device or an external power-consuming device; A voltage generating module connected to the two-wire port, the voltage generating module being configured to: generate a certain DC regulated voltage or DC pulse voltage for scanning the state of the two-wire port; A voltage comparison module connected to the two-wire port, the voltage comparison module being configured to compare the voltage on the load line with a preset level voltage when the power supply is connected or the load is connected when the identification circuit is connected to an external power supply device or an external power consumption device through the two-wire port; Diode D1, the DC regulated voltage or DC pulse voltage generated by the voltage generating module flows to the load line through the diode D1.

2. The identification circuit for interface connection according to claim 1, characterized in that: The voltage generating module includes a voltage generator, a resistor R1 and a resistor R2; The voltage generator is used for DC voltage stabilization or DC pulse voltage; The voltage generator and the resistors R1 and R2 generate a first voltage Vs on the load line.

3. The identification circuit for interface connection according to claim 2, characterized in that: The voltage comparison module includes a high voltage comparator and a low voltage comparator; The high voltage comparator and the low voltage comparator are connected in parallel; The high voltage comparator and the low voltage comparator are both coupled to the system circuit.

4. The identification circuit for interface connection according to claim 3, characterized in that: When the external power supply device is connected to the system circuit through the load line, the system circuit and the external power supply device are connected as a power supply, and the horizontal voltage of the power supply connection is the second voltage VH; When the external electrical device is connected to the system circuit through the load line, the system circuit and the external electrical device are connected as a load, and the horizontal voltage of the load connection is the third voltage VL.

5. The identification circuit for interface connection according to claim 4, characterized in that: When the external power supply device is connected to the system circuit through the load line, the voltage of the connected power supply input by the external power supply device is the fourth voltage Vp.

6. The identification circuit for interface connection according to claim 5, characterized in that: When the system circuit works normally, the magnitude relationship among the first voltage Vs, the second voltage VH, the third voltage VL and the fourth voltage Vp is: Vp>VH>Vs>VL.

7. The identification circuit for interface connection according to claim 6, characterized in that: When the voltage on the load line is higher than the second voltage VH, the output signal of the high voltage comparator is 1; When the voltage on the load line is lower than the second voltage VH, the output signal of the high voltage comparator is 0.

8. The identification circuit for interface connection according to claim 6, characterized in that: When the voltage on the load line is higher than the third voltage VL, the output signal of the low voltage comparator is 1; When the voltage on the load line is lower than the third voltage VL, the output signal of the low voltage comparator is 0.

9. An identification method, applied to the identification circuit for interface connection according to any one of claims 1 to 8, characterized in that: include: S1: Obtain output signals of the high voltage device and the low voltage device according to the comparison between the voltage on the load line and the second voltage VH or the third voltage VL; S2: Determine the connection status of the two-wire port according to the output signal of the high voltage device and the output signal of the low voltage device.

10. The identification method according to claim 9, characterized in that: The steps to determine the connection status of the second-line port are: S21: When the output state of the high voltage comparator is 0 and the output state of the low voltage comparator is 1, the state of the second-line port is no connection; S22: When the output state of the high voltage comparator is 1 and the output state of the low voltage comparator is 1, the state of the two-wire port is power connection; S23: When the output state of the high voltage comparator is 0 and the output state of the low voltage comparator is 0, the state of the two-wire port is load connection.