Interface circuit and electronic device

By setting detection terminals and function terminals in the interface circuit, the interface connection status is determined by voltage changes, which solves the abnormal problem caused by the misactivation of function terminals in electronic devices and achieves more accurate interface connection control.

WO2026236882A1PCT designated stage Publication Date: 2026-11-19GUANGZHOU XIBEISI INTELLIGENT TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/094306
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-05-12
Publication Date
2026-11-19

AI Technical Summary

Technical Problem

Electronic devices are prone to misjudging whether a function terminal is connected, which can lead to the function terminal being activated incorrectly and causing equipment malfunction.

Method used

An interface circuit design is adopted, including detection terminals and function terminals. The voltage change of the detection terminals is used to determine whether the interface is properly connected. Pull-up resistors and switching modules are used to control the activation of function terminals, reducing the probability of false judgment.

Benefits of technology

By detecting voltage changes at the terminals, the interface connection status can be accurately determined, reducing the probability of erroneous activation of functional terminals and minimizing the occurrence of electronic device malfunctions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025094306_19112026_PF_FP_ABST
    Figure CN2025094306_19112026_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are an interface circuit and an electronic device, which are applied to the technical field of electronics. The interface circuit comprises a first interface and a controller, wherein the first interface comprises a first detection terminal and a first functional terminal, which are both connected to the controller, and the first detection terminal is connected to a power supply terminal in the interface circuit by means of a pull-up resistor. When detecting that a voltage at the first detection terminal drops to a first voltage, if it is detected that a voltage at the first functional terminal drops to a second voltage, the controller controls the voltage at the first detection terminal to drop to a third voltage, and then enables the first functional terminal. In the interface circuit provided in the embodiments of the present application, whether a first interface and a corresponding interface are normally connected can be accurately determined, so as to enable a functional terminal, thereby reducing the probability of the functional terminal being erroneously enabled.
Need to check novelty before this filing date? Find Prior Art

Description

An interface circuit and electronic device Technical Field

[0001] This application relates to the field of electronic technology, and more specifically, to an interface circuit and an electronic device. Background Technology

[0002] Currently, most electronic devices integrate interfaces to connect to other electronic devices, communicate with them, or charge and discharge them.

[0003] Interfaces typically have terminals for communication and / or charging / discharging (hereinafter referred to as functional terminals). During operation, electronic devices need to detect whether the functional terminals are connected (i.e., in contact) to the functional terminals in interfaces with other electronic devices to enable the functional terminals when a normal connection is established. In practical applications, electronic devices may mistakenly determine that the functional terminals are already in contact with other functional terminals and mistakenly enable the functional terminals, which may lead to abnormalities during the operation of the electronic device. Summary of the Invention

[0004] This application provides an interface circuit and an electronic device, which can reduce the probability of functional terminals in the interface circuit being accidentally activated.

[0005] In a first aspect, an interface circuit is provided, comprising: a first interface and a controller;

[0006] The first interface includes a first detection terminal and a first functional terminal, which are respectively connected to the controller. The first detection terminal is connected to the power supply terminal in the interface circuit through a pull-up resistor.

[0007] When the controller detects that the voltage of the first detection terminal drops to a first voltage, if it detects that the voltage of the first functional terminal drops to a second voltage, then after controlling the voltage of the first detection terminal to drop to a third voltage, it enables the first functional terminal; the first voltage is greater than the second voltage and less than the voltage of the power supply terminal.

[0008] In this embodiment, a first interface and a second interface are provided that are mutually matched. Corresponding detection terminals and functional terminals are provided in the first and second interfaces. A switch module corresponding to the functional terminal is provided in the second interface. When the voltage of the detection terminal changes, the switch module can trigger a change in the voltage of the functional terminal. When the detection terminals in the two interfaces are in contact, the switch module triggers a change in the voltage of the functional terminal. The voltage change of the functional terminal determines whether the functional terminals of the two interfaces are in normal contact. This allows for a comprehensive assessment of the voltage changes of both the detection and functional terminals to determine whether the two interfaces are properly connected, thereby reducing the probability of false positives and the probability of the functional terminal being mistakenly activated, and ultimately reducing the probability of malfunctions in the electronic device.

[0009] Optionally, the interface circuit includes a plurality of first detection terminals; when the voltage of at least one first detection terminal drops to the first voltage, if the controller determines that the voltage of the first functional terminal drops to the second voltage, then after controlling the voltage of each first detection terminal to drop to the third voltage, the controller enables the first functional terminal.

[0010] In this embodiment of the application, the interface circuit includes multiple detection terminals (including a first detection terminal and a second detection terminal). The multiple detection terminals can serve as backups for each other. When a certain detection terminal cannot be used normally, other detection terminals can be used to determine whether the interface is properly connected.

[0011] Optionally, the interface circuit includes two first detection terminals; the two first detection terminals and the first functional terminals are arranged in a column of terminals along the target direction; in the column of terminals, there are N first functional terminals spaced apart between the two first detection terminals; N is an integer greater than or equal to 1.

[0012] In this embodiment, two detection terminals are set in the interface and placed between multiple functional terminals. The two detection terminals can be placed in different positions, and the voltage of the detection terminals at different positions can be used to determine whether the two interfaces are properly connected. This can further improve the reliability of the judgment result and reduce the probability of abnormalities in electronic devices.

[0013] Optionally, when the voltage of both first detection terminals drops to the first voltage, if the controller determines that the voltage of the first functional terminal drops to the second voltage, then after controlling the voltage of each first detection terminal to drop to the second voltage, the controller enables the first functional terminal.

[0014] In this embodiment of the application, two detection terminals are set in the interface and placed between multiple functional terminals, which can reduce the possibility of misjudgment and thus reduce the probability of abnormality of electronic devices.

[0015] Optionally, the interface circuit includes multiple terminal groups, each terminal group corresponding to a multiple function of the first interface, and each terminal group includes one or more first function terminals; for each terminal group, when the voltage of the first detection terminal drops to the first voltage, if the controller determines that the voltage of all the first function terminals in the terminal group has dropped to the second voltage, then after controlling the voltage of the first detection terminal to drop to the third voltage, the first function terminals in the terminal group are enabled.

[0016] In this embodiment, different terminal groups can be controlled differently. When a functional terminal in a certain terminal group is not in contact with the corresponding terminal, the functional terminals in other terminal groups can be enabled. This avoids disabling all functional terminals when some functional terminals are not connected, thereby reducing the impact of interface connection abnormalities on electronic devices.

[0017] Optionally, the first detection terminal is a Pogo Pin probe or a Pogo Pin contact.

[0018] Optionally, the first functional terminal is a Pogo Pin probe or a Pogo Pin contact.

[0019] Secondly, an interface circuit is provided, including: a second interface and a switch module;

[0020] The second interface includes a second detection terminal and a second functional terminal. The second detection terminal is connected to the ground terminal in the interface circuit through a pull-down resistor.

[0021] The control terminal of the switch module is connected to the second detection terminal, one connection terminal of the switch module is connected to the second functional terminal, and the other connection terminal is connected to the voltage node in the interface circuit. The second voltage of the voltage node is greater than or equal to the grounding terminal voltage of the grounding terminal.

[0022] When the switching module detects that the voltage of the second detection terminal rises to the first voltage, it controls the second functional terminal to connect to the voltage node; and when the voltage of the second detection terminal drops to the third voltage, it controls the second functional terminal to disconnect from the voltage node; the first voltage is greater than the second voltage.

[0023] Optionally, the switch module includes a switch element corresponding to the second functional terminal;

[0024] One connection terminal of the switching element is connected to the second functional terminal, and the other connection terminal is connected to the voltage node; the control terminal of the switching element is connected to the second detection terminal, and is used to turn on when the voltage of the second detection terminal rises to the first voltage, and to turn off when the voltage of the second detection terminal drops to the third voltage.

[0025] Optionally, the interface circuit includes a plurality of second detection terminals; the switching module controls the second functional terminal to connect to the voltage node when the voltage of at least one of the second detection terminals rises to the first voltage, and controls the second functional terminal to disconnect from the voltage node when the voltage of all the second detection terminals drops to the third voltage.

[0026] Optionally, the interface circuit includes a plurality of switch modules, each of which corresponds to a plurality of second detection terminals, and the control terminal of each switch module is connected to a corresponding second detection terminal.

[0027] Optionally, the interface circuit includes two second detection terminals; the two second detection terminals and the second functional terminals are arranged in a column of terminals along the target direction; in the column of terminals, there are N second functional terminals spaced apart between the two second detection terminals; N is an integer greater than or equal to 1.

[0028] Optionally, the interface circuit includes multiple terminal groups, each terminal group corresponding to a different function of the second interface, and each terminal group includes one or more terminals for the second function.

[0029] Optionally, the second detection terminal is a Pogo Pin probe or a Pogo Pin contact.

[0030] Optionally, the second functional terminal is a Pogo Pin probe or a Pogo Pin contact.

[0031] Thirdly, an electronic device is provided, including the interface circuitry described in the first aspect, and / or including the interface circuitry described in the second aspect. Attached Figure Description

[0032] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0033] Figure 1 shows a circuit connection diagram of an interface in the related technology;

[0034] Figure 2 shows a circuit connection diagram of an interface provided in an embodiment of this application;

[0035] Figure 3 shows a circuit connection diagram of another interface provided in an embodiment of this application;

[0036] Figure 4 shows a circuit connection diagram of another interface provided in an embodiment of this application;

[0037] Figure 5 shows a circuit connection diagram of another interface provided in an embodiment of this application;

[0038] Figure 6 shows a hardware connection diagram of an interface provided in an embodiment of this application. Detailed Implementation

[0039] The technical solutions in this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. "And / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0040] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.

[0041] Referring to Figure 1, Figure 1 shows a circuit connection diagram of an interface in the related art.

[0042] As shown in Figure 1, the first interface circuit 10 is usually located in the main device and includes a first interface 11 and a controller 13. The first interface 11 has a first functional terminal 1 and a first functional terminal 2, as well as a first detection terminal 3. The first detection terminal 3 is connected to the power supply terminal VCC in the first interface circuit 10 through a pull-up resistor 12. The first functional terminal 1, the first functional terminal 2 and the first detection terminal 3 are all connected to the controller 13.

[0043] The second interface circuit 20 is typically located in the slave device and includes a second interface 21 and an internal circuit 22. The second interface 21 includes a second functional terminal A, a second functional terminal B, and a second detection terminal C. The second detection terminal C is connected to the ground terminal GND in the second interface circuit 20. Both the second functional terminal A and the second functional terminal B are connected to the internal circuit 22. The internal circuit 22 may include components such as a power module, a communication module, and a control module, which are not limited in this embodiment.

[0044] The first interface 11 is matched with the second interface 12. When the first interface 11 and the second interface 12 are plugged in and properly connected, the first functional terminal 1 is in contact with the second functional terminal A, the first functional terminal 2 is in contact with the second functional terminal B, and the first detection terminal 3 is in contact with the second detection terminal C. However, when the connection between the first interface 11 and the second interface 12 is abnormal, at least one of the following situations may occur: the first functional terminal 1 is not in contact with the second functional terminal A, the first functional terminal 2 is not in contact with the second functional terminal B, and the first detection terminal 3 is not in contact with the second detection terminal C.

[0045] During the operation of the first interface circuit 10, the controller 13 periodically detects the voltage on the first detection terminal 3. When the voltage of the first detection terminal 3 is detected to be the voltage of the power supply terminal VCC (hereinafter referred to as the power supply voltage), it is determined that the first interface 11 and the second interface 22 are not properly connected. When the voltage of the first detection terminal 3 is detected to change to the voltage of the ground terminal GND (hereinafter referred to as the ground terminal voltage), it is determined that the voltage of the first detection terminal 3 is pulled low by the second detection terminal C. At this time, it can be determined that the first interface 11 and the second interface 22 are properly connected, that is, it is determined that the first detection terminal 3 is in contact with the second detection terminal C, the first functional terminal 1 is in contact with the second functional terminal A, and the first functional terminal 2 is in contact with the second functional terminal B.

[0046] At this time, the first interface circuit 10 activates the first functional terminal 1 and the first functional terminal 2 (the second functional terminal A and the second functional terminal B are activated at the same time), and communicates with the device where the second interface circuit 20 is located or charges and discharges the device where the second interface circuit 20 is located through the first functional terminal 1 and the first functional terminal 2. Of course, other work can also be done through the first functional terminal 1 and the first functional terminal 2.

[0047] For example, when the first functional terminal 1 and the first functional terminal 2 are used for charging, the controller 13, upon determining that the first detection terminal 3 and the second detection terminal C are normally connected, charges the device containing the second interface circuit 20 through the first functional terminal 1 and the first functional terminal 2. When the first functional terminal 1 and the first functional terminal 2 are used for communication, the controller 13, upon determining that the first interface 11 and the second interface 12 are normally connected, performs data interaction with the device containing the second interface circuit 20 through the first functional terminal 1 and the first functional terminal 2.

[0048] It should be noted that the first interface circuit 10 may include other components besides the first interface 11 and the controller 13, and the second interface circuit 20 may include other components besides the second interface 21 and the internal circuit 22. This embodiment does not impose any restrictions on this.

[0049] The terminals in the interface (including the first interface and the second interface) are also called pins or contacts. Functional terminals can be used for data transmission, charging or discharging, or other functions. This embodiment does not limit the specific functions of the functional terminals.

[0050] The interface circuit shown in Figure 1 has a defect: when the first detection terminal 1 contacts the second detection terminal C, there may be poor contact between the first functional terminal 2 and the second functional terminal B, and / or poor contact between the first functional terminal 1 and the second functional terminal A. In this case, the electronic device may mistakenly determine that the first interface 11 and the second interface 22 are normally connected and activate the first functional terminals 1 and 2. If the function of the first functional terminals 1 and 2 is communication, the first interface circuit 10 will be unable to interact with the second interface circuit 20 after activating the first functional terminals 1 and 2, causing the electronic device to malfunction. Similarly, if the function of the first functional terminals 1 and 2 is charging, the first interface circuit 10 will be unable to properly charge the device containing the second interface circuit 20 after activating the first functional terminals 1 and 2, causing the electronic device to malfunction.

[0051] To solve the above-mentioned technical problems, embodiments of this application provide two mutually compatible interface circuits, hereinafter referred to as the first interface circuit and the second interface circuit. The first interface circuit is usually set in the master device, and the second interface circuit is usually set in the slave device. Of course, the first interface circuit can also be set in the slave device, and the second interface circuit can also be set in the slave device.

[0052] The first interface circuit includes a first interface and a controller. The first interface includes at least one first detection terminal and at least one first functional terminal, which are respectively connected to the controller. The first detection terminal is connected to the power supply terminal in the interface circuit via a pull-up resistor. The second interface circuit includes a second interface and a switch module. The second interface includes at least one second detection terminal and at least one second functional terminal. The second detection terminal is connected to the ground terminal in the interface circuit via a pull-down resistor. The control terminal of the switch module is connected to the second detection terminal. One connection terminal of the switch module is connected to the second functional terminal, and the other connection terminal is connected to the voltage node in the second interface circuit.

[0053] The functional terminals in the first interface correspond one-to-one with the functional terminals in the second interface circuit, and the detection terminals in the first interface circuit correspond one-to-one with the detection terminals in the second interface circuit. When the first and second interfaces are normally connected, if the controller detects that the voltage of the first detection terminal has dropped to a first voltage, and determines that the voltage of the first functional terminal has dropped to a second voltage, then after controlling the voltage of the first detection terminal to drop to a third voltage, it activates the first functional terminal. When the switching module detects that the voltage of the second detection terminal has risen to the first voltage, it controls the second functional terminal to connect to the voltage node; and when the voltage of the second detection terminal drops to the second voltage, it controls the second functional terminal to disconnect from the ground terminal.

[0054] The voltage node can be a ground terminal, or it can be a voltage node in the second interface circuit whose voltage is greater than the ground terminal voltage and less than the power supply terminal voltage. That is, the second voltage of the voltage node is greater than or equal to the ground terminal voltage and less than the power supply terminal voltage.

[0055] In this embodiment, when the corresponding detection terminals and functional terminals of the two interfaces (including the first interface and the second interface) are in contact, the voltages on the detection terminals and functional terminals will change accordingly. The controller can accurately determine whether the functional terminals are properly connected based on the voltage changes on the detection terminals and functional terminals, thereby reducing the probability of misjudgment and the probability of abnormalities in electronic devices.

[0056] Referring to Figure 2, Figure 2 shows a circuit connection diagram of an interface provided in an embodiment of this application. As shown in Figure 2, the first interface 11 includes a first functional terminal 1, a first functional terminal 2, a first functional terminal 3, and a first detection terminal 4, as well as a controller 13. The first functional terminals 1, 2, 3, and 4 are respectively connected to the controller 13. The second interface 21 includes a second functional terminal A, a second functional terminal B, a second functional terminal C, and a second detection terminal D, as well as an internal circuit 22. The second functional terminals A, B, C, and D are respectively connected to the internal circuit 22.

[0057] Among them, the first functional terminal 1 corresponds to the second functional terminal A, the first functional terminal 2 corresponds to the second functional terminal B, the first functional terminal 3 corresponds to the second functional terminal C, the first detection terminal 4 corresponds to the second detection terminal D, and the voltage node is the ground terminal.

[0058] The first interface circuit 10 is equipped with a pull-up resistor 12. The first detection terminal 4 is connected to the power supply terminal VCC in the first interface circuit 10 through the pull-up resistor 12. When the first interface 11 and the second interface 21 are not plugged in, the voltage on the first detection terminal 4 is pulled high by the pull-up resistor 12, which is the power supply voltage. The second interface circuit 20 is equipped with a pull-down resistor 23. The second detection terminal D is connected to the ground terminal GND in the second interface circuit 10 through the pull-down resistor 23. When the second interface 21 and the first interface 11 are not plugged in, the voltage on the second detection terminal D is pulled low by the pull-down resistor 23, which is the ground terminal voltage.

[0059] When the second interface 21 is plugged into the first interface 11, and the first detection terminal 4 and the second detection terminal D are in normal contact, the voltage on the first detection terminal 4 and the second detection terminal D is R2 is the resistance value of pull-down resistor 23, R1 is the resistance value of pull-up resistor 12, and V is the power supply voltage.

[0060] Meanwhile, the second interface circuit 20 is also equipped with a switch module 24. The control terminal of the switch module 24 is connected to the second detection terminal D, one connection terminal of the switch module 24 is connected to the second functional terminal D, and the other connection terminal is connected to the ground terminal (i.e., voltage node).

[0061] Optionally, the switch module 24 includes a switch element corresponding to each second functional terminal. One connection terminal of the switch element is connected to the corresponding second functional terminal, and the other connection terminal is connected to a voltage node (e.g., ground). The control terminal of the switch element is connected to the second detection terminal, and the switch element can be turned on when the voltage of the second detection terminal rises to a first voltage and turned off when the voltage of the second detection terminal drops to a second voltage.

[0062] For example, the switching element is an N-channel metal-oxide-semiconductor field-effect transistor (NMOS) as shown in Figure 2, where the source and drain of the NMOS transistor are connected terminals and the gate is the control terminal.

[0063] Taking the NMOS transistor corresponding to the second functional terminal A as an example (other functional terminals are similar to the second functional terminal A), the gate of each NMOS transistor serves as a control terminal of the switching module 24 and is connected to the second detection terminal D. The source of the NMOS transistor is connected to the ground terminal (i.e., the voltage node), and the drain of the NMOS transistor is connected to the second functional terminal A. The first voltage is the voltage across the first detection terminal 4 and the second detection terminal D when the first detection terminal 4 and the second detection terminal D are in normal contact, i.e. Choose appropriate specifications for the NMOS transistor, pull-up resistor 12, and pull-down resistor 23 to ensure that the NMOS transistor's turn-on voltage is equal to... (i.e., the first voltage), or less than and close to When the voltage at the gate (i.e., the second detection terminal D) reaches When the voltage is at the first voltage, the NMOS transistor is turned on, which can pull the voltage on the second functional terminal A down to the second voltage.

[0064] After the first interface circuit 10 starts running, the controller 13 periodically detects the voltage on the first detection terminal 4. When the voltage of the first detection terminal 4 is detected to be VCC, it can be determined that the first detection terminal 4 and the second detection terminal D are not in contact, and thus it can be determined that the first interface 11 and the second interface 21 are not properly connected.

[0065] Conversely, the controller 13 detects a drop in voltage at the first detection terminal 4 to a first voltage (i.e., When the first detection terminal 4 is in contact with the second detection terminal D, it can be determined that the first voltage on the second detection terminal D can control each NMOS transistor to conduct, pulling down the voltage on the second functional terminal connected to the NMOS transistor to the second voltage.

[0066] When the controller 13 determines that the first interface 11 and the second interface 12 are not connected, it can control each first functional voltage to output a high-level voltage, which (e.g., the power supply voltage) is higher than the second voltage. Taking the second functional terminal B as an example (the other functional terminals are similar to the second functional terminal B), when the NMOS transistor pulls the voltage on the second functional terminal B down to the second voltage, if the second functional terminal B is in contact with the first functional terminal 2, the voltage on the first functional terminal 2 will be pulled down to the second voltage by the second functional terminal B. At this time, when the controller 13 detects that the voltage of the first functional terminal 2 has dropped to the second voltage, it can determine that the first functional terminal 2 is in contact with the second functional terminal D.

[0067] Specifically, when the first interface 11 has a first functional terminal, the controller can determine that the first interface 11 and the second interface 21 are normally connected when it detects that the voltage of the first functional terminal has dropped to a second voltage. After detecting that the voltage of all first functional terminals has dropped to the second voltage, the controller can control the first detection terminal 4 to output a third voltage, which is less than the turn-on voltage of the NMOS transistor. After the first detection terminal 4 outputs the third voltage, it pulls the voltage of the second detection terminal D down to the third voltage. Correspondingly, each NMOS transistor is turned off, the connection between the second functional terminal and the voltage node is broken, and it can be normally enabled. After controlling the first detection terminal 4 to output the third voltage, the controller 13 can enable each first functional terminal, at which time the second functional terminals are also enabled.

[0068] When the first interface 11 has multiple first functional terminals, the controller can determine that the first interface 11 and the second interface 21 are normally connected when it detects that the voltage of all the first functional terminals has dropped to the second voltage. After detecting that the voltage of all the first functional terminals has dropped to the second voltage, the controller can control the first detection terminal 4 to output a third voltage, and the first detection terminal 4 pulls the voltage of the second detection terminal D down to the third voltage. Correspondingly, each NMOS transistor is turned off, the connection between the second functional terminal and the voltage node is broken, and it can be normally enabled. After controlling the first detection terminal 4 to output the third voltage, the controller 13 can enable each first functional terminal, and at this time each second functional terminal is also enabled.

[0069] It should be noted that the switching module can be composed of multiple NMOS transistors as shown in Figure 2, or it can be composed of switching elements such as transistors and PMOS transistors, or it can be composed of more complex switching elements, as long as it can achieve the function of the switching module shown in Figure 2.

[0070] In this embodiment of the application, when the switch module is composed of switch elements corresponding to the second functional terminal, the circuit structure of the switch module is simple and the cost is low, thereby simplifying the second interface circuit and reducing the cost of the second interface circuit.

[0071] Optionally, the interface circuit (i.e., the first interface circuit) includes a plurality of first detection terminals; when the voltage of at least one first detection terminal drops to a first voltage, if the controller determines that the voltage of the first functional terminal drops to a second voltage, then after controlling the voltage of each first detection terminal to drop to a third voltage, the first functional terminal is enabled.

[0072] Correspondingly, the interface circuit (i.e., the second interface circuit) includes multiple second detection terminals; the switching module controls the second functional terminal to connect to the voltage node when the voltage of at least one second detection terminal rises to the first voltage, and controls the second functional terminal to disconnect from the voltage node when the voltage of all second detection terminals drops to the third voltage.

[0073] When the switching module includes an NMOS transistor corresponding to each second functional terminal, the third voltage can be the ground voltage, or it can be less than and close to the NMOS transistor's turn-on voltage, so that when the voltage of the second detection terminal drops to the third voltage, the NMOS transistor is triggered to turn off, thereby connecting the second functional terminal connected to the NMOS transistor to the ground terminal.

[0074] Referring to Figure 3, Figure 3 shows a circuit connection diagram of another interface provided in an embodiment of this application. As shown in Figure 3, the first interface 11 includes two first detection terminals, namely first detection terminal 1 and first detection terminal 6, and the second interface 21 includes two second detection terminals, namely second detection terminal A and first detection terminal F. First detection terminal 1 corresponds to second detection terminal A, and first detection terminal 6 corresponds to second detection terminal F. That is, the plurality of first detection terminals in the first interface 11 correspond one-to-one with the plurality of second detection terminals in the second interface power supply 21.

[0075] The first interface circuit 10 also includes two pull-up resistors 12. The first detection terminal 1 is connected to the power supply terminal through one pull-up resistor 12, and the first detection terminal 6 is connected to the power supply terminal through the other pull-up resistor 12. In the second interface circuit 20, the second detection terminal A and the second detection terminal F can be connected to the ground terminal through a pull-down resistor 23, or they can be connected to the ground terminal through different pull-down resistors.

[0076] The first interface 11 also includes four first functional terminals: first functional terminal 2, first functional terminal 3, first functional terminal 4, and first functional terminal 5. The second interface 21 also includes four second functional terminals: second functional terminal B, second functional terminal C, second functional terminal D, and second functional terminal E. First functional terminal 2 corresponds to second functional terminal B, first functional terminal 3 corresponds to second functional terminal C, first functional terminal 4 corresponds to second functional terminal D, and first functional terminal 5 corresponds to second functional terminal E.

[0077] During the operation of the first interface circuit 10, when the first interface 10 and the second interface 20 are not plugged in, the voltages on the first detection terminal 1 and the first detection terminal 6 are both pulled up by the pull-up resistor 12 to the power supply voltage. The controller 13 periodically detects the voltages on the first detection terminal 1 and the first detection terminal 6. When it detects that the voltage on the first detection terminal 1 is pulled down to the first voltage by the corresponding second detection pin A, it determines that the first detection terminal 1 is in contact with the second detection terminal A; when it detects that the voltage on the first detection terminal 6 is pulled down to the first voltage by the corresponding second detection pin F, it determines that the first detection terminal 6 is in contact with the second detection terminal F; when it detects that the voltage on the first detection terminal 1 is pulled down to the first voltage by the corresponding second detection pin A and the voltage on the first detection terminal 6 is pulled down to the first voltage by the corresponding second detection pin F, it determines that the first detection terminal 1 is in contact with the second detection terminal A and that the first detection terminal 6 is in contact with the second detection terminal F.

[0078] Optionally, the controller 13 may detect the voltage on each first functional terminal after the first detection terminal 1 contacts the second detection terminal A; and detect the voltage on each first functional terminal after determining that the first detection terminal 6 contacts the second detection terminal F; and detect the voltage on each first functional terminal after determining that the first detection terminal 1 contacts the second detection terminal A and the first detection terminal 6 contacts the second detection terminal F.

[0079] Correspondingly, when the voltage at the second detection terminal A and / or the second detection terminal F rises to the first voltage, each NMOS transistor in the control module 24 is turned on, and the voltage at each second functional terminal and each first functional terminal drops to the second voltage. In Figure 3, the voltage node is the ground terminal, and the second voltage is the ground terminal voltage.

[0080] After starting to detect the voltage on each first functional terminal, the controller 13 can determine that each first functional terminal is normally connected to the corresponding second functional terminal after detecting that the voltage of each first functional terminal has been pulled down to the second voltage. At this time, the controller 13 controls both the first detection terminal 1 and the first detection terminal 6 to output the third voltage, and then each first functional terminal can be enabled.

[0081] Specifically, after the controller 13 controls both the first detection terminal 1 and the first detection terminal 6 to output the third voltage, the voltage on the second detection terminal A and the second detection terminal F is pulled down to the third voltage, which can trigger the turn-off of each NMOS transistor in the switching module. The connection between each second functional terminal and the ground terminal (i.e., voltage node) is disconnected, and it can be enabled normally. When the controller 13 enables the first functional terminal, the second functional terminal is also enabled.

[0082] In this embodiment, the interface circuit includes multiple detection terminals (including a first detection terminal and a second detection terminal). These multiple detection terminals can serve as backups for each other. When a certain detection terminal cannot be used normally, other detection terminals can be used to determine whether the interface is properly connected. As shown in Figure 3, when the first detection terminal 1 cannot contact the second detection terminal A due to wear, the first interface and the second interface can be connected through the first detection terminal 6 and the second detection terminal F.

[0083] Optionally, the interface circuit (i.e., the first interface circuit) includes two first detection terminals; the two first detection terminals and the first functional terminals are arranged in a column of terminals along the target direction; in the column of terminals, the two first detection terminals are spaced apart by N first functional terminals; N is an integer greater than or equal to 1.

[0084] Correspondingly, the interface circuit (i.e., the first interface circuit) includes two second detection terminals; the two second detection terminals and the second functional terminals are arranged in a column of terminals along the target direction; in the column of terminals, there are N second functional terminals spaced apart between the two second detection terminals; N is an integer greater than or equal to 1.

[0085] Referring to Figure 4, Figure 4 shows a circuit connection diagram of another interface provided in an embodiment of this application. As shown in Figure 4, the first interface 11 includes two first detection terminals, namely first detection terminal 2 and first detection terminal 6; the second interface 21 includes two second detection terminals, namely second detection terminal B and second detection terminal F; N is 3, and there are 3 first functional terminals between the two first detection terminals and 3 second functional terminals between the two second detection terminals.

[0086] Optionally, when the first interface includes two first detection terminals and there are N first functional terminals between the two first detection terminals, the controller can determine that each first detection terminal is in contact with a corresponding second detection terminal when the voltage of the two first detection terminals drops to the first voltage at the same time. Then, it can detect each first functional terminal. When it is detected that the voltage of each first functional terminal drops to the second voltage, it is determined that the first interface and the second interface are normally connected.

[0087] As shown in Figure 4, when there are N first functional terminals between two first detection terminals, and it is determined that both first detection terminals have dropped to the first voltage, it can be determined that the first functional terminals between the two first detection terminals are in contact with their corresponding second functional terminals. At this point, it can be determined that the first interface and the second interface have achieved a relatively reliable connection. Compared to determining only one first detection terminal, it is possible to more accurately determine whether there is reliable contact between each functional terminal.

[0088] For example, in the interface connection shown in Figure 4, when the first detection terminal 2 is in contact with the second detection terminal B, the first functional terminal 5 and the second functional terminal E may not be in contact. If the connection between the first and second interfaces is determined solely based on the voltage of the first detection terminal 2, misjudgments may occur when the first functional terminal 5 and the second functional terminal E are not in contact. Conversely, determining the connection between the first and second interfaces based on the voltages of both the first detection terminal 2 and the first detection terminal F can reduce misjudgments and improve the accuracy and reliability of the results.

[0089] As shown in Figure 3, when there are two first detection terminals, the two first detection terminals can be located at both ends of multiple first functional terminals. Correspondingly, when there are two second detection terminals, the two second detection terminals can be located at both ends of multiple second functional terminals.

[0090] Correspondingly, when the voltage of the two first detection terminals drops to the first voltage at the same time, the controller can determine that the two first detection terminals are connected to the corresponding second detection terminals respectively. Then, it can detect each first functional terminal. When it is detected that the voltage of each first functional terminal drops to the second voltage, it is determined that the first interface and the second interface are normally connected.

[0091] Compared to Figure 4, a more accurate result can be obtained when the two detection terminals are located at both ends of multiple functional terminals, and the connection between the first interface and the second receiver is determined based on the voltage of the two detection terminals. As shown in Figure 3, when the two first detection terminals are located at both ends of multiple first functional terminals, it can be determined that both ends of the first interface and both ends of the second interface are reliably connected when both first detection terminals drop to the first voltage. At this time, if it is determined that each first functional terminal is in contact with its corresponding first functional terminal, it indicates that the first interface and the second interface have achieved a reliable connection, thereby greatly reducing the possibility of misjudgment.

[0092] In this embodiment, two detection terminals are set in the interface and placed between multiple functional terminals. The two detection terminals can be placed in different positions, and the voltage of the detection terminals at different positions can be used to determine whether the two interfaces are properly connected. This can further improve the reliability of the judgment result and reduce the probability of abnormalities in electronic devices.

[0093] In this embodiment of the application, two detection terminals are set in the interface and placed between multiple functional terminals, which can reduce the possibility of misjudgment and thus reduce the probability of abnormality of electronic devices.

[0094] Optionally, the interface circuit (i.e., the first interface circuit) includes multiple terminal groups, each terminal group corresponding to a multiple function of the first interface, and each terminal group includes one or more first function terminals; for each terminal group, when the voltage of the first detection terminal drops to the first voltage, if the controller determines that the voltage of all first function terminals in the terminal group has dropped to the second voltage, then after controlling the voltage of the first detection terminal to drop to the third voltage, the first function terminals in the terminal group are enabled.

[0095] Correspondingly, the interface circuit (i.e. the second interface circuit) includes multiple terminal groups, each terminal group corresponding to a different function of the second interface, and each terminal group includes one or more second function terminals.

[0096] As shown in Figure 3, the multiple first functional terminals in the first interface 10 can be divided into two terminal groups. One terminal group includes first functional terminal 2 and first functional terminal 3, and the other terminal group includes first functional terminal 4 and first functional terminal 5. First functional terminals 2 and 3 can charge the device containing the second interface circuit 20, while first functional terminals 4 and 5 can communicate with the device containing the second interface circuit 20.

[0097] Correspondingly, the multiple second functional terminals in the second interface 20 can be divided into two terminal groups. One terminal group includes second functional terminal B and second functional terminal C, and the other terminal group includes second functional terminal D and second functional terminal E. Second functional terminals B and C can charge the device containing the second interface circuit 20, while second functional terminals D and E can communicate with the device containing the first interface circuit 10.

[0098] Referring to the above example, after detecting that the voltage of the first detection terminal has dropped to the first voltage, the controller 13 performs detection on each terminal group. If it detects that the voltages of both the first functional terminal 2 and the first functional terminal 3 have dropped to the second voltage, it determines that the first functional terminal 2 is in contact with the corresponding second functional terminal B, and the first functional terminal 3 is in contact with the corresponding second functional terminal C. At this time, the controller 13 can activate the first functional terminals 2 and 3. Simultaneously, if it detects that the voltages of both the first functional terminals 4 and 5 have dropped to the second voltage, it determines that the first functional terminal 4 is normally connected to the corresponding second functional terminal D, and the first functional terminal 5 is normally connected to the corresponding second functional terminal E. The controller 13 simultaneously activates the first functional terminals 4 and 5.

[0099] Conversely, for the first functional terminals 2 and 3, if the voltage of one or both of the first functional terminals 2 and 3 is not detected to have dropped to the second voltage, then the first functional terminals 2 and 3 are not activated. At the same time, if the voltage of both the first functional terminals 4 and 5 is detected to have dropped to the second voltage, then it is determined that the first functional terminal 4 is in contact with the corresponding second functional terminal D, and the first functional terminal 5 is in contact with the corresponding second functional terminal E. In this case, the controller 13 can activate the first functional terminals 4 and 5.

[0100] In simple terms, after the controller 13 detects contact between the first detection pin and the second detection pin, for each terminal group, it enables the functional terminals in the terminal group when all functional terminals in the terminal group are in contact with their corresponding functional terminals. Conversely, it disables the functional terminals in that terminal group when one or more functional terminals in the terminal group are not in contact with their corresponding functional terminals. This allows for differentiated control of different terminal groups. If a functional terminal in one terminal group is not in contact with its corresponding terminal, functional terminals in other terminal groups can be enabled. This avoids disabling all functional terminals when some functional terminals are not in contact, thereby reducing the impact of interface connection abnormalities on the electronic device.

[0101] Optionally, the interface circuit (second interface circuit) includes multiple switch modules, each of which corresponds to a second detection terminal, and the control terminal of each switch module is connected to a corresponding second detection terminal.

[0102] Referring to Figure 5, Figure 5 shows a circuit connection diagram of another interface provided in an embodiment of this application. As shown in Figure 5, the second interface circuit 20 includes a second detection terminal A and a second detection terminal F, as well as a switch module 241 corresponding to the second detection terminal A and a switch module 242 corresponding to the second detection terminal F. The switch module 241 includes an NMOS transistor corresponding to each second functional terminal. The gate (i.e., the control terminal) of each NMOS transistor is connected to the second detection terminal A, the drain (i.e., the connection terminal) of the gate of each NMOS transistor is connected to the ground terminal (i.e., the voltage node), and the source is connected to the corresponding second functional terminal. For an understanding of the switch module 242, please refer to the switch module 241; it will not be described in detail here.

[0103] In this design, when the second interface circuit 20 is configured with a switch module corresponding to each second detection terminal, multiple switch modules can serve as backups for each other, improving the reliability of the second interface circuit. For example, if switch module 241 fails, even if the first detection terminal 1 and the second detection terminal A are normally connected, and each first functional terminal is normally connected to its corresponding second functional terminal, the controller will not activate the second functional terminals because switch module 241 cannot control the connection between each functional terminal and the voltage node. In this case, when the first detection terminal 1 and the second detection terminal A are in contact and switch module 242 is functioning normally, the controller can activate each functional terminal normally.

[0104] In the examples above, the first and second interfaces can include, but are not limited to, plugs and sockets from various interfaces such as High-Definition Multimedia Interface (HDMI), Universal Serial Bus (USB), and Ethernet. The first interface can be a socket, and the second interface can be a plug; or, the second interface can be a socket, and the first interface can be a plug.

[0105] In this embodiment, a first interface and a second interface are provided that are mutually matched. Corresponding detection terminals and functional terminals are provided in the first and second interfaces. A switch module corresponding to the functional terminal is provided in the second interface. When the voltage of the detection terminal changes, the switch module can trigger a change in the voltage of the functional terminal. When the detection terminals in the two interfaces are in contact, the switch module triggers a change in the voltage of the functional terminal. The voltage change of the functional terminal determines whether the functional terminals of the two interfaces are in normal contact. This allows for a comprehensive assessment of the voltage changes of both the detection and functional terminals to determine whether the two interfaces are properly connected, thereby reducing the probability of false positives and the probability of the functional terminal being mistakenly activated, and ultimately reducing the probability of malfunctions in the electronic device.

[0106] Optionally, the first interface and the second interface can be Pogo Pin interfaces. When the first detection terminal is the Pogo Pin probe in the Pogo Pin plug, the second detection terminal is the Pogo Pin contact in the Pogo Pin socket; when the first detection terminal is the Pogo Pin contact in the Pogo Pin socket, the second detection terminal is the Pogo Pin probe in the Pogo Pin plug.

[0107] Similarly, when the first functional terminal is the Pogo Pin probe in the Pogo Pin plug, the second functional terminal is the Pogo Pin contact in the Pogo Pin socket; when the first functional terminal is the Pogo Pin contact in the Pogo Pin socket, the second functional terminal is the Pogo Pin probe in the Pogo Pin plug.

[0108] Referring to Figure 6, Figure 6 shows a hardware connection diagram of an interface provided in an embodiment of this application. As shown in Figure 6, the master device 30 has the first interface 11 in the example above. The first interface 11 is a Pogo Pin plug, and the first detection terminal and the first functional terminal are both Pogo Pin probes in the Pogo Pin plug. The slave device 40 has the second interface 21 in the example above. The second interface 21 is a Pogo Pin socket, and the second detection terminal and the second functional terminal are both Pogo Pin contacts in the Pogo Pin socket.

[0109] Figure 6 corresponds to Figure 2. Taking the first detection terminal 4 and the second detection terminal D as examples, the first detection terminal 4 is a Pogo Pin probe, which can be composed of a needle tip, spring, needle tube, needle tail, and glue core. The main device 30 includes a first circuit board 31, on which various circuits such as a controller, storage module, and power module can be installed. The needle tip of the Pogo Pin probe is electrically connected to the controller in the first circuit board 31.

[0110] The device 40 includes a second circuit board 41, on which various circuits such as a controller, storage module, and power module can be installed. The Pogo Pin contact is electrically connected to the controller on the second circuit board 41. The second detection terminal D is a Pogo Pin contact. When the first interface 11 and the second interface 21 are plugged in, the Pogo Pin probe in the first detection terminal 4 contacts the Pogo Pin contact in the second detection terminal D, thus achieving an electrical connection between the first detection terminal 4 and the second detection terminal D.

[0111] It should be understood that Figure 6 is merely an illustrative example, and the types and specific components of the first interface and the second interface may include, but are not limited to, those shown in Figure 6.

[0112] This application also provides an electronic device that includes the first interface circuit and / or the second interface circuit described in the above examples. For example, when the electronic device acts as a master device of other devices, it includes the first interface circuit described in the above examples; when it acts as a slave device of other devices, it includes the second interface circuit described in the above examples; when it acts as both a slave device of some devices and a master device of others, it may simultaneously include the first interface circuit and the second interface circuit described in the above examples.

[0113] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. An interface circuit, characterized by include: First interface and controller; The first interface includes a first detection terminal and a first functional terminal, which are respectively connected to the controller. The first detection terminal is connected to the power supply terminal in the interface circuit through a pull-up resistor. When the controller detects that the voltage of the first detection terminal drops to a first voltage, if it detects that the voltage of the first functional terminal drops to a second voltage, then after controlling the voltage of the first detection terminal to drop to a third voltage, it enables the first functional terminal; the first voltage is greater than the second voltage and less than the voltage of the power supply terminal.

2. The interface circuit of claim 1, wherein, The interface circuit includes multiple first detection terminals; When the voltage of at least one of the first detection terminals drops to the first voltage, if the controller determines that the voltage of the first functional terminal drops to the second voltage, then after controlling the voltage of each of the first detection terminals to drop to the third voltage, it enables the first functional terminal.

3. The interface circuit of claim 2, wherein, The interface circuit includes two of the first detection terminals; Two first detection terminals and one first functional terminal are arranged in a column along the target direction; in the column of terminals, there are N first functional terminals spaced apart between the two first detection terminals; N is an integer greater than or equal to 1.

4. The interface circuit of claim 3, wherein, When the voltage of both first detection terminals drops to the first voltage, if the controller determines that the voltage of the first functional terminal drops to the second voltage, then after controlling the voltage of each first detection terminal to drop to the second voltage, the controller enables the first functional terminal.

5. The interface circuit of claim 1, wherein, The interface circuit includes multiple terminal groups, each terminal group corresponding to a multiple function of the first interface, and each terminal group includes one or more terminals for the first function. For each terminal group, if the controller determines that the voltage of all the first functional terminals in the terminal group has dropped to the second voltage when the voltage of the first detection terminal drops to the first voltage, then after controlling the voltage of the first detection terminal to drop to the third voltage, the controller enables the first functional terminals in the terminal group.

6. The interface circuit of any one of claims 1-5, wherein, The first detection terminal is a Pogo Pin probe or a Pogo Pin contact.

7. The interface circuit of any one of claims 1-5, wherein, The first functional terminal is a Pogo Pin probe or a Pogo Pin contact.

8. An interface circuit, comprising: include: Second interface and switch module; The second interface includes a second detection terminal and a second functional terminal. The second detection terminal is connected to the ground terminal in the interface circuit through a pull-down resistor. The control terminal of the switch module is connected to the second detection terminal, one connection terminal of the switch module is connected to the second functional terminal, and the other connection terminal is connected to the voltage node in the interface circuit. The second voltage of the voltage node is greater than or equal to the grounding terminal voltage of the grounding terminal. When the switching module detects that the voltage of the second detection terminal rises to the first voltage, it controls the second functional terminal to connect to the voltage node; and when the voltage of the second detection terminal drops to the third voltage, it controls the second functional terminal to disconnect from the voltage node; the first voltage is greater than the second voltage.

9. The interface circuit of claim 8, wherein, The switch module includes a switch element corresponding to the second functional terminal; One connection terminal of the switching element is connected to the second functional terminal, and the other connection terminal is connected to the voltage node; the control terminal of the switching element is connected to the second detection terminal, and is used to turn on when the voltage of the second detection terminal rises to the first voltage, and to turn off when the voltage of the second detection terminal drops to the third voltage.

10. The interface circuit of claim 8, wherein, The interface circuit includes multiple second detection terminals; The switching module controls the second functional terminal to connect to the voltage node when the voltage of at least one of the second detection terminals rises to the first voltage, and controls the second functional terminal to disconnect from the voltage node when the voltage of all the second detection terminals drops to the third voltage.

11. The interface circuit of claim 10, wherein, The interface circuit includes multiple switch modules, each of which corresponds to a number of second detection terminals. The control terminal of each switch module is connected to a corresponding second detection terminal.

12. The interface circuit of claim 10, wherein, The interface circuit includes two second detection terminals; Two second detection terminals and two second functional terminals are arranged in a column of terminals along the target direction; in the column of terminals, there are N second functional terminals spaced apart between the two second detection terminals; N is an integer greater than or equal to 1.

13. The interface circuit of claim 8, wherein, The interface circuit includes multiple terminal groups, each terminal group corresponding to a different function of the second interface, and each terminal group includes one or more terminals for the second function.

14. The interface circuit of any one of claims 8-13, wherein, The second detection terminal is a Pogo Pin probe or a Pogo Pin contact.

15. The interface circuit of any one of claims 8-13, wherein, The second functional terminal is a Pogo Pin probe or a Pogo Pin contact.

16. An electronic device, comprising: Includes the interface circuit as described in any one of claims 1-7, and / or the interface circuit as described in any one of claims 8-15.