USB function expansion transmission device
Technical Field
The present invention relates to a USB transmission device, and more particularly, to a USB function expansion transmission device.
Background
USB2.0 is limited by the specification, such as when a host device (e.g., a television) needs to provide users with better experience, such as very low system data delay, multi-channel high quality sound signals, etc., and USB2.0 is also limited if the host device is to support multiple devices simultaneously, such as playing games with a joystick controller while enjoying multi-channel surround sound.
Taking sound signals as an example, although USB2.0 can transmit audio signals, the system of the main device still needs to install a supported driver, and USB2.0 has a standard limitation, the driver of the User Account Control (UAC) sends out sound signals after being processed, so the delay will be increased, for example, the analog output of the mobile phone connection is real-time, but a delay will be generated through the USB output, furthermore, USB2.0 is a half-duplex operation mode, which only has two differential signal lines, so data can be transmitted in one direction, therefore, if the function of the electronic device is to be expanded through the external device, the expanded function program of the external device usually needs to return to the main device for chip modification after being written to the end, and different systems have different delays, and different device types (such as horn, earphone, microphone, joystick controller, etc.) also need to be supported by the related system drivers, for example, if a television originally has only two channels and needs to be expanded to multiple channels through an external device, an audio module of the television needs to be rewritten, but thus the television needs to be opened again to manufacture the audio module, and a consumer needs to purchase a new television to enjoy the quality of the multiple channels.
Therefore, the present invention provides a USB function expansion transmission device, which effectively solves the above problems.
Disclosure of Invention
The main objective of the present invention is to provide a USB function expansion transmission device, in which a host device can obtain a fast and high-quality expansion function by inserting the USB function expansion transmission device of the present invention into a USB2.0 slot installed in the prior art.
To achieve the above object, the present invention provides a USB function expansion transmission device, comprising: the USB connector comprises nine connecting terminals, more than two USB2.0 definition terminals and more than two function expansion terminals, can be correspondingly inserted into a USB slot, and is arranged on the main device; the USB control module is electrically connected with the USB2.0 definition terminals and used for analyzing signals which are transmitted and received by the USB2.0 definition terminals and conform to the USB2.0 protocol; the input/output control module is electrically connected with the function expansion terminals and is used for switching the functions of the function expansion terminals; the microprocessor is electrically connected with the USB2.0 definition terminals and the function expansion terminals and is used for controlling data transmission, performing pin definitions of the USB2.0 definition terminals and the function expansion terminals and writing the pin definitions into the USB control module and the input/output control module respectively; and the wireless transmission module is in signal connection with at least one external electronic device in a wireless transmission mode, so that the main device and the external electronic device mutually transmit data through the function expansion terminals to expand the functions of the main device and the external electronic device.
In one embodiment of the present invention, the pin definitions of the function expansion terminals initially default to any transmission signal.
In an embodiment of the present invention, the pin definitions of the function expansion terminals communicate with the host device through the USB control module to perform dynamic modification, so as to expand the signal specification supported by the host device.
In one embodiment of the present invention, the external electronic device is a speaker, a headset, a microphone, a joystick controller, or the like.
In an embodiment of the invention, the USB control module can change the pin direction of the function expansion terminals to control the wireless transmission module to transmit or receive data signals or support both transmission and reception of data signals.
In one embodiment of the present invention, the pins of the USB2.0 definition terminals are defined to conform to the USB2.0 transmission protocol, and the pins of the function expansion terminals are defined to transmit data signals of at least one external electronic device.
In one embodiment of the present invention, the wireless transmission module transmits the data signal provided by the main device to the external electronic device.
In an embodiment of the present invention, the wireless transmission module receives a data signal transmitted from the external electronic device and transmits the data signal to the host device through at least one of the microprocessor, the input/output control module and the function expansion terminals.
In the USB function expansion transmission device, nine connecting terminals are divided into a USB2.0 defining terminal and a function expansion terminal in a USB3.0 universal connector, the USB2.0 is communicated with a main device to define the pin direction and the function of the function expansion terminal, and the main device is connected with the USB function expansion transmission device through the existing USB2.0 slot, so that the quick and high-quality expansion function can be obtained.
In addition, the USB function expansion transmission device can also shorten the development time of the main device, so that the main device has more extensible functions, the audio quality of the USB2.0 is improved, and the main device can simultaneously support various expansion functions.
Drawings
FIG. 1 is a diagram illustrating an application of the USB function expansion transmission device according to an embodiment of the present invention.
FIG. 2 is a block diagram of a USB function expansion transmission device according to an embodiment of the present invention.
The labels in the figure are:
10USB function expansion transmission device
12USB connector
122USB2.0 definition terminal
124 function expansion terminal
14 main body
142USB control module
144 input/output control module
146 microprocessor
148 wireless transmission module
Detailed Description
Fig. 1 and fig. 2 are a schematic application diagram and a structural framework diagram of an embodiment of the USB function expansion and transmission device according to the present invention. The USB function expansion transmission device 10 of the present invention can be inserted into the USB slot 22 of the main device 20, the main device 20 can be an electronic device having the USB slot 22, such as a computer, a notebook computer, a tablet computer, a television, etc., and particularly, the USB slot 22 is USB2.0 standard. The host device 20 further performs wireless transmission with at least one external electronic device 30 through the USB function expansion transmission device 10 of the present invention, and transmits data and signals to each other, wherein the external electronic device 30 is a speaker, an earphone, a microphone, or a joystick controller.
In fig. 2, the USB function expansion transmission device 10 of the present invention includes a USB connector 12 and a body 14, wherein the USB connector 12 can adopt a USB3.0 universal connector, and therefore includes nine connection terminals, which include two or more USB2.0 definition terminals 122 and two or more function expansion terminals 124, in an embodiment of the present invention, since the USB2.0 specification requires four definition terminals, including USB2.0 specification definition terminals such as VBUS, GND, D + and D-, the remaining five terminals are the function expansion terminals 124. The USB connector 12 can be inserted into the USB slot 22 of the host device 20 to electrically connect the USB function expansion transmission device 10 of the present invention with the host device 20.
The body 14 includes a USB control module 142, an input/output control module 144, a microprocessor 146, and a wireless transmission module 148, wherein the USB control module 142 is electrically connected to the USB2.0 definition terminals 122, and is configured to decode a USB2.0 protocol, analyze a signal conforming to the USB2.0 protocol received and transmitted by the USB2.0 definition terminals 122, and decode the signal by the USB control module 142 if the external signal is the USB2.0 protocol; the input/output control module 144 is electrically connected to the function expansion terminals 144 for switching the functions of the function expansion terminals 124, for example, a first terminal of the function expansion terminals 144 is designated as a multi-channel output (such as a speaker), a second terminal is designated as a data input (such as a sensing signal of a joystick controller), and a third terminal is designated as a multi-channel input (such as a microphone); the microprocessor 146 is electrically connected to the USB2.0 definition terminal 122 and the function expansion terminal 124, and configured to control data flow, perform pin definition (pin definition) of the USB2.0 definition terminal 122 and the function expansion terminal 124, and write the pin definitions into the USB control module 142 and the input/output control module 144, respectively, where the pin definition of the USB2.0 definition terminal 122 conforms to the USB2.0 transmission protocol, and the pin definition of the function expansion terminal 124 is capable of transmitting the data signal of the external electronic device 30; the wireless transmission module 148 is in signal connection with at least one external electronic device 30 through a wireless transmission manner, such as Wi-Fi, bluetooth or other proprietary wireless transmission protocols, so that the main device 20 and the external electronic device 30 mutually transmit data through the function expansion terminal 124, and the functions of the main device 20 and the external electronic device 30 are expanded based on the function expansion terminal 124.
Although the universal connector of USB3.0 is used in the invention, the specific operation is completely irrelevant to USB3.0, nine connecting terminals of USB3.0 are needed, after the first four connecting terminals are used as the defining terminals of USB2.0, the rest five terminals can be used for function expansion, and what kind of function is to be added can be decided by a user. For example, the pin definition of the function expansion terminal 124 may initially default to any transmission signal, and then communicate with the host device 20 through the USB control module 142 to perform dynamic modification to expand the signal specification supported by the host device 20.
For example, the USB function expansion transmission device 10 of the present invention can be connected to a mobile phone of a user, the user sends an instruction for changing the definition of the function expansion terminal, the wireless transmission module 148 receives the instruction and then transmits the instruction to the input/output control module 144 via the microprocessor 146, and the input/output control module 144 executes the instruction to control a function of a function expansion terminal (for example, a fourth terminal) specified by the user to change the function, for example, the fourth terminal is originally an audio input and is changed to a data input. If the transmission direction is to be changed, the USB control module 142 changes the pin direction of the function expansion terminal 124 to change the input to the output, so as to control the wireless transmission module 148 to transmit or receive the data signal.
The wireless transmission module 148 can also support transmitting and receiving data signals, although the USB2.0 can only support one external electronic device, the present invention can realize simultaneous data input, data output, audio input, and audio output. For example, originally, the USB2.0 has only one I2S interface to transmit data of left and right channels, and after the function expansion terminal 124 is defined as two I2S interfaces, it can receive or transmit audio of four channels simultaneously without delay, for example, it can be applied to a wireless speaker for expanding multiple multi-channels in a home theater. Or modified into an I2S interface and an I2C control signal, dual channel audio and data can be transmitted. Alternatively, by setting a set of I2S interfaces as transmitting and a set of I2S interfaces as receiving, the external electronic device 30 may include both speaker and microphone. Or not limited to audio, by setting the function expansion terminal 124 to the data pin of the SPI interface, simultaneous and fast data reception and transmission can be achieved.
The external electronic device 30, for example a joystick controller, has a large number of sensors thereon, which generate a large amount of sensing data when the user waves, and therefore the amount of data to be transmitted is large and delay is not allowed, because the user's reaction is quite sensitive, and once the data delay is quite inconsistent in the user's perception, a delay of up to 100 milliseconds may be generated if it is transmitted through the USB2.0 definition terminal 122. By setting the function expansion terminal 124 to the data pin of the SPI interface, the data of the joystick controller can be quickly transmitted to the main device 20, and the corresponding change can be made in time on the main device 20 (such as a television), the delay is less than 10 ms, and the audio or image delay feeling can not be generated on the senses such as human vision, hearing and the like.
In summary, the USB function expansion transmission device provided by the present invention divides nine connection terminals into two parts, namely, a USB2.0 definition terminal and a function expansion terminal, in a USB3.0 universal connector, and uses USB2.0 to communicate with a host device to define the pin direction and function of the function expansion terminal, so that the host device can obtain a fast and high-quality expansion function by plugging the USB function expansion transmission device of the present invention into a USB2.0 slot installed in the host device. Based on the invention, the host device can directly extend the slot of the original USB2.0 without developing the software and the die supporting the USB3.0, can shorten the development time of the host device, and extend more supportable external electronic devices, thereby not only the audio quality is not limited, but also a plurality of external electronic devices can be simultaneously supported.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Therefore, all equivalent changes or modifications according to the features and the spirit of the claims should be included in the claims of the present invention.