CN105681952B - Self-shooting bar, the method and device and mobile terminal for identifying self-shooting bar - Google Patents
Self-shooting bar, the method and device and mobile terminal for identifying self-shooting bar Download PDFInfo
- Publication number
- CN105681952B CN105681952B CN201610064980.0A CN201610064980A CN105681952B CN 105681952 B CN105681952 B CN 105681952B CN 201610064980 A CN201610064980 A CN 201610064980A CN 105681952 B CN105681952 B CN 105681952B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- external equipment
- self
- serial communication
- headset plug
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1041—Mechanical or electronic switches, or control elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2420/00—Details of connection covered by H04R, not provided for in its groups
- H04R2420/05—Detection of connection of loudspeakers or headphones to amplifiers
Abstract
The embodiment of the invention discloses self-shooting bar, self-shooting bar recognition methods and device and mobile terminal.The self-shooting bar recognition methods includes:If detecting, the earphone interface of mobile terminal is inserted with the headset plug of external equipment, transmitting terminal serial communication chip transmission identification request into the external equipment of universal asynchronous receiving-transmitting transmitter UART in the mobile terminal is then controlled, and controls the receiving terminal of the UART to receive the identity response information that the serial communication chip returns;According to the identity response information, determine whether the external equipment is self-shooting bar.Technical scheme provided in an embodiment of the present invention, the automatic identification of self-shooting bar is realized by the serial communication between mobile terminal and external equipment, improves Consumer's Experience.
Description
Technical field
The present invention relates to the method and device and mobile terminal of communication technical field, especially self-shooting bar, identification self-shooting bar.
Background technology
With the development of the communication technology, the function of mobile terminal is increasingly abundanter, and camera function turns into the weight of mobile terminal
Function is wanted, self-timer turns into one of conventional pastime, and the appearance of self-shooting bar greatly improves the enjoyment of self-timer and effect of taking pictures.
In the prior art, wired self-shooting bar is realized certainly by the connection of headset plug and the earphone interface of mobile terminal mostly
The communication of dabber and mobile terminal, after the earphone interface of mobile terminal is inserted with the headset plug of external equipment, mobile terminal without
Method identification external equipment is self-shooting bar or earphone, therefore can not realize the automatic identification of self-shooting bar at present.
The content of the invention
It is an object of the invention to provide the method and device and mobile terminal of self-shooting bar, identification self-shooting bar, to realize certainly
The automatic identification of dabber.
On the one hand, the embodiments of the invention provide a kind of method for identifying self-shooting bar, including:
If detecting, the earphone interface of mobile terminal is inserted with the headset plug of external equipment, controls in the mobile terminal
Universal asynchronous receiving-transmitting transmitter UART transmitting terminal serial communication chip into the external equipment sends identification request, and
The receiving terminal of the UART is controlled to receive the identity response information that the serial communication chip returns;
According to the identity response information, determine whether the external equipment is self-shooting bar.
Another aspect, the embodiments of the invention provide a kind of device for identifying self-shooting bar, including:
Information transmission unit, if for detecting that the earphone interface of mobile terminal is inserted with the headset plug of external equipment,
Control the transmitting terminal of universal asynchronous receiving-transmitting transmitter UART in the mobile terminal serial communication chip into the external equipment
Identification request is sent, and controls the receiving terminal of the UART to receive the identity response letter that the serial communication chip returns
Breath;
Equipment recognition unit, for according to the identity response information, determining whether the external equipment is self-shooting bar.
Another aspect, the embodiments of the invention provide a kind of mobile terminal, including earphone interface, universal asynchronous receiving-transmitting to transmit
Device UART and processor;
The processor is configured as:If detecting, the earphone interface is inserted with the headset plug of external equipment, controls
The transmitting terminal of UART serial communication chip into the external equipment sends identification request, and controls the UART's
Receiving terminal receives the identity response information that the serial communication chip returns;According to the identity response information, determine described outer
Connect whether equipment is self-shooting bar.
On the other hand, the embodiments of the invention provide a kind of self-shooting bar, including headset plug and serial communication chip, its
In:
The headset plug, for connecting mobile terminal;
The serial communication chip, for receiving the transmitting terminal of universal asynchronous receiving-transmitting transmitter UART in the mobile terminal
The identification request of transmission, and send identity response information to the receiving terminal of the UART.
Technical scheme provided in an embodiment of the present invention, by inserting mobile terminal in the headset plug for detecting external equipment
Earphone interface when, mobile terminal serial communication chip into external equipment sends identification request, and receives serial communication
The identity response information that chip returns, then according to identification response information, determine whether external equipment is self-shooting bar, i.e., it is logical
The serial communication crossed between mobile terminal and external equipment realizes the automatic identification of self-shooting bar, improves Consumer's Experience.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of the method for identification self-shooting bar that the embodiment of the present invention one provides;
Fig. 2 a are a kind of schematic flow sheet of the method for identification self-shooting bar that the embodiment of the present invention two provides;
Fig. 2 b are the circuit diagram for the two-way serial communication that present aspect embodiment two provides;
Fig. 3 a are a kind of schematic flow sheet of the method for identification self-shooting bar that the embodiment of the present invention three provides;
Fig. 3 b are the circuit diagram for the two-way serial communication that present aspect embodiment three provides;
Fig. 4 is a kind of structural representation of the device for identification self-shooting bar that the embodiment of the present invention four provides;
Fig. 5 is a kind of structural representation for mobile terminal that the embodiment of the present invention five provides;
Fig. 6 is a kind of structural representation for self-shooting bar that the embodiment of the present invention six provides.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that in order to just
Part related to the present invention rather than entire infrastructure are illustrate only in description, accompanying drawing.
Embodiment one
Fig. 1 is a kind of schematic flow sheet of the method for identification self-shooting bar that the embodiment of the present invention one provides, and this method can be with
Performed by the device of identification self-shooting bar, wherein the device can be realized by software and/or hardware, can be as one of mobile terminal
Divide and be built in inside mobile terminal.As shown in figure 1, the implementation process includes:
If step 11, detecting that the earphone interface of mobile terminal is inserted with the headset plug of external equipment, the shifting is controlled
Universal asynchronous receiving-transmitting transmitter UART transmitting terminal serial communication chip into the external equipment sends identity and known in dynamic terminal
Do not invite and ask, and control the receiving terminal of the UART to receive the identity response information that the serial communication chip returns.
In the present embodiment, mobile terminal refers to the electronic product of such as smart mobile phone and tablet personal computer or the like, moves
Dynamic terminal has Self-timer, as mobile terminal is provided with front camera.External equipment refers to earphone or wired self-timer
The equipment that bar etc. has headset plug, wherein, serial communication chip (such as TS2A116E05 chips) is configured with wired self-shooting bar,
Headset plug uses the contact pin structure of four-part form, and the headset plug of four-part form includes L channel end, R channel end, Mike end and ground
Line end.
Specifically, when mobile terminal detects that earphone interface insertion is interrupted, by carrying out voltage detecting to headset plug
Whether the headset plug of identification insertion is four-section type headset plug, if four-section type headset plug, is then controlled in mobile terminal
UART (Universal Asynchronous Receiver/Transmitter, universal asynchronous receiving-transmitting transmitter) transmitting terminal
(TX ends) serial communication chip into external equipment sends identification request, during serial communication chip is asked according to identification
Order, return to identity response information to UART receiving terminal (RX ends), UART receiving terminal receives the identity response letter returned
Breath, wherein the identity response information can be identification information.
Step 12, according to the identity response information, determine whether the external equipment is self-shooting bar.
Specifically, if the identity of self-shooting bar is included in the identity response information that mobile terminal receives, it is determined that external
Equipment is self-shooting bar.Identity in the present embodiment to self-shooting bar is not especially limited, and such as can be used as self-shooting bar by the use of character 1
Identity.
Further, since not configuring serial communication chip in earphone, if external equipment is earphone, earphone can not receive shifting
The identification request that dynamic terminal is sent, identity response information can not be returned to mobile terminal, if thus mobile terminal do not connect
Receive identity response information, it is determined that external equipment is earphone.Correspondingly, not only can be by mentioned above in mobile terminal
When the identity response packet of reception identifies containing self-shooting bar, it is self-shooting bar to determine external equipment;Can also it not connect in mobile terminal
When receiving identity response information, it is self-shooting bar to determine external equipment.
The method of the identification self-shooting bar provided in the present embodiment, is moved by being inserted in the headset plug for detecting external equipment
During the earphone interface of dynamic terminal, the serial communication chip that mobile terminal configures into external equipment sends identification request, and
The identity response information that serial communication chip returns is received, then according to identification response information, whether determines external equipment
For self-shooting bar, i.e., the automatic identification of self-shooting bar is realized by the serial communication between mobile terminal and external equipment, is improved
Consumer's Experience.
Second embodiment
The present embodiment provides a kind of method of new identification self-shooting bar on the basis of above-described embodiment one.Fig. 2 a are this
A kind of schematic flow sheet of the method for identification self-shooting bar that inventive embodiments two provide.As shown in Figure 2 a, the implementation process includes:
If step 21, detecting that the earphone interface of mobile terminal is inserted with the headset plug of external equipment, the shifting is controlled
In dynamic terminal UART transmitting terminal by the first leads ends of the headset plug serial communication chip into the external equipment
Identification request is sent, and controls the receiving terminal of the UART to receive the string by the first leads ends of the headset plug
The identity response information that port communications chip returns.
In the present embodiment, headset plug is the headset plug of four-part form, including L channel end, R channel end, Mai Keduan
And ground terminal, and UART transmitting terminal and receiving terminal are connected by the first leads ends and serial communication chip communication of headset plug
Connect, that is to say, that mobile terminal and self-shooting bar carry out two-way serial communication by the first leads ends, wherein the first leads ends are a left side
Sound channel end, R channel end or Mike end.
With reference to figure 2b, exemplified by being the first leads ends by Mike end, detect that earphone interface insertion is interrupted in mobile terminal 10
When, whether the headset plug for identifying insertion is four-section type headset plug, if four-section type headset plug, then controls mobile terminal 10
By the first leads ends of headset plug, the serial communication chip 201 into external equipment 20 sends body to middle UART101 transmitting terminal
Part identification request, after serial communication chip 201 recognizes identification request, passes through reception of first leads ends to UART101
End returns to identity response information, and UART101 receiving terminal receives the identity response information returned, wherein institute by the first leads ends
It can be identification information to state identity response information.
In order to carry out two-way serial communication by the first leads ends, with reference to figure 2b, it is also configured with switching in mobile terminal 10
Circuit 102.Exemplary, it can be controlled by on-off circuit 102 in the mobile terminal 10 in the mobile terminal 10
UART101 transmitting terminal serial communication chip 201 into the external equipment 20 by the first leads ends of the headset plug
Send identification request;By on-off circuit 102 in the mobile terminal 10, the receiving terminal of the UART101 can be controlled
The identity response that serial communication chip 201 returns in the external equipment 20 is received by the first leads ends of the headset plug
Information.For example, when the control terminal of on-off circuit 102 is high level, UART101 transmitting terminal turns on the first leads ends,
UART101 receiving terminal and the first leads ends disconnect;When the control terminal of on-off circuit 102 is low level, UART101 reception
End turns on the first leads ends, and UART101 transmitting terminal and the first leads ends disconnect.
The voltage logic level of mobile terminal and external equipment is generally inconsistent, such as mobile terminal is by more than 1.8V electricity
Pressure is used as high level, and external equipment is using more than 0.5V voltage as high level, then if the level in external equipment on MIC pin
For 0.6V, high level is belonged to for serial communication chip, but belongs to low level for mobile terminal, causes to move
Terminal can not accurately receive the information of external equipment transmission, and external equipment can not accurately receive the information of mobile terminal transmission.
In order that mobile terminal is consistent with the voltage logic level of external equipment, referring to Fig. 2 b, in the mobile terminal 10
It is also configured with level translator 103 and voltage comparator 104.It is exemplary, control the hair of UART101 in the mobile terminal 10
Sending end is by level translator 103, and into the external equipment 20, serial communication chip 201 sends identification request;Control
UART101 receiving terminal is by the level translator 103 and voltage comparator 104 in the mobile terminal 10, described in reception
The identity response information that serial communication chip 201 returns in external equipment 20.
For example, when Mike end level is the high level of external equipment 20, Mike end level is more than voltage comparator 104
Reference voltage, the output level of level translator 103 are more than the minimum input high level (such as 1.8V) of mobile terminal 10, this time shift
Dynamic terminal 10 recognizes high level, thus the voltage logic level of mobile terminal 10 and external equipment 20 has uniformity.
Step 22, according to the identity response information, determine whether the external equipment is self-shooting bar.
Specifically, if identity response packet identifies containing self-shooting bar, or mobile terminal receives identity response information, can
To determine external equipment as self-shooting bar;If mobile terminal does not receive identity response information, it may be determined that external equipment is earphone.
The first leads ends that technical scheme provided in an embodiment of the present invention, mobile terminal and external equipment pass through headset plug
Two-way serial communication is realized, it is thus achieved that the automatic identification of self-shooting bar, and pass through level translator and voltage comparator
Voltage logic level between mobile terminal and external equipment is consistent so that mobile terminal can accurately identify external equipment return
Identity response information, further increase self-shooting bar identification the degree of accuracy.
3rd embodiment
The present embodiment provides a kind of side of new identification self-shooting bar on the basis of above-described embodiment one and embodiment two
Method.Fig. 3 a are a kind of schematic flow sheet of the method for identification self-shooting bar that the embodiment of the present invention three provides.As shown in Figure 3 a, the reality
Existing flow includes:
If step 31, detecting that the earphone interface of mobile terminal is inserted with the headset plug of external equipment, the shifting is controlled
In dynamic terminal UART transmitting terminal by the second pin end of the headset plug serial communication chip into the external equipment
Send identification request;And the receiving terminal of the UART is controlled to receive the string by the 3rd leads ends of the headset plug
The identity response information that port communications chip returns.
In the present embodiment, headset plug is the headset plug of four-part form, including L channel end, R channel end, Mai Keduan
And ground terminal, and UART transmitting terminal is connected by the second pin end of headset plug with serial communication chip communication, UART's
Receiving terminal is connected by the 3rd leads ends of headset plug with serial communication chip communication, wherein the second pin end and described
3rd leads ends are any leads ends in the L channel end, R channel end and Mike end of the headset plug, and described
Two leads ends are different from the 3rd leads ends.
With reference to figure 3b, using L channel end as second pin end, exemplified by R channel end is the 3rd leads ends, in mobile terminal 10
When detecting that earphone interface insertion is interrupted, whether the headset plug for identifying insertion is four-section type headset plug, if four-part form ear
Machine transplanting of rice head, then control the transmitting terminal of UART101 in mobile terminal 10 by the second pin end of headset plug to external equipment 20
Middle serial communication chip 201 sends identification request, after serial communication chip 201 recognizes identification request, by the
Three leads ends return to identity response information to UART101 receiving terminal, and UART101 receiving terminal is received by the 3rd leads ends to be returned
The identity response information returned, wherein the identity response information can be identification information.
In order that mobile terminal is consistent with the voltage logic level of external equipment, and it is exemplary referring to Fig. 3 b, described in control
UART101 transmitting terminal is by level translator 103 in mobile terminal 10, the serial communication chip into the external equipment 20
201 send identification request;The receiving terminal of UART101 in the mobile terminal 10 is controlled to pass through the level translator 103
With voltage comparator 104, the identity response information that serial communication chip 201 returns in the external equipment 20 is received.
Step 32, according to the identity response information, determine whether the external equipment is self-shooting bar.
Specifically, if identity response packet identifies containing self-shooting bar, or mobile terminal receives identity response information, can
To determine external equipment as self-shooting bar;If mobile terminal does not receive identity response information, it may be determined that external equipment is earphone.
The second pin end that technical scheme provided in an embodiment of the present invention, mobile terminal and external equipment pass through headset plug
Two-way serial communication is realized with the 3rd leads ends, it is thus achieved that the automatic identification of self-shooting bar, and pass through level translator and electricity
Pressure comparator make it that the voltage logic level between mobile terminal and external equipment is consistent so that mobile terminal can accurately identify
The identity response information that external equipment returns, further increase the degree of accuracy of self-shooting bar identification.
Fourth embodiment
Fig. 4 is a kind of structural representation of the device for identification self-shooting bar that the embodiment of the present invention four provides, and the device can be with
It is built in inside mobile terminal.As shown in figure 4, the concrete structure of the device of the identification self-shooting bar can include:
Information transmission unit 41, if for detecting that the earphone interface of mobile terminal is inserted with the headset plug of external equipment,
Then control the transmitting terminal of universal asynchronous receiving-transmitting transmitter UART in the mobile terminal serial communication core into the external equipment
Piece sends identification request, and controls the receiving terminal of the UART to receive the identity response letter that the serial communication chip returns
Breath;
Equipment recognition unit 42, for according to the identity response information, determining whether the external equipment is self-shooting bar.
Further, information transmission unit 41 specifically can be used for:
Control the transmitting terminal of UART in the mobile terminal by the first leads ends of the headset plug to described external
Serial communication chip sends identification request in equipment;
The receiving terminal of the UART is controlled to receive the serial communication chip by the first leads ends of the headset plug
The identity response information of return, wherein first leads ends are L channel end, R channel end or the Mike of the headset plug
End.
Further, by on-off circuit in the mobile terminal, the transmitting terminal of UART in the mobile terminal is controlled to lead to
Cross the first leads ends serial communication chip transmission identification request into the external equipment of the headset plug;
By on-off circuit in the mobile terminal, the receiving terminal of the UART is controlled by the first of the headset plug
Leads ends receive the identity response information that serial communication chip returns in the external equipment.
Further, information transmission unit 41 specifically can be used for:
Control the transmitting terminal of UART in the mobile terminal by the second pin end of the headset plug to described external
Serial communication chip sends identification request in equipment;
The receiving terminal of the UART is controlled to receive the serial communication chip by the 3rd leads ends of the headset plug
The identity response information of return;
Wherein described second pin end and the 3rd leads ends are the L channel end of the headset plug, R channel end
With any leads ends in Mike end, and the second pin end is different from the 3rd leads ends.
Further, information transmission unit 41 specifically can be used for:
The transmitting terminal of UART in the mobile terminal is controlled by level translator, the serial communication into the external equipment
Chip sends identification request;
The receiving terminal of UART in the mobile terminal is controlled by the level translator and voltage comparator, described in reception
The identity response information that serial communication chip returns in external equipment.
The device for the identification self-shooting bar that the present embodiment provides, the identification self-shooting bar provided with any embodiment of the present invention
Method belongs to same inventive concept, the method that can perform the identification self-shooting bar that any embodiment of the present invention is provided, possesses execution
Identify the corresponding functional module of method and beneficial effect of self-shooting bar.Not ins and outs of detailed description in the present embodiment, can
The method of the identification self-shooting bar provided referring to any embodiment of the present invention.
5th embodiment
Fig. 5 is a kind of structural representation for mobile terminal that the embodiment of the present invention five provides.As shown in figure 5, the movement is whole
End can include earphone interface, universal asynchronous receiving-transmitting transmitter UART and processor;
The processor is configured as:If detecting, the earphone interface is inserted with the headset plug of external equipment, controls
The transmitting terminal of UART serial communication chip into the external equipment sends identification request, and controls the UART's
Receiving terminal receives the identity response information that the serial communication chip returns;According to the identity response information, determine described outer
Connect whether equipment is self-shooting bar.
Further, the transmitting terminal of the UART and receiving terminal pass through the first leads ends of headset plug in external equipment
Be connected with serial communication chip in the external equipment, wherein first leads ends for the headset plug L channel end,
R channel end or Mike end.
Further, the mobile terminal also includes on-off circuit, wherein:
The first input end of the on-off circuit is connected with the transmitting terminal of the UART, the second input of the on-off circuit
End is connected with the receiving terminal of the UART, and the output end of the on-off circuit passes through first leads ends and the serial communication
Chip is connected, and the control terminal of the on-off circuit is connected with the processor.
Further, the transmitting terminal of the UART by the second pin end of headset plug in external equipment with it is described external
Serial communication chip connects in equipment, the 3rd leads ends and institute of the receiving terminal of the UART by headset plug in external equipment
Serial communication chip in external equipment is stated to connect;
Wherein described second pin end and the 3rd leads ends are the L channel end of the headset plug, R channel end
With any leads ends in Mike end, and the second pin end is different from the 3rd leads ends.
Further, in order that mobile terminal is consistent with the voltage logic level of external equipment, the mobile terminal can be with
Including level translator and voltage comparator, wherein:
The first input end of the level translator is connected with the transmitting terminal of the UART, and the first of the level translator
The input of output end and the voltage comparator is connected with serial communication chip in the external equipment;
The output end of the voltage comparator is connected with the second input of the level translator;
Second output end of the level translator is connected with the receiving terminal of the UART.
Sixth embodiment
Fig. 6 is a kind of structural representation for self-shooting bar that the embodiment of the present invention six provides.As shown in fig. 6, the self-shooting bar can
With including headset plug and serial communication chip, wherein:
The headset plug, for connecting mobile terminal;
The serial communication chip, for receiving the transmitting terminal of universal asynchronous receiving-transmitting transmitter UART in the mobile terminal
The identification request of transmission, and send identity response information to the receiving terminal of the UART.
Exemplary, the serial communication chip can be connected with the first leads ends in the headset plug, and described first
Leads ends are L channel end, R channel end or Mike end.
Exemplary, the serial communication chip can be equal with second pin end in the headset plug and the 3rd leads ends
Connection, wherein the second pin end and the 3rd leads ends are any in L channel end, R channel end and Mike end
Leads ends, and the second pin end is different from the 3rd leads ends.
Pay attention to, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.
Claims (7)
- A kind of 1. method for identifying self-shooting bar, it is characterised in that including:If detecting, the earphone interface of mobile terminal is inserted with the headset plug of external equipment, by being switched in the mobile terminal Circuit, the transmitting terminal of universal asynchronous receiving-transmitting transmitter UART in the mobile terminal is controlled to draw by the first of the headset plug Foot serial communication chip into the external equipment sends identification request;Wherein, the mobile terminal has self-timer work( Energy;By on-off circuit in the mobile terminal, the receiving terminal of the UART is controlled by the first pin of the headset plug End receives the identity response information that serial communication chip returns in the external equipment, wherein first leads ends are the ear L channel end, R channel end or the Mike end of machine transplanting of rice head;According to the identity response information, determine whether the external equipment is self-shooting bar;Wherein, the identity response information is Self-shooting bar identifies;If the mobile terminal does not receive the identity response information, it is determined that the external equipment is earphone.
- 2. according to the method for claim 1, it is characterised in that control universal asynchronous receiving-transmitting transmitter in the mobile terminal By the first leads ends of the headset plug, the serial communication chip into the external equipment sends identity to UART transmitting terminal Identification request, and control the receiving terminal of the UART to receive the serial communication core by the first leads ends of the headset plug The identity response information that piece returns, including:The transmitting terminal of UART in the mobile terminal is controlled by the first leads ends and level translator of the headset plug, Into the external equipment, serial communication chip sends identification request;The receiving terminal of UART in the mobile terminal is controlled to turn by the first leads ends of the headset plug and the level Parallel operation and voltage comparator, receive the identity response information that serial communication chip returns in the external equipment.
- A kind of 3. device for identifying self-shooting bar, it is characterised in that including:Information transmission unit, if for detecting that the earphone interface of mobile terminal is inserted with the headset plug of external equipment, pass through On-off circuit in the mobile terminal, the transmitting terminal of universal asynchronous receiving-transmitting transmitter UART in the mobile terminal is controlled to pass through institute State the first leads ends serial communication chip transmission identification request into the external equipment of headset plug;Wherein, it is described Mobile terminal has Self-timer;By on-off circuit in the mobile terminal, control the UART receiving terminal pass through it is described First leads ends of headset plug receive the identity response information that serial communication chip returns in the external equipment, wherein described First leads ends are L channel end, R channel end or the Mike end of the headset plug;Equipment recognition unit, for according to the identity response information, determining whether the external equipment is self-shooting bar;Wherein, The identity response information identifies for self-shooting bar;If the mobile terminal does not receive the identity response information, it is determined that institute It is earphone to state external equipment.
- 4. device according to claim 3, it is characterised in that information transmission unit is specifically used for:The transmitting terminal of UART in the mobile terminal is controlled by the first leads ends and level translator of the headset plug, Into the external equipment, serial communication chip sends identification request;The receiving terminal of UART in the mobile terminal is controlled to turn by the first leads ends of the headset plug and the level Parallel operation and voltage comparator, receive the identity response information that serial communication chip returns in the external equipment.
- 5. a kind of mobile terminal, it is characterised in that including earphone interface, universal asynchronous receiving-transmitting transmitter UART and processor;The processor is configured as:If detecting, the earphone interface of mobile terminal is inserted with the headset plug of external equipment, leads to On-off circuit in the mobile terminal is crossed, controls the transmitting terminal of universal asynchronous receiving-transmitting transmitter UART in the mobile terminal to pass through First leads ends of headset plug serial communication chip into the external equipment sends identification request;Wherein, institute Stating mobile terminal has Self-timer;By on-off circuit in the mobile terminal, the receiving terminal of the UART is controlled to pass through institute The first leads ends for stating headset plug receive the identity response information that serial communication chip returns in the external equipment, wherein institute State L channel end, R channel end or the Mike end that the first leads ends are the headset plug;According to the identity response information, really Whether the fixed external equipment is self-shooting bar;Wherein, the identity response information identifies for self-shooting bar;If the mobile terminal is not Receive the identity response information, it is determined that the external equipment is earphone.
- 6. mobile terminal according to claim 5, it is characterised in that also including level translator and voltage comparator, its In:The first input end of the level translator is connected with the transmitting terminal of the UART, the first output of the level translator The input of end and the voltage comparator is connected with serial communication chip in the external equipment;The output end of the voltage comparator is connected with the second input of the level translator;Second output end of the level translator is connected with the receiving terminal of the UART.
- A kind of 7. self-shooting bar, it is characterised in that including headset plug and serial communication chip, wherein:The headset plug, for connecting mobile terminal;Wherein, the mobile terminal has Self-timer;The serial communication chip, for by on-off circuit in the mobile terminal, receiving general different in the mobile terminal The identification request that receiving-transmitting transmitter UART transmitting terminal is sent is walked, and identity response is sent to the receiving terminal of the UART Information, the serial communication chip are connected with the first leads ends in the headset plug, first leads ends be L channel end, R channel end or Mike end, wherein, the identity response information identifies for self-shooting bar.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610064980.0A CN105681952B (en) | 2016-01-29 | 2016-01-29 | Self-shooting bar, the method and device and mobile terminal for identifying self-shooting bar |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610064980.0A CN105681952B (en) | 2016-01-29 | 2016-01-29 | Self-shooting bar, the method and device and mobile terminal for identifying self-shooting bar |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105681952A CN105681952A (en) | 2016-06-15 |
CN105681952B true CN105681952B (en) | 2018-03-27 |
Family
ID=56304391
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610064980.0A Active CN105681952B (en) | 2016-01-29 | 2016-01-29 | Self-shooting bar, the method and device and mobile terminal for identifying self-shooting bar |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105681952B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN204206428U (en) * | 2014-08-21 | 2015-03-11 | 北京康智乐思网络科技有限公司 | Audio interface and audio connector communication system and main equipment thereof and external equipment |
CN105120388A (en) * | 2015-08-12 | 2015-12-02 | 青岛海信移动通信技术股份有限公司 | Identification method and device of selfie stick |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103138930A (en) * | 2011-12-05 | 2013-06-05 | 赛酷特(北京)信息技术有限公司 | Identity authentication device based on mobile communication equipment platform |
US9021159B2 (en) * | 2012-09-07 | 2015-04-28 | Apple Inc. | Connector adapter |
CN103078224B (en) * | 2013-01-07 | 2016-04-13 | 华为终端有限公司 | Connecting line, control method, control circuit and electronic equipment |
-
2016
- 2016-01-29 CN CN201610064980.0A patent/CN105681952B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN204206428U (en) * | 2014-08-21 | 2015-03-11 | 北京康智乐思网络科技有限公司 | Audio interface and audio connector communication system and main equipment thereof and external equipment |
CN105120388A (en) * | 2015-08-12 | 2015-12-02 | 青岛海信移动通信技术股份有限公司 | Identification method and device of selfie stick |
Also Published As
Publication number | Publication date |
---|---|
CN105681952A (en) | 2016-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109246671A (en) | Data transmission method, apparatus and system | |
EP2597844A1 (en) | Method and device for sharing micro-usb interface between earphone and usb | |
CN105898678B (en) | A kind of matching method and electronic equipment | |
EP2433380A2 (en) | Terminal and method for executing function using human body communication | |
CN105808469B (en) | Data processing method, device, terminal and smart machine | |
WO2014114047A1 (en) | Method for realizing selection of security unit in near field communication, mobile terminal and pos machine | |
CN103401898A (en) | Method for transmitting data between mobile terminals and mobile terminals | |
US8020011B2 (en) | Shared interface device for selectively using power supply over ethernet (POE) card and wireless network module | |
CN105872133A (en) | Mobile terminal and external antenna | |
WO2018058946A1 (en) | Method and device for signal switching, and computer storage medium | |
CN105681952B (en) | Self-shooting bar, the method and device and mobile terminal for identifying self-shooting bar | |
CN105045740A (en) | Conversion method and circuit for communication interfaces | |
KR20210116119A (en) | Apparatus and method for performing communication | |
CN101282223B (en) | Two-in-one U disk wireless headline card apparatus | |
CN111766999A (en) | Extended control system based on physical keys and method for quickly accessing terminal | |
CN207198837U (en) | USB sound cards | |
CN104936055A (en) | Terminal with earphone interface and earphone interface adaptive method | |
CN106792466B (en) | Method for communication between equipment end and host end | |
CN106603755B (en) | A kind of mobile terminal and the data processing method based on mobile terminal | |
CN101883176A (en) | Expansion card processing method, device and mobile terminal | |
CN105677603B (en) | A kind of method, apparatus and mobile terminal for identifying self-shooting bar | |
KR100606717B1 (en) | A Dual UART circuit for a mobile telecommunication device | |
CN110535493A (en) | A kind of blue-teeth communication equipment | |
US20130275633A1 (en) | Method and system for operating accessory in terminal and terminal supporting the same | |
CN105450264A (en) | Data transmission method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |