CN106294256A - Recognition methods and identification device - Google Patents
Recognition methods and identification device Download PDFInfo
- Publication number
- CN106294256A CN106294256A CN201610648775.9A CN201610648775A CN106294256A CN 106294256 A CN106294256 A CN 106294256A CN 201610648775 A CN201610648775 A CN 201610648775A CN 106294256 A CN106294256 A CN 106294256A
- Authority
- CN
- China
- Prior art keywords
- interface
- type
- usb type
- usb
- unicom
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0042—Universal 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)
- Power Sources (AREA)
Abstract
The recognition methods that disclosure embodiment provides, for identifying the interface type of the second equipment connected with the first equipment, first equipment has a USB Type C interface, having on second equipment and the 2nd USB Type C interface of USB Type C interface pairing, recognition methods includes: detection the oneth USB Type C interface and the 2nd USB Type C interface whether UNICOM;When a USB Type C interface and the 2nd USB Type C interface UNICOM, obtain the interface type of the 2nd USB Type C interface;A simulation USB Type C interface at least one times and the 2nd USB Type C interface disconnect the operation of Hou Zai UNICOM;Again obtain the interface type of the 2nd USB Type C interface as first interface type;And perform and the interface function of first interface type matching.The recognition methods that disclosure embodiment provides, solves the problem that cannot correctly identify interface type when inserting slow, thus ensures to interact with correct interface type and equipment.Disclosure embodiment provides a kind of simultaneously and identifies device and equipment.
Description
Technical field
Disclosure embodiment relates to field of mobile terminals, is specifically related to the recognition methods of a kind of external equipment and identifies dress
Put.
Background technology
In the equipment of such as mobile phone and flat board etc, have begun to use USB Type-C interface, for data communication
And power supply.USB Type-C interface allows positive and negative to insert, thus improves the ease for use of USB interface, can support up to 100W
Power output and allow bidirectional power supply, such that it is able to carry out quick charge and high-power power supply, video-audio signal can be carried out
Transmission, extended capability is strong.
But, the present inventor finds during invention, and prior art exists following defect: due to USB
Coordinating between Type-C joint chair and plug lacks mechanical guide mechanism, and user is easy to occur that insertion slowly, is inserted and slowly may be used
The interface type of device Errors identification external equipment can be caused, thus cause equipment to take the mode of mistake to process external equipment.
Expect to improve recognition methods when USB Type-C interface inserts further, thus can also be just when inserting slow
Really identify interfaces for external devices.
Summary of the invention
In view of this, disclosure embodiment provides recognition methods and identifies device, is used for identifying interfaces for external devices, to solve
Certainly inserting the problem that the method that slowly cuts in and out correctly identifies interfaces for external devices.
According to the first aspect of disclosure embodiment, the disclosure provides a kind of recognition methods, for identifying and the first equipment
The interface type of the second equipment connected, described first equipment has a USB Type-C interface, and described second equipment has
Having and the 2nd USB Type-C interface of a USB Type-C interface pairing, described recognition methods includes: detect described first
USB Type-C interface and described 2nd USB Type-C interface whether UNICOM;When a described USB Type-C interface and described
During the 2nd USB Type-C interface UNICOM, at least simulate the most described USB Type-C interface and described 2nd USB
Type-C interface disconnects the operation of Hou Zai UNICOM;Obtain the interface type of described 2nd USB Type-C interface, and as first
Interface type;And perform and the interface function of described first interface type matching.
Alternatively, described interface type includes standard down port, charging downlink port and special charging port.
Alternatively, also include: at least simulate the most described USB Type-C interface and described 2nd USB described
Before the step of the operation that Type-C interface disconnects Hou Zai UNICOM, the interface type obtaining described 2nd USB Type-C interface is made
It it is the second interface type;At least simulate the most described USB Type-C interface described in then and described 2nd USB Type-C connects
The operation mouthful disconnecting Hou Zai UNICOM is: when described second interface type is standard down port, at least simulate the most described the
One USB Type-C interface and described 2nd USB Type-C interface disconnect the operation of Hou Zai UNICOM.
Alternatively, the time interval of simulation every time exceedes Preset Time.
Alternatively, by detecting a described USB Type-C interface and the power line of described 2nd USB Type-C interface
A described USB Type-C interface and described 2nd USB Type-C interface whether UNICOM is determined with the signal of telecommunication on data wire.
According to the second aspect of disclosure embodiment, the disclosure provides one to identify device, for identifying and the first equipment
The interface type of the second equipment connected, described first equipment has a USB Type-C interface, and described second equipment has
Having and the 2nd USB Type-C interface of a USB Type-C interface pairing, described identification device includes: detection module, is used for
Detect a described USB Type-C interface and described 2nd USB Type-C interface whether UNICOM;Analog module, for working as institute
When stating a USB Type-C interface and described 2nd USB Type-C interface UNICOM, at least simulate the most described USB
Type-C interface and described 2nd USB Type-C interface disconnect the operation of Hou Zai UNICOM;First acquisition module, is used for obtaining institute
State the interface type of the 2nd USB Type-C interface, and as first interface type;Perform module, for performing and described first
The interface function of interface type coupling.
Alternatively, described interface type includes standard down port, charging downlink port and special charging port.
Alternatively, also include: the second acquisition module, at least simulating the most described USB Type-C connect described
Before the step of the operation that mouth and described 2nd USB Type-C interface disconnect Hou Zai UNICOM, obtain described 2nd USB Type-C
The interface type of interface is as the second interface type;The most described analog module is: when described second interface type is standard down
During port, at least simulate the most described USB Type-C interface and described 2nd USB Type-C interface disconnects Hou Zai UNICOM
Operation.
Alternatively, the time interval that described analog module is simulated every time exceedes Preset Time.
Alternatively, by detecting a described USB Type-C interface and the power line of described 2nd USB Type-C interface
A described USB Type-C interface and described 2nd USB Type-C interface whether UNICOM is determined with the signal of telecommunication on data wire.
According to the third aspect of disclosure embodiment, the disclosure provides a kind of electronic equipment, including above-mentioned identification device.
The recognition methods that disclosure embodiment provides, for identifying the interface type of external equipment, by least one times
Simulated operation, the interface simulating the first equipment and external equipment disconnects Hou Zai UNICOM, re-recognizes external after simulated operation
The interface type of equipment, solves and is inserting the problem that the method that slowly cuts in and out correctly identifies the interface type of external equipment, really
Protect the correct interface type identifying external equipment, thus ensure to interact with correct interface type and external equipment.
Accompanying drawing explanation
By referring to the following drawings description to disclosure embodiment, above-mentioned and other purpose of disclosure embodiment,
Feature and advantage will be apparent from, in the accompanying drawings:
Fig. 1 is the flow chart of the recognition methods according to disclosure embodiment;
Fig. 2 is the flow chart of the recognition methods according to another embodiment of the disclosure;
Fig. 3 is the structure chart identifying device according to disclosure embodiment;
Fig. 4 is the structure chart identifying device according to another embodiment of the disclosure;
Fig. 5 is the structure chart of a kind of equipment according to disclosure embodiment;
Fig. 6 is the structural representation of the computer program for recognition methods according to disclosure embodiment.
Detailed description of the invention
Below based on embodiment, disclosure embodiment is described, but disclosure embodiment is not restricted to these
Embodiment.In below the details of disclosure embodiment being described, detailed describe some specific detail sections.To this area
The description not having these detail sections for technical staff can also understand disclosure embodiment completely.In order to avoid obscuring these public affairs
Opening the essence of embodiment, known method, process, flow process describe the most in detail.Additionally accompanying drawing is not necessarily drawn to scale.
Flow chart in accompanying drawing, block diagram illustrate the possible system frame of the system of disclosure embodiment, method, device
Square frame on frame, function and operation, flow chart and block diagram can represent one, program segment or only one section of code, described, journey
Sequence section and code are all used to realize the executable instruction of regulation logic function.Regulation logic merit is realized it should also be noted that described
The executable instruction of energy can reconfigure, thus generates new and program segment.Therefore the square frame of accompanying drawing and square frame order are only
It is used to preferably illustrate process and the step of embodiment, and should be in this, as the restriction to invention itself.
Fig. 1 is the flow chart of the recognition methods according to disclosure embodiment, and this is used for identifying and the first equipment connects the
The interface type of two equipment, the first equipment has a USB Type-C interface, the second equipment has and a USB Type-
2nd USB Type-C interface of C interface pairing.First equipment includes that PC, server, mobile terminal, various Pad series are produced
Product etc..Second equipment include mobile USB flash disk, hard disk, mobile phone, flat board series, camera, game machine, hub, mouse, keyboard,
The equipment such as charging adapter.Described recognition methods includes step 101-104.
In a step 101, detection the oneth USB Type-C interface and the 2nd USB Type-C interface whether UNICOM.
USB Type-C interface has power line pin VBUS, GND and data wire pin D+, D-and other pins.Can
To utilize software detection interface, or use independent of system resource, by the interaction detection interface of USB data line pin D+, D-.
Concrete system architecture is depended in the differentiation of these functions.Such as, manage power supply by microcontroller or power management chip to set
Standby, may be more likely to use integrated circuit to carry out Port detecting and electric current selects.Further looking at USB Type-C interface can
To find, the pin of VBUS and GND on both sides is longer, and middle pin D+, D-are shorter, and such practice is to first power again
Communication.Different with the length of data pin yet with power pins, power pins may be caused to have connected, and data are drawn
Foot does not the most connect, and the interval time the longest interval time observed that this pin inserts is 200ms.Thus, system detects
During interface, if the data pin of centre does not connect, system can't detect the signal of telecommunication in data pin, consequently, it is possible to cause
System docking mouth type misjudgment.
In a step 102, after at least first USB Type-C interface of simulation and the 2nd USB Type-C interface disconnect
The operation of UNICOM again.
In this step, in order to ensure correctly judging interface type, perform interface at least one times and disconnect and UNICOM again
Operation.First simulation the oneth USB Type-C interface and the 2nd USB Type-C interface disconnect, then simulate a USB Type-C and connect
Mouthful and the 2nd USB Type-C interface UNICOM.When simulation disconnects, software or integrated circuit can be used to realize.Such as, by repairing
Change the register value of the power supply state of the power pins of first equipment of sign, so that the telecommunications in the power pins of the first equipment
Number change (such as, reducing to low level from high level).At this moment, although the USB Type-C interface of the first equipment and the second equipment
Interface is physically located together connection status, but be logically off.During simulation UNICOM, characterize the first equipment by amendment
The register value of the power supply state of power pins, so that the signal of telecommunication in the power pins of the first equipment changes (such as, from low
Level reduces to high level).At this moment, the USB Type-C interface of the first equipment and the USB Type-C interface of the second equipment not only exist
It is physically in connection status, logically Ye Shi UNICOM.
In step 103, obtain the interface type of the 2nd USB Type-C interface, and as first interface type.
In this step, by interactive communication after a USB Type-C interface and the 2nd USB Type-C interface UNICOM,
Obtain the interface type of the 2nd USB Type-C interface.Such as, first identify that the equipment of connection is full speed or high-speed equipment, so
After be enumeration process, in this process the first equipment to second equipment send various USB command, the second equipment returns after receiving order
Return device descriptor, configuration descriptor, interface descriptor, endpoint descriptor, identify connecing of this equipment by these descriptors
Mouth type.Communication steps when it will be understood to those skilled in the art that interface UNICOM is determined by USB Type-C interface protocol,
Here the most illustrative to it.Interface type includes such as: standard down port (be mainly used in communication), charge descending
Port (being mainly used in charging) and special charging port (being mainly used in large current charge).
At step 104, the interface function with first interface type matching is performed.
Standard down port is used for connecting peripheral hardware, such as mouse, keyboard, for the input and output of signal.Charging downstream end
Mouth, special charging port are for giving this equipment charge by external equipment, and determine the big of charging current according to interface type
Little, direction.
In an optional embodiment, above-mentioned recognition methods also includes: according to the interface identified in step 103
Type, is the second equipment configuration parameter.
The recognition methods that disclosure embodiment provides, for identifying the interface type of external equipment, by least one times
Simulated operation, the interface simulating the first equipment and external equipment disconnects Hou Zai UNICOM, re-recognizes external after simulated operation
The interface type of equipment, solves and is inserting the problem that the method that slowly cuts in and out correctly identifies the interface type of external equipment, really
Protect the correct interface type identifying external equipment, thus ensure to interact with correct interface type and external equipment.
Fig. 2 is the flow chart of the recognition methods according to another embodiment of the disclosure.Described recognition methods includes step 200-
205。
In step 200, detection the oneth USB Type-C interface and the 2nd USB Type-C interface whether UNICOM.
USB Type-C interface has power line pin VBUS, GND and data wire pin D+, D-and other pins.Device
Part can utilize software detection interface, or uses independent of system resource, by the interaction detection of USB data line pin D+, D-
Interface.Concrete system architecture is depended in the differentiation of these functions.Such as, electricity is managed by microcontroller or power management chip
Source device, may be more likely to use integrated circuit to carry out Port detecting and electric current selects.Further look at USB Type-C to connect
Mouthful it is found that the pin of VBUS and GND on both sides is longer, middle pin D+, D-are shorter, and such practice is to first supply
Electricity communicates again.Different with the length of data pin yet with power pins, power pins may be caused to have connected, and count
The most not connecting according to pin, the interval time the longest interval time observed that this pin inserts is 200ms.Thus, system
During detection interface, if the data pin of centre does not connect, system can't detect the signal of telecommunication in data pin, consequently, it is possible to
Cause system docking mouth type misjudgment.
In step 201, the interface type of the 2nd USB Type-C interface is obtained.
Interface type includes such as: standard down port (SDP), charging downlink port (CDP) and special charging port
(SCP).After equipment UNICOM, according to USB Type-C interface protocol, perform the first equipment and the communication of the second equipment, such as,
First equipment sends USB command to the second equipment, and according to order feedback, it is thus achieved that device descriptor, configuration descriptor, interface are retouched
State symbol, endpoint descriptor, identified the interface type of this equipment by these descriptors.
In step 202., it is judged that whether the interface type of the 2nd USB Type-C interface is standard down port.If the
The interface type of two USB Type-C interfaces is standard down port, performs step 203.
Owing to non-standard downlink port kind equipment is likely mistaken as standard down port in the case of inserting slowly
Kind equipment, therefore judge be standard down port kind equipment, need to perform further simulated operation.
In step 203, after at least first USB Type-C interface of simulation and the 2nd USB Type-C interface disconnect
The operation of UNICOM again.
In this step, first simulation makes the USB Type-C interface of the first equipment and the USB Type-C of the second equipment connect
Mouthful disconnect, then simulate the USB Type-C interface UNICOM of the USB Type-C interface of the first equipment and the second equipment.Simulation
Mode and abovementioned steps just as, the time interval of simulation exceedes Preset Time every time.Such as, the slowest insertion time is 200ms,
The interval time so simulated is more than 200ms.
In step 204, again obtain the interface type of the 2nd USB Type-C interface, and as first interface type.
In this step, after the USB Type-C interface UNICOM again of the first equipment and the second equipment, repeat in step 201
Process.
In step 205, the interface function with first interface type matching is performed.
Such as, communicated with the signal of external equipment by standard down port.By charging downlink port and special charging
Port is to equipment charge, and determines the size of charging current, direction according to interface type.
The recognition methods that disclosure embodiment provides, compares with the embodiment of Fig. 1, adds obtaining step and judges step
Suddenly, when the interface type of the 2nd USB Type-C interface is standard down port, just perform simulated operation, it is to avoid to impossible
The interface type of erroneous judgement is simulated operation, so that this recognition methods more efficiency.
Fig. 3 is the structure chart identifying device according to disclosure embodiment.This identification device 30 this be used for identify and first
The interface type of the second equipment that equipment connects, the first equipment has a USB Type-C interface, the second equipment has and
2nd USB Type-C interface of the oneth USB Type-C interface pairing.This identification device 30 is applied on the first equipment, including
Detection module 301, analog module the 302, first acquisition module 303 and execution module 304.
Whether detection module 301 is used for detecting a described USB Type-C interface and described 2nd USB Type-C interface
UNICOM.
Analog module 302 is used for when a USB Type-C interface and the 2nd USB Type-C interface UNICOM, at least mould
Intend a first USB Type-C interface and the 2nd USB Type-C interface and disconnect the operation of Hou Zai UNICOM.
First acquisition module 303 is used for obtaining the interface type of the 2nd USB Type-C interface, and as first interface class
Type.
Perform module 304 for performing and the interface function of first interface type matching.Interface type includes standard down
Port, charging downlink port and special charging port.
Fig. 4 is the structure chart identifying device according to another embodiment of the disclosure.This identification device 40 is applied to have USB
On first equipment of Type-C interface, obtain mould including detection module the 400, first acquisition module 401, analog module 402, second
Block 403 and execution module 404.First acquisition module 401, the embodiment phase of analog module the 402, second acquisition module 403 and Fig. 3
With, the most just repeat no more.
Whether detection module 400 is used for detecting a described USB Type-C interface and described 2nd USB Type-C interface
UNICOM.Alternatively, by detection the oneth USB Type-C interface and the power line of the 2nd USB Type-C interface and data wire
The signal of telecommunication determine a USB Type-C interface and the 2nd USB Type-C interface whether UNICOM.
Second acquisition module 401 is for obtaining the interface type of the 2nd USB Type-C interface as the second interface type.
Analog module 402 is for the second interface type got according to the second acquisition module 401, and at least simulation one is one after another
One USB Type-C interface and the 2nd USB Type-C interface disconnect the operation of Hou Zai UNICOM.Alternatively, each mould of analog module
The time interval intended exceedes Preset Time.
First acquisition module 403 is used for obtaining the interface type of the 2nd USB Type-C interface, and as first interface class
Type.
Perform module 404 for performing and the interface function of first interface type matching.Interface type includes standard down
Port, charging downlink port and special charging port.
The identification device that disclosure embodiment provides, for identifying the interface type of external equipment, real by analog module
Simulated operation the most at least one times, re-recognizes the interface type of external equipment after simulated operation, solves in insertion slow
The problem of the interface type of wrong identification external equipment time slow, it is ensured that the correct interface type identifying equipment.
The apparatus and method that it will be understood to those skilled in the art that embodiment are corresponding, because describing device
During embodiment, complete in the way of the simplest.
Fig. 5 is the structure chart of a kind of equipment according to disclosure embodiment.With reference to Fig. 5, a kind of equipment 50, including by always
At least one processor 501 of line connection and memorizer 502.Memorizer 502 storage has various computer instruction, processor 501
From memorizer 502, read one group of instruction, perform this instruction to complete following operation: detection the oneth USB Type-C interface and
2nd USB Type-C interface whether UNICOM;When a USB Type-C interface and the 2nd USB Type-C interface UNICOM, extremely
First USB Type-C interface of simulation and the 2nd USB Type-C interface disconnect the operation of Hou Zai UNICOM less;Obtain second
The interface type of USB Type-C interface, and as first interface type;And perform and the interface of first interface type matching
Function.
Fig. 6 is the structural representation of the computer program for recognition methods according to disclosure embodiment.
As shown in Figure 6, the computer program 60 of disclosure embodiment, signal bearing medium 601 can be included.Signal
Bearing medium 601 is instruction carrier, can include that one or more instruction 6011, instruction 6011 are being performed by such as processor
Time, the function described in above-described embodiment can be completed.Such as, instruction 6011 is executed to accomplish following function: detection the
One USB Type-C interface and the 2nd USB Type-C interface whether UNICOM;As USB Type-C interface and the 2nd USB
During Type-C interface UNICOM, an at least first USB Type-C interface of simulation and the 2nd USB Type-C interface joins after disconnecting again
Logical operation;Obtain the interface type of the 2nd USB Type-C interface, and as first interface type;And perform to connect with first
The interface function of mouth type matching.
In some implementations, signal bearing medium 601 can include computer-readable medium 6012, such as, but not limited to firmly
Disk drive, compact disk (CD), digital universal disc (DVD), number tape, memorizer etc..In some implementations, signal bearing medium
601 can include recordable media 6013, such as, but not limited to memorizer, read/write (R/W) CD, R/W DVD etc..Real at some
In Xian, signal bearing medium 601 can include communication media 6014, such as, but not limited to numeral and/or analogue communication medium (example
As, optical fiber cable, waveguide, wired communications links, wireless communication link etc.).
The computer program of disclosure embodiment, the program of performance hardware driving layer, such as, USB interface drives journey
Sequence, Stack driver program.The program driving layer is disconnected and the operation of UNICOM by analog interface, solve in prior art
The problem of the interface type that possible wrong identification is external in the case of inserting slowly.
Disclosure embodiment combines unit and the algorithm steps of each example that the embodiments described herein describes, it is possible to
With electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate the interchangeability of hardware and software,
Composition and the step of each example has the most been generally described according to function.These functions are actually with hardware also
It is that software mode performs, depends on application-specific and the design constraint of technical scheme.Professional and technical personnel can be to often
Individual specifically should being used for uses different methods to realize described function, but this realization is it is not considered that real beyond the disclosure
Execute the scope of example.
System and method according to disclosure embodiment can be deployed on single or multiple server.For example, it is possible to will
Different modules is disposed on a different server respectively, forms private server.Or, can be distributed on multiple servers
Formula disposes identical functional unit or system, to alleviate load pressure.Described server includes but not limited at same local
Net and the multiple PCs connected by Internet, PC server, rolling reamer machine, supercomputer etc..
The foregoing is only the preferred embodiment of disclosure embodiment, be not limited to disclosure embodiment, for this
For skilled person, disclosure embodiment can have various change and change.All spirit in disclosure embodiment and former
Any modification, equivalent substitution and improvement etc. made within reason, within should be included in the protection domain of disclosure embodiment.
Claims (11)
1. a recognition methods, for identifying the interface type of the second equipment connected with the first equipment, described first equipment tool
There is a USB Type-C interface, described second equipment has and the 2nd USB of a USB Type-C interface pairing
Type-C interface, described recognition methods includes:
Detect a described USB Type-C interface and described 2nd USB Type-C interface whether UNICOM;
When a described USB Type-C interface and described 2nd USB Type-C interface UNICOM, at least simulate the most described
One USB Type-C interface and described 2nd USB Type-C interface disconnect the operation of Hou Zai UNICOM;
Obtain the interface type of described 2nd USB Type-C interface, and as first interface type;And
Perform and the interface function of described first interface type matching.
Recognition methods the most according to claim 1, wherein, described interface type include standard down port, charge descending
Port and special charging port.
Recognition methods the most according to claim 1, also includes: at least simulate the most described USB Type-C described
Before the step of the operation that interface and described 2nd USB Type-C interface disconnect Hou Zai UNICOM, obtain described 2nd USB
The interface type of Type-C interface is as the second interface type;
At least simulate described in then the most described USB Type-C interface and described 2nd USB Type-C interface disconnect after again
The operation of UNICOM is: when described second interface type is standard down port, at least simulate the most described USB Type-
C interface and described 2nd USB Type-C interface disconnect the operation of Hou Zai UNICOM.
Recognition methods the most according to claim 1, wherein, the time interval of simulation exceedes Preset Time every time.
Recognition methods the most according to claim 1, wherein, by detecting a described USB Type-C interface and described the
The signal of telecommunication on the power line of two USB Type-C interfaces and data wire determines a described USB Type-C interface and described
Two USB Type-C interfaces whether UNICOM.
6. identify a device, for identifying the interface type of the second equipment connected with the first equipment, described first equipment tool
There is a USB Type-C interface, described second equipment has and the 2nd USB of a USB Type-C interface pairing
Type-C interface, described identification device includes:
Detection module, is used for detecting a described USB Type-C interface and described 2nd USB Type-C interface whether UNICOM;
Analog module, is used for when a described USB Type-C interface and described 2nd USB Type-C interface UNICOM, at least
Simulate the most described USB Type-C interface and described 2nd USB Type-C interface disconnect Hou Zai UNICOM operation;
First acquisition module, for obtaining the interface type of described 2nd USB Type-C interface, and as first interface type;
Perform module, for performing and the interface function of described first interface type matching.
Identification device the most according to claim 6, wherein, described interface type include standard down port, charge descending
Port and special charging port.
Identification device the most according to claim 7, also includes: the second acquisition module, at least simulating once described
Before the step of the operation that a described USB Type-C interface and described 2nd USB Type-C interface disconnect Hou Zai UNICOM, obtain
Take the interface type of described 2nd USB Type-C interface as the second interface type;
The most described analog module is: when described second interface type is standard down port, at least simulate the most described first
USB Type-C interface and described 2nd USB Type-C interface disconnect the operation of Hou Zai UNICOM.
Identification device the most according to claim 6, wherein, the time interval that described analog module is simulated every time exceedes default
Time.
Identification device the most according to claim 6, wherein, by detecting a described USB Type-C interface and described
The signal of telecommunication on the power line of the 2nd USB Type-C interface and data wire determines a described USB Type-C interface and described
2nd USB Type-C interface whether UNICOM.
11. 1 kinds of electronic equipments, including the identification device described in any one of claim 6 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610648775.9A CN106294256A (en) | 2016-08-09 | 2016-08-09 | Recognition methods and identification device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610648775.9A CN106294256A (en) | 2016-08-09 | 2016-08-09 | Recognition methods and identification device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106294256A true CN106294256A (en) | 2017-01-04 |
Family
ID=57667246
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610648775.9A Pending CN106294256A (en) | 2016-08-09 | 2016-08-09 | Recognition methods and identification device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106294256A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109066837A (en) * | 2018-07-18 | 2018-12-21 | 奇酷互联网络科技(深圳)有限公司 | The charging method of mobile terminal and mobile terminal, device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090182935A1 (en) * | 2006-05-19 | 2009-07-16 | Xanto Technologies S.R.L. | Mass storage device, in particular of the usb type, and related method for transferring data |
CN201508549U (en) * | 2009-09-02 | 2010-06-16 | 中兴通讯股份有限公司 | Device and system for controlling on-off of USB (universal serial bus) interface |
CN102831084A (en) * | 2012-08-16 | 2012-12-19 | 刘伟 | Controller and controlling method for re-identifying USB (universal serial bus) equipment |
CN103763725A (en) * | 2014-01-26 | 2014-04-30 | 天津市康凯特软件科技有限公司 | Mobile terminal centralized control test and management method and device |
-
2016
- 2016-08-09 CN CN201610648775.9A patent/CN106294256A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090182935A1 (en) * | 2006-05-19 | 2009-07-16 | Xanto Technologies S.R.L. | Mass storage device, in particular of the usb type, and related method for transferring data |
CN201508549U (en) * | 2009-09-02 | 2010-06-16 | 中兴通讯股份有限公司 | Device and system for controlling on-off of USB (universal serial bus) interface |
CN102831084A (en) * | 2012-08-16 | 2012-12-19 | 刘伟 | Controller and controlling method for re-identifying USB (universal serial bus) equipment |
CN103763725A (en) * | 2014-01-26 | 2014-04-30 | 天津市康凯特软件科技有限公司 | Mobile terminal centralized control test and management method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109066837A (en) * | 2018-07-18 | 2018-12-21 | 奇酷互联网络科技(深圳)有限公司 | The charging method of mobile terminal and mobile terminal, device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111697663B (en) | Charging circuit and charging cable | |
US8533380B2 (en) | Apparatus for peer-to-peer communication over a universal serial bus link | |
CN204243832U (en) | A multi-interface charging circuit compatible with charging and output | |
CN102301356A (en) | Universal Serial Bus Host To Host Communications | |
CN104063348B (en) | Realize the device and method of compatible USB communications and voice communication | |
JP2010521131A (en) | Charging cable with USB-like connector | |
CN105677420A (en) | Method and device for interface pin configuration | |
CN105868140A (en) | A mobile apparatus | |
CN103477301A (en) | Method and device for charging energy storage devices | |
WO2018032503A1 (en) | Power adapter, terminal device, charging system, and charging method | |
CN105071484B (en) | A kind of charging method and device of the terminal with data exchanging function | |
CN112799985B (en) | USB interface control method, USB control circuit and intelligent networking equipment mainboard | |
CN114090360B (en) | Server debugging device, method and medium thereof, and server debugger | |
CN103761202B (en) | A kind of data storage node hard disk position identification method and system | |
CN207319223U (en) | Computing switching device based on PCIE X16-MXM | |
CN106294256A (en) | Recognition methods and identification device | |
CN107153456A (en) | OTG connections control method, OTG connection control devices and electronic equipment | |
CN107544880A (en) | A kind of USB hot plugs stability test method and test device | |
CN107391332A (en) | A kind of storage system and debugging system | |
CN114443385B (en) | A multi-interface testing device and server system | |
CN214540750U (en) | USB control circuit, intelligent networking equipment mainboard and electronic equipment | |
CN112069109B (en) | Extension adapter plate, adapter device and adapter method | |
CN207249662U (en) | Adaptive usb synchronizers | |
TWI634428B (en) | Hub | |
TWI780394B (en) | Data cable for fast charging |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170104 |