[go: up one dir, main page]

TWI822472B - Connecting device and method for controlling the same - Google Patents

Connecting device and method for controlling the same Download PDF

Info

Publication number
TWI822472B
TWI822472B TW111144061A TW111144061A TWI822472B TW I822472 B TWI822472 B TW I822472B TW 111144061 A TW111144061 A TW 111144061A TW 111144061 A TW111144061 A TW 111144061A TW I822472 B TWI822472 B TW I822472B
Authority
TW
Taiwan
Prior art keywords
connector
control channel
output interface
input interface
interface
Prior art date
Application number
TW111144061A
Other languages
Chinese (zh)
Other versions
TW202422957A (en
Inventor
陳信宏
Original Assignee
宏正自動科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 宏正自動科技股份有限公司 filed Critical 宏正自動科技股份有限公司
Priority to TW111144061A priority Critical patent/TWI822472B/en
Priority to CN202310778915.4A priority patent/CN118054262A/en
Application granted granted Critical
Publication of TWI822472B publication Critical patent/TWI822472B/en
Publication of TW202422957A publication Critical patent/TW202422957A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • H01R13/665Structural association with built-in electrical component with built-in electronic circuit
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R31/00Coupling parts supported only by co-operation with counterpart
    • H01R31/06Intermediate parts for linking two coupling parts, e.g. adapter
    • H01R31/065Intermediate parts for linking two coupling parts, e.g. adapter with built-in electric apparatus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Information Transfer Systems (AREA)
  • Electrotherapy Devices (AREA)
  • Use Of Switch Circuits For Exchanges And Methods Of Control Of Multiplex Exchanges (AREA)
  • Communication Control (AREA)

Abstract

A connecting device comprises an input interface for connecting to a reversible first connector, an output interface for connecting to a reversible second connector, a switching unit, and a detecting unit. The switching unit provides a first route in response to a first switching command, or provides a second route in response to a second switching command. When the detecting unit detects the first and second connectors normally connecting to the input interface and the output interface, respectively, or detects the first and second connectors reversely connecting to the input interface and the output interface, respectively, the detecting unit generates the first command for enabling data transmission between the input interface and the output interface through the first route while when the detecting unit detects the first connector normally connecting to the input interface and the second connector reversely connecting to the output interface, respectively, or detects the first connector reversely connecting to the input interface and the second connector normally connecting to the output interface, respectively, the detecting unit generates the second command for enabling data transmission between the input interface and the output interface through the second route.

Description

連接裝置及其控制方法 Connection device and control method thereof

本發明為一種切換技術,特別是指一種可以根據連接器正反接的狀態切換傳輸路徑的一種連接裝置及其控制方法。The present invention is a switching technology, and in particular refers to a connection device and a control method thereof that can switch a transmission path according to the forward and reverse connection status of a connector.

請參閱圖1A至圖1B所示,該圖為習用技術之USB連接裝置連接示意圖。USB連接裝置1,可以為USB 擴充裝置、切換器等,包括有至少一個USB Type C的輸入介面10(母接頭),以及至少一個USB Type C輸出介面11(母接頭)。其中,輸入介面10用以和傳輸線CA1的USC Type C連接器12(公接頭)電性連接,輸出介面11用以和傳輸線CA2的USC Type C連接器13(公接頭)電性連接。Please refer to FIGS. 1A and 1B , which are schematic diagrams of USB connection devices in conventional technology. The USB connection device 1 may be a USB expansion device, a switch, etc., and includes at least one USB Type C input interface 10 (female connector) and at least one USB Type C output interface 11 (female connector). The input interface 10 is used to electrically connect with the USC Type C connector 12 (male connector) of the transmission line CA1, and the output interface 11 is used to electrically connect with the USC Type C connector 13 (male connector) of the transmission line CA2.

習用技術中,USB Type C的公母連接介面可以支援正反接。例如在圖1A中,USB Type C連接器12與連接器13都是正接於輸入介面10以及輸出介面11內。而在圖1B中USB Type C連接器12正接於輸入介面10以及連接器13則是反接於輸出介面11內。由於在USB Type C的通訊協定,例如:USB 3.1 Gen 1或者是USB 3.1 Gen 2 中,具有傳輸數據與傳輸電力的能力,其中傳輸電力可以用來對裝置充電或者是供應裝置運作所需的電力。為了支援高電流,例如:3安培以上的電流,因此在連接器12或13上會配置E-mark (Electrically marked)晶片14,用來管理電流。In conventional technology, the male and female connection interfaces of USB Type C can support forward and reverse connections. For example, in FIG. 1A , the USB Type C connector 12 and the connector 13 are directly connected to the input interface 10 and the output interface 11 . In FIG. 1B , the USB Type C connector 12 is directly connected to the input interface 10 and the connector 13 is reversely connected to the output interface 11 . Because the USB Type C communication protocol, such as USB 3.1 Gen 1 or USB 3.1 Gen 2, has the ability to transmit data and transmit power, the transmitted power can be used to charge the device or supply the power required for the operation of the device. . In order to support high currents, for example, currents above 3 amps, an E-mark (Electrically marked) chip 14 is disposed on the connector 12 or 13 to manage the current.

在有E-mark 晶片14的連接器12與13都是正接(圖1A所示)於連接裝置1或者都是反接於連接裝置1的時候,數據傳輸可以正常運作。但是,如果是如圖1B所示的連接狀態,USB Type C連接器12正接於輸入介面10以及連接器13則是反接於輸出介面11內,則會發生從連接器12要傳給連接器13的數據無法傳輸的問題,因為有E-mark的晶片14會阻礙訊號的傳輸。同理,USB Type C連接器12反接於輸入介面10以及連接器13則是正接於輸出介面11內時,也會發生數據無法傳輸的問題。When the connectors 12 and 13 with the E-mark chip 14 are both connected to the connecting device 1 forward (as shown in Figure 1A) or reversely connected to the connecting device 1, data transmission can operate normally. However, if the connection state is as shown in Figure 1B, the USB Type C connector 12 is connected to the input interface 10 and the connector 13 is reversely connected to the output interface 11, then a transmission from the connector 12 to the connector will occur. 13 has the problem that data cannot be transmitted because the E-mark chip 14 will hinder the signal transmission. Similarly, when the USB Type C connector 12 is reversely connected to the input interface 10 and the connector 13 is directly connected to the output interface 11, data cannot be transmitted.

為了解決這個問題,習用技術中,如圖1C所示,會將其中之一傳輸線的E-mark晶片去除,例如圖1C中的連接器12這邊沒有E-mark晶片。這樣對於連接器13不管正接或者是反接,連接器12都可以接收到數據。儘管前述的方式可以解決正反接數據傳輸的問題,但是卻無法應用在需要電流大於3A的應用情境,因此大大侷限了USB Type C連接裝置的使用情境。In order to solve this problem, in conventional technology, as shown in FIG. 1C , the E-mark chip of one of the transmission lines is removed. For example, there is no E-mark chip on the connector 12 in FIG. 1C . In this way, the connector 12 can receive data regardless of whether the connector 13 is connected forward or reversely. Although the aforementioned method can solve the problem of forward and reverse data transmission, it cannot be applied in application scenarios that require currents greater than 3A, thus greatly limiting the use scenarios of USB Type C connection devices.

綜合上述因此需要一種連接裝置及其控制方法來解決習用技術之問題。Based on the above, there is a need for a connection device and a control method thereof to solve the problems of conventional technologies.

本發明為一種連接裝置及其控制方法,連接裝置具有偵測輸入側與輸出側連接器是正接或者是反接的功能,並根據連接器正反接的狀態切換相應的數據傳輸路徑,達到可以支援雙向正反接的功效。The invention is a connection device and a control method thereof. The connection device has the function of detecting whether the input side and output side connectors are connected in the forward or reverse direction, and switches the corresponding data transmission path according to the forward and reverse connection status of the connector, so as to achieve Supports two-way forward and reverse connection functions.

在一實施例中,本發明提供一種連接裝置,包括有輸入介面、輸出介面、切換單元以及偵測單元。輸入介面供第一連接器電性正接或反接。輸出介面供第二連接器電性正接或反接。切換單元依據第一切換指令提供第一路徑,或依據第二切換指令提供第二路徑。偵測單元偵測第一連接器正接於輸入介面,且第二連接器正接於輸出介面時,或偵測第一連接器反接於輸入介面,且第二連接器反接於輸出介面時,生成第一切換指令,使輸入介面與輸出介面之間經由第一路徑進行傳輸。當偵測單元偵測第一連接器正接於輸入介面,且第二連接器反接輸出介面時,或偵測第一連接器反接於輸入介面,且第二連接器正接於輸出介面時,生成第二切換指令,使輸入介面與輸出介面之間經由第二路徑進行傳輸。In one embodiment, the present invention provides a connection device including an input interface, an output interface, a switching unit and a detection unit. The input interface allows the first connector to be electrically connected in a positive or negative direction. The output interface allows the second connector to be electrically connected in a positive or negative direction. The switching unit provides the first path according to the first switching instruction, or provides the second path according to the second switching instruction. The detection unit detects when the first connector is connected to the input interface and the second connector is connected to the output interface, or detects when the first connector is reversely connected to the input interface and the second connector is reversely connected to the output interface, Generate a first switching instruction to enable transmission between the input interface and the output interface via the first path. When the detection unit detects that the first connector is connected to the input interface and the second connector is reversely connected to the output interface, or when it detects that the first connector is reversely connected to the input interface and the second connector is connected to the output interface, Generate a second switching instruction to enable transmission between the input interface and the output interface via the second path.

在一實施例中,本發明提供一種連接裝置控制方法,首先以輸入介面連接第一連接器,以及以輸出介面連接第二連接器;然後,以偵測單元偵測第一連接器正接或反接於輸入介面,以及偵測第二連接器正接或反接於輸出介面;於偵測單元偵測第一連接器正接於輸入介面,且第二連接器正接於輸出介面時,或偵測第一連接器反接於輸入介面,且第二連接器反接於輸出介面時,生成第一切換指令;之後,於偵測單元偵測第一連接器正接於輸入介面,且第二連接器反接於輸出介面時,或偵測第一連接器反接於輸入介面,且第二連接器正接於輸出介面時,生成第二切換指令;接著,以切換單元依據第一切換指令提供第一路徑,使輸入介面與輸出介面之間經由第一路徑進行傳輸;最後,以切換單元依據第二切換指令提供第二路徑,使輸入介面與輸出介面之間經由第二路徑進行傳輸。In one embodiment, the present invention provides a method for controlling a connection device. First, an input interface is used to connect a first connector, and an output interface is used to connect a second connector. Then, a detection unit is used to detect whether the first connector is connected correctly or reversely. Connected to the input interface, and detect whether the second connector is connected to the output interface normally or reversely; when the detection unit detects that the first connector is connected to the input interface, and the second connector is connected to the output interface, or detects that the second connector is connected to the output interface, When one connector is reversely connected to the input interface and the second connector is reversely connected to the output interface, a first switching command is generated; then, the detection unit detects that the first connector is connected to the input interface and the second connector is reversed. When connected to the output interface, or when it is detected that the first connector is reversely connected to the input interface and the second connector is connected to the output interface, a second switching instruction is generated; then, the switching unit provides the first path according to the first switching instruction. , so that the input interface and the output interface are transmitted through the first path; finally, the switching unit provides a second path according to the second switching instruction, so that the input interface and the output interface are transmitted through the second path.

在下文將參考隨附圖式,可更充分地描述各種例示性實施例,在隨附圖式中展示一些例示性實施例。然而,本發明概念可能以許多不同形式來體現,且不應解釋為限於本文中所闡述之例示性實施例。確切而言,提供此等例示性實施例使得本發明將為詳盡且完整,且將向熟習此項技術者充分傳達本發明概念的範疇。類似數字始終指示類似元件。以下將以多種實施例配合圖式來說明連接裝置以及其控制方法,下述實施例並非用以限制本發明。Various exemplary embodiments may be described more fully hereinafter with reference to the accompanying drawings, some of which are shown. The inventive concepts may, however, be embodied in many different forms and should not be construed as limited to the illustrative embodiments set forth herein. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the inventive concept to those skilled in the art. Similar numbers always indicate similar components. The connection device and its control method will be described below with various embodiments and drawings. The following embodiments are not intended to limit the present invention.

請參閱圖2A所示,該圖為本發明之連接裝置之一實施例方塊示意圖。本實施例中的連接裝置2,可以應用在USB擴充裝置、切換器等。連接裝置2包括有輸入介面20、輸出介面21、切換單元22以及偵測單元23。輸入介面20供第一連接器C1電性連接,輸出介面21供第二連接器C2電性連接,第一連接器C1能以正接或反接於輸入介面20,第二連接器C2能以正接或反接於輸出介面21。切換單元22耦接於輸入介面20與輸出介面21之間。偵測單元23耦接於輸入介面20、輸出介面21與切換單元22之間。於此,透過偵測單元23偵測第一連接器C1正接或反接於輸入介面20,以及偵測第二連接器C2正接或反接於輸出介面21,以進一步生成第一切換指令或第二切換指令,進而驅動切換單元22以第一路徑或第二路徑供輸入介面20與輸出介面21之間進行傳輸。Please refer to FIG. 2A , which is a block diagram of an embodiment of the connection device of the present invention. The connection device 2 in this embodiment can be applied to USB expansion devices, switches, etc. The connection device 2 includes an input interface 20 , an output interface 21 , a switching unit 22 and a detection unit 23 . The input interface 20 is for electrical connection of the first connector C1, and the output interface 21 is for the electrical connection of the second connector C2. The first connector C1 can be connected to the input interface 20 in a normal or reverse connection, and the second connector C2 can be in a normal connection. Or reversely connected to the output interface 21. The switching unit 22 is coupled between the input interface 20 and the output interface 21 . The detection unit 23 is coupled between the input interface 20 , the output interface 21 and the switching unit 22 . Here, the detection unit 23 detects whether the first connector C1 is connected normally or reversely to the input interface 20 , and detects whether the second connector C2 is connected normally or reversely to the output interface 21 to further generate the first switching command or the third switching command. The two switching instructions further drive the switching unit 22 to use the first path or the second path for transmission between the input interface 20 and the output interface 21.

在本實施例中,請同時參閱圖2B與圖3A-3B,其中,圖2B為本發明之連接裝置之另一實施例方塊示意圖。輸入介面20為符合USB Type C的介面,支援USB .1 Gen 1、USB 3.1 Gen 2或更新版的協定,其為母頭的設計,本發明並非為限制。輸入介面20通道的配置如圖3A的剖面圖所示。要明白的是,輸入介面20上,如圖3A中的位置A5與B5分別具有第一控制通道90及第二控制通道91以及在位置A6與A7具有數據通道D+與D-,在位置B6與B7具有數據通道D+與D-,其中第一控制通道90與第二控制通道91在USB通訊的規格中代表CC1與CC2針腳。In this embodiment, please refer to FIG. 2B and FIG. 3A-3B at the same time, wherein FIG. 2B is a block diagram of another embodiment of the connection device of the present invention. The input interface 20 is an interface that complies with USB Type C and supports USB .1 Gen 1, USB 3.1 Gen 2 or later protocols. It is a female design and is not limited by the present invention. The configuration of the 20 channels of the input interface is shown in the cross-sectional view of Figure 3A. It should be understood that the input interface 20 has a first control channel 90 and a second control channel 91 respectively at positions A5 and B5 in FIG. 3A and data channels D+ and D- at positions A6 and A7, and at positions B6 and B7 has data channels D+ and D-, in which the first control channel 90 and the second control channel 91 represent CC1 and CC2 pins in the USB communication specification.

在本實施例中,第一連接器C1是相應於輸入介面20,即第一連接器C1為符合USB Type C的連接器,支援USB .1 Gen 1、USB 3.1 Gen 2或更新版的協定,其為公頭的設計。第一連接器C1包括有E-mark晶片24。如圖3B所示,其為圖2B中當第一連接器C1與輸入介面20電性連接時的第一連接器C1的剖面圖,圖3B中所示的位置A5上方具有圖2B上的控制通道92,在USB通訊的規格中代表CC1針腳,而在位置A6與A7則具有資料通道D+與D-。In this embodiment, the first connector C1 corresponds to the input interface 20 , that is, the first connector C1 is a connector that complies with USB Type C and supports USB .1 Gen 1, USB 3.1 Gen 2 or later protocols. It is a male head design. The first connector C1 includes an E-mark chip 24 . As shown in FIG. 3B , which is a cross-sectional view of the first connector C1 when the first connector C1 is electrically connected to the input interface 20 in FIG. 2B , there is a control shown in FIG. 2B above the position A5 shown in FIG. 3B Channel 92 represents the CC1 pin in the USB communication specification, and has data channels D+ and D- at positions A6 and A7.

在一實施例中,以圖3A與3B所示,當第一連接器C1直接插入輸入介面20,使得第一連接器C1的控制通道92與輸入介面20的A5位置的第一控制通道90電性連接時,代表正接。此時,第一連接器C1的資料通道D+與D-與輸入介面20的A6~A7位置的資料通道D+與D-電性連接。當第一連接器C1翻轉過來插入到輸入介面20,使得第一連接器C1的控制通道92與輸入介面20的B5位置的第二控制通道91電性連接時,代表反接。此時,第一連接器C1的資料通道D+與D-與輸入介面20的B6~B7位置的資料通道D+與D-電性連接。正接或反接為所屬技術領域之人所熟知的連接方式,在此不做贅述。In one embodiment, as shown in FIGS. 3A and 3B , when the first connector C1 is directly inserted into the input interface 20 , the control channel 92 of the first connector C1 is electrically connected to the first control channel 90 at position A5 of the input interface 20 . When sexually connected, it means positive connection. At this time, the data channels D+ and D- of the first connector C1 are electrically connected to the data channels D+ and D- at positions A6 to A7 of the input interface 20 . When the first connector C1 is turned over and inserted into the input interface 20 so that the control channel 92 of the first connector C1 is electrically connected to the second control channel 91 at position B5 of the input interface 20, it represents a reverse connection. At this time, the data channels D+ and D- of the first connector C1 are electrically connected to the data channels D+ and D- at positions B6 to B7 of the input interface 20 . Forward connection or reverse connection are well-known connection methods for those in the technical field, and will not be described in detail here.

再回到圖2B所示,第一連接器C1經由纜線D1與訊號源裝置S1電性連接,訊號源裝置S1可以為計算機、印表機、手機或者是隨身碟等裝置,但不以此為限制。訊號源裝置S1具有可以供應控制通道電力的電壓源,例如:5V,以及Rp電阻,其配置係屬習用之技術,在此不做贅述。Returning to FIG. 2B , the first connector C1 is electrically connected to the signal source device S1 via the cable D1. The signal source device S1 can be a computer, a printer, a mobile phone, a flash drive, etc., but is not used in this way. for restrictions. The signal source device S1 has a voltage source that can supply control channel power, such as 5V, and an Rp resistor. Its configuration is a conventional technology and will not be described again here.

連接裝置2的輸出介面21,供第二連接器C2電性連接,第二連接器C2能以正接或反接於輸出介面21。本實施例中,輸出介面21為USB Type C的連接器,支援USB .1 Gen 1、USB 3.1 Gen 2或更新版的協定,其為母頭型式。相應於輸出介面21,第二連接器C2為USB Type C的連接器,支援USB .1 Gen 1、USB 3.1 Gen 2或更新版的協定,其為公頭型式。同樣地,在第二連接器C2也包含有E-mark晶片24。在一實施例中,當圖2B所示的第二連接器C2直接插入輸出介面21時,第二連接器C2與輸出介面21的剖面係如圖3A與3B所示,圖中所示的第二連接器C2的控制通道95與輸出介面21的B5位置的第四控制通道94電性連接,代表反接。此時,第二連接器C2的資料通道D+與D-與輸出介面21的B6~B7位置的資料通道D+與D-電性連接。反之,當第二連接器C2插入到輸出介面21,使得第二連接器C2的控制通道95與輸出介面21的A5位置的第三控制通道93電性連接時,代表正接。此時,第二連接器C2的資料通道D+與D-與輸出介面21的A6~A7位置的資料通道D+與D-電性連接。The output interface 21 of the connecting device 2 is electrically connected to the second connector C2, and the second connector C2 can be connected to the output interface 21 in a forward or reverse manner. In this embodiment, the output interface 21 is a USB Type C connector that supports USB .1 Gen 1, USB 3.1 Gen 2 or later protocols, and is a female connector. Corresponding to the output interface 21, the second connector C2 is a USB Type C connector that supports USB .1 Gen 1, USB 3.1 Gen 2 or later protocols, and is a male type. Similarly, the second connector C2 also includes an E-mark chip 24 . In one embodiment, when the second connector C2 shown in FIG. 2B is directly inserted into the output interface 21, the cross section of the second connector C2 and the output interface 21 is as shown in FIGS. 3A and 3B. The third connector shown in the figure is The control channel 95 of the second connector C2 is electrically connected to the fourth control channel 94 at the B5 position of the output interface 21, which represents a reverse connection. At this time, the data channels D+ and D- of the second connector C2 are electrically connected to the data channels D+ and D- at positions B6 to B7 of the output interface 21 . On the contrary, when the second connector C2 is inserted into the output interface 21 so that the control channel 95 of the second connector C2 is electrically connected to the third control channel 93 at position A5 of the output interface 21, it represents a positive connection. At this time, the data channels D+ and D- of the second connector C2 are electrically connected to the data channels D+ and D- at positions A6 to A7 of the output interface 21 .

於一實施例中,切換單元22與輸入介面20以及輸出介面21電性連接,用以控制輸入介面20與輸出介面21的第一控制通道90、第二控制通道91、第三控制通道93以及第四控制通道94之間的連接關係。在本實施例中,切換單元22依據第一切換指令提供第一路徑,與依據第二切換指令提供第二路徑。本實施例中,第一路徑代表第一控制通道90與第三控制通道93連接或第二控制通道91與第四控制通道連接94。第二路徑代表第一控制通道90與第四控制通道94連接,或者是第二控制通道91與第三控制通道93連接,切換方式後續有實施例說明。In one embodiment, the switching unit 22 is electrically connected to the input interface 20 and the output interface 21, and is used to control the first control channel 90, the second control channel 91, the third control channel 93 of the input interface 20 and the output interface 21, and The fourth controls the connection relationship between the channels 94. In this embodiment, the switching unit 22 provides the first path according to the first switching instruction and the second path according to the second switching instruction. In this embodiment, the first path represents the connection between the first control channel 90 and the third control channel 93 or the connection between the second control channel 91 and the fourth control channel 94 . The second path represents the connection between the first control channel 90 and the fourth control channel 94, or the connection between the second control channel 91 and the third control channel 93. The switching method will be described in embodiments later.

於此,偵測單元23與輸入介面20、輸出介面21以及切換單元22相耦接,偵測單元23是偵測各控制通道的電性特徵,來進一步控制切換單元進行路徑切換。在一實施例中,偵測單元23偵測第一連接器C1正接於輸入介面20,且第二連接器C2正接於輸出介面21時,生成第一切換指令,或偵測第一連接器C1反接於輸入介面20,且第二連接器C2反接於輸出介面21時,生成第一切換指令,使得輸入介面20與輸出介面21之間經由第一路徑進行傳輸。此外,偵測單元23偵測第一連接器C1正接於輸入介面20,且第二連接器C2反接於輸出介面21時,生成第二切換指令,或偵測第一連接器C1反接於輸入介面20,且第二連接器C2正接於輸出介面21時,生成第二切換指令,使得輸入介面20與輸出介面21之間經由第二路徑進行傳輸訊號。Here, the detection unit 23 is coupled to the input interface 20, the output interface 21 and the switching unit 22. The detection unit 23 detects the electrical characteristics of each control channel to further control the switching unit to perform path switching. In one embodiment, when the detection unit 23 detects that the first connector C1 is connected to the input interface 20 and the second connector C2 is connected to the output interface 21, it generates the first switching command or detects the first connector C1 When the second connector C2 is reversely connected to the input interface 20 and the second connector C2 is reversely connected to the output interface 21, a first switching command is generated so that transmission between the input interface 20 and the output interface 21 is carried out through the first path. In addition, when the detection unit 23 detects that the first connector C1 is connected to the input interface 20 and the second connector C2 is reversely connected to the output interface 21, it generates a second switching command, or detects that the first connector C1 is reversely connected to the output interface 21. When the input interface 20 and the second connector C2 are connected to the output interface 21, a second switching command is generated, so that signals are transmitted between the input interface 20 and the output interface 21 through the second path.

接下來說明本發明偵測單元偵測的原理與實施例,判斷的原理是本發明的連接裝置2對於連接到輸入介面20側的第一連接器C1所連接的訊號源裝置S1,例如:計算機或播放器等,連接裝置2會去偵測第一控制通道90或第二控制通道91哪一個通道有電壓,如果第一控制通道90有電壓,參照圖3A所示,即為CC1針腳有電壓,因此代表第一連接器C1正接於輸入介面20。反之,如果第二控制通道91有電壓,參照圖3A所示,即為CC2針腳有電壓,因此代表第一連接器C1反接於輸入介面20。而偵測的方式,在一實施例中,由於訊號源S1會有電壓源,例如:5V,電性連接於第一連接器C1的控制通道92,因此當第一連接器C1插入到輸入介面20時,偵測單元23可以偵測第一控制通道90或第二控制通道91的電壓資訊,就可以得知第一連接器C1是正接於輸入介面20或反接於輸入介面20。基於前述的原理,在一實施例中,只要透過提供負載電路對於訊號源裝置S1將連接裝置2模擬訊號接收裝置(Sink 端,例如:顯示器等),偵測單元23就可以透過偵測第一與第二控制通道90與91的電壓資訊判斷第一連接器C1是正接或反接於輸入介面20。Next, the principle and embodiment of detection by the detection unit of the present invention will be described. The principle of determination is that the connection device 2 of the present invention is connected to the signal source device S1 connected to the first connector C1 on the input interface 20 side, such as a computer. or player, etc., the connecting device 2 will detect which channel of the first control channel 90 or the second control channel 91 has voltage. If the first control channel 90 has voltage, as shown in Figure 3A, it means that the CC1 pin has voltage. , thus representing that the first connector C1 is connected to the input interface 20 . On the contrary, if the second control channel 91 has voltage, as shown in FIG. 3A , it means that the CC2 pin has voltage, which means that the first connector C1 is reversely connected to the input interface 20 . As for the detection method, in one embodiment, since the signal source S1 has a voltage source, for example: 5V, electrically connected to the control channel 92 of the first connector C1, therefore when the first connector C1 is inserted into the input interface At 20 o'clock, the detection unit 23 can detect the voltage information of the first control channel 90 or the second control channel 91 , and can know whether the first connector C1 is directly connected to the input interface 20 or reversely connected to the input interface 20 . Based on the foregoing principle, in one embodiment, as long as the signal source device S1 is provided with a load circuit to connect the device 2 to the analog signal receiving device (Sink end, such as a display, etc.), the detection unit 23 can detect the first The voltage information of the second control channels 90 and 91 determines whether the first connector C1 is connected to the input interface 20 in a positive or reverse manner.

對於輸出介面21而言,連接裝置2的偵測單元23對於連接到輸出介面21側的第二連接器C2經由纜線D2所連接的訊號接收裝置S2(Sink),例如:顯示器,但不以此為限制,會去偵測第三控制通道93或第四控制通道94哪一個通道有電壓,如果第三控制通道93有電壓,參照圖3A所示,即為CC1針腳有電壓,因此代表第二連接器C2正接於輸出介面21。反之,如果第四控制通道94有電壓,參照圖3A所示,即為CC2針腳有電壓,因此代表第二連接器C2反接於輸出介面21。由於訊號接收裝置S2(Sink)不會有電壓源供電給第二連接器C2的控制通道95,因此本發明的一實施例中,由連接裝置2虛擬成具有供應電壓,例如:5V,與負載電路的訊號源裝置,因此,當第二連接器C2插入到輸出介面21時,偵測單元23可以偵測第三控制通道93或第四控制通道94的電壓資訊,就可以得知第二連接器C2是正接於輸出介面21或反接於輸出介面21。訊號接收裝置S2對應控制通道具有Rd電阻,其配置係屬於習用之技術,在此不做贅述。For the output interface 21, the detection unit 23 of the connection device 2 detects the signal receiving device S2 (Sink) connected to the second connector C2 on the side of the output interface 21 via the cable D2, such as a monitor, but not This is a limitation. It will detect whether the third control channel 93 or the fourth control channel 94 has voltage. If the third control channel 93 has voltage, as shown in Figure 3A, it means that the CC1 pin has voltage, so it means that the third control channel 93 has voltage. The second connector C2 is directly connected to the output interface 21 . On the contrary, if the fourth control channel 94 has voltage, as shown in FIG. 3A , it means that the CC2 pin has voltage, which means that the second connector C2 is reversely connected to the output interface 21 . Since the signal receiving device S2 (Sink) does not have a voltage source to supply power to the control channel 95 of the second connector C2, in an embodiment of the present invention, the connecting device 2 is virtualized to have a supply voltage, for example: 5V, and a load. The signal source device of the circuit. Therefore, when the second connector C2 is inserted into the output interface 21, the detection unit 23 can detect the voltage information of the third control channel 93 or the fourth control channel 94, and the second connection can be known. Device C2 is directly connected to the output interface 21 or reversely connected to the output interface 21. The signal receiving device S2 has an Rd resistor corresponding to the control channel. Its configuration is a conventional technology and will not be described in detail here.

請參閱圖2B所示,於本實施例中,偵測單元23更包括有負載單元230以及判斷單元233,耦接該輸入介面20與該輸出介面21,偵測單元23根據負載單元230所產生的電壓資訊判斷第一連接器C1正接或反接於該輸入介面20,以及判斷第二連接器C2正接或反接於輸出介面21。在一實施例中,該負載單元230更包括有第一負載電路231以及第二負載電路232。第一負載電路231耦接輸入介面20,偵測單元23根據第一負載電路231所產生的第一電壓資訊,判斷第一連接器C1正接或反接於輸入介面20。第二負載電路232耦接輸出介面21,偵測單元23根據第二負載電路232所產生的第二電壓資訊,判斷第二連接器C2正接或反接於輸出介面21。其中,第一電壓資訊與第二電壓資訊可以為3.3伏特,亦可以為2.5伏特,其可以視需求調整,本案並非為限制。Please refer to FIG. 2B. In this embodiment, the detection unit 23 further includes a load unit 230 and a judgment unit 233, which are coupled to the input interface 20 and the output interface 21. The detection unit 23 generates a signal generated by the load unit 230. The voltage information determines whether the first connector C1 is connected correctly or reversely to the input interface 20 , and determines whether the second connector C2 is connected correctly or reversely to the output interface 21 . In one embodiment, the load unit 230 further includes a first load circuit 231 and a second load circuit 232 . The first load circuit 231 is coupled to the input interface 20. The detection unit 23 determines whether the first connector C1 is connected to the input interface 20 in a positive or reverse manner according to the first voltage information generated by the first load circuit 231. The second load circuit 232 is coupled to the output interface 21. The detection unit 23 determines whether the second connector C2 is connected to the output interface 21 in a positive or reverse manner according to the second voltage information generated by the second load circuit 232. Among them, the first voltage information and the second voltage information can be 3.3 volts or 2.5 volts, which can be adjusted according to needs. This case is not a limitation.

第一負載電路231更包含第一負載切換器231a,耦接輸入介面20,對輸入介面20的第一控制通道90提供第一負載La,或對輸入介面的第二控制通道91提供第二負載Lb。用以分別模擬USB通訊協定上行端口(upstream facing point, UFP),亦即代表訊號接收裝置的Rd電阻。第一負載切換器231a可以為交叉點切換器(cross point switch),或者是由兩個切換器構成,其中之一切換器負責第一控制通道90與第一負載La的導通,另一切換器負責第二控制通道91與第一負載Lb的導通。The first load circuit 231 further includes a first load switch 231a, coupled to the input interface 20, providing a first load La to the first control channel 90 of the input interface 20, or providing a second load to the second control channel 91 of the input interface. Lb. They are used to simulate the USB protocol upstream facing point (UFP) respectively, which represents the Rd resistor of the signal receiving device. The first load switch 231a may be a cross point switch, or may be composed of two switches, one of which is responsible for the conduction between the first control channel 90 and the first load La, and the other switch Responsible for the conduction between the second control channel 91 and the first load Lb.

第二負載電路232更包含第二負載切換器232a,耦接輸出介面21,對輸出介面21的第三控制通道93提供第三負載L1a,或對輸出介面21的第四控制通道94提供第四負載L1b。要說明的是,第三負載L1a與第四負載L1b分別具有負數種電阻值,可以根據需求切換選擇模擬USB通訊協定下行端口(downstream facing point, DFP),亦即代表訊號源裝置控制通道中的Rp電阻。第二負載切換器232a可以為交叉點切換器(cross point switch),或者是由兩個切換器構成,其中之一切換器負責第三控制通道93與第三負載L1a的導通,另一切換器負責第四控制通道94與第四負載L1b的導通。The second load circuit 232 further includes a second load switch 232a, coupled to the output interface 21, providing a third load L1a to the third control channel 93 of the output interface 21, or providing a fourth load L1a to the fourth control channel 94 of the output interface 21. Load L1b. It should be noted that the third load L1a and the fourth load L1b respectively have negative resistance values, and can be switched to simulate the USB communication protocol downstream facing point (DFP) according to the needs, which means that they represent the signal source device control channel. Rp resistance. The second load switch 232a may be a cross point switch, or may be composed of two switches, one of which is responsible for the conduction between the third control channel 93 and the third load L1a, and the other switch Responsible for the conduction between the fourth control channel 94 and the fourth load L1b.

在本實施例中的切換單元22包括有第一切換器220、第二切換器221以及第三切換器222,其中第一切換器220用以控制第一控制通道90與第三控制通道93之間的導通或切斷。第二切換器221用以控制第二控制通道91與第四控制通道94之間的導通或切斷。第三切換器222,用以切換控制選擇第一控制通道90與第四控制通道94之間的導或斷開,或者是切換控制選擇第二控制通道91與第四控制通道94之間的導或斷開 。In this embodiment, the switching unit 22 includes a first switch 220 , a second switch 221 and a third switch 222 . The first switch 220 is used to control one of the first control channel 90 and the third control channel 93 . connection or disconnection. The second switch 221 is used to control the conduction or disconnection between the second control channel 91 and the fourth control channel 94 . The third switch 222 is used to switch control to select the conduction or disconnection between the first control channel 90 and the fourth control channel 94 , or to switch control to select the conduction between the second control channel 91 and the fourth control channel 94 . or disconnected.

接下來說明本發明之連接裝置的控制方法,請參閱圖圖4所示,其為本發明之連接裝置控制方法之一實施例流程示意圖。控制方法3包括有下列步驟,首先進行步驟30以輸入介面20連接第一連接器C1。本實施例中,如圖2A或圖 2B所示,第一連接器C1一端插入於輸入介面20內,相對的另一端經由纜線D1與訊號源裝置S1電性連接。接著,進行步驟31,以輸出介面21連接第二連接器C2。本實施例中,第二連接器C2一端插入於輸出介面21內,另一端經由纜線D2與訊號接收裝置S2電性連接。要說明的是,步驟30與步驟31並無一定的順序,本實施例僅為說明例示,不以本實施例的順序為限制。Next, the control method of the connection device of the present invention will be described. Please refer to FIG. 4 , which is a schematic flow chart of one embodiment of the control method of the connection device of the present invention. The control method 3 includes the following steps. First, step 30 is performed to connect the input interface 20 to the first connector C1. In this embodiment, as shown in Figure 2A or Figure 2B, one end of the first connector C1 is inserted into the input interface 20, and the opposite end is electrically connected to the signal source device S1 through the cable D1. Next, step 31 is performed to connect the output interface 21 to the second connector C2. In this embodiment, one end of the second connector C2 is inserted into the output interface 21, and the other end is electrically connected to the signal receiving device S2 via the cable D2. It should be noted that step 30 and step 31 do not have a certain order. This embodiment is only an illustration and is not limited to the order of this embodiment.

之後,進行步驟32以偵測單元23偵測第一連接器C1正接或反接於輸入介面20,以及偵測第二連接器C2正接或反接於輸出介面21。本步驟偵測的一實施例中,偵測單元23可以利用韌體程式的方式來偵測第一控制通道90、第二控制通道91、第三控制通道93與第四控制通道94之間的訊號,進行判斷第一連接器C1、第二連接器C2分別是正接或反接於輸入介面20或輸出介面21。此外,步驟32的另一實施例,偵測單元23的第一負載切換器231a切換選擇第一負載La與第一控制通道90電性連接,以及切換選擇第二負載Lb與第二控制通道91電性連接,由於訊號源裝置S1供應電壓經由第一連接器C1的控制通道92傳輸至輸入介面20的第一控制通道90或第二控制通道91,因此透過切換負載與第一控制通道90與第二控制通道91電性連接之後,與第一控制通道90與第二控制通道91電性連接的判斷單元233就可以根據其電性特徵,本實施例為電壓資訊,可以得知第一控制通道90與第二控制通道91哪一個通道有電壓,並根據有電壓的那一個通道判斷出第一連接器C1是正接或反接於輸入介面20。After that, step 32 is performed so that the detection unit 23 detects whether the first connector C1 is connected normally or reversely to the input interface 20 , and detects whether the second connector C2 is connected normally or reversely to the output interface 21 . In an embodiment of the detection step, the detection unit 23 can use a firmware program to detect the communication between the first control channel 90 , the second control channel 91 , the third control channel 93 and the fourth control channel 94 The signal is used to determine whether the first connector C1 and the second connector C2 are connected directly or reversely to the input interface 20 or the output interface 21 respectively. In addition, in another embodiment of step 32, the first load switch 231a of the detection unit 23 switches and selects the first load La to be electrically connected to the first control channel 90, and switches and selects the second load Lb to be electrically connected to the second control channel 91 Electrical connection, since the supply voltage of the signal source device S1 is transmitted to the first control channel 90 or the second control channel 91 of the input interface 20 through the control channel 92 of the first connector C1, therefore by switching the load and the first control channel 90 and After the second control channel 91 is electrically connected, the judgment unit 233 electrically connected to the first control channel 90 and the second control channel 91 can determine the first control based on their electrical characteristics, which in this embodiment is voltage information. Which channel of the channel 90 and the second control channel 91 has voltage, and based on which channel has voltage, it is determined whether the first connector C1 is connected to the input interface 20 in a forward or reverse manner.

同樣地,第二負載切換器232a切換選擇第三負載L1a與第三控制通道93電性連接,以及切換選擇第二負載L1b與第四控制通道94電性連接,由於訊號接收裝置S2沒有電源供應第三與第四控制通道93與94,因此由連接裝置2提供電源5V,使得連接裝置2虛擬成訊號源裝置供應電壓經由第三控制通道93以及第四控制通道94而輸出給第二連接器C2。當第二連接器C2正接於輸出介面21時,亦即第二連接器C2的控制通道95與第三控制通道93電性連接,此時判斷單元233可以偵測到對應第三控制通道93的電路上具有電壓資訊,而在第四控制通道94的電路上沒有電壓資訊;反之,當第二連接器C2反接於輸出介面21時,亦即第二連接器C2的控制通道95與第四控制通道94電性連接,此時判斷單元233可以偵測到對應第四控制通道94的電路上具有電壓資訊,而在第三控制通道93的電路上沒有電壓資訊。Similarly, the second load switch 232a switches and selects the third load L1a to be electrically connected to the third control channel 93, and switches and selects the second load L1b to be electrically connected to the fourth control channel 94, because the signal receiving device S2 has no power supply. The third and fourth control channels 93 and 94 therefore provide a power supply of 5V from the connecting device 2, so that the connecting device 2 becomes a virtual signal source device and supplies voltage to the second connector through the third control channel 93 and the fourth control channel 94. C2. When the second connector C2 is connected to the output interface 21 , that is, the control channel 95 of the second connector C2 is electrically connected to the third control channel 93 , at this time the judgment unit 233 can detect the signal corresponding to the third control channel 93 There is voltage information on the circuit, but there is no voltage information on the circuit of the fourth control channel 94; conversely, when the second connector C2 is reversely connected to the output interface 21, that is, the control channel 95 of the second connector C2 and the fourth The control channel 94 is electrically connected. At this time, the judgment unit 233 can detect that there is voltage information on the circuit corresponding to the fourth control channel 94, but there is no voltage information on the circuit of the third control channel 93.

偵測出第一連接器C1與輸入介面20的正反接狀態,以及第二連接器C2與輸出介面21正接或反接的狀態之後,進行步驟33,根據正反接狀態產生切換指令。在步驟33的一實施例中,偵測單元23偵測第一連接器C1正接於輸入介面20,且第二連接器C2正接於輸出介面21時,生成第一切換指令,或偵測第一連接器C1反接於輸入介面20,且第二連接器C2反接於輸出介面21時,生成第一切換指令。偵測單元23偵測第一連接器C1正接於輸入介面20,且第二連接器C2反接於輸出介面21時,生成第二切換指令,或偵測第一連接器C1反接於輸入介面20,且第二連接器C2正接於輸出介面21時,生成第二切換指令。After detecting the forward and reverse connection status of the first connector C1 and the input interface 20, and the forward and reverse connection status of the second connector C2 and the output interface 21, step 33 is performed to generate a switching command according to the forward and reverse connection status. In an embodiment of step 33, when the detection unit 23 detects that the first connector C1 is connected to the input interface 20 and the second connector C2 is connected to the output interface 21, it generates the first switching command, or detects the first When the connector C1 is reversely connected to the input interface 20 and the second connector C2 is reversely connected to the output interface 21, the first switching command is generated. When the detection unit 23 detects that the first connector C1 is connected to the input interface 20 and the second connector C2 is reversely connected to the output interface 21, it generates a second switching command, or detects that the first connector C1 is reversely connected to the input interface. 20, and when the second connector C2 is connected to the output interface 21, a second switching command is generated.

步驟33之後,進行步驟34,以切換單元22依據第一切換指令提供第一路徑,使輸入介面20與該輸出介面21之間經由第一路徑進行傳輸,或切換單元22依據第二切換指令提供第二路徑,使輸入介面20與輸出介面21之間經由該第二路徑進行傳輸。步驟34中,以圖2A的連接裝置2為例,切換單元22可以為交叉點切換器(cross point switch),並透過第一控制指令控制切換單元22作動使得輸入介面20的第一控制通道90與輸出介面21的第三控制通道93導通,以及輸入介面20的第二控制通道91與輸出介面21的第四控制通道94導通形成第一路徑進行傳輸。第二控制指令控制切換單元22作動使得輸入介面20的第一控制通道90與輸出介面21的第四控制通道94導通,或者是輸入介面20的第二控制通道91與輸出介面21的第三控制通道93導通,以形成第二路徑進行傳輸。After step 33, step 34 is performed, so that the switching unit 22 provides the first path according to the first switching instruction, so that the input interface 20 and the output interface 21 are transmitted through the first path, or the switching unit 22 provides the first path according to the second switching instruction. The second path enables transmission between the input interface 20 and the output interface 21 through the second path. In step 34, taking the connection device 2 of FIG. 2A as an example, the switching unit 22 can be a cross point switch, and the switching unit 22 is controlled through the first control command to operate so that the first control channel 90 of the input interface 20 It is electrically connected to the third control channel 93 of the output interface 21, and the second control channel 91 of the input interface 20 is electrically connected to the fourth control channel 94 of the output interface 21 to form a first path for transmission. The second control command controls the switching unit 22 to operate so that the first control channel 90 of the input interface 20 and the fourth control channel 94 of the output interface 21 are connected, or the second control channel 91 of the input interface 20 and the third control channel of the output interface 21 are connected. Channel 93 is turned on to form a second path for transmission.

在另一實施例中,以圖2B的連接裝置為例來說明,如圖5A所示,當偵測單元23偵測第一連接器C1正接於輸入介面20,且第二連接器C2正接於輸出介面21時,生成第一切換指令給切換單元22。本實施例中,切換單元22收到第一切換指令後,會控制第一切換器220導通第一控制通道90以及第三控制通道93,同時也控制第二切換器221導通第二控制通道91以及第四控制通道94。而第三切換器222則是斷開的狀態。同樣地,如圖5B所示,當偵測單元23偵測第一連接器C1反接於輸入介面20,且第二連接器C2反接於輸出介面21時,生成第一切換指令給切換單元22。本實施例中,切換單元22收到第一切換指令後,會控制第一切換器220導通第一控制通道90以及第三控制通道93,同時也控制第二切換器221導通第二控制通道91以及第四控制通道94。而第三切換器222則是斷開的狀態。 In another embodiment, taking the connection device of Figure 2B as an example, as shown in Figure 5A, when the detection unit 23 detects that the first connector C1 is connected to the input interface 20, and the second connector C2 is connected to When the interface 21 is output, a first switching instruction is generated to the switching unit 22 . In this embodiment, after receiving the first switching command, the switching unit 22 controls the first switch 220 to turn on the first control channel 90 and the third control channel 93, and also controls the second switch 221 to turn on the second control channel 91. and a fourth control channel 94. The third switch 222 is in a disconnected state. Similarly, as shown in FIG. 5B , when the detection unit 23 detects that the first connector C1 is reversely connected to the input interface 20 and the second connector C2 is reversely connected to the output interface 21 , it generates a first switching instruction to the switching unit. twenty two. In this embodiment, after receiving the first switching command, the switching unit 22 controls the first switch 220 to turn on the first control channel 90 and the third control channel 93, and also controls the second switch 221 to turn on the second control channel 91. and a fourth control channel 94. The third switch 222 is in a disconnected state.

在另一實施例中,如圖5C所示,偵測單元23偵測第一連接器C1正接於輸入介面20,且第二連接器C2反接於輸出介21面時,生成第二切換指令給切換單元22。本實施例中,切換單元22收到第二切換指令後,會控制第一切換器220斷開第一控制通道90以及第三控制通道93,同時也控制第二切換器221導通第二控制通道91以及第四控制通道94,以及同時控制第三切換器222為導通的狀態,使得從第一連接器C1的控制通道90輸出的訊號經由第一控制通道90、第三切換器222以及第二切換器221(如圖5C中箭頭所指方向),然後訊號進入第四控制通道94而被第二連接器C2的控制通道95所接收。同樣地,如圖5D所示,當偵測單元23偵測第一連接器C1反接於輸入介面20,且第二連接器C2正接於輸出介面21時,生成第二切換指令給切換單元22。本實施例中,切換單元22收到第二切換指令後,會控制第一切換器220導通第一控制通道90以及第三控制通道93,同時也控制第二切換器221斷開第二控制通道91以及第四控制通道94,以及控制第三切換器222為導通的狀態,使得從第一連接器C1的控制通道90輸出的訊號經由第二控制通道91、第三切換器222以及第一切換器220(如圖5D中箭頭所指方向),然後訊號進入第三控制通道93而被第二連接器C2的控制通道95所接收。換言之,於本實施例中,偵測單元23是透過偵測電壓資訊以確認E-mark晶片24 位於第一控制通道90、第二控制通道91、第三控制通道93或第四控制通道94,以進一步利用第一切換指令或第二切換指令來驅動對應的第一切換器220、第二切換器221或第三切換器222為導通狀態或斷開狀態。 In another embodiment, as shown in FIG. 5C , the detection unit 23 generates a second switching command when it detects that the first connector C1 is connected to the input interface 20 and the second connector C2 is reversely connected to the output interface 21 . to switching unit 22. In this embodiment, after receiving the second switching command, the switching unit 22 controls the first switch 220 to disconnect the first control channel 90 and the third control channel 93, and also controls the second switch 221 to switch on the second control channel. 91 and the fourth control channel 94, and simultaneously control the third switch 222 to be in a conductive state, so that the signal output from the control channel 90 of the first connector C1 passes through the first control channel 90, the third switch 222 and the second switch 221 (in the direction indicated by the arrow in Figure 5C), and then the signal enters the fourth control channel 94 and is received by the control channel 95 of the second connector C2. Similarly, as shown in FIG. 5D , when the detection unit 23 detects that the first connector C1 is reversely connected to the input interface 20 and the second connector C2 is connected to the output interface 21 , it generates a second switching command to the switching unit 22 . In this embodiment, after receiving the second switching command, the switching unit 22 controls the first switch 220 to turn on the first control channel 90 and the third control channel 93, and also controls the second switch 221 to turn off the second control channel. 91 and the fourth control channel 94, and controls the third switch 222 to be in a conductive state, so that the signal output from the control channel 90 of the first connector C1 passes through the second control channel 91, the third switch 222 and the first switch 220 (in the direction pointed by the arrow in Figure 5D), and then the signal enters the third control channel 93 and is received by the control channel 95 of the second connector C2. In other words, in this embodiment, the detection unit 23 confirms the E-mark chip 24 by detecting voltage information. Located in the first control channel 90, the second control channel 91, the third control channel 93 or the fourth control channel 94, to further use the first switching command or the second switching command to drive the corresponding first switch 220 and the second switch. The switch 221 or the third switch 222 is in the on state or the off state.

透過本發明之控制方法,可以讓具有E-mark晶片24的第一連接器C1正接於輸入介面20,以及讓具有E-mark晶片24的第二連接器C2反接於輸出介面21;或者是第一連接器C1反接於輸入介面20,以及第二連接器C2正接於輸出介面21時,第一連接器C1控制通道92的訊號仍可以透過輸入介面20與輸出介面21之間的第二路徑傳輸至第二連接器C2的控制通道95,而不受阻礙。 Through the control method of the present invention, the first connector C1 with the E-mark chip 24 can be directly connected to the input interface 20, and the second connector C2 with the E-mark chip 24 can be reversely connected to the output interface 21; or When the first connector C1 is reversely connected to the input interface 20 and the second connector C2 is connected to the output interface 21, the signal of the control channel 92 of the first connector C1 can still pass through the second connector between the input interface 20 and the output interface 21. The path passes to the control channel 95 of the second connector C2 without obstruction.

請參閱圖6所示,該圖為本發明連接裝置另一實施例示意圖。本實施例連接裝置2a的架構基本上與圖2B相似,差異的是本實施例是應用在多輸入介面20的架構。其架構與偵測控制的方法係如前所述,在此不做贅述。 Please refer to FIG. 6 , which is a schematic diagram of another embodiment of the connection device of the present invention. The structure of the connection device 2a of this embodiment is basically similar to that of FIG. 2B. The difference is that this embodiment is applied to the structure of the multi-input interface 20. Its structure and detection control method are as mentioned above and will not be described in detail here.

綜合上述,本案前述實施例所示的連接裝置及其控制方法,透過偵測輸入側與輸出側連接器是正接或者是反接,並根據連接器正反接的狀態切換相應的數據傳輸路徑,達到可以支援雙向正反接的功效。要說明的是,前述的實施例中的第一連接器C1、第二連接器C2、輸入介面20與輸出介面21雖然以USB Type C來做為實施例說明,但實際不以此為限制,只要支援正反接功能的連接器以及會有因為連接器正反接而有訊號傳輸阻礙的問題,即可以根據本發明的精神來實施。 In summary, the connection device and its control method shown in the previous embodiments of this case detect whether the input side and output side connectors are connected in the forward or reverse direction, and switch the corresponding data transmission path according to the forward and reverse connection status of the connector. It can support two-way forward and reverse connection. It should be noted that although the first connector C1, the second connector C2, the input interface 20 and the output interface 21 in the aforementioned embodiments are described as USB Type C, they are not actually limited to this. As long as the connector supports the reversible connection function and there is a problem of signal transmission obstruction due to the reversal connection of the connector, it can be implemented according to the spirit of the present invention.

以上所述,乃僅記載本發明為呈現解決問題所採用的技術手段之較佳實施方式或實施例而已,並非用來限定本發明專利實施之範圍。即凡與本發明專利申請範圍文義相符,或依本發明專利範圍所做的均等變化與修飾,皆為本發明專利範圍所涵蓋。The above description only describes the preferred implementation modes or examples of the technical means used to solve the problems of the present invention, and is not intended to limit the scope of the patent implementation of the present invention. That is to say, all changes and modifications that are consistent with the literal meaning of the patent application scope of the present invention, or are made in accordance with the patent scope of the present invention, are covered by the patent scope of the present invention.

2、2a:連接裝置 2. 2a: Connection device

20:輸入介面 20:Input interface

21輸出介面 21 output interface

22:切換單元 22:Switching unit

220:第一切換器 220:First switcher

221:第二切換器 221: Second switch

222:第三切換器 222:Third switcher

23:偵測單元 23:Detection unit

230:負載單元 230:Load unit

231:第一負載電路 231: First load circuit

231a:第一負載切換器 231a: First load switcher

232:第二負載電路 232: Second load circuit

232a:第二負載切換器 232a: Second load switcher

233:判斷單元 233: Judgment unit

24:晶片 24:wafer

90:第一控制通道 90: First control channel

91:第二控制通道 91: Second control channel

92:控制通道 92:Control channel

93:第三控制通道 93: The third control channel

94:第四控制通道 94: The fourth control channel

95:控制通道 95:Control channel

C1:第一連接器 C1: first connector

C2:第二連接器 C2: Second connector

D1~D2:纜線 D1~D2: Cable

S1:訊號源裝置 S1: Signal source device

S2:訊號接收裝置 S2: Signal receiving device

La:第一負載 La: first load

Lb:第二負載 Lb: second load

L1a:第三負載 L1a: third load

L2a:第四負載 L2a: fourth load

3:方法 3:Method

30~34:步驟 30~34: Steps

圖1A至圖1C為習用技術之連接裝置與連接器連接狀態的構示意圖。 圖2A為本發明之連接裝置之一實施例方塊示意圖。 圖2B為本發明之連接裝置之另一實施例方塊示意圖。 圖3A為本發明之輸入介面與輸出介面之針腳配置剖面示意圖。 圖3B為本發明之第一連接器與第二連接器之針腳配置剖面示意圖。 圖4為本發明之連接裝置控制方法之一實施例流程示意圖。 圖5A至圖5D為第一連接器與第二連接器與輸入介面以及輸出介面之插接態樣示意圖。 圖6為本發明之連接裝置之另一實施例方塊示意圖。 1A to 1C are schematic diagrams illustrating the connection state between a conventional connecting device and a connector. FIG. 2A is a block diagram of an embodiment of the connection device of the present invention. FIG. 2B is a schematic block diagram of another embodiment of the connection device of the present invention. FIG. 3A is a schematic cross-sectional view of the pin configuration of the input interface and output interface of the present invention. 3B is a schematic cross-sectional view of the pin configuration of the first connector and the second connector of the present invention. FIG. 4 is a schematic flowchart of an embodiment of the connection device control method of the present invention. 5A to 5D are schematic diagrams of the first connector, the second connector, the input interface and the output interface in a plug-in manner. Figure 6 is a block diagram of another embodiment of the connection device of the present invention.

2:連接裝置 2:Connection device

20:輸入介面 20:Input interface

21輸出介面 21 output interface

22:切換單元 22:Switching unit

23:偵測單元 23:Detection unit

C1:第一連接器 C1: first connector

C2:第二連接器 C2: Second connector

D1~D2:纜線 D1~D2: Cable

S1:訊號源裝置 S1: Signal source device

S2:訊號接收裝置 S2: Signal receiving device

Claims (10)

一種連接裝置,包括: 一輸入介面,供一第一連接器電性連接,該第一連接器能以正接或反接於該輸入介面; 一輸出介面,供一第二連接器電性連接,該第二連接器能以正接或反接於該輸出介面; 一切換單元,耦接於該輸入介面與該輸出介面之間,該切換單元依據一第一切換指令提供一第一路徑,與依據一第二切換指令提供一第二路徑;以及 一偵測單元,耦接該輸入介面、該輸出介面與該切換單元; 其中,該偵測單元偵測該第一連接器正接於該輸入介面,且該第二連接器正接於該輸出介面時,生成該第一切換指令,或偵測該第一連接器反接於該輸入介面,且該第二連接器反接於該輸出介面時,生成該第一切換指令,該輸入介面與該輸出介面之間經由該第一路徑進行傳輸; 其中,該偵測單元偵測該第一連接器正接於該輸入介面,且該第二連接器反接於該輸出介面時,生成該第二切換指令,或偵測該第一連接器反接於該輸入介面,且該第二連接器正接於該輸出介面時,生成該第二切換指令,該輸入介面與該輸出介面之間經由該第二路徑進行傳輸。 A connection device including: An input interface for electrical connection with a first connector, and the first connector can be connected to the input interface in a positive or reverse manner; An output interface for electrical connection with a second connector, and the second connector can be connected to the output interface in a positive or reverse manner; A switching unit coupled between the input interface and the output interface, the switching unit provides a first path according to a first switching instruction, and provides a second path according to a second switching instruction; and a detection unit coupled to the input interface, the output interface and the switching unit; Wherein, when the detection unit detects that the first connector is connected to the input interface and the second connector is connected to the output interface, it generates the first switching command, or detects that the first connector is reversely connected to the output interface. The input interface, and when the second connector is reversely connected to the output interface, the first switching command is generated, and transmission is performed between the input interface and the output interface through the first path; Wherein, when the detection unit detects that the first connector is connected to the input interface and the second connector is reversely connected to the output interface, it generates the second switching command, or detects that the first connector is reversely connected. When the input interface and the second connector are connected to the output interface, the second switching command is generated, and transmission is performed between the input interface and the output interface through the second path. 如請求項1所述之連接裝置,其中該偵測單元更包括有一負載單元,耦接該輸入介面與該輸出介面,該偵測單元根據該負載單元所產生的電壓資訊判斷該第一連接器正接或反接於該輸入介面,以及判斷該第二連接器正接或反接於該輸出介面。The connection device according to claim 1, wherein the detection unit further includes a load unit coupled to the input interface and the output interface, and the detection unit determines the first connector based on the voltage information generated by the load unit. It is connected to the input interface normally or reversely, and it is determined whether the second connector is connected to the output interface normally or reversely. 如請求項2所述之連接裝置,其中該負載單元更包括有一第一負載電路,耦接該輸入介面,該偵測單元根據該第一負載電路所產生的第一電壓資訊,判斷該第一連接器正接或反接於該輸入介面。The connection device of claim 2, wherein the load unit further includes a first load circuit coupled to the input interface, and the detection unit determines the first voltage information based on the first voltage information generated by the first load circuit. The connector is connected to the input interface either forward or backward. 如請求項3所述之連接裝置,其中該第一負載電路更包含一第一負載切換器,耦接該輸入介面,對該輸入介面的一第一控制通道提供一第一負載,或對該輸入介面的一第二控制通道提供一第二負載。The connection device of claim 3, wherein the first load circuit further includes a first load switch, coupled to the input interface, providing a first load to a first control channel of the input interface, or to a first load switch. A second control channel of the input interface provides a second load. 如請求項2所述之連接裝置,其中該負載單元更包括有一第二負載電路,耦接該輸出介面,該偵測單元根據該第二負載電路所產生的第二電壓資訊,判斷該第二連接器正接或反接於該輸出介面。The connection device of claim 2, wherein the load unit further includes a second load circuit coupled to the output interface, and the detection unit determines the second voltage information generated by the second load circuit. Connect the connector directly or backward to the output interface. 如請求項5所述之連接裝置,其中該第二負載電路更包含一第二負載切換器,耦接該輸出介面,對該輸出介面的一第三控制通道提供一第三負載,或對該輸出介面的一第四控制通道提供一第四負載。The connection device of claim 5, wherein the second load circuit further includes a second load switch, coupled to the output interface, providing a third load to a third control channel of the output interface, or to a third load switch. A fourth control channel of the output interface provides a fourth load. 如請求項1所述之連接裝置,其中該輸入介面更包含有一第一控制通道以及一第二控制通道,該輸出介面更包含有一第三控制通道以及一第四控制通道,該切換單元將該第一控制通道與該第三控制通道導通以及將該第二控制通道與該第四控制通道導通以構成該第一路徑。The connection device as claimed in claim 1, wherein the input interface further includes a first control channel and a second control channel, the output interface further includes a third control channel and a fourth control channel, and the switching unit switches the The first control channel is connected to the third control channel, and the second control channel is connected to the fourth control channel to form the first path. 如請求項1所述之連接裝置,其中該輸入介面更包含有一第一控制通道以及一第二控制通道,該輸出介面更包含有一第三控制通道以及一第四控制通道,該切換單元將該第一控制通道與該第四控制通道導通以及將該第二控制通道與該第三控制通道導通以構成該第二路徑。The connection device as claimed in claim 1, wherein the input interface further includes a first control channel and a second control channel, the output interface further includes a third control channel and a fourth control channel, and the switching unit switches the The first control channel is connected to the fourth control channel, and the second control channel is connected to the third control channel to form the second path. 一種連接裝置控制方法,包括: 以一輸入介面連接一第一連接器; 以一輸出介面連接一第二連接器; 以一偵測單元偵測該第一連接器正接或反接於該輸入介面,以及偵測該第二連接器正接或反接於該輸出介面; 於該偵測單元偵測該第一連接器正接於該輸入介面,且該第二連接器正接於該輸出介面時,或偵測該第一連接器反接於該輸入介面,且該第二連接器反接於該輸出介面時,生成一第一切換指令; 於該偵測單元偵測該第一連接器正接於該輸入介面,且該第二連接器反接於該輸出介面時,或偵測該第一連接器反接於該輸入介面,且該第二連接器正接於該輸出介面時,生成一第二切換指令; 以一切換單元依據該第一切換指令提供一第一路徑,使該輸入介面與該輸出介面之間經由該第一路徑進行傳輸;以及 以該切換單元依據該第二切換指令提供一第二路徑,使該輸入介面與該輸出介面之間經由該第二路徑進行傳輸。 A connection device control method, including: Connecting an input interface to a first connector; Connect an output interface to a second connector; Use a detection unit to detect whether the first connector is connected correctly or reversely to the input interface, and to detect whether the second connector is connected correctly or reversely to the output interface; When the detection unit detects that the first connector is connected to the input interface and the second connector is connected to the output interface, or it detects that the first connector is reversely connected to the input interface and the second connector When the connector is reversely connected to the output interface, a first switching command is generated; When the detection unit detects that the first connector is connected to the input interface and the second connector is reversely connected to the output interface, or it detects that the first connector is connected to the input interface reversely and the third connector When the two connectors are connected to the output interface, a second switching command is generated; A switching unit is used to provide a first path according to the first switching instruction, so that transmission between the input interface and the output interface is carried out through the first path; and The switching unit provides a second path according to the second switching instruction, so that transmission between the input interface and the output interface occurs through the second path. 如請求項9所述之連接裝置控制方法,其中該輸入介面更包含有一第一控制通道以及一第二控制通道,該輸出介面更包含有一第三控制通道以及一第四控制通道,其中該第一路徑為該切換單元將該第一控制通道與該第三控制通道導通以及將該第二控制通道與該第四控制通道導通,該第二路徑為該切換單元將該第一控制通道與該第四控制通道導通以及將該第二控制通道與該第三控制通道導通。The connection device control method of claim 9, wherein the input interface further includes a first control channel and a second control channel, the output interface further includes a third control channel and a fourth control channel, wherein the third control channel A path is used for the switching unit to connect the first control channel to the third control channel and to connect the second control channel to the fourth control channel. The second path is for the switching unit to connect the first control channel to the fourth control channel. The fourth control channel is turned on and the second control channel and the third control channel are turned on.
TW111144061A 2022-11-17 2022-11-17 Connecting device and method for controlling the same TWI822472B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW111144061A TWI822472B (en) 2022-11-17 2022-11-17 Connecting device and method for controlling the same
CN202310778915.4A CN118054262A (en) 2022-11-17 2023-06-28 Connection device and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111144061A TWI822472B (en) 2022-11-17 2022-11-17 Connecting device and method for controlling the same

Publications (2)

Publication Number Publication Date
TWI822472B true TWI822472B (en) 2023-11-11
TW202422957A TW202422957A (en) 2024-06-01

Family

ID=89722641

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111144061A TWI822472B (en) 2022-11-17 2022-11-17 Connecting device and method for controlling the same

Country Status (2)

Country Link
CN (1) CN118054262A (en)
TW (1) TWI822472B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60211525A (en) * 1984-04-06 1985-10-23 Fujitsu Ten Ltd Power supply momentary interruption storage device
TW201340496A (en) * 2012-03-16 2013-10-01 Quanta Comp Inc Electrical device and electrical connector assembly
CN204947285U (en) * 2015-08-05 2016-01-06 庄忆芳 USB Type-C conversion module
TWI539370B (en) * 2010-02-12 2016-06-21 Sony Corp Electronic device and digital interface identification method for connecting external machines
US20190356096A1 (en) * 2017-01-23 2019-11-21 Sony Semiconductor Solutions Corporation Transmitting device, reception device, and optical-electrical composite cable
TWI737533B (en) * 2020-11-05 2021-08-21 香港商香港德潤微電子股份有限公司 Overvoltage protection circuit and usb type-c connector
TW202217588A (en) * 2020-10-29 2022-05-01 創惟科技股份有限公司 Usb device, usb cable and usb repeater thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60211525A (en) * 1984-04-06 1985-10-23 Fujitsu Ten Ltd Power supply momentary interruption storage device
TWI539370B (en) * 2010-02-12 2016-06-21 Sony Corp Electronic device and digital interface identification method for connecting external machines
TW201340496A (en) * 2012-03-16 2013-10-01 Quanta Comp Inc Electrical device and electrical connector assembly
CN204947285U (en) * 2015-08-05 2016-01-06 庄忆芳 USB Type-C conversion module
US20190356096A1 (en) * 2017-01-23 2019-11-21 Sony Semiconductor Solutions Corporation Transmitting device, reception device, and optical-electrical composite cable
TW202217588A (en) * 2020-10-29 2022-05-01 創惟科技股份有限公司 Usb device, usb cable and usb repeater thereof
TWI737533B (en) * 2020-11-05 2021-08-21 香港商香港德潤微電子股份有限公司 Overvoltage protection circuit and usb type-c connector

Also Published As

Publication number Publication date
CN118054262A (en) 2024-05-17
TW202422957A (en) 2024-06-01

Similar Documents

Publication Publication Date Title
CN107315556B (en) display device
AU2012258500B2 (en) Adapter for electronic devices
US8060666B2 (en) System and method for providing serial bus connectivity
US20200012614A1 (en) Method and device for adjusting signal transmission direction in bidirectional redriver ic chip
WO2018103417A1 (en) Terminal apparatus, read-write apparatus, data transmission system and hardware initialization method
WO2011038211A1 (en) Dual-mode data transfer of uncompressed multimedia contents or data communications
WO2012097615A2 (en) Multi-purpose connector for multiplexing headset interface into high definition video and audio interface and handheld electronic device
WO2022012527A1 (en) Charger, data cable, charging device, and electronic device
WO2021135687A1 (en) Electronic device and accessory having both quick charging function and audio transmission function
TW202117494A (en) Usb device and operation method thereof
TW201530319A (en) Control chip, method and connection device utilizing the same
WO2018018916A1 (en) Charging system, terminal, power adapter and charging line
WO2020253543A1 (en) Connector, and charging control method using connector
TW202006561A (en) A method and device for adjusting signal transmission direction and a bidirectional signal redriver integrated circuit chip
CN111240453A (en) Controller, control method and control program
JP2017033461A (en) Detection circuit and detection method for reversible cable, and dual roll device of host device using the same
TWI822472B (en) Connecting device and method for controlling the same
CN105490124A (en) Multi-head data cable
TWI499145B (en) Electronic apparatus, base and switching function of pins of a connector
US10795421B2 (en) Power transfer synchronization for information handling system and external device
JP2018529301A (en) Power adapter, terminal device, charging system, and charging method
CN115912597A (en) Power supply switching circuit and Ethernet device using it
WO2021032084A1 (en) Type-c power supply wire, head-mounted display device and virtual reality system
US20130300214A1 (en) Transmission cable, electronic device using the same, and method for switching operation mode of the electronic device
WO2019069785A1 (en) Relay device, receiving device, and transmission system using same