First interface detection circuit, second interface detection circuit and electronic equipment

By designing a first interface detection circuit that can detect changes in the electrical signal of the interface, the problem of poor anti-dust flexibility in the depth structure of the interface in the prior art is solved, and effective detection and management of external equipment access and non-access situations are realized.

CN222762260UActive Publication Date: 2025-04-15TP-LINK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420087505.5
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-01-12
Publication Date
2025-04-15
Estimated Expiration
2034-01-12

AI Technical Summary

Technical Problem

In the prior art, the structure of the interface depth has poor flexibility in preventing the stupidity, which causes the device inserted into the interface to be unable to be detected when the external structure changes, and it is impossible to determine the access status of the adaptive device and the access status of the equipment that is prohibited from access.

Method used

A first interface detection circuit is designed, through connection with at least one pin of the interface, the electrical signal changes of the pin are used to detect the access and non-access situations of the external device, and output the corresponding detection signal. The circuit includes a first detection module and a second detection module, respectively, for detecting the access status of the adapter device and the prohibited access device.

Benefits of technology

It realizes effective detection of the access and non-access situations of external devices, outputs corresponding detection signals, and can identify the access situation of external devices adapted to the interface, improving the discovery and management efficiency of equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222762260U_ABST
    Figure CN222762260U_ABST
Patent Text Reader

Abstract

The utility model provides a first interface detection circuit, a second interface detection circuit and electronic equipment, the first interface detection circuit is connected with at least one first pin of a first interface, and the first interface detection circuit comprises a first detection module which is connected with the first pin and is used for detecting access of a second interface of external second equipment, under the condition that the first interface is accessed or the first interface is not accessed, a first detection signal or a second detection signal is output; and the second detection module is connected with the first pin and is used for outputting a third detection signal or a fourth detection signal under the condition of detecting that an interface of an external third device is connected or not connected with the first interface. According to the interface detection circuit, the access condition of the equipment adaptive to the first interface can be detected, the access condition of the access equipment can be forbidden, and the corresponding detection signal can be output, according to the technical scheme, the access states of various external equipment can be effectively, accurately and flexibly detected and managed, and the detection efficiency is improved. And the discovery and management efficiency of the equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of electronic circuits, and in particular, relates to a first and a second interface detection circuit and an electronic device. Background Art

[0002] The interface is a tool for connecting multiple devices. In related technologies, structural improvements are made and the interface depth is designed to prevent errors. However, this structural anti-error method has poor flexibility. Once the external structure changes, for example, the interface depth becomes deeper, the device inserted into the interface cannot be detected. Utility Model Content

[0003] The purpose of the present application is to provide a first and second interface detection circuit and an electronic device, aiming to solve the problem in the related art that the access status of the adapted device and the access status of the prohibited device cannot be determined.

[0004] In a first aspect of an embodiment of the present application, a first interface detection circuit is proposed, wherein the first interface is located in a first device, an input end of the interface detection circuit is connected to at least one first pin of the interface, the first pin is a pin for transmitting a voltage signal among the pins in the interface, and the first interface detection circuit includes:

[0005] A first detection module, one end of which is used as an input end of the first interface detection circuit and is connected to the first pin, and is used to output a first detection signal when detecting that the second interface of the external second device is connected to the first interface, and output a second detection signal when detecting that the second interface of the external second device is not connected to the first interface;

[0006] The second detection module, one end of the second detection module serves as the input end of the interface detection circuit and is connected to the first end of the first pin, and is used to output a third detection signal when detecting that the third interface of an external third device is connected to the first interface.

[0007] In some embodiments, the first detection module includes a first switch module, the first switch module includes an output end and a control end, and the output end of the first switch module constitutes the output end of the first detection module;

[0008] The second interface of the second device is connected to the first interface, and the output end of the first switch module outputs a first detection signal;

[0009] The second interface of the second device is not connected to the first interface, and the output end of the first switch module outputs a second detection signal.

[0010] In some embodiments, the first detection module further includes a control-end voltage regulation module, and the control-end voltage regulation module at least includes: a voltage division output end and a voltage division input end.

[0011] The voltage division output end is connected to the control end of the first switch module, and the voltage division input end is connected to the first end of the first pin of the first interface;

[0012] When the second interface of the second device is connected to the first interface, the voltage division input terminal is connected to the second interface of the external second device, and the voltage division output terminal outputs the first control terminal voltage;

[0013] When the second interface of the second device is not connected to the first interface, the voltage-dividing input terminal is not connected to the second interface of the external second device, and the voltage-dividing output terminal outputs the second control terminal voltage.

[0014] In some embodiments, the control end voltage regulating module further includes: a first power supply, a resistance module, the resistance module includes a plurality of resistors connected in series and parallel, a first end of the resistance module is connected to the first power supply, and a second end of the resistance module is grounded.

[0015] The first connection end of the resistor in the resistor module is used as a voltage division input end, and the second connection end of the resistor in the resistor module is used as a voltage division output end, which is connected to the control end of the first switch module.

[0016] In some embodiments, the second detection module includes a comparator, a first input terminal of the comparator inputs a reference voltage, and a second input terminal of the comparator is connected to a first terminal of the first pin;

[0017] The third interface of the external third device is connected to the first interface, and the output end of the comparator outputs a third detection signal.

[0018] The third interface of the external third device is not connected to the first interface, and the output end of the comparator outputs a fourth detection signal.

[0019] In some embodiments, the first input terminal of the comparator inputs a reference voltage, including:

[0020] A voltage division acquisition module is used to provide a reference voltage, and the voltage division acquisition module includes: a first resistor and a second resistor; a first end of the first resistor is grounded, and a second end of the first resistor is respectively connected to a first input end of the comparator and a first end of the second resistor;

[0021] The second end of the second resistor is connected to the second power supply;

[0022] The connection end of the first resistor and the second resistor serves as the output end of the voltage division acquisition module, and the voltage value of the output end of the voltage division acquisition module is the reference voltage.

[0023] In some embodiments, the first interface detection circuit further includes a third resistor, a first end of the third resistor is connected to the first end of the first pin, and a second end of the third resistor is respectively connected to the input end of the first detection module and the input end of the second detection module.

[0024] According to a second aspect of an embodiment of the present application, a second interface detection circuit is provided, wherein the second interface is located in a second device, the second interface of the second device is connected to the first interface, an input end of the second interface detection circuit is connected to a second end of at least one first pin of the first interface, and is connected to the first interface detection circuit to form a voltage divider circuit, so that the first interface detection circuit outputs a first detection signal;

[0025] The second interface in the second device is not connected to the first interface, and the input end of the second interface detection circuit is disconnected from the second end of the first pin, so that the first interface detection circuit outputs a second detection signal.

[0026] In some embodiments, the second interface detection circuit includes: a fourth resistor, a first end of the fourth resistor is grounded, and a second end of the fourth resistor serves as an input end of the second interface detection circuit;

[0027] The second interface in the second device is connected to the first interface, the second end of the fourth resistor is connected to the second end of the first pin, and is connected to the first interface detection circuit to form a voltage divider circuit;

[0028] The second interface in the second device is not connected to the first interface, and the second end of the fourth resistor is disconnected from the second end of the first pin.

[0029] In a third aspect, the present application proposes an electronic device, comprising a first interface detection circuit as described in any one of the above items; or comprising a second interface detection circuit as described in any one of the above items.

[0030] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0031] The first interface detection circuit of the present application can effectively detect the access status of the external first interface adapter device and the access status of the device prohibited from access, and output a corresponding detection signal.

[0032] The first interface detection circuit is connected to at least one first pin 01 of the first interface, and can use the change of the electrical signal of the first pin 01 to sense the access and non-access of the external device. When the external device adapted to the first interface is connected, the first detection module 101 can output a first detection signal, such as a high-level signal or a pulse signal, to indicate the access of the electronic device adapted to the interface. When the electronic device adapted to the interface is not connected, the first detection module 101 can output a second detection signal, such as a low-level signal or a pulse signal, to indicate the non-access of the electronic device adapted to the interface.

[0033] The second interface detection circuit is located in an external device adapted to the first interface. When the interface of the external device adapted to the first interface is connected to the first interface 0, the second interface detection circuit can form a voltage divider circuit with the first interface detection circuit. When the interface of the external device adapted to the first interface is disconnected from the first interface 0, the second interface detection circuit is disconnected from the first interface detection circuit. This change in the circuit connection form can assist the first interface detection circuit in generating different first detection signals and second detection signals to identify the access status of the external device adapted to the first interface.

[0034] If it is detected that the prohibited device is connected to the first interface 0, the second detection module 102 outputs a third detection signal. If it is detected that the prohibited device is not connected to the first interface 0, the second detection module 102 outputs a fourth detection signal.

[0035] The interface detection circuit of the present application has a wide range of applications and can be applied to various interfaces in computer systems, etc., to detect the access and non-access status of electronic devices adapted to the interface. By outputting corresponding detection signals, other circuits or module actions can be triggered, such as starting or stopping the power supply of the device, waking up the computer system, etc. The interface detection circuit of the present application can also be applied to other scenarios that need to detect the access and non-access of electronic devices adapted to the interface, such as smart home systems, industrial control systems, etc. The technical solution of the present application can detect and manage the access status of various external devices in an effective, accurate and flexible manner, thereby improving the efficiency of device discovery and management. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1A A socket relationship diagram of an indoor unit and an outdoor unit provided in an embodiment of the present application;

[0037] Figure 1B A schematic diagram of the length and depth relationship between the Type C male and female connectors provided in an embodiment of the present application;

[0038] Figure 2 A schematic diagram of a detection circuit provided in one embodiment of the present application;

[0039] Figure 3A A structural diagram of another detection circuit provided in one embodiment of the present application;

[0040] Figure 3B A schematic diagram of the structure of a control-end voltage regulating module provided in an embodiment of the present application;

[0041] Figure 4 This is a pin distribution diagram of the interface between the indoor unit and the outdoor unit provided in the embodiment of the present application.

[0042] Description of Reference Numerals

[0043] 0-first interface; 01-first pin; 101-first detection module; 102-second detection module; R1-first resistor; R2-second resistor; R3-third resistor; R4-fourth resistor; R5-fifth resistor; R6-sixth resistor; R7-seventh resistor; R8-eighth resistor; 1021-comparator; C1-first capacitor; Q1-first switch module; 1011-control end voltage regulating module; 10111-resistance module; ZD-bidirectional transient suppression diode. DETAILED DESCRIPTION

[0044] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0045] It should be noted that when an element is referred to as being "fixed to" or "disposed on" another element, it can be directly on the other element or indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element.

[0046] It should be understood that the orientation or position relationship indicated by terms such as "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0047] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0048] See attached Figure 1A, is a cat-eye-shaped doorbell product currently available on the market, which is divided into an indoor unit and an outdoor unit. The indoor unit is equipped with a screen and a built-in rechargeable lithium battery. The outdoor unit is equipped with a camera, which needs to be powered by the indoor unit and is placed in the cat-eye hole of the door to replace the traditional cat-eye. In order to facilitate user plug-in and unplug, the indoor unit contains 2 type c female sockets. Type c female socket 1 is used to charge the user with a charging cable, and type c female socket 2 is used to connect the outdoor unit. Because the outdoor unit is small in size and is limited by cost requirements, it usually does not have a video encoding chip. Then the image data of the outdoor unit is generally directly connected to the indoor unit in the form of a MIPI differential line. The connection form here is non-standard and cannot be shared with the standard type c charging cable. Once the user mistakenly connects the type c male socket 1 of the charging cable to the type c female socket 2 of the indoor unit, the voltage of the charger will damage the MIPI and other interfaces of the type c female socket 2.

[0049] In the related art, the interface depth is controlled structurally to prevent errors, see Figure 1B The length and depth relationship between the type C male and female connectors is shown in the figure. The structure has been improved. Specifically, the outdoor unit connector is retracted, and the electric shock depth a2 is greater than the charging connector's electric shock depth a1. At the same time, the exposed length L2 of the outdoor unit data cable male connector is greater than the exposed length L1 of the charging cable male connector. The purpose is to ensure that the outdoor unit data cable can be normally connected to the indoor unit connector, but the charging cable cannot contact the contact point of the outdoor unit connector because the exposed length L1 is too short.

[0050] It can be seen that there are relatively large disadvantages in structural foolproofing. The flexibility is poor, and it is limited by the flexible changes of the structure. It cannot be widely used. Once the external structure changes, it cannot be used. For example, in the stage of developing bare boards without structural shells, in the stage of bare board testing and assembly in the factory, or in the change of the interface size of the charging cable, the technical solution of structural foolproofing will fail.

[0051] Based on this, the present application uses a hardware circuit to perform interface detection protection. The present application proposes an interface detection circuit, see Attachment Figure 2 The structural diagram of an interface detection circuit provided by an embodiment of the present application is shown. For the convenience of explanation, only the part related to the present embodiment is shown, which is described in detail as follows:

[0052] A first interface detection circuit, wherein an input end of the first interface detection circuit is connected to a first end of at least one first pin 01 of the first interface 0, wherein the first pin 01 is a pin for transmitting a voltage signal among the pins in the first interface 0, and the first interface detection circuit comprises:

[0053] The first detection module 101, one end of the first detection module 101 serves as the input end of the interface detection circuit, and is connected to the first end of the first pin 01, and is used to output a first detection signal when it is detected that the second interface of the external second device is connected to the first interface, and output a second detection signal when it is detected that the external second device is not connected to the first interface.

[0054] In this embodiment, the above-mentioned external second device is a device adapted to the above-mentioned first interface 0. When the second interface of the external second device is connected to the above-mentioned first interface 0, the level of the first pin 01 in the first interface 0 will change. Since the first detection module 101 is connected to the above-mentioned first pin 01, the first detection signal output by the first detection module 101 can be a high-level signal or a low-level signal. It can be a device or equipment, and can be located in the same device as the above-mentioned interface detection circuit, or in a different device. The first detection signal receiving end can determine that the second interface of the external second device is connected to the above-mentioned first interface 0 based on the received first detection signal.

[0055] When the external second device is not connected to the first interface 0, the level of the first end of the first pin 01 in the first interface 0 will change. Since the first detection module 101 is connected to the first end of the first pin 01, the second detection signal output by the first detection module 101 can be a low-level signal or a high-level signal. The second detection signal can be known to the second detection signal receiving end connected to the second detection signal, and the second detection signal receiving end can determine that the external second device is not connected to the first interface 0 according to the received second detection signal.

[0056] The first detection signal receiving end and the second detection signal receiving end may be the same device or equipment.

[0057] The second detection module 102, one end of the second detection module 102 is used as the input end of the interface detection circuit, connected to the first end of the first pin 01, and is used to output a third detection signal when detecting that a third interface of an external third device is connected.

[0058] In this embodiment, the above-mentioned external third device is a device that is prohibited from accessing the above-mentioned first interface 0. When the third interface of the external third device is connected to the above-mentioned first interface 0, the level of the first end of the first pin 01 will change, and the high and low levels of the first end of the first pin 01 are detected by the second detection module 102, and the second detection module 102 outputs a third detection signal, and the third detection signal can be a high level or a low level.

[0059] The third detection signal is acquired by a third detection signal receiving end connected to the third detection signal, and the third detection signal receiving end can determine that an external third device is connected to the first interface 0 according to the received third detection signal.

[0060] The third detection signal receiving end may be an independent device or equipment, or may be the same device or equipment as the first detection signal receiving end and the second detection signal receiving end. It may also be located in the same device or equipment as the first detection signal receiving end and the second detection signal receiving end.

[0061] When the third interface of the external third device is not connected to the above-mentioned first interface 0, the level of the first end of the first pin 01 will change, and the high and low levels of the first end of the first pin 01 are detected by the second detection module 102. The second detection module 102 outputs a fourth detection signal, which can be a low level or a high level.

[0062] In this embodiment, when the third interface of the external third device is not connected to the above-mentioned first interface 0, the level of the first end of the first pin 01 will change, and the high and low levels of the first end of the first pin 01 are detected by the second detection module 102. The second detection module 102 outputs a fourth detection signal, and the fourth detection signal can be a low level or a high level.

[0063] The fourth detection signal is acquired by a fourth detection signal receiving end connected to the fourth detection signal, and the fourth detection signal receiving end can determine that the external third device is not connected to the first interface 0 according to the received fourth detection signal.

[0064] The fourth detection signal receiving end may be an independent device or equipment, or may be the same device or equipment as the first detection signal receiving end, the second detection signal receiving end, and the third detection signal receiving end. It may also be located in the same device or equipment as the first detection signal receiving end, the second detection signal receiving end, and the third detection signal receiving end.

[0065] The interface detection circuit of the present application can effectively detect the access and non-access of external devices and output corresponding detection signals. By connecting to the first end of at least one first pin 01 of the first interface, the access status of the external device can be sensed by using the change of the electrical signal at the first end of the first pin 01. When the device adapted to the first interface is connected, the first detection module 101 can output a first detection signal, such as a high-level signal or a pulse signal, to indicate the access of the device adapted to the first interface. When the device adapted to the first interface is not connected, the first detection module 101 can output a second detection signal, such as a low-level signal or a pulse signal, to indicate the non-access of the device adapted to the first interface.

[0066] When it is detected that the third interface of the external third device is connected to the above-mentioned first interface 0, the second detection module 102 outputs a third detection signal. When it is detected that the third interface of the external third device is not connected to the above-mentioned first interface 0, the second detection module 102 outputs a fourth detection signal.

[0067] The first interface detection circuit of the present application can effectively detect the access status of the external first interface adapter device and the access status of the device prohibited from access, and output a corresponding detection signal.

[0068] The interface detection circuit of the present application has a wide range of applications and can be applied to various interfaces in a computer system, etc., to detect the connection and non-connection of external devices. By outputting corresponding detection signals, other circuits or module actions can be triggered, such as starting or stopping the power supply of the device, waking up the computer system, etc. The interface detection circuit of the present application can also be applied to other scenarios that require detection of the connection and non-connection of external devices, such as smart home systems, industrial control systems, etc.

[0069] See attached Figure 3A In some embodiments, the first detection module 101 includes a first switch module Q1 , and the output end of the first switch module Q1 constitutes the output end of the first detection module 101 .

[0070] In some embodiments, the first switch module Q1 is a metal oxide semiconductor field effect transistor (MOS).

[0071] The first switch module Q1 includes a gate G, a source S and a drain D. The gate G is the control terminal of the first switch module Q1, the drain D constitutes the output terminal of the MOS tube, and the source S is grounded.

[0072] When the second interface of the second device is connected to the first interface 0, the gate G of the first switch module Q1 is connected to the first gate voltage signal, the drain D and the source S of the first switch module Q1 are turned on, and the drain D outputs the first detection signal.

[0073] In this embodiment, when the second interface of the second device is connected to the first interface 0, the level of the first end of the first pin 01 of the first interface 0 will change, the voltage of the first end of the first pin 01 is used as the first gate voltage signal, the gate G of the first switch module Q1 is connected to the first gate voltage signal, the first switch module Q1 will be activated, the drain D of the first switch module Q1 and the source S are turned on, and the drain D outputs the first detection signal. The first detection signal can be a high level or a low level signal.

[0074] When the second device is not connected, the gate G of the first switch module Q1 receives the second gate voltage signal, the drain D of the first switch module Q1 is disconnected from the source S, and the drain D outputs the second detection signal.

[0075] In this embodiment, when the second device is not connected to the first interface 0, the second device is disconnected from the first interface 0, which will cause the level of the first end of the first pin 01 to change, and the voltage of the first end of the first pin 01 is used as the second gate voltage signal. The gate G of the first switch module Q1 is connected to the second gate voltage signal, and the first switch module Q1 will be activated, the drain D of the first switch module Q1 is disconnected from the source S, and the drain D outputs the second detection signal. The second detection signal can be a low level or a high level signal.

[0076] In the above-mentioned technical solution of the present application, the first detection module 101 realizes the detection of the access status of the first interface 0 through its built-in first switch module Q1, and can output a corresponding detection signal when it is detected that the external second device is connected to the first interface 0, or is not connected to the first interface 0.

[0077] See attached Figure 3BIn some embodiments, the first detection module 101 further includes a control-end voltage regulating module 1011, and the control-end voltage regulating module 1011 further includes: a voltage-dividing output terminal and a voltage-dividing input terminal. The voltage-dividing output terminal is connected to the control terminal of the first switch module Q1, and the voltage-dividing input terminal is connected to the first end of the first pin of the first interface. When the second interface of the second device is connected to the first interface, the voltage-dividing input terminal is connected to the second interface of the external second device, and the voltage-dividing output terminal outputs the first control-end voltage. When the second interface of the second device is not connected to the first interface, the voltage-dividing input terminal is not connected to the second interface of the external second device, and the voltage-dividing output terminal outputs the second control-end voltage.

[0078] In some embodiments, the control end voltage regulating module 1011 further includes a first power supply and a resistance module 10111. The resistance module 10111 includes a plurality of resistors connected in series and parallel. The first end of the resistance module 10111 is connected to the first power supply, and the second end of the resistance module 10111 is grounded. The first connection end point of the resistor in the resistance module 10111 serves as a voltage divider input end, and the second connection end point of the resistor in the resistance module 10111 serves as a voltage divider output end. The first connection end point and the second connection end point may be any connection end points.

[0079] The resistance module 10111 may include a plurality of resistors connected in series and parallel. When the voltage divider output terminal and the voltage divider input terminal are different endpoints, according to the resistance voltage divider rule, the first voltage value of the voltage divider output terminal and the second voltage value of the voltage divider input terminal are positively correlated. That is, the voltage of the voltage divider output terminal can reflect the voltage of the voltage divider input terminal.

[0080] In some embodiments, when the voltage divider input terminal and the voltage divider output terminal are different endpoints, the probability of failure increases. Since the current at the voltage divider input terminal needs to pass through the resistor to the voltage divider output terminal, the resistor may fail, and the wire connected to the resistor may also fail, resulting in the voltage divider output terminal being unable to obtain voltage. Therefore, preferably, the voltage divider input terminal and the voltage divider output terminal are the same endpoint.

[0081] The voltage-dividing output terminal is connected to the gate of the first switch module Q1, and the voltage-dividing input terminal is connected to the first end of the first pin of the first interface 0. The voltage value of the voltage-dividing input terminal is the first voltage value of the first end of the first pin of the first interface 0, the voltage-dividing output terminal is connected to the gate G of the first switch module Q1, and the voltage-dividing output terminal outputs a second voltage value, and the first voltage value and the second voltage value are correlated. Specifically, the first voltage value and the second voltage value may have a positive correlation.

[0082] When the second interface of the second device is connected to the first interface 0, the voltage divider input terminal is connected to the external second device through the first end of the first pin of the first interface 0, and the voltage divider output terminal outputs the first gate voltage signal.

[0083] In this embodiment, when the second interface of the second device is connected to the above-mentioned first interface 0, the second device is connected to the second end of the first pin of the first interface 0, so that the second device is connected to the voltage divider input terminal through the first pin, the first end of the first pin 01 outputs a first voltage value to the voltage divider input terminal, the voltage divider output terminal outputs a second voltage value, and the voltage divider output terminal outputs a first gate voltage signal, and the voltage value of the first gate voltage signal is the above-mentioned second voltage value.

[0084] In the case where the second device is not connected to the first interface 0, the voltage-dividing input terminal is disconnected from the external second device, and the voltage-dividing output terminal outputs the second gate voltage signal.

[0085] In this embodiment, when the second device is not connected to the first interface 0, the second device is disconnected from the voltage divider input terminal, the first end of the first pin 01 outputs the third voltage value to the voltage divider input terminal, the voltage divider output terminal outputs the fourth voltage value, the voltage divider output terminal outputs the second gate voltage signal, and the voltage value of the second gate voltage signal is the fourth voltage value. The third voltage value and the fourth voltage value are correlated. Specifically, they can have a positive correlation.

[0086] In the above technical solution of the present application, the control end voltage regulating module 1011 can be designed as a resistive circuit in which multiple resistors are connected in series and in parallel. The voltages at the voltage divider input terminal and the voltage divider output terminal of the control end voltage regulating module 1011 have a positive correlation. Utilizing the above characteristics, the voltage divider input terminal is connected to the first end of the first pin 01 of the first interface 0 to obtain the voltage value of the first pin 01 of the first interface 0. The voltage at the voltage divider output terminal indirectly reflects the size of the voltage divider input terminal. The voltage divider output terminal is connected to the gate of the first switch module Q1, and the switching state of the first switch module Q1 can be controlled by adjusting the voltage at the voltage divider output terminal. The voltage at the voltage divider output terminal can be used to control the opening and closing of the switch module, thereby realizing the precise regulation of the first switch module Q1 by voltage.

[0087] In some embodiments, see Appendix Figure 3A, the resistance module 10111 includes a fifth resistor R5 and a sixth resistor R6. The first end of the fifth resistor R5 is connected to the first end of the sixth resistor R6, and the second end of the fifth resistor R5 is connected to the first power supply. The second end of the sixth resistor R6 is grounded. The connection end of the fifth resistor R5 and the sixth resistor R6 serves as the voltage-dividing output end and the voltage-dividing input end. The first power supply is used to provide voltage to the fifth resistor R5 and the sixth resistor R6. The fifth resistor R5 and the sixth resistor R6 are in a series relationship, and the voltage of the connection end of the fifth resistor R5 and the sixth resistor R6 can be determined according to the resistance voltage division law. The connection end of the fifth resistor R5 and the sixth resistor R6 serves as the voltage-dividing input end and the voltage-dividing output end. The voltage-dividing input end and the voltage-dividing output end are the same endpoint. When the voltage-dividing input end and the voltage-dividing output end are the same endpoint, the voltage of the voltage-dividing input end and the voltage of the voltage-dividing output end are the same.

[0088] In one implementation, the first detection module 101 further includes a first capacitor C1 , and the first capacitor C1 is connected in parallel with the sixth resistor R6 .

[0089] In this embodiment, the first capacitor C1 is connected in parallel with the sixth resistor R6 , and the first capacitor C1 can play a filtering role.

[0090] In one implementation, the first detection module 101 further includes a bidirectional transient suppression diode ZD, a first end of which is connected to the gate G of the first switch module Q1 , and a second end of which is connected to the source S of the first switch module Q1 .

[0091] In this embodiment, the bidirectional transient suppression diode ZD can work under forward and reverse voltages and has the function of bidirectional voltage stabilization. By connecting the first end of the bidirectional transient suppression diode ZD to the gate G of the first switch module Q1, the voltage of the gate G can be stabilized. By connecting the second end of the bidirectional transient suppression diode ZD to the source S of the first switch module Q1, the voltage of the source S can be stabilized.

[0092] In some embodiments, the first interface detection circuit further includes a third resistor R3, the first end of the third resistor R3 is connected to the first end of the first pin 01, and the second end of the third resistor R3 is respectively connected to the input end of the first detection module 101 and the input end of the second detection module 102. The specific effect of the third resistor R3 is as follows: when the voltage or current on the first pin 01 is too large, the third resistor R3 can limit the current flowing through the first detection module 101 and the second detection module 102 to prevent damage due to excessive current. By reasonably selecting the resistance value of the third resistor R3, it can be ensured that the voltage or current of the input port of the first detection module 101 and the second detection module 102 is maintained within a stable range, thereby improving the performance and stability of the entire detection circuit.

[0093] In some embodiments, the first detection module 101 further includes a third power supply and an eighth resistor R8, a first end of the eighth resistor R8 is connected to the third power supply, and a second end of the eighth resistor R8 is connected to the drain of the first switch module Q1.

[0094] The eighth resistor R8 is a pull-up resistor. The third power supply can provide the first detection module 101 with the required power to support its normal operation.

[0095] In some embodiments, the second detection module 102 includes a comparator 1021, a reference voltage is input to a first input terminal of the comparator 1021, and a second input terminal of the comparator 1021 is connected to a first terminal of the first pin 01; a third interface of an external third device is connected to the first interface 0, and an output terminal of the comparator 1021 outputs a third detection signal. The third interface of the external third device is not connected to the first interface 0, and an output terminal of the comparator 1021 outputs a fourth detection signal.

[0096] In this embodiment, the third detection signal may be at a high level or a low level, preferably at a low level.

[0097] The third device is a device prohibited from being connected to the first interface 0. In principle, this type of device cannot be inserted into the first interface 0. If this type of device is mistakenly inserted into the first interface 0, the above detection is performed and a third detection signal is output.

[0098] Exemplarily, the third device is a charger. The default output voltage of the charger is 5V. When the charger is connected to the first interface 0, the voltage at the second input terminal of the comparator 1021 will be greater than the reference voltage input at the first input terminal. In this case, the voltage output at the output terminal of the comparator 1021 will flip from the original low level to the high level, or from the original high level to the low level.

[0099] In some embodiments, the third interface of the external third device is not connected to the first interface 0, and the output end of the comparator 1021 outputs a fourth detection signal.

[0100] See also Figure 3A In this embodiment, when the third interface of the external third device is not connected to the first interface 0, the voltage of the second input terminal of the comparator 1021 will be less than or equal to the reference voltage input to the first input terminal. This is because, when the third interface of the external third device is not connected to the first interface 0, the voltage of the second input terminal of the comparator 1021 is equal to the voltage between the fifth resistor R5 and the sixth resistor R6. By setting the voltage value of the first power supply, the values ​​of the fifth resistor R5 and the sixth resistor R6, the voltage value between the fifth resistor R5 and the sixth resistor R6 can be made less than the reference voltage value. For example, the first power supply can be set to 3.3 volts, the resistance value of the fourth resistor R4 is 10K ohms, the resistance value of the fifth resistor R5 is 1 ohm, the resistance value of the sixth resistor R6 is 1200K ohms, and the reference voltage value is set to 1.1 volts. When the third interface of the external third device is not connected to the first interface, the first power supply, the fifth resistor R5 and the sixth resistor R6 form a voltage divider circuit, which can determine that the voltage between the fifth resistor R5 and the sixth resistor R6 is less than the reference voltage 1.1 volts.

[0101] In some embodiments, the first input terminal of the comparator 1021 is a positive input terminal, the second input terminal of the comparator 1021 is a negative input terminal, and the third detection signal outputted from the output terminal of the comparator 1021 is a low level signal.

[0102] In some embodiments, the reference voltage may be provided by a fixed constant voltage source, and the voltage value of the voltage source may be set to the reference voltage value.

[0103] In some embodiments, the above-mentioned reference voltage can be implemented by a circuit, and the circuit is a voltage-dividing acquisition module 1022. The first input terminal of the above-mentioned comparator 1021 inputs the reference voltage, which may include: using the voltage-dividing acquisition module 1022 to provide the above-mentioned reference voltage. The above-mentioned voltage-dividing acquisition module 1022 includes: a first resistor R1 and a second resistor R2. The first end of the above-mentioned first resistor R1 is grounded, and the second end of the above-mentioned first resistor R1 is respectively connected to the above-mentioned first input terminal of the above-mentioned comparator 1021 and the first end of the above-mentioned second resistor R2. The second end of the above-mentioned second resistor R2 is connected to a second power supply. The connection end of the above-mentioned first resistor R1 and the above-mentioned second resistor R2 serves as the output end of the voltage-dividing acquisition module 1022, and the voltage value of the output end of the above-mentioned voltage-dividing acquisition module 1022 is the above-mentioned reference voltage.

[0104] In some embodiments, the second detection module 102 further includes a seventh resistor R7, a first end of the seventh resistor R7 is connected to the output end of the comparator 1021, a second end of the seventh resistor R7 is connected to the power input end of the comparator 1021, the power input end is connected to a fourth power supply, and the comparator 1021 is also provided with a ground end.

[0105] In some embodiments, the second device is an electronic device compatible with the first interface 0 , and the third device is a device not compatible with the first interface 0 .

[0106] Exemplarily, the third device is a charger.

[0107] In this embodiment, the electronic device adapted to the first interface 0 may be an outdoor unit. The first interface detection circuit may be located in the indoor unit or outside the indoor unit.

[0108] Based on the same inventive concept, in the second aspect, the present application also proposes a second interface detection circuit, which is connected to the second end of at least one first pin 01 of the above-mentioned first interface 0, and the above-mentioned first pin 01 is a pin for transmitting a voltage signal among the pins in the above-mentioned first interface 0. The above-mentioned second interface detection circuit includes: a fourth resistor R4, the first end of the above-mentioned fourth resistor R4 is grounded, and the second end of the above-mentioned fourth resistor R4 serves as the input end of the above-mentioned second interface detection circuit.

[0109] When the second interface detection circuit is connected to the first interface 0, the second end of the fourth resistor R4 is connected to the first pin 01 and communicates with the first interface detection circuit to form a voltage divider circuit.

[0110] When the second interface detection circuit is not connected to the first interface 0, the second end of the fourth resistor R4 is disconnected from the second end of the first pin 01.

[0111] The second interface detection circuit mentioned above may be located in the outdoor unit or outside the outdoor unit, and the first device adapted to the second interface may be the indoor unit.

[0112] See attached Figure 4The pin distribution diagram of the interface between the indoor unit and the outdoor unit is shown in the figure. The above interface can be the type C standard wiring sequence defined by the USBIF Association. Among them, the A4, A9, B4, and B9 pins are connected to the power supply. The A2, A3, A10, A11, B2, B3, B10, and B11 pins are connected to the USB 3.0 data line. A6, A7, B6, and B7 are USB 2.0 data lines. A5 and B5 are fast charging negotiation lines. A8 and B8 can be used for other purposes. A1, A12, B1, and B12 are grounded to GND. The charging cable generally contains at least power and GND, and some will also have CC (Connection Confirmation) and USB 2.0 data.

[0113] In each of the above embodiments, the above-mentioned B4 pin can be selected as the first pin 01 connected to the detection circuit.

[0114] The following takes the indoor unit and outdoor unit as an example. The indoor unit includes: main video encoding chip, IOT wifi chip, power chip, screen display, detection circuit, external type c interface 0, etc.

[0115] The outdoor unit contains a series of peripherals such as image sensor, microcontroller, infrared light, microphone and speaker.

[0116] The outdoor unit and the indoor unit are connected via type c interface 0, and the B4 pin is used as the access detection pin. The outdoor unit connects a ground resistor to the B4 pin as the detection resistor for the outdoor unit access; the ground resistor can be 10 kilo-ohms.

[0117] The indoor unit includes the above-mentioned first interface detection circuit, and the first switch module Q1 can be a MOS tube, specifically, an N-channel MOS tube. The comparator 1021 can be a voltage comparator 1021U1. On the one hand, it is to isolate the first interface 0 to prevent damage to the subsequent WiFi chip, and on the other hand, it uses a higher input impedance to achieve voltage division comparison control.

[0118] The detection and differentiation principle of the first interface detection circuit is as follows: after connecting to the outdoor unit, a 10k resistor to ground is connected to the B4 pin of the indoor unit; after unplugging the outdoor unit, the B4 pin is left floating. After connecting to the charger, the voltage of the B4 pin is raised to 5V because the charger outputs 5V without negotiation.

[0119] In some embodiments, a display device may be provided, the display device is wirelessly connected to the detection circuit, and the display device may display the detection result. Specifically, the display device may be provided with a wireless module, and the wireless module may use a wifi chip to achieve wireless transmission. A wireless module may be provided in the indoor unit, and the wireless module may use a wifi chip. The wifi chip may be connected to two GPIO pins of the detection circuit.

[0120] The detection level logic of the detection circuit is shown in Table 1:

[0121] Access detection pin V1 V2 V3 EN / GPI01 GPI02 Unplug the outdoor unit 1.8V 1.8V 2.2V Low high Outdoor unit access 0.03V 0.03V 2.2V high high Charger is incorrectly plugged in 4.99V 4.99V 2.2V Low Low

[0122] Table 1

[0123] When the outdoor unit is not connected, the first switch module Q1 is in the on state, and EN / GPIO1 is at a low level. After the outdoor unit is connected, the first switch module Q1 is turned off, and EN / GPIO1 becomes a high level.

[0124] When the charger is connected, GPIO2 is at a low level, so it can effectively detect whether the charger is plugged in by mistake.

[0125] The above technical solution of the present application realizes automatic cut-off protection of the subsequent circuit through a combination of multiple switches. Through the access detection circuit and the mis-insertion detection circuit, the automatic detection and identification of the outdoor unit access, outdoor unit unplugging and charger access are realized through only one detection pin. The detection circuit can transmit the status to the back-end chip in time and inform the user of the access status through the screen display. Only switches and voltage comparators are added to the circuit, with low cost and high performance.

[0126] In a third aspect, the present application proposes an electronic device, comprising the first interface detection circuit as described in any one of the above items; or comprising the second interface detection circuit as described in any one of the above items.

[0127] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the above-mentioned device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0128] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0129] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0130] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0131] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0132] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0133] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0134] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled 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. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A first interface detection circuit, wherein the first interface is located in a first device, and an input end of the first interface detection circuit is connected to a first end of at least one first pin of the first interface, wherein the first pin is a pin for transmitting a voltage signal among pins in the first interface, characterized in that: The first interface detection circuit comprises: A first detection module, one end of which serves as an input end of the first interface detection circuit and is connected to the first end of the first pin, and is used to output a first detection signal when detecting that the second interface of the external second device is connected to the first interface, and output a second detection signal when detecting that the second interface of the external second device is not connected to the first interface; A second detection module, one end of which serves as the input end of the first interface detection circuit and is connected to the first end of the first pin, and is used to output a third detection signal when detecting that a third interface of an external third device is connected to the first interface.

2. The first interface detection circuit according to claim 1, characterized in that: The first detection module includes a first switch module, the first switch module includes an output end and a control end, and the output end of the first switch module constitutes the output end of the first detection module; The second interface of the second device is connected to the first interface, and the output end of the first switch module outputs the first detection signal; The second interface of the first device is not connected to the first interface, and the output end of the first switch module outputs the second detection signal.

3. The first interface detection circuit according to claim 2, characterized in that: The first detection module further includes a control end voltage regulating module, and the control end voltage regulating module at least includes: a voltage division output end and a voltage division input end; The voltage division output end is connected to the control end of the first switch module, and the voltage division input end is connected to the first end of the first pin of the first interface; When the second interface of the second device is connected to the first interface, the voltage division input terminal is connected to the second interface of the external second device, and the voltage division output terminal outputs the first control terminal voltage; When the second interface of the second device is not connected to the first interface, the voltage-dividing input terminal is not connected to the second interface of the external second device, and the voltage-dividing output terminal outputs the second control terminal voltage.

4. The first interface detection circuit according to claim 3, characterized in that: The control end voltage regulating module further includes: a first power supply and a resistance module; the resistance module includes a plurality of resistors connected in series and parallel; The first end of the resistance module is connected to the first power supply, and the second end of the resistance module is grounded; The first connection end point of the resistor in the resistor module is used as a voltage division input end and connected to the first pin; The second connection end point of the resistor in the resistor module serves as a voltage-dividing output end, and is connected to the control end of the first switch module.

5. The first interface detection circuit according to claim 1, characterized in that: The second detection module comprises a comparator, a first input terminal of the comparator inputs a reference voltage, and a second input terminal of the comparator is connected to a first terminal of the first pin; The third interface of the external third device is connected to the first interface, and the output end of the comparator outputs a third detection signal; The third interface of the external third device is not connected to the first interface, and the output end of the comparator outputs a fourth detection signal.

6. The first interface detection circuit according to claim 5, characterized in that: The first input terminal of the comparator inputs a reference voltage, comprising: A voltage division acquisition module is used to provide the reference voltage, and the voltage division acquisition module includes: a first resistor and a second resistor; a first end of the first resistor is grounded, and a second end of the first resistor is respectively connected to the first input end of the comparator and the first end of the second resistor; The second end of the second resistor is connected to a second power supply; The connection end of the first resistor and the second resistor serves as an output end of a voltage-dividing acquisition module, and a voltage value of the output end of the voltage-dividing acquisition module is the reference voltage.

7. The first interface detection circuit according to claim 1, characterized in that: The first interface detection circuit also includes a third resistor, a first end of the third resistor is connected to the first end of the first pin, and a second end of the third resistor is respectively connected to the input end of the first detection module and the input end of the second detection module.

8. A second interface detection circuit, wherein the second interface is located in a second device, characterized in that: The second interface of the second device is connected to the first interface, the input end of the second interface detection circuit is connected to the second end of at least one first pin of the first interface, and is communicated with the first interface detection circuit to form a voltage divider circuit, so that the first interface detection circuit outputs a first detection signal; The second interface in the second device is not connected to the first interface, and the input end of the second interface detection circuit is disconnected from the second end of the first pin, so that the first interface detection circuit outputs a second detection signal.

9. The second interface detection circuit according to claim 8, characterized in that: The second interface detection circuit comprises: a fourth resistor, a first end of the fourth resistor is grounded, and a second end of the fourth resistor serves as an input end of the second interface detection circuit; The second interface in the second device is connected to the first interface, the second end of the fourth resistor is connected to the second end of the first pin, and is connected to the first interface detection circuit to form a voltage divider circuit; The second interface in the second device is not connected to the first interface, and the second end of the fourth resistor is disconnected from the second end of the first pin.

10. An electronic device, characterized in that: The method comprises the first interface detection circuit as claimed in any one of claims 1 to 7; or comprises the second interface detection circuit as claimed in any one of claims 8 to 9.