Interface, function line and server
The interface with a switching and detection circuit adapts to different cables, addressing space constraints by multiplexing functions and enhancing server capabilities.
Patent Information
- Application Number
- US19/146505
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Priority Date
- 2023-03-10
- Filing Date
- 2023-11-14
- Publication Date
- 2026-11-26
AI Technical Summary
The existing server interfaces occupy significant installation space, limiting the ability to provide additional devices and expand functions due to the presence of multiple interfaces for different functions.
An interface with a switching circuit and detection circuit that identifies the type of functional cable connected, allowing the switching circuit to connect to either a video interface circuit or a serial port circuit, thereby multiplexing functions and reducing the number of physical interfaces needed.
This solution saves space by allowing a single interface to adapt to different functional cables, enabling more devices and expanded server functions while optimizing installation space.
Smart Images

Figure US20260377338A1-D00000_ABST
Abstract
Description
CROSS-REFERENCE TO RELATED APPLICATION
[0001] This application claims priority to Chinese Patent application No. 202310227065.9, entitled “INTERFACE, FUNCTIONAL CABLE AND SERVER”, filed on Mar. 10, 2023 before the CNIPA, China National Intellectual Property Administration, which is incorporated herein in its entirety by reference.FIELD
[0002] The present application relates to the field of servers, in particular to an interface, a functional cable, and a server.BACKGROUND
[0003] With the development of science and technology, servers are more and more widely used. Usually, interfaces are provided on a housing of a server, and corresponding functions can be realized by inserting functional cables into the interfaces. In the related art, there are many interfaces on the server, and different interfaces correspond to different functions. For example, the server is provided with a video interface and a serial port interface. However, the interfaces on the server will occupy a considerable installation space on the housing of the server, which is not conducive to providing other devices on the server and expanding the functions of the server.SUMMARY
[0004] Embodiments of the present application provide an interface, a functional cable, and a server.
[0005] In a first aspect, an embodiment of the present application provides an interface. The interface is applied to a server, and includes: a first plug-in pin, a second plug-in pin, a third plug-in pin, a switching circuit, a detection circuit, a video interface circuit, and a serial port circuit. The switching circuit is connected to both of the first plug-in pin and the second plug-in pin, the video interface circuit and the serial port circuit are both electrically connected to the switching circuit. The detection circuit is electrically connected to the third plug-in pin, the detection circuit is electrically connected to the switching circuit and the video interface circuit. The first plug-in pin, the second plug-in pin, and the third plug-in pin are all used for being connected to a functional cable, and the detection circuit is used for determining the type of the functional cable in response to the functional cable being connected to the interface. The detection circuit includes: a first voltage divider resistor, a voltage comparison module, and a first control module. A first end of the first voltage divider resistor is connected to the third plug-in pin, a second end of the first voltage divider resistor is electrically connected to the voltage comparison module and the first control switch, the first control switch is electrically connected to the video interface circuit, and the voltage comparison module is electrically connected to the switching circuit. In the case that the functional cable is connected to the interface, the voltage comparison module outputs a signal to the switching circuit to determine whether the functional cable is a video cable or a serial port cable, so that the switching circuit is connected to the video interface circuit or the serial port circuit.
[0006] In some embodiments, in response to the functional cable being connected to the interface and a first signal being output to the switching circuit from the voltage comparison module, the functional cable is a video cable, and the switching circuit is connected to the video interface circuit; in response to the functional cable being connected to the interface and a second signal being output to the switching circuit from the voltage comparison module, the functional cable is a serial port cable, and the switching circuit is connected to the serial port circuit.
[0007] In some embodiments, the voltage comparison module includes a first voltage comparator and a second voltage comparator, the second end of the first voltage divider resistor is connected to the first voltage comparator and the second voltage comparator, the first voltage comparator and the second voltage comparator are electrically connected to the switching circuit, a voltage threshold of the first voltage comparator is a first voltage value, a voltage threshold of the second voltage comparator is a second voltage value, and the first voltage value is less than the second voltage value;
[0008] in response to a voltage input to the first voltage comparator and a voltage input to the second voltage comparator being both less than the first voltage value, the first voltage comparator and the second voltage comparator output a first signal, the first signal is output to the switching circuit, and the switching circuit is connected to the video interface circuit;
[0009] in response to the voltage input to the first voltage comparator and the voltage input to the second voltage comparator being both greater than the second voltage value, the first voltage comparator and the second voltage comparator output a second signal, a first signal is output to the switching circuit, and the switching circuit is connected to the video interface circuit; and in response to the voltage input to the first voltage comparator being greater than the first voltage value and the voltage input to the second voltage comparator being less than the second voltage value, the first voltage comparator outputs a second signal, the second voltage comparator outputs a first signal, the second signal is output to the switching circuit, and the switching circuit is connected to the serial port circuit.
[0010] In some embodiments, a non-inverting input end of the first voltage comparator and an inverting input end of the second voltage comparator are connected to the second end of the first voltage divider resistor, and an output end of the first voltage comparator and an output end of the second voltage comparator are electrically connected to the switching circuit.
[0011] In some embodiments, the first voltage value is 0.1 V, and the second voltage value is 0.2 V.
[0012] In some embodiments, the detection circuit further includes a second voltage divider resistor and a third voltage divider resistor;
[0013] the second voltage divider resistor and the third voltage divider resistor are connected in series, the second end of the first voltage divider resistor is connected between the second voltage divider resistor and the third voltage divider resistor, the third voltage divider resistor is grounded, and the second voltage divider resistor is used for being connected to a first voltage member.
[0014] In some embodiments, a first end of the second voltage divider resistor is used for being connected to the first voltage member, a second end of the second voltage divider resistor is connected to a first end of the third voltage divider resistor, and a second end of the third voltage divider resistor is grounded; and
[0015] the second end of the first voltage divider resistor is connected between the second end of the second voltage divider resistor and the first end of the third voltage divider resistor, and is connected to the second end of the second voltage divider resistor and the first end of the third voltage divider resistor.
[0016] In some embodiments, the detection circuit further includes a fourth voltage divider resistor, a first end of the fourth voltage divider resistor is used for being connected to a second voltage member, and a second end of the fourth voltage divider resistor is electrically connected to the first control switch.
[0017] In some embodiments, the first control switch includes a field effect transistor; and the field effect transistor includes a source electrode, a gate electrode and a drain electrode, the source electrode is connected to the gate, the gate electrode is grounded, and the drain electrode is electrically connected to the second end of the fourth voltage divider resistor and the video interface circuit.
[0018] In some embodiments, the detection circuit further includes a fifth voltage divider resistor, a first end of the fifth voltage divider resistor is used for being connected to a third voltage member, an output end of the first voltage comparator and an output end of the second voltage comparator are connected to a second end of the fifth voltage divider resistor, and the second end of the fifth voltage divider resistor is electrically connected to the switching circuit.
[0019] In some embodiments, the detection circuit further includes a filter circuit, a first end of the filter circuit is connected to the second end of the fifth voltage divider resistor, a second end of the filter circuit is electrically connected to the switching circuit, and the filter circuit is used for filtering out clutter in signals transmitted to the switching circuit.
[0020] In some embodiments, the filter circuit includes a filter resistor and a filter capacitor;
[0021] the filter resistor is connected to the second end of the fifth voltage divider resistor, the filter resistor is connected to the filter capacitor and the switching circuit, and the filter capacitor is grounded.
[0022] In some embodiments, a first end of the filter resistor is connected to the second end of the fifth voltage divider resistor, a second end of the filter resistor is connected to the switching circuit and a first end of the filter capacitor, and a second end of the filter capacitor is grounded.
[0023] In some embodiments, the switching circuit includes a second control switch and a third control switch;
[0024] the second control switch and the third control switch are connected to the first plug-in pin and the second plug-in pin, respectively, the second control switch is connected to the video interface circuit and the serial port circuit, and the third control switch is connected to the video interface circuit and the serial port circuit;
[0025] in response to the functional cable being a video cable, the second control switch and the third control switch are connected to the video interface circuit; and
[0026] in response to the functional cable being a serial port cable, the second control switch and the third control switch are connected to the serial port circuit.
[0027] In some embodiments, the second control switch includes a first input end, a second output end, and a third output end, and the third control switch includes a second input end, a fourth output end, and a fifth output end;
[0028] the first input end is connected to the first plug-in pin, the second input end is connected to the second plug-in pin, the second output end and the fourth output end are connected to the video interface circuit, and the third output end and the fifth output end are connected to the serial port circuit;
[0029] in response to the functional cable being a video cable, the first input end is connected to the second output end, and the second input end is connected to the fourth output end, so that the second control switch and the third control switch are connected to the video interface circuit; and
[0030] in response to the functional cable being a serial port cable, the first input end is connected to the third output end, and the second input end is connected to the fifth output end, so that the second control switch and the third control switch are connected to the serial port circuit.
[0031] In some embodiments, the second control switch and the third control switch each include either an analog switch or a single-pole double-throw relay.
[0032] In some embodiments, the switching circuit further includes a controller that is electrically connected to the second control switch and the third control switch, and the controller is used for controlling switching of the second control switch and the third control switch.
[0033] In a second aspect, an embodiment of the present application provides a functional cable for being plugged into the interface according to any one of the embodiments in the first aspect. The functional cable includes a plug-in port, a wiring pin and a ground pin are provided in the plug-in port, the ground pin is connected to an identification resistor, and the identification resistor is used for enabling the detection circuit to identify the functional cable, in response to the functional cable being identified by the detection circuit, the functional cable is determined as a serial port cable;
[0034] in response to the plug-in port being plugged into the interface, the wiring pin is in contact with the first plug-in pin, and the ground pin is in contact with the third plug-in pin.
[0035] In some embodiments, a resistance value of the identification resistor is 24 kilo-ohms.
[0036] In a third aspect, an embodiment of the present application provides a server. The server includes a housing and the interface according to any one of the embodiments in the first aspect. The interface is provided on the housing.
[0037] In some embodiments, the detection circuit includes a second voltage divider resistor and a third voltage divider resistor;
[0038] the server is provided with a first voltage member, and the second voltage divider resistor is connected to the first voltage member;
[0039] the detection circuit further includes a fourth voltage divider resistor, the server is provided with a second voltage member, and the fourth voltage divider resistor is connected to the second voltage member; and
[0040] the detection circuit further includes a fifth voltage divider resistor, the server is provided with a third voltage member, and the fifth voltage divider resistor is connected to the third voltage member.BRIEF DESCRIPTION OF THE DRAWINGS
[0041] FIG. 1 is a schematic diagram of an interface according to an embodiment of the present application;
[0042] FIG. 2 is a schematic diagram of a detection circuit according to an embodiment of the present application; and
[0043] FIG. 3 is a schematic diagram of a functional cable according to an embodiment of the present application.REFERENCE SIGNS
[0044] 11: first plug-in pin; 12: second plug-in pin; 20: third plug-in pin; 30: switching circuit; 40: detection circuit; 50: video interface circuit; 60: serial port circuit; 31: second control switch; 32: third control switch; 41: first voltage divider resistor; 42: voltage comparison module; 43: first control switch; 44: second voltage divider resistor; 45: third voltage divider resistor; 46: fourth voltage divider resistor; 47: fifth voltage divider resistor; 48: filter circuit; 311: first input end; 312: second output end; 313: third output end; 321: second input end; 322: fourth output end; 323: fifth output end; 421: first voltage comparator; 422: second voltage comparator; 481: filter resistor; 482: filter capacitor; 100: plug-in port; 101: wiring pin; 102: ground pin; and 103: identification resistor.DETAILED DESCRIPTION
[0045] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative labor fall within the scope of protection of the present application.
[0046] It should be understood that references to “one embodiment” or “an embodiment” throughout the specification mean that particular features, structures, or characteristics related to an embodiment are included in at least one embodiment of the present application. Therefore, “in one embodiment” or “in an embodiment” appearing at various places throughout the specification may not necessarily refer to the same embodiment. Furthermore, these particular features, structures or characteristics may be combined in one or more embodiments in any suitable manner.
[0047] FIG. 1 is a schematic diagram of an interface according to an embodiment of the present application, and FIG. 2 is a schematic diagram of a detection circuit according to an embodiment of the present application. The interface is applied to a server. As shown in FIG. 1 and FIG. 2, the interface includes: a first plug-in pin 11, a second plug-in pin 12, a third plug-in pin 20, a switching circuit 30, a detection circuit 40, a video interface circuit 50, and a serial port circuit 60.
[0048] The switching circuit 30 is connected to the first plug-in pin 11 and the second plug-in pin 12. The video interface circuit 50 and the serial port circuit 60 are both electrically connected to the switching circuit 30. The detection circuit 40 is electrically connected to the third plug-in pin 20. The detection circuit 40 is also electrically connected to the switching circuit 30 and the video interface circuit 50. The first plug-in pin 11, the second plug-in pin 12 and the third plug-in pin 20 are all used for being connected to a functional cable. When the interface is connected to a functional cable, the detection circuit 40 is used for determining the type of the functional cable. The detection circuit 40 includes: a first voltage divider resistor 41, a voltage comparison module 42, and a first control switch 43. A first end of the first voltage divider resistor 41 is connected to the third plug-in pin 20, a second end of the first voltage divider resistor 41 is electrically connected to the voltage comparison module 42 and the first control switch 43. The first control switch 43 is electrically connected to the video interface circuit 50. The voltage comparison module 42 is electrically connected to the switching circuit 30. In the case that the functional cable is connected to the interface, the voltage comparison module 42 outputs a signal to the switching circuit 30 to determine whether the functional cable is a video cable or a serial port cable, so that the switching circuit 30 is connected to the video interface circuit 50, or the switching circuit 30 is connected to the serial port circuit 60.
[0049] In the embodiment of the present application, the switching circuit 30 is connected to the first plug-in pin 11 and the second plug-in pin 12, the video interface circuit 50 and the serial port circuit 60 are both electrically connected to the switching circuit 30, the detection circuit 40 is electrically connected to the third plug-in pin 20, and the detection circuit 40 is electrically connected to the switching circuit 30 and the video interface circuit 50. Therefore, after the functional cable is plugged into the interface, the first plug-in pin 11 and the third plug-in pin 20 may be in contact with the functional cable, then the detection circuit 40 may determine the type of the functional cable. In response to the type of the functional cable being determined, the switching circuit 30 may be connected to different functional circuits, so that different functional circuits realize corresponding functions through the functional cable. The detection circuit 40 includes the first voltage divider resistor 41, the voltage comparison module 42, and the first control switch 43. The first end of the first voltage divider resistor 41 is connected to the third plug-in pin 20, the second end of the first voltage divider resistor 41 is electrically connected to the voltage comparison module 42 and the first control switch 43, and the first control switch 43 is electrically connected to the video interface circuit 50. When the voltage comparison module 42 outputs different signals, it may be determined that different functional cables are connected to the interface, and the types of the functional cables are determined. When the functional cable is determined as a video cable, the switching circuit 30 is connected to the video interface circuit 50, and the switching circuit 30 is also connected to the first plug-in pin 11 and the second plug-in pin 12, so that the video interface circuit 50 may realize the video function through the video cable. When the functional cable is determined as a serial port cable, the switching circuit 30 is connected to the serial port circuit 60, and the switching circuit 30 is also connected to the first plug-in pin 11 and the second plug-in pin 12, so that the serial port circuit 60 may realize the serial port function through the serial port cable. That is, in the embodiment of the present application, by providing the switching circuit 30, the detection circuit 40, the video interface circuit 50, and the serial port circuit 60 in the interface, the interface can realize different functions when being connected to different functional cables, which is equivalent to achieving the effect of functional multiplexing of a single interface. Therefore, when the interface is applied to a server, the number of interfaces can be saved, thereby providing more installation space in the server. This allows to provide more devices in the server, and is conducive to diversifying the functions of the server.
[0050] Further, in the embodiment of the present application, when the functional cable is connected to the interface and the voltage comparison module 42 outputs a first signal to the switching circuit 30, the functional cable is a video cable, and the switching circuit 30 is connected to the video interface circuit 50; and when the functional cable is connected to the interface and the voltage comparison module 42 outputs a second signal to the switching circuit 30, the functional cable is a serial port cable, and the switching circuit 30 is connected to the serial port circuit 60. That is, when the functional cable is connected to the interface and the voltage comparison module 42 outputs the first signal to the switching circuit 30, it is determined that the functional cable is a video cable, the switching circuit 30 is connected to the video interface circuit 50. In this case, since the switching circuit 30 is also connected to the first plug-in pin 11, the video interface circuit 50 may realize the video function through the video cable. When the functional cable is connected to the interface and the voltage comparison module 42 outputs a second signal to the switching circuit 30, it is determined that the functional cable is a serial port cable, and the switching circuit 30 is connected to the serial port circuit 60. In this case, since the switching circuit 30 is also connected to the first plug-in pin 11, the serial port circuit 60 may realize the serial port function through the serial port cable.
[0051] In the embodiment of the present application, the video interface circuit 50 and the serial port circuit 60 are the same as those used in the related art and will not be repeated herein.
[0052] Further, in the embodiment of the present application, the first end of the first voltage divider resistor 41 is connected to the third plug-in pin 20, the second end of the first voltage divider resistor 41 is electrically connected to the voltage comparison module 42 and the first control switch 43, and the first control switch 43 is electrically connected to the video interface circuit 50. Thus, after the functional cable is plugged into the interface, there is a voltage on the third plug-in pin 20. This voltage will be divided by the first voltage divider resistor 41, and then the divided voltage is transmitted to the voltage comparison module 42 and the first control switch 43. If the divided voltage does not meet a preset condition of the voltage comparison module 42, the voltage comparison module 42 will output different levels of voltage. Accordingly, the switching circuit 30 is connected to different functional circuits. Specifically, after the functional cable is plugged into the interface, in the case that the functional cable is a video cable, the voltage comparison module 42 outputs the first signal, and the switching circuit 30 is connected to the video interface circuit 50; and in the case that the functional cable is a serial port cable, the voltage comparison module 42 outputs the second signal, and the switching circuit 30 is connected to the serial port circuit 60.
[0053] It is to be noted that the video cable corresponds to the video interface circuit 50, and the serial port cable corresponds to the serial port circuit 60. Further, the video cable may be any one of a video graphics array (VGA) cable, a high definition multimedia interface (HDMI) cable, and a digital visual interface (DVI) cable.
[0054] Further, in some embodiments, the voltage comparison module 42 may include a first voltage comparator 421 and a second voltage comparator 422. The second end of the first voltage divider resistor 41 is connected to the first voltage comparator 421 and the second voltage comparator 422. The first voltage comparator 421 and the second voltage comparator 422 are both electrically connected to the switching circuit 30. A voltage threshold of the first voltage comparator 421 is a first voltage value, a voltage threshold of the second voltage comparator 422 is a second voltage value, and the first voltage value is less than the second voltage value. In the case that the voltage input to the first voltage comparator 421 and the voltage input to the second voltage comparator 422 are both less than the first voltage value, both of the first voltage comparator 421 and the second voltage comparator 422 output the first signal, so that the first signal is output to the switching circuit 30, and the switching circuit 30 is connected to the video interface circuit 50. In the case that the voltage input to the first voltage comparator 421 and the voltage input to the second voltage comparator 422 are both greater than the second voltage value, both of the first voltage comparator 421 and the second voltage comparator 422 output the second signal, so that the first signal is output to the switching circuit 30, and the switching circuit 30 is connected to the video interface circuit 50. In the case that the voltage input to the first voltage comparator 421 is greater than the first voltage value, and the voltage input to the second voltage comparator 422 is less than the second voltage value, the first voltage comparator 421 outputs the second signal, the second voltage comparator 422 outputs the first signal, so that the second signal is output to the switching circuit 30, and the switching circuit 30 is connected to the serial port circuit 60.
[0055] The second end of the first voltage divider resistor 41 is connected to the first voltage comparator 421 and the second voltage comparator 422, the first voltage comparator 421 and the second voltage comparator 422 are electrically connected to the switching circuit 30, the voltage threshold of the first voltage comparator 421 is the first voltage value, the voltage threshold of the second voltage comparator 422 is the second voltage value, and the first voltage value is less than the second voltage value. Thus, when the voltage input to the first voltage comparator 421 is different from the voltage input to the second voltage comparator 422, the output level of the first voltage comparator 421 is also different from the output level of the second voltage comparator 422, allowing the switching circuit 30 to be connected to different functional circuits. Specifically, in the case that the voltage input to the first voltage comparator 421 and the voltage input to the second voltage comparator 422 are both less than the first voltage value, the first voltage comparator 421 and the second voltage comparator 422 output the first signal, so that the first signal is output to the switching circuit 30. After receiving the first signal, the switching circuit 30 is connected to the video interface circuit 50. In the case that the first voltage input to the first voltage comparator 421 and the voltage input to the second voltage comparator 422 are both greater than the second voltage value, both of the first voltage comparator 421 and the second voltage comparator 422 output the second signal. However, the first signal is output to the switching circuit 30, after receiving the first signal, the switching circuit 30 is connected to the video interface circuit 50. In the case that the voltage input to the first voltage comparator 421 is greater than the first voltage value, and the voltage input to the second voltage comparator 422 is less than the second voltage value, the first voltage comparator 421 outputs the second signal, the second voltage comparator 422 outputs the first signal. Accordingly, the second signal is output to the switching circuit 30. After receiving the second signal, the switching circuit 30 is connected to the serial port circuit 60.
[0056] It is to be noted that in the embodiment of the present application, the second voltage value is less than the turn-on voltage of the first control switch 43. Thus, after the serial port cable is connected to the interface, it can prevent the first control switch 43 from being turned on due to the divided voltage, which would lead to the issue of the video interface circuit 50 being connected to the first plug-in pin 11.
[0057] Further, in the embodiment of the present application, the first signal may be a low level signal, and the second signal may be a high level signal.
[0058] Further, in the embodiment of the present application, a non-inverting input end of the first voltage comparator 421 and an inverting input end of the second voltage comparator 422 are both connected to the second end of the first voltage divider resistor 41, and the output end of the first voltage comparator 421 and the output end of the second voltage comparator 422 are both electrically connected to the switching circuit 30.
[0059] When the non-inverting input end of the first voltage comparator 421 and the inverting input end of the second voltage comparator 422 are both connected to the second end of the first voltage divider resistor 41, the voltage divided by the first voltage divider resistor 41 may be transferred to the first voltage comparator 421 and the second voltage comparator 422, so that the first voltage comparator 421 and the second voltage comparator 422 output different levels. Since the output end of the first voltage comparator 421 and the output end of the second voltage comparator 422 are both electrically connected to the switching circuit 30, the switching circuit 30 receives different level signals. Accordingly, the switching circuit 30 is switched to be connected to different functional circuits, so that the first plug-in pin 11 is connected to different functional circuits, and the different functional circuits realize corresponding functions.
[0060] Further, in the embodiment of the present application, the first voltage value is 0.1 V, and the second voltage value is 0.2 V.
[0061] When the first voltage value is 0.1 V and the second voltage value is 0.2 V, the voltage range of 0.1 V-0.2 V is small. As a result, only when the voltage on the voltage comparison module 42 is within the voltage range of 0.1 V-0.2 V, the detection circuit 40 determines the functional cable as a serial port cable, which may result in high precision of the detection circuit 40 in determining the functional cable. That is, by setting the first voltage value to be 0.1 V and the second voltage value to be 0.2 V, the detection precision of the detection circuit 40 can be improved.
[0062] Of course, in the embodiment of the present application, the first voltage value may be other values, and the second voltage value may also be other values, as long as the second voltage value is less than the turn-on voltage of the first control switch 43. For example, the turn-on voltage of the first control switch 43 is 1 V, the first voltage value is 0.3 V, and the second voltage value is 0.9 V. For another example, the turn-on voltage of the first control switch 43 is 1 V, the first voltage value is 0.4 V, and the second voltage value is 0.8 V, which is not limited in the embodiments of the present application herein.
[0063] Further, in some embodiments, the detection circuit 40 may further include a second voltage divider resistor 44 and a third voltage divider resistor 45. The second voltage divider resistor 44 and the third voltage divider resistor 45 are connected in series. The second end of the first voltage divider resistor 41 is connected between the second voltage divider resistor 44 and the third voltage divider resistor 45. The third voltage divider resistor 45 is grounded. The second voltage divider resistor 44 is used for being connected to a first voltage member.
[0064] The second voltage divider resistor 44 and the third voltage divider resistor 45 are connected in series, the second end of the first voltage divider resistor 41 is connected between the second voltage divider resistor 44 and the third voltage divider resistor 45, the third voltage divider resistor 45 is grounded, and the second voltage divider resistor 44 is used for being connected to the first voltage member. In this case, after the second voltage divider resistor 44 is connected to the first voltage member, the first voltage member may provide a voltage for the second voltage divider resistor 44, and after the voltage is divided by the second voltage divider resistor 44, the divided voltage is transferred to the voltage comparison module 42, so that the voltage comparison module 42 has a certain voltage. However, the divided voltage may not cause a corresponding action of the voltage comparison module 42. However, by providing the second voltage divider resistor 44, after a voltage of the first voltage member is divided by the second voltage divider resistor 44, a voltage at the input end of the voltage comparison module 42 may be pulled up, and the voltage comparison module 42 is prevented from identifying serial port cables from 0 V. That is, by providing the second voltage divider resistor 44 and the third voltage divider resistor 45, the voltage at the input end of the voltage comparison module 42 can be pulled up. This prevents the voltage comparison module 42 from identifying the serial port cable from 0 V.
[0065] If the second voltage divider resistor 44 and the third voltage divider resistor 45 are not provided, after a functional cable is plugged into the interface, the voltage increases from 0 V; when the voltage increases to be within the range from the first voltage value to the second voltage value, the switching circuit 30 may be switched; before the voltage increases to be within the range from the first voltage value to the second voltage value, or when the voltage exceeds the second voltage value, the switching circuit 30 may also be switched. However, the switching circuit 30 is switched to be connected to different functional circuits during different switching, which may lead to a problem of misjudgment of the detection circuit 40, and may also cause a problem that the video cable is connected to the serial port circuit 60 when the video cable is connected to the interface.
[0066] It is to be noted that the first voltage member is shown as VDD1 in FIG. 2.
[0067] Further, in some embodiments, the first end of the second voltage divider resistor 44 is used for being connected to the first voltage member, the second end of the second voltage divider resistor 44 is connected to the first end of the third voltage divider resistor 45, and the second end of the third voltage divider resistor 45 is grounded; and the second end of the first voltage divider resistor 41 is connected between the second end of the second voltage divider resistor 44 and the first end of the third voltage divider resistor 45, and is connected to the second end of the second voltage divider resistor 44 and the first end of the third voltage divider resistor 45. In this way, it is convenient to connect the devices in the detection circuit 40.
[0068] Further, in the embodiment of the present application, when the detection circuit 40 includes the first voltage divider resistor 41, the second voltage divider resistor 44, and the third voltage divider resistor 45, an example with the functional cable being an HDMI cable and the serial port cable being a serial port cable is illustrated specifically. The turn-on voltage of the first control switch 43 is 1 V, the first voltage value is 0.1 V, and the second voltage value is 0.2 V. In the case that the functional cable plugged into the interface is an HDMI cable, the voltage on the first plug-in pin 11 is 5 V, and a voltage divided by the first voltage divider resistor 41, the second voltage divider resistor 44, and the third voltage divider resistor 45 is greater than the turn-on voltage of the first control switch 43, i.e., greater than 1 V, so that the first control switch 43 may be turned on; moreover, the divided voltage is not within the range from the first voltage value to the second voltage value, i.e., not within the range of 0.1-0.2 V, and the divided voltage is greater than the second voltage value, i.e., greater than 0.2 V, so that the video interface circuit 50 is connected to the first plug-in pin 11 through the first control switch 43, and then the video interface circuit 50 realizes the corresponding function. When no HDMI cable is plugged into the interface, due to the presence of the second voltage divider resistor 44 and the third voltage divider resistor 45, and since the second voltage divider resistor 44 is connected to the first voltage member, the voltage on the voltage comparison module 42 is also not within the range from the first voltage value to the second voltage value, i.e., the divided voltage is not within 0.1-0.2 V, and the divided voltage is less than the turn-on voltage of the first control switch 43, i.e., less than 1 V. In this way, when the HDMI cable is plugged or unplugged, the switching circuit 30 is prevented from acting, and the problem that the switching circuit 30 is connected to the serial port circuit 60 when the HDMI cable is plugged or unplugged is avoided. When the functional cable plugged into the interface is a serial port cable, as a plug-in port 100 of the serial port cable is connected to an identification resistor 103, a voltage of the first voltage member falls within 0.1 V-0.2 V after being divided by the first voltage divider resistor 41, the second voltage divider resistor 44, the third voltage divider resistor 45, and the identification resistor 103, the switching circuit 30 is switched to be connected to the serial port circuit 60; moreover, the divided voltage may not cause the first control switch 43 to be turned on, so that the problem that the video interface circuit 50 is connected to the serial port cable is avoided.
[0069] Further, in the above example, when the voltage of the first voltage member is 3.3 V, and a field-effect transistor of model 2N7002 is selected as the first control switch 43, the resistance value of the first voltage divider resistor 41 is 100 kilo-ohms, the resistance value of the second voltage divider resistor 44 is 500 kilo-ohms, and the resistance value of the third voltage divider resistor 45 is 200 kilo-ohms. In this case, if no functional cable is plugged into the interface, the divided voltage is 3.3*200 / (500+200)=0.94. At this time, the first control switch 43 is not turned on, and the voltage comparison module 42 also outputs the first signal. If a VGA cable is plugged into the interface, the detection output is 5 V, the voltage at the voltage division point is set to be x, then (5−x) / 100−(3.3−x) / 500=x / 200, and x=3.33V may be obtained. At this time, the first control switch 43 is turned on, and the voltage comparison module 42 also outputs the first signal. If the serial port cable is plugged into the interface, a ground pin 102 in the plug-in port 100 of the serial port cable is connected to the identification resistor 103, the resistance value of the identification resistor 103 is 24 kilo-ohms, in this case, the voltage at the voltage division point is set to be x, then (3.3−x) / 500=x / (100+24)+x / 200, and x=0.12V may be obtained. At this time, the first control switch 43 is not turned on, the voltage comparison module 42 outputs the second signal, and the serial port circuit 60 is connected to the serial port cable.
[0070] Further, in some embodiments, the detection circuit 40 may further include a fourth voltage divider resistor 46. A first end of the fourth voltage divider resistor 46 is used for being connected to a second voltage member, and a second end of the fourth voltage divider resistor 46 is electrically connected to the first control switch 43.
[0071] When the first end of the fourth voltage divider resistor 46 is connected to the second voltage member, the second voltage member may provide a voltage to the fourth voltage divider resistor 46, the fourth voltage divider resistor 46 may divide the voltage, and the divided voltage is a high voltage. If the fourth voltage divider resistor 46 is not provided, after the voltage comparison module 42 outputs the first signal, a level transmitted to the video interface circuit 50 will be the first signal, which may cause the video interface circuit 50 to fail to operate normally. That is, by providing the fourth voltage divider resistor 46, the fourth voltage divider resistor 46 may play the role of pulling the second signal, so that the level transmitted to the video interface circuit 50 is pulled up, thereby facilitating operation of the video interface circuit 50.
[0072] It is to be noted that the second voltage member is shown as VDD2 in FIG. 2.
[0073] Further, in the embodiment of the present application, the first control switch 43 may include a field effect transistor. The field effect transistor includes a source electrode, a gate electrode, and a drain electrode. The source electrode is connected to the gate electrode, the gate electrode is grounded, and the drain electrode is electrically connected to the second end of the fourth voltage divider resistor 46 and the video interface circuit 50. When a voltage transmitted to the field effect transistor is greater than the turn-on voltage, the source electrode and the drain electrode may be connected, so that the video interface circuit 50 is connected to the first plug-in pin 11, and the video interface circuit 50 realizes the corresponding function.
[0074] Of course, in the embodiments of the present application, the first control switch 43 may also be other types of switches, for example, the first control switch 43 is an insulated gate bipolar transistor (IGBT). The specific types of the first control switch 43 are not limited here in the embodiments of the present application.
[0075] Further, in some embodiments, the detection circuit 40 may further include a fifth voltage divider resistor 47. A first end of the fifth voltage divider resistor 47 is used for being connected to a third voltage member, the output end of the first voltage comparator 421 and the output end of the second voltage comparator 422 are connected to a second end of the fifth voltage divider resistor 47, and the second end of the fifth voltage divider resistor 47 is electrically connected to the switching circuit 30.
[0076] When the first end of the fifth voltage divider resistor 47 is connected to the third voltage member, the output end of the first voltage comparator 421 and the output end of the second voltage comparator 422 are connected to the second end of the fifth voltage divider resistor 47, and the second end of the fifth voltage divider resistor 47 is electrically connected to the switching circuit 30, the third voltage member may provide a voltage to the fifth voltage divider resistor 47, the voltage is divided by the fifth voltage divider resistor 47, and the divided voltage is a high voltage, thereby facilitating operation of the switching circuit 30. If the fifth voltage divider resistor 47 is not provided, after the voltage comparison module 42 outputs the second signal, a level transmitted to the switching circuit 30 is the second signal, which may still not reach the level value for operation of the switching circuit 30, and the switching circuit 30 may fail to operate normally. That is, by providing the fifth voltage divider resistor 47, the fifth voltage divider resistor 47 may play the role of pulling the second signal, so that the level transmitted to the switching circuit 30 is pulled up, thereby facilitating the operation of the switching circuit 30
[0077] It is to be noted that the third voltage member is shown as VDD3 in FIG. 2.
[0078] Further, in some embodiments, the detection circuit 40 may also include a filter circuit 48. A first end of the filter circuit 48 is connected to the second end of the fifth voltage divider resistor 47, a second end of the filter circuit 48 is electrically connected to the switching circuit 30. The filter circuit 48 is used for filtering out clutter in the signal transmitted to the switching circuit 30.
[0079] The first end of the filter circuit 48 is connected to the second end of the fifth voltage divider resistor 47, and the second end of the filter circuit 48 is electrically connected to the switching circuit 30. After the signal of the voltage is transmitted to the filter circuit 48, because the voltage or the current is essentially an electromagnetic wave, the electromagnetic wave has clutter or the waveform has burrs. The filter circuit 48 may filter out the clutter or eliminate the burrs of the waveform when the signal of the voltage passes through the filter circuit 48, so that the signal transmitted to the switching circuit 30 has few clutter or burrs, which is favorable for the switching circuit 30 to perform different actions according to the transmitted signal.
[0080] Further, in some embodiments, the filter circuit 48 may include a filter resistor 481 and a filter capacitor 482. The filter resistor 481 is connected to the second end of the fifth voltage divider resistor 47, the filter resistor 481 is connected to the filter capacitor 482 and the switching circuit 30, and the filter capacitor 482 is grounded.
[0081] The filter resistor 481 is connected to the second end of the fifth voltage divider resistor 47, the filter resistor 481 is connected to the filter capacitor 482 and the switching circuit 30, and the filter capacitor 482 is grounded. In this way, the filter resistor 481 and the filter capacitor 482 form an RC filter circuit 48, and the RC filter circuit 48 has better filtering performance, so that the signal transmitted to the switching circuit 30 has few clutter or burrs, which is favorable for the switching circuit 30 to perform different actions according to the transmitted signal.
[0082] It is to be noted that in the embodiment of the present application, the number of filter resistors 481 and the number of filter capacitors 482 may be set according to the actual needs. For example, one filter resistor 481 and one filter capacitor 482 are provided. For another example, two filter resistors 481 and two filter capacitors 482 are provided. The number of filter resistors 481 and the number of filter capacitors 482 are not limited here in the embodiments of the present application.
[0083] Further, in the embodiment of the present application, a first end of the filter resistor 481 is connected to the second end of the fifth voltage divider resistor 47, a second end of the filter resistor 481 is connected to the switching circuit 30 and a first end of the filter capacitor 482, and a second end of the filter capacitor 482 is grounded, so that it is convenient to connect the filter resistor 481 and the filter capacitor 482.
[0084] Further, in some embodiments, the switching circuit 30 may include a second control switch 31 and a third control switch 32. The second control switch 31 and the third control switch 32 are connected to the first plug-in pin 11 and the second plug-in pin 12, respectively. The second control switch 31 is connected to the video interface circuit 50 and the serial port circuit 60. The third control switch 32 is connected to the video interface circuit 50 and the serial port circuit 60. In the case that the functional cable is a video cable, the second control switch 31 and the third control switch 32 are both connected to the video interface circuit 50. In the case that the functional cable is a serial port cable, the second control switch 31 and the third control switch 32 are both connected to the serial port circuit 60.
[0085] The second control switch 31 and the third control switch 32 are connected to the first plug-in pin 11 and the second plug-in pin 12, respectively, the second control switch 31 is connected to the video interface circuit 50 and the serial port circuit 60, and the third control switch 32 is connected to the video interface circuit 50 and the serial port circuit 60. The second control switch 31 and the third control switch 32 will be connected to different functional circuits when different functional cables are connected to the interface. Specifically, in the case that the functional cable is a video cable, the second control switch 31 and the third control switch 32 are both connected to the video interface circuit 50, so that the video interface circuit 50 is connected to the first plug-in pin 11, and the video interface circuit 50 can realize the corresponding function. In the case that the functional cable is a serial port cable, the second control switch 31 and the third control switch 32 are both connected to the serial port circuit 60, so that the serial port circuit 60 is connected to the first plug-in pin 11, and the serial port circuit 60 can realize the corresponding function. That is, by providing the second control switch 31 and the third control switch 32, it is convenient to switch the switching circuit 30 correspondingly.
[0086] Further, in some embodiments, the second control switch 31 may include a first input end 311, a second output end 312, and a third output end 313. The third control switch 32 includes a second input end 321, a fourth output end 322, and a fifth output end 323. The first input end 311 is connected to the first plug-in pin 11, and the second input end 321 is connected to the second plug-in pin 12. The second output end 312 and the fourth output end 322 are connected to the video interface circuit 50. The third output end 313 and the fifth output end 323 are connected to the serial port circuit 60. In the case that the functional cable is a video cable, the first input end 311 is connected to the second output end 312, and the second input end 321 is connected to the fourth output end 322, so that the second control switch 31 and the third control switch 32 are both connected to the video interface circuit 50. In the case that the functional cable is a serial port cable, the first input end 311 is connected to the third output end 313, and the second input end 321 is connected to the fifth output end 323, so that the second control switch 31 and the third control switch 32 are both connected to the serial port circuit 60. In this way, it is convenient to connect the second control switch 31 and the third control switch 32.
[0087] Further, in the embodiment of the present application, the second control switch 31 and the third control switch 32 may each include either an analog switch or a single-pole double-throw relay, so that the second control switch 31 and the third control switch 32 are easy to obtain. Moreover, as the analog switch and the single-pole double-throw relay are low in cost, the cost of the interface is lower, which is conducive to realizing the widespread promotion of the interface.
[0088] Further, in some embodiments, the switching circuit 30 may also include a controller. The controller is electrically connected to the second control switch 31 and the third control switch 32, and the controller is used for controlling switching of the second control switch 31 and the third control switch 32.
[0089] When the switching circuit 30 includes the controller, and the controller is electrically connected to the second control switch 31 and the third control switch 32, the controller may control the second control switch 31 and the third control switch 32, so that both of the second control switch 31 and the third control switch 32 are connected to the video interface circuit 50, or both of the second control switch 31 and the third control switch 32 are connected to the serial port circuit 60. That is, by providing the controller, it is convenient to control the second control switch 31 and the third control switch 32.
[0090] It is to be noted that the controller may be connected to the voltage comparison module 42. When the voltage comparison module 42 outputs the first signal, the controller controls the second control switch 31 and the third control switch 32 to be connected to the video interface circuit 50. When the voltage comparison module 42 outputs the second signal, the controller controls the second control switch 31 and the third control switch 32 to be connected to the serial port circuit 60.
[0091] Further, in the embodiment of the present application, the controller may be a control chip.
[0092] It is to be noted that in the embodiment of the present application, when the interface is a video interface, the first plug-in pin 11 and the second plug-in pin 12 may be two pins corresponding to an address code.
[0093] In the embodiment of the present application, the switching circuit 30 is connected to the first plug-in pin 11 and the second plug-in pin 12, both of the video interface circuit 50 and the serial port circuit 60 are electrically connected to the switching circuit 30, the detection circuit 40 is electrically connected to the third plug-in pin 20, and the detection circuit 40 is electrically connected to the switching circuit 30 and the video interface circuit 50. After the functional cable is plugged into the interface, the first plug-in pin 11 and the third plug-in pin 20 may be in contact with the functional cable, so that the detection circuit 40 can determine the type of the functional cable. After the type of the functional cable is determined, the switching circuit 30 may be connected to different functional circuits, so that different functional circuits realize corresponding functions through the functional cable. The detection circuit 40 includes the first voltage divider resistor 41, the voltage comparison module 42, and the first control switch 43. The first end of the first voltage divider resistor 41 is connected to the third plug-in pin 20, the second end of the first voltage divider resistor 41 is electrically connected to the voltage comparison module 42 and the first control switch 43, and the first control switch 43 is electrically connected to the video interface circuit 50. When the voltage comparison module 42 outputs different signals, it may be determined that different functional cables are connected to the interface, and the types of the functional cables are determined. When the functional cable is determined as a video cable, the switching circuit 30 is connected to the video interface circuit 50, and the switching circuit 30 is also connected to the first plug-in pin 11 and the second plug-in pin 12, the video interface circuit 50 may realize the video function through the video cable. When the functional cable is determined as a serial port cable, the switching circuit 30 is connected to the serial port circuit 60, and the switching circuit 30 is also connected to the first plug-in pin 11 and the second plug-in pin 12, the serial port circuit 60 may realize the serial port function through the serial port cable. That is, in the embodiment of the present application, by providing the switching circuit 30, the detection circuit 40, the video interface circuit 50, and the serial port circuit 60 in the interface, after different functional cables are plugged into the interface, the interface can realize different functions. This is equivalent to achieving the effect of functional multiplexing for an interface. Therefore, when the interface is applied to the server, the number of interfaces can be saved, so that the server can provide more installation space, and more devices can be installed on the server. This is conducive to diversifying the functions of the server.
[0094] An embodiment of the present application provides a functional cable to be plugged into the interface according to any one of the above embodiments. As shown in FIG. 3, the functional cable includes a plug-in port 100. A wiring pin 101 and a ground pin 102 are provided in the plug-in port 100, the ground pin 102 is connected to an identification resistor 103. The identification resistor 103 is used for enabling the detection circuit 40 to identify the functional cable, and the functional cable is determined as a serial port cable when being identified by the detection circuit 40. In the case that the plug-in port 100 is plugged in the interface, the wiring pin 101 is in contact with the first plug-in pin 11, and the ground pin 102 is in contact with the third plug-in pin 20.
[0095] The wiring pin 101 and the ground pin 102 are provided in the plug-in port 100, and the ground pin 102 is connected to the identification resistor 103. Thus, when the functional cable is plugged into the interface, the wiring pin 101 is in contact with the first plug-in pin 11, and the ground pin 102 is in contact with the third plug-in pin 20. The identification resistor 103, as well as the first voltage divider resistor 41, the second voltage divider resistor 44, and the third voltage divider resistor of the interface may divide a voltage, so that the divided voltage is within the range from the first voltage value to the second voltage value. Accordingly, the detection circuit 40 may identify the functional cable as a serial port cable. That is, by providing the identification resistor 103, it is convenient for the detection circuit 40 to determine the functional cable as a serial port cable.
[0096] Further, in the embodiment of the present application, the resistance value of the identification resistor 103 may be 24 kilo-ohms. Of course, the resistance value of the identification resistor 103 may also be other values, as long as the voltage divided by the identification resistor 103 is within the range from the first voltage value to the second voltage value. For example, the resistance value of the identification resistor 103 is 50 kilo-ohms. By adjusting the first voltage divider resistor 41, the second voltage divider resistor 44, and the third voltage divider resistor 45, the voltage divided by the identification resistor 103, the first voltage divider resistor 41, the second voltage divider resistor 44, and the third voltage divider resistor 45 is within the range from the first voltage value to the second voltage value. The specific resistance value of the identification resistor 103 is not limited here in the embodiments of the present application.
[0097] It is to be noted that in the embodiment of the present application, two wiring pins 101 may be provided, namely an RXD pin and a TXD pin.
[0098] An embodiment of the present application provides a server. The server includes a housing and the interface according to any one of the above embodiments. The interface is provided on the housing.
[0099] In the embodiment of the present application, the switching circuit 30 is connected to the first plug-in pin 11 and the second plug-in pin 12, the video interface circuit 50 and the serial port circuit 60 are electrically connected to the switching circuit 30, the detection circuit 40 is electrically connected to the third plug-in pin 20, and the detection circuit 40 is electrically connected to the switching circuit 30 and the video interface circuit 50. Accordingly, after the functional cable is plugged into the interface, the first plug-in pin 11 and the third plug-in pin 20 may be in contact with the functional cable, so that the detection circuit 40 can determine the type of the functional cable. After the type of the functional cable is determined, the switching circuit 30 may be connected to different functional circuits, so that different functional circuits realize corresponding functions through the functional cable. The detection circuit 40 includes the first voltage divider resistor 41, the voltage comparison module 42, and the first control switch 43. The first end of the first voltage divider resistor 41 is connected to the third plug-in pin 20, the second end of the first voltage divider resistor 41 is electrically connected to the voltage comparison module 42 and the first control switch 43, and the first control switch 43 is electrically connected to the video interface circuit 50. Accordingly, when the voltage comparison module 42 outputs different signals, it may be determined that different functional cables are connected to the interface, and the types of the functional cables are determined. When the functional cable is determined as a video cable, the switching circuit 30 is connected to the video interface circuit 50, and the switching circuit 30 is also connected to the first plug-in pin 11 and the second plug-in pin 12, the video interface circuit 50 may realize the video function through the video cable. When the functional cable is determined as a serial port cable, the switching circuit 30 is connected to the serial port circuit 60, and the switching circuit 30 is also connected to the first plug-in pin 11 and the second plug-in pin 12, the serial port circuit 60 may realize the serial port function through the serial port cable. That is, in the embodiment of the present application, by providing the switching circuit 30, the detection circuit 40, the video interface circuit 50, and the serial port circuit 60 in the interface, after different functional cables are plugged into the interface, the interface can realize different functions. This is equivalent to achieving the effect of functional multiplexing for an interface. Therefore, when the interface is applied to the server, the number of interfaces can be saved, the server can provide more installation space, and more devices can be installed on the server, which is conducive to diversifying the functions of the server.
[0100] Further, in some embodiments, the detection circuit 40 may include the second voltage divider resistor 44 and the third voltage divider resistor 45, the server is provided with a first voltage member, and the second voltage divider resistor 44 is connected to the first voltage member. The detection circuit 40 may also include the fourth voltage divider resistor 46, the server is provided with a second voltage member, and the fourth voltage divider resistor 46 is connected to the second voltage member. The detection circuit 40 may further include the fifth voltage divider resistor 47, the server is provided with a third voltage member, and the fifth voltage divider resistor 47 is connected to the third voltage member.
[0101] The first voltage member may continuously provide a voltage to the second voltage divider resistor 44, the second voltage member may continuously provide a voltage to the fourth voltage divider resistor 46, and the third voltage member may continuously provide a voltage to the fifth voltage divider resistor 47.
[0102] It is to be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on differences from other embodiments, and it is sufficient to refer to each embodiment for identical and similar portions of each embodiment.
[0103] Although optional embodiments of the embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include the optional embodiments as well as all changes and modifications that fall within the scope of the embodiments of the present application.
[0104] Finally, it is also to be noted that in this document, relational terms such as “first” and “second” are used merely to distinguish one entity from another, and do not necessarily require or imply any such actual relationship or order between these entities. Moreover, the terms “including,”“comprising,” or any other variant thereof, are intended to cover non-exclusive inclusions, so that an article or terminal device including a set of elements includes not only those elements, but also other elements that are not expressly enumerated, or elements that are inherent to such an article or terminal device. Without further limitation, an element defined by the statement “including a . . . ” does not exclude the existence of another identical element in the article or terminal device including the element.
[0105] The technical solutions provided by the present application are described in detail above, and specific examples are used herein to illustrate the principles and implementations of the present application. Moreover, based on the principles and implementations of the present application, those skilled in the art will make changes in the specific implementations and the scope of the application. To sum up, the contents of this specification should not be construed as limitation of the present application.
Claims
1. An interface, applied to a server, comprising: a first plug-in pin, a second plug-in pin, a third plug-in pin, a switching circuit, a detection circuit, a video interface circuit, and a serial port circuit;wherein the switching circuit is connected to both of the first plug-in pin and the second plug-in pin, the video interface circuit and the serial port circuit are both electrically connected to the switching circuit; the detection circuit is electrically connected to the third plug-in pin, and the detection circuit is electrically connected to both of the switching circuit and the video interface circuit; the first plug-in pin, the second plug-in pin, and the third plug-in pin are all used for being connected to a functional cable, and the detection circuit is used for determining the type of the functional cable in response to the functional cable being connected to the interface;wherein the detection circuit comprises: a first voltage divider resistor, a voltage comparison module, and a first control switch, wherein a first end of the first voltage divider resistor is connected to the third plug-in pin, a second end of the first voltage divider resistor is electrically connected to the voltage comparison module and the first control switch, the first control switch is electrically connected to the video interface circuit, and the voltage comparison module is electrically connected to the switching circuit;in response to the functional cable being connected to the interface, the voltage comparison module outputs a signal to the switching circuit to determine whether the functional cable is a video cable or a serial port cable, enabling the switching circuit to be connected to the video interface circuit or the serial port circuit;wherein the voltage comparison module comprises a first voltage comparator and a second voltage comparator, the second end of the first voltage divider resistor is connected to both of the first voltage comparator and the second voltage comparator, the first voltage comparator and the second voltage comparator are both electrically connected to the switching circuit, a voltage threshold of the first voltage comparator is a first voltage value, a voltage threshold of the second voltage comparator is a second voltage value, and the first voltage value is less than the second voltage value;in response to a voltage input to the first voltage comparator and a voltage input to the second voltage comparator both being less than the first voltage value, both of the first voltage comparator and the second voltage comparator output a first signal, the first signal is output to the switching circuit, and the switching circuit is connected to the video interface circuit;in response to the voltage input to the first voltage comparator and the voltage input to the second voltage comparator both being greater than the second voltage value, both of the first voltage comparator and the second voltage comparator output a second signal, the first signal is output to the switching circuit, and the switching circuit is connected to the video interface circuit; andin response to the voltage input to the first voltage comparator being greater than the first voltage value and the voltage input to the second voltage comparator being less than the second voltage value, the first voltage comparator outputs the second signal, the second voltage comparator outputs the first signal, the second signal is output to the switching circuit, and the switching circuit is connected to the serial port circuit.
2. The interface according to claim 1, wherein in response to the functional cable being connected to the interface and a first signal being output to the switching circuit from the voltage comparison module, the functional cable is a video cable, and the switching circuit is connected to the video interface circuit; andin response to the functional cable being connected to the interface and a second signal being output to the switching circuit from the voltage comparison module, the functional cable is a serial port cable, and the switching circuit is connected to the serial port circuit.
3. (canceled)4. The interface according to claim 1, wherein a non-inverting input end of the first voltage comparator and an inverting input end of the second voltage comparator are both connected to the second end of the first voltage divider resistor, and an output end of the first voltage comparator and an output end of the second voltage comparator are both electrically connected to the switching circuit.
5. The interface according to claim 1, wherein the first voltage value is 0.1 V, and the second voltage value is 0.2 V.
6. The interface according to claim 1, wherein the detection circuit further comprises a second voltage divider resistor and a third voltage divider resistor;wherein the second voltage divider resistor and the third voltage divider resistor are connected in series, the second end of the first voltage divider resistor is connected between the second voltage divider resistor and the third voltage divider resistor, the third voltage divider resistor is grounded, and the second voltage divider resistor is used for being connected to a first voltage member.
7. The interface according to claim 6, wherein a first end of the second voltage divider resistor is used for being connected to the first voltage member, a second end of the second voltage divider resistor is connected to a first end of the third voltage divider resistor, and a second end of the third voltage divider resistor is grounded;wherein the second end of the first voltage divider resistor is connected between the second end of the second voltage divider resistor and the first end of the third voltage divider resistor, and is connected to the second end of the second voltage divider resistor and the first end of the third voltage divider resistor.
8. The interface according to claim 1, wherein the detection circuit further comprises a fourth voltage divider resistor, a first end of the fourth voltage divider resistor is used for being connected to a second voltage member, and a second end of the fourth voltage divider resistor is electrically connected to the first control switch.
9. The interface according to claim 8, wherein the first control switch comprises a field effect transistor;wherein the field effect transistor comprises a source electrode, a gate electrode and a drain electrode, the source electrode being connected to the gate electrode, the gate electrode being grounded, and the drain electrode being electrically connected to the second end of the fourth voltage divider resistor and the video interface circuit.
10. The interface according to claim 1, wherein the detection circuit further comprises a fifth voltage divider resistor, a first end of the fifth voltage divider resistor is used for being connected to a third voltage member, an output end of the first voltage comparator and an output end of the second voltage comparator are both connected to a second end of the fifth voltage divider resistor, and the second end of the fifth voltage divider resistor is electrically connected to the switching circuit.
11. The interface according to claim 10, wherein the detection circuit further comprises a filter circuit, a first end of the filter circuit is connected to the second end of the fifth voltage divider resistor, a second end of the filter circuit is electrically connected to the switching circuit, and the filter circuit is used for filtering out clutter in signals transmitted to the switching circuit.
12. The interface according to claim 11, wherein the filter circuit comprises a filter resistor and a filter capacitor;wherein the filter resistor is connected to the second end of the fifth voltage divider resistor, the filter resistor is connected to both of the filter capacitor and the switching circuit, and the filter capacitor is grounded.
13. The interface according to claim 12, wherein a first end of the filter resistor is connected to the second end of the fifth voltage divider resistor, a second end of the filter resistor is connected to the switching circuit and a first end of the filter capacitor, and a second end of the filter capacitor is grounded.
14. The interface according to claim 2, wherein the switching circuit comprises a second control switch and a third control switch;wherein the second control switch and the third control switch are connected to the first plug-in pin and the second plug-in pin, respectively, the second control switch is connected to the video interface circuit and the serial port circuit, and the third control switch is connected to the video interface circuit and the serial port circuit;in response to the functional cable being a video cable, the second control switch and the third control switch are both connected to the video interface circuit; andin response to the functional cable being a serial port cable, the second control switch and the third control switch are both connected to the serial port circuit.
15. The interface according to claim 14, wherein the second control switch comprises a first input end, a second output end, and a third output end; the third control switch comprises a second input end, a fourth output end, and a fifth output end;wherein the first input end is connected to the first plug-in pin, the second input end is connected to the second plug-in pin, the second output end and the fourth output end are connected to the video interface circuit, and the third output end and the fifth output end are connected to the serial port circuit;in response to the functional cable being a video cable, the first input end is connected to the second output end, and the second input end is connected to the fourth output end, enabling both of the second control switch and the third control switch to be connected to the video interface circuit; andin response to the functional cable being a serial port cable, the first input end is connected to the third output end, and the second input end is connected to the fifth output end, enabling both of the second control switch and the third control switch to be connected to the serial port circuit.
16. The interface according to claim 14, wherein the second control switch and the third control switch each comprise either an analog switch or a single-pole double-throw relay.
17. The interface according to claim 14, wherein the switching circuit further comprises a controller that is electrically connected to the second control switch and the third control switch, and the controller is used for controlling switching of the second control switch and the third control switch.
18. The interface according to claim 1, wherein the functional cable being connected to the interface comprises a plug-in port, a wiring pin and a ground pin being provided in the plug-in port, the ground pin is connected to an identification resistor, and the identification resistor is used for enabling the detection circuit to identify the functional cable, in response to the functional cable being identified by the detection circuit, the functional cable is determined as a serial port cable;in response to the plug-in port being plugged into the interface, the wiring pin is in contact with the first plug-in pin, and the ground pin is in contact with the third plug-in pin.
19. The interface according to claim 18, wherein a resistance value of the identification resistor is 24 kilo-ohms.
20. The interface according to claim 1, wherein the interface is provided on a housing of the server.
21. The interface according to claim 20, wherein the detection circuit comprises a second voltage divider resistor and a third voltage divider resistor;the server is provided with a first voltage member, and the second voltage divider resistor is connected to the first voltage member;the detection circuit further comprises a fourth voltage divider resistor, the server is provided with a second voltage member, and the fourth voltage divider resistor is connected to the second voltage member; andthe detection circuit further comprises a fifth voltage divider resistor, the server is provided with a third voltage member, and the fifth voltage divider resistor is connected to the third voltage member
