CN108920397A - device identification method, device, storage medium and electronic equipment - Google Patents

device identification method, device, storage medium and electronic equipment Download PDF

Info

Publication number
CN108920397A
CN108920397A CN201810717922.2A CN201810717922A CN108920397A CN 108920397 A CN108920397 A CN 108920397A CN 201810717922 A CN201810717922 A CN 201810717922A CN 108920397 A CN108920397 A CN 108920397A
Authority
CN
China
Prior art keywords
interface
pin
type
electronic equipment
external equipment
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.)
Granted
Application number
CN201810717922.2A
Other languages
Chinese (zh)
Other versions
CN108920397B (en
Inventor
靳勇
陈观荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810717922.2A priority Critical patent/CN108920397B/en
Publication of CN108920397A publication Critical patent/CN108920397A/en
Application granted granted Critical
Publication of CN108920397B publication Critical patent/CN108920397B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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]

Abstract

This application discloses a kind of device identification method, device, storage medium and electronic equipments.This method can be applied to electronic equipment, the electronic equipment provides the first detection voltage for the default pin of its Type-C interface, the default pin is non-configurating channel pin, when the Type-C interface that external equipment is not detected accesses the Type-C interface of the electronic equipment, the configurating channel pin of the Type-C interface of the electronic equipment is without detection voltage.This method includes:When receiving the instruction for being used to indicate progress external equipment identification from from user, default pin is grounded;When detecting default pin ground connection, trigger signal is generated;According to trigger signal, the second detection voltage is provided for configurating channel pin, which is greater than the first detection voltage;After providing the second detection voltage for configurating channel pin, external equipment is identified by the configurating channel pin.The present embodiment can effectively solve the problems, such as that electronic equipment can not identify external equipment.

Description

Device identification method, device, storage medium and electronic equipment
Technical field
The application belongs to field of terminal technology more particularly to a kind of device identification method, device, storage medium and electronics are set It is standby.
Background technique
Currently, the USB interface used on many electronic equipments is all Type-C interface.The bright spot of Type-C interface is more Add slim design, faster transmission speed (highest 10Gbps) and more intrepid power transmission etc..Also, Type-C interface Support " positive anti-plug " function pluggable from tow sides.However, will appear the Type-C of external equipment in some cases The problem of interface has accessed the Type-C interface of electronic equipment, but electronic equipment can not identify external equipment.
Summary of the invention
The embodiment of the present application provides a kind of device identification method, device, storage medium and electronic equipment, can effectively solve The problem of electronic equipment can not identify external equipment.
The embodiment of the present application provides a kind of device identification method, is applied to electronic equipment, is the Type- of the electronic equipment The default pin of C interface provides the first detection voltage, and the default pin is non-configurating channel pin, and outside is being not detected When the Type-C interface of equipment accesses the Type-C interface of the electronic equipment, the configuration of the Type-C interface of the electronic equipment Channel pin without detection voltage, the method includes:
When receiving the instruction for being used to indicate progress external equipment identification from from user, the default pin is grounded;
When detecting default pin ground connection, trigger signal is generated;
According to the trigger signal, the second detection voltage, the second detection voltage are provided for the configurating channel pin Greater than the first detection voltage;
After providing the second detection voltage for the configurating channel pin, by the configurating channel pin to outside Equipment is identified.
The embodiment of the present application provides a kind of equipment identification device, is applied to electronic equipment, is the Type- of the electronic equipment The default pin of C interface provides the first detection voltage, and the default pin is non-configurating channel pin, and outside is being not detected When the Type-C interface of equipment accesses the Type-C interface of the electronic equipment, the configuration of the Type-C interface of the electronic equipment Without detection voltage, described device includes channel pin:
Control module will be described when being used to indicate the instruction for carrying out external equipment identification for receiving from from user Default pin ground connection;
Generation module, for generating trigger signal when detecting default pin ground connection;
Configuration module, it is described for providing the second detection voltage for the configurating channel pin according to the trigger signal Second detection voltage is greater than the first detection voltage;
Identification module, for passing through the configuration after providing the second detection voltage for the configurating channel pin Channel pin identifies external equipment.
The embodiment of the present application provides a kind of storage medium, is stored thereon with computer program, when the computer program exists When being executed on computer, so that the computer executes the step in device identification method provided by the embodiments of the present application.
The embodiment of the present application also provides a kind of electronic equipment, including memory, and processor, the processor is by calling institute The computer program stored in memory is stated, for executing the step in device identification method provided by the embodiments of the present application.
In the present embodiment, when needing to identify to only having the external equipment that can be grounded of a pin in Type-C interface When, user can send to electronic equipment and instruct, i.e., electronic equipment, which can receive to be used to indicate, carries out external equipment identification Instruction.At this point, default pin can be actively grounded by electronic equipment, when default pin ground connection, the electronic equipment can be triggered There is provided the second detection voltage for the configurating channel pin of its Type-C interface, with by the configurating channel pin to external equipment into Row identification.Therefore, the present embodiment can be solved effectively to the external equipment that an only pin can be grounded in Type-C interface The problem of can not being identified.
Detailed description of the invention
With reference to the accompanying drawing, by the way that detailed description of specific embodiments of the present invention, technical solution of the present invention will be made And its advantages are apparent.
Fig. 1 is the flow diagram of device identification method provided by the embodiments of the present application.
Fig. 2 is the structural schematic diagram of Type-C jack interface provided by the embodiments of the present application.
Fig. 3 is the structural schematic diagram of Type-C plug interface provided by the embodiments of the present application.
Fig. 4 is another flow diagram of device identification method provided by the embodiments of the present application.
Fig. 5 to Fig. 8 is the schematic diagram of a scenario of device identification method provided by the embodiments of the present application.
Fig. 9 is the structural schematic diagram of equipment identification device provided by the embodiments of the present application.
Figure 10 is the structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Figure 11 is another structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Schema is please referred to, wherein identical component symbol represents identical component, the principle of the present invention is to implement one It is illustrated in computing environment appropriate.The following description be based on illustrated by the specific embodiment of the invention, should not be by It is considered as the limitation present invention other specific embodiments not detailed herein.
It is understood that the executing subject of the embodiment of the present application can be the electricity of smart phone or tablet computer etc. Sub- equipment.
Referring to Fig. 1, Fig. 1 is the flow diagram of device identification method provided by the embodiments of the present application.Equipment identification Method can be applied to electronic equipment.Wherein, which provides the first detection electricity for the default pin of its Type-C interface Pressure, which is non-configurating channel pin.And electronic equipment is accessed in the Type-C interface that external equipment is not detected Type-C interface when, the configurating channel pin of the Type-C interface of the electronic equipment is without detection voltage.
The process of device identification method provided in this embodiment may include:
In 101, when receiving the instruction for being used to indicate progress external equipment identification from from user, default pin is connect Ground.
Currently, the USB interface used on many electronic equipments is all Type-C interface.The bright spot of Type-C interface is more Add slim design, faster transmission speed (highest 10Gbps) and more intrepid power transmission etc..Also, Type-C interface Support " positive anti-plug " function pluggable from tow sides.
Referring to Fig. 2, Fig. 2 is the pin arrangements figure of Type-C jack interface in the related technology.Wherein, TX1+, TX1-, RX1+, RX1-, TX2+, TX2- and RX2+, RX2- are four pairs of differential signal pins, and D+, D- are for being compatible with USB2.0 standard Differential signal pin, VBUS is power pins, and CC1, CC2 are configurating channel pin, and SBU1, SBU2 are bus pin.Pass through Configurating channel pin, electronic equipment can carry out the identification of external equipment, master-slave equipment role distinguishes and front and back sides insertion is known Not etc..
Referring to Fig. 3, Fig. 3 is the pin arrangements figure of Type-C plug interface in the related technology.
It should be noted that accessing electronic equipment in the Type-C interface that external equipment is not detected in the present embodiment Type-C interface when, the configurating channel pin of the Type-C interface of the electronic equipment is without detection voltage.That is, this implementation In example, the configurating channel pin that electronic equipment does not pass through Type-C interface carries out the access detection of external equipment Type-C interface. Only in the Type-C interface for the Type-C interface access electronic equipment for detecting external equipment, electronic equipment just can be it The configurating channel pin of Type-C interface provides detection voltage, to identify to external equipment.
In the present embodiment, electronic equipment detects whether external equipment by the default pin of its Type-C interface Type-C interface accesses the Type-C interface of this electronic equipment.Wherein, this presets pin as non-configurating channel pin, and electronics Equipment provides the first detection voltage for the default pin.For example, the default pin can be A1, B1, A12, B12 in Fig. 2 and draw In foot any one, it is two or more.It, can be to one in A1, B1, A12, B12, two that is, in the present embodiment A or multiple pins are transformed, and so that improved pin is become ungrounded (GND) pin, and improved pin is determined as Default pin, the default pin can be used for carrying out the access detection of external equipment Type-C interface.For example, it is also possible to will pass through Improved pin is known as accessing detection pin.In some embodiments, it is very low to can be numerical value for above-mentioned first detection voltage Voltage, for example, 0.1V or 0.2V etc..
In one embodiment, because using the A1 of the external equipment of (Full Featured) Type-C interface of standard, A12, B1, B12 are ground connection (GND) pin.Therefore, as the Type-C of the Type-C interface access electronic equipment of the external equipment When interface, the voltage of the default pin of the Type-C interface of electronic equipment can be pulled low and (be become zero by the first detection voltage), from And detect the access of the external equipment using Type-C interface.
However, the Type-C interface of some external equipments is that off-gauge (non-Full Featured) Type-C connects on the market at present Mouthful.The chip for only having a pin and Type-C interface in A1, B1, A12, B12 of the Type-C interface of these external equipments connects It connects, and remaining three pins are not connect with the chip of Type-C interface, i.e., these three pins are in NC (Not Connected) state.It is connect for example, only having A1 pin in the Type-C interface of external equipment with the chip of Type-C interface, and These three pins of B1, A12, B12 are in NC state.In this case, when (only A1 pin can be with for the Type-C interface of the external equipment Ground connection) access electronic equipment provided in this embodiment Type-C interface (such as A1 pin is transformed into default pin) when, by There is no other pins can grounding pin in the Type-C interface with the electronic equipment in the Type-C interface of the external equipment Connection, leads to that earth-return circuit can not be formed between the external equipment and the electronic equipment, and then the A1 of the external equipment is caused to draw Foot can not be by the voltage pull-down of the A1 pin of electronic equipment, therefore electronic equipment will be considered that the Type-C currently without external equipment Interface access causes electronic equipment not identify to using the external equipment of Type-C interface.
In the 101 of the embodiment of the present application, the instruction for carrying out external equipment identification is used to indicate when receiving from user When, default pin can be grounded by electronic equipment.For example, default pin is A1 pin, i.e. electronic equipment can be by its Type-C The A1 pin of interface is grounded.
In 102, when detecting default pin ground connection, trigger signal is generated.
For example, the detection voltage of A1 pin can be by first when the A1 pin of its Type-C interface is grounded by electronic equipment Detection voltage becomes zero, and electronic equipment can detecte its A1 pin ground connection at this time.When detecting A1 pin ground connection, electronics is set It is standby that trigger signal can be generated.
In one embodiment, trigger signal can be interrupt signal etc..
In 103, according to trigger signal, the second detection voltage is provided for configurating channel pin, the second detection voltage is big Voltage is detected in first.
In 104, after providing the second detection voltage for configurating channel pin, outside is set by the configurating channel pin It is standby to be identified.
For example, 103 and 104 may include:
After generating trigger signal, electronic equipment can provide the second detection for the configurating channel pin of its Type-C interface Voltage.Wherein, which can be greater than above-mentioned first detection voltage.For example, the second detection voltage can be 1.5V Deng.
After providing the second detection voltage for configurating channel pin, electronic equipment can be external by the configurating channel pin Portion's equipment is identified, to judge which kind of equipment the external equipment is specially.It is set for example, in some embodiments, outside this It is standby to can be the equipment such as the earphone using Type-C interface or the USB flash disk using Type-C interface.
It should be noted that there are three types of roles for Type-C interface, it is that downstream interface, upstream Interface and double roles connect respectively Mouthful.Wherein, when the Type-C interface of electronic equipment is as downstream interface, electronic equipment can be access as main equipment External Type-C equipment power supply, sends data to external Type-C equipment, reads data etc. from external Type-C equipment.In electronics When the Type-C interface of equipment is as upstream Interface, electronic equipment is used as from equipment, can be from the external Type-C equipment of access Electricity is obtained, provides data etc. for external Type-C equipment.When the Type-C interface of electronic equipment is as double role's interfaces, electronics is set It is standby can be in main equipment and from switching at runtime between equipment.
For example, the Type-C interface of electronic equipment can be configured as downstream interface in the present embodiment, it that is to say that electronics is set It is standby to be used as main equipment.It is configured as upstream Interface in the Type-C interface of external equipment, that is to say external Type-C equipment conduct When from equipment, the configurating channel pin of the Type-C interface of external equipment is connected with pull down resistor, and (pull down resistor can be one A individual resistance is also possible to multiple resistance series connection and/or composes in parallel).
It is easily understood that when the Type-C interface of external equipment is linked into the Type-C interface of electronic equipment, electronics The configurating channel pin of Type-C interface with external equipment is connect by the configurating channel pin of the Type-C interface of equipment, so that The pull down resistor of the configurating channel pin of the configurating channel pin and external equipment of electronic equipment connects, and drags down matching for electronic equipment Voltage on confidence road pin.
And for the external equipment of different function (such as using the earphone of Type-C interface and USB flash disk etc.), configurating channel The resistance value for the pull down resistor that pin is connected is different.Therefore, right when the external equipment of different function accesses electronic equipment The voltage pull-down degree of the configurating channel pin of electronic equipment is different.Therefore, electronic equipment can pass through its configurating channel The voltage change of pin, to identify which kind of equipment external equipment is specially.
It is understood that in the present embodiment, it is outer when needing that an only pin in Type-C interface can be grounded When portion's equipment is identified, user can send to electronic equipment and instruct, i.e., electronic equipment, which can receive, is used to indicate progress The instruction of external equipment identification.It, can be with when default pin ground connection at this point, default pin can be actively grounded by electronic equipment It triggers the electronic equipment and provides the second detection voltage for the configurating channel pin of its Type-C interface, to be drawn by the configurating channel Foot identifies external equipment.Therefore, the present embodiment can effectively solve to only have pin in Type-C interface can be with The problem of external equipment of ground connection can not be identified.
Further, since electronic equipment can continue to provide detection to the configurating channel pin of its Type-C interface in the related technology Voltage, and the detection voltage is generally not less than 1.5V.Therefore, if in wet environment, then the Type-C of the electronic equipment The configurating channel pin of interface is very easy to be corroded.And in the present embodiment, due in the Type- that external equipment is not detected When C interface accesses the Type-C interface of the electronic equipment, the configurating channel pin of the Type-C interface of the electronic equipment is without detection Voltage.That is, the Type-C interface of electronic equipment seldom charges.Therefore, the scheme of the present embodiment can also protect electronic equipment The configurating channel pin of Type-C interface is corroded.
Referring to Fig. 4, Fig. 4 is another flow diagram of device identification method provided by the embodiments of the present application.The equipment Recognition methods can be applied to electronic equipment.Wherein, electronic equipment is accessed in the Type-C interface that external equipment is not detected Type-C interface when, the configurating channel pin of the Type-C interface of the electronic equipment is without detection voltage.The electronic equipment is it The default pin of Type-C interface provides the first detection voltage, which is non-configurating channel pin.The default pin can To be selectively grounded by first switch, i.e., when the first switch in an ON state when, which can be grounded.
Also, it is provided with second switch on the electronic equipment.The second switch can be to be realized by way of software Virtual switch, be also possible to the physical switches realized by way of hardware.It, can be with when the second switch is opened by user It determines to receive the instruction for being used to indicate and carrying out external equipment identification from user.
The process of device identification method provided in this embodiment may include:
In 201, it is used to indicate the instruction for carrying out external equipment identification when not receiving from user, and detect default When the voltage value of pin becomes zero, electronic equipment determines the Type-C for having the Type-C interface of external equipment to access this electronic equipment Interface.
For example, the default pin of the Type-C interface of electronic equipment is A1 pin, i.e. the Type-C interface of electronic equipment A1 pin is transformed into ungrounded pin, and electronic equipment provides the first detection voltage, such as first detection for A1 pin Voltage is 0.1V.
So, the instruction for being used to indicate progress external equipment identification, and electronic equipment are not being received at user When detecting that the voltage value of the A1 pin of its Type-C interface has the first detection voltage to become zero, electronic equipment can have been determined The Type-C interface of external equipment accesses the Type-C interface of this electronic equipment.
After the Type-C interface for determining external equipment accesses the Type-C interface of this electronic equipment, into 205, i.e., It triggers electronic equipment and provides the second detection voltage for the configurating channel pin of its Type-C interface.Later, electronic equipment can lead to Configurating channel pin is crossed to identify external equipment.
In 202, when detecting that second switch is opened by user, electronic equipment is determined to receive from user and is used for Indicate the instruction of progress external equipment identification.
For example, second switch is the virtual switch realized by software mode.So, when detecting second switch by user When unlatching, electronic equipment can be determined to receive the instruction for being used to indicate and carrying out external equipment identification from user.
In 203, when receiving the instruction for being used to indicate progress external equipment identification from from user, electronic equipment control First switch enters on-state, when first switch in an ON state when, preset pin ground connection.
For example, when receiving the instruction for being used to indicate progress external equipment identification from determining from user, electronic equipment Can control first switch and enter on-state, when first switch in an ON state when, A1 pin ground connection.
In 204, when detecting default pin ground connection, electronic equipment generates trigger signal.
For example, the detection voltage of A1 pin can be by first when the A1 pin of its Type-C interface is grounded by electronic equipment Detection voltage becomes zero, and electronic equipment can detecte its A1 pin ground connection at this time.When detecting A1 pin ground connection, electronics is set It is standby that trigger signal can be generated.
In 205, electronic equipment provides the second detection voltage for configurating channel pin, which is greater than first Detect voltage.
For example, electronic equipment can be the configuration of its Type-C interface according to the trigger signal after generating trigger signal Channel pin provides the second detection voltage.Wherein, which can be greater than above-mentioned first detection voltage.For example, the Two detection voltages can be 1.5V etc..
Alternatively, when electronic equipment determines that the Type-C interface of external equipment accesses the Type-C interface of this electronic equipment When, electronic equipment can provide the second detection voltage for the configurating channel pin of its Type-C interface.
In 206, after providing the second detection voltage for configurating channel pin, electronic equipment passes through configurating channel pin pair External equipment is identified.
For example, electronic equipment can be drawn by the configurating channel after providing the second detection voltage for configurating channel pin Foot identifies external equipment, to judge which kind of equipment the external equipment is specially.For example, in some embodiments, it should External equipment can be the equipment such as the earphone using Type-C interface or the USB flash disk using Type-C interface.
In some other embodiment, except through second switch is arranged, received from user for judging whether It is used to indicate outside the instruction for carrying out external equipment identification, electronic equipment can also be in the following way to determine whether from user Receive the instruction for being used to indicate and carrying out external equipment identification.
In one embodiment, the step of being used to indicate the instruction for carrying out external equipment identification is received from user, May include:
When in breath screen state under display screen receive the touch operation of desired guiding trajectory when, electronic equipment determine from The instruction for being used to indicate and carrying out external equipment identification is received at family.
For example, desired guiding trajectory is " o " font.So, if being in breath screen state in display screen, user draws on a display screen The track of " o " font, then electronic equipment can receive the touch operation of desired guiding trajectory, electronic equipment can be determined at this time The instruction for being used to indicate and carrying out external equipment identification is received from user.
In another embodiment, the step for being used to indicate the instruction for carrying out external equipment identification is received from user Suddenly, may include:
When receiving the phonetic order of preset content, electronic equipment, which is determined to receive from user, is used to indicate progress The instruction of external equipment identification.
For example, the phonetic order of preset content is " little Ou identifies external equipment by Type-C interface ".So, when with When family issues the phonetic order of " little Ou identifies external equipment by Type-C interface " to electronic equipment, electronic equipment can be true Make the instruction for receiving from user and being used to indicate and carrying out external equipment identification.
In one embodiment, electronic equipment is after providing the second detection voltage for its configurating channel pin, can be with Whether external equipment is recognized in detection preset duration.If all not recognizing external equipment in preset duration, though i.e. user So opening second switch makes its configurating channel pin of electronic equipment provide the second detection voltage, but user is in preset duration It is interior that there is no external equipment is accessed electronic equipment.In this case, electronic equipment can be with the of open configuration channel pin Two detection voltages, keep configurating channel pin not charged.
Fig. 5 to Fig. 7 is please referred to, Fig. 5 to Fig. 7 is the schematic diagram of a scenario of device identification method provided by the embodiments of the present application.
For example, electronic equipment provided in this embodiment is the electronic equipment using Type-C interface.Also, user is to the electricity The A1 pin of the Type-C interface of sub- equipment is transformed, and so that A1 pin is become ungrounded (GND) pin, and for by transformation A1 pin afterwards provides the first detection voltage.It can be used to implement the Type-C interface of external equipment by improved A1 pin Access detection.It can be selectively grounded, i.e., connect when the first switch is in by first switch by improved A1 pin When logical state, which can be grounded.In the Type- for the Type-C interface access electronic equipment that external equipment is not detected When C interface, the configurating channel pin of the Type-C interface of the electronic equipment is without detection voltage.Also, it sets on the electronic equipment It is equipped with second switch.The second switch is the virtual switch realized by way of software.When the second switch is opened by user When, it can determine to receive the instruction for being used to indicate and carrying out external equipment identification from user.
For example, as shown in figure 5, user is provided in this embodiment using Type-C by the earphone access using Type-C interface The electronic equipment of interface.
If the Type-C interface of the earphone is Full Featured Type-C interface, i.e., its A1, B1, A12, B12 are ground connection (GND) pin.In this case, when the Type-C interface of the Type-C interface of earphone access electronic equipment, electronics is set The voltage of the A1 pin of standby Type-C interface can be pulled low, i.e., become zero by the first detection voltage.When detecting that Type-C connects When the voltage of the A1 pin of mouth becomes zero, electronic equipment can determine the access of the external equipment of Type-C interface.Later, Electronic equipment can provide the second detection voltage for the configurating channel pin of its Type-C interface, and according to configurating channel pin Voltage change identifies which kind of equipment the external equipment is specially.For example, pass through the voltage change of configurating channel pin, electricity Sub- equipment identifies that the external equipment is specially the earphone for using Type-C interface.
If the Type-C interface of the earphone is not Full Featured Type-C interface, for example, the earphone Type-C interface A1 Pin is connect with the chip of Type-C interface, i.e. the A1 pin of the Type-C interface of the earphone can be grounded, and B1, A12, B12 It is in NC state.In this case, when the Type-C interface of the Type-C interface of earphone access electronic equipment, such as The A1 pin of the A1 pin of the earphone and electronic equipment connects, due to the Type-C interface of the earphone does not have other pins can be with Grounding pin connection in the Type-C interface of the electronic equipment, leads to that ground connection can not be formed between the earphone and the electronic equipment Circuit, and then cause the A1 pin of the earphone can not be by the voltage pull-down of the A1 pin of electronic equipment, therefore electronic equipment meeting Think the Type-C interface access currently without external equipment, i.e., electronic equipment will not match confidence for its Type-C interface at this time Road pin provides the second detection voltage, i.e., electronic equipment is not identified to using the external equipment of Type-C interface at this time.
In this case, when user has found that electronic equipment does not identify the earphone, as shown in fig. 6, user can To enter the second switch of set interface, second switch is then switched to the ON state by being closed state.
Detect user open second switch after, electronic equipment can determine to receive from user be used to indicate into The instruction of row external equipment identification.Later, electronic equipment can control first switch and enter on-state, when first switch is in When on-state, the A1 pin of the Type-C interface of electronic equipment is grounded.
For example, in one embodiment, as shown in fig. 7, the A1 pin of electronic equipment is grounded by a TFT switch.It should Three ends of TFT switch are connected with the A1 pin of electronic equipment, first switch control circuit and ground respectively.When determining from user Place receives the instruction for being used to indicate and carrying out external equipment identification, and electronic equipment can send high electricity to first switch control circuit Ordinary mail number, so that first switch be made to connect.When first switch is connected, the A1 pin of electronic equipment is connected to ground.
When the A1 pin for detecting electronic equipment is grounded, a trigger signal is can be generated in electronic equipment, and according to the touching It signals to provide the second detection voltage for the configurating channel pin in its Type-C interface.In the Type-C interface for electronic equipment In configurating channel pin the second detection voltage is provided after, electronic equipment can by its configurating channel pin and external equipment into Row shakes hands and (establishes and communicate to connect with external equipment).After shaking hands successfully with external equipment, electronic equipment can be matched by it Confidence road pin identifies the external equipment, to judge which kind of equipment the external equipment is specially.For example, the present embodiment In, electronic equipment identifies that the external equipment is earphone.
In one embodiment, as shown in figure 8, one end of TFT switch ground connection can also connect a resistance.The resistance It can prevent external high current from burning out the A1 pin of electronic equipment.
Referring to Fig. 9, Fig. 9 is the structural schematic diagram of equipment identification device provided by the embodiments of the present application.Equipment identification Device can be applied to electronic equipment.Wherein, the electronic equipment provides the first detection for the default pin of its Type-C interface Voltage, the default pin are non-configurating channel pin.The electricity is accessed in the Type-C interface that external equipment is not detected When the Type-C interface of sub- equipment, the configurating channel pin of the Type-C interface of the electronic equipment is without detection voltage.
Equipment identification device 400 may include:Control module 401, generation module 402, configuration module 403, identification module 404。
Control module 401, when being used to indicate the instruction for carrying out external equipment identification for receiving from from user, by institute State default pin ground connection.
Generation module 402, for generating trigger signal when detecting default pin ground connection.
Configuration module 403, for providing the second detection voltage for the configurating channel pin according to the trigger signal, The second detection voltage is greater than the first detection voltage.
Identification module 404, for being matched after providing the second detection voltage for the configurating channel pin by described Confidence road pin identifies external equipment.
In one embodiment, the default pin is selectively grounded by first switch.
The control module 401 can be used for:The finger for carrying out external equipment identification is used to indicate when receiving from user When enabling, control the first switch and enter on-state, when the first switch in an ON state when, the default pin connects Ground.
In one embodiment, second switch is provided on the electronic equipment.
The control module 401 can be used for:When detecting that the second switch is opened by user, determine from described The instruction for being used to indicate and carrying out external equipment identification is received at user.
In one embodiment, when the Type-C interface of external equipment accesses the Type-C interface of the electronic equipment When, the voltage value of the default pin is become zero by the first detection voltage.
Configuration module 403 can be also used for:The finger for carrying out external equipment identification is used to indicate when not receiving from user When enabling, and detecting that the voltage value of the default pin becomes zero, determine that the Type-C interface for having external equipment accesses the electricity The Type-C interface of sub- equipment;When the determining Type-C interface for having external equipment accesses the Type-C interface of the electronic equipment When, the second detection voltage is provided for the configurating channel pin, and identify to the external equipment.
In one embodiment, the control module 401 can be used for:When the display screen under breath screen state receives To desired guiding trajectory touch operation when, determine to receive the finger for being used to indicate and carrying out external equipment identification from the user It enables.
In one embodiment, the control module 401 can be used for:When the phonetic order for receiving preset content When, it determines to receive the instruction for being used to indicate and carrying out external equipment identification from the user.
The embodiment of the present application provides a kind of computer-readable storage medium, computer program is stored thereon with, when described When computer program executes on computers, so that the computer is executed as in device identification method provided in this embodiment Step.
The embodiment of the present application also provides a kind of electronic equipment, including memory, and processor, the processor is by calling institute The computer program stored in memory is stated, for executing the step in device identification method provided in this embodiment.
For example, above-mentioned electronic equipment can be the mobile terminals such as tablet computer or smart phone.Referring to Fig. 10, Figure 10 is the structural schematic diagram of electronic equipment provided by the embodiments of the present application.
The electronic equipment 500 may include the components such as Type-C interface 501, memory 502, processor 503.This field skill Art personnel are appreciated that electronic devices structure shown in Fig. 7 does not constitute the restriction to electronic equipment, may include than diagram More or fewer components perhaps combine certain components or different component layouts.
Memory 502 can be used for storing application program and data.It include that can hold in the application program that memory 502 stores Line code.Application program can form various functional modules.Processor 503 is stored in the application journey of memory 502 by operation Sequence, thereby executing various function application and data processing.
Processor 503 is the control centre of electronic equipment, utilizes each of various interfaces and the entire electronic equipment of connection A part by running or execute the application program being stored in memory 502, and is called and is stored in memory 502 Data execute the various functions and processing data of electronic equipment, to carry out integral monitoring to electronic equipment.
In the present embodiment, electronic equipment provides the first detection voltage for the default pin of its Type-C interface, described pre- If pin is non-configurating channel pin, the electronic equipment is accessed in the Type-C interface that external equipment is not detected When Type-C interface, the place of the configurating channel pin of the Type-C interface of the electronic equipment without detection voltage, in electronic equipment The corresponding executable code of the process of one or more application program can be loaded according to following instruction by managing device 503 Into memory 502, and the application program being stored in memory 502 is run by processor 503, to realize step:
When receiving the instruction for being used to indicate progress external equipment identification from from user, the default pin is grounded;
When detecting default pin ground connection, trigger signal is generated;
According to the trigger signal, the second detection voltage, the second detection voltage are provided for the configurating channel pin Greater than the first detection voltage;
After providing the second detection voltage for the configurating channel pin, by the configurating channel pin to outside Equipment is identified.
Figure 11 is please referred to, electronic equipment 600 may include Type-C interface 601, memory 602, processor 603, input The components such as unit 604, output unit 605, display screen 606.
Memory 602 can be used for storing application program and data.It include that can hold in the application program that memory 602 stores Line code.Application program can form various functional modules.Processor 603 is stored in the application journey of memory 602 by operation Sequence, thereby executing various function application and data processing.
Processor 603 is the control centre of electronic equipment, utilizes each of various interfaces and the entire electronic equipment of connection A part by running or execute the application program being stored in memory 602, and is called and is stored in memory 602 Data execute the various functions and processing data of electronic equipment, to carry out integral monitoring to electronic equipment.
Input unit 604 can be used for receiving number, character information or the user's characteristic information (such as fingerprint) of input, and Generate keyboard related with user setting and function control, mouse, operating stick, optics or trackball signal input.
Output unit 605 can be used for showing information input by user or the information and electronic equipment that are supplied to user Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof. Output unit may include display panel.
Display screen 606 is displayed for the information such as image and text.
In the present embodiment, electronic equipment provides the first detection voltage for the default pin of its Type-C interface, described pre- If pin is non-configurating channel pin, the electronic equipment is accessed in the Type-C interface that external equipment is not detected When Type-C interface, the place of the configurating channel pin of the Type-C interface of the electronic equipment without detection voltage, in electronic equipment The corresponding executable code of the process of one or more application program can be loaded according to following instruction by managing device 603 Into memory 602, and the application program of storage in the memory 602 is run by processor 603, to realize step:
When receiving the instruction for being used to indicate progress external equipment identification from from user, the default pin is grounded;
When detecting default pin ground connection, trigger signal is generated;
According to the trigger signal, the second detection voltage, the second detection voltage are provided for the configurating channel pin Greater than the first detection voltage;
After providing the second detection voltage for the configurating channel pin, by the configurating channel pin to outside Equipment is identified.
In one embodiment, the default pin is selectively grounded by first switch, and processor 603 executes described It is received from from user when being used to indicate the instruction for carrying out external equipment identification, when by the step of the default pin ground connection, It can execute:Received from from user be used to indicate carry out external equipment identification instruction when, control the first switch into Enter on-state, when the first switch in an ON state when, the default pin ground connection.
In one embodiment, second switch is provided on the electronic equipment, processor 603 executes described from user When place receives the step for being used to indicate the instruction for carrying out external equipment identification, it can execute:When detecting the second switch When being opened by user, determine to receive the instruction for being used to indicate and carrying out external equipment identification from the user.
In one embodiment, when the Type-C interface of external equipment accesses the Type-C interface of the electronic equipment When, the voltage value of the default pin is become zero by the first detection voltage, and processor 603 can also be performed:When not from The instruction for being used to indicate and carrying out external equipment identification is received at family, and detects that the voltage value of the default pin becomes zero When, determine the Type-C interface for thering is the Type-C interface of external equipment to access the electronic equipment;When determination has external equipment When Type-C interface accesses the Type-C interface of the electronic equipment, the second detection electricity is provided for the configurating channel pin Pressure, and the external equipment is identified.
In one embodiment, processor 603 executes described receive from user and is used to indicate carry out external equipment When the step of the instruction of identification, it can execute:When the display screen under breath screen state receives the touch operation of desired guiding trajectory When, it determines to receive the instruction for being used to indicate and carrying out external equipment identification from the user.
In one embodiment, the execution of processor 603, which receives to be used to indicate from user, carries out external equipment identification Instruction step when, can execute:When receiving the phonetic order of preset content, determine to receive from the user It is used to indicate the instruction for carrying out external equipment identification.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the detailed description above with respect to device identification method, details are not described herein again.
Device identification method in the equipment identification device provided by the embodiments of the present application and foregoing embodiments belongs to together One design can run either offer method in the device identification method embodiment in the equipment identification device, Specific implementation process is detailed in the device identification method embodiment, and details are not described herein again.
It should be noted that those of ordinary skill in the art can for the device identification method described in the embodiment of the present application With understand realize the embodiment of the present application described in device identification method all or part of the process, be can by computer program come Relevant hardware is controlled to complete, the computer program can be stored in a computer-readable storage medium, such as be stored in It in memory, and is executed by least one processor, in the process of implementation may include the embodiment such as the device identification method Process.Wherein, the storage medium can be magnetic disk, CD, read-only memory (ROM, Read Only Memory), random Access/memory body (RAM, Random Access Memory) etc..
For the equipment identification device of the embodiment of the present application, each functional module be can integrate in a processing core In piece, it is also possible to modules and physically exists alone, can also be integrated in two or more modules in a module.On It states integrated module both and can take the form of hardware realization, can also be realized in the form of software function module.The collection If at module realized in the form of software function module and when sold or used as an independent product, also can store In one computer-readable storage medium, the storage medium is for example read-only memory, disk or CD etc..
Above to a kind of device identification method, device, storage medium and electronic equipment provided by the embodiment of the present application It is described in detail, used herein a specific example illustrates the principle and implementation of the invention, the above reality The explanation for applying example is merely used to help understand method and its core concept of the invention;Meanwhile for those skilled in the art, According to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion in this specification Appearance should not be construed as limiting the invention.

Claims (10)

1. a kind of device identification method is applied to electronic equipment, which is characterized in that be the Type-C interface of the electronic equipment Default pin provides the first detection voltage, and the default pin is non-configurating channel pin, and external equipment is being not detected When Type-C interface accesses the Type-C interface of the electronic equipment, the configurating channel of the Type-C interface of the electronic equipment draws Foot without detection voltage, the method includes:
When receiving the instruction for being used to indicate progress external equipment identification from from user, the default pin is grounded;
When detecting default pin ground connection, trigger signal is generated;
According to the trigger signal, the second detection voltage is provided for the configurating channel pin, the second detection voltage is greater than The first detection voltage;
After providing the second detection voltage for the configurating channel pin, by the configurating channel pin to external equipment It is identified.
2. device identification method according to claim 1, which is characterized in that the default pin is selected by first switch Property ground connection;
When receiving the instruction for being used to indicate progress external equipment identification from from user, by the step of the default pin ground connection Suddenly, including:When receiving the instruction for being used to indicate progress external equipment identification from from user, controls the first switch and enter On-state, when the first switch in an ON state when, the default pin ground connection.
3. device identification method according to claim 2, which is characterized in that be provided with second on the electronic equipment and open It closes;
The step of being used to indicate the instruction for carrying out external equipment identification is received from user, including:When detecting described second When switch is opened by user, determine to receive the instruction for being used to indicate and carrying out external equipment identification from the user.
4. device identification method according to claim 1, which is characterized in that when the Type-C interface of external equipment accesses institute When stating the Type-C interface of electronic equipment, the voltage value of the default pin is become zero by the first detection voltage, the side Method further includes:
It is used to indicate the instruction for carrying out external equipment identification when not receiving from user, and detects the electricity of the default pin When pressure value becomes zero, the Type-C interface for having the Type-C interface of external equipment to access the electronic equipment is determined;
It is the configurating channel when determining that the Type-C interface for having external equipment accesses the Type-C interface of the electronic equipment Pin provides the second detection voltage, and identifies to the external equipment.
5. device identification method according to claim 2, which is characterized in that receive and be used to indicate outside progress from user The step of instruction of portion's equipment identification, including:
When the display screen under breath screen state receives the touch operation of desired guiding trajectory, determine to receive from the user To the instruction for being used to indicate progress external equipment identification.
6. device identification method according to claim 2, which is characterized in that receive and be used to indicate outside progress from user The step of instruction of portion's equipment identification, including:
When receiving the phonetic order of preset content, determines to receive from the user and be used to indicate carry out external equipment The instruction of identification.
7. a kind of equipment identification device is applied to electronic equipment, which is characterized in that be the Type-C interface of the electronic equipment Default pin provides the first detection voltage, and the default pin is non-configurating channel pin, and external equipment is being not detected When Type-C interface accesses the Type-C interface of the electronic equipment, the configurating channel of the Type-C interface of the electronic equipment draws Without detection voltage, described device includes foot:
Control module will be described default when being used to indicate the instruction for carrying out external equipment identification for receiving from from user Pin ground connection;
Generation module, for generating trigger signal when detecting default pin ground connection;
Configuration module provides the second detection voltage for the configurating channel pin for according to the trigger signal, and described second It detects voltage and is greater than the first detection voltage;
Identification module, for passing through the configurating channel after providing the second detection voltage for the configurating channel pin Pin identifies external equipment.
8. equipment identification device according to claim 1, which is characterized in that the default pin is selected by first switch Property ground connection;
The control module, is used for:When receiving the instruction for being used to indicate progress external equipment identification from from user, institute is controlled State first switch and enter on-state, when the first switch in an ON state when, the default pin ground connection.
9. a kind of storage medium, is stored thereon with computer program, which is characterized in that when the computer program on computers When execution, so that the computer executes such as method described in any one of claims 1 to 6.
10. a kind of electronic equipment, including memory, processor, which is characterized in that the processor is by calling the memory The computer program of middle storage, for executing such as method described in any one of claims 1 to 6.
CN201810717922.2A 2018-07-02 2018-07-02 Device identification method and device, storage medium and electronic device Active CN108920397B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810717922.2A CN108920397B (en) 2018-07-02 2018-07-02 Device identification method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810717922.2A CN108920397B (en) 2018-07-02 2018-07-02 Device identification method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN108920397A true CN108920397A (en) 2018-11-30
CN108920397B CN108920397B (en) 2020-09-22

Family

ID=64423418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810717922.2A Active CN108920397B (en) 2018-07-02 2018-07-02 Device identification method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN108920397B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110018976A (en) * 2018-01-10 2019-07-16 华为技术有限公司 USB main equipment responds USB from device, method and relevant device
CN110098652A (en) * 2019-01-18 2019-08-06 青岛海信移动通信技术股份有限公司 A kind of mobile phone, mobile phone body device and mobile phone are continued a journey device
CN112333327A (en) * 2020-11-20 2021-02-05 Oppo广东移动通信有限公司 Equipment detection method, device, storage medium, electronic equipment, external equipment and system
CN112737034A (en) * 2020-12-29 2021-04-30 四川长虹电器股份有限公司 Low-power consumption lithium battery charging management driving circuit
CN114942899A (en) * 2022-03-30 2022-08-26 深圳市广和通无线股份有限公司 Pin configuration method, module, equipment and storage medium
CN115878531A (en) * 2022-12-09 2023-03-31 珠海视熙科技有限公司 MiPi interface control method, electronic equipment, camera module, storage medium and video system
CN116049055A (en) * 2022-05-26 2023-05-02 荣耀终端有限公司 Access identification method of electronic equipment interface and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8041866B2 (en) * 2007-05-24 2011-10-18 Research In Motion Limited System and method for interfacing an electronic device with a host system
CN103124134A (en) * 2011-11-17 2013-05-29 半导体元件工业有限责任公司 Determining circuit
US20170063120A1 (en) * 2015-08-24 2017-03-02 Canon Kabushiki Kaisha Electronic apparatus
CN106934292A (en) * 2015-12-29 2017-07-07 北京明朝万达科技股份有限公司 A kind of cell phone apparatus identification and the method and system for disabling
CN108073537A (en) * 2016-11-11 2018-05-25 中兴通讯股份有限公司 Usb circuit, the implementation method of USB interface and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8041866B2 (en) * 2007-05-24 2011-10-18 Research In Motion Limited System and method for interfacing an electronic device with a host system
CN103124134A (en) * 2011-11-17 2013-05-29 半导体元件工业有限责任公司 Determining circuit
US20170063120A1 (en) * 2015-08-24 2017-03-02 Canon Kabushiki Kaisha Electronic apparatus
CN106934292A (en) * 2015-12-29 2017-07-07 北京明朝万达科技股份有限公司 A kind of cell phone apparatus identification and the method and system for disabling
CN108073537A (en) * 2016-11-11 2018-05-25 中兴通讯股份有限公司 Usb circuit, the implementation method of USB interface and device

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110018976B (en) * 2018-01-10 2022-06-10 华为技术有限公司 Method for USB master device to respond to USB slave device and related device
CN110018976A (en) * 2018-01-10 2019-07-16 华为技术有限公司 USB main equipment responds USB from device, method and relevant device
CN110098652A (en) * 2019-01-18 2019-08-06 青岛海信移动通信技术股份有限公司 A kind of mobile phone, mobile phone body device and mobile phone are continued a journey device
CN110098652B (en) * 2019-01-18 2021-05-07 青岛海信移动通信技术股份有限公司 Mobile phone, mobile phone main body device and mobile phone endurance device
CN112333327A (en) * 2020-11-20 2021-02-05 Oppo广东移动通信有限公司 Equipment detection method, device, storage medium, electronic equipment, external equipment and system
CN112333327B (en) * 2020-11-20 2022-01-07 Oppo广东移动通信有限公司 Equipment detection method, device, storage medium, electronic equipment, external equipment and system
CN112737034A (en) * 2020-12-29 2021-04-30 四川长虹电器股份有限公司 Low-power consumption lithium battery charging management driving circuit
CN114942899A (en) * 2022-03-30 2022-08-26 深圳市广和通无线股份有限公司 Pin configuration method, module, equipment and storage medium
CN114942899B (en) * 2022-03-30 2024-01-05 深圳市广和通无线股份有限公司 Pin configuration method, module, equipment and storage medium
CN116049055A (en) * 2022-05-26 2023-05-02 荣耀终端有限公司 Access identification method of electronic equipment interface and electronic equipment
CN116049055B (en) * 2022-05-26 2023-09-08 荣耀终端有限公司 Access identification method of electronic equipment interface and electronic equipment
CN115878531A (en) * 2022-12-09 2023-03-31 珠海视熙科技有限公司 MiPi interface control method, electronic equipment, camera module, storage medium and video system
CN115878531B (en) * 2022-12-09 2024-03-15 珠海视熙科技有限公司 MiPi interface control method, electronic equipment, camera module, storage medium and video system

Also Published As

Publication number Publication date
CN108920397B (en) 2020-09-22

Similar Documents

Publication Publication Date Title
CN108920397A (en) device identification method, device, storage medium and electronic equipment
US8464183B2 (en) System and method for distinguishing multimodal commands directed at a machine from ambient human communications
US20130219338A1 (en) Automatic Magnification and Selection Confirmation
CN106786960B (en) Charge control method, device and terminal
CN105183679B (en) A kind of electronic equipment and information processing method
CN102262477A (en) Systems and methods for determining intentional touch screen contact
CN104571857A (en) Customizing method, responding method and mobile terminal of user-defined touch
US9524428B2 (en) Automated handwriting input for entry fields
CN206497442U (en) Self-capacitance touch control display apparatus and display panel
US11284523B2 (en) Cumulative sensor in a foldable device
CN108664430A (en) Recognition methods, device, storage medium and the electronic equipment of equipment
CN104769601A (en) Method for recognition of user identity and electronic equipment
CN108681514B (en) Device detection method and device, storage medium and electronic device
CN105867822A (en) Information processing method and electronic equipment
US9098196B2 (en) Touch system inadvertent input elimination
CN104035553A (en) Systems and methods for indicating that an interface is being touched
US7703035B1 (en) Method, system, and apparatus for keystroke entry without a keyboard input device
CN108647047A (en) A kind of awakening method and system based on mobile terminal
CN110597475A (en) Automatic switching control system and method for multi-network-port multi-host medical display
CN110262985A (en) A kind of processing method and electronic equipment
CN109298809A (en) A kind of touch action recognition methods, device and terminal device
CN215986443U (en) CC of Type C detects functional circuit
CN106647940A (en) Notebook computer
JP6340420B2 (en) Text selection paragraph snap
CN107069844A (en) Charging method, device and terminal

Legal Events

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