CN106844259A - USBType C interface communication between devices establishment of connection method and apparatus - Google Patents

USBType C interface communication between devices establishment of connection method and apparatus Download PDF

Info

Publication number
CN106844259A
CN106844259A CN201611121629.7A CN201611121629A CN106844259A CN 106844259 A CN106844259 A CN 106844259A CN 201611121629 A CN201611121629 A CN 201611121629A CN 106844259 A CN106844259 A CN 106844259A
Authority
CN
China
Prior art keywords
slave unit
main equipment
producer
connection
connection request
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.)
Pending
Application number
CN201611121629.7A
Other languages
Chinese (zh)
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.)
Analogix Semiconductor Beijing Inc
Analogix International LLC
Original Assignee
Analogix Semiconductor Beijing Inc
Analogix International LLC
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 Analogix Semiconductor Beijing Inc, Analogix International LLC filed Critical Analogix Semiconductor Beijing Inc
Priority to CN201611121629.7A priority Critical patent/CN106844259A/en
Publication of CN106844259A publication Critical patent/CN106844259A/en
Pending legal-status Critical Current

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/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4072Drivers or receivers
    • 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
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

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)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of USBType C interface communication between devices establishment of connection method and apparatus.Wherein, the method includes:The producer ID and device id of slave unit are obtained, wherein, slave unit carries out physical connection with main equipment by USB Type C interface;The producer ID and the ID of device id all same for having with slave unit are searched whether in the list of devices of main equipment, wherein, the list of devices of main equipment is used to store the ID of the equipment that communication connection was set up with main equipment;If finding the ID of the producer ID and device id all same with slave unit, connection request is sent to slave unit, wherein, connection request is used to ask to set up communication connection with slave unit;After slave unit receives connection request, set up with slave unit and communicated to connect.The present invention solves the excessively complicated technical problem of mode that communication connection is set up between existing USB Type C interface equipment.

Description

The method for building up and device communicated to connect between USBType-C interface equipments
Technical field
The present invention relates to the communications field of USB Type-C interface equipments, in particular to a kind of USBType-C interfaces Communication between devices establishment of connection method and apparatus.
Background technology
USB Type-C are a kind of 24 pin interfaces of new USB, and it can support positive anti-plug, USB3.1 high-speed datas Transmission, the transmission of DisplayPort audio, video datas and quick charge application.After two USB Type-C interface equipments interconnection, The work of equipment discovery, power supply negotiation and data application model and configuration could be completed by a series of interaction of message, Whole process needs nearly 1 seconds, and this significantly impacts efficiency and Consumer's Experience, and plug will be repeated again every time This process.
For above-mentioned problem, effective solution is not yet proposed at present.
The content of the invention
The method for building up and device communicated to connect between a kind of USBType-C interface equipments are the embodiment of the invention provides, The excessively complicated technical problem in the way of setting up communication connection between at least solving existing USB Type-C interface equipments.
One side according to embodiments of the present invention, there is provided communicated to connect between a kind of USB Type-C interface equipments Method for building up, including:The producer ID and device id of slave unit are obtained, wherein, the slave unit passes through USB Type- with main equipment C interface carries out physical connection;Search whether to exist in the list of devices of the main equipment with the producer ID of the slave unit and The ID of device id all same, wherein, the list of devices of the main equipment is used to store set up communication connection with the main equipment Equipment ID;If finding the ID of the producer ID and device id all same with the slave unit, sent out to the slave unit Connection request is sent, wherein, the connection request is used to ask to be set up with the slave unit to communicate to connect;Receive in the slave unit After the connection request, set up with the slave unit and be connected.
Further, the list of devices of the main equipment is additionally operable to store the main equipment with slave unit foundation communication connection When link information, the link information with the list of devices store ID it is corresponding, to the slave unit send connect Request includes:Link information is obtained, the link information is homogeneous with the producer ID and device id of the slave unit with what is found Same ID is corresponding;Using the link information, the producer ID of the main equipment and device id as the connection request, it is sent to The slave unit.
Further, before communication connection is set up with the slave unit, methods described also includes:The slave unit is received The connection request;The slave unit searches whether the producer for having with the main equipment in the list of devices of the slave unit The ID of ID and device id all same, wherein the list of devices of the slave unit is used to store set up what is be connected with the slave unit The ID of equipment;If finding the ID of the producer ID and device id all same with the main equipment, the slave unit receives institute Connection request is stated, and the hardware of the slave unit is configured according to the link information.
Further, using the link information, the producer ID of the main equipment and device id as the connection request, It is sent to after the slave unit, methods described also includes:The hardware of the main equipment is configured according to the link information.
Further, searched whether in the list of devices of the main equipment in the presence of the producer ID with the slave unit and set After the ID of standby ID all sames, methods described also includes:If not finding the producer ID and device id with the slave unit The ID of all same, then set up communication connection with the slave unit according to the mode of first connection.
Further, set up according to the mode of first connection after communication connection with the slave unit, methods described is also Including:The producer ID and device id of the slave unit and the link information of the connection are stored the equipment in the main equipment In list.
Further, stored by the link information of the producer ID and device id of the slave unit and the communication connection Before in the list of devices of the main equipment, methods described also includes:Judge what is stored in the list of devices of the main equipment Whether the quantity of ID has reached default stored number;If the quantity of the device id stored in the list of devices of the main equipment Default stored number is reached, has then deleted the ID of the equipment for setting up communication connection with the main equipment at first.
Further, before obtaining the producer ID and device id of slave unit, methods described also includes:Sent out to the slave unit The request for obtaining ID is sent, wherein, the request of the acquisition ID is used for the producer ID and device id of slave unit described in acquisition request.
Another aspect according to embodiments of the present invention, additionally provides communication connection between a kind of USB Type-C interface equipments Method for building up, including:The producer ID and device id of slave unit are sent to main equipment, wherein the main equipment passes through with slave unit USB Type-C interfaces carry out physical connection;The connection request that the receipts main equipment sends is connect, wherein, the connection request is used for The master devices request is set up with the slave unit and is communicated to connect;The connection request according to receiving determines whether to receive institute State connection request;After the connection request is received, set up with the main equipment and communicated to connect.
Further, the connection request includes the producer ID and device id of the main equipment, according to the connection request Receive the connection request and set up communication connection with the main equipment to include:Being searched in the list of devices of the slave unit is The no producer ID and the ID of device id all same existed with the main equipment, wherein, the list of devices of the slave unit is used to deposit Store up the ID of the equipment that communication connection was set up with the slave unit;If finding the producer ID and device id with the main equipment The ID of all same, then receive the connection request;If do not found homogeneous with the producer ID and device id of the main equipment Same ID, then do not receive the connection request.
Further, the connection request also includes link information, wherein, the link information is the main equipment and institute The last information set up when communicating to connect of slave unit is stated, before communication connection is set up with the main equipment, methods described is also Including:The hardware of the slave unit is configured according to the link information.
Further, before the producer ID and device id for sending slave unit to main equipment, methods described also includes:Receive The request of the acquisition ID that the main equipment sends.
Another aspect according to embodiments of the present invention, additionally provides communication connection between a kind of USB Type-C interface equipments Set up device, including:Acquiring unit, producer ID and device id for obtaining slave unit, wherein, the slave unit sets with master It is standby that physical connection is carried out by USB Type-C interfaces;Searching unit, be for being searched in the list of devices of the main equipment The no producer ID and the ID of device id all same existed with the slave unit, wherein, the list of devices of the main equipment is used to deposit Store up the ID of the equipment that communication connection was set up with the main equipment;First transmitting element, if for finding with described from setting The standby producer ID and ID of device id all same, then send connection request to the slave unit, wherein, the connection request is used for Request is set up with the slave unit and is communicated to connect;First connection unit, for the slave unit receive the connection request it Afterwards, set up with the slave unit and communicated to connect.
Another aspect according to embodiments of the present invention, additionally provides communication connection between a kind of USB Type-C interface equipments Set up device, including:Second transmitting element, producer ID from slave unit to main equipment and device id for sending, wherein described Main equipment carries out physical connection with slave unit by USB Type-C interfaces;Receiving unit, sends for receiving the main equipment Connection request, wherein, the connection request is used for the master devices request and the slave unit and sets up communication connection;It is determined that single Unit, for determining whether to receive the connection request according to the connection request for receiving;Second connection unit, for connecing After by the connection request, set up with the main equipment and communicated to connect.
In embodiments of the present invention, using the producer ID and device id for obtaining slave unit, wherein, the slave unit sets with master It is standby that physical connection is carried out by USB Type-C interfaces;Searched whether in the list of devices of the main equipment exist with it is described from The producer ID of the equipment and ID of device id all same, wherein, the list of devices of the main equipment is used to store and the main equipment Set up the ID of the equipment of connection;If the ID of the producer ID and device id all same with the slave unit is found, to institute State slave unit and send connection request, wherein, the connection request is used to ask to be set up with the slave unit to be connected;Described from setting After the standby receiving connection request, the mode being connected is set up with the slave unit, sent by the equipment for setting up connection Connection request, has reached and had set up the equipment that is connected and quickly set up the purpose of connection, it is achieved thereby that simplifying USB Type-C What is communicated to connect between interface equipment sets up the technique effect of mode, and then solves between existing USB Type-C interface equipments Set up the excessively complicated technical problem of the mode of communication connection.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this hair Bright schematic description and description does not constitute inappropriate limitation of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is the foundation of communication connection between a kind of optional USB Type-C interface equipments according to embodiments of the present invention The flow chart of method;
Fig. 2 is the foundation of communication connection between a kind of optional USB Type-C interface equipments according to embodiments of the present invention The flow chart of method;
Fig. 3 is the foundation of communication connection between a kind of optional USB Type-C interface equipments according to embodiments of the present invention The flow chart of method;
Fig. 4 is the foundation of communication connection between a kind of optional USB Type-C interface equipments according to embodiments of the present invention The schematic diagram of device;
Fig. 5 is the foundation of communication connection between a kind of optional USB Type-C interface equipments according to embodiments of the present invention The schematic diagram of device.
Specific embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present invention, it is clear that described embodiment is only The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the model of present invention protection Enclose.
It should be noted that term " first ", " in description and claims of this specification and above-mentioned accompanying drawing Two " it is etc. for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so using Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or Order beyond those of description is implemented.Additionally, term " comprising " and " having " and their any deformation, it is intended that cover Lid is non-exclusive to be included, for example, the process, method, system, product or the equipment that contain series of steps or unit are not necessarily limited to Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product Or other intrinsic steps of equipment or unit.
According to embodiments of the present invention, there is provided the method for building up communicated to connect between a kind of USB Type-C interface equipments Embodiment of the method is, it is necessary to explanation, can perform in such as one group computer the step of the flow of accompanying drawing is illustrated and refer to Performed in the computer system of order, and, although logical order is shown in flow charts, but in some cases, can be with Shown or described step is performed with different from order herein.
The foundation side communicated to connect between a kind of optional USB Type-C interface equipments Fig. 1 according to embodiments of the present invention The flow chart of method, as shown in figure 1, the method comprises the following steps:
Step S102, obtains the producer ID and device id of slave unit, wherein, slave unit passes through USB Type-C with main equipment Interface carries out physical connection.
In embodiments of the present invention, main equipment carries out physical connection, main equipment with slave unit by USB Type-C interfaces The producer ID and device id of slave unit are obtained by sending PD (Power Delivery agreements) message.
Step S104, searches whether in the presence of homogeneous with the producer ID and device id of slave unit in the list of devices of main equipment Same ID, wherein, the list of devices of main equipment is used to store the ID of the equipment that communication connection was set up with main equipment.
Due to setting up the equipment of producer ID and the device id storage in main equipment of the slave unit of communication connection with main equipment In list, therefore, by getting the producer ID and device id of slave unit in step S102 after, in the list of devices of main equipment In search whether there is producer ID and the device id of device id all same with the slave unit, with judge the slave unit whether with master Equipment set up communication connection.
Step S106, if finding the ID of the producer ID and device id all same with slave unit, sends to slave unit Connection request, wherein, connection request is used to ask to set up communication connection with slave unit.
If can be found in the list of devices of main equipment and the producer ID of the slave unit and device id all same Device id, shows that the slave unit was set up with main equipment and is connected, then main equipment sends connection request to the slave unit, asks and is somebody's turn to do Slave unit sets up communication connection.
Step S108, after slave unit receives connection request, sets up with slave unit and communicates to connect.
After slave unit receives the connection request of main equipment transmission, set up power supply with slave unit and communicate to connect.
In embodiments of the present invention, using the producer ID and device id for obtaining slave unit, wherein, slave unit is led to main equipment Crossing USB Type-C interfaces carries out physical connection;The producer ID for having with slave unit is searched whether in the list of devices of main equipment With the ID of device id all same, wherein, the list of devices of main equipment is used to store the ID for setting up the equipment being connected with main equipment; If finding the ID of the producer ID and device id all same with slave unit, connection request is sent to slave unit, wherein, connection Ask for asking to be connected with slave unit foundation;After slave unit receives connection request, the mode being connected is set up with slave unit, By to the equipment for connecting transmission connection request was set up, having reached and having set up the equipment being connected the mesh for quickly setting up connection , it is achieved thereby that what is communicated to connect between simplifying Type-C interface equipments sets up the technique effect of mode, and then solve existing There is the excessively complicated technical problem of the mode that communication connection is set up between USB Type-C interface equipments.
Alternatively, the connection that the list of devices of main equipment is additionally operable to store when main equipment sets up communication connection with slave unit is believed Breath, link information is corresponding with the ID stored in list of devices, and sending connection request to slave unit includes:Obtain link information, Link information with find it is corresponding with the producer ID of slave unit and the ID of device id all same;By link information, main equipment Producer ID and device id as connection request, be sent to slave unit.
The ID of the equipment that communication connection was set up with main equipment that is stored with the list of devices of main equipment, and the company of foundation Link information when connecing, such as:Set up magnitude of voltage during connection, current value, pattern and configuration information of connection etc..The connection is believed Breath is corresponding with the ID of equipment.When connection request is sent to slave unit, first according to find in main equipment list with from The producer ID of the equipment and ID of device id all same, according to corresponding relation, obtains the corresponding link information of the device id, then will The link information is sent to slave unit with the producer ID and device id of main equipment, and request sets up communication connection with slave unit.
Alternatively, before being connected with slave unit foundation, method also includes:Slave unit receives connection request;Slave unit exists Search whether to there is producer ID and the ID of device id all same with main equipment in the list of devices of slave unit, wherein slave unit List of devices is used to store the ID of the equipment that communication connection was set up with slave unit;If find with the producer ID of main equipment and The ID of device id all same, then slave unit receive connection request, and according to the hardware of link information HRP-configured slave device.
It is stored with the list of devices of slave unit and the device id of communication connection was set up with slave unit, slave unit receives master After the connection request that equipment sends, the producer ID and equipment for having with main equipment are searched whether in the list of devices of slave unit The ID of ID all sames, if finding the ID of the producer ID and device id all same with main equipment, the main equipment and slave unit Set up connection.Slave unit receives the connection request of main equipment transmission, and the link information sent according to main equipment, and configuration is hard Part, prepares to set up communication connection with main equipment.
Alternatively, link information, the producer ID of main equipment and device id, as connection request, are sent to slave unit it Afterwards, method also includes:According to the hardware of link information HRP-configured master device.
Be sent to after slave unit for link information, the producer ID of main equipment and device id by main equipment, and main equipment is according to hair The link information configuration hardware of slave unit is given, the preparation that communication connection is set up with slave unit is carried out.
Alternatively, the producer ID and device id all same for having with slave unit are searched whether in the list of devices of main equipment ID after, method also includes:If not finding the ID of the producer ID and device id all same with slave unit, and from setting It is standby to set up communication connection according to original mode.
After the producer ID and device id for obtaining slave unit, search whether to exist in the list of devices of main equipment with from setting The standby producer ID and ID of device id all same, if in the absence of equal with the producer ID and device id of slave unit in list of devices Identical ID, then judge that main equipment is set up with the slave unit first and communicate to connect, according to original mode for setting up communication connection Set up with slave unit and communicated to connect.
Alternatively, set up according to original mode after communication connection with slave unit, method also includes:By slave unit Producer ID and device id and the storage of the link information of communication connection are in the list of devices of main equipment.
If set up with slave unit communicating to connect first, according to original mode and slave unit for setting up communication connection Set up after connection, the producer ID and device id of the slave unit and the link information of this this communication connection are stored in main equipment List of devices in, and the producer ID and device id of slave unit are corresponding with link information.
Alternatively, stored in main equipment by the link information of the producer ID and device id of slave unit and communication connection Before in list of devices, method also includes:Judge whether the quantity of the ID stored in the list of devices of main equipment has reached to preset Stored number;If the quantity of the device id stored in the list of devices of main equipment has reached default stored number, delete Except the ID of the equipment for setting up communication connection with main equipment at first.
Limited by memory space, the device id of predetermined number can only be stored in the list of devices of main equipment, by slave unit Producer ID and device id and link information storage in the list of devices of main equipment before, first judge that the equipment of main equipment is arranged Whether the quantity of the device id stored in table has reached default quantity, if the quantity of the device id stored in list of devices Predetermined number is reached, has then been deleted the ID for setting up the equipment being connected with main equipment at first.
Alternatively, before obtaining the producer ID and device id of slave unit, method also includes:Sent to slave unit and obtain ID's Request, wherein, obtain the producer ID and device id of the request for acquisition request slave unit of ID.
In embodiments of the present invention, before the producer ID and device id for obtaining slave unit, first sent to slave unit and obtained The request of ID, the producer ID and device id of acquisition request slave unit, slave unit upon receiving the request, returns to the factory of slave unit Family ID and device id.
According to embodiments of the present invention, there is provided the method for building up communicated to connect between a kind of USB Type-C interface equipments Embodiment of the method, what is communicated to connect between a kind of optional USB Type-C interface equipments Fig. 2 according to embodiments of the present invention builds The flow chart of cube method, as shown in Fig. 2 the method comprises the following steps:
Step S202, the producer ID and device id of slave unit are sent to main equipment, and wherein main equipment passes through USB with slave unit Type-C interfaces carry out physical connection.
Main equipment carries out physical connection with slave unit by Type-C interfaces, by the connection, by the producer ID of slave unit Main equipment is sent to device id, main equipment judges whether to be set up with the slave unit according to the producer ID and device id of slave unit Communication connection, if connected, connection request is sent to slave unit.
Step S204, receives the connection request that main equipment sends, wherein, connection request is used for master devices request and slave unit Set up communication connection.
The connection request that main equipment sends is received, the request is to set up communication connection for master devices request and slave unit.
Step S206, determines whether to receive connection request according to the connection request for receiving.
According to the connection request for receiving, it is determined that receiving the connection request or not by by the connection request.
Step S208, after connection request is received, sets up with main equipment and communicates to connect.
If receiving the connection request, set up power supply with equipment and communicate to connect.
In embodiments of the present invention, using the connection request for receiving main equipment transmission, wherein, main equipment passes through with slave unit Type-C interfaces carry out physical connection, and connection request includes the producer ID of main equipment and device id;Arranged in the equipment of slave unit The producer ID and the ID of device id all same for having with main equipment are searched whether in table, wherein, the list of devices of slave unit is used for The ID of the equipment being connected was set up in storage with slave unit;If found and the producer ID of main equipment and device id all same ID, then receive connection request;The connection sent with the mode that main equipment sets up communication connection, the equipment connected by reception Request, reached with the purpose for setting up the equipment that be connected and quickly setting up connection, it is achieved thereby that simplification USB Type-C interfaces The technique effect of communication between devices establishment of connection mode, and then solve foundation between existing USB Type-C interface equipments The excessively complicated technical problem of the mode of communication connection.
Alternatively, connection request includes the producer ID and device id of main equipment, is judged whether to receive company according to connection request Connecing request includes:Search whether to exist in the list of devices of slave unit and the producer ID of main equipment and device id all same ID, wherein, the list of devices of slave unit is used to store the ID of the equipment that communication connection was set up with slave unit;If find with The producer ID of the main equipment and ID of device id all same, then receive connection request;If not finding the producer with main equipment The ID of ID and device id all same, then do not receive connection request.
It is stored with the list of devices of slave unit and the ID of the equipment being connected was set up with slave unit, is receiving main equipment After the connection request of transmission, searched whether in the list of devices of slave unit in the presence of equal with the producer ID and device id of main equipment Identical ID.If finding the ID of the producer ID and device id all same with main equipment in the list of devices of slave unit, Receive the connection request of main equipment transmission, if do not found in the list of devices of slave unit and the producer ID of main equipment and set The ID of standby ID all sames, then do not receive the connection request of main equipment transmission.
Alternatively, connection request also includes link information, wherein, link information is that main equipment is last with slave unit to be set up Information during communication connection, before communication connection is set up with main equipment, method also includes:According to link information HRP-configured slave device Hardware.
Link information is included in the link information that main equipment sends, the link information is built for last time main equipment with slave unit Link information during vertical communication connection, before slave unit and main equipment set up communication connection, according to link information configuration from The hardware of equipment.
Alternatively, before the producer ID and device id for sending slave unit to main equipment, method also includes:Receive main equipment The request of the acquisition ID of transmission.
In embodiments of the present invention, after main equipment carries out physical connection with slave unit, and slave unit is being sent to main equipment Producer ID and device id before, receive the request of the acquisitions ID that main equipment sends, the request is for obtaining the producer of slave unit ID and device id.
Fig. 3 is the method for building up of communication connection between a kind of optional Type-C interface equipments according to embodiments of the present invention Flow chart, as shown in figure 3, the method comprises the following steps:
Step S301, starts.Main equipment after Type-C interfaces carry out physical connection, begins setting up communication with slave unit Connection.
Step S302, obtains the producer ID and device id of slave unit.
It is alternatively possible to the request for obtaining ID is sent to slave unit, to obtain the producer ID and device id of slave unit.
Whether step S303, judge the producer ID and device id of slave unit in list of devices.
Get after the producer ID and device id of slave unit, search whether exist and this in the list of devices of main equipment The producer ID of slave unit and the device id of device id all same.
Step S304, if the producer ID and device id of slave unit are in list of devices, the quick connection of request.
If the producer ID and device id all same with above-mentioned slave unit can be found in the list of devices of main equipment Device id, then the slave unit set up with main equipment and be connected.Alternatively, main equipment sends connection request to the slave unit, please Ask to be set up with the slave unit and communicate to connect.Alternatively, the producer ID and device id of main equipment are included in the connection request, and Link information when last time is connected with slave unit.
Step S305, sets up connection.Main equipment is set up with slave unit and is connected.Alternatively, set up in main equipment and slave unit Before connection, slave unit searches whether the producer ID and device id all same for having with main equipment in the list of devices of slave unit ID, if finding the ID of the producer ID and device id all same with main equipment, receive main equipment transmission connection request, Hardware is configured according to link information.
Step S306, by the judgement of step S303, if the producer ID and device id of slave unit be not in list of devices, Request generic connectivity.
In step S303, the producer ID and equipment for having with the slave unit are searched whether in the list of devices of main equipment The device id of ID all sames.If not finding the producer ID and device id with the slave unit in the equipment row row of main equipment The device id of all same, then main equipment and the main first connection of slave unit, master devices request is set up with slave unit by original mode Connection.
Step S307, judges whether successful connection.
Judge main equipment and slave unit whether successful connection.
Step S308, if successful connection, stores the producer ID and device id and Connecting quantity of slave unit.
If main equipment and slave unit successful connection, the producer ID and device id and link information of slave unit are stored In the list of devices of main equipment and slave unit.
Step S309, if connection is unsuccessful, terminates.
If main equipment does not have successful connection with slave unit, terminate the foundation of this communication connection.
According to embodiments of the present invention, additionally provide communicate to connect between a kind of USB Type-C interface equipments set up device Embodiment, between a kind of optional USB Type-C interface equipments Fig. 4 according to embodiments of the present invention communicate to connect foundation The schematic diagram of device, as shown in figure 4, the device includes:
Acquiring unit 410, producer ID and device id for obtaining slave unit, wherein, slave unit passes through USB with main equipment Type-C interfaces carry out physical connection.
In embodiments of the present invention, main equipment carries out physical connection with slave unit by USB Type-C interfaces, obtains single Unit 410 obtains the producer ID and device id of slave unit by sending PD (Power Delivery agreements) message.
Searching unit 420, for being searched whether in the list of devices of main equipment in the presence of the producer ID with slave unit and being set The ID of standby ID all sames, wherein, the list of devices of main equipment is used to store the ID of the equipment that communication connection was set up with main equipment.
Due to setting up the equipment of producer ID and the device id storage in main equipment of the slave unit of communication connection with main equipment In list, therefore, acquiring unit 410 is got after the producer ID and device id of slave unit, and searching unit 420 is in main equipment The producer ID and the device id of device id all same for having with the slave unit are searched whether in list of devices, to judge the slave unit Whether communication connection was set up with main equipment.
First transmitting element 430, if the ID for finding producer ID and device id all same with slave unit, to Slave unit sends connection request, wherein, connection request is used to ask to set up communication connection with slave unit.
If can be found in the list of devices of main equipment and the producer ID of the slave unit and device id all same Device id, shows that the slave unit was set up with main equipment and is connected, then the main equipment of the first transmitting element 430 sends to the slave unit and connects Request is connect, request sets up communication connection with the slave unit.
First connection unit 440, after receiving connection request in slave unit, sets up with slave unit and communicates to connect.
When slave unit receive main equipment transmission connection request after, the slave unit of the first connection unit 440 set up power supply and Communication connection.
In embodiments of the present invention, using the producer ID and device id for obtaining slave unit, wherein, slave unit is led to main equipment Crossing USB Type-C interfaces carries out physical connection;The producer ID for having with slave unit is searched whether in the list of devices of main equipment With the ID of device id all same, wherein, the list of devices of main equipment is used to store the ID for setting up the equipment being connected with main equipment; If finding the ID of the producer ID and device id all same with slave unit, connection request is sent to slave unit, wherein, connection Ask for asking to be connected with slave unit foundation;After slave unit receives connection request, the mode being connected is set up with slave unit, By to the equipment for connecting transmission connection request was set up, having reached and having set up the equipment being connected the mesh for quickly setting up connection , it is achieved thereby that what is communicated to connect between simplifying Type-C interface equipments sets up the technique effect of mode, and then solve existing There is the excessively complicated technical problem of the mode that communication connection is set up between USB Type-C interface equipments.
According to embodiments of the present invention, additionally provide communicate to connect between a kind of USB Type-C interface equipments set up device Embodiment, between a kind of optional USB Type-C interface equipments Fig. 5 according to embodiments of the present invention communicate to connect foundation The schematic diagram of device, as shown in figure 5, the device includes:
Second transmitting element 510, for main equipment send slave unit producer ID and device id, wherein main equipment with from Equipment carries out physical connection by USB Type-C interfaces.
Main equipment carries out physical connection with slave unit by Type-C interfaces, and the second transmitting element 510, will by the connection The producer ID and device id of slave unit are sent to main equipment, main equipment according to the producer ID and device id of slave unit judge whether with The slave unit set up communication connection, if connected, connection request was sent to slave unit.
Receiving unit 520, the connection request for receiving main equipment transmission, wherein, connection request is used for master devices request Set up with slave unit and communicated to connect.
Receiving unit 520 receives the connection request that main equipment sends, and the request is to be built with slave unit for master devices request Vertical communication connection.
Determining unit 530, for determining whether to receive connection request according to the connection request for receiving.
Determining unit 530 according to the connection request for receiving, it is determined that receive the connection request or not by by the connection please Ask.
Second connection unit 540, for after connection request is received, being set up with main equipment and being communicated to connect.
If receiving the connection request, the second connection unit 540 is set up power supply and is communicated to connect with equipment.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in certain embodiment The part of detailed description, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, can be by other Mode is realized.Wherein, device embodiment described above is only schematical, such as division of described unit, Ke Yiwei A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of unit or module by some interfaces Connect, can be electrical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On unit.Some or all of unit therein can be according to the actual needs selected to realize the purpose of this embodiment scheme.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is to realize in the form of SFU software functional unit and as independent production marketing or use When, can store in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part for being contributed to prior art in other words or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, including some instructions are used to so that a computer Equipment (can be personal computer, server or network equipment etc.) perform each embodiment methods described of the invention whole or Part steps.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with store program codes Medium.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (14)

1. the method for building up for being communicated to connect between a kind of USB Type-C interface equipments, it is characterised in that including:
The producer ID and device id of slave unit are obtained, wherein, the slave unit is carried out with main equipment by USB Type-C interfaces Physical connection;
Search whether to exist in the list of devices of the main equipment and the producer ID of the slave unit and device id all same ID, wherein, the list of devices of the main equipment is used to store the ID of the equipment that communication connection was set up with the main equipment;
If finding the ID of the producer ID and device id all same with the slave unit, sending connection to the slave unit please Ask, wherein, the connection request is used to ask to be set up with the slave unit to communicate to connect;
After the slave unit receives the connection request, set up with the slave unit and communicated to connect.
2. method according to claim 1, it is characterised in that the list of devices of the main equipment is additionally operable to store the master Equipment sets up link information during communication connection with slave unit, and the link information is relative with the ID stored in the list of devices Should, sending connection request to the slave unit includes:
Obtain link information, the link information and the producer ID and the ID of device id all same with the slave unit that find It is corresponding;
Using the link information, the producer ID of the main equipment and device id as the connection request, it is sent to described from setting It is standby.
3. method according to claim 2, it is characterised in that described before communication connection is set up with the slave unit Method also includes:
The slave unit receives the connection request;
The slave unit searches whether the producer ID and equipment for having with the main equipment in the list of devices of the slave unit The ID of ID all sames, wherein the list of devices of the slave unit set up the equipment being connected with the slave unit for storing ID;
If finding the ID of the producer ID and device id all same with the main equipment, the slave unit receives the connection Request, and the hardware of the slave unit is configured according to the link information.
4. method according to claim 2, it is characterised in that by the producer ID of the link information, the main equipment With device id as the connection request, it is sent to after the slave unit, methods described also includes:
The hardware of the main equipment is configured according to the link information.
5. method according to claim 1, it is characterised in that search whether exist in the list of devices of the main equipment After the producer ID of the slave unit and the ID of device id all same, methods described also includes:
If the ID of the producer ID and device id all same with the slave unit is not found, with the slave unit according to head The mode of secondary connection sets up communication connection.
6. method according to claim 5, it is characterised in that set up according to the mode of first connection with the slave unit After communication connection, methods described also includes:
By the producer ID and device id of the slave unit and the storage of the link information of the communication connection in the main equipment In list of devices.
7. method according to claim 6, it is characterised in that by the producer ID and device id of the slave unit and institute Before the link information storage of communication connection is stated in the list of devices of the main equipment, methods described also includes:
Judge whether the quantity of the ID stored in the list of devices of the main equipment has reached default stored number;
If the quantity of the device id stored in the list of devices of the main equipment has reached default stored number, delete most The ID of the first equipment that communication connection is set up with the main equipment.
8. method according to claim 1, it is characterised in that described before obtaining the producer ID and device id of slave unit Method also includes:
The request for obtaining ID is sent to the slave unit, wherein, the request of the acquisition ID is used for slave unit described in acquisition request Producer ID and device id.
9. the method for building up for being communicated to connect between a kind of USB Type-C interface equipments, it is characterised in that including:
The producer ID and device id of slave unit are sent to main equipment, wherein the main equipment is connect with slave unit by USB Type-C Mouth carries out physical connection;
Receive the connection request that the main equipment sends, wherein, the connection request be used for the master devices request with it is described from Equipment sets up communication connection;
The connection request according to receiving determines whether to receive the connection request;
After the connection request is received, set up with the main equipment and communicated to connect.
10. method according to claim 9, it is characterised in that the connection request includes the producer ID of the main equipment And device id, judge whether that receiving the connection request includes according to the connection request:
Search whether to exist in the list of devices of the slave unit and the producer ID of the main equipment and device id all same ID, wherein, the list of devices of the slave unit is used to store the ID of the equipment that communication connection was set up with the slave unit;
If finding the ID of the producer ID and device id all same with the main equipment, receive the connection request;
If not finding the ID of the producer ID and device id all same with the main equipment, the connection is not received please Ask.
11. methods according to claim 10, it is characterised in that the connection request also includes link information, wherein, institute It is the main equipment and the last information set up when communicating to connect of the slave unit to state link information, is built with the main equipment Before vertical communication connection, methods described also includes:
The hardware of the slave unit is configured according to the link information.
12. methods according to claim 9, it is characterised in that the producer ID and equipment of slave unit are being sent to main equipment Before ID, methods described also includes:
Receive the request of the acquisition ID that the main equipment sends.
What is communicated to connect between a kind of 13. USB Type-C interface equipments sets up device, it is characterised in that including:
Acquiring unit, producer ID and device id for obtaining slave unit, wherein, the slave unit passes through USB with main equipment Type-C interfaces carry out physical connection;
Searching unit, for being searched whether in the list of devices of the main equipment in the presence of the producer ID with the slave unit and being set The ID of standby ID all sames, wherein, the list of devices of the main equipment is used to store set up communication connection with the main equipment The ID of equipment;
First transmitting element, if the ID for finding producer ID and device id all same with the slave unit, to institute State slave unit and send connection request, wherein, the connection request is used to ask to be set up with the slave unit to communicate to connect;
First connection unit, after receiving the connection request in the slave unit, communication link is set up with the slave unit Connect.
What is communicated to connect between a kind of 14. USB Type-C interface equipments sets up device, it is characterised in that including:
Second transmitting element, producer ID from slave unit to main equipment and device id for sending, wherein the main equipment with from setting It is standby that physical connection is carried out by USB Type-C interfaces;
Receiving unit, for receiving the connection request that the main equipment sends, wherein, the connection request is used for the main equipment Request is set up with the slave unit and is communicated to connect;
Determining unit, for determining whether to receive the connection request according to the connection request for receiving;
Second connection unit, for after the connection request is received, being set up with the main equipment and being communicated to connect.
CN201611121629.7A 2016-12-07 2016-12-07 USBType C interface communication between devices establishment of connection method and apparatus Pending CN106844259A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611121629.7A CN106844259A (en) 2016-12-07 2016-12-07 USBType C interface communication between devices establishment of connection method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611121629.7A CN106844259A (en) 2016-12-07 2016-12-07 USBType C interface communication between devices establishment of connection method and apparatus

Publications (1)

Publication Number Publication Date
CN106844259A true CN106844259A (en) 2017-06-13

Family

ID=59139767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611121629.7A Pending CN106844259A (en) 2016-12-07 2016-12-07 USBType C interface communication between devices establishment of connection method and apparatus

Country Status (1)

Country Link
CN (1) CN106844259A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107704414A (en) * 2017-08-30 2018-02-16 威盛电子股份有限公司 Electronic device capable of detecting self-connection and control method thereof
CN108132901A (en) * 2017-12-21 2018-06-08 联想(北京)有限公司 A kind of information transmission equipment and method
TWI689815B (en) * 2018-06-29 2020-04-01 圓剛科技股份有限公司 Judgment method for hardware compatibility
CN111046023A (en) * 2019-12-11 2020-04-21 金蝶智慧科技(深圳)有限公司 Database connection management method, server and computer storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1735194A (en) * 2004-08-11 2006-02-15 汤姆森许可贸易公司 Device pairing
CN101060613A (en) * 2006-04-21 2007-10-24 华为技术有限公司 Digital TV broadcasting service receiving and deciphering method, master terminal and its slave terminal
CN102571708A (en) * 2010-12-27 2012-07-11 联想(北京)有限公司 Security certification method, portable terminal and portable mobile equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1735194A (en) * 2004-08-11 2006-02-15 汤姆森许可贸易公司 Device pairing
CN101060613A (en) * 2006-04-21 2007-10-24 华为技术有限公司 Digital TV broadcasting service receiving and deciphering method, master terminal and its slave terminal
CN102571708A (en) * 2010-12-27 2012-07-11 联想(北京)有限公司 Security certification method, portable terminal and portable mobile equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107704414A (en) * 2017-08-30 2018-02-16 威盛电子股份有限公司 Electronic device capable of detecting self-connection and control method thereof
CN108132901A (en) * 2017-12-21 2018-06-08 联想(北京)有限公司 A kind of information transmission equipment and method
TWI689815B (en) * 2018-06-29 2020-04-01 圓剛科技股份有限公司 Judgment method for hardware compatibility
CN111046023A (en) * 2019-12-11 2020-04-21 金蝶智慧科技(深圳)有限公司 Database connection management method, server and computer storage medium

Similar Documents

Publication Publication Date Title
CN106844259A (en) USBType C interface communication between devices establishment of connection method and apparatus
CN106207687A (en) The conversion method of data-interface and device
CN105871977A (en) Long connection establishment method and system, and devices
CN104935641B (en) A kind of method and apparatus for accelerating file transmission
CN108123925A (en) The method, apparatus and system of resource-sharing
CN104811357B (en) A kind of Internet of things system
CN107846457A (en) Load-balancing method, device, storage medium and the system of server cluster
CN107343005B (en) Bootstrap information sending method and device based on multi-protocol stack
CN107801047B (en) Object specifying method, storage medium, electronic device and system for making friends through video
CN104954158B (en) A kind of connection management method and connection pool control equipment
CN103476019B (en) Method, system and home subscriber server for obtaining access point name
CN102724140B (en) Instant messaging good friend's addition means and device
CN103685191B (en) Data synchronizing system and method
CN107454659A (en) A kind of terminal identification method, system, terminal device and base station
CN108038643A (en) Intelligent goods dispatch management method and system
CN106411917B (en) A kind of method and relevant device of file transmission detection
CN104601679B (en) Equipment soft method, mobile terminal and server
CN106683214A (en) Method and device for acquiring attendance verification data
CN108021639A (en) Information-pushing method, device, server and storage medium
CN107086947A (en) Equipment, the shared network of interconnection, interconnection sharing method and equipment connection method are shared in network interconnection
CN107766179A (en) A kind of backup method deleted again based on source data, device and storage medium
CN106453775A (en) Information inquiry method, system and apparatus based on address book
CN106412903A (en) Mobile terminal data transmission method and device
CN107093917A (en) A kind of wireless charging method and wireless charging router
CN108551414A (en) Network-building method, apparatus and system, method for transmitting signals and the device of air-conditioning system

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