Interface detection circuit
By designing interface detection circuits, it supports the use of multiple interfaces of 5G dongle-like devices, solving the problems of interface type mismatch and insufficient power supply, and expanding application scenarios.
Patent Information
- Application Number
- CN202510557613.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-29
- Publication Date
- 2025-08-15
AI Technical Summary
The USB interface type of existing 5G dongle-like devices does not match the main control device, resulting in limited application scenarios and insufficient power supply capacity, which cannot meet the high power consumption needs.
An interface detection circuit is designed, including a first connection interface, a second connection interface, a switching module and a detection module, and controls data transmission and power supply through detection signals, and supports the simultaneous use of two interfaces.
The application scenarios of terminal devices have been expanded, the problem of interface type mismatch is solved, and the problem of insufficient power consumption is solved through power supply through multiple interfaces.
Smart Images

Figure CN120492391A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic circuits, and in particular to an interface detection circuit. Background Art
[0002] Currently, 5G dongle devices, such as 5G data cards, generally utilize a single USB Type-C port to connect to a host device. However, in practice, many host devices, such as vending machines, medical equipment, and industrial computers, primarily utilize USB Type-A interfaces. Connecting 5G dongles with a single USB Type-C port requires an adapter cable. Furthermore, the power supply capacity of USB Type-A interfaces is limited. For example, USB 2.0 only supports 5V / 500mA, which may not meet the power consumption requirements of 5G dongle applications. Furthermore, many consumer devices, such as laptops, only have USB Type-C ports. Therefore, the application scenarios of 5G dongle devices with only a single USB Type-C port are limited. Therefore, existing technologies still need to be improved and enhanced. Summary of the Invention
[0003] The object of the present invention is to provide an interface detection circuit to solve the problems raised in the above background technology.
[0004] To achieve the above object, the present invention provides the following technical solution: an interface detection circuit, comprising a circuit module and a main control chip, wherein the circuit module comprises a first connection interface, a second connection interface, a switching module and a detection module;
[0005] The detection module is electrically connected to the first connection interface and the second connection interface, and is configured to output a first detection signal when both the first connection interface and the second connection interface are connected to an external device;
[0006] The switching module is electrically connected to the detection module, the first connection interface and the second connection interface respectively, and is used to connect the first connection interface to the main control chip in the terminal device to transmit data signals according to the first detection signal.
[0007] Preferably, the detection module includes:
[0008] a first detection unit, the first detection unit being electrically connected to the first connection interface and configured to output a first level signal when the first connection interface is connected to a peripheral device, or output a second level signal when the first connection interface is connected to a peripheral device;
[0009] a second detection unit electrically connected to the second connection interface, configured to output a third level signal when the second connection interface is connected to a peripheral device, or output a fourth level signal when the second connection interface is not connected to a peripheral device;
[0010] A logic output unit is connected to the first detection unit, the second detection unit and the switching module, and is used to output the first detection signal according to the first level signal and the third level signal.
[0011] Preferably, the logic output unit is further configured to output the first detection signal according to the first level signal and the fourth level signal, or output the second detection signal according to the second level signal and the third level signal;
[0012] The switching module is further configured to connect the second connection interface to the main control chip according to a second detection signal to transmit the data signal.
[0013] Preferably, the first detection unit and the second detection unit are further connected to a main control chip in the terminal device respectively;
[0014] The first detection unit is further configured to output the first level signal or the second level signal according to the control signal output by the main control chip;
[0015] The second detection unit is further configured to output the third level signal or the fourth level signal according to the control signal output by the main control chip.
[0016] Preferably, the logic output unit is also connected to the main control chip, and is used to output the first detection signal or the second detection signal to the main control chip.
[0017] Preferably, the first detection unit includes a first switch tube, a second switch tube, a first capacitor, a second capacitor, a third capacitor, a first resistor, a second resistor, a third resistor, a fourth resistor and a fifth resistor.
[0018] Preferably, the second detection unit includes a third switch tube, a fourth switch tube, a fourth capacitor, a fifth capacitor, a sixth capacitor, a sixth resistor, a seventh resistor, an eighth resistor, a ninth resistor and a tenth resistor.
[0019] Compared with the prior art, the present invention has the following beneficial effects:
[0020] An interface detection circuit proposed in the present invention enables a terminal device to support two interfaces by configuring the interface detection circuit, thereby expanding the application scenarios of the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1Schematic diagram of the circuit structure of the present invention.
[0022] Figure 2 Schematic diagram of the detection module structure of the present invention. DETAILED DESCRIPTION
[0023] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0024] See also Figures 1 to 2 The present invention provides a technical solution: an interface detection circuit, comprising a circuit module and a main control chip. The main control chip is connected to the detection circuit module and can be used to receive data signals input through the circuit, as well as detection signals fed back by the interface detection circuit. It should be noted that the terminal device in the present invention can be a 5G dongle-type device such as a 5G data card.
[0025] The circuit module includes a first connection interface, a second connection interface, a switching module and a detection module; the first connection interface may be a Type-A USB interface, and the second connection interface may be a Type-C USB interface. The detection module is electrically connected to the first connection interface and the second connection interface, and is used to output a first detection signal when the first connection interface and the second connection interface are both connected to a peripheral device; the switching module is electrically connected to the detection module, the first connection interface and the second connection interface, respectively, and is used to connect the first connection interface to the main control chip in the terminal device according to the first detection signal to transmit a data signal.
[0026] The detection module includes: a first detection unit, the first detection unit is electrically connected to the first connection interface, and is used to output a first level signal when the first connection interface is connected to a peripheral device, or output a second level signal when the first connection interface is connected to a peripheral device; a second detection unit, the second detection unit is electrically connected to the second connection interface, and is used to output a third level signal when the second connection interface is connected to a peripheral device, or output a fourth level signal when the second connection interface is not connected to a peripheral device; and a logic output unit, the logic output unit is connected to the first detection unit, the second detection unit and the switching module, and is used to output the first detection signal according to the first level signal and the third level signal.
[0027] In some embodiments, the logic output unit can also be used to output the first detection signal based on the first level signal and the fourth level signal, or to output the second detection signal based on the second level signal and the third level signal; the switching module is also used to connect the second connection interface with the main control chip according to the second detection signal to transmit the data signal.
[0028] In some embodiments, the first detection unit and the second detection unit can also be respectively connected to the main control chip in the terminal device; the first detection unit is also used to output the first level signal or the second level signal according to the control signal output by the main control chip; the second detection unit is also used to output the third level signal or the fourth level signal according to the control signal output by the main control chip.
[0029] The logic output unit is also connected to the main control chip, and is used to output the first detection signal or the second detection signal to the main control chip.
[0030] The first detection unit includes a first switch tube, a second switch tube, a first capacitor, a second capacitor, a third capacitor, a first resistor, a second resistor, a third resistor, a fourth resistor, and a fifth resistor. The first end of the first switch tube is connected to the first connection interface, the second end of the first switch tube is connected to the logic output unit, the third end of the first switch tube is connected to the first end of the second switch tube via the fifth resistor, the second end of the second switch tube is grounded, the third end of the second switch tube is connected to the first port of the main control chip, one end of the third resistor, one end of the fourth resistor, and one end of the third capacitor are all connected to the third end of the second switch tube, the other end of the third resistor is connected to the first connection interface, the other end of the fourth resistor is grounded, the other end of the third capacitor is grounded, one end of the first resistor and one end of the first capacitor are both connected to the first end of the first switch tube, the other end of the first resistor and the other end of the first capacitor are both connected to the third end of the first switch tube, one end of the second resistor and one end of the second capacitor are both connected to the second end of the first switch tube, and the other end of the second resistor and the other end of the second capacitor are both grounded.
[0031] The second detection unit includes a third switch tube, a fourth switch tube, a fourth capacitor, a fifth capacitor, a sixth capacitor, a sixth resistor, a seventh resistor, an eighth resistor, a ninth resistor, and a tenth resistor. A first end of the third switch tube is connected to the second connection interface, a second end of the third switch tube is connected to the logic output unit, a third end of the third switch tube is connected to the first end of the fourth switch tube via the tenth resistor, a second end of the fourth switch tube is grounded, a third end of the fourth switch tube is connected to the first port of the main control chip, one end of the eighth resistor, one end of the ninth resistor, and one end of the sixth capacitor are all connected to the third end of the fourth switch tube, the other end of the eighth resistor is connected to the second connection interface, the other end of the ninth resistor is grounded, the other end of the sixth capacitor is grounded, one end of the sixth resistor and one end of the fourth capacitor are both connected to the first end of the third switch tube, the other end of the sixth resistor and the other end of the fourth capacitor are both connected to the third end of the third switch tube, one end of the seventh resistor and one end of the fifth capacitor are both connected to the second end of the third switch tube, and the other end of the seventh resistor and the other end of the fifth capacitor are both grounded.
[0032] In the present invention, when two connection interfaces are connected to peripheral devices at the same time, for example, the first connection interface access module is connected to the main control device, and the second connection interface is connected to the power adapter; at this time, the detection module and the switching module can control the first connection interface to connect to the main control chip for data transmission, and the power adapter connected to the second connection interface can provide power to the terminal device, thereby avoiding the problem of insufficient power consumption of the terminal device during data signal transmission. That is, in this application, by setting an interface detection circuit, the terminal device can support two interfaces. When the terminal device communicates data with the main control device through one interface, it can also connect to the power adapter through another interface for auxiliary power supply, so as to broaden the application scenarios of the terminal device. In various embodiments of the present invention, each functional unit can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0033] While embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions, and variations may be made to these embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the appended claims and their equivalents.
Claims
1. An interface detection circuit, comprising a circuit module and a main control chip, characterized in that: The circuit module includes a first connection interface, a second connection interface, a switching module and a detection module; The detection module is electrically connected to the first connection interface and the second connection interface, and is configured to output a first detection signal when both the first connection interface and the second connection interface are connected to an external device; The switching module is electrically connected to the detection module, the first connection interface and the second connection interface respectively, and is used to connect the first connection interface to the main control chip in the terminal device to transmit data signals according to the first detection signal.
2. The interface detection circuit according to claim 1, wherein: The detection module includes: a first detection unit, the first detection unit being electrically connected to the first connection interface and configured to output a first level signal when the first connection interface is connected to a peripheral device, or output a second level signal when the first connection interface is connected to a peripheral device; a second detection unit electrically connected to the second connection interface, configured to output a third level signal when the second connection interface is connected to a peripheral device, or output a fourth level signal when the second connection interface is not connected to a peripheral device; A logic output unit is connected to the first detection unit, the second detection unit and the switching module, and is used to output the first detection signal according to the first level signal and the third level signal.
3. The interface detection circuit according to claim 2, wherein: The logic output unit is further configured to output the first detection signal according to the first level signal and the fourth level signal, or output the second detection signal according to the second level signal and the third level signal; The switching module is further configured to connect the second connection interface to the main control chip according to a second detection signal to transmit the data signal.
4. The interface detection circuit according to claim 2, wherein: The first detection unit and the second detection unit are also respectively connected to the main control chip in the terminal device; The first detection unit is further configured to output the first level signal or the second level signal according to the control signal output by the main control chip; The second detection unit is further configured to output the third level signal or the fourth level signal according to the control signal output by the main control chip.
5. The interface detection circuit according to claim 2, wherein: The logic output unit is also connected to the main control chip, and is used to output the first detection signal or the second detection signal to the main control chip.
6. The interface detection circuit according to claim 2, characterized in that: The first detection unit includes a first switch tube, a second switch tube, a first capacitor, a second capacitor, a third capacitor, a first resistor, a second resistor, a third resistor, a fourth resistor and a fifth resistor.
7. The interface detection circuit according to claim 2, characterized in that: The second detection unit includes a third switch tube, a fourth switch tube, a fourth capacitor, a fifth capacitor, a sixth capacitor, a sixth resistor, a seventh resistor, an eighth resistor, a ninth resistor and a tenth resistor.