CN110413552B - Blind-plugging identification method, device, equipment and storage medium for double TypeC interfaces - Google Patents

Blind-plugging identification method, device, equipment and storage medium for double TypeC interfaces Download PDF

Info

Publication number
CN110413552B
CN110413552B CN201910778388.0A CN201910778388A CN110413552B CN 110413552 B CN110413552 B CN 110413552B CN 201910778388 A CN201910778388 A CN 201910778388A CN 110413552 B CN110413552 B CN 110413552B
Authority
CN
China
Prior art keywords
typec
typec interface
interface
switching unit
electrically connected
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201910778388.0A
Other languages
Chinese (zh)
Other versions
CN110413552A (en
Inventor
张旅冰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xinlongpeng Technology Co ltd
Original Assignee
Shenzhen Xinlongpeng Technology Co ltd
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 Shenzhen Xinlongpeng Technology Co ltd filed Critical Shenzhen Xinlongpeng Technology Co ltd
Priority to CN201910778388.0A priority Critical patent/CN110413552B/en
Publication of CN110413552A publication Critical patent/CN110413552A/en
Application granted granted Critical
Publication of CN110413552B publication Critical patent/CN110413552B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • 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
    • 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/70Structural association with built-in electrical component with built-in switch
    • H01R13/703Structural association with built-in electrical component with built-in switch operated by engagement or disengagement of coupling parts, e.g. dual-continuity coupling part
    • H01R13/7039Structural association with built-in electrical component with built-in switch operated by engagement or disengagement of coupling parts, e.g. dual-continuity coupling part the coupling part with coding means activating the switch to establish different circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses a blind plugging identification method for a double TypeC interface. The blind plugging identification method for the double TypeC interfaces comprises the following steps: presetting a power supply switching module; reading first type C interface information and second type C interface information; judging whether the input of the first TypeC interface is a data source or a TypeC power adapter; if the input of the first TypeC interface is a power adapter, configuring the first TypeC interface as power output, and turning on the power switching module; configuring the second TypeC interface as a data source; judging whether the second TypeC interface is inserted or not and obtaining a judgment result; and carrying out data transmission according to the judgment result. According to the invention, the two TypeC interfaces are configured into different outputs, so that the two TypeC interfaces can be used as power adapters and can also be used for data transmission, and the user experience is improved.

Description

Blind-plugging identification method, device, equipment and storage medium for double TypeC interfaces
Technical Field
The invention relates to the technical field of connectors, in particular to a blind-mate identification method, device, equipment and storage medium for a double TypeC interface.
Background
In the field of connector technology, TypeC interfaces stand out from the multitude of connectors by virtue of their superior performance. Due to the thinner design, the excellent transmission speed and the stronger power transmission, the TypeC interface, as the latest USB interface type, will obviously become the standard of the future USB interface. The prior art has been able to satisfy the output of a dual TypeC interface. The double TypeC interfaces are added with one TypeC interface, and more requirements of a user are met by utilizing communication between the two TypeC interfaces. However, due to the limitation of communication, the dual TypeC interface in the prior art can only fix one interface as the input port of the power adapter, and the other interface as the data transmission interface, which causes the limitation of user use. Therefore, the development of a dual TypeC interface capable of being used as a power adapter and performing data transmission has become an urgent problem to be solved by those skilled in the art.
Disclosure of Invention
The invention solves the technical problem of providing a double TypeC interface which can be used as a power adapter and can also be used for data transmission.
On one hand, the invention discloses a blind plugging identification method for a double TypeC interface, which comprises the following steps:
presetting a power supply switching module;
wherein, the power switching module includes: the switching unit, the first switching unit and the second switching unit;
the first switching unit is electrically connected with the first TypeC interface, the second switching unit is electrically connected with the second TypeC interface, and the switch unit is electrically connected with the first switching unit and the second switching unit respectively.
Reading first type C interface information and second type C interface information;
judging whether the input of the first TypeC interface is a data source or a TypeC power adapter;
if the input of the first TypeC interface is a power adapter, configuring the first TypeC interface as power output, and turning on the power switching module;
configuring the second TypeC interface as a data source;
judging whether the second TypeC interface is inserted or not and obtaining a judgment result;
wherein, the making positive and negative insertion judgment on the second TypeC interface and obtaining a judgment result includes:
reading a first port voltage and a second port voltage of the second TypeC interface;
and judging the front side and the back side of the second TypeC interface according to the first port voltage and the second port voltage.
And carrying out data transmission according to the judgment result.
Wherein the data transmission according to the judgment result comprises:
presetting a signal overturning mark;
if the signal transmission direction of the second TypeC interface is positive, directly transmitting data;
and if the signal transmission direction of the second TypeC interface is negative, changing the signal transmission direction according to the signal overturning mark, and then transmitting data.
The data transmission according to the judgment result further comprises:
communicating according to the first port of the second TypeC interface, and carrying out data transmission on the first signal group;
and carrying out communication according to the first port group of the second TypeC interface, and carrying out data transmission on the second signal group.
Preferably, the first switching unit includes: the circuit comprises a first field effect transistor, a first diode, a first resistor and a second resistor; the source electrode of the first field effect transistor is electrically connected with the first end of the first diode and the first TypeC interface, the drain electrode of the first field effect transistor is electrically connected with the first end of the first resistor, the grid electrode of the first field effect transistor is electrically connected with the first end of the second resistor, and the second end of the first resistor is electrically connected with the second end of the first resistor.
Preferably, the second switching unit has the same structure as the first switching unit.
In a second aspect, an embodiment of the present invention provides a blind mating identification apparatus for a dual TypeC interface, including:
the preset module is used for presetting the power supply switching module;
the reading module is used for reading the first TypeC interface information and the second TypeC interface information;
the first judging module is used for judging whether the input of the first TypeC interface is a data source or a TypeC type power adapter;
the first configuration module is used for configuring the first TypeC interface as a power output and turning on the power switching module if the input of the first TypeC interface is a power adapter;
a second configuration module to configure the second typeC interface as a data source;
the second judging module is used for judging whether the second TypeC interface is inserted or not and obtaining a judging result;
and the data transmission module is used for transmitting data according to the judgment result.
In a third aspect, an embodiment of the present invention provides a dual TypeC interface blind mating identification device, including:
at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method of the first aspect of the embodiments described above.
In a fourth aspect, embodiments of the present invention provide a storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of the first aspect in the above embodiments.
The blind plugging identification method for the double TypeC interfaces has the following beneficial effects: presetting a power supply switching module; reading first type C interface information and second type C interface information; judging whether the input of the first TypeC interface is a data source or a TypeC power adapter; if the input of the first TypeC interface is a power adapter, configuring the first TypeC interface as power output, and turning on the power switching module; configuring the second TypeC interface as a data source; judging whether the second TypeC interface is inserted or not and obtaining a judgment result; and carrying out data transmission according to the judgment result. According to the invention, the two TypeC interfaces are configured into different outputs, so that the two TypeC interfaces can be used as power adapters and can also be used for data transmission, and the user experience is improved.
Drawings
FIG. 1 is a schematic block diagram of a blind-mate recognition method for a dual TypeC interface according to an embodiment of the present invention;
FIG. 2 is a pin diagram of a TypeC connector female socket according to the blind mating identification method for a dual TypeC interface in an embodiment of the present invention;
FIG. 3 is a pin diagram of a TypeC connector male socket of the blind mating identification method for a dual TypeC interface according to the embodiment of the present invention;
fig. 4 is a circuit diagram of a power switching module of a blind-mate recognition method for a dual TypeC interface according to an embodiment of the present invention;
FIG. 5 is a block diagram of a blind-mate recognition apparatus for dual TypeC interfaces according to an embodiment of the present invention;
fig. 6 is a structural diagram of a dual TypeC interface blind-mate identification device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in detail below with reference to the accompanying drawings and examples. It should be noted that, if not conflicting, the embodiments of the present invention and the features of the embodiments may be combined with each other within the scope of protection of the present invention.
Example one
Referring to fig. 1, an embodiment of the present invention provides a blind-mate recognition method for dual type c interfaces, where two type c interfaces are read simultaneously, and a type c interface control chip is used to configure the two type c interfaces into different outputs, so that the two type c interfaces can be used as power adapters and data transmission, and user experience is improved. The method specifically comprises the following steps:
s1, presetting a power supply switching module;
s2, reading the first TypeC interface information and the second TypeC interface information;
preferably, the TypeC connector comprises a male socket and a female socket. Referring to fig. 2, the female socket of the TypeC connector includes a first row of pins and a second row of pins. The first row of pins and the second row of pins are symmetrical about a centerline of a female housing of a typeC connector. Referring to fig. 3, the male socket of the TypeC connector includes a third row of pins and a fourth row of pins. The third row of pins and the fourth row of pins are symmetrical about a center line of a male socket of a TypeC connector. Thus, the TypeC connector supports forward and reverse insertion.
Specifically, in this embodiment, the first TypeC interface and the second TypeC interface are both female sockets of a TypeC connector. When the first TypeC male socket and the first TypeC female socket are connected with the second TypeC male socket through forward insertion or backward insertion, the output type of the first TypeC female socket and the output type of the second TypeC female socket are judged by reading the CC port voltage of the A5 pin of the first TypeC female socket and the CC port voltage of the A5 pin of the second TypeC female socket.
S3, judging whether the input of the first TypeC interface is a data source or a TypeC type power adapter;
when the first TypeC male socket is connected with the first TypeC female socket through forward insertion or reverse insertion, and the second TypeC male socket is connected with the second TypeC female socket through reverse insertion, the types of the first TypeC male socket and the second TypeC male socket comprise a power adapter and a data source.
Specifically, a CC port of a5 pin of the first type c female socket and the second type c female socket is a communication port, so as to realize communication between the first type c male socket and the first type c female socket, and between the second type c male socket and the second type c female socket. Furthermore, the role of the a5 foot CC port of the first TypeC female socket and the second TypeC female socket also includes distinguishing DFPs and UFPs. The DFP is a (Downstream Facing Port) Downstream Port, and can provide VBUS and data by the DFP. A typical DFP device is a power adapter to provide power. The UFP is an (Upstream Facing Port) uplink Port. As can be appreciated, the UFP takes power from the VBUS and provides data. A typical device for UFPs is a usb disk, a removable hard disk, which is used to be read and take power from the VBUS pin.
S4, if the input of the first TypeC interface is a power adapter, configuring the first TypeC interface as a power output, and turning on the power switching module;
s5, configuring the second TypeC interface as a data source;
in another preferred embodiment, if the input of the second TypeC interface is a power adapter, configuring the second TypeC interface as a power output, and turning on the power switching module; the TypeC interface is then configured as a data source. Therefore, the double-TypeC interface blind-mate identification method can configure the two TypeC interfaces into different outputs respectively, so that the double-TypeC interface blind-mate identification method can be used as a power adapter and can also be used for data transmission, and the user experience is improved.
S6, performing positive and negative interpolation judgment on the second TypeC interface and obtaining a judgment result;
and S7, carrying out data transmission according to the judgment result.
Preferably, the making of the positive and negative interpolation judgment on the second TypeC interface and obtaining the judgment result includes:
reading a first port voltage and a second port voltage of the second TypeC interface;
and judging the front side and the back side of the second TypeC interface according to the first port voltage and the second port voltage.
Preferably, when the first TypeC male socket is connected with the first TypeC female socket, the TypeC connector control chip LDR6282 reads the CC port voltage of pin a5 and the VCONN port voltage of pin B5 of the first TypeC female socket to determine the front and back surfaces of the first TypeC female socket.
Preferably, when the second TypeC male socket is connected with the second TypeC female socket, the TypeC connector control chip LDR6282 reads the CC port voltage of pin a5 and the VCONN port voltage of pin B5 of the second TypeC female socket to determine the front and back surfaces of the second TypeC female socket.
Preferably, the power switching module includes: a switch unit 13, a first switching unit 11, and a second switching unit 12;
the first switching unit 11 is electrically connected to the first TypeC interface, the second switching unit 12 is electrically connected to the second TypeC interface, and the switch unit 13 is electrically connected to the first switching unit 11 and the second switching unit 12, respectively.
Preferably, the first switching unit 11 includes: a first field effect transistor Q1, a first diode D1, a first resistor R4 and a second resistor R12; the source of the first fet Q1 is electrically connected to the first terminal of the first diode D1 and the first TypeC interface, the drain of the first fet Q1 is electrically connected to the first terminal of the first resistor R4, the gate of the first fet Q1 is electrically connected to the first terminal of the second resistor R12, and the second terminal of the first resistor R4 is electrically connected to the second terminal of the second resistor R12.
Preferably, the second switching unit 12 is identical in structure to the first switching unit 11.
Specifically, the second switching unit 12 includes; a second field effect transistor Q2, a second diode D2, a third resistor R7 and a fourth resistor R13; a source of the second fet Q2 is electrically connected to the first end of the second diode D2 and the second TypeC interface, a drain of the second fet Q2 is electrically connected to the first end of the third resistor R7, a gate of the second fet Q2 is electrically connected to the first end of the fourth resistor R13, and a second end of the third resistor R7 is electrically connected to the second end of the fourth resistor R13.
Preferably, the switch switching unit 13 includes a first switch Q3, a fifth resistor R18, a sixth resistor R19, a seventh resistor R20, an eighth resistor R25, a ninth resistor R21, and a tenth resistor R729. A first terminal of the first switch Q3 is electrically connected to a first terminal of the fifth resistor R18, a second terminal of the fifth resistor R18 is electrically connected to a first terminal of the sixth resistor R19, and a second terminal of the sixth resistor R19 is electrically connected to a second terminal of the first switch Q3. A first end of the seventh resistor R20 is electrically connected to the first switching unit 11, a second end of the seventh resistor R20 is electrically connected to a first end of the eighth resistor R25 and a third end of the first switch Q3, and a second end of the eighth resistor R25 is grounded. A first terminal of the ninth resistor R21 is electrically connected to the second switching unit 12, a second terminal of the ninth resistor R21 is electrically connected to a first terminal of the tenth resistor R729 and a fourth terminal of the first switch Q3, and a second terminal of the tenth resistor R729 is grounded. The fifth terminal of the first switch Q3 is grounded, and the sixth terminal of the first switch Q3 is grounded.
Preferably, the working principle of the power switching module is as follows: if the input of the first TypeC interface is a power adapter, when the first switching unit 11 is electrically connected to the first TypeC interface, the first switching unit receives the voltage of the first TypeC interface, the first fet Q1 is turned on, and transmits the turned-on voltage to the first switch, and then the first switch generates a signal flag and transmits the signal flag to a TypeC connector control chip LDR6282, and the TypeC connector control chip LDR6282 configures the first TypeC interface as a power adapter, otherwise, it is configured as a data source. If the input of the second TypeC interface is a data source, when the second switching unit 12 is electrically connected to the second TypeC interface, the second switching unit receives the voltage of the second TypeC interface, the second fet Q2 is turned on, and transmits the turned-on voltage to the first switch, and then the first switch generates a signal flag and transmits the signal flag to the TypeC connector control chip LDR6282, and the TypeC connector control chip LDR6282 configures the second TypeC interface as a data source, otherwise, it is configured as a power adapter. Therefore, the double-TypeC interface blind-mate identification method can configure the two TypeC interfaces into different outputs respectively, so that the double-TypeC interface blind-mate identification method can be used as a power adapter and can also be used for data transmission, and the user experience is improved.
The second switching unit 12 is electrically connected to the second TypeC interface, and the switch unit 13 is electrically connected to the first switching unit 11 and the second switching unit 12, respectively.
Preferably, the data transmission according to the judgment result includes:
presetting a signal overturning mark;
if the signal transmission direction of the second TypeC interface is positive, directly transmitting data;
and if the signal transmission direction of the second TypeC interface is negative, changing the signal transmission direction according to the signal overturning mark, and then transmitting data.
Preferably, in this embodiment, the transmission direction of the first signal group and the second signal group is a signal transmission direction when the TypeC male socket and the TypeC female socket are inserted.
Specifically, the signal inversion flag is issued by the TypeC connector control chip LDR 6282.
Specifically, referring to fig. 2 and 3, when the first type c male socket and the first type c female socket are connected in a positive insertion manner, the first row of pins of the first type c male socket and the interfaces of the first row of pins of the first type c female socket are in one-to-one correspondence, and the second row of pins of the first type c male socket and the interfaces of the second row of pins of the first type c female socket are in one-to-one correspondence. That is, pins a1 through a12 of the first TypeC male socket correspond to pins a1 through a12 of the first TypeC female socket one by one, and pins B1 through B12 of the first TypeC male socket correspond to pins B1 through B12 of the first TypeC female socket one by one. When the first TypeC male socket and the first TypeC female socket are connected in a reverse insertion mode, the second signal groups are reordered through the signal relation of all pins in the first TypeC female socket, and therefore the sequence of the second signal groups can be in one-to-one correspondence with the pin signals of the first TypeC male socket.
Preferably, the data transmission according to the determination result further includes:
communicating according to the first port of the second TypeC interface, and carrying out data transmission on the first signal group;
and carrying out communication according to the first port group of the second TypeC interface, and carrying out data transmission on the second signal group.
Preferably, the second TypeC female seat performs signal transmission through an SBU port, a TX port and an RX port, respectively. The first port of the second TypeC interface is an SBU1 port of an A8 pin of the second TypeC female socket, which is an auxiliary signal transmission port. The first signal group includes an SBU signal of the second TypeC female. In this embodiment, after the second TypeC female socket is reversely inserted, the SBU signal of the second TypeC female socket is turned over by the data interchange chip SGM3002XMS0, and the data mapping relationship between the second TypeC female socket and the second TypeC male socket is initialized.
Preferably, the second TypeC interface is a TX/RX port of the second TypeC female. And the TX/RX signal transmission port of the second TypeC female seat is a main data transmission port. The TX/RX signal transmission ports comprise an A2 pin TX1+ port, an A3 pin TX-port, a B2 pin TX2+ port, a B3 pin TX 2-port, an A11 pin RX2+ port, an A110 pin RX 2-port, a B10 pin RX 1-port and an RX1+ port. The first signal group includes TX/RX signals of the second TypeC female.
Preferably, referring to fig. 5, the present invention further discloses a blind mating identification device for a dual TypeC interface, including:
the preset module 1 is used for presetting a power supply switching module;
the reading module 2 is used for reading the first type C interface information and the second type C interface information;
a first judging module 3, configured to judge whether an input of the first TypeC interface is a data source or a TypeC power adapter;
a first configuration module 4, configured to configure the first TypeC interface as a power output and turn on the power switching module if the input of the first TypeC interface is a power adapter;
a second configuration module 5, configured to configure the second TypeC interface as a data source;
the second judging module 6 is used for judging whether the second type C interface is inserted or not and obtaining a judging result;
and the data transmission module 7 is used for transmitting data according to the judgment result.
Preferably, the present invention further discloses a dual TypeC interface blind plugging identification device, including: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement the method of any of the embodiments.
Specifically, the processor 401 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured as one or more Integrated circuits implementing embodiments of the present invention.
Memory 402 may include mass storage for data or instructions. By way of example, and not limitation, memory 402 may include a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, tape, or Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 402 may include removable or non-removable (or fixed) media, where appropriate. The memory 402 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 402 is a non-volatile solid-state memory. In a particular embodiment, the memory 402 includes Read Only Memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory or a combination of two or more of these.
The processor 401 reads and executes the computer program instructions stored in the memory 402 to implement the dual TypeC interface blind mate identification method in the above-described embodiment.
In one example, the dual TypeC interface blind mate identification device may also include a communication interface 403 and a bus 410. As shown in fig. 6, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 to complete communication therebetween.
The communication interface 403 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiments of the present invention.
The bus 410 includes hardware, software, or both that couple the components of the dual TypeC interface blind mate identification device to each other. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or a combination of two or more of these. Bus 410 may include one or more buses, where appropriate. Although specific buses have been described and shown in the embodiments of the invention, any suitable buses or interconnects are contemplated by the invention.
In addition, in combination with the blind-mate identification method of the dual TypeC interface in the foregoing embodiment, an embodiment of the present invention may provide a computer-readable storage medium to implement. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any one of the blind-mate identification methods for a dual TypeC interface in the above embodiments.
In summary, according to the method, the apparatus, the device and the storage medium for identifying blind mating of a dual TypeC interface provided in the embodiments of the present invention, a power switching module is preset; reading first type C interface information and second type C interface information; judging whether the input of the first TypeC interface is a data source or a TypeC power adapter; if the input of the first TypeC interface is a power adapter, configuring the first TypeC interface as power output, and turning on the power switching module; configuring the second TypeC interface as a data source; judging whether the second TypeC interface is inserted or not and obtaining a judgment result; and carrying out data transmission according to the judgment result. According to the invention, the two TypeC interfaces are configured into different outputs, so that the two TypeC interfaces can be used as power adapters and can also be used for data transmission, and the user experience is improved.
It should also be noted that the exemplary embodiments mentioned in this patent describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
As described above, only the specific embodiments of the present invention are provided, and it is clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.

Claims (4)

1. A blind plugging identification method for a double TypeC interface is characterized by comprising the following steps:
presetting a power supply switching module;
wherein, the power switching module includes: the switching unit, the first switching unit and the second switching unit;
the first switching unit is electrically connected with a first TypeC interface, the second switching unit is electrically connected with a second TypeC interface, and the switch unit is electrically connected with the first switching unit and the second switching unit respectively;
the first switching unit includes: the circuit comprises a first field effect transistor, a first diode, a first resistor and a second resistor; a source electrode of the first field effect transistor is electrically connected with a first end of the first diode and the first TypeC interface, a drain electrode of the first field effect transistor is electrically connected with a first end of the first resistor, a grid electrode of the first field effect transistor is electrically connected with a first end of the second resistor, and a second end of the first resistor is electrically connected with a second end of the first resistor; the second switching unit has the same structure as the first switching unit;
reading the first TypeC interface information and the second TypeC interface information;
judging whether the input of the first TypeC interface is a data source or a TypeC power adapter;
if the input of the first TypeC interface is a power adapter, configuring the first TypeC interface as power output, and turning on the power switching module;
configuring the second TypeC interface as a data source;
judging whether the second TypeC interface is inserted or not and obtaining a judgment result;
wherein, the making positive and negative insertion judgment on the second TypeC interface and obtaining a judgment result includes:
reading a first port voltage and a second port voltage of the second TypeC interface;
judging the front side and the back side of the second TypeC interface according to the first port voltage and the second port voltage;
carrying out data transmission according to the judgment result;
wherein the data transmission according to the judgment result comprises:
presetting a signal overturning mark;
if the signal transmission direction of the second TypeC interface is positive, directly transmitting data;
if the signal transmission direction of the second TypeC interface is negative, changing the signal transmission direction according to the signal overturning mark, and then performing data transmission;
the data transmission according to the judgment result further comprises:
communicating according to the first port of the second TypeC interface, and carrying out data transmission on the first signal group;
and carrying out communication according to the first port group of the second TypeC interface, and carrying out data transmission on the second signal group.
2. A control device for realizing blind plugging of a TypeC interface is characterized by comprising:
the preset module is used for presetting the power supply switching module; wherein, the power switching module includes: the switching unit, the first switching unit and the second switching unit;
the first switching unit is electrically connected with a first TypeC interface, the second switching unit is electrically connected with a second TypeC interface, and the switch unit is electrically connected with the first switching unit and the second switching unit respectively;
the first switching unit includes: the circuit comprises a first field effect transistor, a first diode, a first resistor and a second resistor; a source electrode of the first field effect transistor is electrically connected with a first end of the first diode and the first TypeC interface, a drain electrode of the first field effect transistor is electrically connected with a first end of the first resistor, a grid electrode of the first field effect transistor is electrically connected with a first end of the second resistor, and a second end of the first resistor is electrically connected with a second end of the first resistor; the second switching unit has the same structure as the first switching unit;
the reading module is used for reading the first TypeC interface information and the second TypeC interface information;
the first judging module is used for judging whether the input of the first TypeC interface is a data source or a TypeC type power adapter;
the first configuration module is used for configuring the first TypeC interface as a power output and turning on the power switching module if the input of the first TypeC interface is a power adapter;
a second configuration module to configure the second typeC interface as a data source;
the second judging module is used for judging whether the second TypeC interface is inserted or not and obtaining a judging result;
wherein the second judging module comprises:
a first reading unit, configured to read a first port voltage and a second port voltage of the second TypeC interface;
the first judging unit is used for judging the front side and the back side of the second TypeC interface according to the first port voltage and the second port voltage;
the data transmission module is used for transmitting data according to the judgment result;
wherein, the data transmission module further comprises:
the signal overturning mark control unit is used for presetting a signal overturning mark;
the first execution unit is used for directly transmitting data if the signal transmission direction of the second TypeC interface is positive;
the second execution unit is used for changing the signal transmission direction according to the signal turning mark and then transmitting data if the signal transmission direction of the second TypeC interface is negative;
the first communication unit is used for carrying out communication according to the first port of the second TypeC interface and carrying out data transmission on the first signal group;
and the second communication unit is used for carrying out communication according to the first port group of the second TypeC interface and carrying out data transmission on the second signal group.
3. The utility model provides a two TypeC interface blind plugging identification equipment which characterized in that includes: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement the method of claim 1.
4. A storage medium having computer program instructions stored thereon which, when executed by a processor, implement the method of claim 1.
CN201910778388.0A 2019-08-22 2019-08-22 Blind-plugging identification method, device, equipment and storage medium for double TypeC interfaces Active CN110413552B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910778388.0A CN110413552B (en) 2019-08-22 2019-08-22 Blind-plugging identification method, device, equipment and storage medium for double TypeC interfaces

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910778388.0A CN110413552B (en) 2019-08-22 2019-08-22 Blind-plugging identification method, device, equipment and storage medium for double TypeC interfaces

Publications (2)

Publication Number Publication Date
CN110413552A CN110413552A (en) 2019-11-05
CN110413552B true CN110413552B (en) 2021-03-26

Family

ID=68368193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910778388.0A Active CN110413552B (en) 2019-08-22 2019-08-22 Blind-plugging identification method, device, equipment and storage medium for double TypeC interfaces

Country Status (1)

Country Link
CN (1) CN110413552B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113821464B (en) * 2020-06-18 2024-05-31 嘉基电子科技(苏州)有限公司 Connecting wire and using method thereof
CN114201430B (en) * 2021-12-08 2024-04-26 深圳市新龙鹏科技有限公司 Double-blind-insertion control circuit and display control method for single-CC interface MCU
CN114490496B (en) * 2022-02-16 2024-04-26 深圳市新龙鹏科技有限公司 TypeC double-blind-mate communication control circuit and control method
CN115086651B (en) * 2022-06-10 2025-01-03 无锡市新龙鹏电子科技有限公司 A semi-automatic test circuit, device and method for Type C double blind plug display function
CN117037891B (en) * 2023-08-18 2024-12-24 深圳市大乘科技股份有限公司 A port identification method, device, equipment and medium for dual-head storage

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106356988A (en) * 2016-10-09 2017-01-25 珠海市杰理科技有限公司 Power switching and controlling circuit

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107622031B (en) * 2017-08-09 2023-09-19 深圳市亿道数码技术有限公司 Dual type-c interface device based on intel kabyak platform
CN108459981B (en) * 2018-03-07 2023-12-22 深圳市显盈科技股份有限公司 Multifunctional signal conversion circuits and converters
CN109935221A (en) * 2019-01-26 2019-06-25 深圳市松冠科技有限公司 A display driver board with dual TYPE-C full-function interface

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106356988A (en) * 2016-10-09 2017-01-25 珠海市杰理科技有限公司 Power switching and controlling circuit

Also Published As

Publication number Publication date
CN110413552A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN110413552B (en) Blind-plugging identification method, device, equipment and storage medium for double TypeC interfaces
CN101335736B (en) High-speed peripheral interconnecting interface
EP2480043B1 (en) Method and device for identifying a computer insertion or a charger insertion in a mobile terminal
CN102750252B (en) USB/UART interface multiplexing circuit and use the electronic equipment of this circuit
CN110471878B (en) Method, device, equipment and storage medium for realizing blind plugging control of double TypeC interfaces
CN105487955B (en) The test method of measurement jig and C type USB ports
TW201520754A (en) System for detecting universal serial bus (USB) device and method thereof
CN102156681B (en) Mobile terminal and USB interface connection control device thereof
US20120096286A1 (en) Charging management method, charging control circuit and the host apparatus having the same
CN110362525B (en) A method, system and board for realizing multi-serial switching based on CPLD
CN104641578A (en) DC level detection circuit between high-speed signal line connection ports, system including the circuit, and methods of manufacturing and using the same
CN205319383U (en) Improved connector
CN102023955A (en) Method for connecting USB controller and USB controller
CN220105684U (en) USB data transmission circuit and terminal equipment
CN205644528U (en) Connection interface conversion circuit and connection interface connector
CN204441665U (en) Conversion connector unit
CN217333146U (en) Signal switching circuit and signal switching equipment
US8583849B2 (en) Signal switch connector set applied to motherboard of computer system
US20140201420A1 (en) Transmission interface system with detection function and method
CN102074862A (en) Connector of power adapter
CN104978294B (en) Compatible equipment, Serial Peripheral Interface (SPI) and the host equipment of Serial Peripheral Interface (SPI)
CN112100104B (en) Universal serial bus device, system and communication equipment
TWI648636B (en) Universal serial bus type c transmission line and transmission device
CN210922879U (en) A temperature detection device
CN204719747U (en) The compatible equipment of Serial Peripheral Interface (SPI), Serial Peripheral Interface (SPI) and main process equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant