Summary of the invention
The present invention is directed to solve one of the technical problem in above-mentioned technology at least to a certain extent.For this purpose, of the invention
One purpose is to propose a kind of USB attachment device, which can make first data transmission end and the second number of USB connector
Transmission while being able to achieve data according to transmission end, improves the utilization rate of USB connector, and is advantageously implemented USB attachment device
Personalized customization, the user experience is improved.
Second object of the present invention is to propose a kind of terminal device.
In order to achieve the above objectives, first aspect present invention embodiment proposes a kind of USB attachment device, comprising: USB connection
Device, the USB connector for connecting external equipment, the USB connector there is first data transmission end and the second data to pass
The the first collocation channel end and corresponding second data transmission terminal of defeated end and the corresponding first data transmission end setting are set
The the second collocation channel end set;Bidirectional passive switch, the bidirectional passive switch have multiple input terminals and multiple output ends,
In, the multiple input terminal includes two groups, one group of usb signal end connection corresponding with the first data transmission end, and another group
The connection of corresponding with second data transmission terminal extension signal end, the multiple output end respectively with the first data transmission
End and second data transmission terminal are correspondingly connected with;Detection unit, the detection unit respectively with first collocation channel end
It is connected with second collocation channel end, the detection unit is used to detect whether the USB connector accesses external equipment, and
Corresponding access information is obtained when the USB connector accesses external equipment;Controller, the controller respectively with it is described double
It is connected to passive switch, the USB connector with the detection unit, the controller is used to be configured according to the access information
The power end of the USB connector to the external equipment to power or from the external equipment take electricity, and according to the access
Information controls the bidirectional passive switch and keeps preset mode or carry out intersecting reversion work, so that the first data transmission end
Realize that data are transmitted simultaneously with the second data transmission terminal.
USB connector according to an embodiment of the present invention is used as data switch using bidirectional passive switch, USB can be made to connect
Transmission while the first data transmission end and the second data transmission terminal for connecing device are able to achieve data, improves the benefit of USB connector
With rate, and it is advantageously implemented the personalized customization of USB attachment device, the user experience is improved.
In addition, the USB attachment device proposed according to that above embodiment of the present invention can also have following additional technology special
Sign:
According to one embodiment of present invention, the access information includes just slotting, anti-plug and host mode, equipment mode.
According to one embodiment of present invention, the controller is specifically used for: the access information be positive insert and based on
It when machine mode, controls bidirectional passive switch and keeps preset mode, and configure the power end of the USB connector with to described
External equipment power supply;When the access information is positive and inserts and be equipment mode, controls the bidirectional passive switch and keep default
Mode, and the power end is configured to take electricity from the external equipment;When the access information is anti-plug and is host mode,
It controls the bidirectional passive switch to carry out intersecting reversion work, and configures the power end to power to the external equipment;?
When the access information is anti-plug and is equipment mode, controls the bidirectional passive switch and carry out intersecting reversion work, and configure
The power end is to take electricity from the external equipment.
According to one embodiment of present invention, when the USB connector accesses external equipment, if the detection unit
It detects that first collocation channel is terminated into pull down resistor, then judges that the USB connector is just being inserted and for host mode;If
The detection unit detects that second collocation channel is terminated into pull down resistor, then judges the USB connector anti-plug and be
Host mode.
According to one embodiment of present invention, the USB attachment device further include: HDMI connector, the HDMI connection
Device has HDMI data transmission terminal for connecting HDMI device, the HDMI connector;Converter, the converter respectively with institute
State controller, the HDMI connector and the bidirectional passive switch are connected, the converter is used for HDMI data biography
The HDMI data of defeated end transmission are converted to MHL data, wherein the MHL data are transmitted to described by the bidirectional passive switch
USB connector, and exported the MHL data to the external equipment by the USB connector.
According to one embodiment of present invention, when USB connector access is stored with the external equipment of Mike's data,
The control implement body is also used to: Mike's clock signal and Mike's data-signal is inputted to the extension signal end, with from described
Second data transmission terminal of USB connector obtains the Mike's data stored in the external equipment.
According to one embodiment of present invention, the USB connector is USB TYPE C connector, and the bidirectional passive is opened
Closing is HD3SS460 chip, and the converter is SII8334 chip.
According to one embodiment of present invention, the resistance value of the pull down resistor is 5.1k Ω.
Further, the invention proposes a kind of terminal device, the terminal device includes above-mentioned USB attachment device.
The terminal device of the embodiment of the present invention can make the first data of USB connector using above-mentioned USB attachment device
Transmission while transmission end and the second data transmission terminal are able to achieve data, improves the utilization rate of USB connector, and is conducive to reality
The personalized customization of existing USB attachment device, the user experience is improved.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
With reference to the accompanying drawing to describe the USB attachment device of the embodiment of the present invention and including its terminal device.
Fig. 2 is the structural schematic diagram of USB attachment device according to an embodiment of the present invention.As shown in Fig. 2, the USB connection fills
Set includes: USB connector 10, bidirectional passive switch 20, detection unit 30 and controller 40.
Specifically, USB connector 10 for connecting external equipment, USB connector 10 there is first data transmission end (to scheme
TX1+/TX1- and RX1+/RX1- in 2) with the second data transmission terminal (i.e. TX2+/TX2- and RX2+/RX2- in Fig. 2), with
And the second configuration of the first collocation channel end CC1 of corresponding first data transmission end setting and corresponding second data transmission terminal setting
Tunnel ends CC2.Bidirectional passive switch 20 has multiple input terminals and multiple output ends, wherein multiple input terminals are including two groups, one
The connection of group usb signal corresponding with the first data transmission end end (i.e. CRX1P, CRX1N, CTX1P, CTX1N in Fig. 2), it is another
Group (i.e. CRX2P, CRX2N, CTX2P, CTX2N in Fig. 2) extension signal end connection corresponding with the second data transmission terminal, it is multiple
Output end (i.e. LNDP, LNDN, LNCP, LNCN, LNBP, LNBN, LNAP, LNAN in Fig. 2) respectively with first data transmission end
It is correspondingly connected with the second data transmission terminal.Detection unit 30 respectively with the first collocation channel end CC1 and the second collocation channel end CC2
It is connected, detection unit 30 accesses outside in USB connector 10 and set for detecting whether USB connector 10 accesses external equipment
Corresponding access information is obtained when standby.Controller 40 respectively with 30 phase of bidirectional passive switch 20, USB connector 10 and detection unit
Even, controller 40 is used to configure the power end VBUS of USB connector 10 according to access information to power to external equipment or from outer
Portion's equipment power-extracting, and bidirectional passive switch 20 is controlled according to access information and keeps preset mode or intersect to invert work, with
Make first data transmission end and the second data transmission terminal while realizing that data are transmitted.
Wherein, referring to fig. 2, output end LNDP, LNDN, LNCP, LNCN and USB connector 10 of bidirectional passive switch 20
First data transmission end TX1+, TX1-, RX1+, RX1- be correspondingly connected with, output end LNBP, LNBN of bidirectional passive switch 20,
Second data transmission terminal of LNAP, LNAN and USB connector 10 is correspondingly connected with.
Optionally, USB connector 10 can be USB TYPE C connector, and bidirectional passive switch 20 can be HD3SS460
Chip.
In this embodiment, access information is just slotting USB connector 10 or anti-plug and the USB attachment device is place
In host mode (i.e. DFP) or equipment mode (i.e. UFP).
In some embodiments of the invention, controller 40 can be used for when access information is positive and inserts and be DFP, and control is double
Preset mode is kept to passive switch 20, and configures the power end VBUS of USB connector 10 to power to external equipment;It is accessing
Information, which is positive, inserts and when for UFP, the control holding preset mode of bidirectional passive switch 20, and configures power end VBUS to set from outside
It is on the waiting list electricity;When access information is anti-plug and is DFP, control bidirectional passive switch 20 carries out intersecting reversion work, and configures electricity
Source VBUS to external equipment to power;When access information is anti-plug and is UFP, control bidirectional passive switch 20 is handed over
Fork reversion work, and power end is configured to take electricity from external equipment.
Wherein, when USB connector accesses external equipment, if detection unit 30 detects the first collocation channel end CC1
Pull down resistor is accessed, then judges that USB connector 10 is just being inserted and for DFP;If detection unit 30 detects the second collocation channel end
CC1 accesses pull down resistor, then judges 10 anti-plug of USB connector and for DFP.
Wherein, the resistance value of pull down resistor can be 5.1k Ω.
Specifically, detection unit 30 detects that USB connector 10 is just inserted, and controller 40 reports DFP to believe referring to Fig. 5
When breath, bidirectional passive switch 20 keeps preset mode, and configures the power end VBUS of USB connector 10, to fill to external equipment
Electricity.If CRX1/CTX1 termination receives USB control signal, and CRX2/CTX2 termination receives extension control signal, then selects
Data are transmitted at the first data transmission end of the corresponding USB connector 10 in the end LnD/LnC, and the corresponding USB in the end LnA/LnB is selected to connect
The second data transmission terminal transmission data of device 10 are connect, at this point, the end CSBU1 corresponds to the end SBU1, the end CSBU2 corresponds to the end SBU2.
Detection unit 30 detects 10 anti-plug of USB connector, and when controller 40 reports DFP information, bidirectional passive switch
20 carry out intersecting reversion work, and configure the power end VBUS of USB connector 10, with to external equipment charge.If CRX1/
CTX1 termination receives extension control signal, and CRX2/CTX2 termination receives USB control signal, then selects the end LnA/LnB corresponding
The second data transmission terminal of USB connector 10 transmit data, and select the first of the corresponding USB connector 10 in the end LnD/LnC
Data transmission terminal transmits data, and the end CSBU1 corresponds to the end SBU2, and the end CSBU2 corresponds to the end SBU1.
It should be noted that above-mentioned CRX1, CTX1, CRX2, CTX2 respectively indicate one group of differential signal, as CRX1 is indicated
CRX1+ and CRX1-.
In some embodiments of the invention, as shown in figure 3, USB attachment device can also include: 50 He of HDMI connector
Converter 60.
Wherein, HDMI connector 50 has HDMI data transmission terminal for connecting HDMI device, HDMI connector 50.Conversion
Device 60 is connected with controller 40, HDMI connector 50 and bidirectional passive switch 20 respectively, and converter 60 is for passing HDMI data
The HDMI data of defeated end transmission are converted to MHL data, wherein MHL data are transmitted to USB connector by bidirectional passive switch 20
10, and exported MHL data to external equipment by USB connector 10.
Optionally, converter 50 can be SII8334 chip.
In some embodiments of the invention, when the access of USB connector 10 is stored with the external equipment of Mike's data, control
Device 50 processed can be also used for extension signal end input Mike's clock signal MIC_CLK and Mike data-signal MIC_DAT, with from
Second data transmission terminal of USB connector 10 obtains the Mike's data stored in external equipment.
It should be noted that above-mentioned USB attachment device can be used in terminal device, which can be DFP equipment,
Such as power supply adaptor, DRP (Dual Role Port, double role ports) equipment, such as computer, mobile phone, plate, movement can also be
Power supply etc. can also be UFP equipment, such as USB flash disk, earphone, mouse.
Wherein, DRP equipment, which can be used as DFP equipment, can also be used as UFP equipment.When DPR equipment accesses UFP equipment,
DRP equipment is as DFP equipment;When DRP equipment accesses DFP equipment, DRP equipment is as UFP equipment;When DRP equipment accesses DRP
When equipment, either side DFP, another party UFP.In the first collocation channel end CC1 connection pull-up resistor Rp of DFP equipment,
Second collocation channel end CC2 is hanging, and in the first collocation channel end CC1 connection pull down resistor Rd of UFP equipment, the second configuration is logical
Road end CC2 is hanging.
When USB attachment device is as DFP, if USB connector 10 does not access external equipment, USB attachment device
VBUS is without output;If after USB connector 10 accesses external equipment, collocation channel end is corresponding to be connected, and detection unit 30 detects
The pull down resistor Rd of UFP illustrates that USB connector 10 accesses external equipment, and controller 40 configures VBUS, to supply to external equipment
Electricity.
For example, referring to Fig. 3, it is arranged in laptop with USB attachment device, AR glasses access the USB connection
It is illustrated for device, wherein AR glasses end is hanging by the end CC2, and CC1 is terminated drop-down 5.1K Ω resistance.
When USB attachment device access has AR glasses (the AR glasses are equipped with camera) of USB3.0 interface, referring to
Table 1, if the CC logic chip (detection unit 30) of the USB attachment device detects first passage configuration, end CC1 connects drop-down
5.1K Ω resistance then judges that AR glasses are inserted into, and access information is that USB connector 10 is just being inserted and USB attachment device is DFP, into
And controller 40 can be powered by the power end VBUS of USB connector 10 to AR glasses.Controller 40 is defeated by usb signal end
Low level signal (i.e. USB controls signal) is to the port CRX1, CTX1 of HD3SS460 chip to select first data transmission end out
The data of AR glasses camera acquisition are transmitted, and then can be by the acquired data storage of transmission in the memory of laptop.
Meanwhile controller 40 can send extension signal to the CTX2 of HD3SS460 chip by extension signal end, with choosing
Select the second data transmission terminal TX2 transmission MHL+/- data.Specifically, HDMI device can be passed through HDMI connection by SII8334 chip
Device 50 export HDMI data be converted to MHL+/-, and by extension CTX2 the MHL+/- MHL for being transferred to AR glasses end is connect
Device is received, and decodes the OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) for being shown in AR glasses end
On screen.
In addition, controller 40 can also to the extension end CRX2 of HD3SS460 chip send Mike's clock signal MIC_CLK and
Mike data-signal MIC_DAT, to receive Mike's number of AR glasses transmission by RX2+, RX2- of USB TYPE C connector
According to.
Table 1
As a result, after the access of AR glasses has the laptop of above-mentioned USB attachment device, pass through USB connector 10
Two-sided physical interface, can meet simultaneous transmission USB2.0, USB3.0, MHL+/-, Mike's data the needs of.
It should be noted that in this embodiment, the pin of USB connector 10 can be customized, and pin assignment can be such as
Shown in table 2:
Table 2
To sum up, USB attachment device according to an embodiment of the present invention is used as data switch using bidirectional passive switch, can
Transmission while making the first data transmission end of USB connector and the second data transmission terminal realize data, improves USB connection
The utilization rate of device, and it is advantageously implemented the personalized customization of USB attachment device, the user experience is improved.
Fig. 4 is the block diagram of terminal device according to an embodiment of the present invention.As shown in figure 4, terminal device 1000 includes upper
State the USB attachment device 100 of embodiment.
The terminal device of the embodiment of the present invention can make the first data of USB connector using above-mentioned USB attachment device
Transmission while transmission end and the second data transmission terminal are able to achieve data, improves the utilization rate of USB connector, and is conducive to reality
The personalized customization of existing USB attachment device, the user experience is improved.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Each functional unit in each embodiment of the present invention can integrate in a processing module, be also possible to each
Unit physically exists alone, and can also be integrated in a module with two or more units.Above-mentioned integrated module both may be used
To use formal implementation of hardware, can also be realized in the form of software function module.If the integrated module is with soft
The form of part functional module is realized and when sold or used as an independent product, also can store computer-readable at one
In storage medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above
The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention
System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention
Type.
In the description of the present invention, it is to be understood that, term " center ", " longitudinal direction ", " transverse direction ", " length ", " width ",
" thickness ", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outside", " up time
The orientation or positional relationship of the instructions such as needle ", " counterclockwise ", " axial direction ", " radial direction ", " circumferential direction " be orientation based on the figure or
Positional relationship is merely for convenience of description of the present invention and simplification of the description, rather than the device or element of indication or suggestion meaning must
There must be specific orientation, be constructed and operated in a specific orientation, therefore be not considered as limiting the invention.
In the present invention unless specifically defined or limited otherwise, term " installation ", " connected ", " connection ", " fixation " etc.
Term shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or integral;It can be mechanical connect
It connects, is also possible to be electrically connected;It can be directly connected, can also can be in two elements indirectly connected through an intermediary
The interaction relationship of the connection in portion or two elements.It for the ordinary skill in the art, can be according to specific feelings
Condition understands the concrete meaning of above-mentioned term in the present invention.
In the present invention unless specifically defined or limited otherwise, fisrt feature in the second feature " on " or " down " can be with
It is that the first and second features directly contact or the first and second features pass through intermediary mediate contact.Moreover, fisrt feature exists
Second feature " on ", " top " and " above " but fisrt feature be directly above or diagonally above the second feature, or be merely representative of
First feature horizontal height is higher than second feature.Fisrt feature can be under the second feature " below ", " below " and " below "
One feature is directly under or diagonally below the second feature, or is merely representative of first feature horizontal height less than second feature.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example
Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned
Embodiment is changed, modifies, replacement and variant.