USB switch module and USB device
By using a resistor unit to receive voltage signals in the USB switch module to control the switch to switch communication lines, the problem of high recognition and switching costs of USB devices in the prior art is solved, and low-cost recognition of USB peripherals and computer modules and communication line switching is realized. .
Patent Information
- Application Number
- CN202323438227.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-14
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2033-12-14
AI Technical Summary
Existing USB switch modules and USB devices need to add additional IO control devices when identifying and switching USB peripherals and computer modules, resulting in higher costs.
Design a USB switch module, using a resistor unit to receive voltage signals when the first interface is inserted into an external computer module, output a high-level signal to the switch detection terminal, and switch the control terminal to the second communication line to realize the computer module and the main control Data interaction of the chip; when plugging into the USB peripheral, the low-level signal is output, switch to the first communication line, and the data interaction between the USB peripheral and the main control chip is realized. Only the lower-priced resistor unit can be used to realize the identification and Switching of communication lines.
The cost investment of USB switch modules and USB devices is reduced, and the additional costly IO control equipment is avoided, and the identification of USB peripherals and computer modules and communication line switching is realized.
Smart Images

Figure CN221960540U_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of switch circuits, and in particular to a USB switch module and a USB device. Background Art
[0002] As the interconnection between electronic devices becomes more and more convenient, the connection and communication between different electronic devices can be achieved through corresponding interfaces.
[0003] For a USB device with only one USB interface, the USB device needs to burn the firmware through the USB interface. Since the USB device has only one USB interface, when the USB device has a USB peripheral, when the corresponding computer module is connected next time, an additional IO control device needs to be added to the USB device to switch the line in order to identify the corresponding computer module. The additional IO control device increases the cost. Utility Model Content
[0004] The embodiments of the present application provide a USB switch module and a USB device, which can solve the problem of high cost investment in existing USB switch modules and USB devices and reduce the cost investment in USB switch modules and USB devices.
[0005] An embodiment of the present application provides a USB switch module, the USB switch module comprising a first switch, a first interface, a first communication line, a second communication line and a resistor unit;
[0006] The static end of the first switch is used to connect to the first end of the main control chip, the dynamic end of the first switch is connected to the first end of the first communication line or the first end of the second communication line, the second end of the first communication line and the second end of the second communication line are both connected to the first interface, and the first interface is used to insert an external USB peripheral or an external computer module;
[0007] The first end of the resistor unit is used to be connected to the detection end of the first switch, the second end of the resistor unit is grounded, and the third end of the resistor unit is connected to the first interface. When the first interface is connected to an external computer module, the third end of the resistor unit receives a voltage signal so that the first end outputs a high-level signal to the detection end of the first switch. The first switch is used to control its active end to switch to be connected to the first end of the second communication line when the detection end receives a high-level signal.
[0008] Further, the resistance unit includes a first resistor and a second resistor;
[0009] The first end of the first resistor and the first end of the second resistor are used to be connected to the detection end of the first switch;
[0010] The second end of the first resistor is connected to the first interface, and the second end of the first resistor is used to be connected to a first power supply pin of an external computer module;
[0011] A second terminal of the second resistor is grounded.
[0012] Furthermore, the resistance value of the first resistor is 5.1 KΩ, and the resistance value of the second resistor is 10 KΩ.
[0013] Further, the first interface includes a first communication pin and a second communication pin;
[0014] The first communication pin is connected to the second end of the first communication line, and the first communication pin is used to connect to the communication pin of an external USB peripheral;
[0015] The second communication pin is connected to the second end of the second communication line, and the second communication pin is used to connect to the communication pin of an external computer module.
[0016] Further, the first communication line includes a first positive communication line and a first negative communication line, and the second communication line includes a second positive communication line and a second negative communication line;
[0017] The movable end of the first switch is connected to the first end of the first positive communication line and the first end of the first negative communication line, or the movable end of the first switch is connected to the first end of the second positive communication line and the first end of the second negative communication line;
[0018] The second end of the first positive communication line and the second end of the first negative communication line are connected to the first communication pin in the first interface;
[0019] A second end of the second positive communication line and a second end of the second negative communication line are connected to the second communication pin in the first interface.
[0020] Further, the first interface includes a second power supply pin;
[0021] The second power supply pin is connected to the second end of the first resistor, and the second power supply pin is used to be connected to the first power supply pin of an external computer module.
[0022] Furthermore, the first interface includes a ground pin.
[0023] This embodiment also provides a USB device, including a main control chip and the aforementioned USB switch module;
[0024] The first end of the main control chip is connected to the first end of the USB switch module;
[0025] The second end of the USB switch module is grounded, and the third end of the USB switch module is used to insert an external USB peripheral or an external computer module;
[0026] The main control chip is used to communicate with an external USB peripheral device or an external computer module through a communication link corresponding to the USB switch module.
[0027] Furthermore, the first end of the main control chip is connected to the static end of the first switch of the USB switch module.
[0028] Further, the main control chip includes a third communication pin;
[0029] The main control chip is connected to the static end of the first switch of the USB switch module through the third communication pin.
[0030] The present application provides a USB switch module and a USB device, which have the following beneficial effects:
[0031] When an external computer module is inserted into the first interface through the resistor unit, its third end will receive the voltage signal transmitted by the computer module, so that the first end of the resistor unit outputs a high-level signal to the detection end of the first switch. The first switch controls its active end to switch to the first end of the second communication line based on the high-level signal received from the first end of the resistor unit by its detection end, so that the computer module can exchange data with the main control chip through the second communication line, avoiding the addition of expensive IO control devices. Only by adding lower-priced resistor units can the identification of USB peripherals and computer modules and the switching of communication lines be realized, reducing the cost investment of USB switch modules. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 This is a circuit schematic diagram of a USB device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0033] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments.
[0034] Figure 1 A circuit schematic diagram of a USB device provided in an embodiment of the present application is given, such as Figure 1As shown, the USB device 1 includes a USB switch module 11, and the USB switch module 11 includes a first switch 111, a first interface 112, a first communication line (1D+, 1D-), a second communication line (2D+, 2D-) and a resistor unit 113. The static end of the first switch 111 is used to connect to the first end of the main control chip 12. It should be noted that the main control chip 12 is the control chip of the USB device itself, not an additional chip. The dynamic end of the first switch 111 is connected to the first end of the first communication line (1D+, 1D-) or the first end of the second communication line (2D+, 2D-), and the second end of the first communication line (1D+, 1D-) and the second end of the second communication line (2D+, 2D-) are both connected to the first interface 112, and the first interface 112 is used to insert an external USB peripheral 2 or an external computer module 3. The first end of the resistor unit 113 is used to connect to the detection end (S pin) of the first switch 111, the second end of the resistor unit 113 is grounded, and the third end of the resistor unit 113 is connected to the first interface 112. When the first interface 112 is connected to the external computer module 3, the third end of the resistor unit 113 receives a voltage signal so that the first end outputs a high-level signal to the detection end (S pin) of the first switch 111. The first switch is used to control its (first switch 111) active end to switch to connect to the first end of the second communication line (2D+, 2D-) when its detection end (S pin) receives a high-level signal.
[0035] The USB peripheral device 2 may be a slave module with a USB interface, such as a 4G module, a USB flash drive, a mouse, etc. The computer module 3 may be a host PC module with a USB interface, which may be used to perform corresponding firmware burning operations on the main control chip 12 .
[0036] The resistor unit 113 is also used for when the first interface 112 is connected to the external USB peripheral 2, its third end causes its first end to output a low-level signal to the detection end (S pin) of the first switch 111 based on the fact that no voltage signal is received. The first switch 111 is also used for when its detection end (S pin) receives a low-level signal transmitted from the first end of the resistor unit 113, and controls its (first switch 111) active end to switch to the first end connected to the first communication line (1D+, 1D-), so that the USB peripheral 2 can exchange data with the main control chip 12 through the first communication line (1D+, 1D-).
[0037] As mentioned above, when the external computer module 3 is inserted into the first interface 112 through the resistor unit 113, its third end will receive the voltage signal transmitted by the computer module 3, so that the first end of the resistor unit 113 outputs a high-level signal to the detection end of the first switch 111. The first switch 111 controls its active end to switch to the first end of the second communication line (2D+, 2D-) based on the high-level signal received from the first end of the resistor unit 113 at its detection end, so that the computer module 3 can exchange data with the main control chip 12 through the second communication line (2D+, 2D-), avoiding the additional expensive IO control device. Only by adding the lower-priced resistor unit 113, the identification of the USB peripheral 2 and the computer module 3 and the switching of the communication line can be realized, reducing the cost investment of the USB switch module 11. In addition, when the USB peripheral 2 is inserted into the first interface 112 through the resistance unit 113, its third end outputs a low-level signal to the detection end of the first switch 111 based on the fact that no voltage signal is received. The first switch 111 controls its active end to switch to the first end of the first communication line (1D+, 1D-) based on the low-level signal received by its detection end from the first end of the resistance unit 113, so that the USB peripheral 2 can exchange data with the main control chip 12 through the first communication line (1D+, 1D-), avoiding the additional expensive IO control device. Only the lower-priced resistance unit 113 is added to realize the identification of the USB peripheral 2 and the computer module 3 and the switching of the communication line, thereby reducing the cost investment of the USB switch module 11.
[0038] The resistor unit 113 includes a first resistor R1 and a second resistor R2. The first end of the first resistor R1 and the first end of the second resistor R2 are used to connect to the detection end of the first switch 111. The second end of the first resistor R1 is connected to the first interface 112, and the second end of the first resistor R1 is used to connect to the first power supply pin of the external computer module 3. The second end of the second resistor R2 is grounded. The first interface 112 includes a first communication pin, a second communication pin and a second power supply pin. The first interface includes two first communication pins and two second communication pins. The first communication line includes a first positive communication line (1D+) and a first negative communication line (1D-), and the second communication line includes a second positive communication line (2D+) and a second negative communication line (2D-). The moving end of the first switch is connected to the first end of the first positive communication line (1D+) and the first end of the first negative communication line (1D-), or the moving end of the first switch is connected to the first end of the second positive communication line (2D+) and the first end of the second negative communication line (2D-). The second end of the first positive communication line (1D+) and the second end of the first negative communication line (1D-) are connected to the first communication pin in the first interface, and the first communication pin is used to connect to the communication pin of the external USB peripheral 2. The second end of the second positive communication line (2D+) and the second end of the second negative communication line (2D-) are connected to the second communication pin in the first interface, and the second communication pin is used to connect to the communication pin of the external computer module 3. The second power supply pin is connected to the second end of the first resistor R1, and the second power supply pin is used to connect to the first power supply pin of the external computer module 3.
[0039] When the first interface 112 is inserted into the external computer module 3, the computer module 3 has a voltage output, which is connected to the second power supply pin in the first interface 112 through the first power supply pin, and the second power supply pin in the first interface 112 of the USB switch module 11 will receive a voltage signal, so the second end of the first resistor R1 can receive a voltage signal, and after passing through the first resistor R1, the first end of the first resistor R1 is connected to the detection end of the first switch 111, so the detection end of the first switch 111 will receive a high-level signal. When the first interface 112 is inserted into the USB peripheral 2, the USB peripheral 2 does not have its own voltage output, so the second end of the first resistor R1 does not receive a voltage signal, and the first end of the first resistor R1 is connected to the detection end of the first switch 111 and the first end of the second resistor R2, and the second end of the second resistor R2 is grounded. At this time, the detection end of the first switch 111 is equivalent to grounding, that is, a low-level signal is received. The first switch 111 is used to switch the communication link of the USB switch module 11 to the second communication line (2D+, 2D-) when the detection end thereof receives a high-level signal, so that the main control chip 12 communicates with the external computer module 3 through the second communication line (2D+, 2D-). The first switch 111 is used to switch the communication link of the USB switch module 11 to the first communication line (1D+, 1D-) when the detection end thereof receives a low-level signal, so that the main control chip 12 communicates with the external USB peripheral 2 through the first communication line (1D+, 1D-).
[0040] It should be noted that when the first interface 112 of the USB switch module 11 is unplugged from the computer module 3, the second power supply pin of the first interface 112 is disconnected from the first power supply pin of the computer module 3, and therefore the first resistor R1 no longer receives a voltage signal. At this time, the detection end of the first switch 111 has already received a low-level signal. Therefore, after the computer module 3 is unplugged, the first switch 111 controls its active end to switch to connect to the first end of the first communication line (1D+, 1D-).
[0041] As described above, only the relatively low-priced resistor unit 113 is added to realize the identification of the USB peripheral device 2 and the computer module 3 and the switching of the communication line, thereby avoiding the additional expensive IO control device and reducing the cost investment of the USB switch module 11.
[0042] In one embodiment, the resistance of the first resistor R1 is 5.1KΩ, and the resistance of the second resistor R2 is 10KΩ. When the first interface 112 is inserted into the external computer module 3, the computer module 3 has a 5V voltage output, which is connected to the second power supply pin in the first interface 112 through the first power supply pin, and the second power supply pin in the first interface 112 of the USB switch module 11 will receive a 5V voltage signal, so the second end of the first resistor R1 can receive a voltage signal, and after the voltage is divided by the first resistor R1 and the second resistor R2, the first end of the first resistor R1 is connected to the first end of the first switch 111, so the detection end (S pin) of the first switch 111 will receive a voltage signal of about 3.3V, that is, a high level signal. When the first interface 112 is inserted into the USB peripheral 2, since the USB peripheral 2 does not have its own voltage output, the second end of the first resistor R1 does not receive a voltage signal. The first end of the first resistor R1 is connected to the first end of the main control chip 12 and the first end of the second resistor R2, and the second end of the second resistor R2 is grounded. At this time, the first end of the first switch 111 is equivalent to being grounded, that is, receiving a 0V voltage signal, that is, a low-level signal.
[0043] It should be noted that when the external computer module 3 is unplugged, the detection end of the first switch 111 is pulled low, and the first switch 111 controls 1 so that its active end is switched to be connected to the first end of the first communication line (1D+, 1D-).
[0044] In one embodiment, the first interface 112 includes a ground pin.
[0045] As described above, when the external computer module 3 is inserted into the first interface 112 through the resistor unit 113, its third end will receive the voltage signal transmitted by the computer module 3, so that the first end of the resistor unit 113 outputs a high-level signal to the detection end of the first switch 11. The first switch 111 controls its (first switch 111) active end to switch to the first end of the second communication line (2D+, 2D-) based on the high-level signal received from the first end of the resistor unit 113 at its detection end, so that the computer module 3 can exchange data with the main control chip 12 through the second communication line (2D+, 2D-), avoiding the additional expensive IO control device. Only by adding the lower-priced resistor unit 113, the identification of the USB peripheral 2 and the computer module 3 and the switching of the communication line can be realized, reducing the cost investment of the USB switch module 11.
[0046] The embodiment of the present application further provides a USB device 1, including a main control chip 12 and the above-mentioned USB switch module 11. The USB device 1 can be a device with a main control chip 12, such as a microcontroller, an industrial control display, a medical display, and an access control display. In this embodiment, the USB device 1 is described as a microcontroller.
[0047] The first end of the main control chip 12 is connected to the first end of the USB switch module 11. The second end of the USB switch module 11 is grounded, and the third end of the USB switch module 11 is used to insert an external USB peripheral 2 or an external computer module 3. When the third end of the USB switch module 11 is inserted into the external computer module 3, it communicates with the external USB peripheral 2 or the external computer module 3 through the corresponding communication link. When the first interface 112 of the USB switch module 11 is inserted into the computer module 3, it switches to the communication link corresponding to the second communication line (2D+, 2D-), so that the inserted computer module 3 can exchange data with the main control chip 12 through the second communication line (2D+, 2D-). When the first interface 112 of the USB switch module 11 is inserted into the USB peripheral 2 or no device is inserted, it switches to the communication link corresponding to the first communication line (1D+, 1D-), so that the inserted USB peripheral 2 can exchange data with the main control chip 12 through the first communication line (1D+, 1D-). As described above, the inserted device can be identified only by the USB switch module 11, avoiding the need to add expensive IO control devices. The identification of the USB peripheral 2 and the computer module 3 and the switching of the communication line can be achieved by simply adding the lower-priced resistor unit 113, thus reducing the cost investment of the USB device 1.
[0048] The first end of the main control chip 12 is connected to the static end of the first switch 111 of the USB switch module 11. The main control chip 12 includes a third communication pin. The main control chip 12 is connected to the static end of the first switch 111 of the USB switch module 11 through the third communication pin. The main control chip 12 is connected to the static end of the first switch 111 through the third communication pin. When the dynamic end of the first switch is switched to the corresponding communication link, the main control chip 12 communicates with the external USB peripheral 2 or the external computing module 3 through the corresponding communication link. Exemplarily, when the first interface 112 of the USB switch module 11 is inserted into the external computer module 3, the computer module 3 has a voltage output, and is connected to the second power supply pin in the first interface 112 through the first power supply pin, then the second power supply pin in the first interface 112 of the USB switch module 11 will receive a voltage signal, so the second end of the first resistor R1 can receive the voltage signal, after passing through the first resistor R1, based on the first end of the first resistor R1, it is connected to the detection end of the first switch 111, so the detection end of the first switch 111 will receive a high-level signal, when the detection end of the first switch 111 receives the high-level signal, its active end is controlled to switch to the first end of the second communication line (2D+, 2D-), so the USB switch module 11 at this time transmits data through the communication link corresponding to the second communication line (2D+, 2D-), so that the external computer module 3 can exchange data with the main control chip 12 through the communication link corresponding to the second communication line (2D+, 2D-), thereby realizing the corresponding function of the computer module 3, such as the firmware burning function. When the first interface 112 is inserted into the USB peripheral 2, the second end of the first resistor R1 does not receive a voltage signal because the USB peripheral 2 does not have its own voltage output. The first end of the first resistor R1 is connected to the first end of the main control chip 12 and the first end of the second resistor R2, and the second end of the second resistor R2 is grounded. At this time, the first end of the first switch 111 is equivalent to being grounded, that is, receiving a low-level signal. When the detection end of the first switch 111 receives a low-level signal, it switches to the communication link corresponding to the first communication line (1D+, 1D-) for data transmission, so that the external USB peripheral 2 can exchange data with the main control chip 12 through the first communication line (1D+, 1D-), thereby realizing the corresponding functions of the USB peripheral 2, such as receiving audio and video data sent by the USB device 1.
[0049] In one embodiment, the USB device 1 is taken as a microcontroller as an example for explanation, and the microcontroller has only one USB interface, namely the aforementioned first interface 112. When an external 4G module (i.e., USB peripheral 2) needs to be connected, when the external 4G module is inserted into the first interface 112 through the aforementioned USB device 1, the external 4G module does not have its own voltage output, so through the setting of the first resistor R1 and the second resistor R2, the detection end (i.e., S pin) of the first switch 111 receives a low-level signal, and the first switch 111 controls its active end to switch to the first end connected to the first communication line (1D+, 1D-), so the external 4G module can communicate with the main control chip 12 through the first communication line (1D+, 1D-). The external 4G module can receive data information sent by the main control chip 12 based on the first communication line (1D+, 1D-) for subsequent communication use. In addition, the microcontroller also has a burning mode. In the burning mode, the first interface 112 needs to act as an interface of the burning program, and data transmission cannot be performed through the first communication line (1D+, 1D-), so a second communication line (2D+, 2D-) for burning program is provided. When the first interface 112 is connected to the computer module 3, based on the computer module 3 with a built-in voltage output, and connected to the second power supply pin in the first interface 112 through the built-in first power supply pin, the voltage signal is divided by the first resistor R1 and the second resistor R2, so that the detection end (i.e., S pin) of the first switch 111 connected to the first end of the first resistor R1 receives a high level signal, and the first switch 111 controls its active end to switch to the first end connected to the second communication line (2D+, 2D-), so the computer module 3 can communicate with the main control chip 12 through the second communication line (2D+, 2D-). The computer module 3 can transmit the corresponding burning program to the main control chip 12 based on the second communication line (2D+, 2D-) to realize the burning function. As described above, by setting the first resistor R1, the second resistor R2 and the second power supply pin, the 4G module and the computer module 3 can be identified, so that the communication link can be switched according to the first switch 111 of the microcontroller itself. Compared with the existing method that requires additional IO control devices to perform identification and switching control, this embodiment only adds a lower-priced resistor unit 113 to achieve the identification of the USB peripheral 2 and the computer module 3 and the switching of the communication line, thereby reducing the cost investment of the USB device 1.
[0050] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0051] In the present invention, unless otherwise clearly specified and limited, the terms "set", "install", "connect", "connect", "fix" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, a direct connection, or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0052] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present utility model, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0053] It should be noted that, in the present utility model, unless otherwise clearly specified and limited, the first feature being "above" or "below" the second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, the first feature being "above", "above" and "above" the second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. The first feature being "below", "below" and "below" the second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0054] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes within the technical scope disclosed by the present invention according to the technical scheme and the utility model concept of the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A USB switch module, characterized in that: It includes a first switch, a first interface, a first communication line, a second communication line and a resistance unit; The static end of the first switch is used to connect to the first end of the main control chip, the dynamic end of the first switch is connected to the first end of the first communication line or the first end of the second communication line, the second end of the first communication line and the second end of the second communication line are both connected to the first interface, and the first interface is used to insert an external USB peripheral or an external computer module; The first end of the resistor unit is used to be connected to the detection end of the first switch, the second end of the resistor unit is grounded, and the third end of the resistor unit is connected to the first interface. When the first interface is connected to an external computer module, the third end of the resistor unit receives a voltage signal so that the first end outputs a high-level signal to the detection end of the first switch. The first switch is used to control its active end to switch to be connected to the first end of the second communication line when the detection end receives a high-level signal.
2. The USB switch module according to claim 1, characterized in that: The resistor unit includes a first resistor and a second resistor; The first end of the first resistor and the first end of the second resistor are used to be connected to the detection end of the first switch; The second end of the first resistor is connected to the first interface, and the second end of the first resistor is used to be connected to a first power supply pin of an external computer module; A second terminal of the second resistor is grounded.
3. The USB switch module according to claim 2, characterized in that: The resistance value of the first resistor is 5.1KΩ, and the resistance value of the second resistor is 10KΩ.
4. The USB switch module according to claim 1, characterized in that: The first interface includes a first communication pin and a second communication pin; The first communication pin is connected to the second end of the first communication line, and the first communication pin is used to connect to the communication pin of an external USB peripheral; The second communication pin is connected to the second end of the second communication line, and the second communication pin is used to connect to the communication pin of an external computer module.
5. The USB switch module according to claim 4, characterized in that: The first communication line includes a first positive communication line and a first negative communication line, and the second communication line includes a second positive communication line and a second negative communication line; The movable end of the first switch is connected to the first end of the first positive communication line and the first end of the first negative communication line, or the movable end of the first switch is connected to the first end of the second positive communication line and the first end of the second negative communication line; The second end of the first positive communication line and the second end of the first negative communication line are connected to the first communication pin in the first interface; A second end of the second positive communication line and a second end of the second negative communication line are connected to the second communication pin in the first interface.
6. The USB switch module according to claim 2, characterized in that: The first interface includes a second power supply pin; The second power supply pin is connected to the second end of the first resistor, and the second power supply pin is used to be connected to the first power supply pin of an external computer module.
7. The USB switch module according to claim 1, characterized in that: The first interface includes a ground pin.
8. A USB device, characterized in that: It comprises a main control chip and a USB switch module as described in any one of claims 1 to 7; The first end of the main control chip is connected to the first end of the USB switch module; The second end of the USB switch module is grounded, and the third end of the USB switch module is used to insert an external USB peripheral or an external computer module; The main control chip is used to communicate with an external USB peripheral device or an external computer module through a communication link corresponding to the USB switch module.
9. The USB device according to claim 8, characterized in that: The first end of the main control chip is connected to the static end of the first switch of the USB switch module.
10. The USB device according to claim 9, characterized in that: The main control chip includes a third communication pin; The main control chip is connected to the static end of the first switch of the USB switch module through the third communication pin.
