USB function switching device

By designing a USB function switching device, the signal transmission path is automatically switched using the USB host control module and the switching module, which solves the problem that USB interfaces cannot be switched in the existing technology and realizes signal transmission and function expansion between different devices.

CN223566144UActive Publication Date: 2025-11-18WUHAN GUIDE SENSMART TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing electronic devices only have one USB port, which cannot enable communication switching between different types of devices, thus failing to meet diverse usage scenarios and device requirements.

Method used

A USB function switching device is designed, comprising a USB host control module and a USB switching module, which can automatically switch signal transmission paths according to the information and type of peripheral devices, including hubs and ports, and switch signal transmission paths by identifying device protocols and types.

Benefits of technology

It enables automatic switching of USB signal transmission paths between different devices, meeting diverse usage scenarios and device requirements, and quickly expanding functionality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223566144U_ABST
    Figure CN223566144U_ABST
Patent Text Reader

Abstract

The utility model relates to a USB (Universal Serial Bus) function switching device, which comprises a USB host control module and a USB switching module, the USB switching module is connected with the USB host control module; after the USB host control module is powered on and started up, a communication signal output by the USB host control module is transmitted to first peripheral equipment through a first transmission signal channel of the USB switching module; when a second peripheral device is connected, the USB host control module controls the USB switching module to complete switching of the signal transmission channel according to device information of the second peripheral device, so that a communication signal output by the USB host control module is transmitted to the second peripheral device through a second signal transmission channel of the USB switching module. According to the application, the automatic switching of the USB communication signal transmission path can be carried out according to the information and type of the accessed peripheral equipment, so that the USB signal transmission requirements of different use scenes and different equipment can be met, and the function expansion can be quickly realized.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The utility model relates to circuit structure design technical field especially, and it is a kind of USB function switching device. BACKGROUND

[0002] In prior art, due to the use scene of expansion electronic device, the host of certain electronic device needs to be connected to other different electronic devices through USB interface, such as connecting sound wave detection module through USB interface on the host of infrared thermal imager.

[0003] But since some electronic devices are only provided with one USB interface, after the USB interface is connected to other different types of electronic devices, the switching of corresponding channel cannot be realized, and thus the communication between different electronic devices cannot be realized through the USB interface. UTILITY MODEL CONTENT

[0004] The utility model aims at providing a kind of USB function switching device, it can be whether the automatic switching of USB communication signal transmission path according to the information and type of connected peripheral device, so that it can meet the USB signal transmission demand of different use scenes and different devices, to realize the function expansion quickly.

[0005] To realize the above-mentioned purpose, the utility model provides the following technical scheme:

[0006] A kind of USB function switching device is provided, it includes:

[0007] USB host control module;

[0008] USB switching module, it is connected the USB host control module;

[0009] After the power-on boot of the USB host control module, the communication signal outputted by it is transmitted to first peripheral device through the first transmission signal channel of the USB switching module;

[0010] When the second peripheral device is connected, the USB host control module controls the USB switching module to complete the switching of signal transmission channel according to the device information of the second peripheral device, so that the communication signal outputted by the USB host control module is transmitted to the second peripheral device through the second signal transmission channel of the USB switching module.

[0011] Preferably, the USB function switching device further includes:

[0012] Hub, for connecting the USB switching module and first peripheral device;

[0013] And port, for connecting the hub and second peripheral device.

[0014] Preferably, the hub comprises a signal input end, a first signal output end and a second signal output end, and the signal output end of the first signal transmission channel is connected through the signal input end, the first peripheral device is connected through the first signal output end, and the port is connected through the second signal output end.

[0015] Preferably, when the second peripheral device accessed through the device information of the second peripheral device is a first type terminal with CC protocol and incapable of USB signal transmission, the USB host control module serves as a master device and the second peripheral device serves as a slave device; the communication signal output by the USB host control module is transmitted to the second peripheral device through the first signal transmission channel, the signal input end and the second signal output end.

[0016] Preferably, when the second peripheral device accessed through the device information of the second peripheral device is a second type terminal with CC protocol and capable of USB signal transmission, the USB host control module outputs a low-level signal, and the chip of the USB switching module outputs a high-level signal, so that the communication signal output by the USB host control module is transmitted to the second peripheral device through the second signal transmission channel.

[0017] Preferably, after the USB host control module is powered on, it outputs a high-level signal, and the chip of the USB switching module outputs a low-level signal, so that the communication signal output by the USB host control module is transmitted through the first signal transmission channel.

[0018] Preferably, the USB function switching device further comprises a controller connected to the USB host control module, for completing USB mounting according to the control of the USB host control module, identifying the type of the second peripheral device, and generating a channel switching signal according to the type of the second peripheral device.

[0019] The USB switching module completes switching of the signal transmission channel according to the channel switching signal, so that the communication signal output by the USB host control module is transmitted to the second peripheral device through the second signal transmission channel.

[0020] Preferably, when the second peripheral device accessed through the device information of the second device is a terminal without CC protocol, the USB host control module controls the controller to complete USB mounting and identify the type of the second peripheral device.

[0021] And when it is confirmed that the second peripheral device is a third type terminal without CC protocol and incapable of USB signal transmission, the communication signal output by the USB host control module is transmitted to the second peripheral device through the first signal transmission channel, the signal input end and the second signal output end.

[0022] Preferably, when confirming that the second peripheral device 200 is a fourth type terminal without the CC protocol and capable of USB signal transmission, the controller generates a channel switching signal, and the USB host control module controls the USB switching module to complete the switching of the signal transmission channel according to the channel switching signal, so as to open the second signal transmission channel, and the communication signal output by the USB host control module is transmitted to the second peripheral device through the second signal transmission channel.

[0023] Preferably, after the USB switching module completes the switching of the signal transmission channel, the USB host control module controls the power supply of the hub.

[0024] Compared with the prior art, the USB function switching device has the following beneficial effects:

[0025] The USB function switching device can automatically switch the USB communication signal transmission channel according to the information and type of the connected peripheral device, so as to meet the USB signal transmission requirements of different use scenarios and different devices, and quickly realize function expansion. BRIEF DESCRIPTION OF DRAWINGS

[0026] Figure 1 It is a whole structure diagram of the USB function switching device in the utility model;

[0027] Figure 2 It is a circuit diagram of the USB switching module in the utility model;

[0028] Figure 3 It is a circuit diagram of the recognition unit in the utility model;

[0029] Figure 4 It is a circuit diagram of the USB switching module for realizing the communication signal switching function in the utility model;

[0030] Figure 5 It is a circuit diagram of the hub in the utility model;

[0031] Figure 6 It is a circuit diagram of the power supply control of the hub in the utility model. DETAILED DESCRIPTION

[0032] The technical solutions in the embodiments of the utility model will be clearly and completely described below with reference to the drawings in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, rather than all the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by those skilled in the art without creative labor fall within the protection scope of the utility model.

[0033] Embodiment 1

[0034] As Figure 1 shown, the embodiment provides a USB function switching device, which comprises:

[0035] a USB host control module 1, in the embodiment, the USB host control module 1 comprises a host SoC (System on Chip), and the application processor of the host SoC comprises an ARM series processor, such as an ARM Cortex-M series processor, etc.

[0036] a USB switching module 2 connected to the USB host control module 1;

[0037] a hub 3 connected to the USB switching module 2, in the embodiment, the hub 3 comprises a HUB chip (such as a CH334R chip, etc.);

[0038] a port 5 connected to the hub 3, and the port 5 comprises a Type-C interface;

[0039] after the USB host control module 1 is powered on, and the port 5 is suspended (i.e. not connected to other devices), the USB host control module 1 serves as a master device, and the communication signal output by the USB host control module 1 is transmitted to a first external device 100 connected to the hub 3 through a first signal transmission channel of the USB switching module 2, so as to realize signal interaction between the USB host control module 1 and the first external device 100;

[0040] when the port 5 is connected to a second external device 200, the USB host control module 1 acquires device information of the second external device 200, and controls the USB switching module 2 to complete switching of the signal transmission channel according to the device information, so that the communication signal output by the USB host control module 1 is transmitted to the second external device 200 through a second signal transmission channel of the USB switching module 2, so as to realize signal interaction between the USB host control module 1 and the second external device 200; the device information comprises whether the second external device 200 is equipped with a CC protocol (Creative Commons license), whether the second external device 200 is equipped with a master-slave mode, and whether the second external device 200 can perform USB signal transmission, etc.

[0041] Specifically, as Figure 2 shown, the USB switching module 2 in the embodiment comprises a chip U5 (preferably a CH442E chip), which is connected to D+ and D- pins of the USB host control module 1 through the 4th pin and the 6th pin, and receives a level signal USB_DEL_1 output by the USB host control module 1 through the 1st pin;

[0042] As Figure 4 shown, when the USB host control module 1 is powered on and the port 5 is suspended, the level signal USB_DEL_1 is high, and the chip U5 outputs a low-level signal USB_DEL, the communication signal output by the USB host control module 1 is input through the 4th pin and the 6th pin of the chip U5 and output through the 2nd pin (S1B) and the 8th pin (S1C), and the 4th pin, the 6th pin, the 2nd pin and the 8th pin of the chip U5 constitute the first signal transmission channel.

[0043] Further, as Figure 1 shown, the hub 3 includes a signal input end 31, a first signal output end 32 and a second signal output end 33, and the signal output end of the first signal transmission channel (for example, the 8th pin (S1C) of the chip U5) is connected to the signal input end 31, the first signal output end 32 is connected to the first peripheral device 100 (such as a sound wave detection module), and the second signal output end 33 is connected to the port 5, and preferably, the first signal output end 32 can be connected to the first peripheral device 100 through a port such as a USB interface 4.

[0044] Further, when the port 5 is connected to the second peripheral device 200, as Figure 3 shown, the USB host control module 1 can obtain the device information of the second peripheral device 200 through a recognition unit such as a PD protocol chip D9, the PD protocol chip D9 includes a FUSB302BMPX chip, and specifically, the USB host control module 1 is connected to the PD protocol chip D9 through an I2C bus, and when the port 5 is connected to the second peripheral device 200, the CC1 and CC2 signals generated thereby are transmitted to the PD protocol chip D9, and the PD protocol chip D9 reads the CC protocol state to obtain the device information of the second peripheral device 200.

[0045] When it is confirmed through the device information that the second peripheral device 200 accessed is a first type terminal (such as a fast charging adapter with CC protocol and unable to transmit USB signals) with CC protocol and unable to transmit USB signals, the USB host control module 1 still acts as a master device, and at this time, the second peripheral device 200 acts as a slave device; the communication signal output by the USB host control module 1 is transmitted to the second peripheral device 200 through the first signal transmission channel, the signal input end 31 and the second signal output end 33, so as to realize the signal interaction of the USB host control module 1 and the second peripheral device 200;

[0046] When the second external device 200 connected through the device information is a second type terminal with CC protocol and capable of USB signal transmission (such as a terminal with CC protocol and capable of USB signal transmission, such as a PC computer, etc.), as shown in Figure 4 the USB host control module 1 outputs a low-level signal USB_DEL_1, and the chip U5 outputs a high-level signal USB_DEL. The communication signal output by the USB host control module 1 is input through the 4th pin and the 6th pin of the chip U5 and output through the 3rd pin (S2B) and the 7th pin (S2C). The 4th pin, the 6th pin, the 3rd pin and the 7th pin of the chip U5 constitute the second signal transmission channel. The USB host control module 1 is a slave device, and the second external device 200 is a master device. The communication signal output by the USB host control module 1 is transmitted to the second external device 200 through the second signal transmission channel to realize signal interaction between the USB host control module 1 and the second external device 200.

[0047] Therefore, in use, if the second external device is not connected, the USB function switching device in the embodiment can communicate with the first external device. When the second external device is connected, the USB communication signal transmission path can be automatically switched according to the second external device, so as to meet the USB signal transmission requirements of different use scenarios and different devices, and to quickly realize function expansion.

[0048] Embodiment 2:

[0049] The difference between the embodiment and the embodiment 1 is that the USB function switching device further comprises a controller 6 (such as an MCU, etc.), which is connected to the USB host control module 1 and is used to complete USB mounting according to the control of the USB host control module 1, identify the type of the second external device 200, generate a path switching signal according to the type of the second external device 200, and send the path switching signal to the USB host control module 1. The USB host control module 1 controls the USB switching module 2 to complete the switching of the signal transmission channel according to the path switching signal, so that the communication signal output by the USB host control module 1 is transmitted to the second external device 200 through the second signal transmission channel of the USB switching module 2, to realize signal interaction between the USB host control module 1 and the second external device 200.

[0050] Specifically, when the second peripheral device 200 connected is confirmed to be a terminal without CC protocol by the device information, the USB host control module 1 controls the controller 6 to complete USB mounting and identify the type of the second peripheral device 200. Further, when the second peripheral device 200 is confirmed to be a third type terminal without CC protocol and incapable of USB signal transmission (such as a common charging adapter without CC protocol and incapable of USB signal transmission), the USB host control module 1 still acts as a master device, and the second peripheral device 200 acts as a slave device. The communication signal output by the USB host control module 1 is transmitted to the second peripheral device 200 through the first signal transmission channel, the signal input end 31 and the second signal output end 33, so as to realize signal interaction between the USB host control module 1 and the second peripheral device 200.

[0051] When the second peripheral device 200 is confirmed to be a fourth type terminal without CC protocol but capable of USB signal transmission (such as a terminal without CC protocol but capable of USB signal transmission, such as a PC computer), the controller 6 generates a channel switching signal and sends it to the USB host control module 1. The USB host control module 1 controls the USB switching module 2 to complete switching of the signal transmission channel according to the channel switching signal, so as to open the second signal transmission channel. Similarly, the USB host control module 1 acts as a slave device, and the second peripheral device 200 acts as a master device. The communication signal output by the USB host control module 1 is transmitted to the second peripheral device 200 through the second signal transmission channel, so as to realize signal interaction between the USB host control module 1 and the second peripheral device 200.

[0052] Therefore, the controller 6 can further identify different types of second peripheral devices and execute corresponding channel switching strategies according to the device type, so as to meet the signal transmission requirements of more types of peripheral devices.

[0053] Embodiment 3:

[0054] The difference between this embodiment and Embodiments 1 or 2 is that, as shown in Figure 6 After the USB switching module 2 completes switching of the signal transmission channel, the USB host control module 1 controls the hub 3 to be powered off, so as to prevent signal interference.

[0055] In summary, the USB function switching device in the present application can automatically switch the USB communication signal transmission channel according to the information and type of the connected peripheral device, so as to meet the USB signal transmission requirements of different use scenarios and different devices and quickly realize function expansion.

[0056] The above merely describes preferred embodiments of the present application and is not intended to limit the present application, and any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A USB function switching apparatus, characterized by comprising: The USB function switching device comprises: a USB host control module; a USB switching module connected to the USB host control module; after the USB host control module is powered on, the communication signal output by the USB host control module is transmitted to a first peripheral device through a first signal transmission channel of the USB switching module; when a second peripheral device is connected, the USB host control module controls the USB switching module to complete switching of the signal transmission channel according to device information of the second peripheral device, so that the communication signal output by the USB host control module is transmitted to the second peripheral device through a second signal transmission channel of the USB switching module.

2. The USB function switching apparatus according to claim 1, wherein The USB function switching device further comprises: a hub for connecting the USB switching module and the first peripheral device; and a port for connecting the hub and the second peripheral device.

3. The USB function switching apparatus according to claim 2, wherein The hub comprises a signal input end, a first signal output end and a second signal output end, and the signal output end of the first signal transmission channel is connected to the signal input end, the first peripheral device is connected to the first signal output end, and the port is connected to the second signal output end.

4. The USB function switching apparatus according to claim 3, wherein When it is confirmed through the device information of the second peripheral device that the connected second peripheral device is a first type terminal having a CC protocol and being unable to perform USB signal transmission, the USB host control module serves as a master device and the second peripheral device serves as a slave device; the communication signal output by the USB host control module is transmitted to the second peripheral device through the first signal transmission channel, the signal input end and the second signal output end.

5. The USB function switching apparatus according to claim 3, wherein When it is confirmed through the device information of the second peripheral device that the connected second peripheral device is a second type terminal having a CC protocol and being able to perform USB signal transmission, the USB host control module outputs a low-level signal and the chip of the USB switching module outputs a high-level signal, so that the communication signal output by the USB host control module is transmitted to the second peripheral device through the second signal transmission channel.

6. The USB function switching apparatus according to claim 1, wherein After the USB host control module is powered on, it outputs a high-level signal and the chip of the USB switching module outputs a low-level signal, so that the communication signal output by the USB host control module is transmitted through the first signal transmission channel.

7. The USB function switching apparatus according to claim 3, wherein The USB function switching device further comprises: a controller connected to the USB host control module, for completing USB mounting according to control of the USB host control module, identifying the type of the second peripheral device and generating a channel switching signal according to the type of the second peripheral device; the USB switching module completes switching of the signal transmission channel according to the channel switching signal, so that the communication signal output by the USB host control module is transmitted to the second peripheral device through the second signal transmission channel.

8. The USB function switching apparatus according to claim 7, wherein When it is confirmed through the device information of the second device that the connected second peripheral device is a terminal without a CC protocol, the USB host control module controls the controller to complete USB mounting and identify the type of the second peripheral device. When it is confirmed that the second peripheral device is a third type terminal without CC protocol and incapable of USB signal transmission, the USB host control module outputs a communication signal which is transmitted to the second peripheral device through the first signal transmission channel, the signal input end and the second signal output end.

9. The USB function switching apparatus according to claim 7, wherein When it is confirmed that the second peripheral device 200 is a fourth type terminal without CC protocol and capable of USB signal transmission, the controller generates a channel switching signal, and the USB host control module controls the USB switching module to complete the switching of the signal transmission channel according to the channel switching signal, so as to open the second signal transmission channel, and the communication signal output by the USB host control module is transmitted to the second peripheral device through the second signal transmission channel.

10. The USB function switching apparatus according to claim 7, wherein After the USB switching module completes the switching of the signal transmission channel, the USB host control module controls the hub to be powered off.